id
stringlengths
20
30
source
stringclasses
1 value
chunk_index
int64
0
520k
token_count
int32
154
512
content
stringlengths
185
57.5k
rust_dataset_chunk_513100
rust_dataset.txt
513,100
512
_fullscreen || (pane_is_regular_fullscreen && !pane_frame_style.draws_full_frames() && !pane_frame_style.draws_titles()); if !skip_frame { log_render_error!( self.panes_with_logged_render_erro...
rust_dataset_chunk_513101
rust_dataset.txt
513,101
512
pane_contents_and_ui.render_fake_cursor_if_needed(*client_id) ); } } self.panes_with_logged_render_errors = panes_that_failed_to_render; Ok(()) } pub fn resize(&mut self, new_screen_size: Size) { let display_area = *self.display_area.borrow(); ...
rust_dataset_chunk_513102
rust_dataset.txt
513,102
512
for pane in self.panes.values_mut() { resize_pty!(pane, os_api, self.senders, self.character_cell_size) .with_context(err_context) .non_fatal(); } self.set_force_render(); Ok(true) } pub fn resize_pane_with_strategies( &mut self, ...
rust_dataset_chunk_513103
rust_dataset.txt
513,103
512
_err_context = || { format!("failed to move focus of floating pane {direction:?} for client {client_id}") }; if self.fullscreen_pane_id.is_some() { let covers_ui = self.floating_fullscreen_covers_ui; let previous_fullscreen_pane_id = self.fullscreen_pane_id; ...
rust_dataset_chunk_513104
rust_dataset.txt
513,104
512
return Ok(false); }; next_active_pane.set_should_render(true); // we render the full viewport to remove any ui elements that might have been // there before (eg. another user's cursor) next_active...
rust_dataset_chunk_513105
rust_dataset.txt
513,105
512
client_id: ClientId, ) -> Option<PaneId> { if !self.panes.contains_key(&pane_id) { return None; } let display_area = *self.display_area.borrow(); let viewport = *self.viewport.borrow(); let floating_pane_grid = FloatingPaneGrid::new( &mut self....
rust_dataset_chunk_513106
rust_dataset.txt
513,106
512
| p.selectable()) .unwrap_or(false) }); let target_pane_id = last_pane_id .or_else(|| self.most_recently_active_selectable_pane(currently_active_pane_id)); if let Some(target_pane_id) = target_pane_id { self.focus_pane(target_pane_id, client_id...
rust_dataset_chunk_513107
rust_dataset.txt
513,107
512
, pane_id: PaneId) -> bool { if self.fullscreen_pane_id.is_some() { return false; } let Some(geom_before_move) = self.panes.get(&pane_id).map(|p| p.position_and_size()) else { log::error!("Cannot move floating pane {:?}: pane not found", pane_id); return false...
rust_dataset_chunk_513108
rust_dataset.txt
513,108
512
} } pub fn move_pane_right(&mut self, pane_id: PaneId) -> bool { if self.fullscreen_pane_id.is_some() { return false; } let Some(geom_before_move) = self.panes.get(&pane_id).map(|p| p.position_and_size()) else { log::error!("Cannot move floating pane {:?}:...
rust_dataset_chunk_513109
rust_dataset.txt
513,109
512
"); return; }; let next_geom = new_position.position_and_size(); let next_geom_override = new_position.geom_override(); new_position.set_geom(prev_geom); if let Some(geom) = prev_geom_override { new_position.set_geom_override(ge...
rust_dataset_chunk_513110
rust_dataset.txt
513,110
512
active_panes .iter() .map(|(cid, pid)| (*cid, *pid)) .collect(); // find the most recently active pane let mut next_active_pane_candidates: Vec<(&PaneId, &Box<dyn Pane>)> = self .panes .iter() .filter(|(_p_id, p)| p.selectable()) ...
rust_dataset_chunk_513111
rust_dataset.txt
513,111
512
self.set_force_render(); } pub fn fullscreen_is_active(&self) -> bool { self.fullscreen_pane_id.is_some() } pub fn fullscreen_pane_id(&self) -> Option<PaneId> { self.fullscreen_pane_id } pub fn fullscreen_covers_ui(&self) -> bool { self.fullscreen_pane_id.is_some(...
rust_dataset_chunk_513112
rust_dataset.txt
513,112
512
pane.set_content_offset(Offset::default()); } } if let Some(pane) = self.panes.get_mut(&pane_id) { let _ = resize_pty!(pane, os_api, self.senders, self.character_cell_size); } self.fullscreen_pane_id = Some(pane_id); self.floating_fullscree...
rust_dataset_chunk_513113
rust_dataset.txt
513,113
512
_no_ui_fullscreen(&mut self, client_id: ClientId) { if let Some(active_pane_id) = self .fullscreen_pane_id .or_else(|| self.get_active_pane_id(client_id)) { self.toggle_pane_no_ui_fullscreen(active_pane_id); } } pub fn focus_pane(&mut self, pane_id: Pa...
rust_dataset_chunk_513114
rust_dataset.txt
513,114
512
(client_id, focused_pane); } } self.active_panes .insert(client_id, pane_to_focus, &mut self.panes); self.raise_pane(pane_to_focus); }, None => { self.active_panes.remove(&client_id, &mut self...
rust_dataset_chunk_513115
rust_dataset.txt
513,115
512
> = if search_selectable { self.panes .iter() .filter(|(_, p)| p.selectable()) .filter(|(_, p)| p.current_geom().is_pinned) .collect() } else { self.panes .iter() .filter(|(_, p)| p.current_ge...
rust_dataset_chunk_513116
rust_dataset.txt
513,116
512
_with_mouse(&mut self, pane_id: PaneId, last_position: Position) { if let Some((last_pane_id, initial_position)) = self .pane_being_moved_with_mouse .map(|(pane_id, initial_position, _)| (pane_id, initial_position)) { if last_pane_id == pane_id { // pr...
rust_dataset_chunk_513117
rust_dataset.txt
513,117
512
able: bool) -> bool { self.move_pane_with_mouse_grabbed(position, search_selectable, true) } pub fn move_pane_with_mouse_from_anywhere( &mut self, position: Position, search_selectable: bool, ) -> bool { self.move_pane_with_mouse_grabbed(position, search_selectable, f...
rust_dataset_chunk_513118
rust_dataset.txt
513,118
512
: ClientId) -> Option<PaneId> { self.active_panes.get(&client_id).copied() } pub fn get_last_pane_id(&self, client_id: ClientId) -> Option<PaneId> { self.active_panes.get_last(&client_id).copied() } pub fn get_panes(&self) -> impl Iterator<Item = (&PaneId, &Box<dyn Pane>)> { self...
rust_dataset_chunk_513119
rust_dataset.txt
513,119
512
self.pane_is_selectable(pane_id)) .or_else(|| self.most_recently_active_selectable_pane(None)); if let Some(pane_id) = remembered_focused_pane { self.raise_pane(pane_id); } }, } } pub fn get_plugin_pane_id(&self, run_pl...
rust_dataset_chunk_513120
rust_dataset.txt
513,120
512
.style.colors = theme; for pane in self.panes.values_mut() { pane.update_theme(theme); } } pub fn update_pane_arrow_fonts(&mut self, should_support_arrow_fonts: bool) { for pane in self.panes.values_mut() { pane.update_arrow_fonts(should_support_arrow_fonts); ...
rust_dataset_chunk_513121
rust_dataset.txt
513,121
512
self, pane_id: &PaneId) -> Option<PaneId> { let display_area = *self.display_area.borrow(); let viewport = *self.viewport.borrow(); let floating_pane_grid = FloatingPaneGrid::new( &mut self.panes, &mut self.desired_pane_positions, display_area, vi...
rust_dataset_chunk_513122
rust_dataset.txt
513,122
512
computed in two steps: // // 1. A fast pre-check, `may_join`, built on `join_class` and the JOIN_CLASS_BLOCKS / // JOIN_CLASS_TABLE tables. It looks at a single pair of code points and answers "these // can't be one character" or "these might be". Plain text (ASCII, Latin, CJK) is // rejected in a few instruc...
rust_dataset_chunk_513123
rust_dataset.txt
513,123
512
// EXTEND: a Unicode "Extend" code point that joins the code point before it (combining // marks, variation selectors, emoji skin tone modifiers, the keycap combiner, tag // characters). pub const EXTEND: u8 = 4; // CONSONANT: an Indic consonant that can join a preceding virama or mark into a conjunct. pub const CONSON...
rust_dataset_chunk_513124
rust_dataset.txt
513,124
512
is_wide_extend(right_first, right) { return true; } right & CONSONANT != 0 && (left & EXTEND != 0 || left_last.width() == Some(0)) } // Ranges of two-column characters (hiragana, katakana, CJK ideographs) that never join a // neighbour, so the printing fast path can give them width 2 without any looku...
rust_dataset_chunk_513125
rust_dataset.txt
513,125
512
false) } else { match c.width().unwrap_or(0) { 0 => (0, false), width => (width, new_cell_may_join_a_neighbour(c)), } } } // Whether a code point attached to a cell (e.g. a ZWJ at the end of "👨‍") means the cell may // join the next cell, so the row has to be marked as...
rust_dataset_chunk_513126
rust_dataset.txt
513,126
512
0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x000000...
rust_dataset_chunk_513127
rust_dataset.txt
513,127
512
0000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, ...
rust_dataset_chunk_513128
rust_dataset.txt
513,128
512
x0000000000000000, 0x000000000000000D, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000...
rust_dataset_chunk_513129
rust_dataset.txt
513,129
512
, 4), (0x064B, 0x065F, 4), (0x0670, 0x0670, 4), (0x06D6, 0x06DC, 4), (0x06DD, 0x06DD, 1), (0x06DF, 0x06E4, 4), (0x06E7, 0x06E8, 4), (0x06EA, 0x06ED, 4), (0x070F, 0x070F, 1), (0x0711, 0x0711, 4), (0x0730, 0x074A, 4), (0x07A6, 0x07B0, 4), (0x07EB, 0x07F3, 4), (0x07FD, 0...
rust_dataset_chunk_513130
rust_dataset.txt
513,130
512
(0x094D, 0x094D, 5), (0x094E, 0x094F, 2), (0x0951, 0x0957, 4), (0x0958, 0x095F, 8), (0x0962, 0x0963, 4), (0x0978, 0x097F, 8), (0x0981, 0x0981, 4), (0x0982, 0x0983, 2), (0x0995, 0x09A8, 8), (0x09AA, 0x09B0, 8), (0x09B2, 0x09B2, 8), (0x09B6, 0x09B9, 8), (0x09BC, 0x09BC, 4)...
rust_dataset_chunk_513131
rust_dataset.txt
513,131
512
x0A47, 0x0A48, 4), (0x0A4B, 0x0A4D, 4), (0x0A51, 0x0A51, 4), (0x0A70, 0x0A71, 4), (0x0A75, 0x0A75, 4), (0x0A81, 0x0A82, 4), (0x0A83, 0x0A83, 2), (0x0A95, 0x0AA8, 8), (0x0AAA, 0x0AB0, 8), (0x0AB2, 0x0AB3, 8), (0x0AB5, 0x0AB9, 8), (0x0ABC, 0x0ABC, 4), (0x0ABE, 0x0AC0, 2), ...
rust_dataset_chunk_513132
rust_dataset.txt
513,132
512
x0B3F, 4), (0x0B40, 0x0B40, 2), (0x0B41, 0x0B44, 4), (0x0B47, 0x0B48, 2), (0x0B4B, 0x0B4C, 2), (0x0B4D, 0x0B4D, 5), (0x0B55, 0x0B57, 4), (0x0B5C, 0x0B5D, 8), (0x0B5F, 0x0B5F, 8), (0x0B62, 0x0B63, 4), (0x0B71, 0x0B71, 8), (0x0B82, 0x0B82, 4), (0x0BBE, 0x0BBE, 4), (0x0B...
rust_dataset_chunk_513133
rust_dataset.txt
513,133
512
C46, 0x0C48, 4), (0x0C4A, 0x0C4C, 4), (0x0C4D, 0x0C4D, 5), (0x0C55, 0x0C56, 4), (0x0C58, 0x0C5A, 8), (0x0C62, 0x0C63, 4), (0x0C81, 0x0C81, 4), (0x0C82, 0x0C83, 2), (0x0CBC, 0x0CBC, 4), (0x0CBE, 0x0CBE, 2), (0x0CBF, 0x0CC0, 4), (0x0CC1, 0x0CC1, 2), (0x0CC2, 0x0CC2, 4), ...
rust_dataset_chunk_513134
rust_dataset.txt
513,134
512
x0D4D, 0x0D4D, 5), (0x0D4E, 0x0D4E, 1), (0x0D57, 0x0D57, 4), (0x0D62, 0x0D63, 4), (0x0D81, 0x0D81, 4), (0x0D82, 0x0D83, 2), (0x0DCA, 0x0DCA, 4), (0x0DCF, 0x0DCF, 4), (0x0DD0, 0x0DD1, 2), (0x0DD2, 0x0DD4, 4), (0x0DD6, 0x0DD6, 4), (0x0DD8, 0x0DDE, 2), (0x0DDF, 0x0DDF, 4), ...
rust_dataset_chunk_513135
rust_dataset.txt
513,135
512
0F7F, 0x0F7F, 2), (0x0F80, 0x0F84, 4), (0x0F86, 0x0F87, 4), (0x0F8D, 0x0F97, 4), (0x0F99, 0x0FBC, 4), (0x0FC6, 0x0FC6, 4), (0x1000, 0x102A, 8), (0x102D, 0x1030, 4), (0x1031, 0x1031, 2), (0x1032, 0x1037, 4), (0x1039, 0x1039, 5), (0x103A, 0x103A, 4), (0x103B, 0x103C, 2), ...
rust_dataset_chunk_513136
rust_dataset.txt
513,136
512
0, 0x115F, 1), (0x1160, 0x11A7, 3), (0x11A8, 0x11FF, 2), (0x135D, 0x135F, 4), (0x1712, 0x1715, 4), (0x1732, 0x1734, 4), (0x1752, 0x1753, 4), (0x1772, 0x1773, 4), (0x1780, 0x17B3, 8), (0x17B4, 0x17B5, 4), (0x17B6, 0x17B6, 2), (0x17B7, 0x17BD, 4), (0x17BE, 0x17C5, 2), (...
rust_dataset_chunk_513137
rust_dataset.txt
513,137
512
(0x1A17, 0x1A18, 4), (0x1A19, 0x1A1A, 2), (0x1A1B, 0x1A1B, 4), (0x1A20, 0x1A54, 8), (0x1A55, 0x1A55, 2), (0x1A56, 0x1A56, 4), (0x1A57, 0x1A57, 2), (0x1A58, 0x1A5E, 4), (0x1A60, 0x1A60, 5), (0x1A62, 0x1A62, 4), (0x1A65, 0x1A6C, 4), (0x1A6D, 0x1A72, 2), (0x1A73, 0x1A7C,...
rust_dataset_chunk_513138
rust_dataset.txt
513,138
512
B82, 2), (0x1B83, 0x1BA0, 8), (0x1BA1, 0x1BA1, 2), (0x1BA2, 0x1BA5, 4), (0x1BA6, 0x1BA7, 2), (0x1BA8, 0x1BAA, 4), (0x1BAB, 0x1BAB, 5), (0x1BAC, 0x1BAD, 4), (0x1BAE, 0x1BAF, 8), (0x1BBB, 0x1BBD, 8), (0x1BE6, 0x1BE6, 4), (0x1BE7, 0x1BE7, 2), (0x1BE8, 0x1BE9, 4), (0x1BEA...
rust_dataset_chunk_513139
rust_dataset.txt
513,139
512
, 0x1DFF, 4), (0x200C, 0x200C, 4), (0x200D, 0x200D, 1), (0x20D0, 0x20F0, 4), (0x2CEF, 0x2CF1, 4), (0x2D7F, 0x2D7F, 4), (0x2DE0, 0x2DFF, 4), (0x302A, 0x302F, 4), (0x3099, 0x309A, 4), (0xA66F, 0xA672, 4), (0xA674, 0xA67D, 4), (0xA69E, 0xA69F, 4), (0xA6F0, 0xA6F1, 4), (0...
rust_dataset_chunk_513140
rust_dataset.txt
513,140
512
), (0xA98F, 0xA9B2, 8), (0xA9B3, 0xA9B3, 4), (0xA9B4, 0xA9B5, 2), (0xA9B6, 0xA9B9, 4), (0xA9BA, 0xA9BB, 2), (0xA9BC, 0xA9BD, 4), (0xA9BE, 0xA9BF, 2), (0xA9C0, 0xA9C0, 5), (0xA9E0, 0xA9E4, 8), (0xA9E5, 0xA9E5, 4), (0xA9E7, 0xA9EF, 8), (0xA9FA, 0xA9FE, 8), (0xAA29, 0xAA...
rust_dataset_chunk_513141
rust_dataset.txt
513,141
512
(0xAAEC, 0xAAED, 4), (0xAAEE, 0xAAEF, 2), (0xAAF5, 0xAAF5, 2), (0xAAF6, 0xAAF6, 5), (0xABC0, 0xABDA, 8), (0xABE3, 0xABE4, 2), (0xABE5, 0xABE5, 4), (0xABE6, 0xABE7, 2), (0xABE8, 0xABE8, 4), (0xABE9, 0xABEA, 2), (0xABEC, 0xABEC, 2), (0xABED, 0xABED, 4), (0xAC00, 0xAC00, 3)...
rust_dataset_chunk_513142
rust_dataset.txt
513,142
512
xAD34, 0xAD34, 3), (0xAD35, 0xAD4F, 2), (0xAD50, 0xAD50, 3), (0xAD51, 0xAD6B, 2), (0xAD6C, 0xAD6C, 3), (0xAD6D, 0xAD87, 2), (0xAD88, 0xAD88, 3), (0xAD89, 0xADA3, 2), (0xADA4, 0xADA4, 3), (0xADA5, 0xADBF, 2), (0xADC0, 0xADC0, 3), (0xADC1, 0xADDB, 2), (0xADDC, 0xADDC, 3), ...
rust_dataset_chunk_513143
rust_dataset.txt
513,143
512
xAF10, 0xAF10, 3), (0xAF11, 0xAF2B, 2), (0xAF2C, 0xAF2C, 3), (0xAF2D, 0xAF47, 2), (0xAF48, 0xAF48, 3), (0xAF49, 0xAF63, 2), (0xAF64, 0xAF64, 3), (0xAF65, 0xAF7F, 2), (0xAF80, 0xAF80, 3), (0xAF81, 0xAF9B, 2), (0xAF9C, 0xAF9C, 3), (0xAF9D, 0xAFB7, 2), (0xAFB8, 0xAFB8, 3), ...
rust_dataset_chunk_513144
rust_dataset.txt
513,144
512
0EB, 2), (0xB0EC, 0xB0EC, 3), (0xB0ED, 0xB107, 2), (0xB108, 0xB108, 3), (0xB109, 0xB123, 2), (0xB124, 0xB124, 3), (0xB125, 0xB13F, 2), (0xB140, 0xB140, 3), (0xB141, 0xB15B, 2), (0xB15C, 0xB15C, 3), (0xB15D, 0xB177, 2), (0xB178, 0xB178, 3), (0xB179, 0xB193, 2), (0xB194...
rust_dataset_chunk_513145
rust_dataset.txt
513,145
512
0xB2C7, 2), (0xB2C8, 0xB2C8, 3), (0xB2C9, 0xB2E3, 2), (0xB2E4, 0xB2E4, 3), (0xB2E5, 0xB2FF, 2), (0xB300, 0xB300, 3), (0xB301, 0xB31B, 2), (0xB31C, 0xB31C, 3), (0xB31D, 0xB337, 2), (0xB338, 0xB338, 3), (0xB339, 0xB353, 2), (0xB354, 0xB354, 3), (0xB355, 0xB36F, 2), (0xB...
rust_dataset_chunk_513146
rust_dataset.txt
513,146
512
), (0xB488, 0xB488, 3), (0xB489, 0xB4A3, 2), (0xB4A4, 0xB4A4, 3), (0xB4A5, 0xB4BF, 2), (0xB4C0, 0xB4C0, 3), (0xB4C1, 0xB4DB, 2), (0xB4DC, 0xB4DC, 3), (0xB4DD, 0xB4F7, 2), (0xB4F8, 0xB4F8, 3), (0xB4F9, 0xB513, 2), (0xB514, 0xB514, 3), (0xB515, 0xB52F, 2), (0xB530, 0xB5...
rust_dataset_chunk_513147
rust_dataset.txt
513,147
512
), (0xB648, 0xB648, 3), (0xB649, 0xB663, 2), (0xB664, 0xB664, 3), (0xB665, 0xB67F, 2), (0xB680, 0xB680, 3), (0xB681, 0xB69B, 2), (0xB69C, 0xB69C, 3), (0xB69D, 0xB6B7, 2), (0xB6B8, 0xB6B8, 3), (0xB6B9, 0xB6D3, 2), (0xB6D4, 0xB6D4, 3), (0xB6D5, 0xB6EF, 2), (0xB6F0, 0xB6...
rust_dataset_chunk_513148
rust_dataset.txt
513,148
512
0xB808, 3), (0xB809, 0xB823, 2), (0xB824, 0xB824, 3), (0xB825, 0xB83F, 2), (0xB840, 0xB840, 3), (0xB841, 0xB85B, 2), (0xB85C, 0xB85C, 3), (0xB85D, 0xB877, 2), (0xB878, 0xB878, 3), (0xB879, 0xB893, 2), (0xB894, 0xB894, 3), (0xB895, 0xB8AF, 2), (0xB8B0, 0xB8B0, 3), (0xB...
rust_dataset_chunk_513149
rust_dataset.txt
513,149
512
), (0xB9E4, 0xB9E4, 3), (0xB9E5, 0xB9FF, 2), (0xBA00, 0xBA00, 3), (0xBA01, 0xBA1B, 2), (0xBA1C, 0xBA1C, 3), (0xBA1D, 0xBA37, 2), (0xBA38, 0xBA38, 3), (0xBA39, 0xBA53, 2), (0xBA54, 0xBA54, 3), (0xBA55, 0xBA6F, 2), (0xBA70, 0xBA70, 3), (0xBA71, 0xBA8B, 2), (0xBA8C, 0xBA...
rust_dataset_chunk_513150
rust_dataset.txt
513,150
512
), (0xBBC0, 0xBBC0, 3), (0xBBC1, 0xBBDB, 2), (0xBBDC, 0xBBDC, 3), (0xBBDD, 0xBBF7, 2), (0xBBF8, 0xBBF8, 3), (0xBBF9, 0xBC13, 2), (0xBC14, 0xBC14, 3), (0xBC15, 0xBC2F, 2), (0xBC30, 0xBC30, 3), (0xBC31, 0xBC4B, 2), (0xBC4C, 0xBC4C, 3), (0xBC4D, 0xBC67, 2), (0xBC68, 0xBC...
rust_dataset_chunk_513151
rust_dataset.txt
513,151
512
9C, 0xBD9C, 3), (0xBD9D, 0xBDB7, 2), (0xBDB8, 0xBDB8, 3), (0xBDB9, 0xBDD3, 2), (0xBDD4, 0xBDD4, 3), (0xBDD5, 0xBDEF, 2), (0xBDF0, 0xBDF0, 3), (0xBDF1, 0xBE0B, 2), (0xBE0C, 0xBE0C, 3), (0xBE0D, 0xBE27, 2), (0xBE28, 0xBE28, 3), (0xBE29, 0xBE43, 2), (0xBE44, 0xBE44, 3), ...
rust_dataset_chunk_513152
rust_dataset.txt
513,152
512
(0xBF78, 0xBF78, 3), (0xBF79, 0xBF93, 2), (0xBF94, 0xBF94, 3), (0xBF95, 0xBFAF, 2), (0xBFB0, 0xBFB0, 3), (0xBFB1, 0xBFCB, 2), (0xBFCC, 0xBFCC, 3), (0xBFCD, 0xBFE7, 2), (0xBFE8, 0xBFE8, 3), (0xBFE9, 0xC003, 2), (0xC004, 0xC004, 3), (0xC005, 0xC01F, 2), (0xC020, 0xC020, 3)...
rust_dataset_chunk_513153
rust_dataset.txt
513,153
512
2), (0xC154, 0xC154, 3), (0xC155, 0xC16F, 2), (0xC170, 0xC170, 3), (0xC171, 0xC18B, 2), (0xC18C, 0xC18C, 3), (0xC18D, 0xC1A7, 2), (0xC1A8, 0xC1A8, 3), (0xC1A9, 0xC1C3, 2), (0xC1C4, 0xC1C4, 3), (0xC1C5, 0xC1DF, 2), (0xC1E0, 0xC1E0, 3), (0xC1E1, 0xC1FB, 2), (0xC1FC, 0x...
rust_dataset_chunk_513154
rust_dataset.txt
513,154
512
2), (0xC314, 0xC314, 3), (0xC315, 0xC32F, 2), (0xC330, 0xC330, 3), (0xC331, 0xC34B, 2), (0xC34C, 0xC34C, 3), (0xC34D, 0xC367, 2), (0xC368, 0xC368, 3), (0xC369, 0xC383, 2), (0xC384, 0xC384, 3), (0xC385, 0xC39F, 2), (0xC3A0, 0xC3A0, 3), (0xC3A1, 0xC3BB, 2), (0xC3BC, 0x...
rust_dataset_chunk_513155
rust_dataset.txt
513,155
512
0xC4D4, 3), (0xC4D5, 0xC4EF, 2), (0xC4F0, 0xC4F0, 3), (0xC4F1, 0xC50B, 2), (0xC50C, 0xC50C, 3), (0xC50D, 0xC527, 2), (0xC528, 0xC528, 3), (0xC529, 0xC543, 2), (0xC544, 0xC544, 3), (0xC545, 0xC55F, 2), (0xC560, 0xC560, 3), (0xC561, 0xC57B, 2), (0xC57C, 0xC57C, 3), (0xC...
rust_dataset_chunk_513156
rust_dataset.txt
513,156
512
2), (0xC6B0, 0xC6B0, 3), (0xC6B1, 0xC6CB, 2), (0xC6CC, 0xC6CC, 3), (0xC6CD, 0xC6E7, 2), (0xC6E8, 0xC6E8, 3), (0xC6E9, 0xC703, 2), (0xC704, 0xC704, 3), (0xC705, 0xC71F, 2), (0xC720, 0xC720, 3), (0xC721, 0xC73B, 2), (0xC73C, 0xC73C, 3), (0xC73D, 0xC757, 2), (0xC758, 0xC...
rust_dataset_chunk_513157
rust_dataset.txt
513,157
512
3), (0xC871, 0xC88B, 2), (0xC88C, 0xC88C, 3), (0xC88D, 0xC8A7, 2), (0xC8A8, 0xC8A8, 3), (0xC8A9, 0xC8C3, 2), (0xC8C4, 0xC8C4, 3), (0xC8C5, 0xC8DF, 2), (0xC8E0, 0xC8E0, 3), (0xC8E1, 0xC8FB, 2), (0xC8FC, 0xC8FC, 3), (0xC8FD, 0xC917, 2), (0xC918, 0xC918, 3), (0xC919, 0xC...
rust_dataset_chunk_513158
rust_dataset.txt
513,158
512
3), (0xCA31, 0xCA4B, 2), (0xCA4C, 0xCA4C, 3), (0xCA4D, 0xCA67, 2), (0xCA68, 0xCA68, 3), (0xCA69, 0xCA83, 2), (0xCA84, 0xCA84, 3), (0xCA85, 0xCA9F, 2), (0xCAA0, 0xCAA0, 3), (0xCAA1, 0xCABB, 2), (0xCABC, 0xCABC, 3), (0xCABD, 0xCAD7, 2), (0xCAD8, 0xCAD8, 3), (0xCAD9, 0xC...
rust_dataset_chunk_513159
rust_dataset.txt
513,159
512
0xCC0C, 3), (0xCC0D, 0xCC27, 2), (0xCC28, 0xCC28, 3), (0xCC29, 0xCC43, 2), (0xCC44, 0xCC44, 3), (0xCC45, 0xCC5F, 2), (0xCC60, 0xCC60, 3), (0xCC61, 0xCC7B, 2), (0xCC7C, 0xCC7C, 3), (0xCC7D, 0xCC97, 2), (0xCC98, 0xCC98, 3), (0xCC99, 0xCCB3, 2), (0xCCB4, 0xCCB4, 3), (0xC...
rust_dataset_chunk_513160
rust_dataset.txt
513,160
512
3), (0xCDE9, 0xCE03, 2), (0xCE04, 0xCE04, 3), (0xCE05, 0xCE1F, 2), (0xCE20, 0xCE20, 3), (0xCE21, 0xCE3B, 2), (0xCE3C, 0xCE3C, 3), (0xCE3D, 0xCE57, 2), (0xCE58, 0xCE58, 3), (0xCE59, 0xCE73, 2), (0xCE74, 0xCE74, 3), (0xCE75, 0xCE8F, 2), (0xCE90, 0xCE90, 3), (0xCE91, 0xC...
rust_dataset_chunk_513161
rust_dataset.txt
513,161
512
xCFC5, 0xCFDF, 2), (0xCFE0, 0xCFE0, 3), (0xCFE1, 0xCFFB, 2), (0xCFFC, 0xCFFC, 3), (0xCFFD, 0xD017, 2), (0xD018, 0xD018, 3), (0xD019, 0xD033, 2), (0xD034, 0xD034, 3), (0xD035, 0xD04F, 2), (0xD050, 0xD050, 3), (0xD051, 0xD06B, 2), (0xD06C, 0xD06C, 3), (0xD06D, 0xD087, 2), ...
rust_dataset_chunk_513162
rust_dataset.txt
513,162
512
, 0xD1A0, 3), (0xD1A1, 0xD1BB, 2), (0xD1BC, 0xD1BC, 3), (0xD1BD, 0xD1D7, 2), (0xD1D8, 0xD1D8, 3), (0xD1D9, 0xD1F3, 2), (0xD1F4, 0xD1F4, 3), (0xD1F5, 0xD20F, 2), (0xD210, 0xD210, 3), (0xD211, 0xD22B, 2), (0xD22C, 0xD22C, 3), (0xD22D, 0xD247, 2), (0xD248, 0xD248, 3), (0...
rust_dataset_chunk_513163
rust_dataset.txt
513,163
512
0xD360, 3), (0xD361, 0xD37B, 2), (0xD37C, 0xD37C, 3), (0xD37D, 0xD397, 2), (0xD398, 0xD398, 3), (0xD399, 0xD3B3, 2), (0xD3B4, 0xD3B4, 3), (0xD3B5, 0xD3CF, 2), (0xD3D0, 0xD3D0, 3), (0xD3D1, 0xD3EB, 2), (0xD3EC, 0xD3EC, 3), (0xD3ED, 0xD407, 2), (0xD408, 0xD408, 3), (0xD...
rust_dataset_chunk_513164
rust_dataset.txt
513,164
512
53B, 2), (0xD53C, 0xD53C, 3), (0xD53D, 0xD557, 2), (0xD558, 0xD558, 3), (0xD559, 0xD573, 2), (0xD574, 0xD574, 3), (0xD575, 0xD58F, 2), (0xD590, 0xD590, 3), (0xD591, 0xD5AB, 2), (0xD5AC, 0xD5AC, 3), (0xD5AD, 0xD5C7, 2), (0xD5C8, 0xD5C8, 3), (0xD5C9, 0xD5E3, 2), (0xD5E4...
rust_dataset_chunk_513165
rust_dataset.txt
513,165
512
(0xD6FC, 0xD6FC, 3), (0xD6FD, 0xD717, 2), (0xD718, 0xD718, 3), (0xD719, 0xD733, 2), (0xD734, 0xD734, 3), (0xD735, 0xD74F, 2), (0xD750, 0xD750, 3), (0xD751, 0xD76B, 2), (0xD76C, 0xD76C, 3), (0xD76D, 0xD787, 2), (0xD788, 0xD788, 3), (0xD789, 0xD7A3, 2), (0xD7B0, 0xD7C6,...
rust_dataset_chunk_513166
rust_dataset.txt
513,166
512
0x10D24, 0x10D27, 4), (0x10D69, 0x10D6D, 4), (0x10EAB, 0x10EAC, 4), (0x10EFA, 0x10EFF, 4), (0x10F46, 0x10F50, 4), (0x10F82, 0x10F85, 4), (0x11000, 0x11000, 2), (0x11001, 0x11001, 4), (0x11002, 0x11002, 2), (0x11038, 0x11046, 4), (0x11070, 0x11070, 4), (0x11073, 0x11074, 4), ...
rust_dataset_chunk_513167
rust_dataset.txt
513,167
512
0x11147, 8), (0x11173, 0x11173, 4), (0x11180, 0x11181, 4), (0x11182, 0x11182, 2), (0x111B3, 0x111B5, 2), (0x111B6, 0x111BE, 4), (0x111BF, 0x111BF, 2), (0x111C0, 0x111C0, 4), (0x111C2, 0x111C3, 1), (0x111C9, 0x111CC, 4), (0x111CE, 0x111CE, 2), (0x111CF, 0x111CF, 4), (0x112...
rust_dataset_chunk_513168
rust_dataset.txt
513,168
512
4), (0x11357, 0x11357, 4), (0x11362, 0x11363, 2), (0x11366, 0x1136C, 4), (0x11370, 0x11374, 4), (0x11380, 0x11389, 8), (0x1138B, 0x1138B, 8), (0x1138E, 0x1138E, 8), (0x11390, 0x113B5, 8), (0x113B8, 0x113B8, 4), (0x113B9, 0x113BA, 2), (0x113BB, 0x113C0, 4), (0x113C2, 0x11...
rust_dataset_chunk_513169
rust_dataset.txt
513,169
512
2), (0x114B3, 0x114B8, 4), (0x114B9, 0x114B9, 2), (0x114BA, 0x114BA, 4), (0x114BB, 0x114BC, 2), (0x114BD, 0x114BD, 4), (0x114BE, 0x114BE, 2), (0x114BF, 0x114C0, 4), (0x114C1, 0x114C1, 2), (0x114C2, 0x114C3, 4), (0x115AF, 0x115AF, 4), (0x115B0, 0x115B1, 2), (0x115B2, 0x115...
rust_dataset_chunk_513170
rust_dataset.txt
513,170
512
(0x1171F, 0x1171F, 4), (0x11722, 0x11725, 4), (0x11726, 0x11726, 2), (0x11727, 0x1172B, 4), (0x1182C, 0x1182E, 2), (0x1182F, 0x11837, 4), (0x11838, 0x11838, 2), (0x11839, 0x1183A, 4), (0x11900, 0x11906, 8), (0x11909, 0x11909, 8), (0x1190C, 0x11913, 8), (0x11915, 0x11916, 8),...
rust_dataset_chunk_513171
rust_dataset.txt
513,171
512
0x11A0A, 4), (0x11A0B, 0x11A32, 8), (0x11A33, 0x11A38, 4), (0x11A39, 0x11A39, 2), (0x11A3B, 0x11A3E, 4), (0x11A47, 0x11A47, 5), (0x11A50, 0x11A50, 8), (0x11A51, 0x11A56, 4), (0x11A57, 0x11A58, 2), (0x11A59, 0x11A5B, 4), (0x11A5C, 0x11A83, 8), (0x11A84, 0x11A89, 1), (0x11...
rust_dataset_chunk_513172
rust_dataset.txt
513,172
512
0x11CA9, 0x11CA9, 2), (0x11CAA, 0x11CB0, 4), (0x11CB1, 0x11CB1, 2), (0x11CB2, 0x11CB3, 4), (0x11CB4, 0x11CB4, 2), (0x11CB5, 0x11CB6, 4), (0x11D31, 0x11D36, 4), (0x11D3A, 0x11D3A, 4), (0x11D3C, 0x11D3D, 4), (0x11D3F, 0x11D45, 4), (0x11D46, 0x11D46, 1), (0x11D47, 0x11D47, 4), ...
rust_dataset_chunk_513173
rust_dataset.txt
513,173
512
(0x11F40, 0x11F41, 4), (0x11F42, 0x11F42, 5), (0x11F5A, 0x11F5A, 4), (0x13440, 0x13440, 4), (0x13447, 0x13455, 4), (0x1611E, 0x16129, 4), (0x1612A, 0x1612C, 2), (0x1612D, 0x1612F, 4), (0x16AF0, 0x16AF4, 4), (0x16B30, 0x16B36, 4), (0x16D63, 0x16D63, 3), (0x16D67, 0x16D6A, 3),...
rust_dataset_chunk_513174
rust_dataset.txt
513,174
512
4), (0x1DA75, 0x1DA75, 4), (0x1DA84, 0x1DA84, 4), (0x1DA9B, 0x1DA9F, 4), (0x1DAA1, 0x1DAAF, 4), (0x1E000, 0x1E006, 4), (0x1E008, 0x1E018, 4), (0x1E01B, 0x1E021, 4), (0x1E023, 0x1E024, 4), (0x1E026, 0x1E02A, 4), (0x1E08F, 0x1E08F, 4), (0x1E130, 0x1E136, 4), (0x1E2AE, 0x1E2...
rust_dataset_chunk_513175
rust_dataset.txt
513,175
512
a single // unit unbounded. 255 columns is also the largest width a cell can carry on the wire. pub const MAX_GROUP_CELLS: usize = 32; pub const MAX_GROUP_COLUMNS: usize = 255; // Given a row of cells and the index of a cell, returns the index one past the last cell of // the group starting there (start + 1 if the ce...
rust_dataset_chunk_513176
rust_dataset.txt
513,176
512
draw the text at a different width than the unit's columns, so it must // be written with erase + absolute cursor move. pub complex: bool, } // Builds the text to send to a host terminal for one unit and decides whether it must be // written with erase + absolute cursor move (see `write_unit_text` in output/m...
rust_dataset_chunk_513177
rust_dataset.txt
513,177
512
text.push(' '); } UnitText { text, strip_vs16, complex, } } // The (start, end) column range of every unit in a row, in order: one entry per cell, or per // group when `may_have_groups` is set. Used to widen a selection to whole units. pub fn unit_column_spans( cells: &[crate::...
rust_dataset_chunk_513178
rust_dataset.txt
513,178
512
, PaletteColor, Styling}, input::mouse::{MouseEvent, MouseEventType}, input::options::DEFAULT_WORD_SEPARATORS, nested_session::{self, NestedSessionMessage}, pane_size::SizeInPixels, position::Position, }; const TABSTOP_WIDTH: usize = 8; // TODO: is this always right? pub const MAX_TITLE_STACK_SIZE:...
rust_dataset_chunk_513179
rust_dataset.txt
513,179
512
{ matches!( self, Osc99PayloadType::Close | Osc99PayloadType::Query | Osc99PayloadType::Alive ) } } pub(crate) fn split_osc99_payload(payload: &str) -> (&str, &str) { match payload.find(';') { Some(idx) => ( payload.get(..idx).unwrap_or_default(), ...
rust_dataset_chunk_513180
rust_dataset.txt
513,180
512
.is_empty() { self.remember(id); self.wants_report.insert(id.to_owned(), wants_report); } wants_report }, None => self.wants_report.get(id).copied().unwrap_or(false), } } fn assemble( &mut self, ...
rust_dataset_chunk_513181
rust_dataset.txt
513,181
512
from_metadata_value(payload_value); } parts.push(kv.to_owned()); } } if !found_id { parts.insert(0, format!("i=p{}{}.", pane_id, flags)); } if !found_action && !payload_type.is_control_request() { parts.push("a=focus,report".to_owned()); } parts.jo...
rust_dataset_chunk_513182
rust_dataset.txt
513,182
512
ailing_blanks(); row }) .collect(), None => vec![], } } fn get_viewport_bottom_canonical_row_and_wraps(viewport: &mut VecDeque<Row>) -> Vec<Row> { let mut index_of_last_non_canonical_row = None; for (i, row) in viewport.iter().enumerate().rev() { inde...
rust_dataset_chunk_513183
rust_dataset.txt
513,183
512
_index) { Some(row) => row.width_cached(), None => return false, }; if last_row_width > width { return false; } if !lines_above[last_index].is_canonical { if let Some(previous_index) = last_index.checked_sub(1) { let continuation_character_width = first_charac...
rust_dataset_chunk_513184
rust_dataset.txt
513,184
512
}; after as isize - before as isize } fn run_display_height(run_width: usize, width: usize) -> usize { if run_width <= width || width == 0 { return 1; } run_width.div_ceil(width) } fn transfer_rows_from_lines_above_to_viewport( lines_above: &mut VecDeque<Row>, viewport: &mut VecDeque<...
rust_dataset_chunk_513185
rust_dataset.txt
513,185
512
} else if row_count_delta < 0 { kitty_grid .merge_rows_into_line_start(lines_above.len(), row_count_delta.unsigned_abs()); } } viewport.push_front(next_lines.pop().unwrap()); lines_added_to_viewport += 1; } for excess_row in next_lines { ...
rust_dataset_chunk_513186
rust_dataset.txt
513,186
512
{ let canonical_row = get_top_canonical_row_and_wraps(lines_below); next_lines = Row::rewrap_rows(canonical_row, max_viewport_width); } if next_lines.is_empty() { break; } } viewport.push_back(next_lines.remove(0)); ...
rust_dataset_chunk_513187
rust_dataset.txt
513,187
512
} if vec.len() == vec.capacity() && vec.len() < scroll_buffer_size { let doubled = vec.capacity().max(8); vec.reserve_exact(doubled.min(scroll_buffer_size - vec.len())); } vec.push_back(value); evicted_row_width } pub fn create_horizontal_tabstops(columns: usize) -> BTreeSet<usize> { ...
rust_dataset_chunk_513188
rust_dataset.txt
513,188
512
()); for x in &line.columns { x.push_text_to(&mut s); } if ends_a_logical_line { buf.push_str(&s.trim_end_matches(' ')); } else { buf.push_str(&s); } is_first = false; } buf }}; } ...
rust_dataset_chunk_513189
rust_dataset.txt
513,189
512
(&mut mouse_pos_encode(column)); } else { coordinates.push(32 + column as u8); } if line > 95 { coordinates.append(&mut mouse_pos_encode(line as usize)); } else { coordinates.push(32 + line as u8); } coordinates } /// Find the canonical root row for a logical line group ...
rust_dataset_chunk_513190
rust_dataset.txt
513,190
512
string back to /// (viewport_row_idx, display_column). /// /// display_column is the sum of character.width() for all characters /// before the target character in that row — NOT a char count or byte count. /// This correctly handles wide characters (CJK, emoji). /// /// `boundaries` is the table produced by `collect_...
rust_dataset_chunk_513191
rust_dataset.txt
513,191
512
set of captures. /// If capture group 1 exists, it is used (allowing patterns to include /// context such as surrounding whitespace in the full match while /// highlighting only the content in group 1). Otherwise the full match /// (group 0) is returned. fn highlight_match<'t>(captures: &regex::Captures<'t>) -> Option...
rust_dataset_chunk_513192
rust_dataset.txt
513,192
512
#[derive(Clone)] pub struct Grid { pub(crate) lines_above: VecDeque<Row>, pub(crate) viewport: VecDeque<Row>, pub(crate) lines_below: VecDeque<Row>, horizontal_tabstops: BTreeSet<usize>, alternate_screen_state: Option<AlternateScreenState>, cursor: Cursor, cursor_is_hidden: bool, saved_c...
rust_dataset_chunk_513193
rust_dataset.txt
513,193
512
back_epoch: u64, pub mouse_mode: MouseMode, pub mouse_tracking: MouseTracking, pub focus_event_tracking: bool, /// Has the app in this pane subscribed to host color-palette theme /// notifications via `CSI ? 2031 h`? When true, host-emitted DSR 997 /// notifications (received by the client and f...
rust_dataset_chunk_513194
rust_dataset.txt
513,194
512
/// Pane-scoped override for the default background colour. Same /// invariant as `pane_default_fg`. pub pane_default_bg: Option<(u8, u8, u8)>, pub plugin_highlights: HashMap<u32, Vec<(String, CompiledHighlight)>>, // key: plugin_id (u32), inner vec: (pattern, compiled) pairs pub hover_position: Op...
rust_dataset_chunk_513195
rust_dataset.txt
513,195
512
, u8)) -> String { format!("#{:02x}{:02x}{:02x}", r, g, b) } /// Format an RGB triple as the body of an OSC 10/11 reply — /// `rgb:RRRR/GGGG/BBBB` per xterm's ctlseqs, where each 8-bit /// component is widened to the 16-bit hex form by repetition /// (`0xAB` → `0xABAB`). fn osc_color_reply_body((r, g, b): (u8, u8,...
rust_dataset_chunk_513196
rust_dataset.txt
513,196
512
underline } } const CLICK_TIME_THRESHOLD: u128 = 400; // Doherty Threshold const SYNCHRONIZED_UPDATE_CAP: std::time::Duration = std::time::Duration::from_millis(150); #[derive(Clone, Debug, Default)] struct Click { position_and_time: Option<(Position, std::time::Instant)>, count: usize, } impl Click { ...
rust_dataset_chunk_513197
rust_dataset.txt
513,197
512
el_indication_word .chars() .nth(x % sixel_indication_word.len()) .unwrap() }; for image_coordinates in self .sixel_grid .image_cell_coordinates_in_viewport(self.height, self.lines_above.len()) { let (image_top_e...
rust_dataset_chunk_513198
rust_dataset.txt
513,198
512
{ PaletteColor::Rgb(rgb) => AnsiCode::RgbCode(rgb), PaletteColor::EightBit(i) => AnsiCode::ColorIndex(i), } }; let tu = &style.colors.text_unselected; let emphasis = [tu.emphasis_0, tu.emphasis_1, tu.emphasis_2, tu.emphasis_3]; match style_decl { HighlightStyle::...
rust_dataset_chunk_513199
rust_dataset.txt
513,199
512
terminal_emulator_colors debug: bool, arrow_fonts: bool, styled_underlines: bool, osc8_hyperlinks: bool, explicitly_disable_kitty_keyboard_protocol: bool, ) -> Self { let sixel_grid = SixelGrid::new(character_cell_size.clone(), sixel_image_store); let kitty_g...