idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
502,183 | public static Map<String, String> convertStringToActionProperties(String text) {<NEW_LINE>PropertySplitter split = new PropertySplitter(text);<NEW_LINE>String tok = split.nextPair();<NEW_LINE>Map<String, String> props = new LinkedHashMap<String, String>();<NEW_LINE>while (tok != null) {<NEW_LINE>// NOI18N<NEW_LINE>Stri... | split(tok, "=", 2); |
914,862 | private static void appendDiff(List<String> dest, List<String> first, List<String> second, String headerFirst, String headerSecond) {<NEW_LINE>dest.add("");<NEW_LINE>dest.add(headerFirst);<NEW_LINE>dest.addAll(first);<NEW_LINE>dest.add("");<NEW_LINE>dest.add(headerSecond);<NEW_LINE>if (first.size() != second.size()) {<... | + diffLine.substring(1)); |
1,606,251 | public void startAnim() {<NEW_LINE>ObjectAnimator xAnim = ObjectAnimator.ofFloat(targetView, "x", fromViewInfo.getX(), toViewInfo.getX());<NEW_LINE>ObjectAnimator yAnim = ObjectAnimator.ofFloat(targetView, "y", fromViewInfo.getY(), toViewInfo.getY());<NEW_LINE>ValueAnimator widthAnim = ValueAnimator.ofInt(fromViewInfo.... | xAnim, yAnim, widthAnim, heightAnim); |
168,029 | private RelNode optimizeByExpandTableLookup(RelNode input, PlannerContext plannerContext) {<NEW_LINE>HepProgramBuilder builder = new HepProgramBuilder();<NEW_LINE>// expand table lookup<NEW_LINE>builder.addGroupBegin();<NEW_LINE>builder.addRuleCollection(RuleToUse.EXPAND_TABLE_LOOKUP);<NEW_LINE>builder.addGroupEnd();<N... | builder.addRuleInstance(ProjectRemoveRule.INSTANCE); |
1,284,043 | public boolean restore(@Nullable DefaultMutableTreeNode actionNode) {<NEW_LINE>if (isProcessingNow() || !myCanRunRestore || myUi.hasNodesToUpdate()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>invalidateToSelectWithRefsToParent(actionNode);<NEW_LINE>setProcessingNow(true);<NEW_LINE>final Object[] toSelect = getToSelec... | Object[] toExpand = getToExpand(); |
1,740,615 | private boolean handlePreflight(RoutingContext ctx) {<NEW_LINE>final HttpServerRequest request = ctx.request();<NEW_LINE>// See: https://www.w3.org/TR/cors/#cross-origin-request-with-preflight-0<NEW_LINE>// Preflight requests should not be subject to security due to the reason UAs will remove the Authorization header<N... | ).getHeader(HttpHeaders.ACCESS_CONTROL_REQUEST_HEADERS); |
1,091,864 | void draw(Canvas canvas, GeometryWayContext context) {<NEW_LINE>if (style != null && style.getPointBitmap() != null) {<NEW_LINE>Bitmap bitmap = style.getPointBitmap();<NEW_LINE>Integer pointColor = style.getPointColor();<NEW_LINE>float paintH2 = bitmap.getHeight() / 2f;<NEW_LINE>float paintW2 <MASK><NEW_LINE>matrix.res... | = bitmap.getWidth() / 2f; |
1,506,084 | public void onCreate(final Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>// Setup base map<NEW_LINE>setContentView(R.layout.activity_samplewithtilesoverlay);<NEW_LINE>Toolbar toolbar = <MASK><NEW_LINE>setSupportActionBar(toolbar);<NEW_LINE>// noinspection ConstantConditions<NEW_LINE... | findViewById(R.id.my_toolbar); |
1,493,166 | static Optional<List<Configurator>> toConfigurators(List<URL> urls) {<NEW_LINE>if (CollectionUtils.isEmpty(urls)) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>ConfiguratorFactory configuratorFactory = urls.get(0).getOrDefaultApplicationModel().getExtensionLoader(ConfiguratorFactory.class).getAdaptiveExtensio... | (configuratorFactory.getConfigurator(url)); |
623,687 | public static MethodOutcome process2xxResponse(FhirContext theContext, int theResponseStatusCode, String theResponseMimeType, InputStream theResponseReader, Map<String, List<String>> theHeaders) {<NEW_LINE>List<String> locationHeaders = new ArrayList<>();<NEW_LINE>List<String> lh = theHeaders.get(Constants.HEADER_LOCAT... | BaseOutcomeReturningMethodBinding.ourLog.debug("No content in response, not going to read"); |
55,969 | public Iterator<Vertex> scan(Set<String> labelList) {<NEW_LINE>Pair<GraphSchema, Long> pair = schemaFetcher.getSchemaSnapshotPair();<NEW_LINE>Set<Integer> labelIdList = Sets.newHashSet();<NEW_LINE>if (null == labelList || labelList.isEmpty()) {<NEW_LINE>labelIdList.add(0);<NEW_LINE>} else {<NEW_LINE>for (String label :... | .SECONDS).scan(vertexScanRequest); |
844,148 | private void initView() {<NEW_LINE>setContentView(R.layout.layout_setting_view);<NEW_LINE>View debugContainer = findViewById(R.id.lua_setting_debug);<NEW_LINE>View hotReloadContainer = findViewById(R.id.lua_setting_hr);<NEW_LINE>View serialContainer = findViewById(R.id.lua_setting_serial);<NEW_LINE>etDebugIp = findView... | findViewById(R.id.swDebug); |
1,509,652 | public void write(final List<? extends T> items) {<NEW_LINE>final ListIterator<? extends T> itemIterator = items.listIterator();<NEW_LINE>getJdbcTemplate().batchUpdate("INSERT into BATCH_STAGING (ID, JOB_ID, VALUE, PROCESSED) values (?,?,?,?)", new BatchPreparedStatementSetter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>... | (itemIterator.next())); |
1,085,238 | public boolean canInvoke(ObjectName objectName, String operation) {<NEW_LINE>if (this.securityMBean == null) {<NEW_LINE>// JMXSecurity MBean is not found, thus RBAC is disabled<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>Subject subject = Subject.getSubject(acc);<NEW_LINE>try {<NEW_LINE>if (subject != nul... | AccessControlContext acc = AccessController.getContext(); |
1,560,031 | private static boolean createAndPostWorldLoadEvent(final SpongeToForgeEventData eventData) {<NEW_LINE>final LoadWorldEvent spongeEvent = (LoadWorldEvent) eventData.getSpongeEvent();<NEW_LINE>WorldEvent.Load forgeEvent = (WorldEvent.Load) eventData.getForgeEvent();<NEW_LINE>// Since Forge only uses a single save handler... | = new WorldEvent.Load(minecraftWorld); |
1,732,778 | final DisableTopicRuleResult executeDisableTopicRule(DisableTopicRuleRequest disableTopicRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disableTopicRuleRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DisableTopicRuleRequest> ... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,811,786 | private static String toCamelCase(String text) {<NEW_LINE>String[] words = text.split("[\\W_]+");<NEW_LINE>StringBuilder result = new StringBuilder();<NEW_LINE>if (words.length == 1) {<NEW_LINE>if (!StringUtils.isAllUpperCase(words[0])) {<NEW_LINE>String word = words[0];<NEW_LINE>word = Character.toLowerCase(word.charA... | ) + word.substring(1); |
842,391 | ActionResult<Wo> execute(String applicationId, String processId, String activityId) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>List<Da... | setLevel(stub.getLevel()); |
568,705 | protected boolean acceptUri(GitURI uri) {<NEW_LINE>boolean accepts = false;<NEW_LINE>panel.tipLabel.setText(null);<NEW_LINE>if (uri.getScheme() == null) {<NEW_LINE>if (uri.getHost() != null && uri.getHost().length() != 0) {<NEW_LINE>accepts = true;<NEW_LINE>// NOI18N<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>} else {<NEW_LIN... | panel.tipLabel.setText("[user@]host.xz:path/to/repo.git/"); |
1,749,044 | public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {<NEW_LINE>if (// the item selection is fired twice by the Android framework. Ignore the first one<NEW_LINE>view == null)<NEW_LINE>return;<NEW_LINE>switch(position) {<NEW_LINE>case // Save As..<NEW_LINE>0:<NEW_LINE>mExportTarget = Expor... | ocDialog = OwnCloudDialogFragment.newInstance(null); |
270,541 | final StartKeyPhrasesDetectionJobResult executeStartKeyPhrasesDetectionJob(StartKeyPhrasesDetectionJobRequest startKeyPhrasesDetectionJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startKeyPhrasesDetectionJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartKeyPhrasesDetectionJob"); |
411,476 | public Future<Void> commit() {<NEW_LINE>return Future.future(promise -> {<NEW_LINE>if (map.size() == 1) {<NEW_LINE>NewMycatConnection sqlConnection = map.values().iterator().next();<NEW_LINE>Future<Void> xaEnd = executeTranscationConnection(connection -> connection.update(String.format(XA_END, xid)).mapEmpty());<NEW_LI... | changeTo(sqlConnection, State.XA_ENDED); |
2,359 | public boolean register(VeluxProduct newProduct) {<NEW_LINE><MASK><NEW_LINE>if (isRegistered(newProduct)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>logger.trace("register() registering new product {}.", newProduct);<NEW_LINE>String uniqueIndex = newProduct.isV2() ? newProduct.getSerialNumber() : newProduct.getProduc... | logger.trace("register({}) called.", newProduct); |
1,649,083 | public void initialize(InitializeParams p, ServerCapabilities cap) {<NEW_LINE>server.onCommand(CMD_SPRING_BOOT_ENABLE_CLASSPATH_LISTENING, params -> {<NEW_LINE>log.debug("CLASSPATH ENABLED CMD EXEC");<NEW_LINE>if (params.getArguments().get(0) instanceof JsonPrimitive) {<NEW_LINE>boolean classpathListeningEnabled = ((Js... | (JsonObject) p.getInitializationOptions(); |
1,841,503 | private void printInnerClassAccess(String accessedElementName, ElementKind kind, Integer methodArgsCount) {<NEW_LINE>print("this.");<NEW_LINE>ClassTree parent = getParent(ClassTree.class);<NEW_LINE>TypeElement parentTypeElement = Util.getElement(parent);<NEW_LINE>int level = 0;<NEW_LINE>boolean foundInParent = util().f... | getParent(ClassTree.class, parent); |
37,908 | private void removeCiphers(TlsContext ctx, ClientHelloMessage ch) {<NEW_LINE>String msgName = ch.toCompactString();<NEW_LINE>if (ch.getCipherSuites() == null) {<NEW_LINE>LOGGER.debug("No cipher suites found in " + msgName + ". Nothing to do.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (LOGGER.isDebugEnabled()) {<NEW_LIN... | ().getValue().length; |
100,166 | public void startElement(String uri, String localName, String qName, Attributes elementAttributes) throws SAXException {<NEW_LINE>tag = qName.trim();<NEW_LINE>if (ENTRY_ELEMENT_NAME.equals(qName)) {<NEW_LINE>values = new HashMap<String, String>();<NEW_LINE>String path = elementAttributes.getValue(PATH_ATTRIBUTE);<NEW_L... | , elementAttributes.getValue(ITEM_ATTRIBUTE)); |
1,645,819 | private boolean addFoldsOfType(String type, Map<String, List<OffsetRange>> folds, Collection<FoldInfo> result, FoldType foldType) {<NEW_LINE>// NOI18N<NEW_LINE>List<OffsetRange> ranges = folds.get(type);<NEW_LINE>if (ranges != null) {<NEW_LINE>if (LOG.isLoggable(Level.FINEST)) {<NEW_LINE>LOG.log(Level.FINEST, "Creating... | Level.FINEST, "No folds of type {0}", type); |
1,353,346 | public void shift(BlockVector3 change) throws RegionOperationException {<NEW_LINE>Vector3 vec = change.toVector3();<NEW_LINE>shiftCollection(vertices, change);<NEW_LINE>shiftCollection(vertexBacklog, change);<NEW_LINE>for (int i = 0; i < triangles.size(); ++i) {<NEW_LINE>final Triangle triangle = triangles.get(i);<NEW_... | (triangle.getVertex(0)); |
428,959 | final StopExperimentResult executeStopExperiment(StopExperimentRequest stopExperimentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopExperimentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | (super.beforeMarshalling(stopExperimentRequest)); |
1,200,136 | protected JobResponse createJobResponse(Job job, RestUrlBuilder urlBuilder, String[] urlJobSegments) {<NEW_LINE>JobResponse response = new JobResponse();<NEW_LINE>response.setId(job.getId());<NEW_LINE>response.<MASK><NEW_LINE>response.setDueDate(job.getDuedate());<NEW_LINE>response.setExceptionMessage(job.getExceptionM... | setCorrelationId(job.getCorrelationId()); |
232,154 | private Action createNextCellAction() {<NEW_LINE>return new AbstractAction() {<NEW_LINE><NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>ProfilerColumnModel cModel = table._getColumnModel();<NEW_LINE>if (table.getRowCount() == 0 || cModel.getVisibleColumnCount() == 0)<NEW_LINE>return;<NEW_LINE>int column... | && table.getRowCount() > 1; |
774,321 | public void applyPermission(UiPermissionDescriptor permissionDescriptor) {<NEW_LINE>checkNotNullArgument(permissionDescriptor);<NEW_LINE>final String subComponentId = permissionDescriptor.getSubComponentId();<NEW_LINE>final ScreenComponentPermission permissionValue = permissionDescriptor.getPermissionValue();<NEW_LINE>... | String actionHolderComponentId = permissionDescriptor.getActionHolderComponentId(); |
1,399,575 | public EurekaHttpResponse<InstanceInfo> sendHeartBeat(String appName, String id, InstanceInfo info, InstanceStatus overriddenStatus) {<NEW_LINE>String urlPath = "apps/" + appName + '/' + id;<NEW_LINE>Response response = null;<NEW_LINE>try {<NEW_LINE>WebTarget webResource = jerseyClient.target(serviceUrl).path(urlPath).... | getLastDirtyTimestamp().toString()); |
291,692 | public void marshall(SearchTablesRequest searchTablesRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (searchTablesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(searchTablesRequest.getCata... | searchTablesRequest.getFilters(), FILTERS_BINDING); |
1,504,339 | public Object rest(InstanceScope scope, Object v) {<NEW_LINE>if (v == null)<NEW_LINE>return null;<NEW_LINE>if (v instanceof List) {<NEW_LINE>// optimize list case<NEW_LINE>List<?> elems = (List<?>) v;<NEW_LINE>if (elems.size() <= 1)<NEW_LINE>return null;<NEW_LINE>return elems.subList(1, elems.size());<NEW_LINE>}<NEW_LI... | v = convertAnythingIteratableToIterator(scope, v); |
20,566 | private JRParametersCollector createJRParameters(final ReportContext reportContext) {<NEW_LINE>final JRParametersCollector jrParameters = new JRParametersCollector();<NEW_LINE>jrParameters.putAll(reportContext.getCtx());<NEW_LINE>jrParameters.putAllProcessInfoParameters(reportContext.getProcessInfoParameters());<NEW_LI... | putReportLanguage(reportContext.getAD_Language()); |
1,310,075 | private void doDelete(HttpEntity<String> entity) {<NEW_LINE>AgentResponse rsp = null;<NEW_LINE>DeleteCmd cmd = JSONObjectUtil.toObject(entity.getBody(), DeleteCmd.class);<NEW_LINE>if (!config.deleteSuccess) {<NEW_LINE>rsp = new AgentResponse();<NEW_LINE>rsp.setError("Fail delete on purpose");<NEW_LINE>rsp.setSuccess(fa... | rspBody = JSONObjectUtil.toJsonString(rsp); |
1,613,863 | public synchronized boolean deserialize(ByteBuffer buffer) {<NEW_LINE>long newLastLogIndex = buffer.getLong();<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("Partition table: lastMetaLogIndex {}, newLastLogIndex {}", lastMetaLogIndex, newLastLogIndex);<NEW_LINE>}<NEW_LINE>// judge whether the partition ... | NodeSerializeUtils.deserialize(node, buffer); |
1,084,002 | public String completeIt() {<NEW_LINE>if (!m_justPrepared) {<NEW_LINE>String status = prepareIt();<NEW_LINE>if (!DocAction.STATUS_InProgress.equals(status))<NEW_LINE>return status;<NEW_LINE>}<NEW_LINE>m_processMsg = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_COMPLETE);<NEW_LINE>if (m... | fireDocValidate(this, ModelValidator.TIMING_AFTER_COMPLETE); |
1,718,903 | private JField resolveClassLiteralField(JType type) {<NEW_LINE>type = type.isJsNative() || type.isJsFunction() || type.isJsFunctionImplementation() ? program.getJavaScriptObject() : program.normalizeJsoType(type);<NEW_LINE>JField <MASK><NEW_LINE>if (field == null) {<NEW_LINE>// Create the allocation expression FIRST si... | field = classLiteralFields.get(type); |
676,626 | public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>drainReplicationTable_result result = new drainReplicationTable_result();<NEW_LINE>if (e instanceof org.apache.accumulo.core.clientImpl.thrift.Thrift... | .clientImpl.thrift.ThriftNotActiveServiceException) e; |
1,515,107 | public void init(String application) {<NEW_LINE>final AccumuloConfiguration conf = getConfiguration();<NEW_LINE>log.info("{} starting", application);<NEW_LINE>log.info("Instance {}", getInstanceID());<NEW_LINE>// It doesn't matter which Volume is used as they should all have the data version stored<NEW_LINE>int dataVer... | String key = entry.getKey(); |
1,227,780 | public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("step" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>int interval;<NEW_LINE>int[] seqs;<NEW_LINE>if (param.isLeaf()) {<NEW_LINE>Object obj = param.getLea... | + mm.getMessage("function.paramTypeError")); |
1,475,478 | public Observable<ScanResult> scanBleDevices(final ScanSettings scanSettings, final ScanFilter... scanFilters) {<NEW_LINE>return Observable.defer(new Callable<ObservableSource<? extends ScanResult>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Observable<ScanResult> call() {<NEW_LINE>scanPreconditionVerifier.verify... | scanSetupBuilder.build(scanSettings, scanFilters); |
221,045 | public void encodeEnd(FacesContext context, UIComponent component) throws IOException {<NEW_LINE>InputNumber inputNumber = (InputNumber) component;<NEW_LINE><MASK><NEW_LINE>String valueToRender = ComponentUtils.getValueToRender(context, inputNumber, value);<NEW_LINE>if (isValueBlank(valueToRender)) {<NEW_LINE>valueToRe... | Object value = inputNumber.getValue(); |
1,470,201 | public SQLStatement parseWith() {<NEW_LINE>SQLWithSubqueryClause with = this.parseWithQuery();<NEW_LINE>if (lexer.token == Token.SELECT || lexer.token == Token.LPAREN) {<NEW_LINE>SQLSelectParser selectParser = createSQLSelectParser();<NEW_LINE>SQLSelect select = selectParser.select();<NEW_LINE>select.setWithSubQuery(wi... | "TODO. " + lexer.info()); |
1,115,783 | final CreatePublicKeyResult executeCreatePublicKey(CreatePublicKeyRequest createPublicKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPublicKeyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,849,638 | public void propagate(InstanceState state) {<NEW_LINE>// get attributes<NEW_LINE>BitWidth dataWidth = state.getAttributeValue(StdAttr.WIDTH);<NEW_LINE>// compute outputs<NEW_LINE>Value gt = Value.FALSE;<NEW_LINE>Value eq = Value.TRUE;<NEW_LINE>Value lt = Value.FALSE;<NEW_LINE>Value a = state.getPortValue(IN0);<NEW_LINE... | bx[pos] : Value.ERROR; |
1,280,192 | protected void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Graphics2D g2d = (Graphics2D) g;<NEW_LINE>g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);<NEW_LINE>int height = getHeight() - 2 * topBottomMargin;<NEW_LINE>int width = getWidth();<NEW_LINE>g.... | int paletteSize = palette.getSize(); |
799,735 | public JComponent config() {<NEW_LINE>poll();<NEW_LINE>JPanel top = new JPanel(new GridBagLayout());<NEW_LINE>GridBagConstraints c = new GridBagConstraints();<NEW_LINE>c.fill = GridBagConstraints.BOTH;<NEW_LINE>c.insets = new Insets(0, 5, 0, 5);<NEW_LINE>c.ipadx = 5;<NEW_LINE>c.gridx = 0;<NEW_LINE>c.gridy = 0;<NEW_LINE... | (Messages.getString("DbgPacker.3")); |
434,077 | ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>Wi wi = ... | Statement.class, Table.name_FIELDNAME); |
1,659,312 | private void processPegoutsIndividually(ReleaseRequestQueue releaseRequestQueue, ReleaseTransactionBuilder txBuilder, List<UTXO> availableUTXOs, ReleaseTransactionSet releaseTransactionSet, Wallet wallet) {<NEW_LINE>Coin walletBalance = wallet.getBalance();<NEW_LINE>boolean canProcessAtLeastOnePegout = releaseRequestQu... | ), releaseRequest.getAmount()); |
933,906 | // auto-generated, see spoon.generating.CloneVisitorGenerator<NEW_LINE>public <T> void visitCtConstructor(final spoon.reflect.declaration.CtConstructor<T> c) {<NEW_LINE>spoon.reflect.declaration.CtConstructor<T> aCtConstructor = c.getFactory()<MASK><NEW_LINE>this.builder.copy(c, aCtConstructor);<NEW_LINE>aCtConstructor... | .Core().createConstructor(); |
271,769 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "col1".split(",");<NEW_LINE>String epl = "@Name('context') create context SegmentedByString partition by baseAB from ISupportBaseAB;\n" + "@name('s0') context SegmentedByString select count(*) as col1 from ISupportA;\n";<NEW_LINE>env.compileDeploy(... | new ISupportAImpl("A2", "AB1")); |
546,562 | public Response addLineage(AddLineage addLineage, IsExistsPredicate isExistsPredicate) throws ModelDBException {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>validate(addLineage.getInputList(<MASK><NEW_LINE>validateExistence(addLineage.getInputList(), addLineage.getOutp... | ), addLineage.getOutputList()); |
1,579,228 | private static ResolvedEvent resolve(Rule rule, BlazeDirectories directories) {<NEW_LINE><MASK><NEW_LINE>Object pathObj = rule.getAttr("path");<NEW_LINE>ImmutableMap.Builder<String, Object> origAttr = ImmutableMap.<String, Object>builder().put("name", name).put("path", pathObj);<NEW_LINE>StringBuilder repr = new String... | String name = rule.getName(); |
322,522 | private void processFileWriter(FileWriter fileWriter) {<NEW_LINE>if (AtlasD8.deepShrink) {<NEW_LINE>System.out.println("start to deepShrink of dx");<NEW_LINE>Object mixedSectionOffsets = <MASK><NEW_LINE>ObjectToOffsetMapping mapping = (ObjectToOffsetMapping) ReflectUtils.getField(fileWriter, "mapping");<NEW_LINE>Object... | ReflectUtils.getField(fileWriter, "mixedSectionOffsets"); |
1,711,630 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serviceName, 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 null."));<NEW_LINE>}<... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,196,189 | private void informProjectNotification(final ViewNotificationContainer projectNotificationContainer, final SQLProvider provider) throws CouldntLoadDataException {<NEW_LINE>if (projectNotificationContainer.getDatabaseOperation().equals("INSERT")) {<NEW_LINE>final INaviProject project = projectNotificationContainer.getNo... | provider.loadFlowGraphInformation(project, viewId); |
1,847,736 | public static boolean doCustomizeNonPsiElementLeftRenderer(ColoredListCellRenderer renderer, JList list, Object value, TextAttributes attributes) {<NEW_LINE>if (!(value instanceof NavigationItem))<NEW_LINE>return false;<NEW_LINE>NavigationItem item = (NavigationItem) value;<NEW_LINE>SimpleTextAttributes nameAttributes ... | requireNonNull(item.getPresentation()); |
744,561 | public static void main(String[] args) {<NEW_LINE>if (args.length < minArgs) {<NEW_LINE>System.out.println(usage.toString());<NEW_LINE>System.exit(-1);<NEW_LINE>}<NEW_LINE>TreebankLangParserParams tlpp = new EnglishTreebankParserParams();<NEW_LINE>DiskTreebank tb = null;<NEW_LINE>String encoding = "UTF-8";<NEW_LINE>Str... | incrementCount(word.word()); |
1,431,401 | private void writeLoadMethodsJava() {<NEW_LINE>List<JType> filteredTypes = new ArrayList<JType>();<NEW_LINE>JType[] types = getSerializableTypes();<NEW_LINE>int n = types.length;<NEW_LINE>for (int index = 0; index < n; ++index) {<NEW_LINE>JType type = types[index];<NEW_LINE>if (serializationOracle.maybeInstantiated(typ... | > filteredTypesIter = filteredTypes.iterator(); |
1,228,826 | final RemoveProfilePermissionResult executeRemoveProfilePermission(RemoveProfilePermissionRequest removeProfilePermissionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeProfilePermissionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.SERVICE_ID, "signer"); |
483,462 | public static void openUrlByUsingBlogCredentials(Context context, SiteModel site, PostImmutableModel post, String url, String[] listOfAllowedURLs, boolean disableLinks, boolean allowPreviewModeSelection, boolean startPreviewForResult) {<NEW_LINE>if (context == null) {<NEW_LINE>AppLog.e(AppLog.T.UTILS, "Context is null"... | SHARE_SUBJECT, post.getTitle()); |
118,220 | private FetchedData doHandle(ContentHandlerArgs args, MessageQueue mq) {<NEW_LINE>String inputUrlString = CajaArguments.URL.get(args);<NEW_LINE>URI inputUri;<NEW_LINE>if (inputUrlString == null) {<NEW_LINE>mq.addMessage(ServiceMessageType.MISSING_ARGUMENT, MessagePart.Factory.valueOf(CajaArguments.URL.toString()));<NEW... | mq.addMessage(ServiceMessageType.UNSUPPORTED_CONTENT_TYPES); |
1,719,141 | private static TypeMirror typeToImport(CompilationInfo info, TreePath tp, TypeMirror origin) {<NEW_LINE>if (tp.getLeaf().getKind() == Tree.Kind.MEMBER_SELECT) {<NEW_LINE>MemberSelectTree mst = (MemberSelectTree) tp.getLeaf();<NEW_LINE>if (mst.getExpression().getKind() == Tree.Kind.IDENTIFIER) {<NEW_LINE>ClassIndex inde... | TypeMirror toImport = te.asType(); |
1,505,296 | final DeleteMessageResult executeDeleteMessage(DeleteMessageRequest deleteMessageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteMessageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
536,372 | private void createNewTableEntry(String tableName, ADDataElement data2, Vector<String> keyColumnNames2, Vector<Column> columns) throws SQLException {<NEW_LINE>String insertStatement = "INSERT INTO " + tableName + "(";<NEW_LINE>for (int i = 0; i < columns.size(); i++) {<NEW_LINE>if (i != 0) {<NEW_LINE>insertStatement +=... | replaceAll("'", "''") + "'"; |
5,841 | private String generateRetryStateInstanceId(StateInstance stateInstance) {<NEW_LINE>String originalStateInstId = stateInstance.getStateIdRetriedFor();<NEW_LINE>int maxIndex = 1;<NEW_LINE>Map<String, StateInstance> stateInstanceMap = stateInstance.getStateMachineInstance().getStateMap();<NEW_LINE>StateInstance originalS... | originalStateInst.getId(), "."); |
176,539 | public void prefillLines(Timesheet timesheet) throws AxelorException {<NEW_LINE>PublicHolidayService holidayService = Beans.get(PublicHolidayService.class);<NEW_LINE>LeaveService leaveService = Beans.get(LeaveService.class);<NEW_LINE>WeeklyPlanningService weeklyPlanningService = <MASK><NEW_LINE>AppTimesheet appTimeshee... | Beans.get(WeeklyPlanningService.class); |
1,380,193 | public static Integer versionCompareNumerically(String str1, String str2) {<NEW_LINE>String[] vals1 = str1.split("\\.");<NEW_LINE>String[] vals2 = str2.split("\\.");<NEW_LINE>int i = 0;<NEW_LINE>// set index to first non-equal ordinal or length of shortest version string<NEW_LINE>while (i < vals1.length && i < vals2.le... | vals1.length - vals2.length); |
956,389 | public void handleNotification(final Notification notifIn, final Object handback) {<NEW_LINE>if (notifIn instanceof MBeanServerNotification) {<NEW_LINE><MASK><NEW_LINE>final String type = notif.getType();<NEW_LINE>final ObjectName objectName = notif.getMBeanName();<NEW_LINE>if (isRelevantMBean(objectName)) {<NEW_LINE>/... | final MBeanServerNotification notif = (MBeanServerNotification) notifIn; |
75,429 | public Animator createAnimator(ViewGroup sceneRoot, TransitionValues startValues, TransitionValues endValues) {<NEW_LINE>if (startValues == null || endValues == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Rect startBounds = (Rect) <MASK><NEW_LINE>Rect endBounds = (Rect) endValues.values.get(PROPNAME_BOUNDS);<NEW_... | startValues.values.get(PROPNAME_BOUNDS); |
273,911 | private List<Integer> doSearch(String prefix) {<NEW_LINE>List<Integer> results = new ArrayList<Integer>();<NEW_LINE>int startIndex = 0;<NEW_LINE>int size = getRowCount();<NEW_LINE>if ((size == 0) || (getColumnCount() == 0)) {<NEW_LINE>// Empty table; cannot match anything.<NEW_LINE>return results;<NEW_LINE>}<NEW_LINE>i... | maxPrefix = findMaxPrefix(maxPrefix, s); |
1,358,767 | private void loadNode511() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfiguration_CertificateGroups_DefaultUserTokenGroup_TrustList_OpenWithMasks_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArgument... | setInput(new StringReader(xml)); |
1,362,262 | private void updateSlidingViews(SlidingAccessor[] slidingModeAccessors) {<NEW_LINE>Map<SlidingView, SlidingAccessor> newViews = new HashMap<SlidingView, SlidingAccessor>();<NEW_LINE>for (int i = 0; i < slidingModeAccessors.length; i++) {<NEW_LINE>SlidingAccessor sa = slidingModeAccessors[i];<NEW_LINE>SlidingView sv = (... | >(slidingModeViews.keySet()); |
110,444 | private static String convertBetweenTimeZones(MysqlDateTime mysqlDateTime, TimeZone fromTimeZone, TimeZone toTimeZone, long precision) throws Exception {<NEW_LINE>SimpleDateFormat sdf = new SimpleDateFormat(PATTERN_TIMESTAMP);<NEW_LINE>// Truncate the timestamp and leave the nanoseconds for use later.<NEW_LINE>long nan... | timestampStringConverted = sdf.format(timestampConverted); |
1,216,996 | public DoubleMatrix differentiateTwice(PiecewisePolynomialResult pp, double[] xKeys) {<NEW_LINE>ArgChecker.notNull(pp, "pp");<NEW_LINE>ArgChecker.isFalse(pp.getOrder() < 3, "polynomial degree < 2");<NEW_LINE><MASK><NEW_LINE>int nCoefs = pp.getOrder();<NEW_LINE>int rowCount = pp.getDimensions() * pp.getNumberOfIntervals... | DoubleArray knots = pp.getKnots(); |
250,852 | // select nearest mention to the left if: the quote is ending a paragraph.<NEW_LINE>public void paragraphEndQuoteClosestBefore(Annotation doc) {<NEW_LINE>List<CoreLabel> tokens = doc.get(CoreAnnotations.TokensAnnotation.class);<NEW_LINE>List<CoreMap> quotes = doc.get(CoreAnnotations.QuotationsAnnotation.class);<NEW_LIN... | get(CoreAnnotations.QuotationIndexAnnotation.class); |
368,575 | private Statement buildMoreCompletionEnclosingContext(Statement statement) {<NEW_LINE>IfStatement ifStatement = null;<NEW_LINE>int index = -1;<NEW_LINE>int blockIndex = lastIndexOfElement(K_BLOCK_DELIMITER);<NEW_LINE>int controlIndex = lastIndexOfElement(K_CONTROL_STATEMENT_DELIMITER);<NEW_LINE>int instanceOfIndex = la... | condition.sourceStart, ifStatement.sourceEnd); |
482,764 | public Request<DescribeReservedCacheNodesRequest> marshall(DescribeReservedCacheNodesRequest describeReservedCacheNodesRequest) {<NEW_LINE>if (describeReservedCacheNodesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeReservedCache... | request.addParameter("Action", "DescribeReservedCacheNodes"); |
87,866 | public void atBeforeInvoke(Class<?> clazz, String invokeInfo, Object target) {<NEW_LINE>ClassLoader classLoader = clazz.getClassLoader();<NEW_LINE>String[] info = StringUtils.splitInvokeInfo(invokeInfo);<NEW_LINE>String owner = info[0];<NEW_LINE>String methodName = info[1];<NEW_LINE>String methodDesc = info[2];<NEW_LIN... | getName(), invokeInfo, e); |
1,225,399 | public Serializer createSerializer() {<NEW_LINE>return new StreamSerializer<LinTrendAccumulator>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int getTypeId() {<NEW_LINE>return SerializerHookConstants.LIN_TREND_ACC;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void write(@Nonnull ObjectDataOutput out, @No... | i] = in.readByte(); |
321,168 | private ASTRewrite doAddField(CompilationUnit astRoot) {<NEW_LINE>SimpleName node = fOriginalNode;<NEW_LINE>boolean isInDifferentCU = false;<NEW_LINE>ASTNode <MASK><NEW_LINE>if (newTypeDecl == null) {<NEW_LINE>astRoot = ASTResolving.createQuickFixAST(getCompilationUnit(), null);<NEW_LINE>newTypeDecl = astRoot.findDecla... | newTypeDecl = astRoot.findDeclaringNode(fSenderBinding); |
405,884 | public void handle(HttpExchange t) throws IOException {<NEW_LINE>try {<NEW_LINE>String body = getBody(t);<NEW_LINE>Req req = gson.fromJson(body, Req.class);<NEW_LINE>if (req.names.length > 5) {<NEW_LINE>t.sendResponseHeaders(400, 0);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String traceId = getTraceId(t);<NEW_LINE>String[]... | ).set("Content-Type", "application/json"); |
1,107,130 | final PutAlertManagerDefinitionResult executePutAlertManagerDefinition(PutAlertManagerDefinitionRequest putAlertManagerDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putAlertManagerDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | endClientExecution(awsRequestMetrics, request, response); |
1,302,118 | public void preRecoverVm(VmInstanceInventory vm) {<NEW_LINE><MASK><NEW_LINE>String sql = "select ps.uuid" + " from PrimaryStorageVO ps, VolumeVO vol" + " where ps.uuid = vol.primaryStorageUuid" + " and vol.uuid = :uuid" + " and ps.type = :pstype";<NEW_LINE>TypedQuery<String> q = dbf.getEntityManager().createQuery(sql, ... | String rootVolUuid = vm.getRootVolumeUuid(); |
340,695 | void cleanUp() {<NEW_LINE>File[] modifiedFiles = cacheProvider.getAllIndexValues();<NEW_LINE>if (modifiedFiles.length > CACHE_SIZE_WARNING_THRESHOLD) {<NEW_LINE>// NOI18N<NEW_LINE>LOG.log(Level.WARNING, "Cache contains too many entries: {0}"<MASK><NEW_LINE>}<NEW_LINE>for (File file : modifiedFiles) {<NEW_LINE>FileInfor... | , (Integer) modifiedFiles.length); |
914,777 | void clear(FileTaskScanner scanner, FileObject... resources) throws IOException {<NEW_LINE>lock<MASK><NEW_LINE>ArrayList<Task> toRemove = null;<NEW_LINE>List<Task> tasks = fileScanner2tasks.get(scanner);<NEW_LINE>if (null != tasks) {<NEW_LINE>for (Task t : tasks) {<NEW_LINE>for (FileObject rc : resources) {<NEW_LINE>if... | .readLock().lock(); |
1,241,418 | public final Class<? extends Message> readMessageType(ByteBufferView buffer) {<NEW_LINE>Objects.requireNonNull(buffer);<NEW_LINE>if (!buffer.hasRemaining()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int position = buffer.position();<NEW_LINE>byte first = buffer.get();<NEW_LINE>if (first == PROTOCOL_NAME.length()) {<N... | messageType = handler.readMessageType(buffer); |
979,352 | protected void prepareInstall(File installDir) throws IOException {<NEW_LINE>createInfoPList(installDir);<NEW_LINE>generateDsym(installDir, getExecutable(), false);<NEW_LINE>if (isDeviceArch(arch)) {<NEW_LINE>// strip local symbols<NEW_LINE>strip(installDir, getExecutable());<NEW_LINE>// remove bitcode to minimize bina... | , getBundleId()), installDir); |
610,043 | public SketchInterval mapJavaToSketch(int startJavaOffset, int stopJavaOffset) {<NEW_LINE>int length = stopJavaOffset - startJavaOffset;<NEW_LINE>int startPdeOffset = javaOffsetToPdeOffset(startJavaOffset);<NEW_LINE>int stopPdeOffset;<NEW_LINE>if (length == 0) {<NEW_LINE>stopPdeOffset = startPdeOffset;<NEW_LINE>} else ... | = pdeCode.length() - 1; |
1,386,371 | public void updateSubstitutabilityMap() {<NEW_LINE>ElementDecl parent = this;<NEW_LINE>XSType type = this.getType();<NEW_LINE>boolean rused = false;<NEW_LINE>boolean eused = false;<NEW_LINE>while ((parent = (ElementDecl) parent.getSubstAffiliation()) != null) {<NEW_LINE>if (parent.isSubstitutionDisallowed(XSType.SUBSTI... | ).isSubstitutionProhibited(XSType.RESTRICTION); |
1,479,796 | public void execute(Job job, String configuration, ExecutionEntity execution, CommandContext commandContext) {<NEW_LINE>String nestedActivityId = TimerEventHandler.getActivityIdFromConfiguration(configuration);<NEW_LINE>ActivityImpl borderEventActivity = execution.getProcessDefinition().findActivity(nestedActivityId);<... | dispatchActivityTimeoutIfNeeded(job, execution, commandContext); |
806,340 | private boolean checkSignatureAlgorithms(WSSecurityEngineResult result, AlgorithmSuite algorithmPolicy, AssertionInfo ai) {<NEW_LINE>String signatureMethod = (String) <MASK><NEW_LINE>if (!algorithmPolicy.getAlgorithmSuiteType().getAsymmetricSignature().equals(signatureMethod) && !algorithmPolicy.getAlgorithmSuiteType()... | result.get(WSSecurityEngineResult.TAG_SIGNATURE_METHOD); |
1,425,250 | public void processMessage(final WebSocketMessage webSocketData) {<NEW_LINE>setDoTransactionNotifications(true);<NEW_LINE>final Map<String, Object> nodeData = webSocketData.getNodeData();<NEW_LINE>final String parentId = (String) nodeData.get("parentId");<NEW_LINE>final String refId = (String) nodeData.get("refId");<NE... | ).build(), true); |
572,555 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,195,973 | public final ChainableAtomicWithOptContext chainableAtomicWithOpt() throws RecognitionException {<NEW_LINE>ChainableAtomicWithOptContext _localctx = new ChainableAtomicWithOptContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 464, RULE_chainableAtomicWithOpt);<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<... | _errHandler.reportError(this, re); |
1,593,872 | // public void setContext(Context mCtx)<NEW_LINE>// {<NEW_LINE>// if (CordovaInterface.class.isInstance(mCtx))<NEW_LINE>// cordova = (CordovaInterface) mCtx;<NEW_LINE>// else<NEW_LINE>// LOG.d(LOG_TAG, "ERROR: You must use the CordovaInterface for this to work correctly. Please implement it in your activity");<NEW_LINE... | ), PackageManager.GET_PERMISSIONS).requestedPermissions; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.