idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,667,190
private void onRestoreFileVersionOperationFinish(RemoteOperationResult result) {<NEW_LINE>if (result.isSuccess()) {<NEW_LINE>OCFile file = getFile();<NEW_LINE>// delete old local copy<NEW_LINE>if (file.isDown()) {<NEW_LINE>List<OCFile> list = new ArrayList<>();<NEW_LINE>list.add(file);<NEW_LINE>getFileOperationsHelper(...
removeFiles(list, true, true);
1,175,095
protected void configure() {<NEW_LINE>LOGGER.debug("installing module: {}", ExportModule.class.getSimpleName());<NEW_LINE>Properties properties = create(PROPERTY_NAME, ExportModule.class);<NEW_LINE>bind(Integer.class).annotatedWith(named("export.rest.client.connectionTimeout")).toInstance(Integer.valueOf(getProperty("e...
(getProperty("http.proxy.host", properties));
571,316
public void testRetrySixWithTwoPasses(PrintWriter out) throws Exception {<NEW_LINE>List<Instruction> instructions = new ArrayList<Instruction>(6);<NEW_LINE>instructions.addAll(Arrays.asList(Instruction.FAIL, Instruction.FAIL, Instruction.FAIL, Instruction.PASS, Instruction.FAIL, Instruction.PASS));<NEW_LINE>Programmabl...
throw new Exception("Results were inconsistent: " + results);
727,540
final GetChangeTokenResult executeGetChangeToken(GetChangeTokenRequest getChangeTokenRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getChangeTokenRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
HandlerContextKey.SIGNING_REGION, getSigningRegion());
647,813
private static ClientHello implParse(ByteArrayInputStream messageInput, OutputStream dtlsOutput) throws IOException {<NEW_LINE>InputStream input = messageInput;<NEW_LINE>if (null != dtlsOutput) {<NEW_LINE>input = new TeeInputStream(input, dtlsOutput);<NEW_LINE>}<NEW_LINE>ProtocolVersion clientVersion = TlsUtils.readVer...
readOpaque8(input, 0, 32);
1,506,648
private Dimension layoutSize(@Nonnull Function<Component, Dimension> size) {<NEW_LINE>Dimension titleSize = myTitleComponent == null ? new Dimension() : size.fun(myTitleComponent);<NEW_LINE>Dimension centeredSize = myCenteredComponent == null ? new Dimension() : size.fun(myCenteredComponent);<NEW_LINE>Dimension actionS...
.width + myLayoutData.configuration.closeOffset;
69,794
public void install() {<NEW_LINE>File targetDirectory = null;<NEW_LINE>JavaHomeHandler javaHomeHandler = null;<NEW_LINE>if (_commandLine.hasConsoleOption()) {<NEW_LINE>welcome();<NEW_LINE>selectLanguage();<NEW_LINE>acceptLicense();<NEW_LINE>InstallationType installationType = selectInstallationType();<NEW_LINE>targetDi...
checkVersionSilent(_commandLine.getJavaHomeHandler());
1,235,288
private static AlertDialog.Builder buildUnblockFor(@NonNull Context context, @NonNull Recipient recipient, @NonNull Runnable onUnblock) {<NEW_LINE>recipient = recipient.resolve();<NEW_LINE>AlertDialog.Builder builder = new MaterialAlertDialogBuilder(context);<NEW_LINE>Resources resources = context.getResources();<NEW_L...
R.string.cancel, null);
1,816,376
public void accept(XMLEvent event, SynchronousSink<List<XMLEvent>> sink) {<NEW_LINE>if (event.isStartElement()) {<NEW_LINE>if (this.barrier == Integer.MAX_VALUE) {<NEW_LINE>QName startElementName = event<MASK><NEW_LINE>if (this.desiredName.equals(startElementName)) {<NEW_LINE>this.events = new ArrayList<>();<NEW_LINE>t...
.asStartElement().getName();
1,697,620
private Mono<Response<Flux<ByteBuffer>>> upgradeWithResponseAsync(String resourceGroupName, String diskPoolName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,843,233
private void displayPopupEditor() {<NEW_LINE>PopupPropertySheet<T> sheet = new PopupPropertySheet<>(item, this);<NEW_LINE>sheet.setPrefWidth(500);<NEW_LINE>Alert alert = new Alert(Alert.AlertType.NONE);<NEW_LINE>// alert.setWidth(700);<NEW_LINE>// alert.setResizable(true);<NEW_LINE>alert.setResizable(false);<NEW_LINE>a...
"Change Postcode", ButtonBar.ButtonData.OTHER);
406,882
protected String layoutCL(final JLabel label, final FontMetrics fontMetrics, final String text, final Icon icon, final Rectangle viewR, final Rectangle iconR, final Rectangle textR) {<NEW_LINE>final ZoomableLabel zLabel = (ZoomableLabel) label;<NEW_LINE>final float zoom = zLabel.getZoom();<NEW_LINE>if (isPainting) {<NE...
label.getClientProperty(BasicHTML.propertyKey);
607,077
public static String computeFitText(JTable table, int rowIdx, int columnIdx, String text) {<NEW_LINE>// NOI18N<NEW_LINE>if (text == null)<NEW_LINE>text = "";<NEW_LINE>if (text.length() <= VISIBLE_START_CHARS + 3)<NEW_LINE>return text;<NEW_LINE>FontMetrics fm = table.<MASK><NEW_LINE>int width = table.getCellRect(rowIdx,...
getFontMetrics(table.getFont());
1,801,227
public WebIntentBuilder build() {<NEW_LINE>if (webpage == null) {<NEW_LINE>throw new RuntimeException("URL cannot be null.");<NEW_LINE>}<NEW_LINE>if (forceExternal || shouldAlwaysForceExternal(webpage) || settings.browserSelection.equals("external")) {<NEW_LINE>// request the external browser<NEW_LINE>intent = new Inte...
putExtra(Intent.EXTRA_TEXT, extraText);
1,386,496
// TODO(bleichen): Mabye implement write(ByteBuffer) so that<NEW_LINE>// there are no surprises if the underlying class is extended.<NEW_LINE>@Override<NEW_LINE>public synchronized void write(byte[] pt, int offset, int length) throws IOException {<NEW_LINE>if (!open) {<NEW_LINE>throw new IOException("Trying to write to...
wrap(pt, startPosition, sliceSize);
920,401
private Throwable createException(Iterator<ErrorHolder> iterator) {<NEW_LINE>if (!iterator.hasNext()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ErrorHolder errorHolder = iterator.next();<NEW_LINE>ExceptionFactory exceptionFactory = intToFactory.get(errorHolder.getErrorCode());<NEW_LINE>Throwable throwable = null;<NEW...
String className = errorHolder.getClassName();
928,681
public void notifyDownload(SpeedManagerLimitEstimate estimate) {<NEW_LINE>int bestLimit = <MASK><NEW_LINE>SpeedManagerLogger.trace("notifyDownload downloadLimitMax=" + downloadLimitMax + " conf=" + downloadLimitConf.getString() + " (" + downloadLimitConf.asEstimateType() + ")");<NEW_LINE>tempLogEstimate(estimate);<NEW_...
choseBestLimit(estimate, downloadLimitMax, downloadLimitConf);
689,841
private void dbUpdatePriceLists(@NonNull final ImportRecordsSelection selection, @NonNull final Properties ctx, @NonNull final String nameToMatch) {<NEW_LINE>final int <MASK><NEW_LINE>final StringBuilder sql = new StringBuilder("UPDATE ").append(targetTableName + " i set ").append(nameToMatch).append("_Price_List_ID=(s...
adClientId = Env.getAD_Client_ID(ctx);
1,479,785
private void importUsersFromSO(List<Map<String, Object>> objs, List<ParaObject> toImport) throws ParseException {<NEW_LINE>logger.info("Importing {} users...", objs.size());<NEW_LINE>for (Map<String, Object> obj : objs) {<NEW_LINE>User u = new User();<NEW_LINE>u.setId("user_" + (Integer) obj.get("id"));<NEW_LINE>u.setT...
u.getId() + "@scoold.com");
1,086,284
private void applyRename(RenameEntry entry) {<NEW_LINE>if (entry.hasDstPath()) {<NEW_LINE>entry = rewriteDeprecatedRenameEntry(entry);<NEW_LINE>}<NEW_LINE>MutableInode<?> inode = mInodeStore.getMutable(entry.getId()).get();<NEW_LINE>long oldParent = inode.getParentId();<NEW_LINE>long newParent = entry.getNewParentId();...
oldParent, inode.getName());
1,244,827
final CreateTokenResult executeCreateToken(CreateTokenRequest createTokenRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createTokenRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,105,552
public String refund(@RequestAttribute SysSite site, @SessionAttribute SysUser user, TradeRefund entity, String returnUrl, HttpServletRequest request, HttpSession session, ModelMap model) {<NEW_LINE>Map<String, String> config = configComponent.getConfigData(site.getId(), Config.CONFIG_CODE_SITE);<NEW_LINE>String safeRe...
config.get(LoginConfigComponent.CONFIG_RETURN_URL);
1,589,909
private String attribute(XMLStreamReader parser, String nsURI, String localname) {<NEW_LINE>int x = parser.getAttributeCount();<NEW_LINE>if (x > 1)<NEW_LINE>// Namespaces?<NEW_LINE>staxError(parser.getLocation()<MASK><NEW_LINE>if (x == 0)<NEW_LINE>return null;<NEW_LINE>String attrPX = parser.getAttributePrefix(0);<NEW_...
, "Multiple attributes : only one allowed : " + tagName(parser));
1,807,319
public static ModularClassPath resolveDependencies(List<String> deps, List<MavenRepo> repos, boolean offline, boolean updateCache, boolean loggingEnabled, boolean transitivity) {<NEW_LINE>// if no dependencies were provided we stop here<NEW_LINE>if (deps.isEmpty()) {<NEW_LINE>return new ModularClassPath(Collections.emp...
ExitException(0, "Failed while connecting to the server. Check the connection (http/https, port, proxy, credentials, etc.) of your maven dependency locators.", e);
77,066
protected void encodeMarkup(FacesContext context, InputNumber inputNumber, Object value, String valueToRender) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String clientId = inputNumber.getClientId(context);<NEW_LINE>String styleClass = inputNumber.getStyleClass();<NEW_LIN...
context, inputNumber, clientId, valueToRender);
572,668
public Composite createPreferenceComposite(Composite parent, final IBuildParticipantWorkingCopy participant) {<NEW_LINE>Composite master = new Composite(parent, SWT.NONE);<NEW_LINE>master.setLayout(GridLayoutFactory.fillDefaults().create());<NEW_LINE>GridDataFactory fillHoriz = GridDataFactory.fillDefaults().grab(true,...
(2).create());
334,488
public void promoteLocalLiteMember() {<NEW_LINE>MemberImpl member = getLocalMember();<NEW_LINE>if (!member.isLiteMember()) {<NEW_LINE>throw new IllegalStateException(member + " is not a lite member!");<NEW_LINE>}<NEW_LINE>MemberImpl master = getMasterMember();<NEW_LINE>PromoteLiteMemberOp op = new PromoteLiteMemberOp()...
boolean result = localMemberInMemberList.isLiteMember();
537,389
public ChangeInfo implement() {<NEW_LINE>PickOrCreateFieldPanel pnlPickOrCreateField = new PickOrCreateFieldPanel();<NEW_LINE>pnlPickOrCreateField.setAvailableFields(getAvailableFields());<NEW_LINE>pnlPickOrCreateField.setFileObject(fileObject);<NEW_LINE>DialogDescriptor ddesc = new DialogDescriptor(pnlPickOrCreateFiel...
(CreateId.class, "LBL_AddIDAnnotationDlgTitle"));
1,184,671
ContentResponse processX509CertRequest(final String csr, final List<Integer> extKeyUsage, int expiryTime, int retryCount) {<NEW_LINE>ContentResponse response = null;<NEW_LINE>try {<NEW_LINE>Request request = httpClient.POST(x509CertUri);<NEW_LINE>request.<MASK><NEW_LINE>request.header(HttpHeader.CONTENT_TYPE, CONTENT_J...
header(HttpHeader.ACCEPT, CONTENT_JSON);
31,718
private void initControllerView(View v) {<NEW_LINE>mPauseButton = v.<MASK><NEW_LINE>if (mPauseButton != null) {<NEW_LINE>mPauseButton.requestFocus();<NEW_LINE>mPauseButton.setOnClickListener(mPauseListener);<NEW_LINE>}<NEW_LINE>mFullscreenButton = v.findViewById(R.id.fullscreen_mode_button);<NEW_LINE>if (mFullscreenBut...
findViewById(R.id.play_button);
488,356
boolean assignParent(Config parentConfig) {<NEW_LINE>if (this.parent != null) {<NEW_LINE>throw new MixinInitialisationError("Mixin config " + this.name + " was already initialised");<NEW_LINE>}<NEW_LINE>if (parentConfig.get() == this) {<NEW_LINE>throw new MixinInitialisationError("Mixin config " + this.name + " cannot ...
.verboseLogging |= this.parent.verboseLogging;
587,761
protected static String createRandomStringHostNameForEbc(String canonicalHostName) {<NEW_LINE>String methodName = "createRandomStringHostNameForEbc";<NEW_LINE>rndHostName = libertyHostMap.get(canonicalHostName);<NEW_LINE>if (rndHostName == null) {<NEW_LINE>String prefix = "ebc_";<NEW_LINE>String chars = "abcdefghijklmn...
) * chars.length());
956,113
// Post Format Helpers<NEW_LINE>private void updatePostFormatKeysAndNames() {<NEW_LINE>final SiteModel site = getSite();<NEW_LINE>if (site == null) {<NEW_LINE>// Since this method can get called after a callback, we have to make sure we have the site<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Initialize the lists from the...
= new ArrayList<>(mDefaultPostFormatKeys);
709,979
public com.squareup.okhttp.Call cancelTaskCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String loca...
localVarAuthNames = new String[] {};
846,189
public Client call123testSpecialTags(Client body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags");<NEW_LIN...
localVarAuthNames = new String[] {};
1,734,355
public void clear(short columnFrom, short columnTo, short rowFrom, short rowTo) {<NEW_LINE>if (columnFrom < 0 || columnFrom > maxColumn) {<NEW_LINE>logger.error("start column must have a value from 0 to {}", maxColumn);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (columnTo < 0 || columnTo > maxColumn) {<NEW_LINE>logger.err...
this, TinkerforgeErrorHandler.TF_TIMEOUT_EXCEPTION, e);
451,481
public ConcurrentMap<CacheKey, CacheValue> createCache(LocalCachedMapOptions<?, ?> options) {<NEW_LINE>if (options.getCacheProvider() == LocalCachedMapOptions.CacheProvider.CAFFEINE) {<NEW_LINE>Caffeine<Object, Object> caffeineBuilder = Caffeine.newBuilder();<NEW_LINE>if (options.getTimeToLiveInMillis() > 0) {<NEW_LINE...
"Invalid eviction policy: " + options.getEvictionPolicy());
358,984
public PageSmsSignBO pageSmsSign(PageQuerySmsSignDTO queryDTO) {<NEW_LINE>QueryWrapper<SmsSignDO> queryWrapper = new QueryWrapper<>();<NEW_LINE>if (queryDTO.getApplyStatus() != null) {<NEW_LINE>queryWrapper.eq("apply_status", queryDTO.getApplyStatus());<NEW_LINE>}<NEW_LINE>if (!StringUtils.isEmpty(queryDTO.getSign())) ...
convert(signPage.getRecords());
1,854,449
final GetBlacklistReportsResult executeGetBlacklistReports(GetBlacklistReportsRequest getBlacklistReportsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBlacklistReportsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
false), new GetBlacklistReportsResultJsonUnmarshaller());
1,135,749
public static DescribeGatherStatsResultResponse unmarshall(DescribeGatherStatsResultResponse describeGatherStatsResultResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeGatherStatsResultResponse.setRequestId(_ctx.stringValue("DescribeGatherStatsResultResponse.RequestId"));<NEW_LINE>describeGatherStatsResultResponse...
(_ctx.booleanValue("DescribeGatherStatsResultResponse.GatherStatsResult.Change.ChangeSucceeded"));
406,046
public boolean updateAttributes() {<NEW_LINE>this.name = FileUtil.getStringFromFile(String.format(ProcPath.TASK_COMM, this.getOwningProcessId(), this.threadId));<NEW_LINE>Map<String, String> status = FileUtil.getKeyValueMapFromFile(String.format(ProcPath.TASK_STATUS, this.getOwningProcessId(), this.threadId), ":");<NEW...
long now = System.currentTimeMillis();
339,322
public void disableLedgerReplication() throws ReplicationException.UnavailableException {<NEW_LINE>List<ACL> zkAcls = ZkUtils.getACLs(conf);<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE>LOG.debug("disableLedegerReplication()");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String znode = basePath + '/' + BookKeeperConstants.DISA...
.currentThread().interrupt();
1,220,262
public void marshall(UpdateIdentityPoolRequest updateIdentityPoolRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateIdentityPoolRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateIde...
updateIdentityPoolRequest.getAllowClassicFlow(), ALLOWCLASSICFLOW_BINDING);
252,385
public void refresh(TableCell cell, long timestamp) {<NEW_LINE>Subscription sub = <MASK><NEW_LINE>if (sub == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// SortVal will be: ((latest & 0x7FFFFFFFL) << 32) + (scanTime & 0xFFFFFFFFL)<NEW_LINE>long scanTime = (sub.getHistory().getLastScanTime() / 1000) & 0xFFFFFFFFL;<NEW_...
(Subscription) cell.getDataSource();
610,980
static LogResult postLog(@NonNull final Geocache cache, @NonNull final LogType logType, @NonNull final Calendar date, @NonNull final String log) {<NEW_LINE>final Parameters params = new Parameters("cache_id", cache.getGeocode());<NEW_LINE>params.add("type", logType.type);<NEW_LINE><MASK><NEW_LINE>params.add("date", LOG...
params.add("log", log);
1,338,251
// looking for nums[0] < nums[1] > nums[2] < nums[3] and so on.<NEW_LINE>public void wiggleSort2(int[] arr) {<NEW_LINE>if (arr.length == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int k = arr.length / 2;<NEW_LINE>KthElementInArray kthElementInArray = new KthElementInArray();<NEW_LINE>kthElementInArray.kthElement(arr, k)...
next(k--, n));
87,045
public ANode visitLambda(LambdaContext ctx) {<NEW_LINE>reserved.push(new FunctionReserved());<NEW_LINE>List<String> paramTypes = new ArrayList<>();<NEW_LINE>List<String> paramNames = new ArrayList<>();<NEW_LINE>List<AStatement> statements = new ArrayList<>();<NEW_LINE>for (LamtypeContext lamtype : ctx.lamtype()) {<NEW_...
), paramTypes, paramNames, statements);
579,390
private DeferredResult<ResponseEntity> saveAttributes(TenantId srcTenantId, EntityId entityIdSrc, String scope, JsonNode json) throws ThingsboardException {<NEW_LINE>if (!DataConstants.SERVER_SCOPE.equals(scope) && !DataConstants.SHARED_SCOPE.equals(scope)) {<NEW_LINE>return getImmediateDeferredResult("Invalid scope: "...
new ResponseEntity(HttpStatus.OK));
646,313
public static void writeTo(CompositeValuesSourceBuilder<?> builder, StreamOutput out) throws IOException {<NEW_LINE>final byte code;<NEW_LINE>if (builder.getClass() == TermsValuesSourceBuilder.class) {<NEW_LINE>code = 0;<NEW_LINE>} else if (builder.getClass() == DateHistogramValuesSourceBuilder.class) {<NEW_LINE>code =...
out.getVersion() + "]");
1,330,976
public void testRxFlowableToObservableInvoker_get1(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Executors.defaultTh...
newBuilder().executorService(executorService);
201,172
public void doText(NewsViewHolder holder, Submission submission, Context mContext, String baseSub) {<NEW_LINE>SpannableStringBuilder t = <MASK><NEW_LINE>SpannableStringBuilder l = SubmissionCache.getInfoLine(submission, mContext, baseSub);<NEW_LINE>int[] textSizeAttr = new int[] { R.attr.font_cardtitle, R.attr.font_car...
SubmissionCache.getTitleLine(submission, mContext);
982,235
public Graph.Builder createGraphBuilder() {<NEW_LINE>final String storePropertiesPath = System.getProperty(SystemProperty.STORE_PROPERTIES_PATH);<NEW_LINE>if (null == storePropertiesPath) {<NEW_LINE>throw new SchemaException("The path to the Store Properties was not found in system properties for key: " + SystemPropert...
(Paths.get(graphHooksPath));
1,732,452
@Operation(summary = "Set the greeting prefix", description = "Permits the client to set the prefix part of the greeting (\"Hello\")")<NEW_LINE>@RequestBody(name = "greeting", description = "Conveys the new greeting prefix to use in building greetings", content = @Content(mediaType = "application/json", schema = @Schem...
Status.NO_CONTENT).build();
773,787
default <R1, R2, R3, R4> Reader<T, R4> forEach4(Function<? super R, Function<? super T, ? extends R1>> value2, BiFunction<? super R, ? super R1, Function<? super T, ? extends R2>> value3, Function3<? super R, ? super R1, ? super R2, Function<? super T, ? extends R3>> value4, Function4<? super R, ? super R1, ? super R2,...
Reader<T, R4>) res;
854,035
private void checkHostStorageConnection(final String hostUuid, String clusterUuid, Completion completion) {<NEW_LINE>List<String> psUuids = findCephPrimaryStorage(clusterUuid);<NEW_LINE>if (psUuids.isEmpty()) {<NEW_LINE>completion.success();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<CheckHostStorageConnectionMsg> msgs ...
.setHostUuids(list(hostUuid));
1,179,934
public void perform() {<NEW_LINE>if (updateInfo.getPass().isExpired()) {<NEW_LINE>finalizeRunnable.run();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!updateInfo.isDescriptorIsUpToDate()) {<NEW_LINE>update(updateInfo.getDescriptor(), true);<NEW_LINE>}<NEW_LINE>if (!updateInfo.isUpdateChildren()) {<NEW_LINE>nodeToProcessAc...
true).blockingGet(0));
1,575,050
private boolean compareVarnode(Varnode vn1, Varnode vn2, PcodeOpEmitter op2) {<NEW_LINE>if (vn1 == null) {<NEW_LINE>return (vn2 == null);<NEW_LINE>}<NEW_LINE>if (vn2 == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (vn1.getSize() != vn2.getSize()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>AddressSpace spc1 =...
.getAddress().getAddressSpace();
1,526,752
private void processMaxAggregation(AggregationResult aggResult, Long curLValue, Double curDValue, Boolean curBValue, String curSValue, String curJValue) {<NEW_LINE>if (curDValue != null || curLValue != null) {<NEW_LINE>if (curDValue != null) {<NEW_LINE>aggResult.dValue = aggResult.dValue == null ? curDValue : Math.<MAS...
max(aggResult.dValue, curDValue);
377,203
public void initialize(ExtensionContext context) {<NEW_LINE>// Note: initialize could be called twice in an account migration scenario where we import and<NEW_LINE>// export to the same service provider. So just return rather than throwing if called multiple<NEW_LINE>// times.<NEW_LINE>if (initialized)<NEW_LINE>return;...
, jobStore, monitor, credentialFactory));
901,820
public Request<ModifyCustomDBEngineVersionRequest> marshall(ModifyCustomDBEngineVersionRequest modifyCustomDBEngineVersionRequest) {<NEW_LINE>if (modifyCustomDBEngineVersionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ModifyCustomDBEng...
<ModifyCustomDBEngineVersionRequest>(modifyCustomDBEngineVersionRequest, "AmazonRDS");
92,443
public static ListLogicDatabasesResponse unmarshall(ListLogicDatabasesResponse listLogicDatabasesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listLogicDatabasesResponse.setRequestId(_ctx.stringValue("ListLogicDatabasesResponse.RequestId"));<NEW_LINE>listLogicDatabasesResponse.setTotalCount(_ctx.longValue("ListLogicDa...
("ListLogicDatabasesResponse.LogicDatabaseList[" + i + "].Logic"));
1,285,466
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource");
44,508
public void init() throws DBException {<NEW_LINE>Properties prop = getProperties();<NEW_LINE>this.tableName = prop.getProperty(TABLENAME_PROPERTY, TABLENAME_PROPERTY_DEFAULT);<NEW_LINE>this.partitionSchema = prop.getProperty(PARTITION_SCHEMA_OPT, DEFAULT_PARTITION_SCHEMA);<NEW_LINE>this.zeropadding = Integer.parseInt(p...
.schema = kuduTable.getSchema();
34,901
private void catchup(boolean checkState) {<NEW_LINE>StreamAction state = getServiceState();<NEW_LINE>boolean canCatchup = true;<NEW_LINE>if (!checkState) {<NEW_LINE>Log.i(LOG_TAG, "catchup without checking state ");<NEW_LINE>} else {<NEW_LINE>Log.i(LOG_TAG, "catchup with state " + state + " CurrentActivity " + VectorA...
Log.i(LOG_TAG, "No catchup is triggered because there is already a running event thread");
474,631
private void altCommitToOriginal(@Nonnull DocumentEvent e) {<NEW_LINE>final PsiFile origPsiFile = PsiDocumentManager.getInstance(myProject).getPsiFile(myOrigDocument);<NEW_LINE>String newText = myNewDocument.getText();<NEW_LINE>// prepare guarded blocks<NEW_LINE>Map<String, String> replacementMap = new LinkedHashMap<>(...
myAltFullRange.getEndOffset(), newText);
831,622
static void rethrow(Throwable cause, BugReporter bugReporter, EvaluationResult<?> resultForDebugging) throws BuildFailedException, TestExecException {<NEW_LINE>Throwables.throwIfUnchecked(cause);<NEW_LINE>Throwable innerCause = cause.getCause();<NEW_LINE>if (innerCause instanceof TestExecException) {<NEW_LINE>throw (Te...
("action terminated with unexpected exception with result " + resultForDebugging, cause));
1,211,670
private void _fixOrphanVertices() {<NEW_LINE>int pathCount = 0;<NEW_LINE>// clean any path info<NEW_LINE>for (int node = m_sortedVertices.getFirst(m_sortedVertices.getFirstList()); node != -1; node = m_sortedVertices.getNext(node)) {<NEW_LINE>int vertex = m_sortedVertices.getData(node);<NEW_LINE>m_shape.setPathToVertex...
path = m_shape.getNextPath(path);
1,124,143
public static char[] toCharArray(char[] methodSignature, char[] methodName, char[][] parameterNames, boolean fullyQualifyTypeNames, boolean includeReturnType, boolean isVargArgs) {<NEW_LINE>int firstParen = CharOperation.indexOf(C_PARAM_START, methodSignature);<NEW_LINE>if (firstParen == -1) {<NEW_LINE>throw new Illega...
0, fullyQualifyTypeNames, buffer, isVargArgs);
1,334,498
public static DescribeRegionsResponse unmarshall(DescribeRegionsResponse describeRegionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRegionsResponse.setRequestId(_ctx.stringValue("DescribeRegionsResponse.RequestId"));<NEW_LINE>describeRegionsResponse.setErrorCode(_ctx.integerValue("DescribeRegionsResponse.Err...
("DescribeRegionsResponse.Regions[" + i + "].RegionEndpoint"));
1,662,104
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException {<NEW_LINE>try {<NEW_LINE>setupLock.readLock().lock();<NEW_LINE>if (probes.isEmpty())<NEW_LINE>return null;<NEW_LINE>className = class...
.readLock().unlock();
992,901
/* Build call for subscriptionsGet */<NEW_LINE>private com.squareup.okhttp.Call subscriptionsGetCall(String apiId, Integer limit, Integer offset, String accept, String ifNoneMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) th...
HashMap<String, String>();
32,170
private static void assertEventProps(RegressionEnvironment env, EventBean eventBean, String currSymbol, String prev0Symbol, Double prev0Price, String prev1Symbol, Double prev1Price, String prev2Symbol, Double prev2Price, String prevTail0Symbol, Double prevTail0Price, String prevTail1Symbol, Double prevTail1Price, Long ...
, eventBean.get("prev2Symbol"));
1,296,174
public void doAction(ActionEvent e) {<NEW_LINE>HashTree wholeTree = GuiPackage.getInstance().getTreeModel().getTestPlan();<NEW_LINE>SamplerAndTransactionNameVisitor visitor = new SamplerAndTransactionNameVisitor();<NEW_LINE>wholeTree.traverse(visitor);<NEW_LINE>Set<String> sampleNames = visitor.getListOfTransactions();...
log.info("Exported transactions: jmeter.reportgenerator.exporter.html.series_filter=^({})(-success|-failure)?$", result);
297,456
final GetCertificateResult executeGetCertificate(GetCertificateRequest getCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCertificateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,413,252
public void marshall(ConfigRuleEvaluationStatus configRuleEvaluationStatus, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (configRuleEvaluationStatus == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(config...
configRuleEvaluationStatus.getLastFailedEvaluationTime(), LASTFAILEDEVALUATIONTIME_BINDING);
620,444
public static double d(double[] x1, double[] x2) {<NEW_LINE>int n1 = x1.length;<NEW_LINE>int n2 = x2.length;<NEW_LINE>double[][] table = new double[2][n2 + 1];<NEW_LINE>table[0][0] = 0;<NEW_LINE>for (int i = 1; i <= n2; i++) {<NEW_LINE>table[0][i] = Double.POSITIVE_INFINITY;<NEW_LINE>}<NEW_LINE>for (int i = 1; i <= n1;...
[1][j - 1];
1,346,568
static HelpdeskVerificationStateBean fromClientString(final PwmRequest pwmRequest, final String rawValue) throws PwmUnrecoverableException {<NEW_LINE>final int maxAgeSeconds = Integer.parseInt(pwmRequest.getDomainConfig().readAppProperty(AppProperty.HELPDESK_VERIFICATION_TIMEOUT_SECONDS));<NEW_LINE>final TimeDuration m...
decryptObject(rawValue, HelpdeskVerificationStateBean.class);
753,781
// Finds all matches in program B to the function in Program A<NEW_LINE>public static List<MatchedFunctions> matchOneFunction(Program aProgram, Address aEntryPoint, Program bProgram, AddressSetView bAddressSet, FunctionHasher hasher, TaskMonitor monitor) throws CancelledException {<NEW_LINE>Map<Long, Match> functionHas...
functionHashes, aFunc, hasher, true);
1,660,217
public void init() throws LoadBalanceException {<NEW_LINE>Backend <MASK><NEW_LINE>if (be == null) {<NEW_LINE>throw new LoadBalanceException("backend " + beId + " does not exist");<NEW_LINE>}<NEW_LINE>isAvailable = be.isAvailable();<NEW_LINE>ImmutableMap<String, DiskInfo> disks = be.getDisks();<NEW_LINE>for (DiskInfo di...
be = infoService.getBackend(beId);
13,188
// https://stackoverflow.com/questions/21270892/generate-affinetransform-from-3-points<NEW_LINE>public static AffineTransform deriveAffineTransform(double sourceX1, double sourceY1, double sourceX2, double sourceY2, double sourceX3, double sourceY3, double destX1, double destY1, double destX2, double destY2, double des...
transform = dest.multiply(inverse);
1,170,353
/*<NEW_LINE>* Answer a base type reference (can be an array of base type).<NEW_LINE>*/<NEW_LINE>public static final TypeReference baseTypeReference(int baseType, int dim, Annotation[][] dimAnnotations) {<NEW_LINE>if (dim == 0) {<NEW_LINE>switch(baseType) {<NEW_LINE>case (TypeIds.T_void):<NEW_LINE>return new SingleTypeR...
simpleName, dim, dimAnnotations, 0);
601,367
protected Control createDialogArea(Composite parent) {<NEW_LINE>// Help<NEW_LINE>PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, HELP_ID);<NEW_LINE>setTitle(Messages.NewNestedRelationDialog_1);<NEW_LINE>String message = NLS.bind(Messages.NewNestedRelationDialog_2, fSourceObject.getName(<MASK><NEW_LINE>setMess...
), fTargetObject.getName());
856,267
protected void parseCreateField(ParseContext context) throws IOException {<NEW_LINE>final String value;<NEW_LINE>if (context.externalValueSet()) {<NEW_LINE>value = context.externalValue().toString();<NEW_LINE>} else {<NEW_LINE>XContentParser parser = context.parser();<NEW_LINE>if (parser.currentToken() == XContentParse...
bytes, 0, key.size);
146,772
private boolean writeFloorToFile(String filename, ArrayList<String> rss) throws IOException {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE><MASK><NEW_LINE>builder.append("# X, Y, HEADING");<NEW_LINE>for (String str : macAddresses) {<NEW_LINE>builder.append(", " + str);<NEW_LINE>}<NEW_LINE>for (String ...
builder.append(firstLine + "\n");
195,483
public Matrix.EVD eigen(boolean vl, boolean vr, boolean overwrite) {<NEW_LINE>if (m != n) {<NEW_LINE>throw new IllegalArgumentException(String.format("The matrix is not square: %d x %d", m, n));<NEW_LINE>}<NEW_LINE>Matrix eig = overwrite ? this : clone();<NEW_LINE>if (isSymmetric()) {<NEW_LINE>float[] w = new float[n];...
: new Matrix(1, 1);
1,805,724
private static String quoteString(String string) {<NEW_LINE>if (string.length() == 0) {<NEW_LINE>return string;<NEW_LINE>}<NEW_LINE>StringBuilder buf;<NEW_LINE>int startIndex = 0;<NEW_LINE>// NOI18N<NEW_LINE>int endIndex = string.indexOf('\\');<NEW_LINE>if (endIndex == -1) {<NEW_LINE>buf = new StringBuilder(string.leng...
string.length() + 16);
576,319
public MeetingSetting unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MeetingSetting meetingSetting = new MeetingSetting();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
JsonToken token = context.getCurrentToken();
1,556,396
public static final void takeSubtractUnsafe(byte[] planeData, int planeWidth, int planeHeight, int x, int y, int[] coeff, byte[] pred, int blkW, int blkH) {<NEW_LINE>int outOff = 0;<NEW_LINE>int i;<NEW_LINE>for (i = y; i < Math.min(y + blkH, planeHeight); i++) {<NEW_LINE>int off = i * planeWidth + Math.min(x, planeWidt...
Math.min(x, planeWidth);
1,428,038
void read(WizardDescriptor settings) {<NEW_LINE>FileObject targetFolder = Templates.getTargetFolder(settings);<NEW_LINE>projectTextField.setText(ProjectUtils.getInformation(project).getDisplayName());<NEW_LINE>SourceGroup[] sourceGroups = SourceGroups.getJavaSourceGroups(project);<NEW_LINE>if (sourceGroups.length > 0) ...
SourceGroups.getPackageForFolder(targetSourceGroup, targetFolder);
679,440
private ClusterState updateILMState(final ClusterState currentState) {<NEW_LINE>if (ilmMode == null) {<NEW_LINE>return currentState;<NEW_LINE>}<NEW_LINE>IndexLifecycleMetadata currentMetadata = currentState.metadata().custom(IndexLifecycleMetadata.TYPE);<NEW_LINE>if (currentMetadata != null && currentMetadata.getOperat...
newMode))).build();
688,626
// invoked by the PackManager<NEW_LINE>public void staticBlockInlining(SootClass sootClass) {<NEW_LINE>this.sootClass = sootClass;<NEW_LINE>// retrieve the clinit method if any for sootClass<NEW_LINE>// the clinit method gets converted into the static block which could initialize the final variable<NEW_LINE>if (!sootCl...
Body clinitBody = clinit.getActiveBody();
1,790,204
private int transitionsBetween(ResultPoint from, ResultPoint to) {<NEW_LINE>// See QR Code Detector, sizeOfBlackWhiteBlackRun()<NEW_LINE>int fromX = (int) from.getX();<NEW_LINE>int fromY = (int) from.getY();<NEW_LINE>int toX = (int) to.getX();<NEW_LINE>int toY = Math.min(image.getHeight() - 1, (int) to.getY());<NEW_LIN...
Math.abs(toX - fromX);
55,150
public void generateGetters(Language language, List<AtomConstructor> constructors) {<NEW_LINE>if (gettersGenerated)<NEW_LINE>return;<NEW_LINE>gettersGenerated = true;<NEW_LINE>var roots = new HashMap<String, RootNode>();<NEW_LINE>if (constructors.size() != 1) {<NEW_LINE>var names = new HashMap<String, List<GetFieldWith...
, field.getPosition()));
1,760,116
private void processMethodPermissions(PolicyConfiguration ejbPC, String beanName, Map<RoleInfo, List<MethodInfo>> methodMap, Set<String> allRoles) throws PolicyContextException {<NEW_LINE>if (methodMap != null && methodMap.size() > 0) {<NEW_LINE>Permissions ejbRolePerms = null;<NEW_LINE>Permissions ejbUncheckedPerms = ...
ejbRolePerms = getEJBPermCollection(beanName, miList);
413,406
public void marshall(ParameterDefinition parameterDefinition, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (parameterDefinition == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(parameterDefinition.getAllo...
parameterDefinition.getReferencedByResources(), REFERENCEDBYRESOURCES_BINDING);
1,510,400
public void handleLastResult(Result lastResult) {<NEW_LINE>if (lastResult == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Cell last = lastCell(lastResult);<NEW_LINE>byte[] row = CellUtil.cloneRow(last);<NEW_LINE>byte[] <MASK><NEW_LINE>long reverseStartTime = BytesUtils.bytesToLong(originalRow, PinpointConstants.APPLICA...
originalRow = traceIdRowKeyDistributor.getOriginalKey(row);
314,642
private static PostContentRequest generateRequestInternal(Map<String, String> sessionAttributes, Map<String, String> requestAttributes, InteractionConfig interactionConfig, AWSCredentialsProvider credentialsProvider, ResponseType mode) {<NEW_LINE>final PostContentRequest request = new PostContentRequest();<NEW_LINE>req...
final CognitoCredentialsProvider cognitoCredentialsProvider = (CognitoCredentialsProvider) credentialsProvider;
1,174,947
private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati...
TypeAlias.uid_t, NativeType.UINT);
1,245,387
public void cloneFlatNetwork(final FlatNetwork result) {<NEW_LINE>result.inputCount = this.inputCount;<NEW_LINE>result.layerCounts = EngineArray.arrayCopy(this.layerCounts);<NEW_LINE>result.layerIndex = EngineArray.arrayCopy(this.layerIndex);<NEW_LINE>result.layerOutput = EngineArray.arrayCopy(this.layerOutput);<NEW_LI...
EngineArray.arrayCopy(this.layerDropoutRates);
1,330,182
public Object eject(Object obj) {<NEW_LINE>try {<NEW_LINE>if (obj == null)<NEW_LINE>return null;<NEW_LINE>if (NutConf.USE_FASTCLASS) {<NEW_LINE>if (fm == null)<NEW_LINE><MASK><NEW_LINE>if (fm == null)<NEW_LINE>return getter.invoke(obj);<NEW_LINE>return fm.invoke(obj);<NEW_LINE>}<NEW_LINE>return getter.invoke(obj);<NEW_...
fm = FastClassFactory.get(getter);