idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
363,854 | public void updateMessageWithNewAttachments(final String messageId, final List<File> files) {<NEW_LINE>Realm realm = MessageDatabaseManager.getInstance().getNewBackgroundRealm();<NEW_LINE>realm.executeTransaction(new Realm.Transaction() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void execute(Realm realm) {<NEW_LINE... | setTitle(file.getName()); |
888,726 | public TrxLookupSet fetchTransInfo(String db) {<NEW_LINE><MASK><NEW_LINE>final List<List<Map<String, Object>>> results = SyncManagerHelper.sync(new FetchTransForDeadlockDetectionSyncAction(db), db);<NEW_LINE>for (List<Map<String, Object>> result : results) {<NEW_LINE>if (result == null) {<NEW_LINE>continue;<NEW_LINE>}<... | final TrxLookupSet lookupSet = new TrxLookupSet(); |
1,572,813 | public CostCategorySplitChargeRuleParameter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CostCategorySplitChargeRuleParameter costCategorySplitChargeRuleParameter = new CostCategorySplitChargeRuleParameter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int... | String currentParentElement = context.getCurrentParentElement(); |
346,837 | final DeleteImagePipelineResult executeDeleteImagePipeline(DeleteImagePipelineRequest deleteImagePipelineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteImagePipelineRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteImag... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,443,737 | private void loadNode121() {<NEW_LINE>ShelvedStateMachineTypeNode node = new ShelvedStateMachineTypeNode(this.context, Identifiers.AlarmConditionType_ShelvingState, new QualifiedName(0, "ShelvingState"), new LocalizedText("en", "ShelvingState"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UByte.... | .expanded(), true)); |
954,641 | private IBaseResource loadAndAddConfDstu3(HttpServletRequest theServletRequest, final HomeRequest theRequest, final ModelMap theModel) {<NEW_LINE>CaptureInterceptor interceptor = new CaptureInterceptor();<NEW_LINE>GenericClient client = theRequest.newClient(theServletRequest, getContext(theRequest), myConfig, intercept... | .CapabilityStatement capabilityStatement = new CapabilityStatement(); |
69,373 | boolean showDialog() {<NEW_LINE>okButton = new JButton(LBL_CherryPick_OKButton_text());<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(okButton, okButton.getText());<NEW_LINE>dd = new // NOI18N<NEW_LINE>DialogDescriptor(// NOI18N<NEW_LINE>panel, // NOI18N<NEW_LINE>Bundle.LBL_CherryPick_title(repository), // NOI18N... | equals(evt.getNewValue()); |
1,822,286 | private void fixLibraryItemsLocation(HashMap<String, JsonValue> libraryItems) {<NEW_LINE>if (libraryItems.size() == 0)<NEW_LINE>return;<NEW_LINE>// creating libraryArrayJsonString<NEW_LINE>String libraryArrayJsonString = "{";<NEW_LINE>for (JsonValue entry : libraryItems.values()) {<NEW_LINE>libraryArrayJsonString += "\... | prev = value.get("scenes"); |
976,717 | public SearchResultCollection addSearchResults(List<SearchResult> sr, boolean resortAll, boolean removeDuplicates) {<NEW_LINE>if (SearchUICore.isDebugMode()) {<NEW_LINE>LOG.info("Add search results resortAll=" + (resortAll ? "true" : "false") + " removeDuplicates=" + (removeDuplicates ? "true" : "false") + " Results=" ... | (addedResults.get(j)); |
957,735 | public com.amazonaws.services.pinpointemail.model.SendingPausedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.pinpointemail.model.SendingPausedException sendingPausedException = new com.amazonaws.services.pinpointemail.model.SendingPausedException(nul... | String currentParentElement = context.getCurrentParentElement(); |
249,592 | private static boolean checkTryCatchRelation(List<TryCatchBlockAttr> tryBlocks, TryCatchBlockAttr outerTryBlock, TryCatchBlockAttr innerTryBlock) {<NEW_LINE>if (outerTryBlock.getBlocks().equals(innerTryBlock.getBlocks())) {<NEW_LINE>// same try blocks -> merge handlers<NEW_LINE>List<ExceptionHandler> handlers = Utils.c... | .anyMatch(isHandlersIntersects(outerTryBlock)); |
218,999 | private boolean togglePermissionSettings(final boolean stop) {<NEW_LINE>this.window().endEditingFor(null);<NEW_LINE>final Credentials credentials = session.getHost().getCredentials();<NEW_LINE>boolean enable = !credentials.isAnonymousLogin() && session.getFeature(UnixPermission.class) != null;<NEW_LINE>recursiveButton.... | groupr.setEnabled(stop && enable); |
545,452 | public static final <E extends Collection<? super String>> E addNeighbors(String geohash, int length, E neighbors) {<NEW_LINE>String north = neighbor(geohash, length, 0, +1);<NEW_LINE>if (north != null) {<NEW_LINE>neighbors.add(neighbor(north, length, -1, 0));<NEW_LINE>neighbors.add(north);<NEW_LINE>neighbors.add(neigh... | length, -1, 0)); |
1,683,779 | public Action unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Action action = new Action();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == null)<NEW_... | String currentParentElement = context.getCurrentParentElement(); |
650,227 | public void onAddReferences(ServiceRequest service) {<NEW_LINE>OpcUaServer server = service.attr(ServiceAttributes.SERVER_KEY).get();<NEW_LINE>Session session = service.attr(ServiceAttributes.SESSION_KEY).get();<NEW_LINE>AddReferencesRequest request = (AddReferencesRequest) service.getRequest();<NEW_LINE>List<AddRefere... | ResponseHeader header = service.createResponseHeader(); |
710,025 | // =========================<NEW_LINE>// CHOLESKY DECOMP<NEW_LINE>@Override<NEW_LINE>public void spotrf(byte uplo, int N, INDArray A, INDArray INFO) {<NEW_LINE>int status = LAPACKE_spotrf(getColumnOrder(A), uplo, N, (FloatPointer) A.data().addressPointer(), getLda(A));<NEW_LINE>if (status != 0) {<NEW_LINE>throw new Bla... | ] ix = new INDArrayIndex[2]; |
1,439,256 | private net.minecraft.loot.context.LootContext convertContext(LootContext context) {<NEW_LINE>Location loc = context.getLocation();<NEW_LINE>ServerWorld handle = ((WorldImpl) Objects.requireNonNull(loc.getWorld())).getHandle();<NEW_LINE>net.minecraft.loot.context.LootContext.Builder builder = new net.minecraft.loot.con... | nmsBuilder.allow(IMixinLootContextParameters.LOOTING_MOD); |
502,175 | public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>final AlertDialog.Builder builder = new <MASK><NEW_LINE>builder.setTitle(R.string.join_public_channel);<NEW_LINE>DialogJoinConferenceBinding binding = DataBindingUtil.inflate(getActivity().getLayoutInflater(), R.layout.dialog_join_conference, null, fals... | AlertDialog.Builder(getActivity()); |
179,807 | public void removeAllRoleActorsByNameAndType(java.lang.String in0, java.lang.String in1, java.lang.String in2) throws java.rmi.RemoteException, com.atlassian.jira.rpc.exception.RemoteException {<NEW_LINE>if (super.cachedEndpoint == null) {<NEW_LINE>throw new org.apache.axis.NoEndPointException();<NEW_LINE>}<NEW_LINE>or... | .QName("http://soap.rpc.jira.atlassian.com", "removeAllRoleActorsByNameAndType")); |
185,782 | // Code adapted from HTSJDK's BlockCompressedInputStream class<NEW_LINE>private BGZFBlockMetadata processNextBlock(InputStream stream, String streamSource) throws IOException {<NEW_LINE>final byte[] buffer <MASK><NEW_LINE>long blockAddress = streamOffset;<NEW_LINE>final int headerByteCount = readBytes(stream, buffer, 0... | = new byte[BlockCompressedStreamConstants.MAX_COMPRESSED_BLOCK_SIZE]; |
918,145 | private String decrypt(String text) throws DingTalkEncryptException {<NEW_LINE>byte[] originalArr;<NEW_LINE>byte[] networkOrder;<NEW_LINE>try {<NEW_LINE>Cipher cipher = Cipher.getInstance("AES/CBC/NoPadding");<NEW_LINE>SecretKeySpec keySpec = new SecretKeySpec(this.aesKey, "AES");<NEW_LINE>IvParameterSpec iv = new IvPa... | originalArr = cipher.doFinal(networkOrder); |
197,984 | protected void executeTasksOnWorker(Id server) {<NEW_LINE>String page = this.supportsPaging() ? PageInfo.PAGE_NONE : null;<NEW_LINE>do {<NEW_LINE>Iterator<HugeTask<Object>> tasks = this.tasks(TaskStatus.SCHEDULED, PAGE_SIZE, page);<NEW_LINE>while (tasks.hasNext()) {<NEW_LINE>HugeTask<?> task = tasks.next();<NEW_LINE>th... | Id taskServer = task.server(); |
663,543 | public static InFlightShardSnapshotStates forEntries(List<SnapshotsInProgress.Entry> snapshots) {<NEW_LINE>if (snapshots.isEmpty()) {<NEW_LINE>return EMPTY;<NEW_LINE>}<NEW_LINE>final Map<String, Map<Integer, ShardGeneration>> generations = new HashMap<>();<NEW_LINE>final Map<String, Set<Integer>> busyIds = new HashMap<... | return new InFlightShardSnapshotStates(generations, busyIds); |
1,608,900 | public static Varnode findVarnode(PcodeSyntaxTree fd, Address addr, long h) {<NEW_LINE>DynamicHash dhash = new DynamicHash();<NEW_LINE>int method = getMethodFromHash(h);<NEW_LINE>int total = getTotalFromHash(h);<NEW_LINE>int pos = getPositionFromHash(h);<NEW_LINE>h = clearTotalPosition(h);<NEW_LINE>ArrayList<Varnode> v... | vnlist, fd, addr, h); |
1,435,539 | public void handleApplicationCommandRequest(SerialMessage serialMessage, int offset, int endpoint) {<NEW_LINE>logger.debug("NODE {}: Received Switch Multi Level Request", this.<MASK><NEW_LINE>int command = serialMessage.getMessagePayloadByte(offset);<NEW_LINE>switch(command) {<NEW_LINE>case SWITCH_MULTILEVEL_SET:<NEW_L... | getNode().getNodeId()); |
73,733 | public void decodeComplete(final CodecPage codecPage, final BitmapRef bitmap, final Rect bitmapBounds, final RectF croppedPageBounds) {<NEW_LINE>try {<NEW_LINE>if (bitmap == null || bitmapBounds == null) {<NEW_LINE>page.base.getActivity().runOnUiThread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void ... | = page.base.getDocumentController(); |
650,920 | public Request<DescribeEventsRequest> marshall(DescribeEventsRequest describeEventsRequest) {<NEW_LINE>if (describeEventsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeEventsRequest> request = new DefaultRequest<DescribeEventsReq... | (describeEventsRequest.getEndTime())); |
826,365 | public StepTimeline unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StepTimeline stepTimeline = new StepTimeline();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurren... | int originalDepth = context.getCurrentDepth(); |
968,240 | public static void main(String[] args) {<NEW_LINE>// First example: Reverse op. This op reverses the values along a specified dimension<NEW_LINE>// c++ code: https://github.com/eclipse/deeplearning4j/blob/master/libnd4j/include/ops/declarable/generic/transforms/reverse.cpp<NEW_LINE>INDArray input = Nd4j.linspace(1, 50,... | output1, output2).build(); |
1,503,993 | private void cleanParameterAnnotationsAttribute(Clazz clazz, Member member, ParameterAnnotationsAttribute attribute, String attributeName) {<NEW_LINE>// Delete marked annotations.<NEW_LINE>ParameterAnnotationsAttributeEditor annotationsAttributeEditor = new ParameterAnnotationsAttributeEditor(attribute);<NEW_LINE>boole... | annotationsCount = attribute.u2parameterAnnotationsCount[parameterIndex]; |
1,794,989 | final ListAvailableManagementCidrRangesResult executeListAvailableManagementCidrRanges(ListAvailableManagementCidrRangesRequest listAvailableManagementCidrRangesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAvailableManagementCidrRangesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMe... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,021,292 | public void configure(TestElement el) {<NEW_LINE>super.configure(el);<NEW_LINE>if (!(el instanceof JMSSampler)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JMSSampler sampler = (JMSSampler) el;<NEW_LINE>queueConnectionFactory.setText(sampler.getQueueConnectionFactory());<NEW_LINE>sendQueue.setText(sampler.getSendQueue());<N... | setInitialText(sampler.getContent()); |
982,879 | public void scan(UploadedFile file) {<NEW_LINE>try {<NEW_LINE>final ClamDaemonClient client = this.getClamAvClient();<NEW_LINE>final InputStream inputStream = new ByteArrayInputStream(file.getContent());<NEW_LINE>final byte[] <MASK><NEW_LINE>final String message = new String(reply, StandardCharsets.US_ASCII).trim();<NE... | reply = client.scan(inputStream); |
1,029,585 | public void fetchAvatar(Account account, final Avatar avatar, final UiCallback<Avatar> callback) {<NEW_LINE>final String KEY = generateFetchKey(account, avatar);<NEW_LINE>synchronized (this.mInProgressAvatarFetches) {<NEW_LINE>if (mInProgressAvatarFetches.add(KEY)) {<NEW_LINE>switch(avatar.origin) {<NEW_LINE>case PEP:<... | this.mInProgressAvatarFetches.add(KEY); |
565,826 | public void onClientDisconnect(SessionDisconnectEvent event) {<NEW_LINE>final String simpSessionId = (String) event.getMessage().getHeaders().get("simpSessionId");<NEW_LINE>if (connectedSessionIds.contains(simpSessionId)) {<NEW_LINE>logger.debug(<MASK><NEW_LINE>connectedSessionIds.remove(simpSessionId);<NEW_LINE>if (co... | LoggingMarkers.DOWNLOADER_STATUS_UPDATE, "Registered disconnect with session ID {}", simpSessionId); |
515,788 | public void querySourceFeatures(String callbackID, @Nullable Expression filter) {<NEW_LINE>if (mSource == null) {<NEW_LINE>WritableMap payload = new WritableNativeMap();<NEW_LINE>payload.putString("error", "source is not yet loaded");<NEW_LINE>AndroidCallbackEvent event = new AndroidCallbackEvent(this, callbackID, payl... | add(i.getFeature()); |
656,687 | private void init() {<NEW_LINE>this.setLayout(new BorderLayout());<NEW_LINE>// HEADER<NEW_LINE>Box boxV = Box.createVerticalBox();<NEW_LINE>// DIALS/HTML+Bars<NEW_LINE>Box boxH = Box.createHorizontalBox();<NEW_LINE>// DIALS<NEW_LINE>Box boxV1 = Box.createVerticalBox();<NEW_LINE>// HTML/Bars<NEW_LINE>Box boxV2 = Box.cre... | add(boxV2, BorderLayout.CENTER); |
573,461 | public Request<GetCallAnalyticsJobRequest> marshall(GetCallAnalyticsJobRequest getCallAnalyticsJobRequest) {<NEW_LINE>if (getCallAnalyticsJobRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(GetCallAnalyticsJobRequest)");<NEW_LINE>}<NEW_LINE>Request<GetCallAnalyticsJobRequ... | request.addHeader("X-Amz-Target", target); |
1,026,637 | private void initDatabases() throws Exception {<NEW_LINE>Properties p = new Properties();<NEW_LINE>FileInputStream fis = new FileInputStream("sources.properties");<NEW_LINE>p.load(fis);<NEW_LINE>fis.close();<NEW_LINE>fis = null;<NEW_LINE>Iterator<Map.Entry<Object, Object>> iterator = p<MASK><NEW_LINE>while (iterator.ha... | .entrySet().iterator(); |
278,921 | public void writeDataset(JRDataset dataset) throws IOException {<NEW_LINE>writer.startElement(JRXmlConstants.ELEMENT_subDataset, getNamespace());<NEW_LINE>writer.addEncodedAttribute(JRXmlConstants.ATTRIBUTE_name, dataset.getName());<NEW_LINE>writer.addAttribute(JRXmlConstants.<MASK><NEW_LINE>writer.addEncodedAttribute(... | ATTRIBUTE_scriptletClass, dataset.getScriptletClass()); |
113,719 | public CategoricalResults classify(DataPoint data) {<NEW_LINE>Vec x = data.getNumericalValues();<NEW_LINE>double pos_score = Wp.multiply(x).add(bp).max();<NEW_LINE>double neg_score = Wn.multiply(x).add(bn).max();<NEW_LINE>CategoricalResults cr = new CategoricalResults(2);<NEW_LINE>if (// ambigious case, lets go with la... | cr.setProb(0, 1.0); |
469,524 | public File resolve(String name, boolean isModule) {<NEW_LINE>// Strip off one NEWLINE and anything after it, if it is there<NEW_LINE>int n;<NEW_LINE>n = name.indexOf('\n');<NEW_LINE>if (n >= 0) {<NEW_LINE>// SZ Feb 20, 2009: the message adjusted to what is actually done<NEW_LINE>ToolIO.out.println("*** Warning: module... | .TLA_EXTENSION.length())); |
668,775 | public IViewRow retrieveById(final ViewEvaluationCtx viewEvalCtx, final ViewId viewId, final DocumentId rowId) {<NEW_LINE>final SqlAndParams sqlAndParams = sqlViewSelect.selectById().viewEvalCtx(viewEvalCtx).viewId(viewId).rowId(rowId).build();<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>ResultSet rs = null;<NEW_... | "More than one document found for rowId={} in {}. Returning only the first one from: {}", rowId, this, documents); |
1,246,627 | public void copy(TraceProgramView from, AddressRange fromRange, Program into, Address intoAddress, TaskMonitor monitor) throws Exception {<NEW_LINE>BookmarkManager intoBookmarks = into.getBookmarkManager();<NEW_LINE>Iterator<Bookmark> bit = from.getBookmarkManager().getBookmarksIterator(fromRange.getMinAddress(), true)... | subtract(fromRange.getMinAddress()); |
680,527 | protected Object createSingletonInstance(Class<?> cls, ServletConfig sc) throws ServletException {<NEW_LINE>Constructor<?> c = ResourceUtils.findResourceConstructor(cls, false);<NEW_LINE>if (c == null) {<NEW_LINE>throw new ServletException("No valid constructor found for " + cls.getName());<NEW_LINE>}<NEW_LINE>boolean ... | cls.getName() + " can not be instantiated"); |
374,887 | public void contributeParameters(Map<String, Object> parameters) throws JRException {<NEW_LINE>HibernateDataAdapter hbmDA = getHibernateDataAdapter();<NEW_LINE>if (hbmDA != null) {<NEW_LINE>ClassLoader oldThreadClassLoader = Thread.currentThread().getContextClassLoader();<NEW_LINE>try {<NEW_LINE>Thread.currentThread().... | ).invoke(configure, file); |
1,616,739 | private ResponseSpec fakeOuterNumberSerializeRequestCreation(BigDecimal body) throws WebClientResponseException {<NEW_LINE>Object postBody = body;<NEW_LINE>// create path and map variables<NEW_LINE>final Map<String, Object> pathParams = new HashMap<String, Object>();<NEW_LINE>final MultiValueMap<String, String> queryPa... | localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); |
1,201,461 | private void applyTypeValues(Destination dest, Name type) {<NEW_LINE>if (Destination.TYPE_XYZ.equals(type)) {<NEW_LINE>leftTextField.setText(getDestCoordinate(dest.getLeft()));<NEW_LINE>topTextField.setText(getDestCoordinate(dest.getTop()));<NEW_LINE>zoomTextField.setText(getDestCoordinate<MASK><NEW_LINE>} else if (Des... | (dest.getZoom())); |
1,589,903 | private static void printData(PrintStream writer, String title, ResultTable results) {<NEW_LINE>writer.println("Report: " + title);<NEW_LINE>if (results.getRows() == null || results.getRows().isEmpty()) {<NEW_LINE>writer.println("No results Found.");<NEW_LINE>} else {<NEW_LINE>// Print column headers.<NEW_LINE>for (Col... | "%30s", header.getName()); |
763,862 | protected void onSaveInstanceState(@NonNull Bundle outState) {<NEW_LINE>// Log_OC.e(TAG, "onSaveInstanceState init" );<NEW_LINE>super.onSaveInstanceState(outState);<NEW_LINE>// / global state<NEW_LINE>outState.putLong(KEY_WAITING_FOR_OP_ID, mWaitingForOpId);<NEW_LINE>outState.putBoolean(KEY_IS_SSL_CONN, mServerInfo.mIs... | outState.putBoolean(KEY_ASYNC_TASK_IN_PROGRESS, true); |
1,481,818 | private static void prepareCSS(HTMLEditorKit editorKit) {<NEW_LINE>boolean newLayout = Registry.is("editor.new.mouse.hover.popups");<NEW_LINE>Color borderColor = newLayout ? UIUtil.getTooltipSeparatorColor() : ColorUtil.mix(DOCUMENTATION_COLOR, BORDER_COLOR, 0.5);<NEW_LINE>int leftPadding = newLayout ? 8 : 7;<NEW_LINE>... | (getLinkColor()) + "; text-decoration: none;}"); |
618,208 | static void markupClassHeaderData(Program program, Symbol oatDataSymbol, Address address, OatHeader oatHeader, OatClass oatClassHeader, MessageLog log, TaskMonitor monitor) throws Exception {<NEW_LINE>SymbolTable symbolTable = program.getSymbolTable();<NEW_LINE>ReferenceManager referenceManager = program.getReferenceMa... | READ, SourceType.ANALYSIS, 0); |
1,466,979 | private String text(final boolean complete, final boolean close) {<NEW_LINE>StringBuilder buffer = new StringBuilder();<NEW_LINE>buffer.append(startDelimiter).append<MASK><NEW_LINE>String params = paramsToString(this.params);<NEW_LINE>if (params.length() > 0) {<NEW_LINE>buffer.append(" ").append(params);<NEW_LINE>}<NEW... | (type).append(name); |
1,091,855 | private void initComponents() {<NEW_LINE>// NOI18N<NEW_LINE>dialog = new JDialog(parentFrame, NbBundle.getMessage(AboutDialog.class, "LBL_About"), true);<NEW_LINE>dialog.addWindowListener(new WindowAdapter() {<NEW_LINE><NEW_LINE>public void windowClosed(WindowEvent e) {<NEW_LINE>cleanup();<NEW_LINE>}<NEW_LINE>});<NEW_L... | (JComponent) dialog.getContentPane(); |
589,485 | public void onAction(String name, boolean pressed, float tpf) {<NEW_LINE>if (name.equals("wireframe") && !pressed) {<NEW_LINE>wireframe = !wireframe;<NEW_LINE>if (wireframe) {<NEW_LINE>terrain.setMaterial(matWire);<NEW_LINE>} else {<NEW_LINE>terrain.setMaterial(matRock);<NEW_LINE>}<NEW_LINE>} else if (name.equals("triP... | 1f / (512f / rockScale)); |
1,200,562 | final StartQueryResult executeStartQuery(StartQueryRequest startQueryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startQueryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | invoke(request, responseHandler, executionContext); |
680,466 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String accountName, 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>}<NEW_LINE>if ... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
1,393,102 | final EnableClientAuthenticationResult executeEnableClientAuthentication(EnableClientAuthenticationRequest enableClientAuthenticationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableClientAuthenticationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | (super.beforeMarshalling(enableClientAuthenticationRequest)); |
685,690 | public JobDependency unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>JobDependency jobDependency = new JobDependency();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | JsonToken token = context.getCurrentToken(); |
968,010 | public void postInit() {<NEW_LINE>mainFrame.getWorkbench().addPanel(getOutputPanel(<MASK><NEW_LINE>refreshTabViewMenus();<NEW_LINE>// Add the 'tab' menu items<NEW_LINE>JMenuItem showAllMenu = new JMenuItem(Constant.messages.getString("menu.view.tabs.show"));<NEW_LINE>showAllMenu.addActionListener(new ActionListener() {... | ), WorkbenchPanel.PanelType.STATUS); |
156,234 | public int parseFiles(File directory, File[] pathedFiles, final Parser parser) {<NEW_LINE>final StandardJavaFileManager fileManager = javac.getStandardFileManager(null, null, StandardCharsets.UTF_8);<NEW_LINE>DiagnosticCollector<? super JavaFileObject> diagListen = new DiagnosticCollector<>();<NEW_LINE>final JavaCompil... | LineMap map = ast.getLineMap(); |
46,251 | public OIdentifiable beforeCreateOperations(OIdentifiable id, String iClusterName) {<NEW_LINE>checkSecurity(ORole.PERMISSION_CREATE, id, iClusterName);<NEW_LINE>ORecordHook.RESULT triggerChanged = null;<NEW_LINE>boolean changed = false;<NEW_LINE>if (id instanceof ODocument) {<NEW_LINE>ODocument doc = (ODocument) id;<NE... | ODocument) id).validate(); |
203,522 | protected void initializeDefaults() {<NEW_LINE>setDefaultVertexShape(ELLIPSE);<NEW_LINE>setDefaultVertexColor(WebColors.RED);<NEW_LINE>setDefaultEdgeColor(WebColors.RED);<NEW_LINE>setFavoredEdgeType(FALL_THROUGH);<NEW_LINE>configureVertexType(BODY, RECTANGLE, WebColors.BLUE);<NEW_LINE>configureVertexType(ENTRY, TRIANGL... | configureEdgeType(CONDITIONAL_COMPUTED_JUMP, WebColors.CYAN); |
42,702 | public ApiResponse<ShareContents> fileSharesGetWithHttpInfo(Integer pageIndex, Integer pageSize, String sortExpression) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'pageIndex' is set<NEW_LINE>if (pageIndex == null) {<NEW_LINE>throw new ApiException(400, "Miss... | = new String[] { "oauth2" }; |
1,289,655 | public void simulate(double limit, double hertz) {<NEW_LINE>priorityQueue = new PriorityQueueResize<>(PriorityQueueResize.Orientation.MIN);<NEW_LINE>for (int i = 0; i < particles.length; i++) {<NEW_LINE>predictCollisions(particles[i], limit);<NEW_LINE>}<NEW_LINE>// Add redraw event<NEW_LINE>priorityQueue.insert(new Eve... | Event event = priorityQueue.deleteTop(); |
1,625,822 | public HLSTimestampRange unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>HLSTimestampRange hLSTimestampRange = new HLSTimestampRange();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token... | int originalDepth = context.getCurrentDepth(); |
1,658,816 | private void unregisterApplication(SystemApplicationKey app, FileExtensionKey key, Properties props) throws NativeException {<NEW_LINE><MASK><NEW_LINE>String property = getExtProperty(props, name, EXT_HKCR_APPLICATIONS_PROPERTY);<NEW_LINE>if (property != null) {<NEW_LINE>String appKey = app.getKey();<NEW_LINE>if (regis... | String name = key.getDotName(); |
443,253 | private void runExecutableNode(final ExecutableNode node) throws IOException {<NEW_LINE>// Collect output props from the job's dependencies.<NEW_LINE>prepareJobProperties(node);<NEW_LINE>node.setStatus(Status.QUEUED);<NEW_LINE>// Attach Ramp Props if there is any desired properties<NEW_LINE>final String jobId = node.ge... | setTimeInQueue(System.currentTimeMillis()); |
334,212 | private void initAssets() {<NEW_LINE>ModuleEnvironment environment = context.get(ModuleManager.class).getEnvironment();<NEW_LINE>BlockFamilyLibrary library = new BlockFamilyLibrary(environment, context);<NEW_LINE>// cast lambdas explicitly to avoid inconsistent compiler behavior wrt. type inference<NEW_LINE>assetTypeMa... | (assetTypeManager.getAssetManager())); |
1,124,078 | private List<ArgType> makePossibleTypesList(ArgType type, @Nullable SSAVar var) {<NEW_LINE>if (type.isArray()) {<NEW_LINE>List<ArgType> list = new ArrayList<>();<NEW_LINE>for (ArgType arrElemType : makePossibleTypesList(type.getArrayElement(), null)) {<NEW_LINE>list.add(ArgType.array(arrElemType));<NEW_LINE>}<NEW_LINE>... | list = new ArrayList<>(); |
1,559,557 | public Message unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Message message = new Message();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token... | class).unmarshall(context)); |
208,513 | private int putInDynamicCacheIfAbsent(int bootstrapIndex, final char[] selector, final char[] descriptor, final int value) {<NEW_LINE>int index;<NEW_LINE>HashtableOfObject key1Value = (HashtableOfObject) this.dynamicCache.get(bootstrapIndex);<NEW_LINE>if (key1Value == null) {<NEW_LINE>key1Value = new HashtableOfObject(... | entry.signature, entry.index); |
994,510 | public void placeCursor(StickyColumnPolicy stickyColumnPolicy) {<NEW_LINE>if (isEnabled) {<NEW_LINE>int selectionLength = editorAdaptor.getNativeSelection().getViewLength();<NEW_LINE>Position pos = editorAdaptor.getPosition();<NEW_LINE>int offset = pos.getViewOffset();<NEW_LINE>LineInformation line = editorAdaptor.getV... | ).setCaret(CaretType.RECTANGULAR); |
1,015,783 | private static void executeIndexRequestOnPrimary(BulkPrimaryExecutionContext context, MappingUpdatePerformer mappingUpdater, ClusterService clusterService) throws Exception {<NEW_LINE>final IndexRequest request = context.getRequestToExecute();<NEW_LINE>final IndexShard primary = context.getPrimary();<NEW_LINE>final Sou... | request, context.getIndexMetaData()); |
1,099,343 | public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>InstrumentClass target = instrumentor.getInstrumentClass(loader, className, classfileBuffer);<NEW_LI... | target.addField(ParsingResultAccessor.class); |
260,600 | public static ErrorResponse decodeFromChannelBuffer(ChannelBuffer buffer) {<NEW_LINE>if (buffer.readableBytes() < 1 + 4 + 2 + 2)<NEW_LINE>return null;<NEW_LINE>byte opcode = buffer.readByte();<NEW_LINE>int responseLen = buffer.readInt();<NEW_LINE>if (responseLen <= 0)<NEW_LINE>throw new IllegalArgumentException("respon... | short errorMessageLen = buffer.readShort(); |
1,653,824 | public void render(SheetmetalTankTileEntity tile, float partialTicks, PoseStack matrixStack, MultiBufferSource bufferIn, int combinedLightIn, int combinedOverlayIn) {<NEW_LINE>if (!tile.formed || tile.isDummy() || !tile.getWorldNonnull().hasChunkAt(tile.getBlockPos()))<NEW_LINE>return;<NEW_LINE>matrixStack.pushPose();<... | 0x22, 0xff).endVertex(); |
1,042,298 | public void addRecord(@NonNull Transaction transaction, UpdateMethod updateMethod) {<NEW_LINE>Log.d(LOG_TAG, "Adding transaction to the db via " + updateMethod.name());<NEW_LINE>mDb.beginTransaction();<NEW_LINE>try {<NEW_LINE>Split imbalanceSplit = transaction.createAutoBalanceSplit();<NEW_LINE>if (imbalanceSplit != nu... | super.addRecord(transaction, updateMethod); |
1,132,641 | private void paintBackgroundStack(RenderingContext c, Rectangle bounds) {<NEW_LINE>Rectangle imageContainer;<NEW_LINE>BorderPropertySet border = getStyle().getBorder(c);<NEW_LINE>TableColumn column = getTable().colElement(getCol());<NEW_LINE>if (column != null) {<NEW_LINE>c.getOutputDevice().paintBackground(c, column.g... | x += tableStyle.getBorderHSpacing(c); |
402,307 | public boolean onOptionsItemSelected(@NonNull MenuItem item) {<NEW_LINE>if (super.onOptionsItemSelected(item)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>final int itemId = item.getItemId();<NEW_LINE>if (itemId == R.id.refresh_item) {<NEW_LINE>AutoUpdateManager.runImmediate(requireContext());<NEW_LINE>return true;<NEW... | string.removed_all_new_flags_msg, Toast.LENGTH_SHORT); |
1,595,989 | public void test1XSLEnvEntry_Short_InvalidValue() throws Exception {<NEW_LINE>try {<NEW_LINE>// The test case looks for a environment variable named "envShortInvalid".<NEW_LINE>Short tempShort = fejb1.getShortEnvVar("envShortBlankValue");<NEW_LINE>fail("Get environment invalid short lookup should have failed, instead g... | tempShort = fejb1.getShortEnvVar("envShortGT16bit"); |
56,871 | private void doPopulatePerson(PersonAccount personObject, Map<String, Object> userInfoProps, Set<String> requestPropNames) {<NEW_LINE>System.out.println(CLASS_NAME + " <doPopulatePerson>, entry, personObject: \n" + personObject.toString());<NEW_LINE>System.out.println(" userInfoProps: " + userInfoProps.toString());<... | " <doPopulatePerson>, exit, personObject: \n" + personObject.toString()); |
1,431,240 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>ChooseFriendsAndFoes choice = new ChooseFriendsAndFoes();<NEW_LINE>choice.chooseFriendOrFoe(controller, source, game);<NE... | CreateTokenCopyTargetEffect(player.getId()); |
887,424 | public List<IWorker<ITestNGMethod>> createWorkers(Arguments arguments) {<NEW_LINE>List<IWorker<ITestNGMethod>> result = Lists.newArrayList();<NEW_LINE>// Methods that belong to classes with a sequential=true or parallel=classes<NEW_LINE>// attribute must all be run in the same worker<NEW_LINE>Set<Class<?>> sequentialCl... | > processedClasses = Sets.newHashSet(); |
351,436 | 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>Wo wo = new Wo();<NEW_LINE>Wi wi = this.convertToWrapIn(... | cb.createQuery(KeyLock.class); |
554,787 | protected void onDetachedFromWindow() {<NEW_LINE>super.onDetachedFromWindow();<NEW_LINE>updateTaskStackListenerState();<NEW_LINE>mModel.getThumbnailCache().getHighResLoadingState().removeCallback(this);<NEW_LINE>mActivity.removeMultiWindowModeChangedListener(mMultiWindowModeChangedListener);<NEW_LINE>if (LawnchairApp.i... | ()).removeThumbnailChangeListener(this); |
1,248,571 | protected HookStatus hook(Emulator<?> emulator) {<NEW_LINE>EditableArm64RegisterContext context = emulator.getContext();<NEW_LINE>int identifier = context.getIntArg(0);<NEW_LINE>int <MASK><NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("dispatch_get_global_queue identifier=0x" + Integer.toHexString(identifier)... | flags = context.getIntArg(1); |
1,242,527 | public void generateSasWithContext() {<NEW_LINE>// BEGIN: com.azure.storage.file.datalake.DataLakePathClient.generateSas#DataLakeServiceSasSignatureValues-Context<NEW_LINE>OffsetDateTime expiryTime = OffsetDateTime.now().plusDays(1);<NEW_LINE>PathSasPermission permission = new PathSasPermission().setReadPermission(true... | now().plusDays(1); |
1,041,945 | TypecheckingResult findInstance(Expression classifyingExpression, Expression expectedType, InstanceSearchParameters parameters, Concrete.SourceNode sourceNode, Definition currentDef, FieldSearchParameters fieldSearch) {<NEW_LINE>Expression result = findInstance(classifyingExpression, parameters, currentDef, fieldSearch... | return new TypecheckingResult(result, actualType); |
1,346,809 | public Observable<ServiceResponse<ImageCreateSummary>> createImagesFromDataWithServiceResponseAsync(UUID projectId, byte[] imageData, List<UUID> tagIds) {<NEW_LINE>if (this.client.endpoint() == null) {<NEW_LINE>throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null.");<NEW_L... | .parse("multipart/form-data"), imageData); |
69,533 | public PeeringTgwInfo unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>PeeringTgwInfo peeringTgwInfo = new PeeringTgwInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<N... | ().unmarshall(context)); |
1,422,635 | private Mono<OAuth2LoginAuthenticationToken> authenticationResult(OAuth2AuthorizationCodeAuthenticationToken authorizationCodeAuthentication, OAuth2AccessTokenResponse accessTokenResponse) {<NEW_LINE><MASK><NEW_LINE>ClientRegistration clientRegistration = authorizationCodeAuthentication.getClientRegistration();<NEW_LIN... | OAuth2AccessToken accessToken = accessTokenResponse.getAccessToken(); |
1,809,409 | public static DescribeMonitorValuesResponse unmarshall(DescribeMonitorValuesResponse describeMonitorValuesResponse, UnmarshallerContext context) {<NEW_LINE>describeMonitorValuesResponse.setRequestId(context.stringValue("DescribeMonitorValuesResponse.RequestId"));<NEW_LINE>describeMonitorValuesResponse.setDate(context.s... | + "].MonitorKeys[" + j + "].Value")); |
1,729,781 | AlphaClusterDiscovery alphaClusterAddress(@Value("${alpha.cluster.serviceId:servicecomb-alpha-server}") String serviceId, @Value("${alpha.cluster.address:0.0.0.0:8080}") String[] addresses) {<NEW_LINE>StringBuffer serviceUrls = new StringBuffer();<NEW_LINE>String[] <MASK><NEW_LINE>LOG.info("alphaAddress = {}", Arrays.t... | alphaAddresses = this.getAlphaAddress(serviceId); |
219,957 | public static <E> BarData buildStatisticChart(@NonNull OsmandApplication app, @NonNull HorizontalBarChart mChart, @NonNull RouteStatisticsHelper.RouteStatistics routeStatistics, @NonNull GPXTrackAnalysis analysis, boolean useRightAxis, boolean nightMode) {<NEW_LINE>XAxis xAxis = mChart.getXAxis();<NEW_LINE>xAxis.setEna... | int[segments.size()]; |
979,713 | public static String encode(final String input) {<NEW_LINE>try {<NEW_LINE>final StringBuilder b = new StringBuilder();<NEW_LINE>final StringTokenizer t = new StringTokenizer(input, "/");<NEW_LINE>if (!t.hasMoreTokens()) {<NEW_LINE>return input;<NEW_LINE>}<NEW_LINE>if (StringUtils.startsWith(input, String.valueOf(Path.D... | b.append(Path.DELIMITER); |
564,351 | protected void execGetGSP(HttpAction action) {<NEW_LINE>ActionLib.setCommonHeaders(action);<NEW_LINE>MediaType <MASK><NEW_LINE>OutputStream output;<NEW_LINE>try {<NEW_LINE>output = action.getResponseOutputStream();<NEW_LINE>} catch (IOException ex) {<NEW_LINE>ServletOps.errorOccurred(ex);<NEW_LINE>output = null;<NEW_LI... | mediaType = ActionLib.contentNegotationRDF(action); |
1,257,659 | public MenuItem createMenuItem(Menu menu) {<NEW_LINE>if (!createMenuItem) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final ToolItem toolItem = (ToolItem) getToolItemFromDecorator();<NEW_LINE>MenuItem item;<NEW_LINE>if (isCheckable()) {<NEW_LINE>item = new MenuItem(menu, SWT.CHECK);<NEW_LINE>if (!StringUtil.isEmpty(pre... | .getDefault().getPreferenceStore(); |
485,923 | private void generateJaxRs20Filter(JavaSource javaSource) throws IOException {<NEW_LINE>javaSource.runModificationTask(new Task<WorkingCopy>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(WorkingCopy copy) throws Exception {<NEW_LINE>copy.toPhase(Phase.ELEMENTS_RESOLVED);<NEW_LINE>ClassTree classTree = JavaS... | , params, getFilterBody(false)); |
1,287,870 | private void processLibraryPIDs(List<ContainerInfo> sharedLibContainers, String[] libraryPIDs) throws InvalidSyntaxException {<NEW_LINE>if (libraryPIDs != null) {<NEW_LINE>for (String pid : libraryPIDs) {<NEW_LINE>String libraryFilter = FilterUtils.createPropertyFilter(Constants.SERVICE_PID, pid);<NEW_LINE>Collection<S... | String id = library.id(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.