idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
653,344
private Mono<StreamResponse> downloadActivationWithResponseAsync(String onPremiseIotSensorName) {<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>}<NEW_LINE>if (this.client.getSubs...
error(new IllegalArgumentException("Parameter onPremiseIotSensorName is required and cannot be null."));
740,281
protected RefactoringStatus verifyDestination(IJavaElement destination, int location) throws JavaModelException {<NEW_LINE>IJavaElement[] elements = getJavaElements();<NEW_LINE>for (int i = 0; i < elements.length; i++) {<NEW_LINE>IJavaElement parent = destination.getParent();<NEW_LINE>while (parent != null) {<NEW_LINE>...
RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ReorgPolicyFactory_element2parent);
348,409
private static void preTestBackUp(LibertyClient client) throws Exception {<NEW_LINE>final String METHOD = "preTestBackUp";<NEW_LINE>Machine m = client.getMachine();<NEW_LINE>LocalFile backup = getClientBackupZip(client);<NEW_LINE>// Client is in the build.image/wlp/usr/clients dir<NEW_LINE>// should be /wlp/usr/clients...
info(c, METHOD, "Backup file already exists... skipping backup");
19,200
public void bindView(ParentHolder holder) {<NEW_LINE>holder.bind(this);<NEW_LINE>Drawable arrowDrawable = DrawableCompat.wrap(ContextCompat.getDrawable(holder.itemView.getContext(), holder.isExpanded() ? R.drawable.ic_arrow_up_24dp : R.drawable.ic_arrow_down_24dp));<NEW_LINE>DrawableCompat.setTint(arrowDrawable, Aesthe...
holder.itemView.setAlpha(1.0f);
267,673
protected int createOutstandingEntries(long modelId, ContentValues modelSetValues) {<NEW_LINE>Long tagDataId = modelSetValues.getAsLong(TagMetadata.TAG_ID.name);<NEW_LINE>String memberId = modelSetValues.getAsString(TagMemberMetadata.USER_UUID.name);<NEW_LINE>Long deletionDate = modelSetValues.getAsLong(TagMetadata.DEL...
setValue(OutstandingEntry.VALUE_STRING_PROPERTY, memberId);
1,638,794
public String changePassword(final HttpServletRequest request, final Model model, @RequestParam("id") final long id, @RequestParam("token") final String token) {<NEW_LINE>final Locale locale = request.getLocale();<NEW_LINE>final PasswordResetToken passToken = userService.getPasswordResetToken(token);<NEW_LINE>if (passT...
return "redirect:/login.html?lang=" + locale.getLanguage();
1,065,610
private boolean killLinux(Runtime rt) {<NEW_LINE>try {<NEW_LINE>String getPidCommand = getJps() + " | egrep -i \"jboss-modules\" | awk '{ print $1; }'";<NEW_LINE>// get a jstack of all the processes<NEW_LINE>Process process = rt.exec(new String[] { "/bin/sh", "-c", getPidCommand });<NEW_LINE><MASK><NEW_LINE>String proc...
InputStream in = process.getInputStream();
1,362,216
public DomainJoinInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DomainJoinInfo domainJoinInfo = new DomainJoinInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
JsonToken token = context.getCurrentToken();
1,758,756
private void convertMutations(TabletServerMutations<QCMutation> mutations, Map<Long, CMK> cmidToCm, MutableLong cmid, Map<TKeyExtent, List<TConditionalMutation>> tmutations, CompressedIterators compressedIters) {<NEW_LINE>mutations.getMutations().forEach((keyExtent, mutationList) -> {<NEW_LINE>var tcondMutaions <MASK><...
= new ArrayList<TConditionalMutation>();
144,907
public LenskitRecommenderEngine loadEngine() throws RecommenderBuildException, IOException {<NEW_LINE>File modelFile = options.get("model_file");<NEW_LINE>if (modelFile == null) {<NEW_LINE>logger.info("creating fresh recommender");<NEW_LINE>LenskitRecommenderEngineBuilder builder = LenskitRecommenderEngine.newBuilder()...
setClassLoader(environment.getClassLoader());
1,680,802
public UserVm restoreVirtualMachine(final long vmId, final Long newTemplateId) throws ResourceUnavailableException, InsufficientCapacityException {<NEW_LINE>final AsyncJobExecutionContext jobContext = AsyncJobExecutionContext.getCurrentExecutionContext();<NEW_LINE>if (jobContext.isJobDispatchedBy(VmWorkConstants.VM_WOR...
userVm = _userVmDao.findById(vmId);
988,205
public void induceFeatures(InstanceList ilist, boolean withFeatureShrinkage, boolean inducePerClassFeatures) {<NEW_LINE>if (inducePerClassFeatures) {<NEW_LINE>int numClasses = ilist.getTargetAlphabet().size();<NEW_LINE>// int numFeatures = ilist.getDataAlphabet().size();<NEW_LINE>FeatureSelection[] pcfs = new FeatureSe...
), withFeatureShrinkage, inducePerClassFeatures, addFeaturesClassEntropyThreshold);
35,670
public com.amazonaws.services.applicationautoscaling.model.FailedResourceAccessException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.applicationautoscaling.model.FailedResourceAccessException failedResourceAccessException = new com.amazonaws.services.applica...
JsonToken token = context.getCurrentToken();
515,178
protected void unlockMessage(JsMessageWrapper jsMsg, boolean bumpRedeliveryCount) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "unlockMessage", new Object[] { jsMsg, Boolean.valueOf(bumpRedeliveryCount) });<NEW_LINE>try {<NEW_LINE>SIMPMe...
SibTr.exception(tc, e);
674,840
private static void toSlime(Cursor summaryObject, ConvergenceSummary summary) {<NEW_LINE>summaryObject.setLong(<MASK><NEW_LINE>summaryObject.setLong("down", summary.down());<NEW_LINE>summaryObject.setLong("needPlatformUpgrade", summary.needPlatformUpgrade());<NEW_LINE>summaryObject.setLong("upgrading", summary.upgradin...
"nodes", summary.nodes());
1,442,002
public static void main(String[] args) throws Exception {<NEW_LINE>// Process the command-line options<NEW_LINE>CommandOption.setSummary(WordEmbeddings.class, "Train continuous word embeddings using the skip-gram method with negative sampling.");<NEW_LINE>CommandOption.process(WordEmbeddings.class, args);<NEW_LINE>Inst...
countWords(instances, samplingFactorOption.value);
1,698,416
private TypeNameMatch findCandidateTypes(final String typeName, final int typeStart, final IProgressMonitor monitor) throws CoreException {<NEW_LINE>boolean isAnnotation = ('@' == compilationUnit.getContents()[Math.max(0, typeStart - 1)]);<NEW_LINE>UnresolvedTypeData typeData = new UnresolvedTypeData(typeName, isAnnota...
size()]), typeName);
609,904
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup...
serverName, virtualNetworkRuleName, Context.NONE);
16,796
private void initializeButtons() {<NEW_LINE>SVGGlyph full = new SVGGlyph(0, "FULLSCREEN", "M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z", Color.WHITE);<NEW_LINE>full.setSize(16, 16);<NEW_LINE>SVGGlyph minus = new SVGGlyph(0, "MI...
"CLOSE", "M810 274l-238 238 238 238-60 60-238-238-238 238-60-60 238-238-238-238 60-60 238 238 238-238z", Color.WHITE);
1,328,836
public PresentationMLPackage createSmartArtPkg(SlideSizesWellKnown sz, boolean landscape, Document xml) throws Exception {<NEW_LINE>// Create skeletal package, including a MainPresentationPart and a SlideLayoutPart<NEW_LINE>PresentationMLPackage pMLPackage = PresentationMLPackage.createPackage(sz, landscape);<NEW_LINE>...
DiagramDataPart(new PartName("/ppt/diagrams.data1.xml"));
419,971
private CompletionStage<Void> createHistoryRecords(int startingSegmentNumber, CreateStreamResponse createStreamResponse, OperationContext context) {<NEW_LINE>Preconditions.checkNotNull(context, "operation context cannot be null");<NEW_LINE>final int numSegments = createStreamResponse.getConfiguration().getScalingPolicy...
), creationTime, 0L, 0L);
998,062
/*<NEW_LINE>* pushContextData - save all the current context data and ClassLoader into the current servlet's ServiceWrapper.<NEW_LINE>* These will be transferred to the next dispatch/Runnable servlet's ServiceWrapper<NEW_LINE>*/<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>public void pushContextData() {<NEW_LINE...
.osgi.WebContainer.getITransferContextServices();
61,585
public int read(byte[] b, int off, int len) throws IOException {<NEW_LINE>int r = 0;<NEW_LINE>if (patch != null && streamPos < patchPos + patch.length) {<NEW_LINE>if (streamPos < patchPos) {<NEW_LINE>r = iis.read(b, off, (int) Math.min(patchPos - streamPos, len));<NEW_LINE>if (r < 0)<NEW_LINE>return r;<NEW_LINE>streamP...
patch.length - index, len);
710,667
public void actionPerformed(final ActionEvent e) {<NEW_LINE>final FilterController filterController = FilterController.getCurrentFilterController();<NEW_LINE>final Controller controller = Controller.getCurrentController();<NEW_LINE>IMapSelection selection = controller.getSelection();<NEW_LINE>final NodeModel start = se...
NodeModel parentNode = nodeOnPath.getParentNode();
1,003,181
public static void main(String[] args) throws XGBoostError {<NEW_LINE>// this is the only difference, add a # followed by a cache prefix name<NEW_LINE>// several cache file with the prefix will be generated<NEW_LINE>// currently only support convert from libsvm file<NEW_LINE>DMatrix trainMat = new DMatrix("../../demo/d...
watches.put("train", trainMat);
1,385,236
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
33,378
private static JSStackTraceElement processJSFrame(RootNode rootNode, Node node, Object thisObj, JSFunctionObject functionObj, boolean inStrictMode, boolean inNashornMode, boolean async, int promiseIndex) {<NEW_LINE>Node callNode = node;<NEW_LINE>while (callNode.getSourceSection() == null) {<NEW_LINE>callNode = callNode...
FunctionRootNode) rootNode).getNameTString();
524,515
private void initTransient() {<NEW_LINE>if (isInitialized) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>SdkComponents components = SdkComponents.create();<NEW_LINE>pipelineOptions = new SerializablePipelineOptions(serializedOptions).get();<NEW_LINE>DoFnWithExecutionInformation doFnWithExecutionInformation = (D...
info(e.getMessage());
1,163,172
private static BlockEntry readEntry(SliceInput data, BlockEntry previousEntry) {<NEW_LINE>requireNonNull(data, "data is null");<NEW_LINE>// read entry header<NEW_LINE>int sharedKeyLength = VariableLengthQuantity.readVariableLengthInt(data);<NEW_LINE>int nonSharedKeyLength = VariableLengthQuantity.readVariableLengthInt(...
key = data.readSlice(nonSharedKeyLength);
736,721
public static boolean writeConfiguration(ApdConfiguration apdConfiguration) throws IOException {<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_DEBUG, "Start"));<NEW_LINE>if (apdConfiguration == null) {<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_ERROR, "apdConfiguration not valid"));<NEW_LINE>retu...
apdConfiguration.setTemplatePath(ApdEngine.DEFAULT_TEMPLATE_PATH);
1,702,508
private void mapTierBulksMapped(final int upToBulkIndex) throws IOException {<NEW_LINE>final int firstBulkToMapIndex = tierBulkOffsets.size();<NEW_LINE>final int bulksToMap = upToBulkIndex + 1 - firstBulkToMapIndex;<NEW_LINE>long mapSize = bulksToMap * tierBulkSizeInBytes;<NEW_LINE>final long mappingOffsetInFile, first...
firstBulkToMapIndex, upToBulkIndex, extraStore, firstBulkToMapOffsetWithinMapping);
1,628,395
public boolean continueSearching(Usericon icon) {<NEW_LINE>// Addon icons should always be ignored (inserted afterwards)<NEW_LINE>if (icon.type == Usericon.Type.ADDON) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// No required badge type defined, so just check Usericon type<NEW_LINE>if (this.reqBadgeType.isEmpty()) {<N...
reqBadgeType.matchesLenient(icon.badgeType);
1,252,483
public ListOriginEndpointsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListOriginEndpointsResult listOriginEndpointsResult = new ListOriginEndpointsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
JsonToken token = context.getCurrentToken();
667,520
static void encryptDataForMessaging() throws UnsupportedEncodingException, NullArgumentException, SecureMessageWrapException {<NEW_LINE>String message = "hello from alice to bob";<NEW_LINE>System.out.println("Running SecureMessage example");<NEW_LINE>Keypair alice = KeypairGenerator.generateKeypair(AsymmetricKey.KEYTYP...
(alicePublicKey.toByteArray()));
1,457,748
final CreateTapeWithBarcodeResult executeCreateTapeWithBarcode(CreateTapeWithBarcodeRequest createTapeWithBarcodeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createTapeWithBarcodeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
923,645
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {<NEW_LINE>super.onCreateContextMenu(menu, v, menuInfo);<NEW_LINE>final ListView list = (ListView) v;<NEW_LINE>final AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo;<NEW_LINE>final int...
(i).setOnMenuItemClickListener(listener);
1,043,306
private String findPropertyName(Object bean, String key) {<NEW_LINE>if (bean == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Class<?> cls = bean.getClass();<NEW_LINE>int index = PropertyAccessorUtils.getFirstNestedPropertySeparatorIndex(key);<NEW_LINE>String prefix;<NEW_LINE>String suffix;<NEW_LINE>// If the prope...
suffix = key.substring(index);
508,165
private static void importTfOnnxSameDiff(OnnxFrameworkImporter onnxFrameworkImporter, TensorflowFrameworkImporter tensorflowFrameworkImporter, Framework framework, File inputFile, String inputFileNameMinusFormat, String format, File saveModelDir) throws IOException {<NEW_LINE>SameDiff sameDiff = null;<NEW_LINE>switch(f...
Collections.emptyMap(), true);
1,837,157
private void appendChildOrNull(ColumnBuilder childBuilder, Object listElement) {<NEW_LINE>if (listElement == null) {<NEW_LINE>childBuilder.appendNull();<NEW_LINE>} else if (listElement instanceof Integer) {<NEW_LINE>childBuilder.append((Integer) listElement);<NEW_LINE>} else if (listElement instanceof String) {<NEW_LIN...
.append((Long) listElement);
1,757,451
public CreateThingResult createThing(CreateThingRequest createThingRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createThingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>aws...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
760,724
private String extractLockOwnerStackTrace(Lock lock) {<NEW_LINE>try {<NEW_LINE>Field syncField = lock.getClass().getDeclaredField("sync");<NEW_LINE>syncField.setAccessible(true);<NEW_LINE>Object sync = syncField.get(lock);<NEW_LINE>Method getOwner = sync.getClass().getSuperclass().getDeclaredMethod("getOwner");<NEW_LIN...
] stackTrace = owner.getStackTrace();
1,287,197
protected Tuple3<Boolean, Double, Map<String, String>> detect(SlicedSelectedSample selection) throws Exception {<NEW_LINE>double[] data = new double[this.model.nx];<NEW_LINE>if (isVector) {<NEW_LINE>Vector vector = VectorUtil.getVector(selection.get(featureIdxs[0]));<NEW_LINE>if (vector instanceof SparseVector) {<NEW_L...
) / model.stddevs[i];
408,290
private static void categorizeTreeRules(List<Pair<POMErrorFixBase, FileObject>> rules, FileObject rootFolder, DefaultMutableTreeNode rootNode) {<NEW_LINE>Map<FileObject, DefaultMutableTreeNode> dir2node = new HashMap<FileObject, DefaultMutableTreeNode>();<NEW_LINE><MASK><NEW_LINE>for (Pair<POMErrorFixBase, FileObject> ...
dir2node.put(rootFolder, rootNode);
292,301
private boolean deleteMissingMigrations() {<NEW_LINE>boolean removed = false;<NEW_LINE>for (MigrationInfo migrationInfo : migrationInfoService.all()) {<NEW_LINE>MigrationInfoImpl migrationInfoImpl = (MigrationInfoImpl) migrationInfo;<NEW_LINE>if (migrationInfo.getType().isSynthetic()) {<NEW_LINE>continue;<NEW_LINE>}<NE...
() != null, state));
90,149
public static Automaton repeat(Automaton a, int min, int max) {<NEW_LINE>if (min > max) {<NEW_LINE>return Automata.makeEmpty();<NEW_LINE>}<NEW_LINE>Automaton b;<NEW_LINE>if (min == 0) {<NEW_LINE>b = Automata.makeEmptyString();<NEW_LINE>} else if (min == 1) {<NEW_LINE>b = new Automaton();<NEW_LINE>b.copy(a);<NEW_LINE>} ...
prevAcceptStates = toSet(a, numStates);
91,652
static <// / @Generated("This method was generated using jOOQ-tools")<NEW_LINE>T1, T2, T3, T4, T5, T6, T7, T8, T9> Seq<Tuple9<T1, T2, T3, T4, T5, T6, T7, T8, T9>> crossJoin(Iterable<? extends T1> i1, Iterable<? extends T2> i2, Iterable<? extends T3> i3, Iterable<? extends T4> i4, Iterable<? extends T5> i5, Iterable<? e...
i8), seq(i9));
46,328
public String order(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) {<NEW_LINE>Integer C_Order_ID = (Integer) value;<NEW_LINE>if (C_Order_ID == null || C_Order_ID.intValue() == 0)<NEW_LINE>return "";<NEW_LINE>// No Callout Active to fire dependent values<NEW_LINE>if (// prevent recursive<NEW...
"DeliveryViaRule", order.getDeliveryViaRule());
1,458,920
public Xml visitTag(Xml.Tag tag, ExecutionContext ctx) {<NEW_LINE>if (isManagedDependencyTag(oldGroupId, oldArtifactId)) {<NEW_LINE>Optional<Xml.Tag> groupIdTag = tag.getChild("groupId");<NEW_LINE>boolean changed = false;<NEW_LINE>if (groupIdTag.isPresent() && !newGroupId.equals(groupIdTag.get().getValue().orElse(null)...
super.visitTag(tag, ctx);
113,318
public String saveEntity(HttpServletRequest request, HttpServletResponse response, Model model, @PathVariable Map<String, String> pathVars, @PathVariable(value = "id") String id, @ModelAttribute(value = "entityForm") EntityForm entityForm, BindingResult result, RedirectAttributes ra) throws Exception {<NEW_LINE>String ...
model.addAttribute("headerFlashAlert", true);
662,298
public void initTransactionProperties() {<NEW_LINE>if (serviceLocator != null) {<NEW_LINE>txnService = serviceLocator.getService(TransactionService.class, ServerEnvironment.DEFAULT_INSTANCE_NAME);<NEW_LINE>if (txnService != null) {<NEW_LINE>String <MASK><NEW_LINE>if (value != null && "false".equals(value)) {<NEW_LINE>s...
value = txnService.getPropertyValue("use-last-agent-optimization");
835,195
public Flux<ByteBuf> completeMessages(Flux<ByteBuf> payloads) {<NEW_LINE>return payloads.windowUntil(windowPredicate).flatMap(Flux::collectList).map(list -> {<NEW_LINE>final ByteBuf buf;<NEW_LINE>if (list.size() == 1) {<NEW_LINE>buf = list.get(0);<NEW_LINE>} else {<NEW_LINE>CompositeByteBuf composite = allocator.compos...
() : allocator.buffer();
455,256
private Mono<PagedResponse<RemediationDeploymentInner>> listDeploymentsAtSubscriptionNextSinglePageAsync(String nextLink) {<NEW_LINE>if (nextLink == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.getEndpoint() =...
)).readOnly()));
286,101
public static void main(String[] args) throws Exception {<NEW_LINE>dataLocalPath = DownloaderUtility.MODELIMPORT.Download() + "/tensorflow";<NEW_LINE>final String FROZEN_MLP = new File(dataLocalPath, "frozen_model.pb").getAbsolutePath();<NEW_LINE>// Load placeholder inputs and corresponding predictions generated from t...
getVariable("output").eval();
112,538
private static boolean checkResource(ArtifactEntry e, FileSystem f, PrintWriter out) {<NEW_LINE>boolean result = true;<NEW_LINE>String resource = f.getResource();<NEW_LINE>// added the .equals("null") to tolerate idiotic test data.<NEW_LINE>if (resource != null && !resource.equals("null")) {<NEW_LINE>URL u = e.getResou...
" got value of " + e.getResource());
1,370,962
public static DataTcpWebServer start(DataServer dataServer) throws Exception {<NEW_LINE>File dataBaseDir = new File(Config.base(), "local/repository/data");<NEW_LINE>FileUtils.forceMkdir(dataBaseDir);<NEW_LINE>Server tcpServer = null;<NEW_LINE>Server webServer = null;<NEW_LINE>String password = Config.token().getPasswo...
3] = webPort.toString();
1,724,567
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ViewSizeSceneOne());<NEW_LINE>execs.add(new ViewSizeSceneTwo());<NEW_LINE>execs.add(new ViewSizeAddProps());<NEW_LINE>execs.add(new ViewDerivedAll());<NEW_LINE>execs.add...
.add(new ViewDerivedLengthWRegressionLinestSceneTwo());
924,038
private PromptDialogWidget confirmPrompt(@NonNull PromptData promptData) {<NEW_LINE>if (mConfirmDialog == null) {<NEW_LINE>mConfirmDialog = new PromptDialogWidget(getContext());<NEW_LINE>mConfirmDialog.setButtons(new int[] { R.string.cancel_button, R.string.ok_button });<NEW_LINE>mConfirmDialog.setCheckboxVisible(false...
setIcon(promptData.getIconRes());
504,712
public void extractKeyParts(CacheKeyBuilder keyBuilder, Object targetObject, Object[] params) {<NEW_LINE>//<NEW_LINE>// include specified property values into the key<NEW_LINE>for (final String keyProp : keyProperties) {<NEW_LINE>if (targetObject instanceof PO) {<NEW_LINE>final PO po = (PO) targetObject;<NEW_LINE>if (p...
keyValue = po.get_Value(keyProp);
689,649
private void showInfoAboutRoot() {<NEW_LINE>boolean rootIsAvailable = preferenceRepository.get().getBoolPreference(ROOT_IS_AVAILABLE);<NEW_LINE>boolean busyBoxIsAvailable = preferenceRepository.get().getBoolPreference("bbOK");<NEW_LINE>boolean mitmDetected = ArpScanner.getArpAttackDetected() || ArpScanner.getDhcpGatewa...
show(getSupportFragmentManager(), "NotificationDialogFragment");
936,777
private String foldHeaderValue(String input) {<NEW_LINE>int inputLength = input.length();<NEW_LINE>int endOfFirstLine = MAX_LINE_LENGTH - FIRST_LINE_EXTRA_LENGTH;<NEW_LINE>if (inputLength <= endOfFirstLine) {<NEW_LINE>return input;<NEW_LINE>}<NEW_LINE>int extraLines = (inputLength - endOfFirstLine - 1) / (MAX_LINE_LENG...
append(input, start, end);
252,366
public com.amazonaws.services.ecs.model.BlockedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.ecs.model.BlockedException blockedException = new com.amazonaws.services.ecs.model.BlockedException(null);<NEW_LINE>int originalDepth = context.getCurrentDep...
JsonToken token = context.getCurrentToken();
985,801
private static boolean handleDurabilityLoss(@NotNull Set<BlockState> treeFellerBlocks, @NotNull ItemStack inHand, @NotNull Player player) {<NEW_LINE>// Treat the NBT tag for unbreakable and the durability enchant differently<NEW_LINE>ItemMeta meta = inHand.getItemMeta();<NEW_LINE>if (meta != null && meta.isUnbreakable(...
getPluginManager().callEvent(event);
1,562,720
private void saveCookiesAndFinish() {<NEW_LINE>// try to get cookies of unclosed page<NEW_LINE>handleCookiesFromUrl(recaptchaBinding.reCaptchaWebView.getUrl());<NEW_LINE>if (MainActivity.DEBUG) {<NEW_LINE>Log.<MASK><NEW_LINE>}<NEW_LINE>if (!foundCookies.isEmpty()) {<NEW_LINE>// save cookies to preferences<NEW_LINE>fina...
d(TAG, "saveCookiesAndFinish: foundCookies=" + foundCookies);
705,850
public static ListSecretVersionIdsResponse unmarshall(ListSecretVersionIdsResponse listSecretVersionIdsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSecretVersionIdsResponse.setRequestId<MASK><NEW_LINE>listSecretVersionIdsResponse.setPageNumber(_ctx.integerValue("ListSecretVersionIdsResponse.PageNumber"));<NEW_LIN...
(_ctx.stringValue("ListSecretVersionIdsResponse.RequestId"));
752,699
public static QueryProfileShardResult fromXContent(XContentParser parser) throws IOException {<NEW_LINE>XContentParser.<MASK><NEW_LINE>ensureExpectedToken(XContentParser.Token.START_OBJECT, token, parser);<NEW_LINE>String currentFieldName = null;<NEW_LINE>List<ProfileResult> queryProfileResults = new ArrayList<>();<NEW...
Token token = parser.currentToken();
1,672,236
private void loadStyleData(int workspaceTheme) {<NEW_LINE>TypedArray styles;<NEW_LINE>if (workspaceTheme != 0) {<NEW_LINE>styles = mContext.obtainStyledAttributes(workspaceTheme, R.styleable.BlocklyVertical);<NEW_LINE>} else {<NEW_LINE>styles = mContext.obtainStyledAttributes(R.styleable.BlocklyVertical);<NEW_LINE>}<NE...
TYPE_LABEL, R.layout.default_field_label);
393,917
protected void okPressed() {<NEW_LINE>copySettings.setCopyHeader(copyHeaderCheck.getSelection());<NEW_LINE>copySettings.setCopyRowNumbers(copyRowsCheck.getSelection());<NEW_LINE>copySettings.setQuoteCells(quoteCellsCheck.getSelection());<NEW_LINE>copySettings.setForceQuotes(forceQuoteCheck.getSelection());<NEW_LINE>cop...
setFormat(formatSelector.getSelection());
1,766,263
public Invoice generate() throws AxelorException {<NEW_LINE>LOG.debug("Creating a refund for invoice {}", invoice.getInvoiceId());<NEW_LINE>Invoice refund = JPA.copy(invoice, true);<NEW_LINE>InvoiceToolService.resetInvoiceStatusOnCopy(refund);<NEW_LINE>refund.setOperationTypeSelect(this.inverseOperationType<MASK><NEW_L...
(refund.getOperationTypeSelect()));
889,002
private void createRangeIndexForColumn(SegmentDirectory.Writer segmentWriter, ColumnMetadata columnMetadata, RangeIndexCreatorProvider indexCreatorProvider) throws IOException {<NEW_LINE>File indexDir = _segmentMetadata.getIndexDir();<NEW_LINE>String segmentName = _segmentMetadata.getName();<NEW_LINE>String columnName ...
info("Created range index for segment: {}, column: {}", segmentName, columnName);
490,580
protected final static Number coerceToNumber(final Number number, final Class<?> type) throws ELException {<NEW_LINE>if (Long.TYPE == type || Long.class.equals(type)) {<NEW_LINE>return new Long(number.longValue());<NEW_LINE>}<NEW_LINE>if (Double.TYPE == type || Double.class.equals(type)) {<NEW_LINE>return new Double(nu...
Short(number.shortValue());
385,716
public void performChange() {<NEW_LINE>try {<NEW_LINE>FileObject fo = RefactoringUtils.getOrCreateFolder(refactoring.getTarget().lookup(URL.class));<NEW_LINE>FileObject source = refactoring.getRefactoringSource().lookup(FileObject.class);<NEW_LINE>String oldPackage = RefactoringUtils.getPackageName(source.getParent());...
getDefault().notify(ioe);
1,431,629
public static BigLong shru(BigLong a, int n) {<NEW_LINE>n &= 63;<NEW_LINE>int res0, res1, res2;<NEW_LINE>int a2 = getH(a) & MASK_2;<NEW_LINE>if (n < BITS) {<NEW_LINE>res2 = a2 >>> n;<NEW_LINE>res1 = (getM(a) >> n) | (<MASK><NEW_LINE>res0 = (getL(a) >> n) | (getM(a) << (BITS - n));<NEW_LINE>} else if (n < BITS01) {<NEW_...
a2 << (BITS - n));
1,837,954
private boolean shouldFinishRootActivity() {<NEW_LINE>// Do not finish root activity if disabled globally. (Typically done when restarting LiveView.)<NEW_LINE>if (TiBaseActivity.canFinishRoot == false) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// This method only applies to "Ti.UI.Window" based activities.<NEW_LINE>...
(isTiWindowOpen ? 1 : 0));
360,801
public FileCommentReactionEntity postFileCommentReactions(FileCommentReactionsBody 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 ca...
localVarAuthNames = new String[] {};
415,392
public void checkInvariants() {<NEW_LINE>segmentMetadata.checkInvariants();<NEW_LINE>Preconditions.checkState(segmentMetadata.<MASK><NEW_LINE>Preconditions.checkState(segmentMetadata.getChunkCount() == chunkMetadataCollection.size(), "Chunk count must match. Segment snapshot= %s", this);<NEW_LINE>long dataSize = 0;<NEW...
isStorageSystemSegment(), "Segment must be storage segment. Segment snapshot= %s", this);
1,646,778
final UpdatePatchBaselineResult executeUpdatePatchBaseline(UpdatePatchBaselineRequest updatePatchBaselineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updatePatchBaselineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
(super.beforeMarshalling(updatePatchBaselineRequest));
1,681,060
private static List<EnumValueWithBackupName> buildEnumValues(List<ConceptDefinition> concepts, String system, Set<String> classifications, List<Filter> filters) {<NEW_LINE>List<EnumValueWithBackupName> valueList = new ArrayList<>();<NEW_LINE>for (ConceptDefinition concept : concepts) {<NEW_LINE>if (conceptMatchesFilter...
= new HashSet<>(classifications);
1,736,257
private static void trySelectWhereJoined4CoercionBack(RegressionEnvironment env, AtomicInteger milestone, String stmtText) {<NEW_LINE>env.compileDeployAddListenerMile(stmtText, "s0", milestone.getAndIncrement());<NEW_LINE>// intPrimitive, intBoxed, longBoxed, doubleBoxed<NEW_LINE>sendBean(env, "A", 1, 10, 200, 3000);<N...
3, 202, 0, 0);
754,600
public void close() throws IOException {<NEW_LINE>if (closed) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>closed = true;<NEW_LINE>boolean success = false;<NEW_LINE>try {<NEW_LINE>final long dirStart = out.getFilePointer();<NEW_LINE>final long indexDirStart = indexOut.getFilePointer();<NEW_LINE>out.writeVInt(fields.size());<...
out.writeVLong(field.numTerms);
1,518,670
public static ListLocationResponse unmarshall(ListLocationResponse listLocationResponse, UnmarshallerContext _ctx) {<NEW_LINE>listLocationResponse.setRequestId(_ctx.stringValue("ListLocationResponse.RequestId"));<NEW_LINE>listLocationResponse.setErrorCode(_ctx.stringValue("ListLocationResponse.ErrorCode"));<NEW_LINE>li...
+ "].RectRois[" + j + "].LeftTop.Y"));
1,355,654
public AddApplicationCloudWatchLoggingOptionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AddApplicationCloudWatchLoggingOptionResult addApplicationCloudWatchLoggingOptionResult = new AddApplicationCloudWatchLoggingOptionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<...
class).unmarshall(context));
106,600
/*<NEW_LINE>1. Evaluate DecimalEscape to obtain an EscapeValue E.<NEW_LINE>2. If E is not a character then go to step 6.<NEW_LINE>3. Let ch be E's character.<NEW_LINE>4. Let A be a one-element RECharSet containing the character ch.<NEW_LINE>5. Call CharacterSetMatcher(A, false) and return its Matcher result.<NEW_LINE>6...
len = gData.parensLength(parenIndex);
1,098,870
protected void updateMonth(final boolean animate) {<NEW_LINE>// Even if someone is asking to animate transition we have to honor calendar settings<NEW_LINE>// If it isn't set to be animated then we should never animate any transitions within it<NEW_LINE>if (animate && isAnimate()) {<NEW_LINE>// Creating new dates panel...
ltr) : getPrevDirection(ltr));
1,046,092
protected SearchResultItem createSearchResultItem(NewznabXmlItem item) throws NzbHydraException {<NEW_LINE>SearchResultItem searchResultItem = new SearchResultItem();<NEW_LINE>String link = getEnclosureUrl(item);<NEW_LINE>searchResultItem.setLink(link);<NEW_LINE>if (item.getRssGuid().isPermaLink()) {<NEW_LINE>searchRes...
getRssGuid().getGuid());
368,098
// </editor-fold>//GEN-END:initComponents<NEW_LINE>private void btnBrowseActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_btnBrowseActionPerformed<NEW_LINE>File oldFile = new <MASK><NEW_LINE>// NOI18N<NEW_LINE>JFileChooser fileChooser = new AccessibleJFileChooser(NbBundle.getMessage(CreateP...
File(tfRootPath.getText());
1,852,259
public static void register(ScalarFunctionModule module) {<NEW_LINE>for (var type : DataTypes.NUMERIC_PRIMITIVE_TYPES) {<NEW_LINE>DataType<?> returnType = DataTypes.getIntegralReturnType(type);<NEW_LINE>assert returnType != null : "Could not get integral type of " + type;<NEW_LINE>// trunc(number)<NEW_LINE>module.regis...
Number) n).doubleValue();
1,589,632
public void add(final long rangeStart, final long rangeEnd) {<NEW_LINE>rangeSanityCheck(rangeStart, rangeEnd);<NEW_LINE>if (rangeStart >= rangeEnd) {<NEW_LINE>// empty range<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int hbStart = (BufferUtil.highbits(rangeStart));<NEW_LINE>final int lbStart = (BufferUtil.lowbits(range...
.getIndex((char) hb);
211,348
private RdSetElem toRdSetElem(Rd_set_elemContext ctx) {<NEW_LINE>if (ctx.rd_set_elem_asdot() != null) {<NEW_LINE>@Nullable<NEW_LINE>Entry<Uint16RangeExpr, Uint16RangeExpr> as = toUint32HighLowExpr(ctx.rd_set_elem_asdot());<NEW_LINE>if (as == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>return new RdSetAsDot(as.get...
(ctx.rd_set_elem_lo16()));
643,717
public static DescribeSlowLogRecordsResponse unmarshall(DescribeSlowLogRecordsResponse describeSlowLogRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSlowLogRecordsResponse.setRequestId(_ctx.stringValue("DescribeSlowLogRecordsResponse.RequestId"));<NEW_LINE>SlowLogRecords slowLogRecords = new SlowLogRecor...
("DescribeSlowLogRecordsResponse.SlowLogRecords.Data[" + i + "].QueryDurationMs"));
857,543
public void registerModify(Entity entity, boolean auto, @Nullable EntityAttributeChanges changes) {<NEW_LINE>try {<NEW_LINE>if (doNotRegister(entity))<NEW_LINE>return;<NEW_LINE>String masterEntityName = getEntityName(entity);<NEW_LINE>boolean isCategoryAttributeValue = entity instanceof CategoryAttributeValue;<NEW_LINE...
changes, metaClass, storeName, attributes);
3,282
private CompilerSettings buildCompilerSettings(Map<String, String> params) {<NEW_LINE>CompilerSettings compilerSettings;<NEW_LINE>if (params.isEmpty()) {<NEW_LINE>// Use the default settings.<NEW_LINE>compilerSettings = defaultCompilerSettings;<NEW_LINE>} else {<NEW_LINE>// Use custom settings specified by params.<NEW_...
(Integer.parseInt(value));
239,416
public void updateBPartnerReminderDate(final I_R_Request request) {<NEW_LINE>final Timestamp reminderDate = request.getReminderDate();<NEW_LINE>if (reminderDate == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final UserId adUserId = UserId.ofRepoIdOrNull(request.getSalesRep_ID());<NEW_LINE>if (adUserId == null || !adUs...
bpartner = bpartnerDAO.getByIdInTrx(bpartnerId);
1,631,336
private STNode parseFieldDescriptorRhs(STNode metadata, STNode readonlyQualifier, STNode type, STNode fieldName) {<NEW_LINE>STToken nextToken = peek();<NEW_LINE>switch(nextToken.kind) {<NEW_LINE>case SEMICOLON_TOKEN:<NEW_LINE><MASK><NEW_LINE>STNode semicolonToken = parseSemicolon();<NEW_LINE>return STNodeFactory.create...
STNode questionMarkToken = STNodeFactory.createEmptyNode();
426,111
public void processingDone(List<Processing> processings) {<NEW_LINE>List<DocumentMessage> messages = new ArrayList<>();<NEW_LINE>if (messageFactory != null) {<NEW_LINE>for (Processing processing : processings) {<NEW_LINE>for (DocumentOperation documentOperation : processing.getDocumentOperations()) {<NEW_LINE>messages....
long inputSequenceId = requestMsg.getSequenceId();
1,493,508
private void dumpSkyframeStateAfterBuild(@Nullable BuildEventProtocolOptions besOptions, String format, @Nullable PathFragment outputFilePathFragment) throws CommandLineExpansionException, IOException, InvalidAqueryOutputFormatException {<NEW_LINE>Preconditions.checkState(env.getSkyframeExecutor() instanceof SequencedS...
(Event.info("Streaming aquery dump."));
195,112
public void marshall(UpdateApplicationRequest updateApplicationRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateApplicationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateApplic...
updateApplicationRequest.getOpsCenterEnabled(), OPSCENTERENABLED_BINDING);
1,501,452
private void processRpcResponseStatus(TbActorCtx context, SessionInfoProto sessionInfo, ToDeviceRpcResponseStatusMsg responseMsg) {<NEW_LINE>UUID rpcId = new UUID(responseMsg.getRequestIdMSB(), responseMsg.getRequestIdLSB());<NEW_LINE>RpcStatus status = RpcStatus.valueOf(responseMsg.getStatus());<NEW_LINE>ToDeviceRpcRe...
get(responseMsg.getRequestId());
336,847
List<OrderDecorator> buildCustomFilterList(Element element, ParserContext pc) {<NEW_LINE>List<Element> customFilterElts = DomUtils.getChildElementsByTagName(element, Elements.CUSTOM_FILTER);<NEW_LINE>List<OrderDecorator> customFilters = new ArrayList<>();<NEW_LINE>for (Element elt : customFilterElts) {<NEW_LINE>String ...
SecurityFilters.valueOf(position)));
1,686,693
private static void loadDefs(Map<String, String> p, Map<String, Class> defs, ClassLoader l) throws IOException {<NEW_LINE>// Similar to IntrospectedInfo.load, after having parsed the properties.<NEW_LINE>for (Map.Entry<String, String> entry : p.entrySet()) {<NEW_LINE>String name = entry.getKey();<NEW_LINE>String clazzn...
clazz = l.loadClass(clazzname);
1,258,415
private static InputSource createInputSource(FileObject fo, EditorCookie editor, final StyledDocument document) throws IOException, BadLocationException {<NEW_LINE>final StringWriter w = new StringWriter(document.getLength());<NEW_LINE>final EditorKit kit = findKit(editor);<NEW_LINE>if (kit == null)<NEW_LINE>return nul...
] ioe = new IOException[1];