id int64 1 49k | buggy stringlengths 34 37.5k | fixed stringlengths 2 37k |
|---|---|---|
23,401 | Bundle savedInstanceState) {
final View rootView = inflater.inflate(R.layout.tab_qibla, container, false);
final QiblaCompassView qiblaCompassView = (QiblaCompassView)rootView.findViewById(R.id.qibla_compass);
qiblaCompassView.setConstants(((TextView)rootView.findViewById(R.id.bearing_north)), getText(R.string.bearing_... | sOrientationListener = new android.hardware.SensorListener() {
|
23,402 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
23,403 | final int lineStride = dst.getScanlineStride();
final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final byte[][] data = dst.getByteDataArrays();
final float[] warpData = new float[2 * dstWidth];
<BUG>int lineOffset = 0;
if (ctable == null) { // source does not have IndexColor... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
23,404 | pixelOffset += pixelStride;
} // COLS LOOP
} // ROWS LOOP
}
} else {// source has IndexColorModel
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset += lineStride;
warp.warpRect(dst.getX(), dst.getY() + h, dstWidth, 1, warpData);
| } else if (caseB) {
for (int h = 0; h < dstHeight; h++) {
|
23,405 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
23,406 | final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final short[][] data = dst.getShortDataArrays();
final float[] warpData = new float[2 * dstWidth];
int lineOffset = 0;
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset += l... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
23,407 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
23,408 | final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final short[][] data = dst.getShortDataArrays();
final float[] warpData = new float[2 * dstWidth];
int lineOffset = 0;
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset += l... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
23,409 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
23,410 | final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final int[][] data = dst.getIntDataArrays();
final float[] warpData = new float[2 * dstWidth];
int lineOffset = 0;
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset += lineS... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
23,411 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
23,412 | final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final float[][] data = dst.getFloatDataArrays();
final float[] warpData = new float[2 * dstWidth];
int lineOffset = 0;
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset += l... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
23,413 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
23,414 | final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final double[][] data = dst.getDoubleDataArrays();
final float[] warpData = new float[2 * dstWidth];
int lineOffset = 0;
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset +=... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
23,415 | import org.itsnat.droid.ItsNatDroidException;
import java.util.HashMap;
import java.util.Map;
public class MiscUtil
{
<BUG>public static final int JELLY_BEAN = Build.VERSION_CODES.JELLY_BEAN; // 16
public static final int LOLLIPOP = 21; // 21 == Build.VERSION_CODES.LOLLIPOP (5.0.1)
public static final int LO... | public static final int JELLY_BEAN = Build.VERSION_CODES.JELLY_BEAN; // 16 (4.1)
public static final int LOLLIPOP = 21; // 21 == Build.VERSION_CODES.LOLLIPOP (5.0.1)
public static final int MARSHMALLOW = 23; // 23 == Build.VERSION_CODES.M (6.0)
|
23,416 | import android.text.SpannableStringBuilder;
import android.text.SpannedString;
import android.text.TextUtils;
import android.text.method.TransformationMethod;
import android.view.Gravity;
<BUG>import android.view.View;
import android.view.ViewGroup;</BUG>
import android.view.animation.LinearInterpolator;
import android... | import android.view.ViewConfiguration;
import android.view.ViewGroup;
|
23,417 | assertTrue(compTextView2.isFocusableInTouchMode());
assertEquals(compTextView2.isFocusableInTouchMode(), parsedTextView2.isFocusableInTouchMode());
assertFalse(compTextView2.isHapticFeedbackEnabled());
assertEquals(compTextView2.isHapticFeedbackEnabled(), parsedTextView2.isHapticFeedbackEnabled());
assertPositive(compT... | assertEquals(compTextView2.getImportantForAccessibility(),View.IMPORTANT_FOR_ACCESSIBILITY_YES);
assertEquals(compTextView2.getImportantForAccessibility(), parsedTextView2.getImportantForAccessibility());
assertFalse(compTextView2.isScrollContainer());
assertEquals(compTextView2.isScrollContainer(), parsedTextView2.isS... |
23,418 | assertEquals(compTextView2.isSaveEnabled(), parsedTextView2.isSaveEnabled());
assertEquals(compTextView2.getScaleX(), 1.2f);
assertEquals(compTextView2.getScaleX(), parsedTextView2.getScaleX());
assertEquals(compTextView2.getScaleY(), 1.2f);
assertEquals(compTextView2.getScaleY(), parsedTextView2.getScaleY());
<BUG>ass... | [DELETED] |
23,419 | assertEquals(compLayout.getAutoLinkMask() & 0x02,0x02); // email
assertEquals(compLayout.getAutoLinkMask(),0x03); // web|email
assertEquals(compLayout.getAutoLinkMask(),parsedLayout.getAutoLinkMask());
assertEquals((TextView.BufferType)TestUtil.getField(compLayout,"mBufferType"),TextView.BufferType.EDITABLE);
assertEqu... | [DELETED] |
23,420 | DESC {
@Override
public String toString() {
return "desc";
}
<BUG>};
private static final SortOrder PROTOTYPE = ASC;
</BUG>
@Override
public SortOrder readFrom(StreamInput in) throws IOException {
| public static final SortOrder DEFAULT = DESC;
private static final SortOrder PROTOTYPE = DEFAULT;
|
23,421 | GeoDistance geoDistance = GeoDistance.DEFAULT;
boolean reverse = false;
MultiValueMode sortMode = null;
NestedInnerQueryParseSupport nestedHelper = null;
final boolean indexCreatedBeforeV2_0 = context.indexShard().getIndexSettings().getIndexVersionCreated().before(Version.V_2_0_0);
<BUG>boolean coerce = GeoDistanceSort... | boolean coerce = false;
boolean ignoreMalformed = false;
XContentParser.Token token;
|
23,422 | String currentName = parser.currentName();
while ((token = parser.nextToken()) != XContentParser.Token.END_OBJECT) {
if (token == XContentParser.Token.FIELD_NAME) {
currentName = parser.currentName();
} else if (token == XContentParser.Token.START_ARRAY) {
<BUG>GeoDistanceSortBuilder.parseGeoPoints(parser, geoPoints);
... | fieldName = currentName;
|
23,423 | if (temp == MultiValueMode.SUM) {
throw new IllegalArgumentException("sort_mode [sum] isn't supported for sorting by geo distance");
}</BUG>
this.sortMode = sortMode;
return this;
<BUG>}
public String sortMode() {
return this.sortMode;</BUG>
}
public GeoDistanceSortBuilder setNestedFilter(QueryBuilder nestedFilter) {
| @Override
public GeoDistanceSortBuilder order(SortOrder order) {
this.order = order;
@Override
public SortBuilder missing(Object missing) {
public GeoDistanceSortBuilder sortMode(String sortMode) {
|
23,424 | builder.field("unit", unit);
builder.field("distance_type", geoDistance.name().toLowerCase(Locale.ROOT));
if (order == SortOrder.DESC) {</BUG>
builder.field("reverse", true);
<BUG>} else {
builder.field("reverse", false);</BUG>
}
if (sortMode != null) {
builder.field("mode", sortMode);
}
| if (geoDistance != null) {
if (order == SortOrder.DESC) {
|
23,425 | Util.verifyEvent(event, this.collectorName, this.destination, this.expectedNumber);
}
}
static void consumeQueueAsEvents(OperationExecutor executor, String destination,
String collectorName, int eventsExpected) throws Exception {
<BUG>byte[] queueURI = FlowStream.buildStreamURI(destination).getBytes();
</BUG>
EventSeri... | byte[] queueURI = FlowStream.buildStreamURI(destination).toString().getBytes();
|
23,426 | Assert.assertTrue(executor.execute(operations).isSuccess());
}
}
static void consumeQueueAsTuples(OperationExecutor executor, String destination,
String collectorName, int tuplesExpected) throws Exception {
<BUG>byte[] queueURI = FlowStream.buildStreamURI(destination).getBytes();
</BUG>
TupleSerializer deserializer = n... | byte[] queueURI = FlowStream.buildStreamURI(destination).toString().getBytes();
|
23,427 | String destination = event.getHeader(Constants.HEADER_DESTINATION_STREAM);
if (destination == null) {
LOG.debug("Enqueuing an event that has no destination. Using 'default' instead.");
destination = "default";
}
<BUG>String queueURI = FlowStream.buildStreamURI(destination);
</BUG>
operations.add(new QueueEnqueue(queueU... | String queueURI = FlowStream.buildStreamURI(destination).toString();
|
23,428 | String destination = event.getHeader(Constants.HEADER_DESTINATION_STREAM);
if (destination == null) {
LOG.warn("Enqueuing an event that has no destination. Using 'default' instead.");
destination = "default";
}
<BUG>String queueURI = FlowStream.buildStreamURI(destination);
</BUG>
operations.add(new QueueEnqueue(queueUR... | String queueURI = FlowStream.buildStreamURI(destination).toString();
|
23,429 | package org.freedesktop.wayland.server;
import com.sun.jna.Pointer;
import org.freedesktop.wayland.HasNative;
<BUG>import org.freedesktop.wayland.server.jna.WaylandServerLibrary;
public class EventSource implements HasNative<Pointer> {
private final Pointer pointer;
protected EventSource(final Pointer pointer) {
this.p... | import org.freedesktop.wayland.util.ObjectCache;
private boolean valid;
this.valid = true;
ObjectCache.store(getNative(),
this);
|
23,430 | package org.freedesktop.wayland.server;
import com.sun.jna.Pointer;
import org.freedesktop.wayland.HasNative;
import org.freedesktop.wayland.server.jna.*;
<BUG>import org.freedesktop.wayland.util.ObjectCache;
import java.util.HashMap;
import java.util.Map;
public class EventLoop implements HasNative<Pointer> {
private ... | import java.awt.*;
import java.util.WeakHashMap;
private static final Map<Pointer, Object> HANDLER_REFS = new WeakHashMap<Pointer, Object>();
private static final Map<EventSource, Pointer> EVENT_SOURCE_HANDLER_REFS = new WeakHashMap<EventSource, Pointer>();
private static final wl_event_loop_fd_func_t WL_EVENT_LOOP_FD_... |
23,431 | .wl_event_loop_add_fd(getNative(),
fd,
mask,
<BUG>WL_EVENT_LOOP_FD_FUNC,
handlerRef);
return EventSource.create(wlEventSource);
}
public EventSource addTimer(final TimerEventHandler handler) {
final wl_event_loop_timer_func_t nativeCallback = new wl_event_loop_timer_func_t() {
@Override
public int apply(final Pointer d... | handlerRef));
EVENT_SOURCE_HANDLER_REFS.put(eventSource,
return eventSource;
final Pointer handlerRef = Pointer.createConstant(handler.hashCode());
HANDLER_REFS.put(handlerRef,
handler);
|
23,432 | public interface ChainedRequest extends Request {
ChainedRequest getParent();
List<Cookie> getCookies();
Object getBody();
String getContentType();
<BUG>Map<String,Function<ChainedRequest,HttpEntity>> getEncoderMap();
</BUG>
Charset getCharset();
default Charset actualCharset() {
return traverse(this, (cr) -> cr.getPar... | Map<String,BiConsumer<ChainedRequest,ToServer>> getEncoderMap();
|
23,433 | default Map<String,String> actualHeaders(final Map<String,String> map) {
Predicate<Map<String,String>> addValues = (headers) -> { map.putAll(headers); return false; };
traverse(this, (cr) -> cr.getParent(), (cr) -> cr.getHeaders(), addValues);
return map;
}
<BUG>default Function<ChainedRequest,HttpEntity> actualEncoder... | default BiConsumer<ChainedRequest,ToServer> actualEncoder(final String contentType) {
|
23,434 | public interface ChainedResponse extends Response {
ChainedResponse getParent();
default Closure<Object> actualAction(final Integer code) {
return traverse(this, (cr) -> cr.getParent(), (cr) -> cr.when(code), Traverser::notNull);
}
<BUG>default Function<HttpResponse,Object> actualParser(final String contentType) {
</BU... | default Function<FromServer,Object> actualParser(final String contentType) {
|
23,435 | void setBody(Object val);
default void cookie(String name, String value) {
cookie(name, value, null);
}
void cookie(String name, String value, Date expires);
<BUG>void encoder(String contentType, Function<ChainedHttpConfig.ChainedRequest,HttpEntity> val);
void encoder(List<String> contentTypes, Function<ChainedHttpCon... | void encoder(String contentType, BiConsumer<ChainedHttpConfig.ChainedRequest,ToServer> val);
void encoder(List<String> contentTypes, BiConsumer<ChainedHttpConfig.ChainedRequest,ToServer> val);
BiConsumer<ChainedHttpConfig.ChainedRequest,ToServer> encoder(String contentType);
|
23,436 | void when(Integer code, Closure<Object> closure);
void when(String code, Closure<Object> closure);
Closure<Object> when(Integer code);
void setSuccess(Closure<Object> closure);
void setFailure(Closure<Object> closure);
<BUG>void parser(String contentType, Function<HttpResponse,Object> val);
void parser(List<String> co... | void parser(String contentType, Function<FromServer,Object> val);
void parser(List<String> contentTypes, Function<FromServer,Object> val);
Function<FromServer,Object> parser(String contentType);
|
23,437 | <BUG>package groovyx.net.http;
import groovy.lang.Closure;</BUG>
import groovy.lang.DelegatesTo;
import java.io.IOException;
import java.net.URI;
| import groovyx.net.http.libspecific.ApacheFromServer;
import java.util.function.BiConsumer;
import groovyx.net.http.libspecific.ApacheToServer;
import groovy.lang.Closure;
|
23,438 | public static boolean debugMode = false;
@ModConfigProperty(category = "Debug", name = "debugModeGOTG", comment = "Enable/Disable Debug Mode for the Gift Of The Gods")
public static boolean debugModeGOTG = false;
@ModConfigProperty(category = "Debug", name = "debugModeEnchantments", comment = "Enable/Disable Debug Mode... | @ModConfigProperty(category = "Weapons", name = "enableSwordsRecipes", comment = "Enable/Disable ArmorPlus Sword's Recipes")
@ModConfigProperty(category = "Weapons", name = "enableBattleAxesRecipes", comment = "Enable/Disable ArmorPlus Battle Axes's Recipes")
@ModConfigProperty(category = "Weapons", name = "enableBowsR... |
23,439 | import java.util.ResourceBundle;
import java.util.function.Function;</BUG>
class DescriptionStrategyFactory {
private DescriptionStrategyFactory() {}
public static DescriptionStrategy daysOfWeekInstance(final ResourceBundle bundle, final FieldExpression expression) {
<BUG>final Function<Integer, String> nominal = integ... | import java.util.function.Function;
import com.cronutils.model.field.expression.FieldExpression;
import com.cronutils.model.field.expression.On;
final Function<Integer, String> nominal = integer -> DayOfWeek.of(integer).getDisplayName(TextStyle.FULL, bundle.getLocale());
|
23,440 | return dom;
}
public static DescriptionStrategy monthsInstance(final ResourceBundle bundle, final FieldExpression expression) {
return new NominalDescriptionStrategy(
bundle,
<BUG>integer -> new DateTime().withMonthOfYear(integer).monthOfYear().getAsText(bundle.getLocale()),
expression</BUG>
);
}
public static Descript... | integer -> Month.of(integer).getDisplayName(TextStyle.FULL, bundle.getLocale()),
expression
|
23,441 | <BUG>package com.cronutils.model.time.generator;
import com.cronutils.mapper.WeekDay;</BUG>
import com.cronutils.model.field.CronField;
import com.cronutils.model.field.CronFieldName;
import com.cronutils.model.field.constraint.FieldConstraintsBuilder;
| import java.time.LocalDate;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import org.apache.commons.lang3.Validate;
import com.cronutils.mapper.WeekDay;
|
23,442 | import com.cronutils.model.field.expression.Between;
import com.cronutils.model.field.expression.FieldExpression;
import com.cronutils.parser.CronParserField;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
<BUG>import org.apache.commons.lang3.Validate;
import org.joda.time.DateTime;
impo... | [DELETED] |
23,443 | package com.cronutils.mapper;
public class ConstantsMapper {
private ConstantsMapper() {}
public static final WeekDay QUARTZ_WEEK_DAY = new WeekDay(2, false);
<BUG>public static final WeekDay JODATIME_WEEK_DAY = new WeekDay(1, false);
</BUG>
public static final WeekDay CRONTAB_WEEK_DAY = new WeekDay(1, true);
public st... | public static final WeekDay JAVA8 = new WeekDay(1, false);
|
23,444 | return nextMatch;
} catch (NoSuchValueException e) {
throw new IllegalArgumentException(e);
}
}
<BUG>DateTime nextClosestMatch(DateTime date) throws NoSuchValueException {
</BUG>
List<Integer> year = yearsValueGenerator.generateCandidates(date.getYear(), date.getYear());
TimeNode days = null;
int lowestMonth = months.g... | ZonedDateTime nextClosestMatch(ZonedDateTime date) throws NoSuchValueException {
|
23,445 | boolean questionMarkSupported =
cronDefinition.getFieldDefinition(DAY_OF_WEEK).getConstraints().getSpecialChars().contains(QUESTION_MARK);
if(questionMarkSupported){
return new TimeNode(
generateDayCandidatesQuestionMarkSupported(
<BUG>date.getYear(), date.getMonthOfYear(),
</BUG>
((DayOfWeekFieldDefinition)
cronDefini... | date.getYear(), date.getMonthValue(),
|
23,446 | )
);
}else{
return new TimeNode(
generateDayCandidatesQuestionMarkNotSupported(
<BUG>date.getYear(), date.getMonthOfYear(),
</BUG>
((DayOfWeekFieldDefinition)
cronDefinition.getFieldDefinition(DAY_OF_WEEK)
).getMondayDoWValue()
| date.getYear(), date.getMonthValue(),
|
23,447 | }
public DateTime lastExecution(DateTime date){
</BUG>
Validate.notNull(date);
try {
<BUG>DateTime previousMatch = previousClosestMatch(date);
</BUG>
if(previousMatch.equals(date)){
previousMatch = previousClosestMatch(date.minusSeconds(1));
}
| public java.time.Duration timeToNextExecution(ZonedDateTime date){
return java.time.Duration.between(date, nextExecution(date));
public ZonedDateTime lastExecution(ZonedDateTime date){
ZonedDateTime previousMatch = previousClosestMatch(date);
|
23,448 | return previousMatch;
} catch (NoSuchValueException e) {
throw new IllegalArgumentException(e);
}
}
<BUG>public Duration timeFromLastExecution(DateTime date){
return new Interval(lastExecution(date), date).toDuration();
}
public boolean isMatch(DateTime date){
</BUG>
return nextExecution(lastExecution(date)).equals(da... | [DELETED] |
23,449 | import org.apache.sling.jcr.resource.JcrResourceConstants;
import org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl;
import org.apache.sling.jcr.resource.internal.helper.MapEntries;
import org.apache.sling.jcr.resource.internal.helper.Mapping;
import org.apache.sling.performance.annotation.Performan... | import org.apache.sling.performance.tests.ResolveNonExistingWithManyAliasTest;
import org.apache.sling.performance.tests.ResolveNonExistingWithManyVanityPathTest;
|
23,450 | @PerformanceTestSuite
public ParameterizedTestList testPerformance() throws Exception {
Helper helper = new Helper();
ParameterizedTestList testCenter = new ParameterizedTestList();
testCenter.setTestSuiteTitle("jcr.resource-2.0.10");
<BUG>testCenter.addTestObject(new ResolveNonExistingWith1000VanityPathTest(helper));
... | testCenter.addTestObject(new ResolveNonExistingWithManyVanityPathTest("ResolveNonExistingWith1000VanityPathTest",helper, 100, 10));
testCenter.addTestObject(new ResolveNonExistingWithManyVanityPathTest("ResolveNonExistingWith5000VanityPathTest",helper, 100, 50));
testCenter.addTestObject(new ResolveNonExistingWithManyV... |
23,451 | package org.apache.sling.performance;
<BUG>import static org.mockito.Mockito.*;
import javax.jcr.NamespaceRegistry;</BUG>
import javax.jcr.Session;
import junitx.util.PrivateAccessor;
| import static org.mockito.Mockito.when;
import static org.mockito.Mockito.mock;
import javax.jcr.NamespaceRegistry;
|
23,452 | import org.apache.sling.jcr.resource.JcrResourceConstants;
import org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl;
import org.apache.sling.jcr.resource.internal.helper.MapEntries;
import org.apache.sling.jcr.resource.internal.helper.Mapping;
import org.apache.sling.performance.annotation.Performan... | import org.apache.sling.performance.tests.ResolveNonExistingWithManyAliasTest;
import org.apache.sling.performance.tests.ResolveNonExistingWithManyVanityPathTest;
|
23,453 | import org.apache.sling.api.resource.ResourceResolver;
import org.apache.sling.jcr.api.SlingRepository;
import org.apache.sling.jcr.resource.JcrResourceConstants;
import org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProviderFactory;
import org.apache.sling.performance.annotation.PerformanceTestSuite;
<BU... | import org.apache.sling.performance.tests.ResolveNonExistingWithManyAliasTest;
import org.apache.sling.performance.tests.ResolveNonExistingWithManyVanityPathTest;
|
23,454 | @PerformanceTestSuite
public ParameterizedTestList testPerformance() throws Exception {
Helper helper = new Helper();
ParameterizedTestList testCenter = new ParameterizedTestList();
testCenter.setTestSuiteTitle("jcr.resource-2.2.0");
<BUG>testCenter.addTestObject(new ResolveNonExistingWith1000VanityPathTest(helper));
t... | testCenter.addTestObject(new ResolveNonExistingWithManyVanityPathTest("ResolveNonExistingWith1000VanityPathTest",helper, 100, 10));
testCenter.addTestObject(new ResolveNonExistingWithManyVanityPathTest("ResolveNonExistingWith5000VanityPathTest",helper, 100, 50));
testCenter.addTestObject(new ResolveNonExistingWithManyV... |
23,455 | package com.james.status.views;
<BUG>import android.animation.Animator;
import android.animation.LayoutTransition;</BUG>
import android.animation.ValueAnimator;
import android.annotation.TargetApi;
import android.app.WallpaperInfo;
| import android.animation.ArgbEvaluator;
import android.animation.LayoutTransition;
|
23,456 | package com.james.status.dialogs;
<BUG>import android.animation.Animator;
import android.content.Context;</BUG>
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
| import android.animation.ArgbEvaluator;
import android.animation.ValueAnimator;
import android.content.Context;
|
23,457 | public void onAnimationCancel(Animator animation) {
}
@Override
public void onAnimationRepeat(Animator animation) {
}
<BUG>}).start();
} else {</BUG>
colorImage.setImageDrawable(new ColorDrawable(color));
colorHex.removeTextChangedListener(textWatcher);
colorHex.setText(String.format("#%06X", (0xFFFFFF & color)));
| });
animator.start();
} else {
|
23,458 | cgl.setLexicalvalue(valueEdit);
cgl.setIdgroup(idDomaine);
cgl.setIdthesaurus(idTheso);
cgl.setLang(langueEdit);
GroupHelper cgh = new GroupHelper();
<BUG>if (!cgh.isDomainExist(connect.getPoolConnexion(),
cgl.getLexicalvalue(),</BUG>
cgl.getIdthesaurus(), cgl.getLang())) {
FacesContext.getCurrentInstance().addMessage(... | if (cgh.isDomainExist(connect.getPoolConnexion(),
cgl.getLexicalvalue(),
|
23,459 | Term terme = new Term();
terme.setId_thesaurus(idTheso);
terme.setLang(langueEdit);
terme.setLexical_value(valueEdit);
terme.setId_term(idT);
<BUG>if (new TermHelper().isTermExist(connect.getPoolConnexion(),
</BUG>
terme.getLexical_value(),
terme.getId_thesaurus(), terme.getLang())) {
FacesContext.getCurrentInstance().... | if (termHelper.isTermExist(connect.getPoolConnexion(),
|
23,460 | Term terme = new Term();
terme.setId_thesaurus(idTheso);
terme.setLang(langueEdit);
terme.setLexical_value(valueEdit);
terme.setId_term(idT);
<BUG>if (new TermHelper().isTermExist(connect.getPoolConnexion(),
</BUG>
terme.getLexical_value(),
terme.getId_thesaurus(), terme.getLang())) {
FacesContext.getCurrentInstance().... | if (termHelper.isTermExist(connect.getPoolConnexion(),
|
23,461 | langues = new ArrayList<>();
HashMap<String, String> tempMapL = new HashMap<>();
for (NodeTermTraduction ntt : tempNTT) {
tempMapL.put(ntt.getLang(), ntt.getLexicalValue());
}
<BUG>langues.addAll(tempMapL.entrySet());
}</BUG>
langueEdit = "";
valueEdit = "";
if (!tradExist) {
| if(newTraduction) {
nom = termHelper.getThisTerm(connect.getPoolConnexion(),idC, idTheso, idlangue).getLexical_value();
|
23,462 | if (n.getTitle().trim().isEmpty()) {
dynamicTreeNode = (TreeNode) new MyTreeNode(1, n.getIdConcept(), idTheso, idlangue, "", "", "dossier", n.getIdConcept(), root);
} else {
dynamicTreeNode = (TreeNode) new MyTreeNode(1, n.getIdConcept(), idTheso, idlangue, "", "", "dossier", n.getTitle(), root);
}
<BUG>new DefaultTree... | DefaultTreeNode defaultTreeNode = new DefaultTreeNode("fake", dynamicTreeNode);
defaultTreeNode.setExpanded(true);
|
23,463 | SKOSXmlDocument sxd = new ReadFileSKOS().readStringBuffer(sb);
for (SKOSResource resource : sxd.getResourcesList()) {
NodeAlignment na = new NodeAlignment();
na.setInternal_id_concept(idC);
na.setInternal_id_thesaurus(idTheso);
<BUG>na.setThesaurus_target("OpenTheso");
</BUG>
na.setUri_target(resource.getUri());
for(SK... | na.setThesaurus_target("Pactols");
|
23,464 | import java.sql.SQLException;
import java.sql.Statement;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Collection;
<BUG>import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;</BUG>
import java.util.concurrent.locks.Lock;
| import java.util.HashMap;
import java.util.Map;
import java.util.Set;
|
23,465 | if (msgin != null) {
try {
msgin.close();
} catch (IOException e) {
}
<BUG>}
}
}
protected void updateSourceSequence(SourceSequence seq)
</BUG>
throws SQLException {
| releaseResources(stmt, null);
protected void storeMessage(Identifier sid, RMMessage msg, boolean outbound)
throws IOException, SQLException {
storeMessage(connection, sid, msg, outbound);
protected void updateSourceSequence(Connection con, SourceSequence seq)
|
23,466 | } catch (SQLException ex) {
if (!isTableExistsError(ex)) {
throw ex;
} else {
LOG.fine("Table CXF_RM_SRC_SEQUENCES already exists.");
<BUG>verifyTable(SRC_SEQUENCES_TABLE_NAME, SRC_SEQUENCES_TABLE_COLS);
</BUG>
}
} finally {
stmt.close();
| verifyTable(con, SRC_SEQUENCES_TABLE_NAME, SRC_SEQUENCES_TABLE_COLS);
|
23,467 | } catch (SQLException ex) {
if (!isTableExistsError(ex)) {
throw ex;
} else {
LOG.fine("Table CXF_RM_DEST_SEQUENCES already exists.");
<BUG>verifyTable(DEST_SEQUENCES_TABLE_NAME, DEST_SEQUENCES_TABLE_COLS);
</BUG>
}
} finally {
stmt.close();
| LOG.fine("Table CXF_RM_SRC_SEQUENCES already exists.");
verifyTable(con, SRC_SEQUENCES_TABLE_NAME, SRC_SEQUENCES_TABLE_COLS);
|
23,468 | }
} finally {
stmt.close();
}
for (String tableName : new String[] {OUTBOUND_MSGS_TABLE_NAME, INBOUND_MSGS_TABLE_NAME}) {
<BUG>stmt = connection.createStatement();
try {</BUG>
stmt.executeUpdate(MessageFormat.format(CREATE_MESSAGES_TABLE_STMT, tableName));
} catch (SQLException ex) {
if (!isTableExistsError(ex)) {
| stmt = con.createStatement();
try {
stmt.executeUpdate(CREATE_DEST_SEQUENCES_TABLE_STMT);
|
23,469 | throw ex;
} else {
if (LOG.isLoggable(Level.FINE)) {
LOG.fine("Table " + tableName + " already exists.");
}
<BUG>verifyTable(tableName, MESSAGES_TABLE_COLS);
</BUG>
}
} finally {
stmt.close();
| LOG.fine("Table CXF_RM_SRC_SEQUENCES already exists.");
verifyTable(con, SRC_SEQUENCES_TABLE_NAME, SRC_SEQUENCES_TABLE_COLS);
|
23,470 | if (newCols.size() > 0) {
if (LOG.isLoggable(Level.FINE)) {
LOG.log(Level.FINE, "Table " + tableName + " needs additional columns");
}
for (String[] newCol : newCols) {
<BUG>Statement st = connection.createStatement();
try {</BUG>
st.executeUpdate(MessageFormat.format(ALTER_TABLE_STMT_STR,
tableName, newCol[0], newCol[... | Statement st = con.createStatement();
try {
|
23,471 | if (nextReconnectAttempt < System.currentTimeMillis()) {
nextReconnectAttempt = System.currentTimeMillis() + reconnectDelay;
reconnectDelay = reconnectDelay * useExponentialBackOff;
}
}
<BUG>}
public static void deleteDatabaseFiles() {</BUG>
deleteDatabaseFiles(DEFAULT_DATABASE_NAME, true);
}
public static void deleteD... | public static void deleteDatabaseFiles() {
|
23,472 | package er.chronic.handlers;
import java.util.Calendar;
import java.util.List;
import er.chronic.Options;
import er.chronic.tags.ScalarDay;
<BUG>import er.chronic.tags.ScalarMonth;
import er.chronic.utils.Time;
import er.chronic.utils.Span;</BUG>
import er.chronic.utils.Token;
public class SmSdHandler implements IHandl... | import er.chronic.utils.Span;
|
23,473 | import er.chronic.tags.SeparatorOn;
import er.chronic.tags.SeparatorSlashOrDash;
import er.chronic.tags.Tag;
import er.chronic.tags.TimeZone;
import er.chronic.tags.Pointer.PointerType;
<BUG>import er.chronic.utils.EndianPrecedence;
import er.chronic.utils.Span;</BUG>
import er.chronic.utils.Time;
import er.chronic.uti... | import er.chronic.utils.Range;
import er.chronic.utils.Span;
|
23,474 | for (HandlerPattern pattern : _patterns) {
boolean optional = pattern.isOptional();
if (pattern instanceof TagPattern) {
boolean match = (tokenIndex < tokens.size() && tokens.get(tokenIndex).getTags(((TagPattern) pattern).getTagClass()).size() > 0);
if (!match && !optional) {
<BUG>return false;
}</BUG>
if (match) {
tok... | return null;
|
23,475 | dateHandlers.add(new Handler(new RmnSyHandler(), new TagPattern(RepeaterMonthName.class), new TagPattern(ScalarYear.class)));
dateHandlers.add(new Handler(new SdRmnSyHandler(), new TagPattern(ScalarDay.class), new TagPattern(RepeaterMonthName.class), new TagPattern(ScalarYear.class), new TagPattern(SeparatorAt.class, t... | dateHandlers.add(new Handler(new SmSdHandler(), false, new HandlerTypePattern(Handler.HandlerType.TIME, true), new TagPattern(SeparatorOn.class, true), new TagPattern(ScalarMonth.class), new TagPattern(SeparatorSlashOrDash.class), new TagPattern(ScalarDay.class)));
dateHandlers.add(new Handler(new SmSyHandler(), new Ta... |
23,476 | import org.sonar.api.component.Component;
import org.sonar.api.config.Settings;
import org.sonar.api.issue.Issue;
import org.sonar.api.issue.IssueQuery;
import org.sonar.api.issue.IssueQueryResult;
<BUG>import org.sonar.api.issue.action.Action;
import org.sonar.api.issue.action.Function;</BUG>
import org.sonar.api.issu... | import org.sonar.api.issue.action.Actions;
import org.sonar.api.issue.action.Function;
|
23,477 | IssueQuery query = IssueQuery.builder().issueKeys(newArrayList(issueKey)).requiredRole(UserRole.USER).build();
return finder.find(query);
}
@CheckForNull
private Action getAction(final String actionKey) {
<BUG>return Iterables.find(actions, new Predicate<Action>() {
</BUG>
@Override
public boolean apply(Action action) ... | return Iterables.find(actions.list(), new Predicate<Action>() {
|
23,478 | import org.sonar.api.component.Component;
import org.sonar.api.config.Settings;
import org.sonar.api.issue.Issue;
import org.sonar.api.issue.IssueQuery;
import org.sonar.api.issue.IssueQueryResult;
<BUG>import org.sonar.api.issue.action.Action;
</BUG>
import org.sonar.api.issue.action.Function;
import org.sonar.api.iss... | import org.sonar.api.issue.action.Actions;
|
23,479 | finder = mock(DefaultIssueFinder.class);
issueStorage = mock(IssueStorage.class);
updater = mock(IssueUpdater.class);
propertiesDao = mock(PropertiesDao.class);
settings = new Settings();
<BUG>actions = newArrayList();
</BUG>
actionService = new ActionService(finder, issueStorage, updater, settings, propertiesDao, acti... | actions = new Actions();
|
23,480 | IssueQueryResult issueQueryResult = mock(DefaultIssueQueryResult.class);
when(issueQueryResult.first()).thenReturn(issue);
Component project = mock(Component.class);
when(issueQueryResult.component(issue)).thenReturn(project);
when(finder.find(any(IssueQuery.class))).thenReturn(issueQueryResult);
<BUG>actions.add(Actio... | actions.add("link-to-jira").setConditions(new AlwaysMatch()).setFunctions(function1, function2);
|
23,481 | public void should_not_execute_function_if_action_not_found() {
Function function = mock(Function.class);
Issue issue = new DefaultIssue().setKey("ABCD");
IssueQueryResult issueQueryResult = new DefaultIssueQueryResult(newArrayList(issue));
when(finder.find(any(IssueQuery.class))).thenReturn(issueQueryResult);
<BUG>act... | actions.add("link-to-jira").setConditions(new AlwaysMatch()).setFunctions(function);
|
23,482 | public void should_not_execute_function_if_action_is_not_supported() {
Function function = mock(Function.class);
Issue issue = new DefaultIssue().setKey("ABCD");
IssueQueryResult issueQueryResult = new DefaultIssueQueryResult(newArrayList(issue));
when(finder.find(any(IssueQuery.class))).thenReturn(issueQueryResult);
<... | actions.add("link-to-jira").setConditions(new NeverMatch()).setFunctions(function);
|
23,483 | }
@Test
public void should_list_available_supported_actions() {
Issue issue = new DefaultIssue().setKey("ABCD");
IssueQueryResult issueQueryResult = new DefaultIssueQueryResult(newArrayList(issue));
<BUG>when(finder.find(any(IssueQuery.class))).thenReturn(issueQueryResult);
Action action1 = Action.builder("link-to-jira... | verifyZeroInteractions(function);
|
23,484 | } else {
boolean isLastPage = searchResult.count < GlobalConfig.PAGE_SIZE_CATEGORY;</BUG>
if (isLastPage) {
<BUG>mView.showTip("已经是最后一页了");
}
mView.setLoadMoreIsLastPage(isLastPage);
mView.addSearchItems(searchResult);</BUG>
}
}
});
| mView.addSearchItems(searchResult);
boolean isLastPage = searchResult.count < GlobalConfig.PAGE_SIZE_CATEGORY;
mView.setLoadMoreIsLastPage();
|
23,485 | void setSearchItems(SearchResult searchResult);
void addSearchItems(SearchResult searchResult);
void showSwipLoading();
void hideSwipLoading();
void showTip(String msg);
<BUG>void setLoadMoreIsLastPage(boolean isLastPage);
}</BUG>
interface Presenter extends BasePresenter {
void search(String searchText, int page, bool... | void setLoadMoreIsLastPage();
void setEmpty();
void setLoading();
|
23,486 | void setAndroidItems(CategoryResult categoryResult);
void addAndroidItems(CategoryResult categoryResult);
void getAndroidItemsFail(String failMessage, final int number, final int page, final boolean isRefresh);
String getCategoryName();
void showSwipLoading();
<BUG>void hideSwipLoading();
}</BUG>
interface Presenter ex... | void setLoading();
|
23,487 | mSwipeRefreshLayoutSearch.setRefreshing(false);
mSwipeRefreshLayoutSearch.setEnabled(false);
mSearchListAdapter = new SearchListAdapter(this);
mRecyclerViewSearch.setLayoutManager(new LinearLayoutManager(this));
mRecyclerViewSearch.addItemDecoration(new RecycleViewDivider(this, LinearLayoutManager.HORIZONTAL));
<BUG>mR... | mRecyclerViewSearch.setOnLoadMoreListener(this);
mRecyclerViewSearch.setEmpty();
}
|
23,488 | public void onLoadMore() {
mPage += 1;
mSearchPresenter.search(mEdSearch.getText().toString().trim(), mPage, true);
}
@OnClick(R.id.iv_edit_clear)
<BUG>public void editClear() {
mEdSearch.setText("");
KeyboardUtils.showSoftInput(this, mEdSearch);
}</BUG>
@OnClick(R.id.iv_search)
| mRecyclerViewSearch.setEmpty();
mSearchPresenter.unsubscribe();
|
23,489 | values.setSelectedItem(selection);
values.getEditor().setItem(selection);
p.add(new JLabel(tr("Value")), GBC.std());
p.add(Box.createHorizontalStrut(10), GBC.std());
p.add(values, GBC.eol().fill(GBC.HORIZONTAL));
<BUG>addFocusAdapter(allData, keys, values);
</BUG>
final JOptionPane optionPane = new JOptionPane(panel, J... | addFocusAdapter(row, allData, keys, values);
|
23,490 | JPanel p2 = new JPanel(new BorderLayout());
p.add(p2, BorderLayout.SOUTH);
p2.add(new JLabel(tr("Please select a value")), BorderLayout.NORTH);
final AutoCompleteComboBox values = new AutoCompleteComboBox();
values.setEditable(true);
<BUG>p2.add(values, BorderLayout.CENTER);
JOptionPane pane = new JOptionPane(p, JOptio... | addFocusAdapter(-1, allData, keys, values);
JOptionPane pane = new JOptionPane(p, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION){
|
23,491 | if (value.equals(""))
return;
Main.main.undoRedo.add(new ChangePropertyCommand(sel, key, value));
selectionChanged(sel); // update table
Main.parent.repaint(); // repaint all - drawing could have been changed
<BUG>}
private void addFocusAdapter(
final TreeMap<String, TreeSet<String>> allData,
final AutoCompleteComboBox... | private void addFocusAdapter(final int row, final TreeMap<String, TreeSet<String>> allData,final AutoCompleteComboBox keys, final AutoCompleteComboBox values) {
|
23,492 | private final DefaultTableModel propertyData = new DefaultTableModel() {
@Override public boolean isCellEditable(int row, int column) {
return false;
}
@Override public Class<?> getColumnClass(int columnIndex) {
<BUG>return columnIndex == 1 ? Relation.class : String.class;
}</BUG>
};
private final DefaultTableModel mem... | return String.class;
|
23,493 | if (value == null) {
value = new TreeSet<String>();
roles.put(r, value);
}
value.add(m.role);
<BUG>valueCountM.put(r, valueCount.containsKey(r) ? valueCount.get(r)+1 : 1);
</BUG>
}
}
}
| [DELETED] |
23,494 | import org.apache.commons.lang3.math.NumberUtils;
import org.json.JSONException;
import org.mariotaku.microblog.library.MicroBlog;
import org.mariotaku.microblog.library.MicroBlogException;
import org.mariotaku.microblog.library.twitter.model.RateLimitStatus;
<BUG>import org.mariotaku.microblog.library.twitter.model.St... | import org.mariotaku.pickncrop.library.PNCUtils;
import org.mariotaku.sqliteqb.library.AllColumns;
|
23,495 | context.getApplicationContext().sendBroadcast(intent);
}
}
@Nullable
public static Location getCachedLocation(Context context) {
<BUG>if (BuildConfig.DEBUG) {
Log.v(LOGTAG, "Fetching cached location", new Exception());
}</BUG>
Location location = null;
| DebugLog.v(LOGTAG, "Fetching cached location", new Exception());
|
23,496 | FileBody fileBody = null;
try {
fileBody = getFileBody(context, imageUri);
twitter.updateProfileBannerImage(fileBody);
} finally {
<BUG>Utils.closeSilently(fileBody);
if (deleteImage && "file".equals(imageUri.getScheme())) {
final File file = new File(imageUri.getPath());
if (!file.delete()) {
Log.w(LOGTAG, String.form... | if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
23,497 | FileBody fileBody = null;
try {
fileBody = getFileBody(context, imageUri);
twitter.updateProfileBackgroundImage(fileBody, tile);
} finally {
<BUG>Utils.closeSilently(fileBody);
if (deleteImage && "file".equals(imageUri.getScheme())) {
final File file = new File(imageUri.getPath());
if (!file.delete()) {
Log.w(LOGTAG, S... | twitter.updateProfileBannerImage(fileBody);
if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
23,498 | FileBody fileBody = null;
try {
fileBody = getFileBody(context, imageUri);
return twitter.updateProfileImage(fileBody);
} finally {
<BUG>Utils.closeSilently(fileBody);
if (deleteImage && "file".equals(imageUri.getScheme())) {
final File file = new File(imageUri.getPath());
if (!file.delete()) {
Log.w(LOGTAG, String.for... | twitter.updateProfileBannerImage(fileBody);
if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
23,499 | import org.mariotaku.twidere.receiver.NotificationReceiver;
import org.mariotaku.twidere.service.LengthyOperationsService;
import org.mariotaku.twidere.util.ActivityTracker;
import org.mariotaku.twidere.util.AsyncTwitterWrapper;
import org.mariotaku.twidere.util.DataStoreFunctionsKt;
<BUG>import org.mariotaku.twidere.u... | import org.mariotaku.twidere.util.DebugLog;
import org.mariotaku.twidere.util.ImagePreloader;
|
23,500 | final List<InetAddress> addresses = mDns.lookup(host);
for (InetAddress address : addresses) {
c.addRow(new String[]{host, address.getHostAddress()});
}
} catch (final IOException ignore) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, ignore);
}</BUG>
}
| DebugLog.w(LOGTAG, null, ignore);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.