idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,622,795 | private static boolean uninstallAddOnActiveScanRules(AddOn addOn, AddOnUninstallationProgressCallback callback) {<NEW_LINE>boolean uninstalledWithoutErrors = true;<NEW_LINE>List<AbstractPlugin> loadedAscanrules = addOn.getLoadedAscanrules();<NEW_LINE>if (!loadedAscanrules.isEmpty()) {<NEW_LINE>logger.debug("Uninstall a... | activeScanRulesWillBeRemoved(loadedAscanrules.size()); |
1,613,173 | public Composite createTab(Composite parent) {<NEW_LINE>Composite container = new Composite(parent, SWT.NONE);<NEW_LINE>TableColumnLayout layout = new TableColumnLayout();<NEW_LINE>container.setLayout(layout);<NEW_LINE>tableViewer = new TableViewer(container, SWT.FULL_SELECTION | SWT.MULTI);<NEW_LINE>CopyPasteSupport.e... | "@v2", preferences, tableViewer, layout); |
930,130 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE><MASK><NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = null;<NEW_LINE>CacheKey cacheKey = new CacheKe... | Business business = new Business(emc); |
510,638 | public int calculateMinimumHP(int[][] dungeon) {<NEW_LINE>if (dungeon == null || dungeon.length == 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>int height = dungeon.length;<NEW_LINE>int width = dungeon[0].length;<NEW_LINE>int[][] dp = new int[height][width];<NEW_LINE>dp[height - 1][width - 1] = (dungeon[height - 1][widt... | [height - 1][j]; |
426,193 | public int read(byte[] buf, int off, int len) throws TTransportException {<NEW_LINE>if (!responseBufferTransport.isReadable()) {<NEW_LINE>try {<NEW_LINE>// If our existing response transport doesn't have any bytes remaining to read,<NEW_LINE>// wait for the next queued response to arrive, and point our response transpo... | .currentThread().interrupt(); |
581,833 | public com.amazonaws.services.directory.model.InvalidParameterException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.directory.model.InvalidParameterException invalidParameterException = new com.amazonaws.services.directory.model.InvalidParameterException(nul... | int originalDepth = context.getCurrentDepth(); |
485,188 | public void run() {<NEW_LINE>ProgressIndicator progressIndicator = ProgressManager.getInstance().getProgressIndicator();<NEW_LINE>final ArrayList<PsiFile> filesList = new ArrayList<PsiFile>();<NEW_LINE>final boolean isRecursive = myExportToHTMLSettings.isIncludeSubdirectories();<NEW_LINE>try {<NEW_LINE>ApplicationManag... | ) / filesList.size()); |
406,000 | public Map<String, Double> calculateSpellColorPercentages() {<NEW_LINE>final Map<String, Integer> colorCount = new HashMap<>();<NEW_LINE>for (final ColoredManaSymbol color : ColoredManaSymbol.values()) {<NEW_LINE>colorCount.put(color.toString(), 0);<NEW_LINE>}<NEW_LINE>// Counts how many colored mana symbols we've seen... | int count = singleCount.getValue(); |
536,057 | public static boolean intersects(final RoaringBitmap x1, final RoaringBitmap x2) {<NEW_LINE>final int length1 = x1.highLowContainer.size(), length2 <MASK><NEW_LINE>int pos1 = 0, pos2 = 0;<NEW_LINE>while (pos1 < length1 && pos2 < length2) {<NEW_LINE>final char s1 = x1.highLowContainer.getKeyAtIndex(pos1);<NEW_LINE>final... | = x2.highLowContainer.size(); |
955,643 | public ModelAndView profile(ModelMap map, HttpServletRequest request, @Valid String snsid) {<NEW_LINE>CousultInvite coultInvite = OnlineUserProxy.consult(snsid, super.getOrgi(request));<NEW_LINE>logger.info("[profile] snsaccount Id {}, Ai {}, Aifirst {}, Ainame {}, Aisuccess {}, Aiid {}", coultInvite.getSnsaccountid(),... | (super.createView("/admin/webim/profile")); |
1,375,296 | public void onRename(String name) {<NEW_LINE>_item.setLabel(name);<NEW_LINE>Setup.<MASK><NEW_LINE>Point point = new Point(_item._x, _item._y);<NEW_LINE>if (_item._location.equals(ItemPosition.Group)) {<NEW_LINE>return;<NEW_LINE>} else if (_item._location.equals(ItemPosition.Desktop)) {<NEW_LINE>Desktop desktop = _homeA... | dataManager().saveItem(_item); |
1,507,402 | public void updateComponent() {<NEW_LINE>if (!myKeepOnHintHidden && !myHint.isVisible() && !ApplicationManager.getApplication().isHeadlessEnvironment() || myEditor instanceof EditorWindow && !((EditorWindow) myEditor).isValid()) {<NEW_LINE>Disposer.dispose(this);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final PsiFile file ... | = new MyUpdateParameterInfoContext(offset, file); |
521,148 | public boolean apply(Game game, Ability source) {<NEW_LINE>int discardCount = source.isControlledBy(game.getMonarchId()) ? 2 : 1;<NEW_LINE>String message = "Discard " + CardUtil.numberToText(discardCount, "a") + " card" + (discardCount > 1 ? 's' : "") + "? If not you lose " + (discardCount * 3) + " life";<NEW_LINE>Map<... | (target.getTargets())); |
1,442,391 | public String boldWords(String[] words, String S) {<NEW_LINE>boolean[] shouldBold = new boolean[S.length()];<NEW_LINE>for (int i = 0, end = 0; i < S.length(); i++) {<NEW_LINE>for (String word : words) {<NEW_LINE>if (S.startsWith(word, i)) {<NEW_LINE>end = Math.max(end, i + word.length());<NEW_LINE>}<NEW_LINE>}<NEW_LINE... | (S.charAt(i)); |
698,078 | public SQLName nameRest(SQLName name) {<NEW_LINE>if (lexer.token == Token.DOT) {<NEW_LINE>lexer.nextToken();<NEW_LINE>if (lexer.token == Token.KEY) {<NEW_LINE>name = new SQLPropertyExpr(name, "KEY");<NEW_LINE>lexer.nextToken();<NEW_LINE>return name;<NEW_LINE>}<NEW_LINE>if (lexer.token != Token.LITERAL_ALIAS && lexer.to... | SQLUtils.forcedNormalize(propertyName, dbType); |
1,751,974 | private void addCompoundTypeSubstitutionToTree(final INaviOperandTreeNode operandNode, final INaviInstruction instruction, final TypeSubstitution typeSubstitution) {<NEW_LINE>final long completeOffset = operandNode.hasAddendSibling() ? (operandNode.determineAddendValue() * 8 + typeSubstitution.getOffset()) : typeSubsti... | addBaseType(typeSubstitution.getBaseType()); |
897,855 | public boolean authenticate(LDAPConnection connection, String bindDn, EncryptedValue password) throws LDAPException {<NEW_LINE>checkArgument(!isNullOrEmpty(bindDn), "Binding with empty principal is forbidden.");<NEW_LINE>checkArgument(password != null, "Binding with null credentials is forbidden.");<NEW_LINE>checkArgum... | LOG.trace("Re-binding DN <{}> failed", bindDn); |
626,596 | protected void computeWeightedScore(int c_x, int c_y) {<NEW_LINE>// compute the score for each angle in the histogram<NEW_LINE>for (int y = rect.y0; y < rect.y1; y++) {<NEW_LINE>int indexX = derivX.startIndex + derivX<MASK><NEW_LINE>int indexY = derivY.startIndex + derivY.stride * y + rect.x0;<NEW_LINE>int indexW = (y ... | .stride * y + rect.x0; |
1,813,286 | final DescribeAutoScalingGroupsResult executeDescribeAutoScalingGroups(DescribeAutoScalingGroupsRequest describeAutoScalingGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAutoScalingGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,057,149 | private NavigatableContextAction breakPointActionFactory(String name, String cmd, boolean oneshot, KeyBindingData keyBinding) {<NEW_LINE>NavigatableContextAction breakpoint_action;<NEW_LINE>breakpoint_action = new NavigatableContextAction(name, getName()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerfor... | , breakpoint_action.getName())); |
950,137 | public static XComponentContext createInitialComponentContext(Map<String, Object> context_entries) throws Exception {<NEW_LINE>ServiceManager xSMgr = new ServiceManager();<NEW_LINE>XImplementationLoader xImpLoader = UnoRuntime.queryInterface(XImplementationLoader.class, new JavaLoader());<NEW_LINE>XInitialization xInit... | = new Object[] { xSMgr }; |
941,034 | public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception {<NEW_LINE>if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.UserId)) {<NEW_LINE>this.userId = new UserId();<NEW_LINE>this.userId.loadFromXml(reader, reader.getLocalName());<NEW_LINE>return true;<NEW_LINE>} else if (reader.getLoc... | reader.readValue(PermissionScope.class); |
1,093,203 | protected ChainProcessor<TorrentContext> createTorrentProcessor() {<NEW_LINE>ProcessingStage<TorrentContext> stage5 = new SeedStage<>(null, torrentRegistry);<NEW_LINE>ProcessingStage<TorrentContext> stage4 = new ProcessTorrentStage<>(stage5, torrentRegistry, peerRegistry, trackerService, eventSink);<NEW_LINE>Processing... | dataWorker, bufferedPieceRegistry, eventSink, config); |
378,642 | public UserCredentials obtainCredentials(String realm, UserCredentials userCredentials, int reasonCode) {<NEW_LINE>String errorMessage = null;<NEW_LINE>if (reasonCode == WRONG_PASSWORD || reasonCode == WRONG_USERNAME) {<NEW_LINE>errorMessage = GuiActivator.getResources().getI18NString("service.gui.AUTHENTICATION_FAILED... | setPasswordPersistent(loginWindow.isRememberPassword()); |
1,378,652 | public static HttpHandler addServletDeployment(Container container, DeploymentInfo deploymentInfo, boolean secure) {<NEW_LINE>IdentityService identityService = container.getService(IdentityService.class);<NEW_LINE>boolean devMode = container.isDevMode();<NEW_LINE>try {<NEW_LINE>if (secure) {<NEW_LINE>if (identityServic... | class.getName() + " is added before this service"); |
703,886 | public Flux<CommandResponse<ZDiffCommand, Flux<Tuple>>> zDiffWithScores(Publisher<? extends ZDiffCommand> commands) {<NEW_LINE>return execute(commands, command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Key must not be null!");<NEW_LINE>List<Object> args = new ArrayList<>(command.getKeys().size() + 2);<NEW_LINE>ar... | .add(toByteArray(key)); |
907,930 | public void addAttachments(BlackboardArtifact message, MessageAttachments attachments) throws TskCoreException {<NEW_LINE>// Create attribute<NEW_LINE>BlackboardAttribute blackboardAttribute = BlackboardJsonAttrUtil.toAttribute(ATTACHMENTS_ATTR_TYPE, getModuleName(), attachments);<NEW_LINE>message.addAttribute(blackboa... | long attachedFileObjId = fileAttachment.getObjectId(); |
1,594,331 | private void initCommandBehaviorConstant(String c, boolean complete) {<NEW_LINE>if (c != null) {<NEW_LINE>if (c.equalsIgnoreCase("SoftKey")) {<NEW_LINE>Display.getInstance().setCommandBehavior(Display.COMMAND_BEHAVIOR_SOFTKEY);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (c.equalsIgnoreCase("Touch")) {<NEW_LINE>Display.get... | ).setCommandBehavior(Display.COMMAND_BEHAVIOR_BUTTON_BAR_TITLE_BACK); |
958,337 | public static void customize(Breakpoint b) {<NEW_LINE>JComponent c = getCustomizerComponent(b);<NEW_LINE>HelpCtx helpCtx = HelpCtx.findHelp(c);<NEW_LINE>if (helpCtx == null) {<NEW_LINE>// NOI18N<NEW_LINE>helpCtx = new HelpCtx("debug.add.breakpoint");<NEW_LINE>}<NEW_LINE>Controller cc;<NEW_LINE>if (c instanceof Controll... | (new Object[] {}); |
948,989 | // @Override<NEW_LINE>public void start(final Stage primaryStage) {<NEW_LINE>Screen screen = Screen.getPrimary();<NEW_LINE>Rectangle2D bounds = screen.getVisualBounds();<NEW_LINE>primaryStage.setX(0);<NEW_LINE>primaryStage.setY(0);<NEW_LINE>final VBox mainBox = new VBox(30);<NEW_LINE><MASK><NEW_LINE>final Scene globalS... | mainBox.setAlignment(Pos.CENTER); |
1,756,362 | public static RequestMapping convertRequestMappingToAnnotation(org.springframework.integration.http.inbound.RequestMapping requestMapping) {<NEW_LINE>if (ObjectUtils.isEmpty(requestMapping.getPathPatterns())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Map<String, Object> requestMappingAttributes = new HashMap<>();<NEW... | "headers", requestMapping.getHeaders()); |
872,913 | private void importProject(final Uri projectUri) {<NEW_LINE>String PROJECT_EXTENSION = getApplicationContext().getString(R.string.share_extension_filter);<NEW_LINE>String scheme = projectUri.getScheme();<NEW_LINE>Log.<MASK><NEW_LINE>Log.i(LOG_TAG, "receiveProject(path): " + projectUri.getPath());<NEW_LINE>// if scheme ... | i(LOG_TAG, "receiveProject(scheme): " + scheme); |
656,671 | Optional<MesosSchedulerDriver> initMesosSchedulerDriverWithTimeout(MesosSchedulerCallbackHandler mesosSchedulerCallbackHandler, Protos.FrameworkInfo framework) {<NEW_LINE>ExecutorService executorService = Executors.newSingleThreadExecutor();<NEW_LINE>int mesosSchedulerDriverInitTimeoutSec = masterConfig.getMesosSchedul... | logger.info("failed to initialize MesosSchedulerDriver", e); |
955,191 | private void writeModelContent(final String string) throws IOException {<NEW_LINE>if (string.matches(" +")) {<NEW_LINE>writer.write(" ");<NEW_LINE>} else if (string.startsWith("<html")) {<NEW_LINE>String output = string.substring(6);<NEW_LINE>int start = output.indexOf("<body");<NEW_LINE>if (start == -1) {<NEW_LIN... | (HtmlUtils.unicodeToHTMLUnicodeEntity(string)); |
433,911 | protected BlockWriteRequestContext createRequestContext(alluxio.grpc.WriteRequest msg) throws Exception {<NEW_LINE>long bytesToReserve = FILE_BUFFER_SIZE;<NEW_LINE>if (msg.getCommand().hasSpaceToReserve()) {<NEW_LINE>bytesToReserve = msg.getCommand().getSpaceToReserve();<NEW_LINE>}<NEW_LINE>BlockWriteRequestContext con... | = new BlockWriteRequestContext(msg, bytesToReserve); |
1,487,383 | public String invoke(ObjectName bean, String operation, String... params) throws InstanceNotFoundException, IntrospectionException, ReflectionException, IOException, MBeanException {<NEW_LINE>MBeanInfo mbinfo = mserver.getMBeanInfo(bean);<NEW_LINE>MBeanOperationInfo op = null;<NEW_LINE>for (MBeanOperationInfo oi : mbin... | ), op.getReturnType()); |
958,636 | public void deleteProcessRule(HttpServletRequest request, RuleEngineEntity engineEntity) throws GovernanceException {<NEW_LINE>try {<NEW_LINE>if (!this.checkProcessorExist(request)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String deleteUrl = new StringBuffer(this.getProcessorUrl()).append(ConstantProperties.PROCESSOR_DEL... | "processor delete begin,id:{}", engineEntity.getId()); |
285,625 | protected final void updateTags(String fqn, String fieldName, List<TagLabel> origTags, List<TagLabel> updatedTags) throws IOException {<NEW_LINE>// Remove current entity tags in the database. It will be added back later from the merged tag list.<NEW_LINE>origTags = listOrEmpty(origTags);<NEW_LINE>// updatedTags cannot ... | EntityUtil.mergeTags(updatedTags, origTags); |
1,165,717 | private List<Token> commentToLines(Token commentToken, int commentStartPositionInLine) {<NEW_LINE>List<Token> lines = new ArrayList<>();<NEW_LINE>int tab = this.options.tab_size;<NEW_LINE>String commentText = this.tm.toString(commentToken);<NEW_LINE>int commentStartPosition = commentStartPositionInLine;<NEW_LINE>if (co... | line.setWrapPolicy(WrapPolicy.DISABLE_WRAP); |
628,285 | static ByteBuf inflateWithByteArray(ByteBufAllocator alloc, ByteBuf in, Inflater inflater) {<NEW_LINE>ByteBuf out = null;<NEW_LINE>ByteBuf buf = null;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>int len = in.readableBytes();<NEW_LINE>final byte[] input = ByteBufUtil.getBytes(in, readerIndex, len, false);<NEW_LINE>inflater.... | int readerIndex = in.readerIndex(); |
334,674 | public void addAdvancedMsgListener(MethodCall call, final MethodChannel.Result result) {<NEW_LINE>final String listenerUuid = CommonUtil.getParam(call, result, "listenerUuid");<NEW_LINE>listenerUuidList.add(listenerUuid);<NEW_LINE>final V2TIMAdvancedMsgListener advacedMessageListener = new V2TIMAdvancedMsgListener() {<... | .convertV2TIMMessageToMap(msg), listenerUuid); |
373,408 | public void marshall(CreateKeyRequest createKeyRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createKeyRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createKeyRequest.getPolicy(), POLICY... | createKeyRequest.getOrigin(), ORIGIN_BINDING); |
1,291,737 | private void editItem(final int position) {<NEW_LINE>final KeyValue keyValue = filteredItems.get(position);<NEW_LINE>final String key = keyValue.key;<NEW_LINE>final SettingsUtils.SettingsType type = keyValue.type;<NEW_LINE>int inputType = 0;<NEW_LINE>switch(type) {<NEW_LINE>case TYPE_INTEGER:<NEW_LINE>case TYPE_LONG:<N... | | InputType.TYPE_NUMBER_VARIATION_NORMAL | InputType.TYPE_NUMBER_FLAG_SIGNED; |
911,150 | protected void acceptLoop(ServerSocketChannel ssc) {<NEW_LINE>long successfull_accepts = 0;<NEW_LINE>long failed_accepts = 0;<NEW_LINE>while (!destroyed) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>successfull_accepts++;<NEW_LINE>if (!(allow_external_access || socket_channel.socket().getInetAddress().isLoopbackAddress())... | SocketChannel socket_channel = ssc.accept(); |
389,922 | private void liftOverToTargetBuild(final Build37ExtendedIlluminaManifestRecord build37ExtendedIlluminaManifestRecord, final IlluminaManifestRecord illuminaManifestRecord) {<NEW_LINE>final String supportedBuildNumber = illuminaManifestRecord.getMajorGenomeBuild();<NEW_LINE>final File chainFileToTargetBuild = chainFilesM... | b37Chr + ", position=" + build37ExtendedIlluminaManifestRecord.b37Pos); |
142,406 | protected Map<String, JsonRpcMethod> create(final PrivacyController privacyController, final PrivacyIdProvider privacyIdProvider, final PrivateMarkerTransactionFactory privateMarkerTransactionFactory) {<NEW_LINE>if (privacyParameters.isPrivacyPluginEnabled()) {<NEW_LINE>return mapOf(new PluginEeaSendRawTransaction(tran... | new PrivGetEeaTransactionCount(privacyController, privacyIdProvider)); |
307,018 | public Concrete.Expression visitLet(Concrete.LetExpression expr, Void params) {<NEW_LINE>try (Utils.ContextSaver ignored = new Utils.ContextSaver(myContext)) {<NEW_LINE>for (Concrete.LetClause clause : expr.getClauses()) {<NEW_LINE>try (Utils.ContextSaver ignored1 = new Utils.ContextSaver(myContext)) {<NEW_LINE>visitPa... | HashMap<>(), true); |
1,501,097 | private static void storeReleaseNotes(String releaseNotes, String templateFilePath, String releaseVersion, String releaseDate, String releaseNotesFilePath, Boolean dryRun, Log log) throws IOException {<NEW_LINE>if (Files.notExists(Paths.get(templateFilePath))) {<NEW_LINE>log.warn(String.format("There is no source templ... | (" <li><a href=\"%s.html\">Jersey %s Release Notes</a></li>", releaseVersion, releaseVersion)); |
1,565,227 | /*<NEW_LINE>* @see com.sitewhere.microservice.api.event.IDeviceEventManagement#<NEW_LINE>* addDeviceLocations(com.sitewhere.spi.device.event.IDeviceEventContext,<NEW_LINE>* com.sitewhere.spi.device.event.request.IDeviceLocationCreateRequest[])<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public List<IDeviceLocation> addDevi... | InfluxDbDeviceLocation.saveToBuilder(location, builder); |
1,326,341 | protected void buildCoordinate(GraphPayload payload, XmlBuilder b) {<NEW_LINE>int width = payload.getWidth();<NEW_LINE>int height = payload.getHeight();<NEW_LINE>int top = payload.getMarginTop();<NEW_LINE>int left = payload.getMarginLeft();<NEW_LINE>int bottom = payload.getMarginBottom();<NEW_LINE>int right = payload.g... | int rows = payload.getRows(); |
892,959 | private static Artifact createSharedArchive(RuleContext ruleContext, JavaCompilationArtifacts javaArtifacts, JavaTargetAttributes attributes) throws InterruptedException {<NEW_LINE>if (!ruleContext.getRule().isAttrDefined("classlist", BuildType.LABEL)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Artifact classlist = ru... | "-XX:SharedClassListFile=%s", classlist.getExecPath()); |
649,268 | private static Collection<String> createPluginClassPath(IJavaProject javaProject, Set<IProject> projectOnCp) throws CoreException {<NEW_LINE>Set<String> javaClassPath = createJavaClasspath(javaProject, projectOnCp);<NEW_LINE>IPluginModelBase model = PluginRegistry.<MASK><NEW_LINE>if (model == null || model.getPluginBas... | findModel(javaProject.getProject()); |
603,239 | final GetCelebrityRecognitionResult executeGetCelebrityRecognition(GetCelebrityRecognitionRequest getCelebrityRecognitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCelebrityRecognitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,286,563 | public void traceExecution(final MessageFrame frame, final ExecuteOperation executeOperation) {<NEW_LINE>final Operation currentOperation = frame.getCurrentOperation();<NEW_LINE>final int depth = frame.getMessageStackDepth();<NEW_LINE>final String opcode = currentOperation.getName();<NEW_LINE>final int pc = frame.getPC... | ), frame.getMaybeUpdatedStorage()); |
1,681,078 | public static DescribeAntChainCertificateApplicationsV2Response unmarshall(DescribeAntChainCertificateApplicationsV2Response describeAntChainCertificateApplicationsV2Response, UnmarshallerContext _ctx) {<NEW_LINE>describeAntChainCertificateApplicationsV2Response.setRequestId(_ctx.stringValue("DescribeAntChainCertificat... | (_ctx.integerValue("DescribeAntChainCertificateApplicationsV2Response.Result.Pagination.PageNumber")); |
1,507,174 | static String process(String html) {<NEW_LINE>Matcher m = FIELD.matcher(html);<NEW_LINE>List<Match> matches = new ArrayList<>(64);<NEW_LINE>Match lastMatch = null;<NEW_LINE>boolean foundSame = false;<NEW_LINE>StringBuilder out = new StringBuilder(html.length());<NEW_LINE>boolean altColor = false;<NEW_LINE>while (m.find... | Match match = new Match(m); |
1,074,653 | private void refreshInstallServiceButtonState() {<NEW_LINE>if (System.getProperty(LooksFrame.START_SERVICE) != null || !Platform.isWindows()) {<NEW_LINE>installService.setEnabled(false);<NEW_LINE>installService.setText(Messages.getString("NetworkTab.4"));<NEW_LINE>} else {<NEW_LINE>installService.setEnabled(true);<NEW_... | (Messages.getString("NetworkTab.4")); |
356,703 | private static void createExtensionDocAndAddToFolderAndImports(final CdmCorpusContext ctx, final List<CdmTraitDefinition> extensionTraitDefList, final CdmFolderDefinition folder) {<NEW_LINE>if (extensionTraitDefList.size() > 0) {<NEW_LINE>final CdmDocumentDefinition extensionDoc = ctx.getCorpus().makeObject(CdmObjectTy... | setNamespace(folder.getNamespace()); |
1,226,897 | private void updateBind(Node n) {<NEW_LINE>CodingConvention.Bind bind = compiler.getCodingConvention().describeFunctionBind(n, false, true);<NEW_LINE>if (bind == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Node target = bind.target;<NEW_LINE>FunctionType callTargetFn = getJSType(target).restrictByNotNullOrUndefined().... | getFirstChild().setJSType(bindType); |
426,819 | private Mono<PagedResponse<AutoApprovedPrivateLinkServiceInner>> listAutoApprovedPrivateLinkServicesSinglePageAsync(String location, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,659,590 | public void updateTitle(Contact contact, Channel channel) {<NEW_LINE>StringBuilder titleBuilder = new StringBuilder();<NEW_LINE>if (contact != null) {<NEW_LINE>titleBuilder.append(contact.getDisplayName());<NEW_LINE>if (appContactService != null && this.contact != null) {<NEW_LINE>updateLastSeenStatus();<NEW_LINE>}<NEW... | withUserContact = appContactService.getContactById(userId); |
1,531,944 | public boolean testConnection() {<NEW_LINE>String dbUrl = // adempiere may not be defined yet<NEW_LINE>m_dbTarget.// adempiere may not be defined yet<NEW_LINE>getConnectionURL(// adempiere may not be defined yet<NEW_LINE>m_databaseHost, // adempiere may not be defined yet<NEW_LINE>m_databasePort, // adempiere may not b... | JDBCInfo info = new JDBCInfo(conn); |
867,325 | protected void doRenderCalendar(boolean updateDate) {<NEW_LINE>super.setStylePrimaryName(getDateField().getStylePrimaryName() + "-calendarpanel");<NEW_LINE>if (focusedDate == null) {<NEW_LINE>Date date = getDate();<NEW_LINE>if (date == null) {<NEW_LINE>date = new Date();<NEW_LINE>}<NEW_LINE>// focusedDate must have zer... | date.getMonth(), 1); |
142,414 | public TimeSeriesDatabaseConnection deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing pat... | Utils.getValueFromIdByName(id, "digitalTwinsInstances"); |
1,237,502 | static BeanDefinitionBuilder buildWebFluxRequestExecutingMessageHandler(Element element, ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder builder = <MASK><NEW_LINE>String webClientRef = element.getAttribute("web-client");<NEW_LINE>if (StringUtils.hasText(webClientRef)) {<NEW_LINE>builder.getBeanDefinition(... | BeanDefinitionBuilder.genericBeanDefinition(WebFluxRequestExecutingMessageHandler.class); |
1,708,064 | public void execute() {<NEW_LINE>if (!blank(apiLocation) && !new File(apiLocation).exists()) {<NEW_LINE>getLog().error("The directory: " + apiLocation + " does not exist");<NEW_LINE>}<NEW_LINE>Format localFormat = null;<NEW_LINE>if (Format.JSON.matches(format)) {<NEW_LINE>localFormat = Format.JSON;<NEW_LINE>} else if (... | new EndpointFinder(getCombinedClassLoader(project)); |
1,532,276 | final DescribeDRTAccessResult executeDescribeDRTAccess(DescribeDRTAccessRequest describeDRTAccessRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDRTAccessRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
701,843 | final UpdateRegionSettingsResult executeUpdateRegionSettings(UpdateRegionSettingsRequest updateRegionSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateRegionSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
464,220 | private void debugDrawPoints(final Canvas canvas, final int startIndex, final int endIndex, final Paint paint) {<NEW_LINE>final int[] xCoords = mXCoordinates.getPrimitiveArray();<NEW_LINE>final int[] yCoords = mYCoordinates.getPrimitiveArray();<NEW_LINE>final int[<MASK><NEW_LINE>// {@link Paint} that is zero width stro... | ] pointTypes = mPointTypes.getPrimitiveArray(); |
1,809,100 | public static void gatherData(GatherDataEvent event) {<NEW_LINE>// Capabilities are not registered yet, but cap references throw on null caps<NEW_LINE>CapabilityItemHandler.register();<NEW_LINE>CapabilityFluidHandler.register();<NEW_LINE>CapabilityEnergy.register();<NEW_LINE>CapabilityRedstoneNetwork.register();<NEW_LI... | new ConnectorBlockStates(gen, exHelper)); |
1,484,496 | public void remap(CustomRemapper remapper) {<NEW_LINE>Set<String> mappedNames = new HashSet<>();<NEW_LINE>remapper.setIgnorePackages(true);<NEW_LINE>classNodes().forEach(classNode -> {<NEW_LINE>int matches = StringUtils.countMatches(classNode.name, "/");<NEW_LINE>if (matches > getConfig().getPackageLayers()) {<NEW_LINE... | classNode.name.lastIndexOf("/"); |
285,553 | public void createRunMethod(ClassVisitor cv, Class hostClass, Class castClass, String name, boolean staticMethod, boolean block) {<NEW_LINE>Class[] <MASK><NEW_LINE>Class returnClass;<NEW_LINE>try {<NEW_LINE>returnClass = hostClass.getMethod(name, params).getReturnType();<NEW_LINE>} catch (NoSuchMethodException nsme) {<... | params = getParamType(staticMethod, block); |
1,124,282 | protected void activate() {<NEW_LINE>long ts = System.currentTimeMillis();<NEW_LINE>deactivateCalled = false;<NEW_LINE>tradeStatisticsManager.<MASK><NEW_LINE>if (!fillTradeCurrenciesOnActivateCalled) {<NEW_LINE>fillTradeCurrencies();<NEW_LINE>fillTradeCurrenciesOnActivateCalled = true;<NEW_LINE>}<NEW_LINE>syncPriceFeed... | getObservableTradeStatisticsSet().addListener(setChangeListener); |
64,770 | private void invokeRefreshInstance(String instanceId, WXRefreshData refreshData) {<NEW_LINE>try {<NEW_LINE>WXSDKInstance instance = WXSDKManager.getInstance().getSDKInstance(instanceId);<NEW_LINE>if (!isSkipFrameworkInit(instanceId) && !isJSFrameworkInit()) {<NEW_LINE>if (instance != null) {<NEW_LINE>instance.onRenderE... | data + ", isDirty:" + refreshData.isDirty); |
942,682 | // Arbitrators sign with EC key<NEW_LINE>private String signAndPublishAccountAgeWitness(Coin tradeAmount, AccountAgeWitness accountAgeWitness, ECKey key, byte[] peersPubKey, long time) {<NEW_LINE>if (isSignedAccountAgeWitness(accountAgeWitness)) {<NEW_LINE>var err = "Arbitrator trying to sign already signed accountagew... | signatureBase64 = key.signMessage(accountAgeWitnessHashAsHex); |
1,180,567 | private void processConfigProps(Map<String, Object> props) {<NEW_LINE>controlFlag = setControlFlag(moduleConfig.controlFlag());<NEW_LINE>Map<String, Object> options = extractOptions(props);<NEW_LINE>String originalLoginModuleClassName = moduleConfig.className();<NEW_LINE>if (isDefaultLoginModule()) {<NEW_LINE>String ta... | props.get("config.displayId"))); |
1,456,378 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.date_picker_dialog, container, false);<NEW_LINE>Button doneButton = (Button) view.findViewById(R.id.done_button);<NEW_LINE>Button cancelButton = (Button) view.findViewById(R... | ), mPicker.getDayOfMonth()); |
1,728,947 | public static void main(String[] args) {<NEW_LINE>Jsonb jsonb = JsonbBuilder.create();<NEW_LINE>Model instance = new Model();<NEW_LINE>instance.string = "Hello World!";<NEW_LINE>instance.number = 42;<NEW_LINE>instance.integers = Arrays.asList(1, 2, 3);<NEW_LINE>instance.decimals = new HashSet<>(Arrays.asList(BigDecimal... | Model.Nested(), null); |
288,923 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String workId, String flag, boolean stream) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc)... | class, generalFile.getStorage()); |
1,283,403 | public Release deployStream(StreamDeploymentRequest streamDeploymentRequest) {<NEW_LINE>validateStreamDeploymentRequest(streamDeploymentRequest);<NEW_LINE>Map<String, String> streamDeployerProperties = streamDeploymentRequest.getStreamDeployerProperties();<NEW_LINE>String packageVersion = streamDeployerProperties.get(S... | ? packageName : streamDeploymentRequest.getStreamName(); |
337,438 | private void buildFragmentPlans() {<NEW_LINE>int i = 0;<NEW_LINE>for (PlanFragment fragment : fragments) {<NEW_LINE>DataSink sink = fragment.getSink();<NEW_LINE>PlanTreeNode sinkNode = null;<NEW_LINE>if (sink != null) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>if (sink.getExchNodeId() != null) {<NEW_LI... | ()).append("]"); |
1,447,384 | private static Unbinder parseOnLongClick(final Object target, final Method method, View source) {<NEW_LINE>OnLongClick onLongClick = method.getAnnotation(OnLongClick.class);<NEW_LINE>if (onLongClick == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>validateMember(method);<NEW_LINE>final boolean propagateReturn = val... | , argumentTransformer.transform(v)); |
4,416 | public static ListFunctionMetasResponse unmarshall(ListFunctionMetasResponse listFunctionMetasResponse, UnmarshallerContext context) {<NEW_LINE>listFunctionMetasResponse.setRequestId(context.stringValue("ListFunctionMetasResponse.RequestId"));<NEW_LINE>listFunctionMetasResponse.setSuccess(context.booleanValue("ListFunc... | ("ListFunctionMetasResponse.FunctionMetas[" + i + "].AlipkUserId")); |
981,785 | private void dumpRelationships(List<AbstractChordInter> stdChords) {<NEW_LINE>// List BeamGroups<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>for (BeamGroupInter group : measure.getBeamGroups()) {<NEW_LINE>logger.info(" {}", group);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// List chords relationships<NEW_LINE>StringBuilder... | ix).getId())); |
456,287 | public void onNonNullFieldAssignment(Symbol field, AccessPathNullnessAnalysis analysis, VisitorState state) {<NEW_LINE>// Traversing AST is costly, therefore we access the initializer method through the leaf node in<NEW_LINE>// state parameter<NEW_LINE>TreePath pathToMethod = NullabilityUtil.<MASK><NEW_LINE>if (pathToM... | findEnclosingMethodOrLambdaOrInitializer(state.getPath()); |
1,792,786 | public ConstantPropagationStore leastUpperBound(ConstantPropagationStore other) {<NEW_LINE>Map<Node, Constant> newContents = new LinkedHashMap<>(contents.size() + other.contents.size());<NEW_LINE>// go through all of the information of the other class<NEW_LINE>for (Map.Entry<Node, Constant> e : other.contents.entrySet(... | newContents.put(n, otherVal); |
540,043 | public void draw(@NonNull Canvas canvas) {<NEW_LINE>if (colorItem == null) {<NEW_LINE>// should not happen, but do not crash.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int size = Math.min(getBounds().height(), getBounds().width());<NEW_LINE>// Assume height and width are the same after onMeasure.<NEW_LINE>float radius = siz... | = (size - iconWidth) / 2; |
86,381 | public static ListK8sConfigMapsResponse unmarshall(ListK8sConfigMapsResponse listK8sConfigMapsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listK8sConfigMapsResponse.setRequestId(_ctx.stringValue("ListK8sConfigMapsResponse.RequestId"));<NEW_LINE>listK8sConfigMapsResponse.setCode(_ctx.integerValue("ListK8sConfigMapsRes... | + "].Data[" + k + "].Key")); |
963,130 | public static void average(Planar<GrayF32> from, GrayF32 to) {<NEW_LINE>int numBands = from.getNumBands();<NEW_LINE>if (numBands == 1) {<NEW_LINE>to.setTo(from.getBand(0));<NEW_LINE>} else if (numBands == 3) {<NEW_LINE>GrayF32 band0 = from.getBand(0);<NEW_LINE>GrayF32 band1 = from.getBand(1);<NEW_LINE>GrayF32 band2 = f... | sum += band1.data[indexFrom]; |
143,066 | final GetModelPackageGroupPolicyResult executeGetModelPackageGroupPolicy(GetModelPackageGroupPolicyRequest getModelPackageGroupPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getModelPackageGroupPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,463,681 | static void normalMenuStartUp(MainActivity mainActivity, Class[] activitiesDemo) {<NEW_LINE>String[] layouts = getLayouts(s <MASK><NEW_LINE>ScrollView sv = new ScrollView(mainActivity);<NEW_LINE>LinearLayout linearLayout = new LinearLayout(mainActivity);<NEW_LINE>linearLayout.setOrientation(LinearLayout.VERTICAL);<NEW_... | -> s.matches(LAYOUTS_MATCHES)); |
554,756 | protected void renderConduitDynamic(@Nonnull IConduitTexture tex, @Nonnull IClientConduit.WithDefaultRendering conduit, @Nonnull CollidableComponent component, float brightness) {<NEW_LINE>GlStateManager.color(1, 1, 1);<NEW_LINE>if (component.isDirectional() && component.data == null) {<NEW_LINE>final EnumFacing compon... | false, conduit.shouldMirrorTexture()); |
5,582 | private void initData() {<NEW_LINE>fragments = new ArrayList<>(4);<NEW_LINE>items = new SparseIntArray(4);<NEW_LINE>Fragment_1_Base basicsFragment = new Fragment_1_Base();<NEW_LINE>Fragment_2_Custom customFragment = new Fragment_2_Custom();<NEW_LINE>Fragment_3_List complexFragment = new Fragment_3_List();<NEW_LINE>Frag... | R.id.i_custom, 1); |
1,015,741 | public <T0, T1, T2, T3, T4, T5, T6, T> Join<T> createJoin(final List<Stage<?>> stages, final Function7<T0, T1, T2, T3, T4, T5, T6, T> constructor, final TableIdentifier<T0> t0, final TableIdentifier<T1> t1, final TableIdentifier<T2> t2, final TableIdentifier<T3> t3, final TableIdentifier<T4> t4, final TableIdentifier<T... | rsMapper(stages, 2, t2); |
1,803,917 | final GetIntentResult executeGetIntent(GetIntentRequest getIntentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getIntentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<GetIntentRequest> request = null;<NE... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,141,234 | final AssociateInstanceEventWindowResult executeAssociateInstanceEventWindow(AssociateInstanceEventWindowRequest associateInstanceEventWindowRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateInstanceEventWindowRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2"); |
67,425 | public static void partialReduceDoubleMin(double[] inputArray, double[] outputArray, int gidx) {<NEW_LINE>int localIdx = OpenCLIntrinsics.get_local_id(0);<NEW_LINE>int localGroupSize = OpenCLIntrinsics.get_local_size(0);<NEW_LINE>int groupID = OpenCLIntrinsics.get_group_id(0);<NEW_LINE>double[] localArray = (double[]) ... | newUninitializedArray(double.class, LOCAL_WORK_GROUP_SIZE); |
749,437 | public static DecoupledTemplateLogic computeDecoupledTemplateLogic(final IEngineConfiguration configuration, final String ownerTemplate, final String template, final Set<String> templateSelectors, final ITemplateResource resource, final TemplateMode templateMode, final IMarkupParser parser) throws IOException, ParseExc... | , decoupledResource.getDescription() }); |
373,523 | private boolean isMatch(String str, int i, String pattern, int j, Map<Character, String> map, Set<String> set) {<NEW_LINE>// base case<NEW_LINE>if (i == str.length() && j == pattern.length()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (i == str.length() || j == pattern.length()) {<NEW_LINE>return false;<NEW_LINE>}<... | j + 1, map, set); |
1,563,332 | void updateUrlTitleAndText(String urlAsString) {<NEW_LINE>String title = MainApplication.sTitleHashMap != null ? MainApplication.sTitleHashMap.get(urlAsString) : null;<NEW_LINE>boolean showTitleUrl = !urlAsString.equals(getContext().getString<MASK><NEW_LINE>if (title == null) {<NEW_LINE>title = mLoadingString;<NEW_LINE... | (R.string.empty_bubble_page)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.