Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_suffix|>/ var packageVer = Package.Current.Id.Version; // string oldVer = ApplicationSettingsStore.Read(SettingsKey.AppVersionStr) as string ?? ""; // string currentVer = $"{packageVer.Major}.{packageVer.Minor}.{packageVer.Build}.{packageVer.Revision}"; // if (currentVer != ol...
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for license information. // ---------------------------------------------------------------------...
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// <|fim_suffix|>Meaning you should not call base.OnKeyDown after execution /// All parent OnKeyDown event will not be received and should not be triggered if it is true /// </summary> public bool ShouldSwallow { get; } } }<|fim_middle|>----------------------------------------...
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 201<|fim_suffix|>oject root for license information. // --------------------------------------------------------------------------------------------- namespace Notepads.Commands { publi...
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All r<|fim_suffix|>ution(); void Execute(T args); } }<|fim_middle|>ights reserved. // See LICENSE file in the project root for license informatio...
fim
0x7c13/Notepads
csharp
<|fim_suffix|>d<in T> { bool Hit( bool ctrlDown, bool altDown, bool shiftDown, bool leftButtonDown, bool middleButtonDown, bool rightButtonDown); bool ShouldHandleAfterExecution(); bool ShouldSwallowAfterExecution(); ...
fim
0x7c13/Notepads
csharp
<|fim_suffix|> } public void Execute(T args) { _action?.Invoke(args); } } }<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE...
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for license information. // ---------------------------------------------------------------------...
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for license information. // ---------------------------------------------------------------------...
fim
0x7c13/Notepads
csharp
<|fim_suffix|>To).Properties; var shouldHandle = false; var shouldSwallow = false; foreach (var command in Commands) { if (command.Hit( ctrlDown, altDown, shiftDown, point.IsL...
fim
0x7c13/Notepads
csharp
<|fim_suffix|>t"); SecondaryButtonText = ResourceLoader.GetString("AppCloseSaveReminderDialog_SecondaryButtonText"); CloseButtonText = ResourceLoader.GetString("AppCloseSaveReminderDialog_CloseButtonText"); PrimaryButtonStyle = GetButtonStyle(Color.FromArgb(255, 38, 114, 201)); ...
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi <|fim_suffix|>og : NotepadsDialog { public FileOpenErrorDialog(string filePath, string errorMsg) { Title = ResourceLoader.GetString("FileOpen...
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for license information. // ---------------------------------------------------------------------...
fim
0x7c13/Notepads
csharp
<|fim_suffix|>: NotepadsDialog { public FileSaveErrorDialog(string filePath, string errorMsg) { var content = string.IsNullOrEmpty(filePath) ? errorMsg : string.Format(ResourceLoader.GetString("FileSaveErrorDialog_Content"), filePath, errorMsg); Title = ResourceLoader.GetStri...
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for license information. // ---------------------------------------------------------------------...
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// ----------------------------------------------------------<|fim_suffix|>------------------------------------------------------- namespace Notepads.Controls.Dialog { using System; public sealed class RevertAllChangesConfirmationDialog : NotepadsDialog { public RevertAllChangesConf...
fim
0x7c13/Notepads
csharp
// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for license information. // -----------------------------------------------------------------------------------...
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for license information. // ---------------------------------------------------------------------...
fim
0x7c13/Notepads
csharp
<|fim_suffix|>Media; public sealed class BrushFactory { private readonly Dictionary<Color, SolidColorBrush> _brushes = new Dictionary<Color, SolidColorBrush>(); public SolidColorBrush GetOrCreateSolidColorBrush(Color color) { if (_brushes.TryGetValue(color, out var brush)) ...
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// ---<|fim_suffix|>ideBySideDiffViewer { void RenderDiff(string left, string right, ElementTheme theme); } }<|fim_middle|>------------------------------------------------------------------------------------------ // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // S...
fim
0x7c13/Notepads
csharp
<|fim_suffix|> } } }<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for license information. // ---------------------------------------------...
fim
0x7c13/Notepads
csharp
// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for license information. // -----------------------------------------------------------------------------------...
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for license information. // ---------------------------------------------------------------------...
fim
0x7c13/Notepads
csharp
<|fim_suffix|>or color) { await Dispatcher.CallOnUIThreadAsync(() => { LeftTextBlock.SelectionHighlightColor = new SolidColorBrush(color); RightTextBlock.SelectionHighlightColor = new SolidColorBrush(color); }); } private Keybo...
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// ---------------------------------------------------------<|fim_suffix|>itor; using Utilities; using Windows.Storage.Pickers; public static class FilePickerFactory { private static IList<string> _allSupportedExtensions; private static IList<string> AllSupportedExtensio...
fim
0x7c13/Notepads
csharp
<|fim_suffix|> { _shouldUpdateSearchString = false; OnToggleReplaceModeButtonClicked?.Invoke(sender, ReplaceBarPlaceHolder.Visibility == Visibility.Collapsed ? true : false); } } }<|fim_prefix|>// --------------------------------------------------------------------------------...
fim
0x7c13/Notepads
csharp
<|fim_suffix|>}<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for license information. // ------------------------------------------------------...
fim
0x7c13/Notepads
csharp
<|fim_suffix|> return; } if (!e.Handled) { base.OnKeyDown(e); } } } }<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu....
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// ---------------------<|fim_suffix|> } } } <|fim_middle|>------------------------------------------------------------------------ // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for license information. // ------------------------------...
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for license information. // ---------------------------------------------------------------------...
fim
0x7c13/Notepads
csharp
<|fim_suffix|>Line = searchLine; } public string SearchLine { get; } } }<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for ...
fim
0x7c13/Notepads
csharp
<|fim_suffix|>ty = MarkdownTextBlock.TextWrapping == TextWrapping.Wrap ? ScrollBarVisibility.Disabled : ScrollBarVisibility.Visible; } } private async void MarkdownTextBlock_OnLinkClicked(object sender, LinkClickedEventArgs e) { if (string.IsNullOrEmpty(e.Link)) ...
fim
0x7c13/Notepads
csharp
<|fim_suffix|>erTextBlock.FontSize = textEditorFontSize + 4; } else { Header.Visibility = Visibility.Collapsed; HeaderTextBlock.FontFamily = textEditorFontFamily; HeaderTextBlock.FontSize = textEditorFontSize + 4; } ...
fim
0x7c13/Notepads
csharp
<|fim_suffix|>tcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => { _printDocument.InvalidatePreview(); }); } } /// <summary> /// This method will show PrintManager UI and its options /// Any printing error ...
fim
0x7c13/Notepads
csharp
<|fim_prefix|>// --------------------------------------------------------------------------------------------- // Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for license information. // ---------------------------------------------------------------------...
fim
0x7c13/Notepads
csharp
<|fim_suffix|>ed { get; } FileModificationState FileModificationState { get; } TextEditorMode Mode { get; } bool DisplayLineNumbers { get; set; } bool DisplayLineHighlighter { get; set; } void Init(TextFile textFile, StorageFile file, bool resetLastSa...
fim
0x7c13/Notepads
csharp
End of preview. Expand in Data Studio

Description

Fill-in-the-middle (FIM) code-completion examples mined from public GitHub repositories. Columns: text (FIM-formatted), source, repo, language.

Derived dataset. Source material retains its original per-item licence (see source/repo columns); treat as other / mixed. Provided as-is.

Usage

from datasets import load_dataset
ds = load_dataset("PotatoHD/github-code-fim")
Downloads last month
-