idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
960,126 | private void makeActions() {<NEW_LINE>// Depth<NEW_LINE>createDepthActions();<NEW_LINE>// Viewpoints<NEW_LINE>createViewpointActions();<NEW_LINE>// Elements<NEW_LINE>createElementsActions();<NEW_LINE>// Relationships<NEW_LINE>createRelationshipsActions();<NEW_LINE>// Direction<NEW_LINE>createDirectionActions();<NEW_LIN... | .getImageDescriptor(IArchiImages.ICON_PIN)); |
1,357,589 | public Invite unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Invite invite = new Invite();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (t... | int originalDepth = context.getCurrentDepth(); |
744,335 | // Limit & Offset Clause<NEW_LINE>private void parseLimitClause(IoTDBSqlParser.LimitClauseContext ctx, Operator operator) {<NEW_LINE>int limit;<NEW_LINE>try {<NEW_LINE>limit = Integer.parseInt(ctx.<MASK><NEW_LINE>} catch (NumberFormatException e) {<NEW_LINE>throw new SQLParserException("Out of range. LIMIT <N>: N shoul... | INTEGER_LITERAL().getText()); |
1,513,589 | public static ListPwnedPasswordsResponse unmarshall(ListPwnedPasswordsResponse listPwnedPasswordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listPwnedPasswordsResponse.setRequestId(_ctx.stringValue("ListPwnedPasswordsResponse.RequestId"));<NEW_LINE>listPwnedPasswordsResponse.setPageNumber(_ctx.longValue("ListPwnedPa... | = new ArrayList<Items>(); |
1,696,107 | public void configure(Configuration config, HistoryRecordComparator comparator, DatabaseHistoryListener listener, boolean useCatalogBeforeSchema) {<NEW_LINE>Collection var10001 = ALL_FIELDS;<NEW_LINE>Logger var10002 = this.logger;<NEW_LINE>Objects.requireNonNull(var10002);<NEW_LINE>if (!config.validateAndRecord(var1000... | ).getSimpleName() + "; check the logs for details"); |
1,089,882 | final PutResourcePolicyResult executePutResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putResourcePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | (super.beforeMarshalling(putResourcePolicyRequest)); |
712,076 | private void onNextInternal(AggregateStreamMessage value) {<NEW_LINE>switch(value.getMessageCase()) {<NEW_LINE>case STREAM_HEADER:<NEW_LINE>streamHeader = value.getStreamHeader();<NEW_LINE>break;<NEW_LINE>case SHARED_QUERY_TEXT:<NEW_LINE>sharedQueryTexts.add(value.getSharedQueryText());<NEW_LINE>break;<NEW_LINE>case OV... | TransactionAggregate transactionAggregate = value.getTransactionAggregate(); |
1,458,996 | public static String dependenciesToCoNLLXString(Collection<TypedDependency> deps, CoreMap sentence) {<NEW_LINE>StringBuilder bf = new StringBuilder();<NEW_LINE>HashMap<Integer, TypedDependency> indexedDeps = new HashMap<>(deps.size());<NEW_LINE>for (TypedDependency dep : deps) {<NEW_LINE>indexedDeps.put(dep.dep().index... | ().index() : 0; |
504,489 | private void runTest(String testMethod, PrintWriter pw, HttpServletRequest req, HttpServletResponse resp) {<NEW_LINE>try {<NEW_LINE>Method testM = this.getClass().getDeclaredMethod(testMethod, new Class[] { Map.class, StringBuilder.class });<NEW_LINE>Map<String, String> m = new HashMap<String, String>();<NEW_LINE>Itera... | "context", req.getContextPath()); |
1,250,234 | public boolean askPassword(ExecutionEnvironment execEnv, String prompt) {<NEW_LINE>tfUser.<MASK><NEW_LINE>String hostName = execEnv.getHost();<NEW_LINE>if (execEnv.getSSHPort() != 22) {<NEW_LINE>// NOI18N<NEW_LINE>hostName += ":" + execEnv.getSSHPort();<NEW_LINE>}<NEW_LINE>// NOI18N<NEW_LINE>tfHost.setText(hostName);<N... | setText(execEnv.getUser()); |
1,025,371 | private void initStatistics() {<NEW_LINE>DefaultFFTData defaultFFTData = new DefaultFFTData(3, 4, 2);<NEW_LINE>double[] data = convertToDouble(StatisticsFragment.parsedData);<NEW_LINE>double[][] dfftData = dataForCalculations(data);<NEW_LINE>defaultFFTData.updateFFTData(dfftData);<NEW_LINE>int[] calculatedValues = defa... | valueOf(calculatedValues[2])); |
560,989 | private Optional<TextEdit> adaptEdits(TextDocument doc, DocumentEdits edits, AtomicBoolean usedSnippets) {<NEW_LINE>try {<NEW_LINE>TextReplace replaceEdit = edits.asReplacement(doc);<NEW_LINE>if (usedSnippets != null) {<NEW_LINE>usedSnippets.set(edits.hasSnippets());<NEW_LINE>}<NEW_LINE>if (replaceEdit == null) {<NEW_L... | IRegion selection = edits.getSelection(); |
1,541,539 | public void assign(DoubleMatrix1D y, DoubleDoubleFunction function, IntArrayList nonZeroIndexes) {<NEW_LINE>checkSize(y);<NEW_LINE>int[] nonZeroElements = nonZeroIndexes.elements();<NEW_LINE>// specialized for speed<NEW_LINE>if (function == Functions.MULT) {<NEW_LINE>// x[i] = x[i] * y[i]<NEW_LINE>int j = 0;<NEW_LINE>f... | PlusMult) function).getMultiplicator(); |
36,540 | private void loadNode1211() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionsDiagnosticsSummaryType_ClientName_Placeholder_SessionDiagnostics_LocaleIds, new QualifiedName(0, "LocaleIds"), new LocalizedText("en", "LocaleIds"), LocalizedText.NULL_VALUE, UInteger.va... | .expanded(), true)); |
704,950 | public double[] kg(double dist) {<NEW_LINE>double d = dist / sigma;<NEW_LINE>double k, g;<NEW_LINE>if (nu == 1.5) {<NEW_LINE>d *= SQRT3;<NEW_LINE>k = (1.0 + d) * Math.exp(-d);<NEW_LINE>g = (2.0 + d) * Math.exp(-d) * d / sigma;<NEW_LINE>} else if (nu == 2.5) {<NEW_LINE>d *= SQRT5;<NEW_LINE>k = (1.0 + d + d * d / 3) * Ma... | (-d) * d / sigma; |
1,473,498 | private boolean fillRouteInfoAttributeArrays(List<Float> tx, List<Float> ty, List<Double> angles, List<Double> distances, List<GeometryWayStyle<?>> styles) {<NEW_LINE>List<Integer> palette = fetchColorsOfRouteInfoAttribute();<NEW_LINE>if (Algorithms.isEmpty(palette)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int rat... | (colors.get(i)); |
355,556 | public static /* Start PK95911 */<NEW_LINE>SAXParser newSAXParser(final boolean setNamespaceAware, final boolean setValidating) throws FactoryConfigurationError, ParserConfigurationException, SAXException {<NEW_LINE>try {<NEW_LINE>return (SAXParser) AccessController.doPrivileged(new PrivilegedExceptionAction() {<NEW_LI... | ParserFactory.class.getClassLoader()); |
30,565 | protected void addPlot(ChartPlotter plotter) {<NEW_LINE>{<NEW_LINE>// Values<NEW_LINE>XYSeries series = projection.getValueSeries();<NEW_LINE>series.setKey("Time");<NEW_LINE>plotter.add(series, Color.BLUE);<NEW_LINE>}<NEW_LINE>if (range.hasStart() || (staff.getTimeStop() != null)) {<NEW_LINE>// Area limits<NEW_LINE>// ... | stop, staff.getHeight()); |
487,379 | final GetBuiltinIntentResult executeGetBuiltinIntent(GetBuiltinIntentRequest getBuiltinIntentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBuiltinIntentRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetBuiltinIntentRequest> ... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
955,308 | private MenuBar createMenuBar(GoogleAutoRefreshThread autoRefreshThread) {<NEW_LINE>MenuItem logoutItem = new MenuItem("Logout");<NEW_LINE>logoutItem.setOnAction(evt -> logout());<NEW_LINE>MenuItem exitItem = new MenuItem("Exit");<NEW_LINE>exitItem.setAccelerator(KeyCombination.keyCombination("shortcut+q"));<NEW_LINE>e... | MenuItem refreshItem = new MenuItem("Refresh"); |
404,917 | public ProcessInstanceRepresentation startNewProcessInstance(CreateProcessInstanceRepresentation startRequest) {<NEW_LINE>if (StringUtils.isEmpty(startRequest.getProcessDefinitionId())) {<NEW_LINE>throw new BadRequestException("Process definition id is required");<NEW_LINE>}<NEW_LINE>ProcessDefinition processDefinition... | getUser(processInstance.getStartUserId()); |
435,620 | public com.satoshilabs.trezor.lib.protobuf.TrezorType.TxOutputBinType buildPartial() {<NEW_LINE>com.satoshilabs.trezor.lib.protobuf.TrezorType.TxOutputBinType result = new com.satoshilabs.trezor.lib.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x0000... | protobuf.TrezorType.TxOutputBinType(this); |
1,093,804 | public void marshall(AssessmentTemplate assessmentTemplate, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (assessmentTemplate == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarsha... | assessmentTemplate.getArn(), ARN_BINDING); |
1,021,198 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.impetus.kundera.client.Client#persistJoinTable(com.impetus.kundera<NEW_LINE>* .persistence.context.jointable.JoinTableData)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void persistJoinTable(JoinTableData joinTableData) {<NEW_LINE>String tableName ... | joinTableData.getJoinColumnName(), key); |
77,257 | private void executeQuery() {<NEW_LINE>searched = true;<NEW_LINE>productLookupComboBox.removeAllItems();<NEW_LINE>productLookupComboBox.addItem(new KeyNamePair(0, title));<NEW_LINE>selectLock = true;<NEW_LINE>for (java.util.Vector<Object> columns : CPOS.getQueryProduct(fieldProductName.getText(), warehouseId, priceList... | String) columns.elementAt(4); |
1,564,158 | protected ComponentState calculateComponentState(Entity entity, MetaPropertyPath propertyPath) {<NEW_LINE>ComponentState componentState = new ComponentState();<NEW_LINE>if (propertyPath == null) {<NEW_LINE>return componentState;<NEW_LINE>}<NEW_LINE>MetaProperty[] metaProperties = propertyPath.getMetaProperties();<NEW_L... | entity = entity.getValue(name); |
1,332,613 | private List<OrderLineCandidate> execute0() {<NEW_LINE>final ProductId bomProductId = initialCandidate.getProductId();<NEW_LINE>final I_PP_Product_BOM bom = bomRepo.getDefaultBOMByProductId(bomProductId).orElse(null);<NEW_LINE>if (bom == null) {<NEW_LINE>return ImmutableList.of(initialCandidate);<NEW_LINE>}<NEW_LINE>fi... | build().execute0()); |
1,815,385 | static boolean uninstallAddOnLibs(AddOn addOn) {<NEW_LINE>List<AddOn.Lib> libs = addOn.getLibs();<NEW_LINE>if (libs.isEmpty()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Path addOnLibsDir = getAddOnLibsDir(addOn);<NEW_LINE>try {<NEW_LINE>deleteDir(addOnLibsDir);<NEW_LINE>} catch (IOException e) {<NEW_LINE>logger.error... | Path addOnDataDir = addOnLibsDir.getParent(); |
429,956 | public void init() throws ServletException {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>DataSource ds = (DataSource) new InitialContext().lookup("jdbc/derby2fat");<NEW_LINE>Connection conn = ds.getConnection();<NEW_LINE>try {<NEW_LINE>Statement stmt1 = conn.createStatement();<NEW_LINE>stmt1.executeUpdate("create schema db... | System.out.println("Creating database for DatabaseIdentityStore"); |
114,908 | private Object mapValue(Map<String, Object> options, String key, Map<String, Object> map) {<NEW_LINE>Object out = null;<NEW_LINE>if (map.containsKey(key)) {<NEW_LINE>out = map.get(key);<NEW_LINE>} else if (key.contains(".")) {<NEW_LINE>String[] keys = key.split("\\.");<NEW_LINE>out = map.get(keys[0]);<NEW_LINE>for (int... | out = objectToMap(options, out); |
11,089 | private void loadGvFromFile(InputStream gvStream, String par, boolean gradientMethod, double gvWeight) throws IOException {<NEW_LINE>int numMSDFlag, numStream, vectorSize, numDurPdf;<NEW_LINE>DataInputStream data_in;<NEW_LINE>int m, i;<NEW_LINE>data_in = new DataInputStream(new BufferedInputStream(gvStream));<NEW_LINE>... | gvcovInvLf0, vectorSize, gradientMethod, gvWeight); |
277,749 | public void marshall(EmailChannelResponse emailChannelResponse, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (emailChannelResponse == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(emailChannelResponse.get... | emailChannelResponse.getMessagesPerSecond(), MESSAGESPERSECOND_BINDING); |
1,349,164 | public final FilterContext filter() throws RecognitionException {<NEW_LINE>FilterContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 10, RULE_filter);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(69);<NEW_LINE>match(QUESTION);<NEW_LINE>setState(70);<NEW_LI... | FilterContext(_ctx, getState()); |
1,305,085 | private static JPanel createButtons(@Nonnull Notification notification, @Nonnull final JPanel content, @Nullable HyperlinkListener listener) {<NEW_LINE>if (notification instanceof NotificationActionProvider) {<NEW_LINE>JPanel buttons = new <MASK><NEW_LINE>buttons.setOpaque(false);<NEW_LINE>content.add(BorderLayout.SOUT... | JPanel(new HorizontalLayout(5)); |
1,802,108 | private void addRelatedVertexProperties(final Element element, final RelatedVertices relatedVertices, final String prefix, final Object combinedVertex) {<NEW_LINE>if (nonNull(relatedVertices)) {<NEW_LINE>if (relatedVertices.size() > 1) {<NEW_LINE>String propertyName;<NEW_LINE>if (StringUtils.isNotEmpty(prefix)) {<NEW_L... | >) element.getProperty(propertyName); |
103,879 | public Artifact newFile(Object var1, Object var2, Object fileSuffix) throws EvalException {<NEW_LINE>checkMutable("new_file");<NEW_LINE>checkDeprecated("ctx.actions.declare_file", "ctx.new_file", getStarlarkSemantics());<NEW_LINE>// Determine which of new_file's four signatures is being used. Yes, this is terrible.<NEW... | var2, Artifact.class, "expected second param to be of type 'File'"); |
6,055 | final GetLaunchTemplateDataResult executeGetLaunchTemplateData(GetLaunchTemplateDataRequest getLaunchTemplateDataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLaunchTemplateDataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | endClientExecution(awsRequestMetrics, request, response); |
1,845,932 | public WorkflowProcess defineProcess() {<NEW_LINE>// Configuration process<NEW_LINE>WorkflowProcess process = new WorkflowProcess();<NEW_LINE>process.setName(getProcessName().name());<NEW_LINE>process.setType(getProcessName().getDisplayName());<NEW_LINE>process.setDisplayName(getProcessName().getDisplayName());<NEW_LIN... | initSortTask.setServiceTaskType(ServiceTaskType.INIT_SORT); |
1,729,645 | public static IntTimestampGetter newInstance(@Nonnull TimestampGetter delegateGetter, int blockSize) {<NEW_LINE>if (delegateGetter.size() < 0)<NEW_LINE>throw new NegativeArraySizeException(<MASK><NEW_LINE>if (delegateGetter.size() == 0)<NEW_LINE>throw new IllegalArgumentException("Empty TimestampGetter not supported");... | "delegateGetter.size() < 0: " + delegateGetter.size()); |
339,986 | public void draw(Canvas canvas) {<NEW_LINE>Rect bounds = getBounds();<NEW_LINE>// Draw bounding box<NEW_LINE>mPaint.setStyle(Paint.Style.STROKE);<NEW_LINE>mPaint.setStrokeWidth(OUTLINE_STROKE_WIDTH_PX);<NEW_LINE>mPaint.setColor(OUTLINE_COLOR);<NEW_LINE>canvas.drawRect(bounds.left, bounds.top, bounds.right, bounds.botto... | , (mImageSizeBytes / 1024))); |
840,660 | private StoragePoolVO createChildDatastoreVO(StoragePoolVO datastoreClusterPool, ModifyStoragePoolAnswer childDataStoreAnswer) {<NEW_LINE>StoragePoolInfo childStoragePoolInfo = childDataStoreAnswer.getPoolInfo();<NEW_LINE>List<String> storageTags = _storagePoolTagsDao.getStoragePoolTags(datastoreClusterPool.getId());<N... | setHostAddress(childStoragePoolInfo.getHost()); |
505,484 | public DocIdAndVersion lookupVersion(BytesRef id, boolean loadSeqNo, LeafReaderContext context) throws IOException {<NEW_LINE>assert readerKey == null || context.reader().getCoreCacheHelper().getKey().equals(readerKey) : "context's reader is not the same as the reader class was initialized on.";<NEW_LINE>int docID = ge... | ), SeqNoFieldMapper.NAME, docID); |
123,180 | public void insertHyperlink() {<NEW_LINE>// retrieve caret position<NEW_LINE><MASK><NEW_LINE>// the button for editing the spellchecking-words was pressed,<NEW_LINE>// so open the window for edting them...<NEW_LINE>if (null == hyperlinkEditDlg) {<NEW_LINE>// get parent und init window<NEW_LINE>hyperlinkEditDlg = new CI... | int caret = jTextAreaEntry.getCaretPosition(); |
30,488 | public Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next) {<NEW_LINE>if ((boolean) context.getData(DISABLE_TRACING_KEY).orElse(false)) {<NEW_LINE>return next.process();<NEW_LINE>}<NEW_LINE>Span parentSpan = (Span) context.getData(PARENT_TRACE_CONTEXT_KEY).orElse(tracer.currentSpan(... | addSpanRequestAttributes(span, request, context); |
1,793,162 | final DeleteSchedulingPolicyResult executeDeleteSchedulingPolicy(DeleteSchedulingPolicyRequest deleteSchedulingPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSchedulingPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
719,956 | public Map<String, Object> updateNode(String userName, AbstractAppConnNode node) throws ExternalOperationFailedException {<NEW_LINE>NodeInfo nodeInfo = nodeInfoMapper.getWorkflowNodeByType(node.getNodeType());<NEW_LINE>AppConn appConn = AppConnManager.getAppConnManager().getAppConn(nodeInfo.getAppConnName());<NEW_LINE>... | setOrcName(node.getFlowName()); |
109,716 | private static Difference[] parseContextDiff(Reader in) throws IOException {<NEW_LINE>BufferedReader br = new BufferedReader(in);<NEW_LINE>ArrayList<Difference> diffs = new ArrayList<Difference>();<NEW_LINE>String line = null;<NEW_LINE>do {<NEW_LINE>if (line == null || !DIFFERENCE_DELIMETER.equals(line)) {<NEW_LINE>do ... | = new ArrayList<Object>(); |
1,825,627 | private void computeFirstHighlights() {<NEW_LINE>List<HighLight> hilites = new ArrayList<HighLight>();<NEW_LINE>Document doc = leftContentPanel.getEditorPane().getDocument();<NEW_LINE>DecoratedDifference[] decorations = decorationsCached;<NEW_LINE>for (DecoratedDifference dd : decorations) {<NEW_LINE>if (Thread.interru... | computeFirstRowHilites(start, firstRow, secondRow); |
1,141,234 | final AssociateInstanceEventWindowResult executeAssociateInstanceEventWindow(AssociateInstanceEventWindowRequest associateInstanceEventWindowRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateInstanceEventWindowRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,102,660 | private void init(Shell parent, String url, int w, int h, boolean allowResize, boolean isModal) {<NEW_LINE>if (parent == null) {<NEW_LINE>parent = Utils.findAnyShell();<NEW_LINE>}<NEW_LINE>int style = SWT.DIALOG_TRIM;<NEW_LINE>if (allowResize) {<NEW_LINE>style |= SWT.RESIZE;<NEW_LINE>}<NEW_LINE>if (isModal) {<NEW_LINE>... | shell.setText(event.title); |
817,219 | public final void typeParameterBounds() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST typeParameterBounds_AST = null;<NEW_LINE>Token first = LT(1);<NEW_LINE>match(LITERAL_extends);<NEW_LINE>nls();<NEW_LINE>classOrInterfaceType(tr... | ? typeParameterBounds_AST.getFirstChild() : typeParameterBounds_AST; |
1,851,687 | private void prepareKeyBlob() throws IOException {<NEW_LINE>try {<NEW_LINE>Point ecPoint = Point.createPoint(msg.getComputations().getClientPublicKeyX().getValue(), msg.getComputations().getClientPublicKeyY().getValue(), chooser.getSelectedGostCurve());<NEW_LINE>SubjectPublicKeyInfo ephemeralKey = SubjectPublicKeyInfo.... | DERSequence.getInstance(getProxyKeyBlobs()); |
1,447,729 | protected void layoutLayout() {<NEW_LINE>Rectangle size = getClientArea();<NEW_LINE>if (expanded) {<NEW_LINE>int y = size.height - SASH_HEIGHT - BORDER_HEIGHT - titleHeight - drawerHeight;<NEW_LINE>main.setBounds(0, 0, size.width, y);<NEW_LINE>sash.setBounds(0, y, size.width, SASH_HEIGHT);<NEW_LINE>sash.setVisible(true... | 0, size.width, y); |
1,664,563 | private BType readBType(DataInputStream dataInStream) throws IOException {<NEW_LINE>int typeCpIndex = dataInStream.readInt();<NEW_LINE>CPEntry cpEntry = this.env.constantPool[typeCpIndex];<NEW_LINE>BType type = null;<NEW_LINE>if (cpEntry != null) {<NEW_LINE>type = ((<MASK><NEW_LINE>if (type.tag != TypeTags.INVOKABLE) {... | CPEntry.ShapeCPEntry) cpEntry).shape; |
1,807,716 | void folderChanged(String folderName) throws IOException {<NEW_LINE>synchronized (fileSystem) {<NEW_LINE>GhidraFolderData <MASK><NEW_LINE>if (folderData != null) {<NEW_LINE>try {<NEW_LINE>folderData.updateExistenceState();<NEW_LINE>} catch (IOException e) {<NEW_LINE>// ignore<NEW_LINE>}<NEW_LINE>if (folderData.versione... | folderData = folderDataCache.get(folderName); |
157,624 | private boolean commitMetadataRaftGroupInit(CPMemberInfo localCPMemberCandidate, List<CPMemberInfo> discoveredCPMembers) {<NEW_LINE>List<CPMemberInfo> metadataMembers = discoveredCPMembers.subList(0, config.getGroupSize());<NEW_LINE>RaftGroupId metadataGroupId = getMetadataGroupId();<NEW_LINE>try {<NEW_LINE>// By defau... | metadataEndpoints = new ArrayList<>(); |
1,227,731 | public ResponseEntity<Void> createUsersWithListInputWithHttpInfo(List<User> body) throws RestClientException {<NEW_LINE>Object postBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required p... | final String[] accepts = {}; |
727,619 | public final void handleReversalForInvoice(final org.compiere.model.I_C_Invoice invoice) {<NEW_LINE>final IInvoiceDAO invoiceDAO = Services.get(IInvoiceDAO.class);<NEW_LINE>final int reversalInvoiceId = invoice.getReversal_ID();<NEW_LINE>Check.assume(reversalInvoiceId > invoice.<MASK><NEW_LINE>final org.compiere.model.... | getC_Invoice_ID(), "Invoice {} shall be the original invoice and not it's reversal", invoice); |
361,232 | public static List<RegressionExecution> executions() {<NEW_LINE>List<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new EventJsonTypingWriteBasicType());<NEW_LINE>execs.add(new EventJsonTypingWriteBasicTypeArray());<NEW_LINE>execs.add(new EventJsonTypingWriteBasicTypeArray2Dim());<NEW_LINE>execs.add... | .add(new EventJsonTypingWriteMapType()); |
1,699,599 | public static DescribeStoragePlanResponse unmarshall(DescribeStoragePlanResponse describeStoragePlanResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeStoragePlanResponse.setRequestId(_ctx.stringValue("DescribeStoragePlanResponse.RequestId"));<NEW_LINE>describeStoragePlanResponse.setTotalRecordCount(_ctx.longValue(... | (_ctx.longValue("DescribeStoragePlanResponse.PageNumber")); |
1,518,048 | public void updateNeighbors(BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int recursionLimit) {<NEW_LINE>ServerLevel world = getWorld();<NEW_LINE>// a == updateNeighbors<NEW_LINE>// b == updateDiagonalNeighbors<NEW_LINE>oldState.updat... | , CraftBlockData.fromData(newState)); |
117,643 | final GetPermissionResult executeGetPermission(GetPermissionRequest getPermissionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPermissionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | (super.beforeMarshalling(getPermissionRequest)); |
1,292,974 | private ExtractedJarEntry extractJarEntry(URL url) {<NEW_LINE>try {<NEW_LINE>JarURLConnection jarUrlConnection = <MASK><NEW_LINE>JarFile jarFile = jarUrlConnection.getJarFile();<NEW_LINE>JarEntry jarEntry = jarUrlConnection.getJarEntry();<NEW_LINE>if (jarEntry.isDirectory()) {<NEW_LINE>// a directory<NEW_LINE>return ne... | (JarURLConnection) url.openConnection(); |
819,113 | public void apply(MethodHolder method) {<NEW_LINE>MethodDependencyInfo methodDep = dependency.getMethod(method.getReference());<NEW_LINE>if (methodDep == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Program program = method.getProgram();<NEW_LINE>if (shouldLog) {<NEW_LINE>System.out.println("DEVIRTUALIZATION running at... | block = program.basicBlockAt(i); |
602,120 | public static Properties loadAllProperties(String resourceName, ResourceLoader classLoader) {<NEW_LINE>Assert.isNotNull(resourceName, "Resource name must not be null");<NEW_LINE>ResourceLoader classLoaderToUse = classLoader;<NEW_LINE>if (classLoaderToUse == null) {<NEW_LINE>classLoaderToUse = ResourceLoader.NULL;<NEW_L... | URLConnection con = url.openConnection(); |
1,215,197 | protected URI resolveUsingApacheCatalog(List<File> catalogFileList, String locationURI) throws CatalogModelException, IOException {<NEW_LINE>if ((logger.getLevel() != null) && (logger.getLevel().intValue() <= Level.FINER.intValue())) {<NEW_LINE>Debug debug = NbCatalogManager.getStaticManager().debug;<NEW_LINE>debug.set... | URI res = new URI(result); |
1,827,830 | private DataStreamSink<?> consume(DataStream<RowData> dataStream, boolean isBounded, DataStructureConverter converter) {<NEW_LINE>checkAcidTable(catalogTable, identifier.toObjectPath());<NEW_LINE>try (HiveMetastoreClientWrapper client = HiveMetastoreClientFactory.create(HiveConfUtils.create(jobConf), hiveVersion)) {<NE... | , table), hiveShim, isCompressed); |
811,919 | private void calculateRecordsLSNs() {<NEW_LINE>final List<OWALRecord> unassignedList = new ArrayList<>();<NEW_LINE>Cursor<OWALRecord> cursor = records.peekLast();<NEW_LINE>while (cursor != null) {<NEW_LINE>final OWALRecord record = cursor.getItem();<NEW_LINE>final OLogSequenceNumber lsn = record.getLsn();<NEW_LINE>if (... | record, prevRecord, pageSize, maxRecordSize); |
519,418 | private void initializeViews() {<NEW_LINE>setContentView(R.layout.activity_pc_view);<NEW_LINE>UiHelper.notifyNewRootView(this);<NEW_LINE>// Set default preferences if we've never been run<NEW_LINE>PreferenceManager.setDefaultValues(this, R.xml.preferences, false);<NEW_LINE>// Set the correct layout for the PC grid<NEW_... | .this, StreamSettings.class)); |
532,646 | private void putAZipEntryWithNonZipExtension(File appFile, File tempFile) throws IOException {<NEW_LINE>try (JarFile appJar = new JarFile(appFile)) {<NEW_LINE>byte[] buffer = new byte[4096];<NEW_LINE>int len;<NEW_LINE>HashSet<String> zipEntries = new HashSet<>();<NEW_LINE>try (JarOutputStream jos = new JarOutputStream(... | String entryName = entry.getName(); |
49,981 | public void testSLTimerServiceBeanMethod() throws Exception {<NEW_LINE>// --------------------------------------------------------------------<NEW_LINE>// Locate Home and Create a Bean to test it<NEW_LINE>// --------------------------------------------------------------------<NEW_LINE>StatelessTimedHome SLTHome = (Stat... | StatelessTimedObject slt = SLTHome.create(); |
890,997 | public void visitNewArrayFunctionRef(ENewArrayFunctionRef userNewArrayFunctionRefNode, ScriptScope scriptScope) {<NEW_LINE>ExpressionNode irReferenceNode;<NEW_LINE>if (scriptScope.hasDecoration(userNewArrayFunctionRefNode, TargetType.class)) {<NEW_LINE>TypedInterfaceReferenceNode typedInterfaceReferenceNode = new Typed... | Collections.singletonList("size"))); |
250,551 | public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {<NEW_LINE>protoPortsAndSecurityGroupNameSearch = createSearchBuilder();<NEW_LINE>protoPortsAndSecurityGroupNameSearch.and("proto", protoPortsAndSecurityGroupNameSearch.entity().getProtocol(), SearchCriteria.Op.EQ);<NEW_LINE... | ), JoinBuilder.JoinType.INNER); |
320,910 | private void drawIcon(Graphics graphics) {<NEW_LINE>if (!isIconVisible()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>graphics.pushState();<NEW_LINE>graphics.setLineWidth(1);<NEW_LINE>graphics.setForegroundColor(isEnabled() ? ColorConstants.black : ColorConstants.gray);<NEW_LINE>Point pt = getIconOrigin();<NEW_LINE>// head<... | x + 8, pt.y); |
328,097 | final StartBuildResult executeStartBuild(StartBuildRequest startBuildRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startBuildRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<StartBuildRequest> request = nu... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
69,753 | public void delete(String namespace) throws AccumuloException, AccumuloSecurityException, NamespaceNotFoundException, NamespaceNotEmptyException {<NEW_LINE>EXISTING_NAMESPACE_NAME.validate(namespace);<NEW_LINE>NamespaceId namespaceId = Namespaces.getNamespaceId(context, namespace);<NEW_LINE>if (namespaceId.equals(Names... | namespace.getBytes(UTF_8))); |
792,782 | public static void generateKeyStore(String password, String commonName, String organizationalUnit, String organizationName, String locality, String state, String country) throws Exception {<NEW_LINE>String dnamePlaceholder = "CN=%s, OU=%s, O=%s, L=%s, S=%s, C=%s";<NEW_LINE>String dname = String.format(dnamePlaceholder,... | result.getStderr(), '\n'); |
1,216,098 | public static DescribeServerRelatedGlobalAccelerationInstancesResponse unmarshall(DescribeServerRelatedGlobalAccelerationInstancesResponse describeServerRelatedGlobalAccelerationInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeServerRelatedGlobalAccelerationInstancesResponse.setRequestId(_ctx.stringValue... | ("DescribeServerRelatedGlobalAccelerationInstancesResponse.GlobalAccelerationInstances[" + i + "].RegionId")); |
1,468,681 | static void onExchangeRates(ExchangeRateDTO[] rates) {<NEW_LINE>System.out.println(">>>>>>>>>>>>>> async onExchangeRates in Java");<NEW_LINE>if (rates != null) {<NEW_LINE>System.out.println("rates length: " + rates.length);<NEW_LINE>System.out.println("+-------------------------------------------------------");<NEW_LIN... | System.out.println("+-------------------------------------------------------"); |
503,724 | final DeleteTaskResult executeDeleteTask(DeleteTaskRequest deleteTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
523,783 | private void encodeDisabledMenuItem(FacesContext context, MenuItem menuItem) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE><MASK><NEW_LINE>String styleClass = getStyleClassBuilder(context).add(BreadCrumb.MENUITEM_LINK_CLASS).add(menuItem.getStyleClass()).add("ui-state-disab... | String style = menuItem.getStyle(); |
1,174,057 | static void populateBuiltInHandlers(TypeHandlerLibrary typeHandlerLibrary) {<NEW_LINE>typeHandlerLibrary.addTypeHandler(Boolean.class, new BooleanTypeHandler());<NEW_LINE>typeHandlerLibrary.addTypeHandler(Boolean.TYPE, new BooleanTypeHandler());<NEW_LINE>typeHandlerLibrary.addTypeHandler(Byte.class, new ByteTypeHandler... | .class, new LocaleTypeHandler()); |
514,622 | static void c_5() throws Exception {<NEW_LINE>// load pipeline model<NEW_LINE>PipelineModel feature_pipelineModel = PipelineModel.load(DATA_DIR + FEATURE_MODEL_FILE);<NEW_LINE>BatchOperator initModel = new AkSourceBatchOp(<MASK><NEW_LINE>// prepare stream train data<NEW_LINE>CsvSourceStreamOp data = new CsvSourceStream... | ).setFilePath(DATA_DIR + INIT_MODEL_FILE); |
1,048,594 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>// single variable<NEW_LINE>env.compileDeploy("@Name('S0') @public create variable boolean var2vmd = true", path);<NEW_LINE>env.compileDeploy("@Name('S1') select * from SupportBean(var2vmd)", path);<NEW_LINE>asser... | deploymentId("S0"), "var2vmd")); |
1,265,936 | private int addArchivePartToPDF0(@NonNull final PrintingData data, @NonNull final PrintingSegment segment) throws IOException {<NEW_LINE>if (!data.hasData()) {<NEW_LINE>logger.info("PrintingData {} does not contain any data; -> returning", data);<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>logger.debug("Adding data={}; segm... | .getImportedPage(reader, page)); |
282,830 | <ToModelType> QueryInsertExecutorResult executeInsert(@NonNull final QueryInsertExecutor<ToModelType, T> queryInserter) {<NEW_LINE>Check.assume(!queryInserter.isEmpty(), "At least one column to be inserted needs to be specified: {}", queryInserter);<NEW_LINE>final List<Object> sqlParams = new ArrayList<>();<NEW_LINE>fi... | String toKeyColumnName = queryInserter.getToKeyColumnName(); |
1,458,744 | public static DescribeIpWhitelistResponse unmarshall(DescribeIpWhitelistResponse describeIpWhitelistResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeIpWhitelistResponse.setRequestId(_ctx.stringValue("DescribeIpWhitelistResponse.RequestId"));<NEW_LINE>List<Group> groups = new ArrayList<Group>();<NEW_LINE>for (int ... | + "].IpList[" + j + "]")); |
1,744,504 | public CreateApplicationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateApplicationResult createApplicationResult = new CreateApplicationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI... | class).unmarshall(context)); |
997,309 | public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>if (super.onOptionsItemSelected(item)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (item.getItemId() == R.id.menu_delete_feed) {<NEW_LINE>deleteFeed();<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (item.getItemId() == R.id.menu_notifications_disable) {<N... | FeedUtils.disableNotifications(this, feed); |
1,199,427 | public GridBoundsChange performAction(GridManager gridManager, DesignerContext context) {<NEW_LINE>GridInfoProvider gridInfo = gridManager.getGridInfo();<NEW_LINE>boolean gapSupport = gridInfo.hasGaps();<NEW_LINE>int[] originalColumnBounds = gridInfo.getColumnBounds();<NEW_LINE>int[] originalRowBounds = gridInfo.getRow... | ), originalRowBounds.length - 1); |
62,427 | private boolean circuit(V v, int depth, TaskMonitor monitor) throws CancelledException {<NEW_LINE>monitor.checkCanceled();<NEW_LINE>// TODO<NEW_LINE>// Sigh. We are greatly limited in the size of paths we can processes due to the<NEW_LINE>// recursive nature of this algorithm. This should be changed to be non-recursi... | V u = e.getEnd(); |
172,487 | // Test configured value of newly supported roleName data source property for Oracle.<NEW_LINE>@Test<NEW_LINE>public void testRoleName() throws Exception {<NEW_LINE>// First determine if we can run this test. Oracle driver for JDBC 4.2 is not compatible with Java 9+<NEW_LINE>boolean atLeastJava9;<NEW_LINE>try {<NEW_LIN... | Connection con = ds.getConnection(); |
237,401 | public Long countTranslationEntries(TranslatedEntity entityType, ResultType stage) {<NEW_LINE>CriteriaBuilder builder = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Long> criteria = builder.createQuery(Long.class);<NEW_LINE>Root<TranslationImpl> root = criteria.from(TranslationImpl.class);<NEW_LINE>criteria.select(b... | getType()).getClass(); |
587,975 | public void marshall(ClarifyCheckStepMetadata clarifyCheckStepMetadata, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (clarifyCheckStepMetadata == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(clarifyCheck... | clarifyCheckStepMetadata.getCheckJobArn(), CHECKJOBARN_BINDING); |
1,104,119 | protected static void newRouter(Engine engine, NonApplicationRootPathBuildItem nonApplicationRootPathBuildItem) {<NEW_LINE>// "/" or "/myroot/"<NEW_LINE>String httpRootPath = nonApplicationRootPathBuildItem.getNormalizedHttpRootPath();<NEW_LINE>// "/" or "/myroot/" or "/q/" or "/myroot/q/"<NEW_LINE>String frameworkRoot... | mainRouter.errorHandler(500, errorHandler); |
23,099 | protected boolean validateNAPTRService(NAPTRRecord nr) {<NEW_LINE>boolean bool = false;<NEW_LINE>if (c_logger.isTraceEntryExitEnabled())<NEW_LINE>c_logger.traceEntry(this, "StateMachine: validateNAPTRService: entry: id=" + hashCode());<NEW_LINE>String service = nr.getService();<NEW_LINE>if (_simpl._scheme.startsWith(SI... | c_logger.traceDebug("StateMachine: validateNAPTRService: Unsupported service " + service); |
1,500,618 | private ImmutableAttributes consumeAttributes(JsonReader reader) throws IOException {<NEW_LINE>ImmutableAttributes attributes = ImmutableAttributes.EMPTY;<NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.peek() != END_OBJECT) {<NEW_LINE>String attrName = reader.nextName();<NEW_LINE>if (reader.peek() == BOOLEAN) {<... | boolean attrValue = reader.nextBoolean(); |
192,991 | public boolean validateChecksum() {<NEW_LINE>if (StringUtils.isNotBlank(checksum)) {<NEW_LINE>int retry = 3;<NEW_LINE>boolean valid = false;<NEW_LINE>try {<NEW_LINE>while (!valid && retry > 0) {<NEW_LINE>retry--;<NEW_LINE>s_logger.info("Performing checksum validation for downloaded template " + templateId + <MASK><NEW_... | " using " + checksum + ", retries left: " + retry); |
560,917 | private boolean backupBrokerConfig(StringBuilder strBuff) {<NEW_LINE>logger.info("[Backup Broker Conf] begin ");<NEW_LINE>Map<String, BrokerConfEntity> brokerConfMap = getBrokerConfInfos(strBuff);<NEW_LINE>if (brokerConfMap == null) {<NEW_LINE>logger.error(" download broker configurations is null!");<NEW_LINE>return f... | storeObjectToFile(brokerConfMap, backupAndRecoveryPath, storeFileNameBrokerConf); |
1,284,559 | public Void parse(TclScriptDataList resultList) throws IOException {<NEW_LINE>if (resultList.getEntries() != null) {<NEW_LINE>for (TclScriptDataEntry entry : resultList.getEntries()) {<NEW_LINE>HmDatapoint dp = channel.getDatapoint(HmParamsetType.VALUES, entry.name);<NEW_LINE>if (dp != null) {<NEW_LINE>dp.setValue(conv... | (toInteger(entry.minValue)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.