idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
78,147
public void deserialize(ByteBuf input) {<NEW_LINE>int featsFlag = ByteBufSerdeUtils.deserializeInt(input);<NEW_LINE>if (featsFlag > 0) {<NEW_LINE>feats = (IntFloatVector) ByteBufSerdeUtils.deserializeVector(input);<NEW_LINE>}<NEW_LINE>int neighborsFlag = ByteBufSerdeUtils.deserializeInt(input);<NEW_LINE>if (neighborsFl...
labelsFlag = ByteBufSerdeUtils.deserializeInt(input);
1,753,053
protected synchronized void addFromCheckpoint(ManagedObject managedObject, Transaction transaction) throws ObjectManagerException {<NEW_LINE>final String methodName = "addFromCheckpoint";<NEW_LINE>if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())<NEW_LINE>trace.entry(this, cclass, methodName, new Object[] { ...
exit(this, cclass, methodName);
984,354
protected void runInternal() {<NEW_LINE>boolean hasInterceptor = !mapContainer.getInterceptorRegistry().getInterceptors().isEmpty();<NEW_LINE>List<Data> loadingSequence = this.loadingSequence;<NEW_LINE>for (int i = 0; i < loadingSequence.size(); ) {<NEW_LINE>Data key = loadingSequence.get(i++);<NEW_LINE>Data dataValue ...
loadingSequence.get(i++));
462,219
public final ActionInGroup addAction(@Nonnull AnAction action, @Nonnull Constraints constraint, @Nonnull ActionManager actionManager) {<NEW_LINE>if (action == this) {<NEW_LINE>throw new IllegalArgumentException(CANT_ADD_ITSELF + action);<NEW_LINE>}<NEW_LINE>// check that action isn't already registered<NEW_LINE>if (!(a...
(Constraints) constraint.clone();
724,700
public List<PrefValue<?>> allPrefs() {<NEW_LINE>ArrayList<PrefValue<?>> prefs = new ArrayList<PrefValue<?>>();<NEW_LINE>prefs.add(contextId());<NEW_LINE>prefs.add(autoCreatedProfile());<NEW_LINE>prefs.add(theme());<NEW_LINE>prefs.add(defaultProjectLocation());<NEW_LINE>prefs.add(clearHidden());<NEW_LINE>prefs.add(expor...
prefs.add(compileRNotebookPrefs());
364,696
private boolean tryStatusCache(PayloadInjector injector, String param, int attackDedication, short get404Code) {<NEW_LINE>String canary = Utilities.generateCanary() + ".jpg";<NEW_LINE>byte[] setPoison200Req = injector.getInsertionPoint().buildRequest(Utilities.helpers.<MASK><NEW_LINE>setPoison200Req = Utilities.appendT...
stringToBytes(addStatusPayload(param)));
940,064
private void convert(Path input, Path target, int m, int q, int z, boolean lossless) throws IOException {<NEW_LINE>Path stdout = Files.createTempFile("stdout", "webp");<NEW_LINE>List<String> commands = new ArrayList<>();<NEW_LINE>commands.add(binary.toAbsolutePath().toString());<NEW_LINE>if (m >= 0) {<NEW_LINE>commands...
IOException(error.toString());
344,272
public void doSetup() {<NEW_LINE>String path = System.getProperty("spmv.matrix", "/bcsstk32.mtx");<NEW_LINE>matrix = SparseMatrixUtils.loadMatrixF(uk.ac.manchester.tornado.benchmarks.spmv.Benchmark<MASK><NEW_LINE>v = new float[matrix.size];<NEW_LINE>y = new float[matrix.size];<NEW_LINE>initData(v);<NEW_LINE>//<NEW_LINE...
.class.getResourceAsStream(path));
474,004
protected void configureAxis(Axis axis, JRFont labelFont, Color labelColor, JRFont tickLabelFont, Color tickLabelColor, String tickLabelMask, Boolean verticalTickLabels, Paint lineColor, boolean isRangeAxis, Comparable<?> axisMinValue, Comparable<?> axisMaxValue) throws JRException {<NEW_LINE>Boolean axisVisible = (Boo...
isRangeAxis, timePeriodUnit, axisMinValue, axisMaxValue);
1,597,159
private Composite buildHelp(Composite rhs) {<NEW_LINE>boolean public_chat = !chat.isPrivateChat();<NEW_LINE>boolean sharing_view = chat.getViewType() == BuddyPluginBeta.VIEW_TYPE_SHARING;<NEW_LINE>boolean can_popout = shell == null && public_chat;<NEW_LINE>Composite top_right = new Composite(rhs, SWT.NONE);<NEW_LINE>Gr...
= new GridData(GridData.FILL_HORIZONTAL);
260,047
private void requestMapMatched(Feature feature) {<NEW_LINE>List<Point> points = ((LineString) Objects.requireNonNull(feature.geometry<MASK><NEW_LINE>try {<NEW_LINE>// Setup the request using a client.<NEW_LINE>MapboxMapMatching client = MapboxMapMatching.builder().accessToken(Objects.requireNonNull(Mapbox.getAccessToke...
())).coordinates();
1,631,753
public void logHyperparameter(LogHyperparameter request, StreamObserver<LogHyperparameter.Response> responseObserver) {<NEW_LINE>try {<NEW_LINE>final var response = futureExperimentRunDAO.logHyperparameters(LogHyperparameters.newBuilder().setId(request.getId()).addHyperparameters(request.getHyperparameter()).build()).t...
).build(), executor);
483,377
protected void validate(final IJdbcConnection connection, final String query, final String username, final String password, final IPolicyContext context, final JDBCIdentitySource config, final IAsyncResultHandler<Boolean> handler) {<NEW_LINE>IAsyncResultHandler<IJdbcResultSet> queryHandler = new IAsyncResultHandler<IJd...
IJdbcResultSet resultSet = result.getResult();
360,130
public TypeValue deserialise(final byte[] bytes) throws SerialisationException {<NEW_LINE>int lastDelimiter = 0;<NEW_LINE>TypeValue typeValue = new TypeValue();<NEW_LINE>for (int i = 0; i < bytes.length; i++) {<NEW_LINE>if (bytes[i] == ByteArrayEscapeUtils.DELIMITER) {<NEW_LINE>if (i > 0) {<NEW_LINE>try {<NEW_LINE>type...
throw new SerialisationException("Failed to deserialise the Type from TypeValue Object", e);
962,145
protected XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>final boolean valuesAsString = (percentilesAsString.isEmpty() == false);<NEW_LINE>if (keyed) {<NEW_LINE>builder.startObject(CommonFields.VALUES.getPreferredName());<NEW_LINE>for (Map.Entry<Double, Double> perc...
), percentile.getValue());
327,986
protected TreeViewer createOutlineTreeViewer(Composite composite) {<NEW_LINE>Tree treeForViewer = new Tree(composite, SWT.BORDER);<NEW_LINE>treeForViewer.setFont(composite.getFont());<NEW_LINE>GridData data = new GridData(GridData.FILL_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL);<NEW_LINE>data.widthHint = 185;<NEW_LINE>...
setContentProvider(new PaletteTreeProvider(viewer));
398,114
public Response<Void> deleteByIdWithResponse(String id, Context context) {<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 val...
Utils.getValueFromIdByName(id, "integrationAccounts");
1,267,261
protected IntermediateResultsBlock mergeResults() throws Exception {<NEW_LINE>long numRowsCollected = 0;<NEW_LINE>int numOperatorsFinished = 0;<NEW_LINE>long endTimeMs = _queryContext.getEndTimeMs();<NEW_LINE>while (numRowsCollected < _limit && numOperatorsFinished < _numOperators) {<NEW_LINE>IntermediateResultsBlock r...
LOGGER.error("Timed out while polling results block (query: {})", _queryContext);
1,734,820
public void handleResponse(@NonNull PromoCityGallery promo) {<NEW_LINE>PromoCityGallery.Item[] items = promo.getItems();<NEW_LINE>if (items.length <= 0)<NEW_LINE>return;<NEW_LINE>UiUtils.show(mPlacePageView, R.id.catalog_promo_container, R.id.promo_poi_description_container, R.id.promo_poi_description_divider, R.id.pro...
findViewById(R.id.place_single_bookmark_subtitle);
1,768,422
private boolean prepare(Camera camera) {<NEW_LINE>mCamera = camera;<NEW_LINE>mMediaRecorder = new MediaRecorder();<NEW_LINE>mCamera.unlock();<NEW_LINE>mMediaRecorder.setCamera(mCamera);<NEW_LINE>mMediaRecorder.setPreviewDisplay(mHolder.getSurface());<NEW_LINE>mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.DEFA...
setVideoSource(MediaRecorder.VideoSource.DEFAULT);
1,212,330
public ReadableShoppingCart removeShoppingCartItem(String cartCode, Long productId, MerchantStore merchant, Language language, boolean returnCart) throws Exception {<NEW_LINE>Validate.notNull(cartCode, "Shopping cart code must not be null");<NEW_LINE>Validate.notNull(productId, "product id must not be null");<NEW_LINE>...
Validate.notNull(merchant, "MerchantStore must not be null");
1,241,870
public static DescribeForwardTableEntriesResponse unmarshall(DescribeForwardTableEntriesResponse describeForwardTableEntriesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeForwardTableEntriesResponse.setRequestId(_ctx.stringValue("DescribeForwardTableEntriesResponse.RequestId"));<NEW_LINE>describeForwardTableEnt...
= new ArrayList<ForwardTableEntry>();
1,228,277
public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {<NEW_LINE>if (request.getRestApiVersion() == RestApiVersion.V_7 && request.hasParam(INCLUDE_TYPE_NAME_PARAMETER)) {<NEW_LINE>deprecationLogger.compatibleCritical("get_index_template_include_type_name", TYPE...
GetIndexTemplatesRequest getIndexTemplatesRequest = new GetIndexTemplatesRequest(names);
523,881
public void serialize(ByteBuf buf) {<NEW_LINE>super.serialize(buf);<NEW_LINE>long startCol = splitContext.getPartKey().getStartCol();<NEW_LINE>if (isUseIntKey()) {<NEW_LINE>if (splitContext.isEnableFilter()) {<NEW_LINE>long filterValue = (long) splitContext.getFilterThreshold();<NEW_LINE>int position = buf.writerIndex(...
int position = buf.writerIndex();
1,085,961
public CaseInstanceResponse createCaseInstanceResponse(CaseInstance caseInstance, RestUrlBuilder urlBuilder) {<NEW_LINE>CaseInstanceResponse result = new CaseInstanceResponse();<NEW_LINE>result.setBusinessKey(caseInstance.getBusinessKey());<NEW_LINE>result.setBusinessStatus(caseInstance.getBusinessStatus());<NEW_LINE>r...
setCallbackType(caseInstance.getCallbackType());
1,728,642
public GatewayFilter apply(CacheRequestBodyGatewayFilterFactory.Config config) {<NEW_LINE>return new GatewayFilter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {<NEW_LINE>ServerHttpRequest request = exchange.getRequest();<NEW_LINE>URI requestUr...
Assert.notNull(cachedRequest, "cache request shouldn't be null");
1,498,331
private // private static final int GLOBALVAR_VISIBILITY = 6;<NEW_LINE>void createGlobalVariable(RecordBuffer buffer) {<NEW_LINE>long name = readNameFromStrTab(buffer);<NEW_LINE>final long typeField = buffer.read();<NEW_LINE>final long flagField = buffer.read();<NEW_LINE>Type type = types.get(typeField);<NEW_LINE>if ((...
).get(sectionIndex - 1);
252,654
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "select case intPrimitive " + "when 1 then null " + "when 2 then 1.0d " + "when 3 then null " + "else 2 " + "end as p1 from SupportBean#length(100)";<NEW_LINE>EPStatementObjectModel model = new EPStatementObjectModel();<NEW_LINE>model.setSelectClause(Se...
EPTypePremade.DOUBLEBOXED.getEPType());
1,821,800
OrientationHelper createVerticalOrientationHelper() {<NEW_LINE>return new OrientationHelper() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int getEndAfterPadding() {<NEW_LINE>return getHeight() - getPaddingBottom() + mRecyclerView.mState.mCustomHeaderHeight;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public voi...
getDecoratedTop(view) - params.topMargin;
1,611,525
public boolean visit(J9ObjectPointer object, VoidPointer address) {<NEW_LINE>try {<NEW_LINE>GCHeapRegionDescriptor objectRegion = heapRegionManager.regionDescriptorForAddress(object);<NEW_LINE>MM_HeapRegionDescriptorVLHGCPointer vlhgcObjectRegion = MM_HeapRegionDescriptorVLHGCPointer.cast(objectRegion.getHeapRegionDesc...
classIterator = GCClassIterator.fromJ9Class(clazz);
1,800,247
public void writeChunk(Request playRequest, Response playResponse, ChannelHandlerContext ctx, HttpRequest nettyRequest, Object chunk) {<NEW_LINE>try {<NEW_LINE>if (playResponse.direct == null) {<NEW_LINE><MASK><NEW_LINE>playResponse.direct = new LazyChunkedInput();<NEW_LINE>copyResponse(ctx, playRequest, playResponse, ...
playResponse.setHeader("Transfer-Encoding", "chunked");
1,629,838
public static void convolve(Kernel2D_S32 kernel, GrayU8 input, GrayI8 output) {<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int width = input.getWidth();<NEW_LINE>final int height = input.getHeight();<NEW_LINE>for (int y = 0; y < height; y++) {<NEW_LINE>for (int x = 0; x < width; x++) {<NEW_LINE>int ...
get(j, i) * v;
937,343
private void computeAverageNumberOfComparesInSearch(int treeSize, List<Long> numberOfComparesSearchHits, List<Long> numberOfComparesSearchMisses) {<NEW_LINE>int numberOfSearches = 20;<NEW_LINE>int maxValue = 1000000;<NEW_LINE>BinarySearchTreeCompareCount<Integer, Integer> binarySearchTree = new BinarySearchTreeCompareC...
randomValue = StdRandom.uniform(maxValue);
464,067
protected void consumeTypeImportOnDemandDeclarationName() {<NEW_LINE>// TypeImportOnDemandDeclarationName ::= 'import' Name '.' '*'<NEW_LINE>ImportReference impt;<NEW_LINE>int length;<NEW_LINE>char[][] tokens = new char[length = this.identifierLengthStack[this.identifierLengthPtr--]][];<NEW_LINE>this.identifierPtr -= l...
] positions = new long[length];
878,738
private void saveFile(boolean sendToPrinter) {<NEW_LINE>// grab the focus and force what the user is editing to be saved<NEW_LINE>File f;<NEW_LINE>// see where the document is to be sent<NEW_LINE>if (sendToPrinter) {<NEW_LINE>if (owner.fileType.compareToIgnoreCase("pdf") != 0) {<NEW_LINE>JOptionPane.showMessageDialog(t...
f, "dotmarker." + owner.fileType);
67,178
protected List findAll() throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = openSession();<NEW_LINE>StringBuffer query = new StringBuffer();<NEW_LINE>query.append("FROM Address IN CLASS com.liferay.portal.ejb.AddressHBM ");<NEW_LINE>query.append("ORDER BY ");<NEW_LINE>query.appe...
("className ASC").append(", ");
627,765
// Delete Statement<NEW_LINE>@Override<NEW_LINE>public Operator visitDeleteStatement(IoTDBSqlParser.DeleteStatementContext ctx) {<NEW_LINE>DeleteDataOperator deleteDataOp = new DeleteDataOperator(SQLConstant.TOK_DELETE);<NEW_LINE>List<IoTDBSqlParser.PrefixPathContext> prefixPaths = ctx.prefixPath();<NEW_LINE>for (IoTDB...
parseWhereClause(ctx.whereClause());
921,845
public static DescribeClientVersionResponse unmarshall(DescribeClientVersionResponse describeClientVersionResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeClientVersionResponse.setRequestId(_ctx.stringValue("DescribeClientVersionResponse.RequestId"));<NEW_LINE>describeClientVersionResponse.setSuccess(_ctx.boolean...
(_ctx.stringValue("DescribeClientVersionResponse.Message"));
221,494
public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {<NEW_LINE>if (request.getRestApiVersion() == RestApiVersion.V_7 && request.param("type") != null) {<NEW_LINE>request.param("type");<NEW_LINE>}<NEW_LINE>MultiGetRequest multiGetRequest = new MultiGetRequest(...
, multiGetRequest.refresh()));
1,783,332
protected List<ServiceAndProperties> createServices() {<NEW_LINE>Persistence persistence = this.dbPersistence.get();<NEW_LINE>if (hasRateLimitingEnabled()) {<NEW_LINE><MASK><NEW_LINE>if (rateLimiter == null) {<NEW_LINE>throw new RuntimeException(String.format("Could not find rate limiter service with id '%s'", RATE_LIM...
RateLimitingManager rateLimiter = rateLimitingManager.get();
363,161
public Map<String, Object> encode() {<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>Optional.ofNullable(width).ifPresent(v -> toReturn.put("width", v));<NEW_LINE>Optional.ofNullable(height).ifPresent(v -> toReturn.put("height", v));<NEW_LINE>Optional.ofNullable(pressure).ifPresent(v -> toReturn.put("pressure", v));<NEW_...
toReturn = new HashMap<>();
1,718,222
protected String createGameStartMessage() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("<br/><b>Match score:</b><br/>");<NEW_LINE>for (MatchPlayer mp : this.getPlayers()) {<NEW_LINE>sb.append(" ").append(mp.getPlayer().getLogName());<NEW_LINE>sb.append(" - ").append(mp.getWins()).append(mp.ge...
(" Planechase mode activated").append("<br/>");
1,657,108
public void internalReceiveCommand(String itemName, Command command) {<NEW_LINE>logger.trace("internalReceiveCommand({},{}) called.", itemName, command.toString());<NEW_LINE>if (this.eventPublisher == null) {<NEW_LINE>logger.warn("internalReceiveCommand(): eventPublisher is NULL. Should NEVER occur.");<NEW_LINE>return;...
this.bindingProvider.getConfigForItemName(itemName);
1,542,054
private HttpURLConnection connectWithIdentities(final List<Identity> identities, final URI uri, final String method, final byte[] entity, final Map<String, List<String>> headers) throws IOException, HeliosException {<NEW_LINE>if (identities.isEmpty()) {<NEW_LINE>throw new IllegalArgumentException("identities cannot be ...
Identity identity = queue.poll();
557,953
public void prompt(final String hostname, final List<X509Certificate> certificates) throws ConnectionCanceledException {<NEW_LINE>final SecPolicyRef policyRef = SecurityFunctions.<MASK><NEW_LINE>final PointerByReference reference = new PointerByReference();<NEW_LINE>SecurityFunctions.library.SecTrustCreateWithCertifica...
library.SecPolicyCreateSSL(true, hostname);
1,141,436
public ImmutableMap<Integer, ImmutableIntList> addOnJoinFieldRefCounts(List<RelNode> multiJoinInputs, int nTotalFields, RexNode joinCondition, List<int[]> origJoinFieldRefCounts) {<NEW_LINE>// count the input references in the join condition<NEW_LINE>int[<MASK><NEW_LINE>joinCondition.accept(new InputReferenceCounter(jo...
] joinCondRefCounts = new int[nTotalFields];
237,781
protected Composite createDialogArea(Composite parent) {<NEW_LINE>Composite messageGroup = super.createDialogArea(parent);<NEW_LINE>GridData gd = new GridData(GridData.FILL_BOTH);<NEW_LINE>gd.minimumWidth = 400;<NEW_LINE>messageGroup.setLayoutData(gd);<NEW_LINE>UIServiceSQL serviceSQL = DBWorkbench.getService(UIService...
saveSettings, useDeleteCascade, this::populateSQL);
732,580
public double[] transformToDoubleValuesSV(ProjectionBlock projectionBlock) {<NEW_LINE><MASK><NEW_LINE>if (_doubleValuesSV == null || _doubleValuesSV.length < length) {<NEW_LINE>_doubleValuesSV = new double[length];<NEW_LINE>}<NEW_LINE>double[] leftValues = _leftTransformFunction.transformToDoubleValuesSV(projectionBloc...
int length = projectionBlock.getNumDocs();
1,395,782
private void assertConsistency(boolean caseSensitive, @Nonnull Object details) {<NEW_LINE>if (!CHECK || ApplicationInfoImpl.isInPerformanceTest())<NEW_LINE>return;<NEW_LINE>int[] childrenIds = myData.myChildrenIds;<NEW_LINE>if (childrenIds.length == 0)<NEW_LINE>return;<NEW_LINE>CharSequence prevName = mySegment.vfsData...
.getNameByFileId(childrenIds[0]);
182,937
public static DescribeAntChainTransactionV2Response unmarshall(DescribeAntChainTransactionV2Response describeAntChainTransactionV2Response, UnmarshallerContext _ctx) {<NEW_LINE>describeAntChainTransactionV2Response.setRequestId(_ctx.stringValue("DescribeAntChainTransactionV2Response.RequestId"));<NEW_LINE>describeAntCh...
(_ctx.stringValue("DescribeAntChainTransactionV2Response.Result.Hash"));
1,800,940
public AwsApiGatewayEndpointConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsApiGatewayEndpointConfiguration awsApiGatewayEndpointConfiguration = new AwsApiGatewayEndpointConfiguration();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
int originalDepth = context.getCurrentDepth();
1,367,185
public String charge(final ICalloutField calloutField) {<NEW_LINE>final de.metas.adempiere.model.I_C_InvoiceLine invoiceLine = calloutField.getModel(de.metas.adempiere.model.I_C_InvoiceLine.class);<NEW_LINE>final int chargeID = invoiceLine.getC_Charge_ID();<NEW_LINE>if (chargeID <= 0) {<NEW_LINE>return NO_ERROR;<NEW_LI...
log.error(sql + e);
1,403,952
public static KeyRange transformRange(Token leftKeyExclusive, Token rightKeyInclusive) {<NEW_LINE>if (!(leftKeyExclusive instanceof BytesToken))<NEW_LINE>throw new UnsupportedOperationException();<NEW_LINE>// if left part is BytesToken, right part should be too, otherwise there is no sense in the ring<NEW_LINE>assert r...
[j][i] = b;
142,817
public static <T1, T2, T3> TripleDistribution<T1, T2, T3> constructFromMap(Map<CachedTriple<T1, T2, T3>, MutableLong> jointCount) {<NEW_LINE>Map<CachedPair<T1, T2>, MutableLong> abCount = new HashMap<>(DEFAULT_MAP_SIZE);<NEW_LINE>Map<CachedPair<T1, T3>, MutableLong> acCount = new HashMap<>(DEFAULT_MAP_SIZE);<NEW_LINE>M...
bcCount, aCount, bCount, cCount);
1,414,361
public void testTransfer(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>String jndiName = request.getParameter("jndiName");<NEW_LINE>Long maxTaskId = request.getParameter("maxTaskId") == null ? null : Long.parseLong(request.getParameter("maxTaskId"));<NEW_LINE>String oldExecutorId...
("Incorrect or missing host name in " + deepToString(oldPartitions));
513,026
public void invalidate(@NonNull final DocumentIdsSelection rowIds) {<NEW_LINE>final ArrayList<MaterialCockpitRow> rowsToInvalidate = extractRows(rowIds);<NEW_LINE>final Map<LocalDate, CreateRowsRequestBuilder> builders = new HashMap<>();<NEW_LINE>for (final MaterialCockpitRow row : rowsToInvalidate) {<NEW_LINE>final Cr...
newRows = new ArrayList<>();
445,803
private static String detectDefaultWebBrowser() {<NEW_LINE>// XXX hotfix for #233047<NEW_LINE>// assert !EventQueue.isDispatchThread();<NEW_LINE>// #233145<NEW_LINE>if (!XDG_SETTINGS_AVAILABLE) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>OutputProcessorFactory outputProcessorFactory = new OutputProcessorFactory();<NEW_...
Level.INFO, null, ex);
233,541
public static boolean evaluateLogic(Evaluatee source, String logic) {<NEW_LINE>// Conditional<NEW_LINE>StringTokenizer st = new StringTokenizer(logic.trim(), "&|", true);<NEW_LINE>int it = st.countTokens();<NEW_LINE>if (// only uneven arguments<NEW_LINE>((it / 2) - ((it + 1) / 2)) == 0) {<NEW_LINE>s_log.severe("Logic d...
concat(st.nextToken());
182,353
private void storeResult(final String key, final int ttl, final QueryResult queryResult) {<NEW_LINE>if (ttl <= 0) {<NEW_LINE>log.warn("{}: not storing due to low ttl ({}s)", key, ttl);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final CachedResult cachedResult = new CachedResult(queryResult.getRange(), queryResult.getGroups()...
final ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
507,830
final DeleteResiliencyPolicyResult executeDeleteResiliencyPolicy(DeleteResiliencyPolicyRequest deleteResiliencyPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteResiliencyPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.SERVICE_ID, "resiliencehub");
1,285,510
private void displayVerificationWarningDialog(final Contact contact, final Invite invite) {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(this);<NEW_LINE>builder.setTitle(R.string.verify_omemo_keys);<NEW_LINE>View view = getLayoutInflater().inflate(R.layout.dialog_verify_fingerprints, null);<NEW_LINE>f...
StartConversationActivity.this.finish());
911,077
public AuthorizationRequest updateAfterApproval(AuthorizationRequest authorizationRequest, Authentication userAuthentication) {<NEW_LINE>// Get the approved scopes<NEW_LINE>Set<String> requestedScopes = authorizationRequest.getScope();<NEW_LINE>Set<String> approvedScopes = new HashSet<String>();<NEW_LINE>Set<Approval> ...
value = approvalParameters.get(approvalParameter);
245,151
final DeleteMissionProfileResult executeDeleteMissionProfile(DeleteMissionProfileRequest deleteMissionProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteMissionProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,825,812
public /* synchronized */<NEW_LINE>void addTypeAnnotation(String annotation) {<NEW_LINE>checkForLock();<NEW_LINE>if (annotation == null || annotation.length() < 1) {<NEW_LINE>throw new IllegalArgumentException("a user type annotation must be a non-empty string");<NEW_LINE>}<NEW_LINE>// we don't add duplicate annotation...
null) ? 0 : _annotations.length;
721,730
private static boolean isInsideStringLiteral(@Nonnull Editor editor, @Nonnull PsiFile file) {<NEW_LINE>int offset = editor<MASK><NEW_LINE>PsiElement element = file.findElementAt(offset);<NEW_LINE>if (element == null)<NEW_LINE>return false;<NEW_LINE>final ParserDefinition definition = LanguageParserDefinitions.INSTANCE....
.getCaretModel().getOffset();
1,357,776
protected void copyColumnProperties(Column<E> column, Column<E> existingColumn) {<NEW_LINE>column.setCaption(existingColumn.getCaption());<NEW_LINE>column.setVisible(existingColumn.isVisible());<NEW_LINE>column.setCollapsed(existingColumn.isCollapsed());<NEW_LINE>column.setCollapsible(existingColumn.isCollapsible());<N...
setSortable(existingColumn.isSortable());
1,394,621
private FutureGroup<Boolean> internalDeleteRange(final byte[] startKey, final byte[] endKey, final int retriesLeft, final Throwable lastCause) {<NEW_LINE>final List<Region> regionList = this.pdClient.findRegionsByKeyRange(startKey, endKey, ApiExceptionHelper.isInvalidEpoch(lastCause));<NEW_LINE>final List<CompletableFu...
newArrayListWithCapacity(regionList.size());
1,319,181
public static void deleteKeystoreAlias(String certId, String keystorePath, String keystoreName, String keystorePassword) {<NEW_LINE>try {<NEW_LINE>KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType());<NEW_LINE>FileInputStream fis = new FileInputStream(keystorePath + "/" + keystoreName);<NEW_LINE>keystore...
fis, keystorePassword.toCharArray());
1,337,855
public PageInfo<? extends StreamSink> listByCondition(SinkPageRequest request) {<NEW_LINE>Preconditions.checkNotNull(request.getInlongGroupId(), <MASK><NEW_LINE>PageHelper.startPage(request.getPageNum(), request.getPageSize());<NEW_LINE>OrderFieldEnum.checkOrderField(request);<NEW_LINE>OrderTypeEnum.checkOrderType(requ...
ErrorCodeEnum.GROUP_ID_IS_EMPTY.getMessage());
241,620
public Mono<Response<DiagnosticSettingsResourceInner>> createOrUpdateWithResponseAsync(String resourceUri, String name, DiagnosticSettingsResourceInner parameters) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required...
error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
475,641
// GEN-LAST:event_txtProxyPortkeyTyped<NEW_LINE>private void findPublicServerActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_jButton1ActionPerformed<NEW_LINE>BufferedReader in = null;<NEW_LINE>try {<NEW_LINE>URL serverListURL = new URL("http://XMage.de/files/server-list.txt");<NEW_LINE>in ...
(serverListURL.openStream()));
883,622
public void onPropertyChanged(String name, Object value) {<NEW_LINE>if (opening || opened) {<NEW_LINE>if (TiC.PROPERTY_WINDOW_PIXEL_FORMAT.equals(name)) {<NEW_LINE>getMainHandler().obtainMessage(MSG_SET_PIXEL_FORMAT, value).sendToTarget();<NEW_LINE>} else if (TiC.PROPERTY_TITLE.equals(name)) {<NEW_LINE>getMainHandler()...
Log.w(TAG, "There is no ActionBar available for this Window.");
1,110,826
public List<OpenIncident> readAllOpenIncidents() throws Exception {<NEW_LINE>BoundStatement boundStatement = readAllOpenIncidentsPS.bind();<NEW_LINE>ResultSet results = session.read(boundStatement);<NEW_LINE>List<OpenIncident> openIncidents = new ArrayList<>();<NEW_LINE>for (Row row : results) {<NEW_LINE>int i = 0;<NEW...
.getBytes(i++)));
1,246,254
protected void addSaveToolAction() {<NEW_LINE>DockingAction saveAction = new DockingAction("Save Tool", ToolConstants.TOOL_OWNER) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(ActionContext context) {<NEW_LINE>saveTool();<NEW_LINE>}<NEW_LINE>};<NEW_LINE>MenuData menuData = new MenuData(new String[...
, "Save Tool" }, null, "Tool");
1,275,907
private void initFields(ClassPool clp) {<NEW_LINE>// WeakReference<CtClassProxyFields> ref = fieldsMap.get(clp);<NEW_LINE>CtClassProxyFields f = null;<NEW_LINE>// if (f == null || (f = ref.get()) == null) {<NEW_LINE>// synchronized (fieldsMap) {<NEW_LINE>// ref = fieldsMap.get(clp);<NEW_LINE>// if (ref == null || (f = ...
Object.class.getName());
705,941
private MutablePropertyDefinition createProperty(final Class type, final PropertyKey key) {<NEW_LINE>// include all dynamic and CMIS-enabled keys in definition<NEW_LINE>if (key.isDynamic() || key.isCMISProperty()) {<NEW_LINE>// only include primitives here<NEW_LINE>final TypeDefinitionFactory factory = TypeDefinitionFa...
choices = new LinkedList<>();
161,386
private Method findMethod(String methodName, Object... args) {<NEW_LINE>Class<?>[] argTypes = null;<NEW_LINE>if (args != null && args.length > 0) {<NEW_LINE>argTypes = new Class[args.length];<NEW_LINE>int index = 0;<NEW_LINE>for (Object arg : args) {<NEW_LINE>argTypes[index++] = arg != null <MASK><NEW_LINE>}<NEW_LINE>}...
? arg.getClass() : null;
1,359,196
public static void main(String[] args) {<NEW_LINE>data_row[] rows = { new data_row(1, 1.0, 1.0), new data_row(2, 2.0, 1.0, 2.0), new data_row(3, 3.0, 1.0, 2.0, 3.0) };<NEW_LINE>Table[] table = new Table[1];<NEW_LINE>THROW_ON_FAILURE(VectorToColumnarTable(rows, table));<NEW_LINE>data_row[][] expected_rows = new data_row...
length == expected_rows[0].length;
1,364,282
public byte[] encodeValue(Object value, MemBuffer buf, Settings settings, int length) throws DataTypeEncodeException {<NEW_LINE>try {<NEW_LINE>int len = getLength();<NEW_LINE>if (length != -1 && length != len) {<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>FloatFormat floatFormat = FloatFormatFactory.getFloatFormat(le...
DataTypeEncodeException("Length mismatch", value, this);
60,725
private void handleNewTab(ScriptEvent event) {<NEW_LINE>switch(event.getOp()) {<NEW_LINE>case NewTab.NEW_TAB:<NEW_LINE>chatboxPanelManager.openTextInput("Tag name").addCharValidator(FILTERED_CHARS).onDone((Consumer<String>) (tagName) -> clientThread.invoke(() -> {<NEW_LINE>if (!Strings.isNullOrEmpty(tagName)) {<NEW_LIN...
tabManager.setIcon(name, icon);
1,029,075
final ModifyCacheParameterGroupResult executeModifyCacheParameterGroup(ModifyCacheParameterGroupRequest modifyCacheParameterGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyCacheParameterGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
222,829
private long parseSize(String string) {<NEW_LINE>// See https://github.com/qbittorrent/qBittorrent/wiki<NEW_LINE>if (string.equals("Unknown"))<NEW_LINE>return -1;<NEW_LINE>// Sizes are given in "1,023.3 MiB"-like string format<NEW_LINE>String[] <MASK><NEW_LINE>double number;<NEW_LINE>try {<NEW_LINE>number = Double.pars...
parts = string.split(" ");
754,091
private void saveBPartnerLocation(@NonNull final BPartnerLocationSaveRequest request) {<NEW_LINE>final BPartnerLocation partnerLocation = request.getLocation();<NEW_LINE>final BPartnerLocationId partnerLocationId = partnerLocation.getId();<NEW_LINE>final OrgId orgId = request.getOrgId();<NEW_LINE>final boolean validate...
loadOrNew(partnerLocationId, I_C_BPartner_Location.class);
1,028,063
private static CodegenMethod sortWGroupKeysInternalCodegen(OrderByProcessorForgeImpl forge, CodegenClassScope classScope, CodegenNamedMethods namedMethods) {<NEW_LINE>CodegenMethod createSortProperties = <MASK><NEW_LINE>CodegenExpression comparator = classScope.addOrGetFieldSharable(forge.getComparator());<NEW_LINE>Con...
createSortPropertiesCodegen(forge, classScope, namedMethods);
1,475,966
public void initChannel(SocketChannel ch) {<NEW_LINE>ChannelPipeline p = ch.pipeline();<NEW_LINE>// Add SslHandler to the channel's pipeline, if TLS is enabled.<NEW_LINE>if (enableTls) {<NEW_LINE>SslHandler sslHandler = sslCtx.get().<MASK><NEW_LINE>// We add a name to SSL/TLS handler, unlike the other handlers added la...
newHandler(ch.alloc());
199,647
public void initializeDefaultPreferences() {<NEW_LINE>IEclipsePreferences prefs = DefaultScope.INSTANCE.getNode(CommonEditorPlugin.PLUGIN_ID);<NEW_LINE>prefs.putBoolean(IPreferenceConstants.ENABLE_CHARACTER_PAIR_COLORING, true);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>prefs.put(IPreferenceConstants.CHARACTER_PAIR_COLOR, "128,...
put(ICorePreferenceConstants.TASK_TAG_NAMES, "TODO,FIXME,XXX");
1,183,679
final DeleteInterconnectResult executeDeleteInterconnect(DeleteInterconnectRequest deleteInterconnectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteInterconnectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
385,176
private void updateChart(String totalSpace, List<PieEntry> entries) {<NEW_LINE>boolean isDarkTheme = appTheme.getMaterialDialogTheme(context) == Theme.DARK;<NEW_LINE>PieDataSet set = new PieDataSet(entries, null);<NEW_LINE>set.setColors(COLORS);<NEW_LINE>set.setXValuePosition(PieDataSet.ValuePosition.OUTSIDE_SLICE);<NE...
new GeneralDialogCreation.SizeFormatter(context));
808,394
// GEN-LAST:event_browseButtonActionPerformed<NEW_LINE>private void searchButtonActionPerformed(ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_searchButtonActionPerformed<NEW_LINE>String zendScript = UiUtils.SearchWindow.search(new UiUtils.SearchWindow.SearchWindowSupport() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>publi...
ZendScript.SCRIPT_NAME, ZendScript.SCRIPT_NAME_LONG);
420,066
private void buildResourceVector() {<NEW_LINE>HashMap resources = new HashMap();<NEW_LINE>HashMap paths = new HashMap();<NEW_LINE>IType[] types = null;<NEW_LINE>if (this.subTypes != null) {<NEW_LINE>types = this.hierarchy.getAllSubtypes(this.focusType);<NEW_LINE>if (this.includeFocusType) {<NEW_LINE>int len = types.len...
this.resourcePaths.add(resourcePath);
644,772
public static DistinctWriter createDeleteGsiWriter(TableModify parent, RelOptTable targetTable, Integer primaryTableIndex, TableMeta gsiMeta, ExecutionContext ec) {<NEW_LINE>boolean isBroadcast = TableTopologyUtil.isBroadcast(gsiMeta);<NEW_LINE>boolean isSingle = TableTopologyUtil.isSingle(gsiMeta);<NEW_LINE>if (isBroa...
), null, deleteWriter, gsiMeta);
456,143
public static void main(String[] arg) {<NEW_LINE>System.setProperty("fst.unsafe", "true");<NEW_LINE>Unsafe un = FSTUtil.getUnsafe();<NEW_LINE>FSTConfiguration conf = FSTConfiguration.createDefaultConfiguration();<NEW_LINE>FSTClazzInfo cl = <MASK><NEW_LINE>Sample test = new Sample();<NEW_LINE>System.out.println("fioff "...
conf.getClassInfo(Sample.class);
1,808,134
private List<SongPlayCountBean> topFiveSongs(final String key, final String storeName) {<NEW_LINE>final ReadOnlyKeyValueStore<String, KafkaMusicExample.TopFiveSongs> topFiveStore = streams.store(fromNameAndType(storeName, QueryableStoreTypes.keyValueStore()));<NEW_LINE>// Get the value from the store<NEW_LINE>final Kaf...
).get(SongBean.class);
668,342
public static boolean saveCalibrationData(ProfilingSessionStatus status) {<NEW_LINE>try {<NEW_LINE>FileOutputStream foStream = new FileOutputStream(getCalibrationDataFileName(status.targetJDKVersionString));<NEW_LINE>ObjectOutputStream ooStream = new ObjectOutputStream(foStream);<NEW_LINE>ooStream.writeObject(status.me...
ooStream.writeObject(status.methodEntryExitOuterTime);
1,122,798
public synchronized void addTLCOutputSource(ITLCOutputSource source) {<NEW_LINE>Assert.isNotNull(source);<NEW_LINE>// TLCUIActivator.getDefault().logDebug("adding source " + source.getSourceName() + " " + source.getSourcePrio());<NEW_LINE>ITLCOutputSource existingSource = this.sources.get(source.getModel());<NEW_LINE>/...
.removeTLCOutputListener(registered[i]);
1,316,815
public void initialize(ConfigurableWebApplicationContext applicationContext) {<NEW_LINE>ServletContext servletContext = applicationContext.getServletContext();<NEW_LINE>final String contextPath = servletContext != null ? servletContext.getContextPath() : "/";<NEW_LINE>if (servletContext != null) {<NEW_LINE>HttpSessionE...
resources = new ArrayList<>();
819,668
public void success(AttachNicResponse ret) {<NEW_LINE>if (!ret.isSuccess()) {<NEW_LINE>if (ret.getError().contains("Device or resource busy")) {<NEW_LINE>reply.setError(operr("failed to attach nic[uuid:%s, vm:%s] on kvm host[uuid:%s, ip:%s]," + "because %s, please try again or delete device[%s] by yourself", msg.getNic...
().getInternalName()));
714,775
private void createBugDialog(@NonNull MapActivity mapActivity, final boolean offline, String text, int titleTextId, int posButtonTextId, final Action action, final OpenStreetNote bug, OsmNotesPoint point) {<NEW_LINE>if (mapActivity.isFinishing()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (offline) {<NEW_LINE>mapActivit...
, point, getHandleBugListener(mapActivity));
1,683,652
public String encode() throws IOException {<NEW_LINE>try (FastStringWriter fsw = new FastStringWriter()) {<NEW_LINE>ChartUtils.writeDataValue(fsw, "tension", this.tension, false);<NEW_LINE>ChartUtils.writeDataValue(fsw, "backgroundColor", this.backgroundColor, true);<NEW_LINE>ChartUtils.writeDataValue(fsw, "borderWidth...
"borderDashOffset", this.borderDashOffset, true);
33,662
public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>// taking input array 1<NEW_LINE>System.out.println("Enter size of first array:");<NEW_LINE><MASK><NEW_LINE>int[] arr1 = new int[size1];<NEW_LINE>System.out.println("Enter array elements:");<NEW_LINE>for (int i = 0; i < size...
int size1 = sc.nextInt();