idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,225,902
private Couple<Integer> computeHash(MultiChildDescriptor childDescriptor, PsiFragment parentFragment, NodeSpecificHasher nodeSpecificHasher) {<NEW_LINE>final PsiElement[<MASK><NEW_LINE>if (elements == null) {<NEW_LINE>return Couple.of(0, 0);<NEW_LINE>}<NEW_LINE>switch(childDescriptor.getType()) {<NEW_LINE>case OPTIONAL...
] elements = childDescriptor.getElements();
1,079,522
private void addDates(Map<Field, String> hm, String lab, String val) {<NEW_LINE>if ("CRDT".equals(lab) && isCreateDateFormat(val)) {<NEW_LINE>hm.put(new UnknownField("create-date"), val);<NEW_LINE>} else if ("DEP".equals(lab) && isDateFormat(val)) {<NEW_LINE>hm.put(new UnknownField("electronic-publication"), val);<NEW_...
new UnknownField("completed"), val);
109,154
void handleElementOnClick(final View view) {<NEW_LINE>final int itemPosition = getRecyclerView().getChildAdapterPosition(view);<NEW_LINE>VideoOnDemand item = <MASK><NEW_LINE>if (activity instanceof VODActivity) {<NEW_LINE>((VODActivity) activity).startNewVOD(item);<NEW_LINE>} else {<NEW_LINE>Intent intent = VODActivity...
getElements().get(itemPosition);
1,780,741
public static void main(final String[] args) {<NEW_LINE>// Input data consists of one x-coordinate and one y-coordinate<NEW_LINE><MASK><NEW_LINE>cp.array[0] = cp.buildLocation(2, 3);<NEW_LINE>cp.array[1] = cp.buildLocation(2, 16);<NEW_LINE>cp.array[2] = cp.buildLocation(3, 9);<NEW_LINE>cp.array[3] = cp.buildLocation(6,...
ClosestPair cp = new ClosestPair(12);
1,220,768
// Package private methods -------------------------------------------------<NEW_LINE>@NonNull<NEW_LINE>private synchronized JavaFileManager createFileManager(@NullAllowed final String sourceLevel) {<NEW_LINE>final <MASK><NEW_LINE>final ProxyFileManager.Configuration cfg = ProxyFileManager.Configuration.create(moduleBo...
SiblingSource siblings = SiblingSupport.create();
162,179
public LogResult postLog(@NonNull final LogType logType, @NonNull final Calendar date, @NonNull final String log, @Nullable final String logPassword, @NonNull final List<TrackableLog> trackableLogs, @NonNull final ReportProblemType reportProblem) {<NEW_LINE>try {<NEW_LINE>final CheckBox favCheck = (CheckBox) activity.<...
findViewById(R.id.favorite_check);
415,974
private RequestBody convertFormDataToRequestBody(List<io.swagger.models.parameters.Parameter> formParams, List<String> consumes) {<NEW_LINE>RequestBody body = new RequestBody();<NEW_LINE>Schema formSchema = new Schema();<NEW_LINE>for (io.swagger.models.parameters.Parameter param : formParams) {<NEW_LINE>SerializablePar...
).$ref("#/components/schemas/formData_" + simpleRef);
446,905
public static void emit(org.xml.sax.ContentHandler contentHandler, nu.validator.servlet.VerifierServletTransaction t) throws org.xml.sax.SAXException {<NEW_LINE>org.xml.sax.helpers.AttributesImpl __attrs__ = new org.xml.sax.helpers.AttributesImpl();<NEW_LINE>contentHandler.startPrefixMapping("", "http://www.w3.org/1999...
endElement("http://www.w3.org/1999/xhtml", "tr", "tr");
1,281,728
/*<NEW_LINE>private void readChoices(Element sourceElement,Source source) {<NEW_LINE>for (Element choiceElement : XML.children(sourceElement,"choice")) {<NEW_LINE>for (Element alternative : XML.children(choiceElement)) {<NEW_LINE>if ("alternative".equals(alternative.getNodeName())) // Explicit alternative container<NEW...
parameters = new LinkedHashMap<>();
281,739
public void testCaptureDebuggerTimeSelectionDialog() throws Throwable {<NEW_LINE>TraceThread thread;<NEW_LINE>try (UndoableTransaction tid = tb.startTransaction()) {<NEW_LINE>DBTraceTimeManager tm = tb.trace.getTimeManager();<NEW_LINE>thread = tb.getOrAddThread("main", 0);<NEW_LINE>tm.createSnapshot("Break on main").se...
("O's moved").setEventThread(thread);
707,529
public ServletTimer createTimer(SipApplicationSession appSession, long delay, long period, boolean fixedDelay, boolean isPersistent, Serializable info) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>Object[] params = { appSession, new Long(delay), new Long(period), new Boolean(fixedDelay), new Boolean(is...
traceExit(this, "createTimer", timer);
844,590
protected void applyTableCustomAttributes(AbstractWmlConversionContext context, AbstractTableWriterModel table, TransformState transformState, Element tableRoot) {<NEW_LINE>int cellSpacing = ((table.getEffectiveTableStyle().getTblPr() != null) && (table.getEffectiveTableStyle().getTblPr().getTblCellSpacing() != null) &...
> tTree = styleTree.getTableStylesTree();
30,200
public <T> RunContext metric(AbstractMetricEntry<T> metricEntry) {<NEW_LINE>int index = this.metrics.indexOf(metricEntry);<NEW_LINE>if (index >= 0) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>AbstractMetricEntry<T> current = (AbstractMetricEntry<T>) this.metrics.get(index);<NEW_LINE>current.increment(metricEntry...
this.metrics.add(metricEntry);
1,606,695
public CommandExecutionResult vlink(String name1, String x1, String y1, String name2, WLinkType type, WArrowDirection direction, HColor color, Display label) {<NEW_LINE>final WBlock block1 = this.root.getBlock(name1);<NEW_LINE>if (block1 == null)<NEW_LINE>return CommandExecutionResult.error("No such element " + name1);...
"0", "0").getDy();
1,524,395
public Operation buildOperation(Map<String, String> parameterMap, InputStream artifactStream, String mimeType) {<NEW_LINE>String key = FilterTypeEnum.RESIZE.toString().toLowerCase();<NEW_LINE>if (!containsMyFilterParams(key, parameterMap)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Operation operation = new Operation(...
ParameterTypeEnum.INT.toString());
1,031,507
public OrgPermissions retrieveOrgPermissions(final Role role, final UserId adUserId) {<NEW_LINE>final AdTreeId adTreeOrgId = role.getOrgTreeId();<NEW_LINE>if (role.isUseUserOrgAccess()) {<NEW_LINE>return getUserOrgPermissions(adUserId, adTreeOrgId);<NEW_LINE>} else {<NEW_LINE>if (role.isAccessAllOrgs()) {<NEW_LINE>fina...
resource = OrgResource.anyOrg(clientId);
1,153,715
private void sendRecipes(GlowMerchantInventory inventory, GlowPlayer player) {<NEW_LINE>// TODO: Move this to a new 'GlowMerchant' class, to allow custom Merchant windows<NEW_LINE>checkNotNull(inventory);<NEW_LINE>checkNotNull(player);<NEW_LINE>int windowId = player.getOpenWindowId();<NEW_LINE>if (windowId == -1) {<NEW...
ByteBuf payload = Unpooled.buffer();
1,673,529
public static ListCalcEnginesResponse unmarshall(ListCalcEnginesResponse listCalcEnginesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCalcEnginesResponse.setRequestId(_ctx.stringValue("ListCalcEnginesResponse.RequestId"));<NEW_LINE>listCalcEnginesResponse.setHttpStatusCode(_ctx.integerValue("ListCalcEnginesRespons...
("ListCalcEnginesResponse.Data.CalcEngines[" + i + "].DwRegion"));
135,686
public final ReferenceControlTypeContext referenceControlType() throws RecognitionException {<NEW_LINE>ReferenceControlTypeContext _localctx = new ReferenceControlTypeContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 88, RULE_referenceControlType);<NEW_LINE>try {<NEW_LINE>setState(1577);<NEW_LINE>_errHandler.syn...
_errHandler.recover(this, re);
397,186
final SendProjectSessionActionResult executeSendProjectSessionAction(SendProjectSessionActionRequest sendProjectSessionActionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(sendProjectSessionActionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
600,059
public void append(final LogEvent event) {<NEW_LINE>if (null == event.getMessage()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Category name<NEW_LINE>final String logger = String.format("%s %s", event.getThreadName(), event.getLoggerName());<NEW_LINE>Level level = event.getLevel();<NEW_LINE>if (Level.FATAL.equals(level)...
log(OS_LOG_TYPE_DEFAULT, logger, t);
876,233
private void loadBlock(ByteBuffer buffer) {<NEW_LINE><MASK><NEW_LINE>// Block size with 16 bits<NEW_LINE>this.readTotalCount = (int) reader.next(16);<NEW_LINE>// Number of reserved components with 16 bits<NEW_LINE>int m = (int) reader.next(16);<NEW_LINE>// Exponent of quantification level with 16 bits<NEW_LINE>int beta...
BitReader reader = new BitReader(buffer);
309,028
protected final // d446474<NEW_LINE>Class<?> loadClass(String className) throws InjectionConfigurationException {<NEW_LINE>ClassLoader classLoader = ivNameSpaceConfig.getClassLoader();<NEW_LINE>if (// F743-32443<NEW_LINE>className == null || className.equals("") || classLoader == null) {<NEW_LINE>return null;<NEW_LINE>...
loadedClass = classLoader.loadClass(className);
970,790
public void parseAttributeClauses(IoTDBSqlParser.AttributeClausesContext ctx, CreateAlignedTimeSeriesOperator createAlignedTimeSeriesOperator) {<NEW_LINE>if (ctx.alias() != null) {<NEW_LINE>createAlignedTimeSeriesOperator.addAliasList(parseNodeName(ctx.alias().nodeNameCanInExpr().getText()));<NEW_LINE>} else {<NEW_LINE...
.getText().toUpperCase();
293,309
public void readSettings(Object settings) {<NEW_LINE>this.wizDescriptor = (WizardDescriptor) settings;<NEW_LINE>TemplateWizard wizard = (TemplateWizard) settings;<NEW_LINE>String targetName = wizard.getTargetName();<NEW_LINE>FileObject resFolder = ResourceUtils.getResourceDirectory(this.helper.getData().getTargetFileOb...
getData().getString("jndi-name");
1,069,060
public List<CompletableFuture<StreamBucket>> prepareOnHandler(SessionSettings sessionInfo, Collection<? extends NodeOperation> nodeOperations, RootTask.Builder taskBuilder, List<Tuple<ExecutionPhase, RowConsumer>> handlerPhases, SharedShardContexts sharedShardContexts) {<NEW_LINE>Context context = new Context(clusterSe...
ExecutionPhase phase = handlerPhase.v1();
1,675,146
public ServiceResponse serviceImpl(Query post, HttpServletResponse response, Authorization user, final JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>String text = post.get("BODY", "").trim();<NEW_LINE>// for each line of this text, create an answer. Then output the text again with answers after each...
append(System.lineSeparator());
1,529,174
public void marshall(VirtualInterface virtualInterface, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (virtualInterface == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(virtualInterface.getOwnerAccount(), ...
virtualInterface.getRegion(), REGION_BINDING);
1,546,903
public com.amazonaws.services.iotthingsgraph.model.InternalFailureException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.iotthingsgraph.model.InternalFailureException internalFailureException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = co...
iotthingsgraph.model.InternalFailureException(null);
541,450
public SDVariable updateVariableNameAndReference(SameDiffOp opToRename, SDVariable varToUpdate, String newVarName, boolean exactName) {<NEW_LINE>if (varToUpdate == null) {<NEW_LINE>throw new NullPointerException("Null input: No variable found for updating!");<NEW_LINE>}<NEW_LINE>if (newVarName != null) {<NEW_LINE>Strin...
IllegalStateException("Variable name \"" + newVarName + "\" already exists for a different SDVariable");
1,210,505
private void cancelLongJob(String uuid, Completion completion) {<NEW_LINE>Tuple t = Q.New(LongJobVO.class).eq(LongJobVO_.uuid, uuid).select(LongJobVO_.state, LongJobVO_.jobName).findTuple();<NEW_LINE>LongJobState originState = t.get(0, LongJobState.class);<NEW_LINE>if (originState == LongJobState.Canceled) {<NEW_LINE>l...
, vo.getName()));
998,598
public static void main(String[] args) {<NEW_LINE>final String USAGE = "Usage:\n" + " CreateDataset <datasetName, dataset group arn, dataset type, schema arn>\n\n" + "Where:\n" + " name - The name for the dataset.\n" + " dataset group arn - The Amazon Resource Name (ARN) for the dataset group.\n" + " dataset t...
out.println("Dataset ARN: " + datasetArn);
552,289
public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {<NEW_LINE>final String[] nodesIds = Strings.splitStringByCommaToArray<MASK><NEW_LINE>final TaskId taskId = new TaskId(request.param("task_id"));<NEW_LINE>final String[] actions = Strings.splitStringByCommaT...
(request.param("nodes"));
1,514,976
public static void processAnnotation(LoggingFramework framework, AnnotationValues<? extends java.lang.annotation.Annotation> annotation, Annotation source, EclipseNode annotationNode) {<NEW_LINE>EclipseNode owner = annotationNode.up();<NEW_LINE>switch(owner.getKind()) {<NEW_LINE>case TYPE:<NEW_LINE>IdentifierName logFi...
framework.getAnnotationAsString() + " requires a topic.");
1,720,734
public void marshall(CreatePipelineRequest createPipelineRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createPipelineRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createPipelineRequest...
createPipelineRequest.getClientRequestToken(), CLIENTREQUESTTOKEN_BINDING);
1,255,323
public ImmutableSet<BPartnerId> retrieveBPartnerIdsBy(@NonNull final BPartnerQuery query) {<NEW_LINE>final IQueryBuilder<I_C_BPartner> queryBuilder = createQueryBuilder(I_C_BPartner.class);<NEW_LINE>if (!query.getOnlyOrgIds().isEmpty()) {<NEW_LINE>queryBuilder.addInArrayFilter(I_C_BPartner.COLUMNNAME_AD_Org_ID, query.g...
).setParameter("query", query);
1,417,548
protected List<ExecutionEntity> loadProcessInstance(String processInstanceId, CommandContext commandContext) {<NEW_LINE>List<ExecutionEntity> result = null;<NEW_LINE>// first try to load from cache<NEW_LINE>// check whether the process instance is already (partially) loaded in command context<NEW_LINE>List<ExecutionEnt...
ExecutionEntity processInstance = executionEntity.getProcessInstance();
1,302,484
public synchronized void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.setStroke(new BasicStroke(5));<NEW_LINE>g2.setColor(Color.gray);<NEW_LINE>if (mode == Mode.PLACING_POINTS) {<NEW_LINE>if (numSelected == 1) {<NEW_LINE>drawCorner(g2, quad.a, Color...
Color.gray, Color.CYAN);
114,878
protected Object superAroundInvoke(InvocationContext inv) throws Exception {<NEW_LINE>ResultsLocal results = ResultsLocalBean.getSFBean();<NEW_LINE>results.addAroundInvoke(CLASS_NAME, "superAroundInvoke");<NEW_LINE>// Validate and update context data.<NEW_LINE>Map<String, Object<MASK><NEW_LINE>String data;<NEW_LINE>if ...
> map = inv.getContextData();
480,667
private int fillbuf(InputStream localIn, byte[] localBuf) throws IOException {<NEW_LINE>if (markpos == -1 || pos - markpos >= marklimit) {<NEW_LINE>// Mark position not put or exceeded readlimit<NEW_LINE>int result = localIn.read(localBuf);<NEW_LINE>if (result > 0) {<NEW_LINE>markpos = -1;<NEW_LINE>pos = 0;<NEW_LINE>co...
0, localBuf.length - markpos);
796,450
private void createMergeAggInfo(Analyzer analyzer) {<NEW_LINE>Preconditions.checkState(mergeAggInfo_ == null);<NEW_LINE>TupleDescriptor inputDesc = intermediateTupleDesc_;<NEW_LINE>// construct grouping exprs<NEW_LINE>ArrayList<Expr> groupingExprs = Lists.newArrayList();<NEW_LINE>for (int i = 0; i < getGroupingExprs()....
> aggExprs = Lists.newArrayList();
719,290
public static OpenOrders adaptOpenOrders(BitcoindeMyOpenOrdersWrapper bitcoindeOpenOrdersWrapper) {<NEW_LINE><MASK><NEW_LINE>List<BitcoindeMyOrder> bitcoindeMyOrders = bitcoindeOpenOrdersWrapper.getOrders();<NEW_LINE>List<LimitOrder> orders = new ArrayList<>(bitcoindeMyOrders.size());<NEW_LINE>for (BitcoindeMyOrder bit...
System.out.println(bitcoindeOpenOrdersWrapper);
622,750
public static void createSubTaskProgress(String fmt, Object... args) {<NEW_LINE>if (!ProgressGlobalConfig.PROGRESS_ON.value(Boolean.class)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!ThreadContext.containsKey(Constants.THREAD_CONTEXT_API)) {<NEW_LINE>if (args != null) {<NEW_LINE>logger.warn(String.format("no task uuid...
put(Constants.THREAD_CONTEXT_PROGRESS_ENABLED, "true");
1,538,355
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = <MASK><NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));<NEW_LINE>}<NEW_LINE>String mob...
Utils.getValueFromIdByName(id, "resourceGroups");
1,283,624
private void updatePieChart(List<TaskProxy> tasks) {<NEW_LINE>if (pieChart == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Calculate the slices based on the due date.<NEW_LINE>double pastDue = 0;<NEW_LINE>double dueSoon = 0;<NEW_LINE>double onTime = 0;<NEW_LINE>double noDate = 0;<NEW_LINE>final Date now = new Date()...
(255, 200, 100));
1,182,542
public static ListAppServicesPageResponse unmarshall(ListAppServicesPageResponse listAppServicesPageResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAppServicesPageResponse.setRequestId(_ctx.stringValue("ListAppServicesPageResponse.RequestId"));<NEW_LINE>listAppServicesPageResponse.setMessage<MASK><NEW_LINE>listAppSe...
(_ctx.stringValue("ListAppServicesPageResponse.Message"));
1,409,923
private void applyToWST_XMLEditor(Theme theme, boolean revertToDefaults) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>IEclipsePreferences prefs = InstanceScope.INSTANCE.getNode("org.eclipse.wst.xml.ui");<NEW_LINE>setGeneralEditorValues(theme, prefs, revertToDefaults);<NEW_LINE>// FIXME These were adapted from our scopes for DTD,...
theme, "comment.block.xml", "commentText", revertToDefaults);
1,744,821
void checkSpecificAccessControl() throws UnauthorizedAccessException {<NEW_LINE>String feedbackQuestionId = getNonNullRequestParamValue(Const.ParamsNames.FEEDBACK_QUESTION_ID);<NEW_LINE>FeedbackQuestionAttributes feedbackQuestion = logic.getFeedbackQuestion(feedbackQuestionId);<NEW_LINE>if (feedbackQuestion == null) {<...
throw new InvalidHttpParameterException("Unknown intent " + intent);
95,712
private ItemChangeSets parseChangeSets(NamespaceIdentifier namespace, List<ItemDTO> sourceItems) {<NEW_LINE>ItemChangeSets changeSets = new ItemChangeSets();<NEW_LINE>List<ItemDTO> targetItems = itemAPI.findItems(namespace.getAppId(), namespace.getEnv(), namespace.getClusterName(), namespace.getNamespaceName());<NEW_LI...
targetItem = targetItemMap.get(key);
1,549,840
void write(String log, int flag) {<NEW_LINE>if (TextUtils.isEmpty(log)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LoganModel model = new LoganModel();<NEW_LINE>model.action = LoganModel.Action.WRITE;<NEW_LINE>WriteAction action = new WriteAction();<NEW_LINE>String threadName = Thread.currentThread().getName();<NEW_LINE>lo...
.currentThread().getId();
474,984
AST replaceFoundAST(AST astNode, RevisionData revisionData, Map<IndexDef, List<Path<QNm>>> foundIndexDefs, Map<IndexDef, Integer> predicateLevels, Deque<QueryPathSegment> pathSegmentNamesToArrayIndexes, AST predicateLeafNode) {<NEW_LINE>final var indexExpr = new AST(XQExt.IndexExpr, XQExt<MASK><NEW_LINE>indexExpr.setPr...
.toName(XQExt.IndexExpr));
1,078,302
public ThemeValue unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ThemeValue themeValue = new ThemeValue();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (tok...
String currentParentElement = context.getCurrentParentElement();
1,291,162
protected List<EventSubscription> findEventSubscriptions(String scopeType, EventInstance eventInstance, Collection<CorrelationKey> correlationKeys) {<NEW_LINE>return commandExecutor.execute(commandContext -> {<NEW_LINE>EventSubscriptionQuery eventSubscriptionQuery = createEventSubscriptionQuery().eventType(eventInstanc...
collect(Collectors.toSet());
1,006,375
private Status handleOutOfMemory(OutOfMemoryError ex) {<NEW_LINE>// try to clean up a bit of space, hopefully, so we can report this error<NEW_LINE>System.gc();<NEW_LINE>String oomeMessage = ex.getMessage();<NEW_LINE>boolean heapError = false;<NEW_LINE>if (oomeMessage != null) {<NEW_LINE>if (oomeMessage.contains("unabl...
) / 1024 / 1024 + "MB.");
931,192
private void determineDetailedFunctionConflicts(ExternalLocation[] externalLocations, TaskMonitor monitor) throws CancelledException {<NEW_LINE>Function[] functions = new Function[4];<NEW_LINE>functions[RESULT] = externalLocations[RESULT].getFunction();<NEW_LINE>functions[LATEST] = externalLocations[LATEST].getFunction...
(functions[MY] == null);
637,003
protected void didBecomeActive(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.didBecomeActive(savedInstanceState);<NEW_LINE>presenter.squareClicks().subscribe(new Consumer<BoardCoordinate>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void accept(BoardCoordinate xy) throws Exception {<NEW_LINE>if (board.cells...
setPlayerWon(playerOne.getUserName());
483,547
final CreateSubnetCidrReservationResult executeCreateSubnetCidrReservation(CreateSubnetCidrReservationRequest createSubnetCidrReservationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSubnetCidrReservationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
356,427
public Void visitType(CodeTypeElement e, Void p) {<NEW_LINE>boolean rootType = e.getEnclosingClass() == null;<NEW_LINE>if (rootType) {<NEW_LINE>suppressedWarnings.clear();<NEW_LINE>}<NEW_LINE>List<TypeElement> superTypes = ElementUtils.getSuperTypes(e);<NEW_LINE>for (TypeElement type : superTypes) {<NEW_LINE>String qua...
(new String[0]));
1,574,685
public Object toCompleteResponse(String rootUrl) {<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>if (skin != null && skin.getSkin() != null) {<NEW_LINE>if (skin.getModel() == TextureModel.ALEX) {<NEW_LINE>realTextures.put("SKIN", mapOf(pair("url", rootUrl + "/textures/" + skin.getSkin().getHash()), pair("metadata", mapO...
realTextures = new HashMap<>();
292,594
private JSDynamicObject readJSArrayBufferView(JSContext context, JSRealm realm, JSDynamicObject arrayBuffer) {<NEW_LINE>assert JSArrayBuffer.isJSDirectOrSharedArrayBuffer(arrayBuffer);<NEW_LINE>SerializationTag arrayBufferViewTag = readTag();<NEW_LINE>assert arrayBufferViewTag == SerializationTag.ARRAY_BUFFER_VIEW;<NEW...
createArrayType(true, offset != 0);
1,349,564
private synchronized void compact() {<NEW_LINE>BlockBuilder newHeapBlockBuilder = type.createBlockBuilder(null, heapBlockBuilder.getPositionCount());<NEW_LINE>// since block positions are changed, we need to update all data structures which are using block position as reference<NEW_LINE>LongBigArray newBlockPositionToC...
appendTo(heapBlockBuilder, oldBlockPosition, newHeapBlockBuilder);
383,862
final UpdateFileSystemResult executeUpdateFileSystem(UpdateFileSystemRequest updateFileSystemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFileSystemRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.SERVICE_ID, "EFS");
1,068,193
private void createObjectsTable(Composite parent) {<NEW_LINE>Composite placeholder = UIUtils.createComposite(parent, 1);<NEW_LINE>placeholder.setLayoutData(new GridData(GridData.FILL_BOTH));<NEW_LINE>Group tableGroup = UIUtils.createControlGroup(placeholder, UINavigatorMessages.confirm_deleting_multiple_objects_table_g...
* 2 * rowCount : fontHeight * 10;
106,793
public boolean resourceUpdate(WSFloatingPointValue value) throws IhcExecption {<NEW_LINE>final String soapQuery = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/...
+ " <isValueRuntime>true</isValueRuntime>" + " </setResourceValue1>" + "</soap:Body>" + "</soap:Envelope>";
790,103
private void updateIncomingCallScreen(final RtpEndUserState state, final Contact contact) {<NEW_LINE>if (state == RtpEndUserState.INCOMING_CALL || state == RtpEndUserState.ACCEPTING_CALL) {<NEW_LINE>final boolean show = getResources().getBoolean(R.bool.show_avatar_incoming_call);<NEW_LINE>if (show) {<NEW_LINE>binding.<...
contactPhoto.setVisibility(View.VISIBLE);
1,084,774
public void testComplete() throws Exception {<NEW_LINE><MASK><NEW_LINE>CountDownLatch continueLatch = new CountDownLatch(1);<NEW_LINE>try {<NEW_LINE>BlockableSupplier<String> supplier = new BlockableSupplier<String>("testComplete", beginLatch, continueLatch);<NEW_LINE>CompletableFuture<String> cf = defaultManagedExecut...
CountDownLatch beginLatch = new CountDownLatch(1);
799,311
public <T> EVCacheOperationFuture<CASValue<T>> asyncGetAndTouch(final String key, final int exp, final Transcoder<T> tc) {<NEW_LINE>final CountDownLatch latch = new CountDownLatch(1);<NEW_LINE>final EVCacheOperationFuture<CASValue<T>> rv = new EVCacheOperationFuture<CASValue<T>>(key, latch, new AtomicReference<CASValue...
tc.getMaxSize())));
1,582,392
public void onBeforeSave(final I_AD_WF_Node wfNodeRecord, final boolean newRecord) {<NEW_LINE>final I_AD_Workflow workflow = InterfaceWrapperHelper.load(wfNodeRecord.getAD_Workflow_ID(), I_AD_Workflow.class);<NEW_LINE>if (X_AD_Workflow.WORKFLOWTYPE_Manufacturing.equals(workflow.getWorkflowType())) {<NEW_LINE>wfNodeReco...
ofCode(wfNodeRecord.getAction());
1,050,484
private void backup(String toolName, List<CheckerDetailEntity> fromCheckerList, String buildId) {<NEW_LINE>if (CollectionUtils.isEmpty(fromCheckerList)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<CheckerDetailHisEntity> hisCheckerHisEntities = checkerHisRepository.findByToolName(toolName);<NEW_LINE>if (CollectionUtils...
collect(Collectors.toList());
979,321
public final CollectionOptionsContext collectionOptions() throws RecognitionException {<NEW_LINE>CollectionOptionsContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 544, RULE_collectionOptions);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(5637);<NEW_LINE...
CollectionOptionsContext(_ctx, getState());
1,361,111
public static HotSwapClassInfo create(ObjectKlass klass, Symbol<Name> name, byte[] bytes, StaticObject definingLoader, EspressoContext context) {<NEW_LINE>Symbol<Type> type = context.getTypes().fromName(name);<NEW_LINE>ParserKlass parserKlass = ClassfileParser.parse(new ClassfileStream(bytes, null<MASK><NEW_LINE>String...
), definingLoader, type, context);
551,385
public void scan() {<NEW_LINE>if (myLocalFileSystemRefreshWorker != null) {<NEW_LINE>myLocalFileSystemRefreshWorker.scan();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>NewVirtualFileSystem fs = root.getFileSystem();<NEW_LINE>if (root.isDirectory()) {<NEW_LINE>fs = PersistentFS.replaceWithNativeFS(fs);<NEW_LINE...
NewVirtualFile root = myRefreshQueue.pullFirst();
1,727,583
public void onMatch(RelOptRuleCall call) {<NEW_LINE>final Aggregate aggregate = call.rel(0);<NEW_LINE>final Project project = call.rel(1);<NEW_LINE>final RexBuilder rexBuilder = aggregate.getCluster().getRexBuilder();<NEW_LINE>final List<AggregateCall> newCalls = new ArrayList<>(aggregate.getAggCallList().size());<NEW_...
get(i).getType();
823,818
private static Serializer resolveSerializerInstance(Kryo k, Class superClass, Class<? extends Serializer> serializerClass) {<NEW_LINE>Constructor<? extends Serializer> ctor;<NEW_LINE>try {<NEW_LINE>ctor = serializerClass.getConstructor(Kryo.class, Class.class);<NEW_LINE>return <MASK><NEW_LINE>} catch (NoSuchMethodExcep...
ctor.newInstance(k, superClass);
1,535,385
private void elaborateInputAttributes(XhtmlSaxEmitter xhtmlSaxEmitter, Name elt, Name badAttribute) throws SAXException {<NEW_LINE>attributesImpl.clear();<NEW_LINE>attributesImpl.addAttribute("class", "inputattrs");<NEW_LINE>xhtmlSaxEmitter.startElement("dl", attributesImpl);<NEW_LINE>emitElementSpecificAttributesDt(xh...
.getValue()[0]);
484,981
protected Answer execute(final CreateIpAliasCommand cmd) {<NEW_LINE>if (s_logger.isInfoEnabled()) {<NEW_LINE>s_logger.info("Executing createIpAlias command: " + s_gson.toJson(cmd));<NEW_LINE>}<NEW_LINE>cmd.getAccessDetail(NetworkElementCommand.ROUTER_IP);<NEW_LINE>final List<IpAliasTO> ipAliasTOs = cmd.getIpAliasList()...
" failed, message: " + result.second());
1,418,263
private void init() {<NEW_LINE>inflate(getContext(), R.layout.title_bar_layout, this);<NEW_LINE>mTitleLayout = findViewById(R.id.page_title_layout);<NEW_LINE>mLeftGroup = findViewById(R.id.page_title_left_group);<NEW_LINE>mRightGroup = findViewById(R.id.page_title_right_group);<NEW_LINE>mLeftTitle = findViewById(R.id.p...
findViewById(R.id.page_title);
1,651,439
public void unsetup() {<NEW_LINE>if (model.getTimeFormat().equals(TimeFormat.DATE) || model.getTimeFormat().equals(TimeFormat.DATETIME)) {<NEW_LINE>double min = AttributeUtils.parseDateTime(minTextField.getText());<NEW_LINE>double max = AttributeUtils.<MASK><NEW_LINE>double start = AttributeUtils.parseDateTime(startTex...
parseDateTime(maxTextField.getText());
382,806
public CreateLicenseManagerReportGeneratorResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateLicenseManagerReportGeneratorResult createLicenseManagerReportGeneratorResult = new CreateLicenseManagerReportGeneratorResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE...
String currentParentElement = context.getCurrentParentElement();
1,162,571
public static DescribeVulMachineListResponse unmarshall(DescribeVulMachineListResponse describeVulMachineListResponse, UnmarshallerContext context) {<NEW_LINE>describeVulMachineListResponse.setRequestId(context.stringValue("DescribeVulMachineListResponse.RequestId"));<NEW_LINE>describeVulMachineListResponse.setTotalCou...
("DescribeVulMachineListResponse.MachineStatistics[" + i + "].CmsNum"));
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 + "].RegionId"));
1,343,929
public static void response(ShardingService shardingService) {<NEW_LINE>HEADER.setPacketId(shardingService.nextPacketId());<NEW_LINE>FIELDS[0] = PacketUtil.getField("DATABASE()", Fields.FIELD_TYPE_VAR_STRING);<NEW_LINE>FIELDS[0].<MASK><NEW_LINE>EOF.setPacketId(shardingService.nextPacketId());<NEW_LINE>ByteBuffer buffer...
setPacketId(shardingService.nextPacketId());
1,329,716
public static void log(XHook hook, int priority, String msg) {<NEW_LINE>// Check if logging enabled<NEW_LINE>int uid = Process.myUid();<NEW_LINE>if (!mLogDetermined && uid > 0) {<NEW_LINE>mLogDetermined = true;<NEW_LINE>try {<NEW_LINE>mLog = PrivacyManager.getSettingBool(0, PrivacyManager.cSettingLog, false);<NEW_LINE>...
println(priority, "XPrivacy", msg);
655,814
protected void handleGet(final HttpServletRequest req, final HttpServletResponse resp, final Session session) throws ServletException, IOException {<NEW_LINE>if (hasParam(req, "project")) {<NEW_LINE>if (hasParam(req, "ajax")) {<NEW_LINE>handleAJAXAction(req, resp, session);<NEW_LINE>} else if (hasParam(req, "logs")) {<...
handleReloadProjectWhitelist(req, resp, session);
822,701
private void interpolate(long lo, long hi, Record mapRecord, long x1, long x2, MapValue x1Value, MapValue x2value) {<NEW_LINE>computeYPoints(x1Value, x2value);<NEW_LINE>for (long x = lo; x < hi; x = sampler.nextTimestamp(x)) {<NEW_LINE>final MapValue result = findDataMapValue3(mapRecord, x);<NEW_LINE>assert result != n...
function = groupByTwoPointFunctions.getQuick(i);
1,121,292
public void execute(final JobExecutionContext jobCtx) throws JobExecutionException {<NEW_LINE>Connection conn = null;<NEW_LINE>Session sess = null;<NEW_LINE>MessageProducer producer = null;<NEW_LINE>try {<NEW_LINE>final JobDataMap dataMap = jobCtx.getMergedJobDataMap();<NEW_LINE>final Context namingCtx = JmsHelper.getI...
dataMap.getString(JmsHelper.JMS_USER);
1,785,441
public void actionPerformed(@Nonnull final AnActionEvent e) {<NEW_LINE>final Project project = e.getData(CommonDataKeys.PROJECT);<NEW_LINE>final Change[] changes = e.getData(VcsDataKeys.CHANGES);<NEW_LINE>if (project == null || !canShowDiff(project, changes))<NEW_LINE>return;<NEW_LINE>if (ChangeListManager.getInstance(...
showDiffForChange(project, result, index);
1,159,664
private AssemblyRegion makeAssemblyRegionFromVariantReads(final List<ReadsContext> readsContexts, final VariantContext vc) {<NEW_LINE>final Set<String> variantReadNames = readsContexts.stream().flatMap(Utils::stream).filter(read -> RealignmentEngine.supportsVariant(read, vc, indelStartTolerance)).map(GATKRead::getName)...
AssemblyRegion(assemblyWindow, 0, bamHeader);
1,326,482
public BytesRef encodeEdgeKey(GraphVertex srcType, Map<Integer, PropertyValue> srcPkMap, GraphVertex dstType, Map<Integer, PropertyValue> dstPkMap, GraphEdge type, Map<Integer, PropertyValue> propertiesMap, long tableId, boolean outEdge) {<NEW_LINE>scratch.clear();<NEW_LINE>List<Integer> srcPkIds = labelPkIds.computeIf...
getLabelId(), dstPkMap, dstPkIds);
903,890
protected void fillMapFromExecutable(final Map<String, Object> objMap) {<NEW_LINE>objMap.put(ID_PARAM, this.id);<NEW_LINE>objMap.put(STATUS_PARAM, this.status.toString());<NEW_LINE>objMap.put(START_TIME_PARAM, this.startTime);<NEW_LINE>objMap.put(END_TIME_PARAM, this.endTime);<NEW_LINE>objMap.put(UPDATE_TIME_PARAM, thi...
this.pastAttempts.size());
1,577,917
private void maybeVerifyTargetIsExecutable(ActionExecutionContext actionExecutionContext) throws ActionExecutionException {<NEW_LINE>if (targetType != TargetType.EXECUTABLE) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Path inputPath = actionExecutionContext.getInputPath(getPrimaryInput());<NEW_LINE>try {<NEW_LINE>// Validat...
getSingleton().prettyPrint());
1,033,817
public Location deleteLocation(int position) {<NEW_LINE>assert mTotalList != null;<NEW_LINE>List<Location> totalList = new ArrayList<>(mTotalList);<NEW_LINE>Location <MASK><NEW_LINE>if (location.getFormattedId().equals(mFormattedId)) {<NEW_LINE>setFormattedId(totalList.get(0).getFormattedId());<NEW_LINE>}<NEW_LINE>List...
location = totalList.remove(position);
466,441
// ----- private methods -----<NEW_LINE>private void init() {<NEW_LINE>factories.put(NotEmptyQuery.class, new NotEmptyQueryFactory(this));<NEW_LINE>factories.put(FulltextQuery.class, new KeywordQueryFactory(this));<NEW_LINE>factories.put(SpatialQuery.class, new SpatialQueryFactory(this));<NEW_LINE>factories.put(GroupQu...
class, new UuidQueryFactory(this));
812,173
private void initList() {<NEW_LINE>// initList() may be called multiple times within one dialog showing,<NEW_LINE>// and some files may have been changed, so we need to update the list<NEW_LINE>files = checkForUnsavedFiles(files);<NEW_LINE>checkboxes = new GCheckBox[files.size()];<NEW_LINE>saveable = new boolean[files....
[i].setText(text);
1,653,695
public static ConvexHull2D.PointF[] calculateConvexHull(Raster alphaRaster, int hullTargetVertexCount, int dilateCount) {<NEW_LINE><MASK><NEW_LINE>int height = alphaRaster.getHeight();<NEW_LINE>int[] alpha = new int[width * height];<NEW_LINE>alpha = alphaRaster.getPixels(0, 0, width, height, alpha);<NEW_LINE>if (isEmpt...
int width = alphaRaster.getWidth();
1,712,427
private static POInfoColumn retrievePOInfoColumn(@NonNull final ResultSet rs) throws SQLException {<NEW_LINE>final String m_TableName = rs.getString(I_AD_Table.COLUMNNAME_TableName);<NEW_LINE>final String ColumnName = rs.getString(2);<NEW_LINE>final int AD_Reference_ID = rs.getInt(3);<NEW_LINE>final boolean IsMandatory...
(rs.getString(23));
263,607
static void validateVector(Vector[] mvs, MPEG4DecodingContext ctx, int xPos, int yPos) {<NEW_LINE>int shift = 5 + (ctx.quarterPel ? 1 : 0);<NEW_LINE>int xHigh = (ctx.mbWidth - xPos) << shift;<NEW_LINE>int xLow = <MASK><NEW_LINE>int yHigh = (ctx.mbHeight - yPos) << shift;<NEW_LINE>int yLow = (-yPos - 1) << shift;<NEW_LI...
(-xPos - 1) << shift;
1,565,900
public int deserialize(final byte[] stream, int offset) {<NEW_LINE>this.size = OIntegerSerializer.INSTANCE.deserializeLiteral(stream, offset);<NEW_LINE>int entriesSize = OIntegerSerializer.<MASK><NEW_LINE>offset += OIntegerSerializer.INT_SIZE;<NEW_LINE>for (int i = 0; i < entriesSize; i++) {<NEW_LINE>ORID rid = OLinkSe...
INSTANCE.deserializeLiteral(stream, offset);
787,972
private void renderList(FacesContext facesContext, UIComponent messages, MessagesIterator messagesIterator) throws IOException {<NEW_LINE>ResponseWriter writer = facesContext.getResponseWriter();<NEW_LINE>writer.startElement(HTML.UL_ELEM, messages);<NEW_LINE>Map<String, List<ClientBehavior>> behaviors = null;<NEW_LINE>...
ClientBehaviorHolder) messages).getClientBehaviors();
107,420
// checked by primitiveKind()<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>private void readKeyFromResult(Attribute<E, ?> key, Settable<E> proxy, ResultSet results) throws SQLException {<NEW_LINE>Object generatedKey;<NEW_LINE>String column = key.getName();<NEW_LINE>int resultIndex = 1;<NEW_LINE>try {<NEW_LINE>// tr...
Expression) key, results, resultIndex);