idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
605,696 | public static boolean noCompletion(JTextComponent target) {<NEW_LINE>if (target == null || target.getCaret() == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int offset = target.getCaret().getDot();<NEW_LINE>if (offset < 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// no completion inside CDATA or comment secti... | th = TokenHierarchy.get(document); |
1,849,075 | final DeleteStreamResult executeDeleteStream(DeleteStreamRequest deleteStreamRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteStreamRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,273,335 | private void startVideoCompression() {<NEW_LINE>List<SyncRecord> fullList = dbH.findVideoSyncRecordsByState(STATUS_TO_COMPRESS);<NEW_LINE>if (megaApi.getNumPendingUploads() <= 0) {<NEW_LINE>megaApi.resetTotalUploads();<NEW_LINE>}<NEW_LINE>totalUploaded = 0;<NEW_LINE>totalToUpload = 0;<NEW_LINE>mVideoCompressor = new Vi... | String size = prefs.getChargingOnSize(); |
1,296,554 | public void commitAsync(Map<TopicPartition, OffsetAndMetadata> offsets, OffsetCommitCallback callback) {<NEW_LINE>if (LOGGER.isLoggable(Level.FINEST)) {<NEW_LINE>LOGGER.logp(Level.FINEST, CLAZZ, "commitAsync", "Offsets: {0}", offsets);<NEW_LINE>}<NEW_LINE>Map<org.apache.kafka.common.TopicPartition, org.apache.kafka.cli... | callback.onComplete(offsetsx, e); |
309,987 | private void configureConfigurations(final Project project) {<NEW_LINE>ConfigurationContainer configurations = project.getConfigurations();<NEW_LINE>((ProjectInternal) project).getInternalStatus().convention("integration");<NEW_LINE>final DeprecatableConfiguration archivesConfiguration = (DeprecatableConfiguration) con... | .ARCHIVES_CONFIGURATION).setDescription("Configuration for archive artifacts."); |
1,734,016 | private void flushConfig(List<Object> toSave) {<NEW_LINE>File configLocation = getConfigLocation();<NEW_LINE>if (!configLocation.exists()) {<NEW_LINE>if (!configLocation.mkdirs()) {<NEW_LINE>log.error(<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>for (Object so : toSave) {<NEW_LINE>DBPDriver driver = null;<NEW... | "Error creating variables storage location: " + configLocation.getAbsolutePath()); |
1,468,433 | private static HUEditorRowId fromJson(@NonNull final String json, final DocumentId documentId) {<NEW_LINE>//<NEW_LINE>// Split json to parts<NEW_LINE>final Iterator<String> partsIterator;<NEW_LINE>{<NEW_LINE>final List<String> parts = PARTS_SPLITTER.splitToList(json);<NEW_LINE>if (parts.isEmpty()) {<NEW_LINE>throw new ... | idParts = ID_SPLITTER.splitToList(idStrPart); |
1,518,264 | private SetStaticRouteAnswer execute(final SetStaticRouteCommand cmd) {<NEW_LINE>if (s_logger.isInfoEnabled()) {<NEW_LINE>s_logger.info("Executing resource SetStaticRouteCommand: " + s_gson.toJson(cmd));<NEW_LINE>}<NEW_LINE>boolean endResult = true;<NEW_LINE>final String controlIp = getRouterSshControlIp(cmd);<NEW_LINE... | "Executing script on domain router " + controlIp + ": /opt/cloud/bin/vpc_staticroute.sh " + args); |
1,051,314 | private static void runAssertionScriptReturningEvents(RegressionEnvironment env, boolean soda) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@name('type') @public create schema ItemEvent(id string)", path);<NEW_LINE>String script = "@name('script') @public create expression EventBea... | .getProperty(StatementProperty.STATEMENTTYPE)); |
785,329 | public void after(Object target, Object[] args, Object result, Throwable throwable) {<NEW_LINE>if (isDebug) {<NEW_LINE>logger.afterInterceptor(target, args);<NEW_LINE>}<NEW_LINE>final Trace trace = traceContext.currentTraceObject();<NEW_LINE>if (trace == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!validate(args))... | Interceptor.Chain) args[0]; |
400,899 | public org.python.Object __lt__(org.python.Object other) {<NEW_LINE>if (other instanceof org.python.types.Bytes) {<NEW_LINE>byte[] other_bytes = (byte[]) ((org.python.types.Bytes) other).value;<NEW_LINE>for (int i = 0; i < Math.min(this.value.length, other_bytes.length); i++) {<NEW_LINE>if (this.value[i] < other_bytes[... | .python.types.Bool.TRUE; |
176,348 | public ChatInfo generateChatInfo(SearchDataBean searchDataBean) {<NEW_LINE>ChatInfo chatInfo = new ChatInfo();<NEW_LINE>if (searchDataBean.isGroup()) {<NEW_LINE>chatInfo.setType(V2TIMConversation.V2TIM_GROUP);<NEW_LINE>chatInfo.setId(searchDataBean.getGroupID());<NEW_LINE>chatInfo.setGroupType(searchDataBean.getGroupTy... | String chatName = searchDataBean.getUserID(); |
1,782,341 | static char[] decode(byte[] ba, int off, int len) {<NEW_LINE>String csn = Charset.defaultCharset().name();<NEW_LINE>try {<NEW_LINE>// use charset name decode() variant which provides caching.<NEW_LINE>return decode(csn, ba, off, len);<NEW_LINE>} catch (UnsupportedEncodingException x) {<NEW_LINE>warnUnsupportedCharset(c... | "ISO-8859-1", ba, off, len); |
571,303 | private DDOrderLineToAllocate toDDOrderLineToAllocate(@NonNull final I_DD_OrderLine_Or_Alternative ddOrderLineOrAlt) {<NEW_LINE>final I_DD_OrderLine ddOrderLine;<NEW_LINE>final int ddOrderLineAlternativeId;<NEW_LINE>final AttributeSetInstanceId fromAsiId;<NEW_LINE>final AttributeSetInstanceId toAsiId;<NEW_LINE>if (Inte... | create(ddOrderLineOrAlt, I_DD_OrderLine_Alternative.class); |
764,127 | public static void connect(Text text, LiveVariable<String> model, boolean cursorAtEnd) {<NEW_LINE>if (!text.isDisposed()) {<NEW_LINE>text.addDisposeListener(de -> model.dispose());<NEW_LINE>ModifyListener widgetListener = (me) -> {<NEW_LINE>if (!text.isDisposed()) {<NEW_LINE>model.setValue(text.getText());<NEW_LINE>}<N... | String oldText = text.getText(); |
1,799,849 | private void bitIntensityToBitValue(QrCode qr, List<Point2D_I32> locationBits) {<NEW_LINE>float gridSize = qr.getNumberOfModules() - 1.0f;<NEW_LINE>float threshold00 = (float) qr.threshCorner;<NEW_LINE>float threshold01 = (float) qr.threshRight;<NEW_LINE>float threshold10 = (float) qr.threshDown;<NEW_LINE>float thresho... | ++] < threshold ? 1 : 0; |
429,603 | static <T> T copy(T object, DataComplexTable alreadyCopied) throws CloneNotSupportedException {<NEW_LINE>if (object == null) {<NEW_LINE>return null;<NEW_LINE>} else if (isComplex(object)) {<NEW_LINE>DataComplex src = (DataComplex) object;<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>T found = (T) alreadyCopied.get(... | ) clone).copyReferencedObjects(alreadyCopied); |
1,392,641 | public void assignLabels(LingoProcessingContext context, DoubleMatrix2D stemCos, IntIntHashMap filteredRowToStemIndex, DoubleMatrix2D phraseCos) {<NEW_LINE>final PreprocessingContext preprocessingContext = context.preprocessingContext;<NEW_LINE>final int firstPhraseIndex = preprocessingContext.allLabels.firstPhraseInde... | ] mostFrequentOriginalWordIndex = preprocessingContext.allStems.mostFrequentOriginalWordIndex; |
310,775 | public String format(String content, boolean isLineStart, String indentation, int[] positions) {<NEW_LINE>if (CommonUtils.isEmpty(content)) {<NEW_LINE>return content;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>TransformerFactory transformerFactory = TransformerFactory.newInstance();<NEW_LINE>transformerFactory.setAttribute("in... | resultString.replaceAll("(?m)^[ \\t]*\\r?\\n", ""); |
776,361 | protected void createLineCandidates(@NonNull final AbstractPPOrderCandidateEvent event, @Nullable final MaterialDispoGroupId groupId, @NonNull final Candidate headerCandidate) {<NEW_LINE>final List<PPOrderLineCandidate> ppOrderLineCandidates = event.getPpOrderCandidate().getLines();<NEW_LINE>for (final PPOrderLineCandi... | DemandDetail headerDemandDetail = headerCandidate.getDemandDetail(); |
697,210 | public void copyFrom(final CopyFrom o) {<NEW_LINE>final YWeatherModuleImpl from = (YWeatherModuleImpl) o;<NEW_LINE>setAstronomy(from.getAstronomy() != null ? (Astronomy) from.getAstronomy().clone() : null);<NEW_LINE>setCondition(from.getCondition() != null ? (Condition) from.getCondition().clone() : null);<NEW_LINE>set... | i].clone() : null; |
1,444,709 | public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>if (className.equals(CLASS_STATEMENT)) {<NEW_LINE>if (instrumentor.exist(loader, CLASS_STATEMENT_WRA... | getInstrumentClass(loader, className, classfileBuffer); |
1,454,314 | final GetDeviceFleetReportResult executeGetDeviceFleetReport(GetDeviceFleetReportRequest getDeviceFleetReportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeviceFleetReportRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | invoke(request, responseHandler, executionContext); |
801,258 | public Mono<FetchModelResult> fetchModelAsync(String dtmi, URI repositoryUri, boolean tryFromExpanded, Context context) {<NEW_LINE>return Mono.defer(() -> {<NEW_LINE>Queue<String> work = new LinkedList<>();<NEW_LINE>try {<NEW_LINE>if (tryFromExpanded) {<NEW_LINE>work.add(getModelPath(dtmi, repositoryUri, true));<NEW_LI... | error(new AzureException(e)); |
1,823,999 | protected void handle(InputStream manifestIS) throws IOException, XmlPullParserException {<NEW_LINE>this.axml = new AXmlHandler(manifestIS);<NEW_LINE>// get manifest node<NEW_LINE>AXmlDocument document = this.axml.getDocument();<NEW_LINE>this.manifest = document.getRootNode();<NEW_LINE>if (!this.manifest.getTag().equal... | application = applications.get(0); |
1,819,809 | protected void updateBendPoints(InternalRelationship[] relationshipsToConsider) {<NEW_LINE>for (int i = 0; i < relationshipsToConsider.length; i++) {<NEW_LINE>InternalRelationship relationship = relationshipsToConsider[i];<NEW_LINE>List bendPoints = relationship.getBendPoints();<NEW_LINE>if (bendPoints.size() > 0) {<NE... | bendPoints.size() + 2]; |
795,203 | private RntbdRequestRecord writeWhenConnected(final RntbdRequestRecord requestRecord, final Future<? super Channel> connected) {<NEW_LINE>if (connected.isSuccess()) {<NEW_LINE>final Channel channel = (Channel) connected.getNow();<NEW_LINE>assert channel != null : "impossible";<NEW_LINE>this.releaseToPool(channel);<NEW_... | String reason = cause.toString(); |
1,539,985 | public static void register(CommandDispatcher<CommandSourceStack> dispatcher, org.enginehub.piston.Command command) {<NEW_LINE>ImmutableList.Builder<String> aliases = ImmutableList.builder();<NEW_LINE>aliases.add(command.getName()).addAll(command.getAliases());<NEW_LINE>Command<CommandSourceStack> commandRunner = ctx -... | suggest).executes(commandRunner)); |
1,797,323 | private static CodegenExpression codegenCompare(CodegenExpressionRef lhs, EPType lhsType, CodegenExpressionRef rhs, EPType rhsType, ExprCaseNodeForge forge, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {<NEW_LINE>if (lhsType == null || lhsType == EPTypeNull.INSTANCE) {<NEW_LINE>return equ... | ref("rightResult"), rhsClass)); |
1,603,286 | public boolean isValid() {<NEW_LINE>setErrorMsg(bundle.getString("Empty_String"));<NEW_LINE>ResourceConfigData data = helper.getData();<NEW_LINE>Vector vec = data.getProperties();<NEW_LINE>String resType = data.getString(__ResType);<NEW_LINE>if (resType.equals("javax.jms.Queue") || resType.equals("javax.jms.Topic")) {<... | (bundle.getString("Err_AOName")); |
264,296 | public void visitOnEntry(ImmutableState<?, ?, ?, ?> visitable) {<NEW_LINE>if (visitable.isParallelState()) {<NEW_LINE>writeLine("<parallel id= " + quoteEnumName(visitable) + ">");<NEW_LINE>} else if (visitable.isFinalState()) {<NEW_LINE>writeLine("<final id= " + quoteEnumName(visitable) + ">");<NEW_LINE>} else {<NEW_LI... | (visitable.getInitialState())); |
737,770 | public List<Option> asSortedList() {<NEW_LINE>ArrayList<Option> options = new ArrayList<Option>();<NEW_LINE>if (if_match_list != null)<NEW_LINE>for (byte[] value : if_match_list) options.add(new Option(OptionNumberRegistry.IF_MATCH, value));<NEW_LINE>if (hasUriHost())<NEW_LINE>options.add(new Option(OptionNumberRegistr... | .URI_PORT, getUriPort())); |
1,637,375 | protected void readField(long recordsToRead) {<NEW_LINE>// TODO - unlike most implementations of this method, the recordsReadInThisIteration field is not set here<NEW_LINE>// should verify that this is not breaking anything<NEW_LINE>currentValNull = variableWidthVector.getAccessor().isNull(valuesReadInCurrentPass);<NEW... | getAccessor().getValueLength(valuesReadInCurrentPass); |
1,357,208 | private void registerPersistentQuery(final ServiceContext serviceContext, final MetaStore metaStore, final PersistentQueryMetadata persistentQuery) {<NEW_LINE>final QueryId queryId = persistentQuery.getQueryId();<NEW_LINE>// don't use persistentQueries.put(queryId) here because oldQuery.close()<NEW_LINE>// will remove ... | ).get(), queryId); |
1,849,825 | protected Sheet createSheet() {<NEW_LINE>Sheet sheet = new Sheet();<NEW_LINE>Sheet.Set sheetSet = sheet.get(Sheet.PROPERTIES);<NEW_LINE>if (sheetSet == null) {<NEW_LINE>sheetSet = Sheet.createPropertiesSet();<NEW_LINE>sheet.put(sheetSet);<NEW_LINE>}<NEW_LINE>final String NO_DESCR = Bundle.InstanceCountNode_createSheet_... | "AbstractAbstractFileNode.createSheet.count.name"), NO_DESCR, "")); |
446,703 | public AwsIamAccessKeySessionContext unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsIamAccessKeySessionContext awsIamAccessKeySessionContext = new AwsIamAccessKeySessionContext();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth... | String currentParentElement = context.getCurrentParentElement(); |
99,586 | private void handlePacket(final DatagramPacket datagram) {<NEW_LINE>final int length = datagram.data().length();<NEW_LINE>if (!validatePacketSize(length)) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>vertx.<Packet>executeBlocking(future -> {<NEW_LINE>try {<NEW_LINE>future.complete(Packet.decode(datagram.data(... | LOG.debug("Discarding over-sized packet. Actual size (bytes): " + length); |
527,050 | private static <T> Pair<TypecheckingResult, T> coerceToType(Expression expectedType, Function<Expression, Pair<Expression, T>> checker) {<NEW_LINE>List<TypeConstructorExpression> stack = new ArrayList<>();<NEW_LINE>Expression curType = expectedType;<NEW_LINE>while (curType instanceof FunCallExpression && ((FunCallExpre... | curExpr = stack.get(i); |
827,746 | static PNone printAllGiven(VirtualFrame frame, Object[] values, String sep, String end, Object file, boolean flush, @Shared("getWriteMethod") @Cached PyObjectGetAttr getWriteMethod, @Shared("callWrite") @Cached CallNode callWrite, @Shared("callFlush") @Cached PyObjectCallMethodObjArgs callFlush, @Shared("strNode") @Cac... | frame, values[lastValue])); |
1,375,761 | public UpdateRegistryResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateRegistryResult updateRegistryResult = new UpdateRegistryResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | JsonToken token = context.getCurrentToken(); |
28,737 | public boolean onPrepareOptionsMenu(Menu menu) {<NEW_LINE>MenuItem closeIssue = menu.findItem(R.id.closeIssue);<NEW_LINE>MenuItem lockIssue = menu.findItem(R.id.lockIssue);<NEW_LINE>MenuItem milestone = menu.findItem(R.id.milestone);<NEW_LINE>MenuItem labels = menu.findItem(R.id.labels);<NEW_LINE>MenuItem assignees = m... | setVisible((isRepoOwner || isCollaborator)); |
201,956 | 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... | format("The resource ID '%s' is not valid. Missing path segment 'serviceUnits'.", id))); |
273,405 | public void onGroupInvitation(Invitation invitation) {<NEW_LINE>String sender = invitation.getSender().getUser();<NEW_LINE>ContentValues values = new ContentValues(7);<NEW_LINE>values.put(Imps.Invitation.PROVIDER, mProviderId);<NEW_LINE>values.put(Imps.Invitation.ACCOUNT, mAccountId);<NEW_LINE>values.put(Imps.Invitatio... | STATUS, Imps.Invitation.STATUS_PENDING); |
1,531,746 | public String WSTXLPS113FVT() {<NEW_LINE>XAResourceImpl.clear();<NEW_LINE>final ExtendedTransactionManager TM = TransactionManagerFactory.getTransactionManager();<NEW_LINE>boolean result1 = false, result2 = false, result3 = false;<NEW_LINE>try {<NEW_LINE>XAResourceImpl onePhaseXAResource = new OnePhaseXAResourceImpl();... | + e.toString() + " Operation failed."; |
1,621,684 | public void store(WizardDescriptor settings) {<NEW_LINE>settings.putProperty(WizardProperties.RESOURCE_PACKAGE, getPackage());<NEW_LINE>settings.putProperty(WizardProperties.RESOURCE_CLASS, classTextField.getText());<NEW_LINE>settings.putProperty(WizardProperties.RESOURCE_URI, uriTextField.getText());<NEW_LINE>settings... | Templates.setTargetFolder(settings, packageFO); |
1,452,959 | private boolean applyDefault(IDefaultValueProvider defaultValueProvider, ArgSpec arg) throws Exception {<NEW_LINE>// Default value provider return value is only used if provider exists and if value<NEW_LINE>// is not null otherwise the original default or initial value are used<NEW_LINE>String fromProvider = defaultVal... | >(), arg.toString); |
1,187,459 | private void checkSubclass() {<NEW_LINE>if (typeIsFinal || config.getWarningsToSuppress().contains(Warning.STRICT_INHERITANCE)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ObjectAccessor<T> referenceAccessor = classAccessor.getRedAccessor(typeTag);<NEW_LINE>T reference = referenceAccessor.get();<NEW_LINE>T equalSub = refere... | " with equal fields:\n %%\n" + "Maybe you forgot to add usingGetClass(). Otherwise, consider" + " making the class final or use EqualsVerifier.simple().", reference); |
1,658,259 | private static void testComposite() {<NEW_LINE>// Note that we created two copies of each class to increase variety and avoid potential<NEW_LINE>// optimizations that wouldn't applicable in the real life.<NEW_LINE>ComponentA componentA = new AutoValue_ComponentA(1, false, "hello", 42d, new int[] { 1, 2, 3 });<NEW_LINE>... | assertNotNull(compositeB.toString()); |
1,278,490 | public void shutdown(ExecutorDriver driver) {<NEW_LINE>if (!alreadyShutDown.compareAndSet(false, true)) {<NEW_LINE>LOG.info("Already ran shut down process");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOG.info("Shutdown requested with driver {}", driver);<NEW_LINE>threadChecker.getExecutorService().shutdown();<NEW_LINE>proce... | "Shutting down abandoned pool for {}", taskIdToShellCommandPool.getKey()); |
1,561,113 | public ChoiceState parse(Object node) {<NEW_LINE>ChoiceStateImpl choiceState = new ChoiceStateImpl();<NEW_LINE>parseBaseAttributes(choiceState, node);<NEW_LINE>Map<String, Object> nodeMap = (Map<String, Object>) node;<NEW_LINE>List<Object> choiceObjList = (List<Object>) nodeMap.get("Choices");<NEW_LINE>List<Choice> cho... | ) choiceObjMap.get("Expression")); |
501,874 | private long positionClosingTag() throws IOException {<NEW_LINE>byte[] closingTag = Base64Coder.getBytes(CLOSING_TAG);<NEW_LINE>long pos = _raf.length();<NEW_LINE>int trunk = 4096;<NEW_LINE>byte[] content = null;<NEW_LINE>do {<NEW_LINE>long start = pos - trunk < 0 ? 0 : pos - trunk;<NEW_LINE>int len = <MASK><NEW_LINE>i... | (int) (pos - start); |
1,543,255 | protected void request(Contract contract, YamlContract yamlContract) {<NEW_LINE>Request request = contract.getRequest();<NEW_LINE>if (request != null) {<NEW_LINE>ContentType requestContentType = evaluateClientSideContentType(request.getHeaders(), request.getBody());<NEW_LINE>yamlContract.request = new YamlContract.Requ... | mapRequestMatchersQueryParameters(yamlContract.request, requestUrl); |
290,689 | public void draw(Canvas canvas) {<NEW_LINE>if (mAnimationBackend == null || mFrameScheduler == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long actualRenderTimeStartMs = now();<NEW_LINE>long animationTimeMs = mIsRunning ? actualRenderTimeStartMs - mStartTimeMs + mFrameSchedulingOffsetMs : Math.max(mLastFrameAnimationT... | = mAnimationBackend.getFrameCount() - 1; |
1,127,410 | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>RequestAnalyzer thisRequest = new RequestAnalyzer(this, request, false, "/xml");<NEW_LINE>// Even if we will only display the XML tree we are forced to build the Media URLs<NEW_LINE>resetInternalM... | getWebProject().get_ID()); |
793,317 | private void loadNode398() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupFolderType_DefaultHttpsGroup_TrustList_Open_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), LocalizedText.NULL_... | setInput(new StringReader(xml)); |
1,349,139 | final BatchMeterUsageResult executeBatchMeterUsage(BatchMeterUsageRequest batchMeterUsageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchMeterUsageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,088,354 | public void onClick(DialogInterface dialog, int which) {<NEW_LINE>if (dlgHolder != null && dlgHolder.length > 0 && dlgHolder[0] != null) {<NEW_LINE>dlgHolder[0].dismiss();<NEW_LINE>}<NEW_LINE>FavouritePoint point = (FavouritePoint) args.getSerializable(KEY_FAVORITE);<NEW_LINE>if (point != null && helper.editFavourite(f... | .getPointDescription(activity), fp); |
1,034,546 | public void actionPerformed(ActionEvent e) {<NEW_LINE>for (int i = 0; i < algBoxes.length; i++) {<NEW_LINE>if (algBoxes[i] == e.getSource()) {<NEW_LINE>// see if its ready to start posting these events<NEW_LINE>if (!postAlgorithmEvents)<NEW_LINE>return;<NEW_LINE>// notify the main GUI to change the input algorithm<NEW_... | ), gui.getHeight()); |
357,522 | private TabletLocation checkLock(TabletLocation tl) {<NEW_LINE>// the goal of this class is to minimize calls out to lockChecker under that assumption that<NEW_LINE>// its a resource synchronized among many threads... want to<NEW_LINE>// avoid fine grained synchronization when binning lots of mutations or ranges... rem... | tl.tablet_location, tl.tablet_session); |
1,773,815 | public void accept(OperationCategory category, CtElement targetElement, Map<String, Object> bindings) {<NEW_LINE>if (category != OperationCategory.DELETE) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Move inner elements out from branches of if-then-else-statements<NEW_LINE>if (targetElement instanceof CtIf) {<NEW_LINE>CtI... | CtStatementList) ifstmt.getElseStatement()); |
914,475 | public void render(MatrixStack matrixStack, int mouseX, int mouseY, float partialTicks) {<NEW_LINE>int x1 = getX();<NEW_LINE>int x2 = x1 + getWidth();<NEW_LINE>int x3 = x2 - 11;<NEW_LINE>int x4 = x3 - popupWidth - 4;<NEW_LINE>int y1 = getY();<NEW_LINE>int y2 = y1 + getHeight();<NEW_LINE>boolean hovering = isHovering(mo... | x1, x4, y1, y2); |
12,980 | public EdgeLabel readEdgeLabel(HugeGraph graph, BinaryBackendEntry entry) {<NEW_LINE>E.checkNotNull(entry, "entry");<NEW_LINE>this.entry = entry;<NEW_LINE>Id id = entry.id().origin();<NEW_LINE>String name = readString(HugeKeys.NAME);<NEW_LINE>EdgeLabel edgeLabel = new EdgeLabel(graph, id, name);<NEW_LINE>edgeLabel.sour... | .FREQUENCY, Frequency.class)); |
1,049,097 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String addressName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter resourceG... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
182,353 | private void storeResult(final String key, final int ttl, final QueryResult queryResult) {<NEW_LINE>if (ttl <= 0) {<NEW_LINE>log.<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final CachedResult cachedResult = new CachedResult(queryResult.getRange(), queryResult.getGroups(), queryResult.getPreAggregationSampleSize(), quer... | warn("{}: not storing due to low ttl ({}s)", key, ttl); |
1,620,753 | public static boolean isValid(OpenOfferManager openOfferManager, FeeService feeService, KeyRing keyRing, NodeAddress peer, BsqSwapRequest request) {<NEW_LINE>try {<NEW_LINE>log.info("Received {} from {} with tradeId {} and uid {}", request.getClass().getSimpleName(), peer, request.getTradeId(<MASK><NEW_LINE>checkNotNul... | ), request.getUid()); |
1,042,617 | private boolean removeKeyFromIndexInternal(final OAtomicOperation atomicOperation, final int indexId, final Object key) throws OInvalidIndexEngineIdException {<NEW_LINE>try {<NEW_LINE>checkIndexId(indexId);<NEW_LINE>final OBaseIndexEngine engine = indexEngines.get(indexId);<NEW_LINE>if (engine.getEngineAPIVersion() == ... | ).remove(atomicOperation, key); |
160,133 | final AssociateExternalConnectionResult executeAssociateExternalConnection(AssociateExternalConnectionRequest associateExternalConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateExternalConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
958,408 | public String element(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) {<NEW_LINE>Integer AD_Element_ID = (Integer) value;<NEW_LINE>if (AD_Element_ID == null || AD_Element_ID <= 0)<NEW_LINE>return "";<NEW_LINE>I_AD_Process_Para para = GridTabWrapper.create(mTab, I_AD_Process_Para.class);<NEW_... | setAD_Reference_Value_ID(element.getAD_Reference_Value_ID()); |
1,704,153 | 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 ser... | Utils.getValueFromIdByName(id, "resourceGroups"); |
798,864 | public com.amazonaws.services.stepfunctions.model.StateMachineLimitExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.stepfunctions.model.StateMachineLimitExceededException stateMachineLimitExceededException = new com.amazonaws.services.<MASK><NEW... | stepfunctions.model.StateMachineLimitExceededException(null); |
1,470,009 | private MethodSpec.Builder handleInitDestroyBeanPostProcessor() {<NEW_LINE>InitDestroyMethodsDiscoverer initDestroyMethodsDiscoverer = new InitDestroyMethodsDiscoverer(this.beanFactory);<NEW_LINE>Map<String, List<Method>> initMethods = initDestroyMethodsDiscoverer.registerInitMethods(this.writerContext.getNativeConfigu... | this.writerContext.getNativeConfigurationRegistry()); |
28,160 | public PNode visit(ImportSSTNode node) {<NEW_LINE>scopeEnvironment.setCurrentScope(node.scope);<NEW_LINE>ExpressionNode importNode = new ImportNode(node.name).asExpression();<NEW_LINE>PNode result;<NEW_LINE>int dotIndex = node.name.indexOf('.');<NEW_LINE>if (node.asName == null) {<NEW_LINE>String moduleName = dotIndex ... | .name.lastIndexOf(".")); |
1,570,063 | private RetryPolicy<T> toPolicy(AbstractRetry abstractRetry) {<NEW_LINE>RetryPolicy<T> retryPolicy = abstractRetry.toPolicy();<NEW_LINE>Logger currentLogger = this.logger != null ? this.logger : log;<NEW_LINE>String method = "";<NEW_LINE>if (Thread.currentThread().getStackTrace().length > 4) {<NEW_LINE>method = " [clas... | ), event.getAttemptCount()); |
1,772,434 | XContentBuilder toXContentFragment(final XContentBuilder builder) throws IOException {<NEW_LINE>if (maxReadRequestOperationCount != null) {<NEW_LINE>builder.field(MAX_READ_REQUEST_OPERATION_COUNT.getPreferredName(), maxReadRequestOperationCount);<NEW_LINE>}<NEW_LINE>if (maxWriteRequestOperationCount != null) {<NEW_LINE... | ), maxWriteRequestSize.getStringRep()); |
791,501 | private CompletableFuture<Void> handleBootstrap(MemberId peer) {<NEW_LINE>LOGGER.trace("Received bootstrap request from {} for {}", peer, bootstrapMessageSubject);<NEW_LINE>Function<List<UpdateEntry>, CompletableFuture<Void>> sendUpdates = updates -> {<NEW_LINE>LOGGER.trace("Initializing {} with {} entries", peer, upda... | > futures = Lists.newArrayList(); |
557,525 | // size().<NEW_LINE>public Iterator iterator() throws ObjectManagerException {<NEW_LINE>final Iterator storeAreaIterator = directory.entrySet().iterator();<NEW_LINE>return new Iterator() {<NEW_LINE><NEW_LINE>public boolean hasNext() throws ObjectManagerException {<NEW_LINE>return storeAreaIterator.hasNext();<NEW_LINE>}... | AbstractSingleFileObjectStore.this, storeArea.identifier); |
183,292 | protected static boolean validateTenantOverrides(ComputeSize computeSize, Integer memory, Integer cpu, Integer minCount, Integer maxCount) {<NEW_LINE>boolean computeOverride = (computeSize != null || (memory != null && cpu != null));<NEW_LINE>boolean invalidComputeOverride = (computeSize == null && (memory <MASK><NEW_L... | == null || cpu == null)); |
1,032,671 | public static DescribeAuditFilesResponse unmarshall(DescribeAuditFilesResponse describeAuditFilesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAuditFilesResponse.setRequestId(_ctx.stringValue("DescribeAuditFilesResponse.RequestId"));<NEW_LINE>describeAuditFilesResponse.setTotalRecordCount(_ctx.integerValue("De... | ("DescribeAuditFilesResponse.Items[" + i + "].LogEndTime")); |
673,139 | private void prepConfigFile(Details details) throws IOException {<NEW_LINE>UsState usState = new UsState(exhibitor);<NEW_LINE>File idFile = new File(details.dataDirectory, "myid");<NEW_LINE>if (usState.getUs() != null) {<NEW_LINE>Files.createParentDirs(idFile);<NEW_LINE>String id = String.format("%d\n", usState.getUs()... | Type.ERROR, "Could not delete ID file: " + idFile); |
1,415,978 | private ToolTipAction createVHDLExportAction() {<NEW_LINE>return new ToolTipAction(Lang.get("menu_exportVHDL")) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(ActionEvent actionEvent) {<NEW_LINE>// check model for errors<NEW_LINE>try {<NEW_LINE>new ModelCreator(circuitComponent.getCircuit(), librar... | createModel(false).close(); |
662,899 | @ActionEvent(eventType = EventTypes.EVENT_LB_HEALTHCHECKPOLICY_CREATE, eventDescription = "Apply HealthCheckPolicy to load balancer ", async = true)<NEW_LINE>public boolean applyLBHealthCheckPolicy(CreateLBHealthCheckPolicyCmd cmd) {<NEW_LINE>boolean success = true;<NEW_LINE>LoadBalancerVO loadBalancer = _lbDao.findByI... | applyLoadBalancerConfig(cmd.getLbRuleId()); |
150,109 | public final void start(MatchedEventMap beginState) {<NEW_LINE>AgentInstanceContext agentInstanceContext = evalMatchUntilNode.getContext().getAgentInstanceContext();<NEW_LINE>agentInstanceContext.getInstrumentationProvider().<MASK><NEW_LINE>agentInstanceContext.getAuditProvider().patternInstance(true, evalMatchUntilNod... | qPatternMatchUntilStart(evalMatchUntilNode.factoryNode, beginState); |
1,762,093 | private Handler<Promise<Object>> executeHandler(final Optional<AuthenticationService> authenticationService, final ServerWebSocket websocket, final String payload, final Optional<User> user, final Collection<String> noAuthApiMethods) {<NEW_LINE>return future -> {<NEW_LINE>final <MASK><NEW_LINE>if (!json.isEmpty() && js... | String json = payload.trim(); |
1,354,567 | protected void performAction(final File repository, final File[] roots, final VCSContext context) {<NEW_LINE>RepositoryInfo info = RepositoryInfo.getInstance(repository);<NEW_LINE>info.refresh();<NEW_LINE>if (!canCommit(repository, info)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final GitRepositoryState state = info.getR... | getActiveBranch().getName()); |
332,448 | public void onSelectionChange(int selectionCount) {<NEW_LINE>if (mSelectionMenu == null || mAdapter == null)<NEW_LINE>return;<NEW_LINE>ArrayList<ProcessItem> selectedItems = mAdapter.getSelectedItems();<NEW_LINE>MenuItem kill = mSelectionMenu.findItem(R.id.action_kill);<NEW_LINE>MenuItem forceStop = mSelectionMenu.find... | appsCount == selectedItems.size()); |
10,832 | protected static void verifyServerUpdatedWithJaspi(LibertyServer server, String appName) {<NEW_LINE>verifyServerUpdated(server);<NEW_LINE>assertNotNull("The JASPI user feature did not report it was ready", server.waitForStringInLogUsingMark(MSG_JASPI_PROVIDER_ACTIVATED));<NEW_LINE>if (JakartaEE9Action.isActive()) {<NEW... | ("CWWKT0016I.*" + appName + ".*")); |
1,812,158 | private static long handleWeeklyRepeatAfterComplete(RRule rrule, Date original, boolean hasDueTime) {<NEW_LINE>List<WeekdayNum> byDay = rrule.getByDay();<NEW_LINE>long newDate = original.getTime();<NEW_LINE>newDate += DateUtilities.ONE_WEEK * (rrule.getInterval() - 1);<NEW_LINE>Calendar date = Calendar.getInstance();<N... | createDueDate(Task.URGENCY_SPECIFIC_DAY_TIME, time); |
865,811 | private void processWindowUpdateFrame() throws FlowControlException {<NEW_LINE>FrameWindowUpdate castFrame = (FrameWindowUpdate) currentFrame;<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "processWindowUpdateFrame: streamID: " + castFrame.getStreamId() + " desired in... | incrementConnectionWindowUpdateLimit(castFrame.getWindowSizeIncrement()); |
118,206 | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>log.fine("");<NEW_LINE>HttpSession sess = request.getSession();<NEW_LINE>WWindowStatus ws = WWindowStatus.get(request);<NEW_LINE>if (ws == null) {<NEW_LINE>WebUtil.createTimeoutPage(request, respo... | " - " + ws.toString()); |
1,568,577 | /*<NEW_LINE>* @see<NEW_LINE>* com.ibm.wsspi.channelfw.ChannelFramework#removeChainEventListener(com.ibm<NEW_LINE>* .wsspi.channelfw.ChainEventListener, java.lang.String)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public synchronized void removeChainEventListener(ChainEventListener cel, String chainName) throws InvalidChai... | = new InvalidChainNameException("Can't remove a global listener from individual chains, " + chainName); |
127,563 | protected void propertyChanged(@NotNull final String property, @Nullable final Object oldValue, @Nullable final Object newValue) {<NEW_LINE>if (Objects.equals(property, WebLookAndFeel.ORIENTATION_PROPERTY) && newValue != null) {<NEW_LINE><MASK><NEW_LINE>for (final Component component : toolBar.getComponents()) {<NEW_LI... | final int orientation = (Integer) newValue; |
1,389,212 | public BeanDefinition parse(Element elt, ParserContext parserContext) {<NEW_LINE>RuntimeBeanReference contextSource = LdapUserServiceBeanDefinitionParser.parseServerReference(elt, parserContext);<NEW_LINE>BeanDefinition searchBean = LdapUserServiceBeanDefinitionParser.parseSearchBean(elt, parserContext);<NEW_LINE>Strin... | authenticatorBuilder.addPropertyValue("userDnPatterns", userDnPatternArray); |
1,756,285 | void refresh(DBRecord lRecord, List<SubMemoryBlock> list) {<NEW_LINE>if (id != lRecord.getKey()) {<NEW_LINE>throw new AssertException("Incorrect block record");<NEW_LINE>}<NEW_LINE>this.record = lRecord;<NEW_LINE>AddressMap addrMap = memMap.getAddressMap();<NEW_LINE>startAddress = addrMap.decodeAddress(lRecord.getLongV... | (SegmentedAddress) addrMap.getImageBase(); |
468,532 | private int obterNumeroParametrosEsperados(NoChamadaFuncao chamadaFuncao) {<NEW_LINE>if (chamadaFuncao.getEscopoBiblioteca() == null) {<NEW_LINE>if (FUNCOES_RESERVADAS.contains(chamadaFuncao.getNome())) {<NEW_LINE>if (chamadaFuncao.getNome().equals(FUNCAO_LIMPA)) {<NEW_LINE>return 0;<NEW_LINE>} else if (chamadaFuncao.g... | get(chamadaFuncao.getEscopoBiblioteca()); |
436,735 | private void createEnumerationControls(final Composite parent) {<NEW_LINE>final int nColumns = 4;<NEW_LINE>Composite composite = new Composite(parent, SWT.NONE);<NEW_LINE>composite.setData("TypeKind", "enum");<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.numColumns = nColumns;<NEW_LINE>composite.setLa... | NewWizardMessages.NewTypeWizardPage_modifiers_default, Flags.AccDefault); |
1,233,743 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Position position = new Position(getProtocolName());<NEW_LINE>DeviceSession deviceS... | (parser.nextDouble(0)); |
361,566 | protected Object convertToInternal(Object payload, @Nullable MessageHeaders headers, @Nullable Object conversionHint) {<NEW_LINE>final Message message = (Message) payload;<NEW_LINE>MimeType contentType = getMimeType(headers);<NEW_LINE>if (contentType == null) {<NEW_LINE>contentType = PROTOBUF;<NEW_LINE>}<NEW_LINE>Chars... | ex.getMessage(), ex); |
1,036,740 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,057,235 | protected void initDocument(BaseDocument doc) {<NEW_LINE>// doc.addLayer(new JavaDrawLayerFactory.JavaLayer(),<NEW_LINE>// JavaDrawLayerFactory.JAVA_LAYER_VISIBILITY);<NEW_LINE>doc.putProperty(SyntaxUpdateTokens.class, new SyntaxUpdateTokens() {<NEW_LINE><NEW_LINE>private List tokenList = new ArrayList();<NEW_LINE><NEW... | putProperty(InputAttributes.class, attrs); |
1,271,716 | private void handleGames(ChannelHandlerContext ctx, FullHttpRequest req, QueryStringDecoder qsd) {<NEW_LINE>if (!qsd.parameters().containsKey("search") || qsd.parameters().get("search").isEmpty() || qsd.parameters().get("search").get(0).isBlank()) {<NEW_LINE>HttpServerPageHandler.sendHttpResponse(ctx, req, HttpServerPa... | .INTERNAL_SERVER_ERROR, null, null)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.