idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,109,444
private PortfolioTransaction convertToDelivery(PortfolioTransaction t, PortfolioTransaction.Type targetType) {<NEW_LINE>PortfolioTransaction pseudo = new PortfolioTransaction();<NEW_LINE>pseudo.setDateTime(t.getDateTime());<NEW_LINE>pseudo.setCurrencyCode(t.getCurrencyCode());<NEW_LINE>pseudo.setSecurity(t.getSecurity(...
long amount = t.getAmount();
441,025
public String deviceHandler(CallItem anItem, MultiCommandUtil aMultiUtil, String lightId, int intensity, Integer targetBri, Integer targetBriInc, ColorData colorData, DeviceDescriptor device, String body) {<NEW_LINE>String theReturn = null;<NEW_LINE>float aBriValue;<NEW_LINE>float theValue;<NEW_LINE>log.debug("executin...
getLifxDevice(lifxCommand.getName());
1,736,161
public void perform(TimerEvent event) {<NEW_LINE>long now = 0;<NEW_LINE>// make sure process isn't running and stop it from running while we do stuff<NEW_LINE>try {<NEW_LINE>this_mon.enter();<NEW_LINE>now = SystemTime.getCurrentTime();<NEW_LINE>// System.out.println(SystemTime.getCurrentTime() - lLastRunTime);<NEW_LINE...
SystemTime.getCurrentTime() - now);
1,828,249
private void insert(int indexObs, int K, double xk) {<NEW_LINE>int start = 27 * 4 * indexObs + 9 * K;<NEW_LINE>// i = 1, l = 1<NEW_LINE>int indexT33 = 8;<NEW_LINE>int indexTi3 = 2;<NEW_LINE>int indexT3l = 6;<NEW_LINE>int indexTil = 0;<NEW_LINE>A.data[start + indexT33] = xk * p2_norm.x * p3_norm.x;<NEW_LINE>A.data[start...
] = -xk * p3_norm.x;
698,803
private void fetchRequests(RequestRegistrationCallback<GetOperation> requestRegistrationCallback) {<NEW_LINE>Iterator<ReplicaId> replicaIterator = operationTracker.getReplicaIterator();<NEW_LINE>while (replicaIterator.hasNext()) {<NEW_LINE>ReplicaId replicaId = replicaIterator.next();<NEW_LINE>String hostname = replica...
requestRegistrationCallback.registerRequestToSend(this, request);
999,538
public void handleThrottle(Component dialogParent) {<NEW_LINE>double newRatio = -1.0;<NEW_LINE>JOptionPane optionPane = new JOptionPane();<NEW_LINE>double min = 0.1;<NEW_LINE>double max = 10.0;<NEW_LINE>final DoubleJSlider slider = new DoubleJSlider(min, max, 1.0, 10.0);<NEW_LINE>slider.setMajorTickSpacing(10);<NEW_LIN...
= { "Select a value:", minMaxBox, slider };
1,679,278
protected Set<Unit> collectDefinitionsWithAliases(Local l) {<NEW_LINE>Set<Unit> defs = localToDefsWithAliases.get(l);<NEW_LINE>if (defs == null) {<NEW_LINE>defs <MASK><NEW_LINE>Set<Local> seenLocals = new HashSet<Local>();<NEW_LINE>List<Local> newLocals = new ArrayList<Local>();<NEW_LINE>newLocals.add(l);<NEW_LINE>whil...
= new HashSet<Unit>();
707,792
protected AbstractBeanDefinition parseConsumer(Element element, ParserContext parserContext) {<NEW_LINE>Object source = parserContext.extractSource(element);<NEW_LINE>BeanComponentDefinition innerConsumerDefinition = IntegrationNamespaceUtils.parseInnerHandlerDefinition(element, parserContext);<NEW_LINE>String consumer...
element.getAttribute(IntegrationNamespaceUtils.METHOD_ATTRIBUTE);
1,762,936
public static void main(String[] args) {<NEW_LINE>// Parse text to separate words<NEW_LINE>String INPUT_TEXT = "Hello World! Hello All! Hi World!";<NEW_LINE>// Create Multiset<NEW_LINE>Multiset<String> multiset = HashMultiset.create(Arrays.asList(INPUT_TEXT.split(" ")));<NEW_LINE>// Print count words<NEW_LINE>// print ...
+ multiset.count("World!"));
675,221
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ResultSetQueryTypeBoundRollup2Dim());<NEW_LINE>execs.add(new ResultSetQueryTypeUnboundRollup2Dim());<NEW_LINE>execs.add(new ResultSetQueryTypeUnboundRollup1Dim());<NEW_L...
.add(new ResultSetQueryTypeOutputWhenTerminated());
1,261,703
public void sort(BallerinaCompletionContext context, ListConstructorExpressionNode node, List<LSCompletionItem> completionItems) {<NEW_LINE>for (LSCompletionItem lsCItem : completionItems) {<NEW_LINE>Optional<TypeSymbol> contextType = context.getContextType();<NEW_LINE>String sortText;<NEW_LINE>if (contextType.isEmpty(...
.toRank(context, lsCItem));
988,085
private void validateCommandPlacement(String placement) {<NEW_LINE>if (placement == COMMAND_PLACEMENT_VALUE_TOP) {<NEW_LINE>((BorderLayout) getTitleAreaContainer().getLayout()).setCenterBehavior(BorderLayout.CENTER_BEHAVIOR_SCALE);<NEW_LINE>if (!(getTitleComponent() instanceof Button)) {<NEW_LINE>Button b = new Button(...
setMaterialIcon(rightSideButton, FontImage.MATERIAL_MENU);
755,031
public void onDraw(@NonNull Canvas c, @NonNull RecyclerView parent, @NonNull RecyclerView.State state) {<NEW_LINE>ensureColor(parent.getContext());<NEW_LINE>if (mPaint == null && parent.getChildCount() > 0) {<NEW_LINE>mPaint = new Paint();<NEW_LINE>mPaint.setAntiAlias(true);<NEW_LINE>mScrollBarWidth = parent.getChildAt...
, Shader.TileMode.MIRROR));
320,138
private void loadNode1210() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionsDiagnosticsSummaryType_ClientName_Placeholder_SessionDiagnostics_EndpointUrl, new QualifiedName(0, "EndpointUrl"), new LocalizedText("en", "EndpointUrl"), LocalizedText.NULL_VALUE, UInte...
.expanded(), true));
1,268,071
final CloneReceiptRuleSetResult executeCloneReceiptRuleSet(CloneReceiptRuleSetRequest cloneReceiptRuleSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cloneReceiptRuleSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.SERVICE_ID, "SES");
198,937
public static String cleanupDeviceBrandName(String deviceBrand, String deviceName) {<NEW_LINE>deviceName = replaceString(deviceName, "'", " ");<NEW_LINE>deviceName = replaceString(deviceName, "_", " ");<NEW_LINE>deviceName = DEVICE_CLEANUP_PATTERN_1.matcher(deviceName).replaceAll("-");<NEW_LINE>deviceName = DEVICE_CLEA...
() - MOZILLA.length();
771,200
protected JTabbedPane createPlotTabs(Plot plot) {<NEW_LINE>JTabbedPane tabs = new JTabbedPane();<NEW_LINE>tabs.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));<NEW_LINE>Axis domainAxis = null;<NEW_LINE>if (plot instanceof CategoryPlot) {<NEW_LINE>domainAxis = ((CategoryPlot) plot).getDomainAxis();<NEW_LINE>} els...
XYPlot) plot).getRangeAxis();
1,104,803
public void loadImage(final int requestId, Uri uri, final Callback callback) {<NEW_LINE>ImageRequest <MASK><NEW_LINE>final File localCache = getCacheFile(request);<NEW_LINE>if (localCache.exists()) {<NEW_LINE>mExecutorSupplier.forLocalStorageRead().execute(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public v...
request = ImageRequest.fromUri(uri);
1,448,458
public void onHangingBreak(HangingBreakEvent event) {<NEW_LINE>if (event instanceof HangingBreakByEntityEvent) {<NEW_LINE>Entity remover = ((HangingBreakByEntityEvent) event).getRemover();<NEW_LINE>Events.fireToCancel(event, new DestroyEntityEvent(event, create(remover), event.getEntity()));<NEW_LINE>if (event.isCancel...
Events.fireToCancel(event, destroyEntityEvent);
743,661
private Mono<Response<CheckAvailabilityResponseInner>> checkFilePathAvailabilityWithResponseAsync(String location, FilePathAvailabilityRequest body, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is requir...
error(new IllegalArgumentException("Parameter location is required and cannot be null."));
1,612,521
Map<RelNode, BitSet> buildNodeToBitSet(final Map<Integer, BitSet> columnRelationSet, final LoptMultiJoin loptMultiJoin) {<NEW_LINE>Map<RelNode, BitSet> nodeToBitSet = new HashMap<>();<NEW_LINE>int index = 0;<NEW_LINE>for (int i = 0; i < loptMultiJoin.getNumJoinFactors(); i++) {<NEW_LINE>final RelNode <MASK><NEW_LINE>Bi...
rel = loptMultiJoin.getJoinFactor(i);
537,296
private InitiateAuthRequest initiateUserSrpAuthRequest(final Map<String, String> clientMetadata, AuthenticationDetails authenticationDetails, AuthenticationHelper authenticationHelper) {<NEW_LINE>userId = authenticationDetails.getUserId();<NEW_LINE>final InitiateAuthRequest initiateAuthRequest = new InitiateAuthRequest...
().toString(SRP_RADIX));
882,740
public static <T, F, R1, R2, R3> Eval<R3> forEach(Eval<T> eval, Function<? super T, ? extends Eval<R1>> value2, Function<? super Tuple2<? super T, ? super R1>, ? extends Eval<R2>> value3, Function<? super Tuple3<? super T, ? super R1, ? super R2>, ? extends Eval<R3>> value4) {<NEW_LINE>return eval.flatMap(in -> {<NEW_L...
(in, ina, inb));
1,118,810
private final UniqueKey<Record> createUniqueKey(Result<Record> result, int columnName, int keyName, boolean isPrimary) {<NEW_LINE>if (result.size() > 0) {<NEW_LINE>TableField<Record, ?>[] f = new TableField[result.size()];<NEW_LINE>for (int i = 0; i < f.length; i++) {<NEW_LINE>String name = result.get(i).<MASK><NEW_LIN...
get(columnName, String.class);
431,564
public STATUS postAbstractInit(final PwmApplication pwmApplication, final DomainID domainID) throws PwmException {<NEW_LINE>this.emailServiceSettings = EmailServiceSettings.fromConfiguration(this.getPwmApplication().getConfig());<NEW_LINE>LOGGER.trace(() -> "initializing with settings: " + JsonFactory.get<MASK><NEW_LIN...
().serialize(emailServiceSettings));
1,541,591
private JSDynamicObject createFinallyFunction(JSDynamicObject constructor, Object onFinally, boolean thenFinally) {<NEW_LINE>if (setConstructor == null || setOnFinally == null) {<NEW_LINE>CompilerDirectives.transferToInterpreterAndInvalidate();<NEW_LINE>this.setConstructor = insert(PropertySetNode.createSetHidden(JSPro...
-> createPromiseFinallyFunction(c, false));
47,753
final ListThingTypesResult executeListThingTypes(ListThingTypesRequest listThingTypesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listThingTypesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT");
100,661
// ///////////////////////////////////////////////////<NEW_LINE>// ///////////// API Implementation///////////////////<NEW_LINE>// ///////////////////////////////////////////////////<NEW_LINE>@Override<NEW_LINE>public void execute() {<NEW_LINE>if (StringUtils.isEmpty(getCsr()) && getDomains().isEmpty()) {<NEW_LINE>thro...
getValidityDuration(), getProvider());
747,775
public void evaluateComponent(byte evaluation) throws JRException {<NEW_LINE>if (fillContext != null) {<NEW_LINE>for (CVFillItemProperty itemProperty : this.itemProperties) {<NEW_LINE>itemProperty.evaluate(fillContext, evaluation);<NEW_LINE>}<NEW_LINE>for (int i = 0; i < this.itemDataList.size(); ++i) {<NEW_LINE>CVFill...
this.itemDataList.get(i);
1,493,979
public static Frete calcularFrete(Encomenda encomenda, Servico tipoFrete) throws CorreiosException {<NEW_LINE>Properties parameters = new Properties();<NEW_LINE>parameters.setProperty("nCdEmpresa", encomenda.getCodigoEmpresa());<NEW_LINE>parameters.setProperty("sDsSenha", encomenda.getSenha());<NEW_LINE>parameters.setP...
"nVlLargura", encomenda.getLargura());
325,042
public static void main(String[] args) throws IOException {<NEW_LINE>// Import the saved model<NEW_LINE>File locationToSave = new File("MyComputationGraph.zip");<NEW_LINE>log.info("\n\nRestoring saved model...\n\n");<NEW_LINE>ComputationGraph vgg16Transfer = ModelSerializer.restoreComputationGraph(locationToSave);<NEW_...
fit(trainIter.next());
1,575,227
private void restoreUncommittedEntries(final long commitPosition) {<NEW_LINE>for (final LongArrayQueue.LongIterator i = uncommittedTimers.iterator(); i.hasNext(); ) {<NEW_LINE>final <MASK><NEW_LINE>final long correlationId = i.nextValue();<NEW_LINE>if (appendPosition > commitPosition) {<NEW_LINE>timerService.scheduleTi...
long appendPosition = i.nextValue();
612,243
public static void main(String[] args) {<NEW_LINE>// Instantiate a client that will be used to call the service.<NEW_LINE>DocumentModelAdministrationAsyncClient client = new DocumentModelAdministrationClientBuilder().credential(new AzureKeyCredential("{key}")).endpoint("https://{endpoint}.cognitiveservices.azure.com/")...
"Operation Status: %s%n", modelOperationInfo.getStatus());
1,760,106
public Map<String, String> patterns() {<NEW_LINE>Map<String, String> <MASK><NEW_LINE>ret.put("\\<spark.version\\>[0-9\\.]*\\<\\/spark.version\\>", String.format("<spark.version>%s</spark.version>", sparkVersion));<NEW_LINE>ret.put("\\<spark.version\\>[0-9\\.]*\\<\\/spark.version\\>", String.format("<spark.version>%s</s...
ret = new HashMap<>();
1,152,685
private void initPositionChooser() {<NEW_LINE>mPositionChooser = findViewById(R.id.position_chooser);<NEW_LINE>if (mPositionChooser == null)<NEW_LINE>return;<NEW_LINE>final Toolbar toolbar = mPositionChooser.findViewById(R.id.toolbar_position_chooser);<NEW_LINE>UiUtils.extendViewWithStatusBar(toolbar);<NEW_LINE>UiUtils...
this, R.string.message_invalid_feature_position);
687,993
public void start(final Intent intent) {<NEW_LINE>// wait xwalk's initialization<NEW_LINE>if (delayStart(intent)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mFactory.setNextHeaders(mDefaultHeaders);<NEW_LINE>onControllerStart();<NEW_LINE>try {<NEW_LINE>// mCrashRecoverHandler has any previously saved state.<NEW_LINE>mCrash...
getString(R.string.select_webview_provider_msg);
373,872
private static void validateSimpleOperand(FilterContext context, SimpleAttributeOperand select) throws ValidationException {<NEW_LINE>NodeId eventTypeId = select.getTypeDefinitionId();<NEW_LINE>if (eventTypeId != null && !eventTypeId.equals(Identifiers.BaseEventType)) {<NEW_LINE>UaNode node = context.getServer().getAdd...
throw new ValidationException(StatusCodes.Bad_BrowseNameInvalid);
1,808,810
public void download(final ReturnValueCompletion<String> completion) {<NEW_LINE>checkParam();<NEW_LINE><MASK><NEW_LINE>if (ImageMediaType.DataVolumeTemplate.toString().equals(dparam.getImage().getInventory().getMediaType())) {<NEW_LINE>CpCmd cmd = new CpCmd();<NEW_LINE>cmd.srcPath = dparam.getImage().getSelectedBackupS...
final MediatorDowloadParam dparam = (MediatorDowloadParam) param;
1,810,394
// closeIt<NEW_LINE>@Override<NEW_LINE>public boolean reverseCorrectIt() {<NEW_LINE>ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_REVERSECORRECT);<NEW_LINE>//<NEW_LINE>// Get the reversal of this document's parent (if any)<NEW_LINE>// NOTE: we assume that the Reversal_ID links were set ...
.class).save(this);
423,315
private EditSession startAMoveAndResizeSession(@NonNull Matrix inverse, @NonNull PointF point, @Nullable EditorElement selected) {<NEW_LINE>Matrix elementInverseMatrix;<NEW_LINE>if (selected == null)<NEW_LINE>return null;<NEW_LINE>if (selected.getRenderer() instanceof ThumbRenderer) {<NEW_LINE>ThumbRenderer thumb = (Th...
findById(thumb.getElementToControl());
693,296
static JCExpression createMethodAccessor(JavacTreeMaker maker, JavacNode method, JCExpression receiver) {<NEW_LINE>JCMethodDecl methodDecl = (JCMethodDecl) method.get();<NEW_LINE>if (receiver == null && (methodDecl.mods.flags & Flags.STATIC) == 0) {<NEW_LINE>receiver = maker.Ident(method.toName("this"));<NEW_LINE>} els...
.up().get();
559,843
private ActionSchema createActionSchema(ResourceMethodDescriptor resourceMethodDescriptor) {<NEW_LINE>ActionSchema action = new ActionSchema();<NEW_LINE>action.setName(resourceMethodDescriptor.getActionName());<NEW_LINE>// Actions are read-write by default, so write info in the schema only for read-only actions.<NEW_LI...
(returnDoc.substring(1));
957,125
public Object call(final ArrayList<DataPoints[]> query_results) throws Exception {<NEW_LINE>if (allow_expressions) {<NEW_LINE>// process each of the expressions into a new list, then merge it<NEW_LINE>// with the original. This avoids possible recursion loops.<NEW_LINE>final List<DataPoints[]> expression_results = new ...
query.apiVersion() + " is not implemented");
42,936
private void maybeAddProjectIcon() {<NEW_LINE>if (projectIconsAdded_)<NEW_LINE>return;<NEW_LINE>if (pSession_ == null || pSession_.get() == null)<NEW_LINE>return;<NEW_LINE>final FileSystemItem projDir = pSession_.get().getSessionInfo().getActiveProjectDir();<NEW_LINE>if (projDir != null) {<NEW_LINE>ImageButton projIcon...
frame_.setWidgetSize(eastFrame_, width);
189,324
private void writeRunnerSettings(@Nonnull Comparator<Element> runnerComparator, @Nonnull Element element) throws WriteExternalException {<NEW_LINE>List<Element> runnerSettings = new SmartList<Element>();<NEW_LINE>for (ProgramRunner runner : myRunnerSettings.keySet()) {<NEW_LINE>RunnerSettings settings = myRunnerSetting...
Collections.sort(runnerSettings, runnerComparator);
109,272
private void addSendBtcGroup() {<NEW_LINE>btcTitledGroupBg = addTitledGroupBg(root, ++gridRow, 2, Res.get("dao.wallet.send.sendBtcFunds"), Layout.GROUP_DISTANCE);<NEW_LINE><MASK><NEW_LINE>receiversBtcAddressInputTextField = addInputTextField(root, gridRow, Res.get("dao.wallet.send.receiverBtcAddress"), Layout.FIRST_ROW...
GridPane.setColumnSpan(btcTitledGroupBg, 3);
1,559,516
private BookmarkResult predictQuranListAfterDeletion(List<QuranRow> remove) {<NEW_LINE>if (cachedData != null) {<NEW_LINE>List<QuranRow> placeholder = new ArrayList<>(Math.max(0, cachedData.getRows().size() - remove.size()));<NEW_LINE>List<QuranRow> rows = cachedData.getRows();<NEW_LINE>List<Long> removedTags = new Arr...
removedTags.add(row.tagId);
846,456
private static InscriberRecipe makeNamePressRecipe(ItemStack input, ItemStack plateA, ItemStack plateB) {<NEW_LINE>String name = "";<NEW_LINE>if (!plateA.isEmpty()) {<NEW_LINE>final CompoundTag tag = plateA.getOrCreateTag();<NEW_LINE>name += tag.getString(NamePressItem.TAG_INSCRIBE_NAME);<NEW_LINE>}<NEW_LINE>if (!plate...
ItemStack renamedItem = input.copy();
590,327
private int doGetDataTypeLength() {<NEW_LINE>if (!hasValidMagicNum()) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>DataTypeManager dataTypeManager = getProgram().getDataTypeManager();<NEW_LINE>int intSize = new <MASK><NEW_LINE>int uintSize = new UnsignedIntegerDataType(dataTypeManager).getLength();<NEW_LINE>int ibo32Size =...
IntegerDataType(dataTypeManager).getLength();
501,397
public Prediction<Label> combine(ImmutableOutputInfo<Label> outputInfo, List<Prediction<Label>> predictions, float[] weights) {<NEW_LINE>if (predictions.size() != weights.length) {<NEW_LINE>throw new IllegalArgumentException("predictions and weights must be the same length. predictions.size()=" + predictions.size() + "...
predictionMap = new LinkedHashMap<>();
1,043,083
public com.amazonaws.services.directory.model.RegionLimitExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.directory.model.RegionLimitExceededException regionLimitExceededException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = ...
directory.model.RegionLimitExceededException(null);
1,350,333
private void updateNorthPanel() {<NEW_LINE>if (ApplicationManager.getApplication().isUnitTestMode())<NEW_LINE>return;<NEW_LINE>myNorthPanel.setVisible(UISettings.getInstance().SHOW_NAVIGATION_BAR && !(myContainer instanceof DockContainer.Dialog) && !UISettings.getInstance().PRESENTATION_MODE);<NEW_LINE>IdeRootPaneNorth...
toRemove = myNorthExtensions.get(each);
1,178,227
private void parseQuad(String fileName) throws FileNotFoundException {<NEW_LINE>BufferedReader in = UtilIO.openBufferedReader(fileName);<NEW_LINE>try {<NEW_LINE>String[] w = in.readLine().split(" ");<NEW_LINE>if (w.length != 8)<NEW_LINE>throw new RuntimeException("Unexpected number of variables in rectangle: " + w.leng...
.parseDouble(w[6]);
1,502,970
public static TableColumnCore[] createActivityBig(String tableID) {<NEW_LINE>final String[] defaultVisibleOrder = { ColumnActivityNew.COLUMN_ID, ColumnActivityType.COLUMN_ID, ColumnActivityText.COLUMN_ID, ColumnThumbnail.COLUMN_ID, ColumnActivityActions.COLUMN_ID, ColumnActivityDate.COLUMN_ID };<NEW_LINE>TableColumnMan...
toArray(new TableColumnCore[0]);
39,399
private NearCacheConfig handleNearCacheConfig(Node node, NearCacheConfig existingNearCacheConfig) {<NEW_LINE>String name = getAttribute(node, "name");<NEW_LINE>name = name == null ? NearCacheConfig.DEFAULT_NAME : name;<NEW_LINE>NearCacheConfig nearCacheConfig = existingNearCacheConfig != null ? existingNearCacheConfig ...
(getTextContent(child))));
210,651
public static JoinActiveTraceBo joinActiveTraceBoList(List<JoinActiveTraceBo> joinActiveTraceBoList, Long timestamp) {<NEW_LINE>if (joinActiveTraceBoList.isEmpty()) {<NEW_LINE>return JoinActiveTraceBo.EMPTY_JOIN_ACTIVE_TRACE_BO;<NEW_LINE>}<NEW_LINE>List<JoinIntFieldBo> totalCountFieldBoList = joinActiveTraceBoList.stre...
setId(firstJoinActiveTraceBo.getId());
23,434
public void execute(DelegateExecution execution) {<NEW_LINE>String finalProcessDefinitionKey = resolveProcessDefinitionKey(execution);<NEW_LINE>ProcessDefinition processDefinition = findProcessDefinition(<MASK><NEW_LINE>// Get model from cache<NEW_LINE>Process subProcess = ProcessDefinitionUtil.getProcess(processDefini...
finalProcessDefinitionKey, execution.getTenantId());
996,538
default IntColumn difference(TimeColumn column2, ChronoUnit unit) {<NEW_LINE>IntColumn newColumn = IntColumn.create(name() + " - " + column2.name() + "[" + unit.name() + "]");<NEW_LINE>for (int r = 0; r < size(); r++) {<NEW_LINE>int c1 = this.getIntInternal(r);<NEW_LINE>int c2 = column2.getIntInternal(r);<NEW_LINE>if (...
append(IntColumnType.missingValueIndicator());
1,854,141
public void sawOpcode(int seen) {<NEW_LINE>if (seen == Const.LDC || seen == Const.LDC_W || seen == Const.LDC2_W) {<NEW_LINE>Constant c = getConstantRefOperand();<NEW_LINE>if (c instanceof ConstantFloat) {<NEW_LINE>checkConst(((ConstantFloat) c).getBytes());<NEW_LINE>} else if (c instanceof ConstantDouble) {<NEW_LINE>ch...
lastBug.setPriority(lastPriority + 1);
1,818,666
private static Class<?> asClass(TypeReference typeReference) {<NEW_LINE>try {<NEW_LINE>String className = typeReference.baseName();<NEW_LINE>switch(className) {<NEW_LINE>case "byte":<NEW_LINE>return typeReference.isArray() ? byte<MASK><NEW_LINE>case "char":<NEW_LINE>return typeReference.isArray() ? char[].class : char....
[].class : byte.class;
766,254
protected MessagePanelEventListener createMessagePanelEventListener() {<NEW_LINE>return new MessagePanelEventListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void componentChanged(ComponentChangedEvent event) {<NEW_LINE>for (T entry : getModel().getElements()) {<NEW_LINE><MASK><NEW_LINE>if (highlight != null) ...
MessageLocationHighlight highlight = entry.getHighlight();
1,426,102
public boolean visit(SQLCastExpr x) {<NEW_LINE>SqlLiteral functionQualifier = null;<NEW_LINE>SqlNode sqlNode = <MASK><NEW_LINE>SQLDataType dataType = x.getDataType();<NEW_LINE>String typeName = dataType.getName().toUpperCase();<NEW_LINE>if (dataType.nameHashCode64() == FnvHash.Constants.INT) {<NEW_LINE>typeName = "INTE...
convertToSqlNode(x.getExpr());
150,850
public List<ResourcePersistentId> resolveResourcePersistentIdsWithCache(RequestPartitionId theRequestPartitionId, List<IIdType> theIds, boolean theOnlyForcedIds) {<NEW_LINE>assert myDontCheckActiveTransactionForUnitTest || TransactionSynchronizationManager.isSynchronizationActive();<NEW_LINE>List<ResourcePersistentId> ...
(theRequestPartitionId, ids, retVal));
1,526,400
private double[] buildArrayData(int start, int end, String type, String name, String monitor, EventReport report) {<NEW_LINE>EventType t = report.findOrCreateMachine(Constants.ALL).findOrCreateType(type);<NEW_LINE>EventName eventName = t.findOrCreateName(name);<NEW_LINE>Map<Integer, Range> range = eventName.getRanges()...
start, result, 0, length);
165,515
public String generateHeader() {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>append(builder, NLS.str("certificate.cert_type"), x509cert.getType());<NEW_LINE>append(builder, NLS.str("certificate.serialSigVer"), ((Integer) x509cert.getVersion<MASK><NEW_LINE>// serial number<NEW_LINE>append(builder, NLS...
()).toString());
793,898
public static FilesystemViewerData.Options prepareFsViewerOpts(Context context, boolean doSelectFolder, FilesystemViewerData.SelectionListener listener) {<NEW_LINE>FilesystemViewerData.Options opts = new FilesystemViewerData.Options();<NEW_LINE>ContextUtils cu = new ContextUtils(context);<NEW_LINE>ShareUtil shareUtil =...
getAsFileList(appSettings.getRecentDocuments());
1,321,524
private void ensureArtifactCoords(ObjectNode extObject) {<NEW_LINE>String groupId = null;<NEW_LINE>String artifactId = null;<NEW_LINE>String version = null;<NEW_LINE>final JsonNode artifactNode = extObject.get("artifact");<NEW_LINE>if (artifactNode == null) {<NEW_LINE>groupId = getRealValueOrNull(extObject.has("groupId...
asText() : null, "${project.groupId");
480,285
final ListProtocolsListsResult executeListProtocolsLists(ListProtocolsListsRequest listProtocolsListsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listProtocolsListsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
297,681
public Object visit(ASTClassOrInterfaceDeclaration decl, Object data) {<NEW_LINE>if (decl.isAbstract()) {<NEW_LINE>List<ASTMethodDeclaration> methods = decl.findDescendantsOfType(ASTMethodDeclaration.class);<NEW_LINE>for (ASTMethodDeclaration method : methods) {<NEW_LINE>if (!method.isAbstract()) {<NEW_LINE>continue;<N...
this.checkMethodCommentFormat(method, data);
712,052
public static PDShading createLinearGradient(PdfBoxFastOutputDevice od, AffineTransform transform, FSLinearGradient gradient, Shape bounds) {<NEW_LINE>PDShadingType2 shading = new PDShadingType2(new COSDictionary());<NEW_LINE>shading.setShadingType(PDShading.SHADING_TYPE2);<NEW_LINE>shading.setColorSpace(PDDeviceRGB.IN...
add(new COSFloat(startX));
526,386
public boolean updateGpsFiltersConfig(@NonNull GpxDataItem item, @NonNull FilteredSelectedGpxFile selectedGpxFile) {<NEW_LINE>SQLiteConnection db = openConnection(false);<NEW_LINE>if (db != null) {<NEW_LINE>try {<NEW_LINE>double smoothingThreshold = selectedGpxFile.getSmoothingFilter().getSelectedMaxValue();<NEW_LINE>d...
, maxHdop, fileName, fileDir });
1,223,312
final CreateWorkspacesResult executeCreateWorkspaces(CreateWorkspacesRequest createWorkspacesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createWorkspacesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
false), new CreateWorkspacesResultJsonUnmarshaller());
253,702
protected List<Parameter> createParameters() {<NEW_LINE>Parameter p1 = new Parameter(PARAM_STRATEGY, "Depth-First Search (incremental)", "Breadth-First Search (incremental)", "Iterative Deepening Search", "Greedy Best-First Search (attacking pair heuristic)", <MASK><NEW_LINE>Parameter p2 = new Parameter(PARAM_BOARD_SIZ...
"A* search (attacking pair heuristic)", "Hill Climbing", "Simulated Annealing", "Genetic Algorithm");
840,030
protected static Object internalBind(ParamNode paramNode, Class<?> clazz, Type type, BindingAnnotations bindingAnnotations) {<NEW_LINE>if (paramNode == null) {<NEW_LINE>return MISSING;<NEW_LINE>}<NEW_LINE>if (paramNode.getValues() == null && paramNode.getAllChildren().size() == 0) {<NEW_LINE>return MISSING;<NEW_LINE>}<...
bindMap(type, paramNode, bindingAnnotations);
1,075,077
public ListThingRegistrationTasksResult listThingRegistrationTasks(ListThingRegistrationTasksRequest listThingRegistrationTasksRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listThingRegistrationTasksRequest);<NEW_LINE>AWSRequestMetric...
invoke(request, responseHandler, executionContext);
234,456
public static <T, BT extends Procedure<? super T>> void forEachInBatchWithExecutor(BatchIterable<T> set, ProcedureFactory<BT> procedureFactory, Combiner<BT> combiner, int minForkSize, int taskCount, Executor executor) {<NEW_LINE>int size = set.size();<NEW_LINE>if (size < minForkSize) {<NEW_LINE>BT procedure = procedure...
executeAndCombine(executor, procedureFactory, set);
687,734
private void notifyReadySendListeners(BlockingQueue<Pair<SendListener, Conversation>> readySendCallbacks) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "notifyReadySendListeners", readySendCallbacks);<NEW_LINE>try {<NEW_LINE>for (Pair<SendListener, Conversati...
exit(this, tc, "notifyReadySendListeners");
452,020
protected void configure() {<NEW_LINE>install(new TransportsModule());<NEW_LINE>install(new CodecsModule());<NEW_LINE>final MapBinder<String, MessageInput.Factory<? extends MessageInput>> inputMapBinder = inputsMapBinder();<NEW_LINE>// new style inputs, using transports and codecs<NEW_LINE>installInput(inputMapBinder, ...
class, FakeHttpMessageInput.Factory.class);
1,391,225
private void processQuery(QueryBuilder<PaymentScheduleLine> queryBuilder) {<NEW_LINE>Query<PaymentScheduleLine> query = queryBuilder.build();<NEW_LINE>List<PaymentScheduleLine> paymentScheduleLineList;<NEW_LINE>PaymentScheduleService paymentScheduleService = Beans.get(PaymentScheduleService.class);<NEW_LINE>PaymentSche...
DIRECT_DEBIT, batch.getId());
5,184
public HashingResult calculateHashes(List<DataSourceHolder> sources, int pieceSize) throws IOException {<NEW_LINE>final List<byte[]> hashes = new ArrayList<byte[]>();<NEW_LINE>final List<Future<byte[]>> futures = new ArrayList<Future<byte[]>>();<NEW_LINE>List<Long> sourcesSizes = CommonHashingCalculator.INSTANCE.proces...
copyOf(buffer, buffer.length);
920,057
private void replaceImportsAndIncludes(XmlObject xmlObject, Map<String, String> urlToFileMap, String baseUrl) throws Exception {<NEW_LINE>XmlObject[] wsdlImports = xmlObject.selectPath("declare namespace s='http://schemas.xmlsoap.org/wsdl/' .//s:import/@location");<NEW_LINE>for (int i = 0; i < wsdlImports.length; i++) ...
(SimpleValue) wadlImports[i]);
1,641,256
private int findSectionStart(int startIndex, String fileContent) {<NEW_LINE>int index = startIndex;<NEW_LINE>for (; index >= 0; index--) {<NEW_LINE>char ch = fileContent.charAt(index);<NEW_LINE>if (ch == '<') {<NEW_LINE>char next = fileContent.charAt(index + 1);<NEW_LINE>if ((next == 'h' || next == 'H') && Character.is...
matcher = pattern.matcher(fileContent);
1,074,002
protected boolean doHandle(CliTerminal terminal, CliSession cliSession, String line) {<NEW_LINE>SqlQueryResponse response = null;<NEW_LINE><MASK><NEW_LINE>SimpleFormatter formatter;<NEW_LINE>String data;<NEW_LINE>try {<NEW_LINE>response = cliClient.basicQuery(line, cliSession.cfg().getFetchSize(), cliSession.cfg().isLe...
HttpClient cliClient = cliSession.getClient();
1,080,494
public Request<DescribeApplicationVersionsRequest> marshall(DescribeApplicationVersionsRequest describeApplicationVersionsRequest) {<NEW_LINE>if (describeApplicationVersionsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeApplicati...
(describeApplicationVersionsRequest.getMaxRecords()));
1,144,407
protected void doInit() {<NEW_LINE>if (ConfigDataMode.isFastMock()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.scheduler = new ScheduledThreadPoolExecutor(1, new NamedThreadFactory() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Thread newThread(Runnable r) {<NEW_LINE>Thread thread = new Thread(r, "PlanManager schedu...
long start = System.currentTimeMillis();
261,376
public void process(Node externs, Node root, ReferenceMap definitions) {<NEW_LINE>try (LogFile logFile = compiler.createOrReopenIndexedLog(this.getClass(), "decisions.log")) {<NEW_LINE>// avoid passing the log file through a bunch of methods<NEW_LINE>decisionsLog = logFile;<NEW_LINE>// Find all function nodes whose cal...
String key = entry.getKey();
507,262
public void marshall(WorkflowExecutionStartedEventAttributes workflowExecutionStartedEventAttributes, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (workflowExecutionStartedEventAttributes == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_...
workflowExecutionStartedEventAttributes.getExecutionStartToCloseTimeout(), EXECUTIONSTARTTOCLOSETIMEOUT_BINDING);
550,636
public static QueryWorksByOrganizationResponse unmarshall(QueryWorksByOrganizationResponse queryWorksByOrganizationResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryWorksByOrganizationResponse.setRequestId(_ctx.stringValue("QueryWorksByOrganizationResponse.RequestId"));<NEW_LINE>queryWorksByOrganizationResponse.setSu...
("QueryWorksByOrganizationResponse.Result.Data[" + i + "].WorkspaceName"));
802,441
public HbaseSchemaManagerTask create(ProgramCommand programCommand, ProgramOptions programOptions) {<NEW_LINE>if (programCommand == ProgramCommand.EMPTY) {<NEW_LINE>return new HelpTask();<NEW_LINE>}<NEW_LINE>String commandString = programCommand.getCommand();<NEW_LINE>Command command = Command.fromValue(commandString);...
String compression = programOptions.getCompression();
1,072,863
public void onSensorChanged(SensorEvent event) {<NEW_LINE>if (event.sensor.getType() == Sensor.TYPE_GYROSCOPE) {<NEW_LINE>for (int i = 0; i < gyroscopeViewFragments.size(); i++) {<NEW_LINE>GyroscopeViewFragment fragment = gyroscopeViewFragments.get(i);<NEW_LINE>fragment.setCurrentValue(event.values[i]);<NEW_LINE>String...
(builder.toString()));
1,429,433
void drawString(Graphics g, String str, int x, int y) {<NEW_LINE>if (Display.getInstance().isBidiAlgorithm()) {<NEW_LINE>int slen = str.length();<NEW_LINE>for (int i = 0; i < slen; i++) {<NEW_LINE>if (Display.getInstance().isRTL(str.charAt(i))) {<NEW_LINE>str = Display.getInstance().convertBidiLogicalToVisual(str);<NEW...
int clipHeight = g.getClipHeight();
1,271,238
public void createFileMixin(String type) throws RepositoryException {<NEW_LINE>NodeTypeManager manager = session.getWorkspace().getNodeTypeManager();<NEW_LINE>NodeTypeTemplate ntt = manager.createNodeTypeTemplate();<NEW_LINE>ntt.setName(type);<NEW_LINE>String[] str = new String[] { "nt:file" };<NEW_LINE>ntt.setDeclared...
getPropertyDefinitionTemplates().add(pdt5);
615,707
public Payload apply(ByteBuf byteBuf) {<NEW_LINE>ByteBuf m;<NEW_LINE>ByteBuf d;<NEW_LINE>FrameType type = FrameHeaderCodec.frameType(byteBuf);<NEW_LINE>switch(type) {<NEW_LINE>case REQUEST_FNF:<NEW_LINE>d = RequestFireAndForgetFrameCodec.data(byteBuf);<NEW_LINE>m = RequestFireAndForgetFrameCodec.metadata(byteBuf);<NEW_...
m = RequestChannelFrameCodec.metadata(byteBuf);
267,219
public boolean isAnonInCCall(polyglot.types.ClassType anonType) {<NEW_LINE>// System.out.println("checking type: "+anonType);<NEW_LINE>Iterator<Node<MASK><NEW_LINE>while (it.hasNext()) {<NEW_LINE>polyglot.ast.ConstructorCall cCall = (polyglot.ast.ConstructorCall) it.next();<NEW_LINE>// System.out.println("cCall params:...
> it = cCallList.iterator();
193,634
public CreateUserImportJobResult createUserImportJob(CreateUserImportJobRequest createUserImportJobRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createUserImportJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionCont...
new JsonResponseHandler<CreateUserImportJobResult>(unmarshaller);
684,087
private String simpleName(Tree t) {<NEW_LINE>if (t == null) {<NEW_LINE>return Bundle.DisplayName_Unknown();<NEW_LINE>}<NEW_LINE>if (t.getKind() == Kind.IDENTIFIER) {<NEW_LINE>return ((IdentifierTree) t)<MASK><NEW_LINE>}<NEW_LINE>if (t.getKind() == Kind.MEMBER_SELECT) {<NEW_LINE>return ((MemberSelectTree) t).getIdentifi...
.getName().toString();
535,316
private ByteBuffer showRemoteTimeseries(QueryContext context, Node node, PartitionGroup group, ShowTimeSeriesPlan plan) throws IOException, TException, InterruptedException {<NEW_LINE>ByteBuffer resultBinary;<NEW_LINE>// prepare request<NEW_LINE>MeasurementSchemaRequest request;<NEW_LINE>try (ByteArrayOutputStream byte...
node, ClusterConstant.getReadOperationTimeoutMS());
1,544,456
public ActionForward render(ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception {<NEW_LINE>Logger.debug(this, "Running ViewSchedulersAction!!!!");<NEW_LINE>try {<NEW_LINE>String group = "User Job";<NEW_LINE>String group2 = "Recurrent Campaign";<NEW_LINE>...
setAttribute(PageContext.EXCEPTION, e);
216,451
public static List<String> searchFrequentItems(int k, Iterable<String> stream) {<NEW_LINE>// Finds the candidates which may occur > n / k times.<NEW_LINE>String buf = "";<NEW_LINE>Map<String, Integer> table = new HashMap<>();<NEW_LINE>// Counts the number of strings.<NEW_LINE>int n = 0;<NEW_LINE>Iterator<String> sequen...
threshold = (double) n / k;
551,987
public void updateWorklogAndRetainRemainingEstimate(java.lang.String in0, com.atlassian.jira.rpc.soap.beans.RemoteWorklog in1) throws java.rmi.RemoteException, com.atlassian.jira.rpc.exception.RemotePermissionException, com.atlassian.jira.rpc.exception.RemoteValidationException, com.atlassian.jira.rpc.exception.RemoteE...
(java.rmi.RemoteException) _resp;