auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code><START> public void onMediaListFetched(OnMediaListFetched event) { <END> }</code><technical_language>Good choice</technical_language>

Target:
public void onMediaListFetched(OnMediaListFetched event) { if (event != null) { mNetworkErrorOnLastMediaFetchAttempt = event.isError(); } }
Source:
<code>public void testInvokeMapReduceOnAllKeys() throws Exception { MapReduceTask<String, String, String, Integer> task = invokeMapReduce(null); <START> task.setIntermediateCacheTransferSize(1024); <END> System.out.println("Read macbeth.txt and inserted keys into cache. Executing M/R task..."); long start = System.currentTimeMillis(); Map<String, Integer> mapReduce = task.execute(); System.out.println("Task completed in " + (System.currentTimeMillis() - start) + " ms"); verifyResults(mapReduce); }</code><technical_language>20, before</technical_language>

Target:
public void testInvokeMapReduceOnAllKeys() throws Exception { MapReduceTask<String, String, String, Integer> task = invokeMapReduce(null); task.setMaxCollectorSize(256); System.out.println("Read macbeth.txt and inserted keys into cache. Executing M/R task..."); long start = System.currentTimeMillis(); Map<String, Integer> mapReduce = task.execute(); System.out.println("Task completed in " + (System.currentTimeMillis() - start) + " ms"); verifyResults(mapReduce); }
Source:
<code>public void insert(final List<AclSnapshot> batch) { template.batchUpdate(INSERT_IGNORE, new BatchPreparedStatementSetter() { @Override public int getBatchSize() { return batch.size(); } @Override public void setValues(PreparedStatement ps, int i) throws SQLException { AclSnapshot snapshot = batch.get(i); ps.setLong(1, snapshot.getTimestamp()); String id = snapshot.getId().toLowerCase(); <START> if (id.startsWith("syn")) { <END> id = id.substring(3); } ps.setLong(2, Long.parseLong(id)); ps.setString(3, snapshot.getOwnerType().name()); if (snapshot.getCreationDate() != null) { ps.setLong(4, snapshot.getCreationDate().getTime()); } else { ps.setNull(4, Types.BIGINT); } if (snapshot.getResourceAccess() != null) { String xml = XMLUtils.toXML(snapshot.getResourceAccess(), AclSnapshot.RESOURCE_ACCESS_ALIAS); Blob blob = template.getDataSource().getConnection().createBlob(); blob.setBytes(1, CompressionUtils.compressStringUTF8(xml)); ps.setBlob(5, blob); } else { ps.setNull(5, Types.BLOB); } } }); }</code><technical_language>move util</technical_language>

Target:
public void insert(final List<AclSnapshot> batch) { template.batchUpdate(INSERT_IGNORE, new BatchPreparedStatementSetter() { @Override public int getBatchSize() { return batch.size(); } @Override public void setValues(PreparedStatement ps, int i) throws SQLException { AclSnapshot snapshot = batch.get(i); ps.setLong(1, snapshot.getTimestamp()); ps.setLong(2, ObjectSnapshotUtils.convertSynapseIdToLong(snapshot.getId())); ps.setString(3, snapshot.getOwnerType().name()); if (snapshot.getCreationDate() != null) { ps.setLong(4, snapshot.getCreationDate().getTime()); } else { ps.setNull(4, Types.BIGINT); } if (snapshot.getResourceAccess() != null) { String xml = XMLUtils.toXML(snapshot.getResourceAccess(), AclSnapshot.RESOURCE_ACCESS_ALIAS); Blob blob = template.getDataSource().getConnection().createBlob(); blob.setBytes(1, CompressionUtils.compressStringUTF8(xml)); ps.setBlob(5, blob); } else { ps.setNull(5, Types.BLOB); } } }); }
Source:
<code>public DLNAThumbnailInputStream getThumbnailInputStream() throws IOException { File cachedThumbnail = null; File thumbFolder = null; boolean alternativeCheck = false; while (cachedThumbnail == null) { if (thumbFolder == null) { thumbFolder = file.getParentFile(); } cachedThumbnail = FileUtil.replaceExtension(thumbFolder, file, "jpg", true, true); if (cachedThumbnail == null) { cachedThumbnail = FileUtil.replaceExtension(thumbFolder, file, "png", true, true); } if (cachedThumbnail == null) { cachedThumbnail = FileUtil.getFileNameWithAddedExtension(thumbFolder, file, ".cover.jpg"); } if (cachedThumbnail == null) { cachedThumbnail = FileUtil.getFileNameWithAddedExtension(thumbFolder, file, ".cover.png"); } if (alternativeCheck) { break; } if (StringUtils.isNotBlank(configuration.getAlternateThumbFolder())) { thumbFolder = new File(configuration.getAlternateThumbFolder()); if (!thumbFolder.isDirectory()) { thumbFolder = null; break; } } alternativeCheck = true; } if (cachedThumbnail != null) { return DLNAThumbnailInputStream.toThumbnailInputStream(new FileInputStream(cachedThumbnail)); } else if (getMedia() != null && getMedia().getThumb() != null) { try (DLNAThumbnailInputStream dtis = getMedia().getThumbnailInputStream()) { <START> return dtis; <END> } } else { try (DLNAThumbnailInputStream dtis = getGenericThumbnailInputStream(null)) { return dtis; } } }</code><technical_language>I unsure this one. this, returning a live stream, this returning a closed stream</technical_language>

Target:
public DLNAThumbnailInputStream getThumbnailInputStream() throws IOException { File cachedThumbnail = null; File thumbFolder = null; boolean alternativeCheck = false; while (cachedThumbnail == null) { if (thumbFolder == null) { thumbFolder = file.getParentFile(); } cachedThumbnail = FileUtil.replaceExtension(thumbFolder, file, "jpg", true, true); if (cachedThumbnail == null) { cachedThumbnail = FileUtil.replaceExtension(thumbFolder, file, "png", true, true); } if (cachedThumbnail == null) { cachedThumbnail = FileUtil.getFileNameWithAddedExtension(thumbFolder, file, ".cover.jpg"); } if (cachedThumbnail == null) { cachedThumbnail = FileUtil.getFileNameWithAddedExtension(thumbFolder, file, ".cover.png"); } if (alternativeCheck) { break; } if (StringUtils.isNotBlank(configuration.getAlternateThumbFolder())) { thumbFolder = new File(configuration.getAlternateThumbFolder()); if (!thumbFolder.isDirectory()) { thumbFolder = null; break; } } alternativeCheck = true; } if (cachedThumbnail != null) { return DLNAThumbnailInputStream.toThumbnailInputStream(new FileInputStream(cachedThumbnail)); } else if (getMedia() != null && getMedia().getThumb() != null) { DLNAThumbnailInputStream dtis = getMedia().getThumbnailInputStream(); return dtis; } else { DLNAThumbnailInputStream dtis = getGenericThumbnailInputStream(null); return dtis; } }
Source:
<code>private void setBodyText(View view, final String email) { TextView body = view.findViewById(R.id.sign_in_email_sent_text); String bodyText = getString(R.string.fui_email_link_email_sent, email); SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(bodyText); int emailStart = bodyText.indexOf(email); spannableStringBuilder.setSpan(new StyleSpan(Typeface.BOLD), emailStart, emailStart + email.length(), <START> Spannable.SPAN_INCLUSIVE_INCLUSIVE); <END> body.setText(spannableStringBuilder); }</code><technical_language>I want INCLUSIVE_EXCLUSIVE adding full length, right</technical_language>

Target:
private void setBodyText(View view, final String email) { TextView body = view.findViewById(R.id.sign_in_email_sent_text); String bodyText = getString(R.string.fui_email_link_email_sent, email); SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(bodyText); TextHelper.boldAllOccurencesOfText(spannableStringBuilder, bodyText, email); body.setText(spannableStringBuilder); }
Source:
<code>@Override protected void beforeTestsStarted() throws Exception { <START> Assume.assumeFalse("<LINK_0>", MvccFeatureChecker.forcedMvcc()); <END> System.setProperty(IGNITE_BASELINE_AUTO_ADJUST_ENABLED, "false"); super.beforeTestsStarted(); }</code><technical_language>unrelated change me</technical_language>

Target:
@Override protected void beforeTestsStarted() throws Exception { System.setProperty(IGNITE_BASELINE_AUTO_ADJUST_ENABLED, "false"); super.beforeTestsStarted(); }
Source:
<code>private String getWhereClause() { <START> return getClause(whereConstraints, "WHERE ", " AND "); <END> }</code><technical_language>ORs supported</technical_language>

Target:
private String getWhereClause() { return getClauseFromQueryConditions(whereConstraints, "WHERE ", " AND "); }
Source:
<code>public static String getShareTypeFromComponentName(@NonNull ComponentName componentName) { <START> if (componentName.getPackageName().contains("facebook")) { <END> return "facebook"; } else if (componentName.getPackageName().contains("twitter")) { return "twitter"; } else { return "other"; } }</code><technical_language>Is a more reliable do this? do service names contracts something</technical_language>

Target:
public static String getShareTypeFromComponentName(@NonNull ComponentName componentName) { switch (componentName.getPackageName()) { case "com.facebook.katana": return "facebook"; case "com.twitter.android": return "twitter"; default: return "other"; } }
Source:
<code>public RabbitMQInjectHandler(String injectingSeq, String onErrorSeq, boolean sequential, SynapseEnvironment synapseEnvironment) throws SynapseException { this.injectingSeq = injectingSeq; if (injectingSeq == null || injectingSeq.equals("")) { String msg = "Injecting Sequence name is not specified."; log.error(msg); throw new SynapseException(msg); } seq = (SequenceMediator) synapseEnvironment.getSynapseConfiguration().getSequence(injectingSeq); <START> if (seq != null && !seq.isInitialized()) { <END> seq.init(synapseEnvironment); } this.onErrorSeq = onErrorSeq; this.sequential = sequential; this.synapseEnvironment = synapseEnvironment; }</code><technical_language>throw a SynapseExcpetion if sequence is null</technical_language>

Target:
public RabbitMQInjectHandler(String injectingSeq, String onErrorSeq, boolean sequential, SynapseEnvironment synapseEnvironment) throws SynapseException { this.injectingSeq = injectingSeq; if (injectingSeq == null || injectingSeq.equals("")) { String msg = "Injecting Sequence name is not specified."; log.error(msg); throw new SynapseException(msg); } seq = (SequenceMediator) synapseEnvironment.getSynapseConfiguration().getSequence(injectingSeq); if (seq == null) { throw new SynapseException("Specified injecting sequence: " + injectingSeq + "is invalid."); } if (!seq.isInitialized()) { seq.init(synapseEnvironment); } this.onErrorSeq = onErrorSeq; this.sequential = sequential; this.synapseEnvironment = synapseEnvironment; }
Source:
<code>public Map<Double, Long> getCounts() { <START> double scale = TimeUnit.MILLISECONDS.toNanos(1); <END> Map<Double, Long> result = new TreeMap<>(); for (HistogramIterationValue entry : snapshot.get().logarithmicBucketValues(TimeUnit.MILLISECONDS.toNanos(1), 2)) { double median = entry.getValueIteratedTo() + entry.getValueIteratedFrom() / 2.0; result.put(round(median / scale, 2), entry.getCountAddedInThisIterationStep()); } return result; }</code><technical_language>inline</technical_language>

Target:
public Map<Double, Long> getCounts() { Map<Double, Long> result = new TreeMap<>(); for (HistogramIterationValue entry : snapshot.get().logarithmicBucketValues(TimeUnit.MILLISECONDS.toNanos(1), 2)) { double median = entry.getValueIteratedTo() + entry.getValueIteratedFrom() / 2.0; result.put(round(median / (double) TimeUnit.MILLISECONDS.toNanos(1), 2), entry.getCountAddedInThisIterationStep()); } return result; }
Source:
<code>public void test() { connect(); <START> getActions().click(driver.findElement(By.className("z-textbox"))).perform(); <END> selectAll(); copy(); JQuery db = jq("@decimalbox"); click(db); waitResponse(); paste(); blur(db); waitResponse(); Assert.assertEquals("12.3", db.val()); }</code><technical_language>click(jq(...))</technical_language>

Target:
public void test() { connect(); click(jq("@textbox")); waitResponse(); selectAll(); waitResponse(); copy(); waitResponse(); JQuery db = jq("@decimalbox"); click(db); waitResponse(); paste(); blur(db); waitResponse(); Assert.assertEquals("12.3", db.val()); }
Source:
<code>private void subscribe(final Subscriber<? super Account> subscriber) { final Context appContext = activity.getApplication(); final AccountManager am = AccountManager.get(appContext); final AccountManagerCallback<Bundle> callback = new AccountManagerCallback<Bundle>() { @Override public void run(AccountManagerFuture<Bundle> future) { try { final Bundle results = future.getResult(); Account[] accs = am.getAccountsByType(accountType); if (accs.length == 0) { if (results != null) { final String accountName = results.getString(AccountManager.KEY_ACCOUNT_NAME); final String accountType = results.getString(AccountManager.KEY_ACCOUNT_TYPE); if (!TextUtils.isEmpty(accountName) && !TextUtils.isEmpty(accountType)) { accs = new Account[1]; accs[0] = new Account(accountName, accountType == null ? OnSubscribeAddAccount.this.accountType : accountType); <START> } else if (results.containsKey(AccountManager.KEY_INTENT)) <END> subscriber.onError(new IllegalStateException("AccountManager " + "returned a key Intent: " + results.get(AccountManager.KEY_INTENT))); } } if (accs.length == 0) subscriber.onError(new IllegalStateException("Returned from AccountManager " + "without Account creation; results: " + results)); else { for (Account acc:accs) subscriber.onNext(acc); subscriber.onCompleted(); } } catch (Exception e) { subscriber.onError(e); } } }; final AccountManagerFuture<Bundle> f = am.addAccount(accountType, authTokenType, requiredFeatures, addAccountOptions, activity, callback, handler); subscriber.add(BooleanSubscription.create(new Action0() { @Override public void call() { f.cancel(true); } })); }</code><technical_language>{ } multi-line conditional blocks</technical_language>

Target:
private void subscribe(final Subscriber<? super Account> subscriber) { final Context appContext = activity.getApplication(); final AccountManager am = AccountManager.get(appContext); final AccountManagerCallback<Bundle> callback = new AccountManagerCallback<Bundle>() { @Override public void run(AccountManagerFuture<Bundle> future) { if (subscriber.isUnsubscribed()) return; Exception errorDescription = null; try { final Bundle results = future.getResult(); Account[] accs = am.getAccountsByType(accountType); if (accs.length == 0) { errorDescription = new IllegalStateException("No Account created; results: " + results); } else { for (Account acc:accs) { subscriber.onNext(acc); } subscriber.onCompleted(); } } catch (Exception e) { errorDescription = e; } finally { if (errorDescription != null) { subscriber.onError(errorDescription); } } } }; final AccountManagerFuture<Bundle> f = am.addAccount(accountType, authTokenType, requiredFeatures, addAccountOptions, activity, callback, handler); activity = null; subscriber.add(AndroidSubscriptions.unsubscribeInHandlerThread(new Action0() { @Override public void call() { f.cancel(true); } }, handler)); }
Source:
<code>public List<DiffEntry> scan(AbstractTreeIterator a, AbstractTreeIterator b) throws IOException { assertHaveRepository(); TreeWalk walk = new TreeWalk(reader); walk.addTree(a); walk.addTree(b); walk.setRecursive(true); TreeFilter filter = getDiffTreeFilterFor(a, b); if (pathFilter instanceof FollowFilter) { walk.setFilter(AndTreeFilter.create( PathFilter.create(((FollowFilter) pathFilter).getPath()), filter)); } else if (pathFilter != null) { walk.setFilter(AndTreeFilter.create(pathFilter, filter)); <START> } else { <END> walk.setFilter(filter); } source = new ContentSource.Pair(source(a), source(b)); List<DiffEntry> files = DiffEntry.scan(walk); if (pathFilter instanceof FollowFilter && isAdd(files)) { a.reset(); b.reset(); walk.reset(); walk.addTree(a); walk.addTree(b); walk.setFilter(filter); if (renameDetector == null) setDetectRenames(true); files = updateFollowFilter(detectRenames(DiffEntry.scan(walk))); } else if (renameDetector != null) files = detectRenames(files); return files; }</code><technical_language>setter, pathFilter null</technical_language>

Target:
public List<DiffEntry> scan(AbstractTreeIterator a, AbstractTreeIterator b) throws IOException { assertHaveRepository(); TreeWalk walk = new TreeWalk(reader); walk.addTree(a); walk.addTree(b); walk.setRecursive(true); TreeFilter filter = getDiffTreeFilterFor(a, b); if (pathFilter instanceof FollowFilter) { walk.setFilter(AndTreeFilter.create( PathFilter.create(((FollowFilter) pathFilter).getPath()), filter)); } else { walk.setFilter(AndTreeFilter.create(pathFilter, filter)); } source = new ContentSource.Pair(source(a), source(b)); List<DiffEntry> files = DiffEntry.scan(walk); if (pathFilter instanceof FollowFilter && isAdd(files)) { a.reset(); b.reset(); walk.reset(); walk.addTree(a); walk.addTree(b); walk.setFilter(filter); if (renameDetector == null) setDetectRenames(true); files = updateFollowFilter(detectRenames(DiffEntry.scan(walk))); } else if (renameDetector != null) files = detectRenames(files); return files; }
Source:
<code>private static Set<String> getListById(Node subSection, String id) { final Node node = XmlUtil.findChildElementById(subSection, id); <START> assertNotNull(node, "Expected list element with id " + id); <END> return XmlUtil.getChildrenElements(node) .stream() .map(Node::getTextContent) .collect(Collectors.toSet()); }</code><technical_language>please remove this assert, is util method, do some job</technical_language>

Target:
private static Set<String> getListById(Node subSection, String id) { Set<String> result = null; final Node node = XmlUtil.findChildElementById(subSection, id); if (node != null) { result = XmlUtil.getChildrenElements(node) .stream() .map(Node::getTextContent) .collect(Collectors.toSet()); } return result; }
Source:
<code>public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response = (HttpServletResponse) res; if (Config.isDevServer()) { response.setHeader("Access-Control-Allow-Origin", DEV_FRONTEND_URL); response.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS"); response.setHeader("Access-Control-Allow-Credentials", "true"); } if (Config.XSRF_KEY.equals(request.getParameter("xsrfkey"))) { chain.doFilter(req, res); return; } String referrer = request.getHeader("referer"); if (referrer == null) { } else if (!isHttpReferrerValid(referrer, request.getRequestURL().toString())) { response.setStatus(403); denyAccess("Invalid HTTP referrer.", response); return; } switch (request.getMethod()) { <START> case "POST": <END> case "PUT": case "DELETE": String message = getXsrfTokenErrorIfAny(request); if (message != null) { response.setStatus(403); denyAccess(message, response); return; } break; default: break; } chain.doFilter(req, res); }</code><technical_language>XSRF is checked in DELETE method</technical_language>

Target:
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response = (HttpServletResponse) res; if (Config.isDevServer()) { response.setHeader("Access-Control-Allow-Origin", Config.APP_FRONTENDDEV_URL); response.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS"); response.setHeader("Access-Control-Allow-Credentials", "true"); } if (Config.XSRF_KEY.equals(request.getParameter("xsrfkey"))) { chain.doFilter(req, res); return; } String referrer = request.getHeader("referer"); if (referrer == null) { } else if (!isHttpReferrerValid(referrer, request.getRequestURL().toString())) { response.setStatus(403); denyAccess("Invalid HTTP referrer.", response); return; } switch (request.getMethod()) { case "POST": case "PUT": case "DELETE": String message = getXsrfTokenErrorIfAny(request); if (message != null) { response.setStatus(403); denyAccess(message, response); return; } break; default: break; } chain.doFilter(req, res); }
Source:
<code>public static <T> Comparator<IForgeRegistryEntry<T>> registryNameComparator() { <START> return Comparator.comparing(IForgeRegistryEntry::getRegistryName, Comparator.naturalOrder()); <END> }</code><technical_language>Comparator.comparing(IForgeRegistryEntry::getRegistryName) sufficient</technical_language>

Target:
public static <T> Comparator<IForgeRegistryEntry<T>> registryNameComparator() { return Comparator.comparing(IForgeRegistryEntry::getRegistryName); }
Source:
<code>@Override public void init() { final ISPObservation obs = getContextObservation(); if (obs != null) { obs.addCompositeChangeListener(obslogUpdater); } final ISPObsComponent instrument = getContextInstrument(); if (instrument != null) { final SPComponentType type = instrument.getType(); _w.tabbedPane.remove(itcImagingPanel.peer()); _w.tabbedPane.remove(itcSpectroscopyPanel.peer()); if (itcImagingPanel.visibleFor(type)) _w.tabbedPane.add("ITC Imaging", itcImagingPanel.peer()); if (itcSpectroscopyPanel.visibleFor(type)) _w.tabbedPane.add("ITC Spectroscopy", itcSpectroscopyPanel.peer()); <START> } <END> _origSequenceTab.init(this); final String title = getDataObject().getTitle(); if (title != null) { _w.title.setText(title); } else { _w.title.setText("Sequence"); } stateChanged(null); }</code><technical_language>I this is a good place for this information screen-shot nice. in this line, if instrument is null remove imaging spectroscopy panels? left display set previous (if any) observation edited? Also, I cool hide/show depending instrument ITC availability. I a observation all-imaging all-spectroscopy though. Andy confirm that. If other, irrelevant panel show either. I guess sequence though</technical_language>

Target:
@Override public void init() { final ISPObservation obs = getContextObservation(); if (obs != null) { obs.addCompositeChangeListener(obslogUpdater); } final ISPObsComponent instrument = getContextInstrument(); _w.tabbedPane.remove(itcImagingPanel.peer()); _w.tabbedPane.remove(itcSpectroscopyPanel.peer()); if (instrument != null) { final SPComponentType type = instrument.getType(); if (itcImagingPanel.visibleFor(type)) _w.tabbedPane.add("ITC Imaging", itcImagingPanel.peer()); if (itcSpectroscopyPanel.visibleFor(type)) _w.tabbedPane.add("ITC Spectroscopy", itcSpectroscopyPanel.peer()); } _origSequenceTab.init(this); final String title = getDataObject().getTitle(); if (title != null) { _w.title.setText(title); } else { _w.title.setText("Sequence"); } stateChanged(null); }
Source:
<code>public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr) { BigDecimal result = null; for (int i=0; i<children.size(); i++) { Expression childExpr = children.get(i); if (!childExpr.evaluate(tuple, ptr)) { return false; } if (ptr.getLength() == 0) { return true; } PDataType childType = childExpr.getDataType(); SortOrder childSortOrder = childExpr.getSortOrder(); BigDecimal bd = (BigDecimal) PDecimal.INSTANCE.toObject(ptr, childType, childSortOrder); if (result == null) { result = bd; } else { result = result.add(bd); } } if (maxLength != null || scale != null) { result = NumberUtil.setDecimalWidthAndScale(result, maxLength, scale); } if (result == null) { <START> throw new DataExceedsCapacityException("", maxLength); <END> } ptr.set(PDecimal.INSTANCE.toBytes(result)); return true; }</code><technical_language>type information useful here, too</technical_language>

Target:
public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr) { BigDecimal result = null; for (int i=0; i<children.size(); i++) { Expression childExpr = children.get(i); if (!childExpr.evaluate(tuple, ptr)) { return false; } if (ptr.getLength() == 0) { return true; } PDataType childType = childExpr.getDataType(); SortOrder childSortOrder = childExpr.getSortOrder(); BigDecimal bd = (BigDecimal) PDecimal.INSTANCE.toObject(ptr, childType, childSortOrder); if (result == null) { result = bd; } else { result = result.add(bd); } } if (maxLength != null || scale != null) { result = NumberUtil.setDecimalWidthAndScale(result, maxLength, scale); } if (result == null) { throw new DataExceedsCapacityException(PDecimal.INSTANCE, maxLength, scale, null); } ptr.set(PDecimal.INSTANCE.toBytes(result)); return true; }
Source:
<code>public void testMemory() throws InternalTranslationException, InterpreterException { interpreter.setMemory(0, 1, 4); final MockOperandTree operandTree1 = new MockOperandTree(); operandTree1.root = new MockOperandTreeNode(ExpressionType.SIZE_PREFIX, "dword"); operandTree1.root.m_children.add(new MockOperandTreeNode(ExpressionType.MEMDEREF, "[")); operandTree1.root.m_children.get(0).getChildren() .add(new MockOperandTreeNode(ExpressionType.IMMEDIATE_INTEGER, "0")); final MockOperandTree operandTree2 = new MockOperandTree(); operandTree2.root = new MockOperandTreeNode(ExpressionType.SIZE_PREFIX, "dword"); operandTree2.root.m_children .add(new MockOperandTreeNode(ExpressionType.IMMEDIATE_INTEGER, "0")); final List<MockOperandTree> operands = Lists.newArrayList(operandTree1, operandTree2); final IInstruction instruction = new MockInstruction("btr", operands); translator.translate(environment, instruction, instructions); interpreter.interpret(TestHelpers.createMapping(instructions), BigInteger.valueOf(0x100)); assertEquals(2, TestHelpers.filterNativeRegisters(interpreter.getDefinedRegisters()).size()); assertEquals(BigInteger.valueOf(1), interpreter.getVariableValue("CF")); <START> assertEquals(BigInteger.valueOf(0), interpreter.getMemory().load(0, 4)); <END> assertEquals(BigInteger.valueOf(4L), BigInteger.valueOf(interpreter.getMemorySize())); }</code><technical_language>Suggest: BigInteger.ZERO instead of valueOf(0)</technical_language>

Target:
public void testMemory() throws InternalTranslationException, InterpreterException { interpreter.setMemory(0, 1, 4); final MockOperandTree operandTree1 = new MockOperandTree(); operandTree1.root = new MockOperandTreeNode(ExpressionType.SIZE_PREFIX, "dword"); operandTree1.root.m_children.add(new MockOperandTreeNode(ExpressionType.MEMDEREF, "[")); operandTree1.root.m_children.get(0).getChildren() .add(new MockOperandTreeNode(ExpressionType.IMMEDIATE_INTEGER, "0")); final MockOperandTree operandTree2 = new MockOperandTree(); operandTree2.root = new MockOperandTreeNode(ExpressionType.SIZE_PREFIX, "dword"); operandTree2.root.m_children .add(new MockOperandTreeNode(ExpressionType.IMMEDIATE_INTEGER, "0")); final List<MockOperandTree> operands = Lists.newArrayList(operandTree1, operandTree2); final IInstruction instruction = new MockInstruction("btr", operands); translator.translate(environment, instruction, instructions); interpreter.interpret(TestHelpers.createMapping(instructions), BigInteger.valueOf(0x100)); assertEquals(2, TestHelpers.filterNativeRegisters(interpreter.getDefinedRegisters()).size()); assertEquals(BigInteger.ONE, interpreter.getVariableValue("CF")); assertEquals(BigInteger.ZERO, interpreter.getMemory().load(0, 4)); assertEquals(BigInteger.valueOf(4L), BigInteger.valueOf(interpreter.getMemorySize())); }
Source:
<code>public void testFindTablesByPost() { <START> long waiterId = 2L; <END> TableEto table = new TableEtoBuilder().number(NUMBER_TABLE_NEW).waiterId(waiterId).state(TableState.RESERVED).createNew(); assertThat(table).isNotNull(); TableEto savedTable = this.service.saveTable(table); assertThat(savedTable).isNotNull(); TableSearchCriteriaTo criteria = new TableSearchCriteriaTo(); assertThat(criteria).isNotNull(); criteria.setState(TableState.RESERVED); PaginatedListTo<TableEto> tables = this.service.findTablesByPost(criteria); List<TableEto> result = tables.getResult(); assertThat(result).isNotEmpty(); assertThat(result).hasAtLeastOneElementOfType(TableEto.class).extracting("state").contains(TableState.RESERVED); assertThat(result).extracting("state").doesNotContain(TableState.FREE); assertThat(result).extracting("state").doesNotContain(TableState.OCCUPIED); assertThat(result).extracting("waiterId").contains(waiterId); assertThat(result).extracting("number").contains(NUMBER_TABLE_NEW); }</code><technical_language>remove..</technical_language>

Target:
public void testFindTablesByPost() { TableEto table = new TableEtoBuilder().state(TableState.RESERVED).createNew(); TableEto savedTable = this.service.saveTable(table); assertThat(savedTable).isNotNull(); TableSearchCriteriaTo criteria = new TableSearchCriteriaTo(); assertThat(criteria).isNotNull(); criteria.setState(TableState.RESERVED); PaginatedListTo<TableEto> tables = this.service.findTablesByPost(criteria); List<TableEto> result = tables.getResult(); assertThat(result).isNotEmpty(); assertThat(result).hasAtLeastOneElementOfType(TableEto.class).extracting("state").contains(TableState.RESERVED); assertThat(result).extracting("state").doesNotContain(TableState.FREE); assertThat(result).extracting("state").doesNotContain(TableState.OCCUPIED); assertThat(result).extracting("waiterId").contains(ID_WAITER); assertThat(result).extracting("number").contains(NUMBER_TABLE_NEW); }
Source:
<code>protected boolean canDoAction() { Map<Guid, StorageDomain> domainsMap = new HashMap<Guid, StorageDomain>(); if (getVdsGroup() == null) { addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY); return false; } if (!canDoActionBeforeCloneVm(domainsMap)) { return false; } if (getParameters().isImportAsNewEntity()) { initImportClonedVm(); if (getVm().getInterfaces().size() > getMacPool().getAvailableMacsCount()) { addCanDoActionMessage(VdcBllMessages.MAC_POOL_NOT_ENOUGH_MAC_ADDRESSES); return false; } } OsRepository osRepository = SimpleDependecyInjector.getInstance().get(OsRepository.class); <START> if (getVdsGroup() != null && getVm().isBalloonEnabled() && !osRepository.isBalloonEnabled(getVm().getStaticData().getOsId(), <END> getVdsGroup().getcompatibility_version())) { addCanDoActionMessageVariable("clusterArch", getVdsGroup().getArchitecture()); return failCanDoAction(VdcBllMessages.BALLOON_REQUESTED_ON_NOT_SUPPORTED_ARCH); } return canDoActionAfterCloneVm(domainsMap); }</code><technical_language>need check getVdsGroup() != null check in method covers this</technical_language>

Target:
protected boolean canDoAction() { Map<Guid, StorageDomain> domainsMap = new HashMap<Guid, StorageDomain>(); if (getVdsGroup() == null) { addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY); return false; } if (!canDoActionBeforeCloneVm(domainsMap)) { return false; } if (getParameters().isImportAsNewEntity()) { initImportClonedVm(); if (getVm().getInterfaces().size() > getMacPool().getAvailableMacsCount()) { addCanDoActionMessage(VdcBllMessages.MAC_POOL_NOT_ENOUGH_MAC_ADDRESSES); return false; } } OsRepository osRepository = SimpleDependecyInjector.getInstance().get(OsRepository.class); if (getVm().isBalloonEnabled() && !osRepository.isBalloonEnabled(getVm().getStaticData().getOsId(), getVdsGroup().getcompatibility_version())) { addCanDoActionMessageVariable("clusterArch", getVdsGroup().getArchitecture()); return failCanDoAction(VdcBllMessages.BALLOON_REQUESTED_ON_NOT_SUPPORTED_ARCH); } return canDoActionAfterCloneVm(domainsMap); }
Source:
<code>protected boolean canDoAction() { <START> if (!super.canDoAction()) { <END> return false; } IscsiBondValidator validator = new IscsiBondValidator(); if (!validate(validator.isIscsiBondExist(getExistingIscsiBond()))) { return false; } if (isNameChanged() && !validate(validator.iscsiBondWithTheSameNameExistInDataCenter(getIscsiBond()))) { return false; } return true; }</code><technical_language>do need check if iSCSI bond is supported if is exists in Data Center</technical_language>

Target:
protected boolean canDoAction() { IscsiBondValidator validator = new IscsiBondValidator(); if (!validate(validator.isIscsiBondExist(getExistingIscsiBond()))) { return false; } if (isNameChanged() && !validate(validator.iscsiBondWithTheSameNameExistInDataCenter(getIscsiBond()))) { return false; } return true; }
Source:
<code>public void testEncodeYes() { AffineCipher affineCipher = new AffineCipher(); assertEquals("xbt", affineCipher.encode("yes", 5, 7) <START> ); <END> }</code><technical_language>I this previous line</technical_language>

Target:
public void testEncodeYes() { assertEquals("xbt", affineCipher.encode("yes", 5, 7)); }
Source:
<code>public void init() { internalInit(); final String url = GWT.getHostPageBaseURL() + "plugin/data-access/api/permissions/hasDataAccess"; RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url); builder.setHeader("accept", "application/json"); try { builder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { showMessagebox("Error", exception.getLocalizedMessage()); } public void onResponseReceived(Request request, Response response) { <START> showMessagebox("Log", response.getText()); END> boolean hasDataAccess = new Boolean(response.getText()); DatasourceSelectionDialogController.this.administrator = hasDataAccess; showMessagebox("test", new Boolean(DatasourceSelectionDialogController.this.administrator).toString()); addDatasourceButton.setVisible(hasDataAccess); editDatasourceButton.setVisible(hasDataAccess); removeDatasourceButton.setVisible(hasDataAccess); try { removeDatasourceButtonBinding.fireSourceChanged(); editDatasourceButtonBinding.fireSourceChanged(); } catch (Exception e) { showMessagebox("Error", e.getLocalizedMessage()); } } }); } catch (RequestException e) { } }</code><technical_language>is this? do need show a dialog here, this for debugging</technical_language>

Target:
public void init() { internalInit(); final String url = GWT.getHostPageBaseURL() + "plugin/data-access/api/permissions/hasDataAccess"; RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url); builder.setHeader("accept", "application/json"); try { builder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { showMessagebox("Error", exception.getLocalizedMessage()); } public void onResponseReceived(Request request, Response response) { boolean hasDataAccess = new Boolean(response.getText()); DatasourceSelectionDialogController.this.administrator = hasDataAccess; addDatasourceButton.setVisible(hasDataAccess); editDatasourceButton.setVisible(hasDataAccess); removeDatasourceButton.setVisible(hasDataAccess); try { removeDatasourceButtonBinding.fireSourceChanged(); editDatasourceButtonBinding.fireSourceChanged(); } catch (Exception e) { showMessagebox("Error", e.getLocalizedMessage()); } } }); } catch (RequestException e) { } }
Source:
<code>protected void startBrooklynNode() { final String classpath = System.getenv("INITIAL_CLASSPATH"); if (classpath == null || Strings.isBlank(classpath)) { LOG.warn("Cannot find INITIAL_CLASSPATH environment variable, skipping BrooklynNode entity creation"); return; } ApplicationBuilder brooklyn = new ApplicationBuilder() { @Override protected void doBuild() { addChild(EntitySpec.create(BrooklynNode.class) .configure(SoftwareProcess.ENTITY_STARTED, true) .configure(SoftwareProcess.RUN_DIR, System.getenv("ROOT")) .configure(SoftwareProcess.INSTALL_DIR, System.getenv("BROOKLYN_HOME")) .configure(BrooklynNode.ENABLED_HTTP_PROTOCOLS, ImmutableList.of(webServer.getHttpsEnabled() ? "https" : "http")) .configure(webServer.getHttpsEnabled() ? BrooklynNode.HTTPS_PORT : BrooklynNode.HTTP_PORT, PortRanges.fromInteger(webServer.getActualPort())) .configure(BrooklynNode.WEB_CONSOLE_BIND_ADDRESS, bindAddress) .configure(BrooklynNode.WEB_CONSOLE_PUBLIC_ADDRESS, publicAddress) .configure(BrooklynNode.CLASSPATH, Splitter.on(":").splitToList(classpath)) .displayName("Brooklyn Console")); } }; brooklyn.appDisplayName("Brooklyn") .manage(managementContext) <START> .start(ImmutableList.of(new LocalhostMachine())); <END> }</code><technical_language>new LocalhostMachine() deprecated? Thought a LocationSpec</technical_language>

Target:
protected void startBrooklynNode() { final String classpath = System.getenv("INITIAL_CLASSPATH"); if (Strings.isBlank(classpath)) { LOG.warn("Cannot find INITIAL_CLASSPATH environment variable, skipping BrooklynNode entity creation"); return; } if (webServer == null || !startWebApps) { LOG.info("Skipping BrooklynNode entity creation, BrooklynWebServer not running"); return; } ApplicationBuilder brooklyn = new ApplicationBuilder() { @Override protected void doBuild() { addChild(EntitySpec.create(LocalBrooklynNode.class) .configure(SoftwareProcess.ENTITY_STARTED, true) .configure(SoftwareProcess.RUN_DIR, System.getenv("ROOT")) .configure(SoftwareProcess.INSTALL_DIR, System.getenv("BROOKLYN_HOME")) .configure(BrooklynNode.ENABLED_HTTP_PROTOCOLS, ImmutableList.of(webServer.getHttpsEnabled() ? "https" : "http")) .configure(webServer.getHttpsEnabled() ? BrooklynNode.HTTPS_PORT : BrooklynNode.HTTP_PORT, PortRanges.fromInteger(webServer.getActualPort())) .configure(BrooklynNode.WEB_CONSOLE_BIND_ADDRESS, bindAddress) .configure(BrooklynNode.WEB_CONSOLE_PUBLIC_ADDRESS, publicAddress) .configure(BrooklynNode.CLASSPATH, Splitter.on(":").splitToList(classpath)) .configure(BrooklynNode.NO_WEB_CONSOLE_AUTHENTICATION, Boolean.TRUE.equals(skipSecurityFilter)) .configure(BrooklynNode.NO_SHUTDOWN_ON_EXIT, stopWhichAppsOnShutdown == StopWhichAppsOnShutdown.NONE) .displayName("Brooklyn Console")); } }; LocationSpec<?> spec = LocationSpec.create(LocalhostMachine.class).displayName("Local Brooklyn"); Location localhost = managementContext.getLocationManager().createLocation(spec); brooklyn.appDisplayName("Brooklyn") .manage(managementContext) .start(ImmutableList.of(localhost)); }
Source:
<code>protected void testExecute_instructorAsStudentWithCourseId_shouldReturnAllSessionsForCourseOfStudent() { InstructorAttributes instructor1OfCourse1 = typicalBundle.instructors.get("instructor1OfCourse1"); StudentAttributes student2InCourse2 = typicalBundle.students.get("student2InCourse2"); loginAsStudentInstructor(instructor1OfCourse1.googleId); String[] submissionParam = { Const.ParamsNames.COURSE_ID, student2InCourse2.getCourse(), Const.ParamsNames.ENTITY_TYPE, Const.EntityType.STUDENT, }; GetFeedbackSessionsAction action = getAction(submissionParam); FeedbackSessionsData fsData = (FeedbackSessionsData) getJsonResult(action).getOutput(); assertEquals(2, fsData.getFeedbackSessions().size()); for (FeedbackSessionData sessionData : fsData.getFeedbackSessions()) { <START> assertEquals(student2InCourse2.getCourse(), sessionData.getCourseId()); <END> assertNull(sessionData.getDeletedAtTimestamp()); assertTrue(sessionsInCourse2.stream().anyMatch(session -> session.getFeedbackSessionName().equals(sessionData.getFeedbackSessionName()))); } }</code><technical_language>test verify full attributes returned API endpoint</technical_language>

Target:
protected void testExecute_instructorAsStudentWithCourseId_shouldReturnAllSessionsForCourseOfStudent() { InstructorAttributes instructor1OfCourse1 = typicalBundle.instructors.get("instructor1OfCourse1"); StudentAttributes student2InCourse2 = typicalBundle.students.get("student2InCourse2"); loginAsStudentInstructor(instructor1OfCourse1.googleId); String[] submissionParam = { Const.ParamsNames.COURSE_ID, student2InCourse2.getCourse(), Const.ParamsNames.ENTITY_TYPE, Const.EntityType.STUDENT, }; GetFeedbackSessionsAction action = getAction(submissionParam); FeedbackSessionsData fsData = (FeedbackSessionsData) getJsonResult(action).getOutput(); assertAllStudentSessionsMatch(fsData, sessionsInCourse2); }
Source:
<code>private void interpretCommandStatus(String status, ResultHandler handler) { long oid = 0; long count = 0; <START> Matcher matcher = COMMAND_COMPLETE_MATCHER.reset(status); <END> if (matcher.matches()) { String group2 = matcher.group(2); String group3 = matcher.group(3); try { if (group3 != null) { oid = Long.parseLong(group2); count = Long.parseLong(group3); } else if (group2 != null) { count = Long.parseLong(group2); } } catch (NumberFormatException e) { handler.handleError(new PSQLException( GT.tr("Unable to parse the count in command completion tag: {0}.", status), PSQLState.CONNECTION_FAILURE)); return; } } int countAsInt = 0; if (count > Integer.MAX_VALUE) { countAsInt = Statement.SUCCESS_NO_INFO; } else if (count > 0) { countAsInt = (int) count; } handler.handleCommandStatus(status, countAsInt, oid); }</code><technical_language>This thread safe. A concurrent thread call reset a status, affecting this thread's call matches group methods</technical_language>

Target:
private void interpretCommandStatus(String status, ResultHandler handler) { long oid = 0; long count = 0; Matcher matcher = commandCompleteMatcher.reset(status); if (matcher.matches()) { String group2 = matcher.group(2); String group3 = matcher.group(3); try { if (group3 != null) { oid = Long.parseLong(group2); count = Long.parseLong(group3); } else if (group2 != null) { count = Long.parseLong(group2); } } catch (NumberFormatException e) { handler.handleError(new PSQLException( GT.tr("Unable to parse the count in command completion tag: {0}.", status), PSQLState.CONNECTION_FAILURE)); return; } } int countAsInt = 0; if (count > Integer.MAX_VALUE) { countAsInt = Statement.SUCCESS_NO_INFO; } else if (count > 0) { countAsInt = (int) count; } handler.handleCommandStatus(status, countAsInt, oid); }
Source:
<code>public static void createProjects(final Repository repository, final IProgressMonitor monitor) throws CoreException { List<File> projects = new ArrayList<File>(); if (ProjectUtil.findProjectFiles(projects, repository.getWorkTree() <START> .getParentFile(), null, monitor)) <END> for (File file : projects) ProjectUtil.createProject(repository, file, monitor); }</code><technical_language>this is level high, searching parent of working tree find projects located in working tree of newly cloned repository, this run a long time if this parent directory is big text displayed progress monitor is "Cloning ..." instead of "Searching projects auto-import"</technical_language>

Target:
public static void createProjects(final Repository repository, final IProgressMonitor monitor) throws CoreException { List<File> projects = new ArrayList<File>(); if (ProjectUtil.findProjectFiles(projects, repository.getWorkTree(), null, monitor)) for (File file : projects) ProjectUtil.createProject(repository, file, monitor); }
Source:
<code>private void threadSummary() { List<String> prefixes = Lists.newArrayList("HTTP", "IntraLineDiff", "ReceiveCommits", "SSH git-receive-pack", "SSH git-upload-pack", "SSH-Interactive-Worker", "SSH-Stream-Worker", "SshCommandStart"); Runtime r = Runtime.getRuntime(); ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean(); stdout.format("Threads: %d <START> cpus available, <END> %d threads\n", r.availableProcessors(), threadMXBean.getThreadCount()); Table<String, Thread.State, Integer> count = HashBasedTable.create(); for (long id : threadMXBean.getAllThreadIds()) { ThreadInfo info = threadMXBean.getThreadInfo(id); if (info == null) { continue; } String name = info.getThreadName(); for (String p : prefixes) { if (name.startsWith(p)) { Thread.State state = info.getThreadState(); Integer c = count.get(p, state); count.put(p, info.getThreadState(), c != null ? c++ : 1); } } } stdout.print(String.format(" %22s", "")); for (Thread.State s : Thread.State.values()) { stdout.print(String.format(" %14s", s.name())); } stdout.print('\n'); for (String p : prefixes) { stdout.print(String.format(" %-22s", p)); for (Thread.State s : Thread.State.values()) { stdout.print(String.format(" %14d", nullToZero(count.get(p, s)))); } stdout.print('\n'); } stdout.print('\n'); }</code><technical_language>CPUs</technical_language>

Target:
private void threadSummary() { List<String> prefixes = Lists.newArrayList("HTTP", "IntraLineDiff", "ReceiveCommits", "SSH git-receive-pack", "SSH git-upload-pack", "SSH-Interactive-Worker", "SSH-Stream-Worker", "SshCommandStart"); Runtime r = Runtime.getRuntime(); ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean(); stdout.format("Threads: %d CPUs available, %d threads\n", r.availableProcessors(), threadMXBean.getThreadCount()); Table<String, Thread.State, Integer> count = HashBasedTable.create(); for (long id : threadMXBean.getAllThreadIds()) { ThreadInfo info = threadMXBean.getThreadInfo(id); if (info == null) { continue; } String name = info.getThreadName(); for (String p : prefixes) { if (name.startsWith(p)) { Thread.State state = info.getThreadState(); Integer c = count.get(p, state); count.put(p, info.getThreadState(), c != null ? c++ : 1); } } } stdout.print(String.format(" %22s", "")); for (Thread.State s : Thread.State.values()) { stdout.print(String.format(" %14s", s.name())); } stdout.print('\n'); for (String p : prefixes) { stdout.print(String.format(" %-22s", p)); for (Thread.State s : Thread.State.values()) { stdout.print(String.format(" %14d", nullToZero(count.get(p, s)))); } stdout.print('\n'); } stdout.print('\n'); }
Source:
<code>public void configurePipeline(PipelineConfigurer pipelineConfigurer) { super.configurePipeline(pipelineConfigurer); Schema inputSchema = pipelineConfigurer.getStageConfigurer().getInputSchema(); <START> SchemaValidator.validateFieldsArePresentInSchema(inputSchema, kvTableConfig.keyField); <END> SchemaValidator.validateFieldsArePresentInSchema(inputSchema, kvTableConfig.valueField); validateSchemaTypeIsStringOrBytes(inputSchema, kvTableConfig.keyField); validateSchemaTypeIsStringOrBytes(inputSchema, kvTableConfig.valueField); }</code><technical_language>do this if input schema is null</technical_language>

Target:
public void configurePipeline(PipelineConfigurer pipelineConfigurer) { super.configurePipeline(pipelineConfigurer); Schema inputSchema = pipelineConfigurer.getStageConfigurer().getInputSchema(); if (inputSchema != null) { SchemaValidator.validateFieldsArePresentInSchema(inputSchema, kvTableConfig.keyField); SchemaValidator.validateFieldsArePresentInSchema(inputSchema, kvTableConfig.valueField); validateSchemaTypeIsStringOrBytes(inputSchema, kvTableConfig.keyField, false); validateSchemaTypeIsStringOrBytes(inputSchema, kvTableConfig.valueField, true); } }
Source:
<code>@Override public boolean equals(Object obj) { if (!(obj instanceof TimeWithTimeZone)) { return false; } TimeWithTimeZone that = (TimeWithTimeZone) obj; <START> return milliOfDay == that.milliOfDay && timeZone == that.timeZone; <END> }</code><technical_language>call timeZone.equals(that.timeZone) is comparing reference real value</technical_language>

Target:
@Override public boolean equals(Object obj) { if (!(obj instanceof TimeWithTimeZone)) { return false; } TimeWithTimeZone that = (TimeWithTimeZone) obj; return milliOfDay == that.milliOfDay && timeZone.equals(that.timeZone); }
Source:
<code>public int getMaxIntermediateSize() { <START> return Long.BYTES + Double.BYTES + 1; <END> }</code><technical_language>Byte.BYTES. adding a new variable NULL_SIZE</technical_language>

Target:
public int getMaxIntermediateSize() { return Long.BYTES + Byte.BYTES + Double.BYTES; }
Source:
<code>public String findPlacement(Bundle networkExtras, Bundle serverParameters) { String placement = null; if (networkExtras != null && networkExtras.containsKey(VungleExtrasBuilder.EXTRA_PLAY_PLACEMENT)) { placement = networkExtras.getString(VungleExtrasBuilder.EXTRA_PLAY_PLACEMENT); } if (serverParameters != null && serverParameters.containsKey(PLAYING_PLACEMENT)) { if (placement != null) { Log.i(TAG, "'placementID' had a value in both serverParameters and networkExtras. " + "Used one from serverParameters"); } placement = serverParameters.getString(PLAYING_PLACEMENT); } if (placement == null) { <START> Log.e(TAG, "placementID not provided from serverParameters. Please check your AdMob dashboard settings." + <END> "load and play functionality will not work"); } return placement; }</code><technical_language>Line limit space period</technical_language>

Target:
public String findPlacement(Bundle networkExtras, Bundle serverParameters) { String placement = null; if (networkExtras != null && networkExtras.containsKey(VungleExtrasBuilder.EXTRA_PLAY_PLACEMENT)) { placement = networkExtras.getString(VungleExtrasBuilder.EXTRA_PLAY_PLACEMENT); } if (serverParameters != null && serverParameters.containsKey(PLAYING_PLACEMENT)) { if (placement != null) { Log.i(TAG, "'placementID' had a value in both serverParameters and networkExtras. " + "Used one from serverParameters"); } placement = serverParameters.getString(PLAYING_PLACEMENT); } if (placement == null) { Log.e(TAG, "placementID not provided from serverParameters."); } return placement; }
Source:
<code>public String getDescription() { return "This strategy is is a specialization in order to be able to drop a Parameter <START> inside Parameter Property."; <END> }</code><technical_language>remove this</technical_language>

Target:
public String getDescription() { return "This strategy is is a specialization in order to be able to drop a Parameter."; }