Dataset Viewer
Auto-converted to Parquet Duplicate
conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "human", "value": "Add 99 bottles implementation in VBScript\n\nThis correctly implements \"1 bottle\" as singular." }, { "from": "gpt", "value": "Function bottles(n)\n bottles = n & \" bottle\" : if n > 1 then bottles = bottles & \"s\"\nEnd Function\n\nWScript.Echo bottles(99) & \"...
visual-basic
chosen
[ { "from": "system", "value": "Fix to VBS to use path to profile\n" }, { "from": "human", "value": "Set objShell = CreateObject(\"Shell.Application\")\nSet objWshShell = WScript.CreateObject(\"WScript.Shell\")\nSet objWshProcessEnv = objWshShell.Environment(\"PROCESS\")\n\nstrCommandLine = \"/c p...
visual-basic
chosen
[ { "from": "system", "value": "Add sample data to seed to show example.\n\nSeed method is run when you call update-database\n" }, { "from": "human", "value": "Imports System\nImports System.Data.Entity\nImports System.Data.Entity.Migrations\nImports System.Linq\n\nNamespace Migrations\n\n Publ...
visual-basic
chosen
[ { "from": "system", "value": "Change CLI params to be more conform with anything\n\nResolves #35\n" }, { "from": "human", "value": "Imports System.Drawing.Imaging\nImports HolzShots.UI.Forms\nImports HolzShots.Windows.Forms\n\nFriend Module GlobalVariables\n\n Friend GlobalContextMenuRenderer...
visual-basic
chosen
[ { "from": "system", "value": "Fix VC10 SDK generation to make SDK samples compile again\n" }, { "from": "human", "value": "FileName = WScript.Arguments(0)\n\n' We want to replace absolute paths with ones that are relative to the current folder\nset WshShell = WScript.CreateObject(\"WScript.Shell...
visual-basic
chosen
[ { "from": "human", "value": "Install DotNet in semi-quiet mode\n\nShows progress report and allows some user interaction if dotnet programs\nare running currently. Using vbscript so as not to show ugly CMD window\nflash on startup.\n" }, { "from": "gpt", "value": "REM Install .NET Framework\nREM...
visual-basic
chosen
[ { "from": "system", "value": "Implement wildcard in Like clause.\n" }, { "from": "human", "value": "<Serializable()> _\nPublic Class ProjectList\n Inherits ReadOnlyListBase(Of ProjectList, ProjectInfo)\n\n#Region \" Factory Methods \"\n\n Public Shared Function GetProjectList() As ProjectList\...
visual-basic
chosen
[ { "from": "system", "value": "Fix Code snippet for HyphenateWordsOfLanuages\n" }, { "from": "human", "value": "Imports Microsoft.VisualBasic\nImports System\nImports System.IO\nImports System.Drawing\nImports Aspose.Words\nImports Aspose.Words.Layout\nImports Aspose.Words.Rendering\nPublic Clas...
visual-basic
chosen
[ { "from": "human", "value": "[virtio-win] Add to common tools script execturing devenv (Visual Studio) from command line.\n" }, { "from": "gpt", "value": "' $1 - Visual studio version to run (10 or 11)\n' $2 ... Parameters to pass\n\nDim strCmdLine, strTemp\nSet WshShell = Wscript.CreateObject(\...
visual-basic
chosen
[ { "from": "system", "value": "Use full type name for class.\n\n" }, { "from": "human", "value": "Imports System.Resources\n\nPublic Class Strings\n\n Public Shared rm As New ResourceManager(\"Resources.Strings\", _\n System.Reflection.Assembly.GetExecutingAssembly())\n\n Public Shared Funct...
visual-basic
chosen
[ { "from": "system", "value": "Sort tags list in EditTags view\n" }, { "from": "human", "value": "Imports DotNetNuke.Common.Utilities\r\nImports DotNetNuke.Services.Exceptions\r\nImports DotNetNuke.Services.Localization\r\n\r\nImports Ventrian.NewsArticles.Base\r\n\r\nNamespace Ventrian.NewsArti...
visual-basic
chosen
[ { "from": "human", "value": "Move Miami-Dade .bas file to the inputs\n" }, { "from": "gpt", "value": "# MODFLOW2005 Basic Package\r\n#\r\nfree CONTHEADOUT\r\nOPEN/CLOSE ref/umd_ibound.ref 1 (FREE) -1 IBOUND Layer 1\r\nOPEN/CLOSE ref/umd_ibound.ref 1 (FREE) ...
visual-basic
chosen
[ { "from": "system", "value": "Update VBS script for new name of icon\n" }, { "from": "human", "value": "set oShell = WScript.CreateObject(\"WScript.Shell\" )\n\nstrDesktop = oShell.ExpandEnvironmentStrings(\"%USERPROFILE%\\Desktop\")\nprojectHome = CreateObject(\"Scripting.FileSystemObject\").Ge...
visual-basic
chosen
[ { "from": "system", "value": "Delete ByVal and fix formatting\n" }, { "from": "human", "value": "' Licensed to the .NET Foundation under one or more agreements.\n' The .NET Foundation licenses this file to you under the MIT license.\n' See the LICENSE file in the project root for more informati...
visual-basic
chosen
[ { "from": "system", "value": "Fix VB tests after updating CodeFixVerifier\n" }, { "from": "human", "value": "Imports CodeCracker.VisualBasic.Design\nImports Xunit\n\nNamespace Design\n Public Class EmptyCatchBlockTests\n Inherits CodeFixVerifier(Of EmptyCatchBlockAnalyzer, EmptyCatchB...
visual-basic
chosen
[ { "from": "system", "value": "Fix incorrect return type for cloned coordinate list\n" }, { "from": "human", "value": "Public Class CoordinateList\n Inherits List(Of Coordinate)\n\n Sub AddNew(X As Double, Y As Double)\n MyBase.Add(New Coordinate(X, Y))\n End Sub\n\n Friend Fu...
visual-basic
chosen
[ { "from": "human", "value": "Add support for VB arg lists.\n" }, { "from": "gpt", "value": "' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\nImports System.Composition\nImports Micr...
visual-basic
chosen
[ { "from": "system", "value": "Add a comment for determining the opening brace position in VB\n\nAdded a comment to TryGetNewLinesForBracesInObjectCollectionArrayInitializersOption\nto explain why the VB implementation returns false.\n" }, { "from": "human", "value": "' Copyright (c) Microsoft. ...
visual-basic
chosen
[ { "from": "human", "value": "Add VBScript example for anagram detector" }, { "from": "gpt", "value": "Function anagram(a, b)\n\tanagram = true\t'Be optimistic\n\n\t'We could do a length comparison, but then we wouldn't be able to show a disparity.\n\t'Also, this gives the flexibility to compare ...
visual-basic
chosen
[ { "from": "system", "value": "Clear Session value on logout.\n\n" }, { "from": "human", "value": "Option Strict On\n\nPartial Class MasterPage\n Inherits System.Web.UI.MasterPage\n\n Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load\n\n PageTitle...
visual-basic
chosen
[ { "from": "system", "value": "Address potential threading issue when sorting the list, by adding a lock around the sort process.\n\n" }, { "from": "human", "value": "Namespace Validation\n\n Friend Class RulesList\n\n Private mList As New List(Of IRuleMethod)\n Private mSorted As Boolean\...
visual-basic
chosen
[ { "from": "system", "value": "Change configuration to not require username/password or X.509 cert. The config and code to require those things is there, just commented out.\n" }, { "from": "human", "value": "Imports System.Collections.Generic\r\nImports ProjectTracker.Library\r\n\r\nPublic Clas...
visual-basic
chosen
[ { "from": "system", "value": "Correct Example Title in Comment\n" }, { "from": "human", "value": "\nImports System.Collections.Generic\nImports System.Linq\nImports System.Text\nImports System.IO\nImports System.Globalization\nImports Microsoft.VisualStudio.TestTools.UnitTesting\n\nNamespace Art...
visual-basic
chosen
[ { "from": "system", "value": "Change method declaration to allow use in Lambda expression in AsyncRuleMethod.Invoke\nbugid: 574\n\n" }, { "from": "human", "value": "Namespace Validation\r\n ''' <summary>\r\n ''' Delegate for handling the completion of an\r\n ''' async validation rule.\r\n '...
visual-basic
chosen
[ { "from": "system", "value": "Add code showing how to use various security options.\n" }, { "from": "human", "value": "Public Class Form1\r\n\r\n Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load\r\n\r\n Dim svc As PTWcfService.PTServiceC...
visual-basic
chosen
[ { "from": "human", "value": "Add VBA script that will download and attach pictures to Excel worksheet\n" }, { "from": "gpt", "value": "Private Declare PtrSafe Function URLDownloadToFile Lib \"urlmon\" Alias _\r\n \"URLDownloadToFileA\" (ByVal pCaller As Long, _\r\n ByVal szURL As String, _\r...
visual-basic
chosen
[ { "from": "system", "value": "Update TODO with bug number\n" }, { "from": "human", "value": "' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\nImports Microsoft.CodeAnalysis.Scripting...
visual-basic
chosen
[ { "from": "system", "value": "Fix uninitialized values during construction\n" }, { "from": "human", "value": "' Licensed to the .NET Foundation under one or more agreements.\n' The .NET Foundation licenses this file to you under the MIT license.\n' See the LICENSE file in the project root for m...
visual-basic
chosen
[ { "from": "system", "value": "Fix merge fail involving ClipboardEx.SetText\n" }, { "from": "human", "value": "Imports HolzShots.Interop\nImports HolzShots.UI.Dialogs\nImports HolzShots.Windows.Forms\n\nNamespace Net\n Friend Class UploadHelper\n Private Sub New()\n End Sub\n\n ...
visual-basic
chosen
[ { "from": "human", "value": "Set up a Vagrantfile for 1.0\n" }, { "from": "gpt", "value": "# -*- mode: ruby -*-\n# vi: set ft=ruby :\n\ndef local_cache(box_name)\n cache_dir = File.join(File.expand_path(Vagrant::Environment::DEFAULT_HOME),\n 'cache',\n ...
visual-basic
chosen
[ { "from": "system", "value": "Fix build for test project\n" }, { "from": "human", "value": "' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\nImports Microsoft.CodeAnalysis\nImports ...
visual-basic
chosen
[ { "from": "system", "value": "Correct format used by custom assert\n\nFreeBASIC 0.24 needs expressionlist be separated by semi-colons instead.\n" }, { "from": "human", "value": "#include once \"helper.bi\"\n\nsub custom_assert(byref f as string, byval l as integer, byref func as string, byref ex...
visual-basic
chosen
[ { "from": "system", "value": "Fix incorrect shortcut key handling\n" }, { "from": "human", "value": "Imports CefSharp\r\n\r\nPublic Class CefKeyboardHandler\r\n Implements IKeyboardHandler\r\n\r\n Public Event KeyPressed(code As Keys)\r\n\r\n Public Function OnKeyEvent(browser As IWebB...
visual-basic
chosen
[ { "from": "system", "value": "Use LINQ to sort results.\n" }, { "from": "human", "value": "Imports System.Windows.Forms\nImports System.ComponentModel\n\nPublic Class ProjectSelect\n\n Private mProjectId As Guid\n\n Public ReadOnly Property ProjectId() As Guid\n Get\n Return mProjectId...
visual-basic
chosen
[ { "from": "system", "value": "Fix VC10 SDK generation to make SDK samples compile again\n\n--HG--\nbranch : v1-7\n" }, { "from": "human", "value": "FileName = WScript.Arguments(0)\n\n' We want to replace absolute paths with ones that are relative to the current folder\nset WshShell = WScript.Cre...
visual-basic
chosen
[ { "from": "system", "value": "Fix VC10 SDK generation to make SDK samples compile again" }, { "from": "human", "value": "FileName = WScript.Arguments(0)\n\n' We want to replace absolute paths with ones that are relative to the current folder\nset WshShell = WScript.CreateObject(\"WScript.Shell\"...
visual-basic
chosen
[ { "from": "human", "value": "Add VBS script to send emails\n" }, { "from": "gpt", "value": "'Usage: cscript sendemail.vbs <email_recipient@example.com> \"<subject_line>\" \"<email_body>\" \"<optional:email_attachment_path>\"\n'Ex. No attach: cscript sendemail.vbs example@gmail.com \...
visual-basic
chosen
[ { "from": "system", "value": "Update paths in VBS script\n" }, { "from": "human", "value": "set oShell = WScript.CreateObject(\"WScript.Shell\" )\n\nstrDesktop = oShell.ExpandEnvironmentStrings(\"%USERPROFILE%\\Desktop\")\nprojectHome = CreateObject(\"Scripting.FileSystemObject\").GetAbsolutePat...
visual-basic
chosen
[ { "from": "human", "value": "Add build files and extra source files for windows\n" }, { "from": "gpt", "value": "Attribute VB_Name = \"Main\"\r\n'\r\n' Constants used here and there\r\n'\r\nPublic Const GRAPH As Integer = &H1\r\nPublic Const NODE As Integer = &H2\r\nPublic Const EDGE As Integer ...
visual-basic
chosen
[ { "from": "system", "value": "Comment what's going on with the VShost check.\n\n" }, { "from": "human", "value": "Option Strict On\n\nImports Microsoft.VisualBasic\n\nFriend Module Security\n\n Public Sub UseAnonymous()\n\n If UrlIsHostedByVS(HttpContext.Current.Request.Url) Then Exit Sub\n\...
visual-basic
chosen
[ { "from": "system", "value": "Fix the Visual Basic capability name\n" }, { "from": "human", "value": "' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\nImports System.ComponentModel.C...
visual-basic
chosen
[ { "from": "system", "value": "Add copyright banner on file that's missing one\n" }, { "from": "human", "value": "Imports Microsoft.CodeAnalysis\nImports Microsoft.CodeAnalysis.Test.Utilities\nImports Microsoft.VisualStudio.LanguageServices.UnitTests.ProjectSystemShim.Framework\nImports Roslyn.T...
visual-basic
chosen
[ { "from": "system", "value": "Allow to stop starting up docker machine\n" }, { "from": "human", "value": "import \"lib-dockertoolbox\"\n\nif [ -z \"$BOOT2DOCKER_DEFAULT_INSTANCE\" ]\n then\n local BOOT2DOCKER_DEFAULT_INSTANCE=default\nfi\n\n# Load docker toolbox, if a boot2docker instances r...
visual-basic
chosen
[ { "from": "system", "value": "Fix modifier keys for keyboard shortcuts when Chromium has focus\n" }, { "from": "human", "value": "Imports CefSharp\r\n\r\nPublic Class CefKeyboardHandler\r\n Implements IKeyboardHandler\r\n\r\n Public Event KeyPressed(code As Keys)\r\n\r\n Public Functio...
visual-basic
chosen
[ { "from": "system", "value": "Call to child ctor is wrong, developer called mybase.new instead of me.new\nbugid: 558\n\n" }, { "from": "human", "value": "Imports System.Reflection\r\n\r\nNamespace Server\r\n\r\n Friend Class DataPortalMethodInfo\r\n\r\n Private _runLocal As Boolean\r\n P...
visual-basic
chosen
[ { "from": "system", "value": "Change to be a module.\n\n" }, { "from": "human", "value": "Imports System.IO\nImports System.Runtime.Serialization.Formatters.Binary\n\nFriend NotInheritable Class ObjectCloner\n\n Private Sub New()\n\n End Sub\n\n Public Shared Function Clone(ByVal obj As Objec...
visual-basic
chosen
[ { "from": "system", "value": "Update to build against CSLA 4.\n\nbugid: 746\n\n" }, { "from": "human", "value": "Imports System\r\nImports System.Collections.Generic\r\nImports Csla\r\nImports Csla.Security\r\n\r\n<Serializable()> _\r\nPublic Class EditableRootList\r\n Inherits BusinessListBase...
visual-basic
chosen
README.md exists but content is empty.
Downloads last month
6