id
int64
1
49k
buggy
stringlengths
34
37.5k
fixed
stringlengths
2
37k
45,601
} public static LatLng getCachedLatLng(@NonNull final Context context) { final Context appContext = context.getApplicationContext(); final SharedPreferences prefs = DependencyHolder.Companion.get(context).getPreferences(); if (!prefs.getBoolean(KEY_USAGE_STATISTICS, false)) return null; <BUG>if (BuildConfig.DEBUG) { Log.d(HotMobiLogger.LOGTAG, "getting cached location"); }</BUG> final Location location = Utils.getCachedLocation(appContext);
DebugLog.d(HotMobiLogger.LOGTAG, "getting cached location", null);
45,602
public int destroySavedSearchAsync(final UserKey accountKey, final long searchId) { final DestroySavedSearchTask task = new DestroySavedSearchTask(accountKey, searchId); return asyncTaskManager.add(task, true); } public int destroyStatusAsync(final UserKey accountKey, final String statusId) { <BUG>final DestroyStatusTask task = new DestroyStatusTask(context,accountKey, statusId); </BUG> return asyncTaskManager.add(task, true); } public int destroyUserListAsync(final UserKey accountKey, final String listId) {
final DestroyStatusTask task = new DestroyStatusTask(context, accountKey, statusId);
45,603
@Override public void afterExecute(Bus handler, SingleResponse<Relationship> result) { if (result.hasData()) { handler.post(new FriendshipUpdatedEvent(accountKey, userKey, result.getData())); } else if (result.hasException()) { <BUG>if (BuildConfig.DEBUG) { Log.w(LOGTAG, "Unable to update friendship", result.getException()); }</BUG> }
public UserKey[] getAccountKeys() { return DataStoreUtils.getActivatedAccountKeys(context);
45,604
MicroBlog microBlog = MicroBlogAPIFactory.getInstance(context, accountId); if (!Utils.isOfficialCredentials(context, accountId)) continue; try { microBlog.setActivitiesAboutMeUnread(cursor); } catch (MicroBlogException e) { <BUG>if (BuildConfig.DEBUG) { Log.w(LOGTAG, e); }</BUG> }
DebugLog.w(LOGTAG, null, e);
45,605
dbiMeasure.put("gpsd_lat", slat); dbiMeasure.put("gpsd_lon", slon); dbiMeasure.put("gpsd_accu", cell.getAccuracy()); dbiMeasure.put("bb_power", "0"); //TODO: This is not yet available, setting to "0" dbiMeasure.put("tx_power", "0"); //TODO putting 0 here as we don't have this value yet <BUG>dbiMeasure.put("rx_signal", String.valueOf(cell.getDBM())); //TODO putting cell.getDBM() here so we have some signal for OCID upload. </BUG> dbiMeasure.put("RAT", String.valueOf(cell.getNetType())); dbiMeasure.put("TA", cell.getTimingAdvance()); //TODO does this actually get timing advance? dbiMeasure.put("BER", 0); //TODO setting 0 because we don't have data yet.
dbiMeasure.put("rx_signal", String.valueOf(cell.getDbm())); //TODO putting cell.getDBM() here so we have some signal for OCID upload.
45,606
dbiMeasure.put("TA", cell.getTimingAdvance()); //TODO does this actually get timing advance? dbiMeasure.put("BER", 0); //TODO setting 0 because we don't have data yet. dbiMeasure.put("isSubmitted", 0); dbiMeasure.put("isNeighbour", 0); mDb.insert("DBi_measure", null, dbiMeasure); <BUG>log.info("DBi_measure inserted bts_id=" + cell.getCID()); // TODO: NO!! </BUG> } else { ContentValues dbiMeasure = new ContentValues(); if (Double.doubleToRawLongBits(cell.getLat()) != 0
log.info("DBi_measure inserted bts_id=" + cell.getCid()); // TODO: NO!!
45,607
} if (Double.doubleToRawLongBits(cell.getAccuracy()) != 0 && cell.getAccuracy() > 0) { dbiMeasure.put("gpsd_accu", cell.getAccuracy()); } <BUG>if (cell.getDBM() > 0) { dbiMeasure.put("rx_signal", String.valueOf(cell.getDBM())); // [dBm] </BUG> }
if (cell.getDbm() > 0) { dbiMeasure.put("rx_signal", String.valueOf(cell.getDbm())); // [dBm]
45,608
</BUG> } if (cell.getTimingAdvance() > 0) { dbiMeasure.put("TA", cell.getTimingAdvance()); // Only available on API >16 on LTE } <BUG>mDb.update("DBi_measure", dbiMeasure, "bts_id=?", new String[]{Integer.toString(cell.getCID())}); log.info("DBi_measure updated bts_id=" + cell.getCID()); </BUG> }
if (Double.doubleToRawLongBits(cell.getAccuracy()) != 0 && cell.getAccuracy() > 0) { dbiMeasure.put("gpsd_accu", cell.getAccuracy()); if (cell.getDbm() > 0) { dbiMeasure.put("rx_signal", String.valueOf(cell.getDbm())); // [dBm]
45,609
Helpers.msgShort(this, getString(R.string.waiting_for_location)); LocationServices.LocationAsync locationAsync = new LocationServices.LocationAsync(); locationAsync.delegate = this; locationAsync.execute( <BUG>mAimsicdService.getCell().getCID(), mAimsicdService.getCell().getLAC(), mAimsicdService.getCell().getMNC(), mAimsicdService.getCell().getMCC()); </BUG> }
mAimsicdService.getCell().getCid(), mAimsicdService.getCell().getLac(), mAimsicdService.getCell().getMnc(), mAimsicdService.getCell().getMcc());
45,610
}); } GeoPoint ret = new GeoPoint(0, 0); if (mBound) { try { <BUG>int mcc = mAimsicdService.getCell().getMCC(); </BUG> double[] d = mDbHelper.getDefaultLocation(mcc); ret = new GeoPoint(d[0], d[1]); } catch (Exception e) {
int mcc = mAimsicdService.getCell().getMcc();
45,611
private final String mCountry; private final String mPsc; private final String mTimestamp; private final String mRecordId; public CardItemData(Cell cell, String recordId) { <BUG>if (cell.getCID() != Integer.MAX_VALUE && cell.getCID() != -1) { mCellID = "CID: " + cell.getCID() + " (0x" + Integer.toHexString(cell.getCID()) + ")"; </BUG> } else {
if (cell.getCid() != Integer.MAX_VALUE && cell.getCid() != -1) { mCellID = "CID: " + cell.getCid() + " (0x" + Integer.toHexString(cell.getCid()) + ")";
45,612
mCellID = "CID: " + cell.getCID() + " (0x" + Integer.toHexString(cell.getCID()) + ")"; </BUG> } else { mCellID = "N/A"; } <BUG>if (cell.getLAC() != Integer.MAX_VALUE && cell.getLAC() != -1) { mLac = "LAC: " + cell.getLAC(); </BUG> } else {
private final String mCountry; private final String mPsc; private final String mTimestamp; private final String mRecordId; public CardItemData(Cell cell, String recordId) { if (cell.getCid() != Integer.MAX_VALUE && cell.getCid() != -1) { mCellID = "CID: " + cell.getCid() + " (0x" + Integer.toHexString(cell.getCid()) + ")"; if (cell.getLac() != Integer.MAX_VALUE && cell.getLac() != -1) { mLac = "LAC: " + cell.getLac();
45,613
TableRow tr; if (mBound) { final AnimationManager ani = new AnimationManager(); mAimsicdService.getCellTracker().refreshDevice(); Device mDevice = mAimsicdService.getCellTracker().getDevice(); <BUG>switch (mDevice.getPhoneID()) { </BUG> case TelephonyManager.PHONE_TYPE_NONE: // Maybe bad! case TelephonyManager.PHONE_TYPE_SIP: // Maybe bad! case TelephonyManager.PHONE_TYPE_GSM: {
switch (mDevice.getPhoneId()) {
45,614
} case TelephonyManager.PHONE_TYPE_CDMA: { tr = (TableRow) getView().findViewById(R.id.cdma_netid); tr.setVisibility(View.VISIBLE); content = (HighlightTextView) getView().findViewById(R.id.network_netid); <BUG>content.updateText(String.valueOf(mAimsicdService.getCell().getLAC()), ani); </BUG> tr = (TableRow) getView().findViewById(R.id.cdma_sysid); tr.setVisibility(View.VISIBLE); content = (HighlightTextView) getView().findViewById(R.id.network_sysid);
@Override public void onServiceDisconnected(ComponentName arg0) { log.error("Service Disconnected"); mBound = false;
45,615
</BUG> content = (HighlightTextView) getView().findViewById(R.id.data_status); content.updateText(mDevice.getDataState(), ani); content = (HighlightTextView) getView().findViewById(R.id.network_roaming); <BUG>content.updateText(mDevice.isRoaming(), ani); </BUG> ani.startAnimation(5000); } } @Override
content = (HighlightTextView) getView().findViewById(R.id.network_code); content.updateText(mDevice.getMncMcc(), ani); content = (HighlightTextView) getView().findViewById(R.id.network_type); content.updateText(mDevice.getNetworkTypeName(), ani); content = (HighlightTextView) getView().findViewById(R.id.data_activity); content.updateText(mDevice.getDataActivityType(), ani); content.updateText(String.valueOf(mDevice.isRoaming()), ani);
45,616
try { JSONObject jsonCell = new JSONObject(response.body().string()); Cell cell = new Cell(); cell.setLat(jsonCell.getDouble("lat")); cell.setLon(jsonCell.getDouble("lon")); <BUG>cell.setMCC(jsonCell.getInt("mcc")); cell.setMNC(jsonCell.getInt("mnc")); cell.setCID(jsonCell.getInt("cellid")); cell.setLAC(jsonCell.getInt("lac")); </BUG> return cell;
cell.setMcc(jsonCell.getInt("mcc")); cell.setMnc(jsonCell.getInt("mnc")); cell.setCid(jsonCell.getInt("cellid")); cell.setLac(jsonCell.getInt("lac"));
45,617
public PortletURL getPortletURL(HttpServletRequest request) throws PortalException { ThemeDisplay themeDisplay = (ThemeDisplay)request.getAttribute( WebKeys.THEME_DISPLAY); Group group = themeDisplay.getSiteGroup(); <BUG>PortletURL portletURL = super.getPortletURL(request); if (group.isLayoutSetPrototype()) { portletURL.setParameter("privateLayout", Boolean.TRUE.toString()); }</BUG> return portletURL;
if ((!group.hasPublicLayouts() && group.hasPrivateLayouts()) ||
45,618
public PortletURL getPortletURL(HttpServletRequest request) throws PortalException { ThemeDisplay themeDisplay = (ThemeDisplay)request.getAttribute( WebKeys.THEME_DISPLAY); Group group = themeDisplay.getSiteGroup(); <BUG>PortletURL portletURL = super.getPortletURL(request); if (group.isLayoutSetPrototype()) { portletURL.setParameter("privateLayout", Boolean.TRUE.toString()); }</BUG> return portletURL;
if ((!group.hasPublicLayouts() && group.hasPrivateLayouts()) ||
45,619
} @Override</BUG> public Number divide( Object dividend, Object divisor ) throws DataException { <BUG>Number[] args = convert( dividend, divisor ); return super.divide( args[0], args[1] ); } @Override</BUG> public Number multiply( Object a, Object b ) throws DataException
[DELETED]
45,620
} @Override</BUG> public Number safeDivide( Object dividend, Object divisor, Number ifZero ) throws DataException { <BUG>Number[] args = convert( dividend, divisor ); return super.safeDivide( args[0], args[1], ifZero ); } @Override public Number subtract( Object a, Object b ) throws DataException</BUG> {
public Number divide( Object dividend, Object divisor )
45,621
package org.eclipse.birt.data.aggregation.calculator; <BUG>import java.math.BigDecimal; import java.util.Date;</BUG> public class CalculatorFactory { private CalculatorFactory( )
import org.eclipse.birt.core.data.DataType;
45,622
package org.eclipse.birt.data.aggregation.calculator; import java.math.BigDecimal; import java.math.MathContext; import org.eclipse.birt.core.data.DataTypeUtil; <BUG>import org.eclipse.birt.core.exception.BirtException; import org.eclipse.birt.data.engine.core.DataException;</BUG> public class BigDecimalCalculator implements ICalculator { public Number add( Object a, Object b ) throws DataException
import org.eclipse.birt.data.aggregation.i18n.ResourceConstants; import org.eclipse.birt.data.aggregation.impl.AggrException; import org.eclipse.birt.data.engine.core.DataException;
45,623
package net.osmand.plus.audionotes; import java.io.File; <BUG>import java.io.IOException; import java.lang.reflect.Method;</BUG> import java.util.ArrayList; import java.util.Arrays; import java.util.Collection;
import java.lang.reflect.Constructor; import java.lang.reflect.Method;
45,624
import net.osmand.plus.OsmandApplication; import net.osmand.plus.OsmandPlugin; import net.osmand.plus.OsmandSettings; import net.osmand.plus.R; import net.osmand.plus.activities.LocalIndexHelper.LocalIndexType; <BUG>import net.osmand.plus.activities.LocalIndexInfo; import net.osmand.plus.activities.LocalIndexesActivity.LoadLocalIndexTask; import net.osmand.plus.activities.LocalIndexesActivity;</BUG> import net.osmand.plus.activities.MapActivity; import net.osmand.plus.activities.SettingsActivity;
import net.osmand.plus.activities.LocalIndexesActivity;
45,625
package com.orientechnologies.common.io; import java.io.ByteArrayOutputStream; import java.io.Externalizable; import java.io.IOException; <BUG>import java.io.ObjectOutputStream; import java.util.Locale;</BUG> public class OIOUtils { public static final long SECOND = 1000; public static final long MINUTE = SECOND * 60;
import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale;
45,626
import net.minecraft.client.settings.KeyBinding; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemAxe; <BUG>import net.minecraft.item.ItemBow; import net.minecraft.item.ItemSword;</BUG> import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.InputEvent; import net.minecraftforge.fml.relauncher.Side;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword;
45,627
import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.security.DigestOutputStream; import java.security.MessageDigest; <BUG>import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.Collections; import java.util.List;</BUG> public final class PatchUtils {
import java.text.DateFormat; import java.util.Date; import java.util.List;
45,628
package org.jboss.as.patching.runner; <BUG>import org.jboss.as.boot.DirectoryStructure; import org.jboss.as.patching.LocalPatchInfo;</BUG> import org.jboss.as.patching.PatchInfo; import org.jboss.as.patching.PatchLogger; import org.jboss.as.patching.PatchMessages;
import static org.jboss.as.patching.runner.PatchUtils.generateTimestamp; import org.jboss.as.patching.CommonAttributes; import org.jboss.as.patching.LocalPatchInfo;
45,629
private static final String PATH_DELIMITER = "/"; public static final byte[] NO_CONTENT = PatchingTask.NO_CONTENT; enum Element { ADDED_BUNDLE("added-bundle"), ADDED_MISC_CONTENT("added-misc-content"), <BUG>ADDED_MODULE("added-module"), BUNDLES("bundles"),</BUG> CUMULATIVE("cumulative"), DESCRIPTION("description"), MISC_FILES("misc-files"),
APPLIES_TO_VERSION("applies-to-version"), BUNDLES("bundles"),
45,630
final int count = reader.getAttributeCount(); for (int i = 0; i < count; i++) { final String value = reader.getAttributeValue(i); final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i)); switch (attribute) { <BUG>case APPLIES_TO_VERSION: builder.addAppliesTo(value); break;</BUG> case RESULTING_VERSION: if(type == Patch.PatchType.CUMULATIVE) {
[DELETED]
45,631
final StringBuilder path = new StringBuilder(); for(final String p : item.getPath()) { path.append(p).append(PATH_DELIMITER); } path.append(item.getName()); <BUG>writer.writeAttribute(Attribute.PATH.name, path.toString()); if(type != ModificationType.REMOVE) {</BUG> writer.writeAttribute(Attribute.HASH.name, bytesToHexString(item.getContentHash())); } if(type != ModificationType.ADD) {
if (item.isDirectory()) { writer.writeAttribute(Attribute.DIRECTORY.name, "true"); if(type != ModificationType.REMOVE) {
45,632
package org.jboss.as.patching; import org.jboss.as.controller.OperationFailedException; import org.jboss.as.patching.runner.PatchingException; import org.jboss.logging.Messages; import org.jboss.logging.annotations.Message; <BUG>import org.jboss.logging.annotations.MessageBundle; import java.io.IOException;</BUG> import java.util.List; @MessageBundle(projectCode = "JBAS") public interface PatchMessages {
import org.jboss.logging.annotations.Cause; import java.io.IOException;
45,633
else { throw new GeppettoExecutionException("The user " + user.getName() + " has no queued experiments."); } } <BUG>@Override public void experimentError(Exception e,IExperiment experiment) { String errorMessage = "Error running experiment with id " + experiment.getId();</BUG> this.geppettoManagerCallbackListener.simulationError(errorMessage, e); }
throw new GeppettoExecutionException("The experiment " + experiment.getId() + " is not queued."); public void experimentError(Exception e, String errorMessage) {
45,634
{ return getRuntimeProject(geppettoProject).resolveImportType(typePaths); } @Override public void setISimulationListener(IGeppettoManagerCallbackListener listener) { <BUG>this.geppettoManagerCallbackListener = listener; } @Override public void experimentError(Exception exception, String errorMessage, IExperiment experiment) { this.geppettoManagerCallbackListener.simulationError(errorMessage, exception);</BUG> }
throw new GeppettoAccessException("Insufficient access rights to load project."); if(!projects.containsKey(project))
45,635
IBEACON((byte)0x7, IBeacon.Register.values()), HAPTIC((byte)0x8, Haptic.Register.values()), DATA_PROCESSOR((byte) 0x9, DataProcessor.Register.values()), EVENT((byte)0xa, Event.Register.values()), LOGGING((byte)0xb, Logging.Register.values()), <BUG>TIMER((byte)0xc, Timer.Register.values()), DEBUG((byte)0xfe, Debug.Register.values());</BUG> public final byte opcode; private final HashMap<Byte, Register> registers; private Module(byte opcode, Register[] registers) {
I2C((byte) 0xd, com.mbientlab.metawear.api.controller.I2C.Register.values()), MACRO((byte) 0xf, Macro.Register.values()), SETTINGS((byte) 0x11, Settings.Register.values()), DEBUG((byte)0xfe, Debug.Register.values());
45,636
public void chainFilters(byte srcFilterId, byte srcSize, FilterConfig config); public void addFilter(Trigger trigger, FilterConfig config); public void addReadFilter(Trigger trigger, FilterConfig config); public void setFilterConfiguration(byte filterId, FilterConfig config); public void resetFilterState(byte filterId); <BUG>public void setFilterState(byte filterId, byte[]state); </BUG> public void removeFilter(byte filterId); public void removeAllFilters(); public void enableFilterNotify(byte filterId);
public void setFilterState(byte filterId, byte[] state);
45,637
((Callbacks) it).receivedCommandBytes(commandBytes); } } }, REMOVE_ENTRY { <BUG>@Override public byte opcode() { return 0x4; } };</BUG> @Override public Module module() { return Module.EVENT; } @Override
REMOVE_ALL_ENTRIES { @Override public byte opcode() { return 0x5; } };
45,638
import java.util.Collection; import com.mbientlab.metawear.api.MetaWearController.ModuleCallbacks; import com.mbientlab.metawear.api.MetaWearController.ModuleController; import com.mbientlab.metawear.api.Module; import static com.mbientlab.metawear.api.Module.GPIO; <BUG>public interface GPIO extends ModuleController { public enum Register implements com.mbientlab.metawear.api.Register {</BUG> SET_DIGITAL_OUTPUT { @Override public byte opcode() { return 0x1; } },
public static final byte ANALOG_DATA_SIZE= 2; public static final byte DIGITAL_DATA_SIZE= 1; public static final byte PIN_CHANGE_NOTIFY_SIZE= 1; public enum Register implements com.mbientlab.metawear.api.Register {
45,639
import android.bluetooth.BluetoothProfile; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; <BUG>import android.os.Binder; import android.os.IBinder;</BUG> import android.support.v4.content.LocalBroadcastManager; public class MetaWearBleService extends Service { private enum DeviceState {
import android.os.Build; import android.os.IBinder;
45,640
"com.mbientlab.com.metawear.api.MetaWearBleService.Action.CHARACTERISTIC_READ"; public static final String RSSI_READ= "com.mbientlab.com.metawear.api.MetaWearBleService.Action.RSSI_READ"; } private class Extra { <BUG>public static final String EXPLICIT_CLOSE= "com.mbientlab.metawear.api.MetaWearBleService.Extra.EXPLICIT_CLOSE";</BUG> public static final String BLUETOOTH_DEVICE= "com.mbientlab.metawear.api.MetaWearBleService.Extra.BLUETOOTH_DEVICE"; public static final String GATT_OPERATION=
[DELETED]
45,641
"com.mbientlab.com.metawear.api.MetaWearBleService.Extra.CHARACTERISTIC_UUID"; public static final String CHARACTERISTIC_VALUE= "com.mbientlab.com.metawear.api.MetaWearBleService.Extra.CHARACTERISTIC_VALUE"; } private interface GattAction { <BUG>public void execAction(); </BUG> } private interface InternalCallback { public void process(byte[] data);
public boolean execAction();
45,642
}; } return mwBroadcastReceiver; } private void broadcastIntent(Intent intent) { <BUG>if (useLocalBroadcastMnger) { LocalBroadcastManager.getInstance(this).sendBroadcast(intent); </BUG> } else {
if (localBroadcastMngr != null) { localBroadcastMngr.sendBroadcast(intent);
45,643
mwState.deviceState= DeviceState.READING_CHARACTERISTICS; readCharacteristic(mwState); } else if (mwState.readyToClose) {</BUG> close(mwState.notifyUser); } <BUG>} execGattAction(); </BUG> } @Override
intent.putExtra(Extra.SERVICE_UUID, characteristic.getService().getUuid()); intent.putExtra(Extra.CHARACTERISTIC_UUID, characteristic.getUuid()); intent.putExtra(Extra.CHARACTERISTIC_VALUE, characteristic.getValue()); intent.putExtra(Extra.BLUETOOTH_DEVICE, mwState.mwBoard); broadcastIntent(intent); if (mwState.readyToClose && mwState.numGattActions.get() == 0) { execGattAction(true);
45,644
Intent intent= new Intent(Action.GATT_ERROR); intent.putExtra(Extra.STATUS, status); intent.putExtra(Extra.GATT_OPERATION, DeviceCallbacks.GattOperation.CHARACTERISTIC_WRITE); intent.putExtra(Extra.BLUETOOTH_DEVICE, mwState.mwBoard); broadcastIntent(intent); <BUG>} if (!mwState.commandBytes.isEmpty()) writeCommand(mwState); else mwState.deviceState= DeviceState.READY; if (mwState.deviceState == DeviceState.READY) { if (!mwState.readCharUuids.isEmpty()) { mwState.deviceState= DeviceState.READING_CHARACTERISTICS; readCharacteristic(mwState); } else if (mwState.readyToClose) {</BUG> close(mwState.notifyUser);
[DELETED]
45,645
mwState.deviceState= DeviceState.READING_CHARACTERISTICS; readCharacteristic(mwState); } else if (mwState.readyToClose) {</BUG> close(mwState.notifyUser); } <BUG>} execGattAction(); </BUG> } @Override
Intent intent= new Intent(Action.GATT_ERROR); intent.putExtra(Extra.STATUS, status); intent.putExtra(Extra.GATT_OPERATION, DeviceCallbacks.GattOperation.CHARACTERISTIC_WRITE); intent.putExtra(Extra.BLUETOOTH_DEVICE, mwState.mwBoard); broadcastIntent(intent); if (mwState.readyToClose && mwState.numGattActions.get() == 0) { execGattAction(true);
45,646
public void disableComponent(Component component) { disableNotification(component); } @Override public void enableNotification(Component component) { <BUG>writeRegister(mwState, Register.GLOBAL_ENABLE, (byte)0); writeRegister(mwState, component.enable, (byte)1); writeRegister(mwState, component.status, (byte)1); writeRegister(mwState, Register.GLOBAL_ENABLE, (byte)1); </BUG> }
[DELETED]
45,647
configurations.clear(); globalConfig= new byte[] {0, 0, 0x18, 0, 0}; } } @Override <BUG>public ThresholdConfig enableTapDetection(TapType type, Axis axis) { </BUG> byte[] tapConfig; if (!configurations.containsKey(Component.PULSE)) { tapConfig= new byte[] {0x40, 0, 0x40, 0x40, 0x50, 0x18, 0x14, 0x3c};
public TapConfig enableTapDetection(TapType type, Axis axis) {
45,648
break; } configurations.put(Component.PULSE, tapConfig); activeComponents.add(Component.PULSE); activeNotifications.add(Component.PULSE); <BUG>return new ThresholdConfig() { </BUG> @Override public ThresholdConfig withThreshold(float gravity) { byte nSteps= (byte) (gravity / MMA8452Q_G_PER_STEP);
case DOUBLE_TAP: tapConfig[0] |= 1 << (1 + 2 * axis.ordinal()); return new TapConfig() {
45,649
break; case ORIENTATION: config[2]= (byte) (Math.max(100 / (10 * multiplier), 20)); break; case PULSE: <BUG>config[5]= (byte) (Math.min(Math.max(60 / (2.5 * multiplier), 5), 0.625)); config[6]= (byte) (Math.min(Math.max(200 / (5 * multiplier), 10), 1.25)); config[7]= (byte) (Math.min(Math.max(300 / (5 * multiplier), 10), 1.25)); </BUG> break;
config[5]= (byte) (Math.min(Math.max(tapDuration / (2.5 * multiplier), 5), 0.625)); config[6]= (byte) (Math.min(Math.max(tapLatency / (5 * multiplier), 10), 1.25)); config[7]= (byte) (Math.min(Math.max(tapWindow / (5 * multiplier), 10), 1.25));
45,650
</BUG> } @Override public void disableIBecon() { <BUG>writeRegister(mwState, Register.ENABLE, (byte)0); </BUG> } @Override public IBeacon setUUID(UUID uuid) { byte[] uuidBytes= ByteBuffer.wrap(new byte[16])
private ModuleController getIBeaconModule() { if (!modules.containsKey(Module.IBEACON)) { modules.put(Module.IBEACON, new IBeacon() { public void enableIBeacon() { queueRegisterAction(mwState, true, Register.ENABLE, (byte)1); queueRegisterAction(mwState, true, Register.ENABLE, (byte)0);
45,651
byte[] uuidBytes= ByteBuffer.wrap(new byte[16]) .order(ByteOrder.LITTLE_ENDIAN) .putLong(uuid.getLeastSignificantBits()) .putLong(uuid.getMostSignificantBits()) .array(); <BUG>writeRegister(mwState, Register.ADVERTISEMENT_UUID, uuidBytes); </BUG> return this; } @Override
queueRegisterAction(mwState, true, Register.ADVERTISEMENT_UUID, uuidBytes);
45,652
</BUG> } @Override public void disableNotification() { <BUG>writeRegister(mwState, Register.SWITCH_STATE, (byte)0); </BUG> } }); } return modules.get(Module.MECHANICAL_SWITCH);
private ModuleController getMechanicalSwitchModule() { if (!modules.containsKey(Module.MECHANICAL_SWITCH)) { modules.put(Module.MECHANICAL_SWITCH, new MechanicalSwitch() { public void enableNotification() { queueRegisterAction(mwState, true, Register.SWITCH_STATE, (byte)1); queueRegisterAction(mwState, true, Register.SWITCH_STATE, (byte)0);
45,653
} @Override public void setPixel(byte strand, byte pixel, byte red, byte green, byte blue) { <BUG>writeRegister(mwState, Register.PIXEL, strand, pixel, red, green, blue); </BUG> } @Override public void rotateStrand(byte strand, RotationDirection direction, byte repetitions, short delay) {
public void disableNotification() { queueRegisterAction(mwState, true, Register.SWITCH_STATE, (byte)0);
45,654
(byte)(delay & 0xff), (byte)(delay >> 8 & 0xff)); } @Override public void deinitializeStrand(byte strand) { <BUG>writeRegister(mwState, Register.DEINITIALIZE, strand); </BUG> } }); } return modules.get(Module.NEO_PIXEL);
queueRegisterAction(mwState, true, Register.DEINITIALIZE, strand);
45,655
private ModuleController getTemperatureModule() { if (!modules.containsKey(Module.TEMPERATURE)) { modules.put(Module.TEMPERATURE, new Temperature() { @Override public void readTemperature() { <BUG>readRegister(mwState, Register.TEMPERATURE, (byte) 0); </BUG> } @Override public SamplingConfigBuilder enableSampling() {
queueRegisterAction(mwState, false, Register.TEMPERATURE, (byte) 0);
45,656
public void startMotor(short pulseWidth) { startMotor(DEFAULT_DUTY_CYCLE, pulseWidth); } @Override public void startBuzzer(short pulseWidth) { <BUG>writeRegister(mwState, Register.PULSE, (byte)127, (byte)(pulseWidth & 0xff), </BUG> (byte)((pulseWidth >> 8) & 0xff), (byte)1); } @Override
queueRegisterAction(mwState, true, Register.PULSE, (byte)127, (byte)(pulseWidth & 0xff),
45,657
(byte)((pulseWidth >> 8) & 0xff), (byte)1); } @Override public void startMotor(float dutyCycle, short pulseWidth) { short converted= (short)((dutyCycle / 100.f) * 248); <BUG>writeRegister(mwState, Register.PULSE, (byte)(converted & 0xff), (byte)(pulseWidth & 0xff), </BUG> (byte)((pulseWidth >> 8) & 0xff), (byte)0); } });
queueRegisterAction(mwState, true, Register.PULSE, (byte)(converted & 0xff), (byte)(pulseWidth & 0xff),
45,658
public boolean isAboveThreshold(Axis axis); public Direction getDirection(Axis axis); } public void disableDetection(Component component, boolean saveConfig); public void disableAllDetection(boolean saveConfig); <BUG>public ThresholdConfig enableTapDetection(TapType type, Axis axis); </BUG> public ThresholdConfig enableShakeDetection(Axis axis); public AccelerometerConfig enableOrientationDetection(); public ThresholdConfig enableFreeFallDetection();
public TapConfig enableTapDetection(TapType type, Axis axis);
45,659
package com.easytoolsoft.easyreport.web.controller.common; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller @RequestMapping(value = "/error") <BUG>public class ErrorController extends AbstractController { @RequestMapping(value = {"/404"})</BUG> public String error404() { return "/error/404"; }
public class ErrorController { @RequestMapping(value = {"/404"})
45,660
else if (t == ANY_CYPHER_OPTION) { r = AnyCypherOption(b, 0); } else if (t == ANY_FUNCTION_INVOCATION) { r = AnyFunctionInvocation(b, 0); <BUG>} else if (t == BULK_IMPORT_QUERY) {</BUG> r = BulkImportQuery(b, 0); } else if (t == CALL) {
else if (t == ARRAY) { r = Array(b, 0); else if (t == BULK_IMPORT_QUERY) {
45,661
if (!r) r = MapLiteral(b, l + 1); if (!r) r = MapProjection(b, l + 1); if (!r) r = CountStar(b, l + 1); if (!r) r = ListComprehension(b, l + 1); if (!r) r = PatternComprehension(b, l + 1); <BUG>if (!r) r = Expression1_12(b, l + 1); if (!r) r = FilterFunctionInvocation(b, l + 1);</BUG> if (!r) r = ExtractFunctionInvocation(b, l + 1); if (!r) r = ReduceFunctionInvocation(b, l + 1); if (!r) r = AllFunctionInvocation(b, l + 1);
if (!r) r = Array(b, l + 1); if (!r) r = FilterFunctionInvocation(b, l + 1);
45,662
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 for the Enchantments") public static boolean debugModeEnchantments = false; <BUG>@ModConfigProperty(category = "Weapons", name = "enableSwordsRecipes", comment = "Enable/Disable The ArmorPlus Sword's Recipes") public static boolean enableSwordsRecipes = true; @ModConfigProperty(category = "Weapons", name = "enableBattleAxesRecipes", comment = "Enable/Disable The ArmorPlus Battle Axes's Recipes") public static boolean enableBattleAxesRecipes = true; @ModConfigProperty(category = "Weapons", name = "enableBowsRecipes", comment = "Enable/Disable The ArmorPlus Bows's Recipes") public static boolean enableBowsRecipes = true; @ModConfigProperty(category = "Armors.SuperStarArmor.Effects", name = "enableSuperStarHRegen", comment = "Enable/Disable The Super Star Helmet Regeneration") </BUG> public static boolean enableSuperStarHRegen = true;
@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 = "enableBowsRecipes", comment = "Enable/Disable ArmorPlus Bows's Recipes")
45,663
package util; import java.util.Arrays; import java.util.Collection; import java.util.Collections; <BUG>import java.util.Iterator; import java.util.SortedSet;</BUG> import java.util.TreeSet; import javax.swing.AbstractListModel; public class SortedListModel extends AbstractListModel
import java.util.Set; import java.util.SortedSet;
45,664
package util.task; import java.awt.event.ActionEvent; <BUG>import java.awt.event.ActionListener; import java.io.IOException;</BUG> import java.net.URISyntaxException; import java.security.GeneralSecurityException; import javax.swing.SwingWorker;
import java.io.File; import java.io.IOException;
45,665
import javax.swing.JTextField; import javax.swing.ScrollPaneConstants; import javax.swing.SwingUtilities; import javax.swing.border.LineBorder; import javax.swing.text.AbstractDocument; <BUG>import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParser;</BUG> import main.AnimeIndex;
[DELETED]
45,666
if (f.isDirectory()) return true; String extension = MAMUtil.getExtension(f); if (extension != null) { <BUG>if (extension.equalsIgnoreCase(".zip")) </BUG> return true; return false; }
if (extension.equalsIgnoreCase(".MAMListBKP"))
45,667
private LocalBroadcastManager mLocalBroadcastManager; private String mActiveDownloadUrlString; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); <BUG>setContentView(R.layout.activity_app_details2); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);</BUG> toolbar.setTitle(""); // Nice and clean toolbar setSupportActionBar(toolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true);
setContentView(R.layout.app_details2); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
45,668
.inflate(R.layout.app_details2_screenshots, parent, false); return new ScreenShotsViewHolder(view); } else if (viewType == VIEWTYPE_WHATS_NEW) { View view = LayoutInflater.from(parent.getContext()) .inflate(R.layout.app_details2_whatsnew, parent, false); <BUG>return new WhatsNewViewHolder(view); } else if (viewType == VIEWTYPE_LINKS) {</BUG> View view = LayoutInflater.from(parent.getContext()) .inflate(R.layout.app_details2_links, parent, false); return new ExpandableLinearLayoutViewHolder(view);
} else if (viewType == VIEWTYPE_DONATE) { .inflate(R.layout.app_details2_donate, parent, false); return new DonateViewHolder(view); } else if (viewType == VIEWTYPE_LINKS) {
45,669
public class UserControllerTest { private static final Logger LOGGER = Logger.getLogger( UserControllerTest.class.getName() ); Properties properties = new Properties(); InputStream input = null; <BUG>private String neo4jServerPort = System.getProperty( "neo4j.server.port" ); private String neo4jRemoteShellPort = System.getProperty( "neo4j.remoteShell.port" ); private String neo4jGraphDb = System.getProperty( "neo4j.graph.db" ); private ServerControls server;</BUG> @Before
private String dbmsConnectorHttpPort = System.getProperty( "dbms.connector.http.port" ); private String dbmsConnectorBoltPort = System.getProperty( "dbms.connector.bolt.port" ); private String dbmsShellPort = System.getProperty( "dbms.shell.port" ); private String dbmsDirectoriesData = System.getProperty( "dbms.directories.data" ); private ServerControls server;
45,670
@Bean public Configuration getConfiguration() { if ( StringUtils.isEmpty( url ) ) { <BUG>url = "http://localhost:" + port; </BUG> } Configuration config = new Configuration(); config.driverConfiguration().setDriverClassName( HttpDriver.class.getName() )
url = "http://localhost:" + dbmsConnectorHttpPort;
45,671
import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.util.Log; import com.appboy.configuration.XmlAppConfigurationProvider; <BUG>import com.appboy.push.AppboyNotificationUtils; public final class AppboyGcmReceiver extends BroadcastReceiver {</BUG> private static final String TAG = String.format("%s.%s", Constants.APPBOY_LOG_TAG_PREFIX, AppboyGcmReceiver.class.getName()); private static final String GCM_RECEIVE_INTENT_ACTION = "com.google.android.c2dm.intent.RECEIVE"; private static final String GCM_REGISTRATION_INTENT_ACTION = "com.google.android.c2dm.intent.REGISTRATION";
import com.appboy.support.AppboyLogger; public final class AppboyGcmReceiver extends BroadcastReceiver {
45,672
private static final String GCM_DELETED_MESSAGES_KEY = "deleted_messages"; private static final String GCM_NUMBER_OF_MESSAGES_DELETED_KEY = "total_deleted"; public static final String CAMPAIGN_ID_KEY = Constants.APPBOY_PUSH_CAMPAIGN_ID_KEY; @Override public void onReceive(Context context, Intent intent) { <BUG>Log.i(TAG, String.format("Received broadcast message. Message: %s", intent.toString())); </BUG> String action = intent.getAction(); if (GCM_REGISTRATION_INTENT_ACTION.equals(action)) { XmlAppConfigurationProvider appConfigurationProvider = new XmlAppConfigurationProvider(context);
AppboyLogger.i(TAG, String.format("Received broadcast message. Message: %s", intent.toString()));
45,673
} else if (Constants.APPBOY_CANCEL_NOTIFICATION_ACTION.equals(action) && intent.hasExtra(Constants.APPBOY_CANCEL_NOTIFICATION_TAG)) { int notificationId = intent.getIntExtra(Constants.APPBOY_CANCEL_NOTIFICATION_TAG, Constants.APPBOY_DEFAULT_NOTIFICATION_ID); NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.cancel(Constants.APPBOY_PUSH_NOTIFICATION_TAG, notificationId); } else { <BUG>Log.w(TAG, String.format("The GCM receiver received a message not sent from Appboy. Ignoring the message.")); </BUG> } } boolean handleRegistrationIntent(Context context, Intent intent) {
AppboyLogger.w(TAG, String.format("The GCM receiver received a message not sent from Appboy. Ignoring the message."));
45,674
Log.e(TAG, "Device does not support GCM."); } else if ("INVALID_PARAMETERS".equals(error)) { Log.e(TAG, "The request sent by the device does not contain the expected parameters. This phone does not " + "currently support GCM."); } else { <BUG>Log.w(TAG, String.format("Received an unrecognised GCM registration error type. Ignoring. Error: %s", error)); </BUG> } } else if (registrationId != null) { Appboy.getInstance(context).registerAppboyPushMessages(registrationId);
AppboyLogger.w(TAG, String.format("Received an unrecognised GCM registration error type. Ignoring. Error: %s", error));
45,675
} else if (registrationId != null) { Appboy.getInstance(context).registerAppboyPushMessages(registrationId); } else if (intent.hasExtra(GCM_UNREGISTERED_KEY)) { Appboy.getInstance(context).unregisterAppboyPushMessages(); } else { <BUG>Log.w(TAG, "The GCM registration message is missing error information, registration id, and unregistration " + </BUG> "confirmation. Ignoring."); return false; }
AppboyLogger.w(TAG, "The GCM registration message is missing error information, registration id, and unregistration " +
45,676
if (GCM_DELETED_MESSAGES_KEY.equals(messageType)) { int totalDeleted = intent.getIntExtra(GCM_NUMBER_OF_MESSAGES_DELETED_KEY, -1); if (totalDeleted == -1) { Log.e(TAG, String.format("Unable to parse GCM message. Intent: %s", intent.toString())); } else { <BUG>Log.i(TAG, String.format("GCM deleted %d messages. Fetch them from Appboy.", totalDeleted)); </BUG> } return false; } else {
AppboyLogger.i(TAG, String.format("GCM deleted %d messages. Fetch them from Appboy.", totalDeleted));
45,677
package com.appboy; import android.content.BroadcastReceiver; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; <BUG>import android.util.Log; import android.content.Context;</BUG> import android.app.Notification; import android.app.NotificationManager; import com.appboy.configuration.XmlAppConfigurationProvider;
import com.appboy.support.AppboyLogger; import android.content.Context;
45,678
} else if (Constants.APPBOY_CANCEL_NOTIFICATION_ACTION.equals(action) && intent.hasExtra(Constants.APPBOY_CANCEL_NOTIFICATION_TAG)) { int notificationId = intent.getIntExtra(Constants.APPBOY_CANCEL_NOTIFICATION_TAG, Constants.APPBOY_DEFAULT_NOTIFICATION_ID); NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.cancel(Constants.APPBOY_PUSH_NOTIFICATION_TAG, notificationId); } else { <BUG>Log.w(TAG, String.format("The ADM receiver received a message not sent from Appboy. Ignoring the message.")); </BUG> } } boolean handleRegistrationIntent(Context context, Intent intent) {
AppboyLogger.w(TAG, String.format("The ADM receiver received a message not sent from Appboy. Ignoring the message."));
45,679
Notification notification = null; IAppboyNotificationFactory appboyNotificationFactory = AppboyNotificationUtils.getActiveNotificationFactory(); try { notification = appboyNotificationFactory.createNotification(appConfigurationProvider, context, admExtras, appboyExtras); } catch(Exception e) { <BUG>Log.e(TAG, "Failed to create notification.", e); </BUG> return false; } if (notification == null) {
AppboyLogger.e(TAG, "Failed to create notification.", e);
45,680
package com.appboy; import android.graphics.Bitmap; import android.graphics.BitmapFactory; <BUG>import android.util.Log; import java.io.InputStream;</BUG> import java.net.MalformedURLException; import java.net.UnknownHostException; public class AppboyImageUtils {
import com.appboy.support.AppboyLogger; import java.io.InputStream;
45,681
public class AppboyImageUtils { private static final String TAG = String.format("%s.%s", Constants.APPBOY_LOG_TAG_PREFIX, AppboyImageUtils.class.getName()); public static final int BASELINE_SCREEN_DPI = 160; public static Bitmap downloadImageBitmap(String imageUrl) { if (imageUrl == null || imageUrl.length() == 0) { <BUG>Log.i(TAG, "Null or empty Url string passed to image bitmap download. Not attempting download."); </BUG> return null; } Bitmap bitmap = null;
AppboyLogger.i(TAG, "Null or empty Url string passed to image bitmap download. Not attempting download.");
45,682
J4pClient client = clientForService(serviceId, namespace); assertNotNull(client, "No client for service: " + serviceId); return client; } public J4pClient clientForReplicationController(ReplicationController replicationController) { <BUG>List<Pod> pods = KubernetesHelper.getPodsForReplicationController(replicationController, kubernetes.pods().list().getItems()); </BUG> return clientForPod(pods); } public J4pClient clientForReplicationController(String replicationControllerId, String namespace) {
List<Pod> pods = KubernetesHelper.getPodsForReplicationController(replicationController, kubernetes.pods().inNamespace(replicationController.getMetadata().getNamespace()).list().getItems());
45,683
List<Pod> pods = KubernetesHelper.getPodsForService(kubernetes.services().inNamespace(namespace).withName(serviceId).get(), kubernetes.pods().inNamespace(namespace).list().getItems()); return clientForPod(pods); } public J4pClient clientForService(Service service) { <BUG>List<Pod> pods = KubernetesHelper.getPodsForService(service, kubernetes.pods().list().getItems()); </BUG> return clientForPod(pods); } public List<J4pClient> clientsForService(String serviceId, String namespace) {
List<Pod> pods = KubernetesHelper.getPodsForService(service, kubernetes.pods().inNamespace(service.getMetadata().getNamespace()).list().getItems());
45,684
} else { updateMemo(); callback.updateMemo(); } dismiss(); <BUG>}else{ </BUG> Toast.makeText(getActivity(), getString(R.string.toast_memo_empty), Toast.LENGTH_SHORT).show(); } }
[DELETED]
45,685
} @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_memo); <BUG>ChinaPhoneHelper.setStatusBar(this,true); </BUG> topicId = getIntent().getLongExtra("topicId", -1); if (topicId == -1) { finish();
ChinaPhoneHelper.setStatusBar(this, true);
45,686
MemoEntry.COLUMN_REF_TOPIC__ID + " = ?" , new String[]{String.valueOf(topicId)}); } public Cursor selectMemo(long topicId) { Cursor c = db.query(MemoEntry.TABLE_NAME, null, MemoEntry.COLUMN_REF_TOPIC__ID + " = ?", new String[]{String.valueOf(topicId)}, null, null, <BUG>MemoEntry._ID + " DESC", null); </BUG> if (c != null) { c.moveToFirst(); }
MemoEntry.COLUMN_ORDER + " ASC", null);
45,687
MemoEntry._ID + " = ?", new String[]{String.valueOf(memoId)}); } public long updateMemoContent(long memoId, String memoContent) { ContentValues values = new ContentValues(); <BUG>values.put(MemoEntry.COLUMN_CONTENT, memoContent); return db.update(</BUG> MemoEntry.TABLE_NAME, values, MemoEntry._ID + " = ?",
return db.update(
45,688
import android.widget.RelativeLayout; import android.widget.TextView; import com.kiminonawa.mydiary.R; import com.kiminonawa.mydiary.db.DBManager; import com.kiminonawa.mydiary.shared.EditMode; <BUG>import com.kiminonawa.mydiary.shared.ThemeManager; import java.util.List; public class MemoAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> implements EditMode { </BUG> private List<MemoEntity> memoList;
import com.marshalchen.ultimaterecyclerview.dragsortadapter.DragSortAdapter; public class MemoAdapter extends DragSortAdapter<DragSortAdapter.ViewHolder> implements EditMode {
45,689
private DBManager dbManager; private boolean isEditMode = false; private EditMemoDialogFragment.MemoCallback callback; private static final int TYPE_HEADER = 0; private static final int TYPE_ITEM = 1; <BUG>public MemoAdapter(FragmentActivity activity, long topicId, List<MemoEntity> memoList, DBManager dbManager, EditMemoDialogFragment.MemoCallback callback) { this.mActivity = activity;</BUG> this.topicId = topicId; this.memoList = memoList;
public MemoAdapter(FragmentActivity activity, long topicId, List<MemoEntity> memoList, DBManager dbManager, EditMemoDialogFragment.MemoCallback callback, RecyclerView recyclerView) { super(recyclerView); this.mActivity = activity;
45,690
this.memoList = memoList; this.dbManager = dbManager; this.callback = callback; } @Override <BUG>public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { </BUG> View view; if (isEditMode) { if (viewType == TYPE_HEADER) {
public DragSortAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
45,691
editMemoDialogFragment.show(mActivity.getSupportFragmentManager(), "editMemoDialogFragment"); } }); } } <BUG>protected class MemoViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { private View rootView; private TextView TV_memo_item_content;</BUG> private ImageView IV_memo_item_delete;
protected class MemoViewHolder extends DragSortAdapter.ViewHolder implements View.OnClickListener, View.OnLongClickListener { private ImageView IV_memo_item_dot; private TextView TV_memo_item_content;
45,692
super(asmMethod, genericsSignature, kotlinTypeParameters, kotlinParameterTypes, kotlinReturnType, needGenerics); this.isGetter = isGetter; } @NotNull <BUG>public JvmMethodSignature getJvmMethodSignature() { return this; } @NotNull</BUG> public String getPropertyTypeKotlinSignature() {
[DELETED]
45,693
FunctionGenerationStrategy strategy = defaultGetter ? new DefaultPropertyAccessorStrategy(getterDescriptor) : new FunctionGenerationStrategy.FunctionDefault(state, getterDescriptor, getter); functionCodegen.generateMethod(getter != null ? getter : p, <BUG>signature.getJvmMethodSignature(), true,</BUG> getterDescriptor, strategy); }
signature, true,
45,694
FunctionGenerationStrategy strategy = defaultSetter ? new DefaultPropertyAccessorStrategy(setterDescriptor) : new FunctionGenerationStrategy.FunctionDefault(state, setterDescriptor, setter); functionCodegen.generateMethod(setter != null ? setter : p, <BUG>signature.getJvmMethodSignature(), true,</BUG> setterDescriptor, strategy); }
defaultGetter ? new DefaultPropertyAccessorStrategy(getterDescriptor) : new FunctionGenerationStrategy.FunctionDefault(state, getterDescriptor, getter); functionCodegen.generateMethod(getter != null ? getter : p, signature, true, getterDescriptor,
45,695
FunctionCodegen.endVisit(mv, "toString", myClass); } private Type genPropertyOnStack(InstructionAdapter iv, PropertyDescriptor propertyDescriptor, int index) { iv.load(index, classAsmType); Method <BUG>method = typeMapper.mapGetterSignature(propertyDescriptor, OwnerKind.IMPLEMENTATION).getJvmMethodSignature().getAsmMethod(); iv.invokevirtual(classAsmType.getInternalName(), method.getName(), method.getDescriptor());</BUG> return method.getReturnType(); } private void generateComponentFunctionsForDataClasses() {
method = typeMapper.mapGetterSignature(propertyDescriptor, OwnerKind.IMPLEMENTATION).getAsmMethod(); iv.invokevirtual(classAsmType.getInternalName(), method.getName(), method.getDescriptor());
45,696
PropertyDescriptor original = property.getOriginal(); if (fun instanceof PropertyGetterDescriptor) { JvmPropertyAccessorSignature toGenerate = typeMapper.mapGetterSignature(property, OwnerKind.IMPLEMENTATION); JvmPropertyAccessorSignature inTrait = typeMapper.mapGetterSignature(original, OwnerKind.IMPLEMENTATION); return new TraitImplDelegateInfo( <BUG>toGenerate.getJvmMethodSignature().getAsmMethod(), inTrait.getJvmMethodSignature().getAsmMethod()); }</BUG> else if (fun instanceof PropertySetterDescriptor) { JvmPropertyAccessorSignature toGenerate = typeMapper.mapSetterSignature(property, OwnerKind.IMPLEMENTATION); JvmPropertyAccessorSignature inTrait = typeMapper.mapSetterSignature(original, OwnerKind.IMPLEMENTATION);
toGenerate.getAsmMethod(), inTrait.getAsmMethod()); }
45,697
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 maxY = src.getMaxY() - 2; // Bottom padding </BUG> }
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
45,698
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 IndexColorModel if (caseA) { for (int h = 0; h < dstHeight; h++) {</BUG> int pixelOffset = 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++) {
45,699
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++) {
45,700
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 maxY = src.getMaxY() - 2; // Bottom padding </BUG> }
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