code stringlengths 2 1.05M | repo_name stringlengths 5 101 | path stringlengths 4 991 | language stringclasses 3
values | license stringclasses 5
values | size int64 2 1.05M |
|---|---|---|---|---|---|
'Copyright 2019 Esri
'Licensed under the Apache License, Version 2.0 (the "License");
'you may not use this file except in compliance with the License.
'You may obtain a copy of the License at
' http://www.apache.org/licenses/LICENSE-2.0
'Unless required by applicable law or agreed to in writing, software
'distri... | Esri/arcobjects-sdk-community-samples | Net/Catalog/TextTab/VBNET/FrmTextView.Designer.vb | Visual Basic | apache-2.0 | 2,485 |
Imports bwl.Graphics._3D.CatRender
Public Class TestForm
Private Sub TestForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
AddHandler CatRender1.Display.DisplayPicturebox.MouseDown, AddressOf TestHandler
CatRender1.Render.SceneDraw.defaults.lighting = LightingMode.full
... | Lifemotion/Bwl.Graphics3D.CatRender | Bwl.Graphics3D.CatRender.Test/TestForm.vb | Visual Basic | apache-2.0 | 2,280 |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports Microsoft.CodeAnalysis.Text
Imports Microsoft.CodeAnalysis.VisualBasic
Imports Microsoft.CodeAnalysis.VisualBa... | abock/roslyn | src/Workspaces/SharedUtilitiesAndExtensions/Workspace/VisualBasic/Utilities/ImportsClauseComparer.vb | Visual Basic | mit | 3,413 |
' Copyright (c) 2015 ZZZ Projects. All rights reserved
' Licensed under MIT License (MIT) (https://github.com/zzzprojects/Z.ExtensionMethods)
' Website: http://www.zzzprojects.com/
' Feedback / Feature Requests / Issues : http://zzzprojects.uservoice.com/forums/283927
' All ZZZ Projects products: Entity Framework Exte... | huoxudong125/Z.ExtensionMethods | src (VB.NET)/Z.ExtensionMethods.VB/Z.Core/System.Double/Double.ToMoney.vb | Visual Basic | mit | 767 |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports Microsoft.CodeAnalysis.CSharp
Imports Microsoft.CodeAnalysis.Editor.Options
Imports Microsoft.CodeAnalysis.Opt... | CyrusNajmabadi/roslyn | src/EditorFeatures/Test2/IntelliSense/CSharpSignatureHelpCommandHandlerTests.vb | Visual Basic | mit | 39,475 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports Microsoft.CodeAnalysis.Test.Utilities
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTests.Semanti... | CaptainHayashi/roslyn | src/Compilers/VisualBasic/Test/Semantic/IOperation/IOperationTests_ILockStatement.vb | Visual Basic | apache-2.0 | 13,386 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports Microsoft.CodeAnalysis.PooledObjects
Imports Microsoft.CodeAnalysis.SymbolDisplay
Imports Microsoft.CodeAnalysis.VisualBasic.Symbols
'Imports Semanti... | paulvanbrenk/roslyn | src/Compilers/VisualBasic/Portable/SymbolDisplay/SymbolDisplayVisitor.vb | Visual Basic | apache-2.0 | 18,044 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Collections.Generic
Imports System.Diagnostics
Imports Microsoft.CodeAnalysis.Text
Imports Microsoft.CodeAnalysis.VisualBasic.Symbols
Imports M... | ManishJayaswal/roslyn | src/Compilers/VisualBasic/Portable/Symbols/Source/SynthesizedStaticLocalBackingField.vb | Visual Basic | apache-2.0 | 2,461 |
Imports System.Data.Linq.Mapping
Imports System.Reflection
Imports System.Runtime.CompilerServices
Imports BioNovoGene.Analytical.MassSpectrometry.Math.Spectra
Imports Microsoft.VisualBasic.ComponentModel.DataSourceModel
Imports Microsoft.VisualBasic.Linq
Imports Microsoft.VisualBasic.ValueTypes
Imports r = System.Tex... | xieguigang/spectrum | src/assembly/assembly/ASCII/MSL/FileReader.vb | Visual Basic | mit | 4,254 |
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.18034
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'-----------... | Wovaki/huxotools | HuxoTools/My Project/Resources.Designer.vb | Visual Basic | mit | 3,503 |
Imports System.Windows.Forms
Public Class frmSelectPicture
Public Property Hintergrundbild As String
Public Property HintergrundThumbnail As String
Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
Me.DialogResult = System.Windows.For... | FrankGITDeveloper/Landsknecht_GreenScreen | Landsknecht_GreenScreen/frmSelectPicture.vb | Visual Basic | mit | 4,217 |
Partial Class RepContabilizacionFondoFijo
'NOTE: The following procedure is required by the telerik Reporting Designer
'It can be modified using the telerik Reporting Designer.
'Do not modify it using the code editor.
Private Sub InitializeComponent()
Dim ReportParameter1 As Telerik.Repor... | crackper/SistFoncreagro | SistFoncreagro.Report/RepContabilizacionFondoFijo.Designer.vb | Visual Basic | mit | 47,895 |
Namespace RowsAndColumns
Public Class HandleColumnFilterEvents
Inherits System.Web.UI.Page
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
' If first visit, load GridWeb data
If Not Page.IsPostBack AndAlso Not GridWeb1.IsPostBack Then
... | maria-shahid-aspose/Aspose.Cells-for-.NET | Examples.GridWeb/VisualBasic/RowsAndColumns/HandleColumnFilterEvents.aspx.vb | Visual Basic | mit | 2,394 |
Imports System.Text
Imports HomeSeerAPI
Friend Module Util
#Region "No Longer Needed"
#If NoLongerNeeded Then
Public Function AddLink(ByVal ref As String, ByVal label As String, Optional ByVal image As String = "", Optional ByVal w As Integer = 0, Optional ByVal h As Integer = 0) As String
Dim st As... | HomeSeer/HSPI_MEDIAPLAYER | util.vb | Visual Basic | mit | 8,798 |
Imports System.Drawing
Friend NotInheritable Class GraphicHelper
''' <summary>
''' Convert value from specified unit to pixel on horizontal resolution
''' </summary>
Public Shared Function ToPixelX(graph As Graphics,
value As Double,
... | pagotti/vrx | Core/Drawing/GraphicHelper.vb | Visual Basic | mit | 1,698 |
Option Infer On
Imports System
Imports System.Collections.Generic
Imports System.Runtime.InteropServices
Namespace Examples
Friend Class Program
<STAThread>
Shared Sub Main(ByVal args() As String)
Dim application As SolidEdgeFramework.Application = Nothing
Dim documents As... | SolidEdgeCommunity/docs | docfx_project/snippets/SolidEdgePart.Hole2d.Select.vb | Visual Basic | mit | 2,206 |
Imports Microsoft.Win32
Class Application
' Application-level events, such as Startup, Exit, and DispatcherUnhandledException
' can be handled in this file.
Private repository As SpielerRepository
Private Sub Application_Exit(sender As Object, e As ExitEventArgs) Handles Me.[Exit]
reposito... | GoppeltM/PPC-Manager | Trunk/PPC Manager/StartlistenEditor/Application.xaml.vb | Visual Basic | mit | 3,641 |
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------... | lurienanofab/labscheduler | LabScheduler/index.aspx.designer.vb | Visual Basic | mit | 806 |
#Region "License"
' The MIT License (MIT)
'
' Copyright (c) 2018 Richard L King (TradeWright Software Systems)
'
' Permission is hereby granted, free of charge, to any person obtaining a copy
' of this software and associated documentation files (the "Software"), to deal
' in the Software without restriction, includ... | tradewright/tradewright-twsapi | src/IBAPI/EventArgs/SocketDataEventArgs.vb | Visual Basic | mit | 1,379 |
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Sonne_Mond
Inherits System.Windows.Forms.Form
'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal... | KingJosy/ProjektD | Programmier Sammlung/Projektsammlung/Sonne_Mond.Designer.vb | Visual Basic | mit | 4,327 |
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.42000
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'-----------... | DualBrain/CheckersSolitaire | My Project/Application.Designer.vb | Visual Basic | mit | 1,482 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports Microsoft.CodeAnalysis.Editor.UnitTests.Extensions
Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.CodeModel
Public MustInherit Class ... | mono/roslyn | src/VisualStudio/Core/Test/CodeModel/AbstractCodeFunctionTests.vb | Visual Basic | apache-2.0 | 10,885 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System
Imports System.Globalization
Imports System.Text
Imports System.Xml.Linq
Imports Microsoft.CodeAnalysis.Test.Utilities
Imports Microsoft.CodeAn... | lorcanmooney/roslyn | src/Compilers/VisualBasic/Test/Symbol/SymbolsTests/Source/ImplementsTests.vb | Visual Basic | apache-2.0 | 147,587 |
Public Class Form1
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Dim response As Integer
response = MsgBox("Are you sure you want to exit", MsgBoxStyle.OkCancel + MsgBoxStyle.Question, "Close GSF Database")
If response = vb... | superibk/ChurchManager | real/Form1.vb | Visual Basic | apache-2.0 | 2,157 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Collections.Concurrent
Imports System.Collections.Immutable
Imports System.Reflection.PortableExecutable
Imports System.Runtime.InteropServices... | paladique/roslyn | src/Compilers/VisualBasic/Portable/Emit/PEModuleBuilder.vb | Visual Basic | apache-2.0 | 36,516 |
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.1
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'-------... | marshallcoz/RegSis | 4 C¢digo Fuente/AutomEVT/AutomEVT/My Project/Resources.Designer.vb | Visual Basic | mit | 2,773 |
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Namespace Casascius.Bitcoin
Public Class Base58
''' <summary>
''' Converts a base-58 string to a byte array, returning null if it wasn't valid.
''' </summary>
Public Shared Function ToByteArray(ByVal base58 ... | bitspill/Gridcoin-master | contrib/RD/GridCoinDotNet/GridCoin/cls58.vb | Visual Basic | mit | 2,296 |
'********************************************************************************************************
'File Name: frmScript.vb
'Description: MapWindow Script System
'********************************************************************************************************
'The contents of this file are subject to... | swsglobal/DotSpatial | Source/DotSpatial.Plugins.ScriptRunner/frmScript.vb | Visual Basic | mit | 44,031 |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Threading
Imports Microsoft.CodeAnalysis.CodeActions
Imports Microsoft.CodeAnalysis.CodeGeneration
Nam... | sharwell/roslyn | src/Features/VisualBasic/Portable/CodeFixes/GenerateEvent/GenerateEventCodeFixProvider.CodeAction.vb | Visual Basic | mit | 1,828 |
Public Class MainForm
Inherits System.Windows.Forms.Form
Private myConnection As VACCESSLib.Connection
Private myProtocolState As String
Const queryCacheSize As Integer = 10
Private Enum queryCacheIndices
iQuery = 0
iResult = 1
iDate = 2
iCurrency = 3
End Enum
... | MichaelJCaruso/vision | software/src/master/src/VAccess_Sample/MainForm.vb | Visual Basic | bsd-3-clause | 41,805 |
Public Class FRMProgram
Dim RATE_GST As Single = 5
Dim RATE_PST As Single = 8.5
Dim currCompany As Company = FRMChooseCompany.companies(FRMChooseCompany.currPosition)
Dim currCar As Car
Dim currTab As String = ""
Dim carSelected As Boolean = False
Dim newPoint As New System.Drawing.Point(... | gumgl/VB.NET | CarProject/Program.vb | Visual Basic | mit | 35,506 |
Imports System.IO
Imports Aspose.Cells
Namespace Files.Handling
Public Class SaveInHtmlFormat
Public Shared Sub Run()
' ExStart:1
' The path to the documents directory.
Dim dataDir As String = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().Declar... | maria-shahid-aspose/Aspose.Cells-for-.NET | Examples/VisualBasic/Files/Handling/SaveInHtmlFormat.vb | Visual Basic | mit | 583 |
Imports System.Web.UI
Imports System.Web
Namespace Common
''' <summary>
''' A base page from which all other pages inherit
''' </summary>
''' <remarks>This page is required to handle culture changes, as pages within master pages have no InitCulture sub</remarks>
Public Class BasePage
Inher... | dvla/evl-public-code | EVLPublicCode/EVLPublicCode/Code/Controls/BasePage.vb | Visual Basic | mit | 2,518 |
Public Class Template
End Class | sddhscathletics/Solution | main/main/Template.vb | Visual Basic | mit | 35 |
'Copyright © exc-jdbi 2016
'© mnPassing 2016
'mnPassing - www.github.com/exc-jdbi/passing
'mnPassing is Free and Opensource Software
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.34209
'
'... | exc-jdbi/passing | mnPassingVb/TestDll/My Project/Resources.Designer.vb | Visual Basic | mit | 2,856 |
Imports System
Imports Independentsoft.Office
Imports Independentsoft.Office.Vml
Imports Independentsoft.Office.Word
Module Module1
Sub Main(ByVal args() As String)
Dim doc As New WordDocument()
Dim embeddedObject As New EmbeddedObject()
Dim imageShapeStyle As New ShapeStyle()
i... | AndreKuzubov/Easy_Report | packages/Independentsoft.Office.Word.2.0.400/Tutorial/VBInsertExcelWorkbook/Module1.vb | Visual Basic | apache-2.0 | 1,281 |
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.34209
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'---... | VisualStudioProyecto/ProyectoVSP1 | ProyectoVisual1erParcial/My Project/Resources.Designer.vb | Visual Basic | mit | 2,793 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.ComponentModel.Composition
Imports System.Threading
Imports Microsoft.CodeAnalysis.Editor.Implementation.Highlighting
Imports Microsoft.CodeAna... | aelij/roslyn | src/EditorFeatures/VisualBasic/Highlighting/KeywordHighlighters/EventBlockHighlighter.vb | Visual Basic | apache-2.0 | 1,796 |
Imports System.Runtime.InteropServices
Imports System.Threading
Imports System.IO
Imports System.Collections.Generic
Imports System.Data
Imports System.Text
Imports System.Object
Imports System.Security.Cryptography
Imports System.Timers
Module modUtilization
<System.Runtime.InteropServices.StructLayoutAttribute... | icede/Gridcoin-master | src/GridcoinInstallerWindows/Gridcoin/GridcoinVirtualMachine/modUtilization.vb | Visual Basic | mit | 10,936 |
' Copyright (c) 2015 ZZZ Projects. All rights reserved
' Licensed under MIT License (MIT) (https://github.com/zzzprojects/Z.ExtensionMethods)
' Website: http://www.zzzprojects.com/
' Feedback / Feature Requests / Issues : http://zzzprojects.uservoice.com/forums/283927
' All ZZZ Projects products: Entity Framework Exte... | mario-loza/Z.ExtensionMethods | src (VB.NET)/Z.ExtensionMethods.VB/Z.Serialization/System.String/String.DeserializeJson.vb | Visual Basic | mit | 1,749 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.IO
Imports System.Runtime.InteropServices
Imports Microsoft.VisualStudio.LanguageServices.VisualBasic.ProjectSystemShim.Interop
Namespace Micr... | DustinCampbell/roslyn | src/VisualStudio/TestUtilities2/ProjectSystemShim/VisualBasicHelpers/MockCompilerHost.vb | Visual Basic | apache-2.0 | 1,890 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System
Imports System.Collections.Generic
Imports System.Collections.ObjectModel
Imports System.Diagnostics
Imports System.IO
Imports System.Linq
Impo... | mmitche/roslyn | src/Compilers/VisualBasic/Portable/CommandLine/VisualBasicCommandLineArguments.vb | Visual Basic | apache-2.0 | 5,722 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.CodeModel
Partial Public MustInherit Class AbstractCodeModelObjectTests(Of TCodeModelObject As ... | ValentinRueda/roslyn | src/VisualStudio/Core/Test/CodeModel/AbstractCodeModelObjectTests.FunctionData.vb | Visual Basic | apache-2.0 | 789 |
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.42000
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'---... | sddhscathletics/Solution | main/main/login.Designer.vb | Visual Basic | mit | 86,209 |
Imports System.Collections.ObjectModel
Public Class ObserverCollection(Of T)
Inherits ObservableCollection(Of T)
Implements IObserver(Of T)
Public Sub OnCompleted() Implements System.IObserver(Of T).OnCompleted
End Sub
Public Sub OnError(ByVal [error] As System.Exception) Implements System.IOb... | jwooley/RxSamples | ObservableSensor/ObservableClient/ObserverCollection.vb | Visual Basic | mit | 482 |
Namespace Security.SystemOptions_FileAccess
Public Class Open
Inherits SecurityItemBase
Public Sub New()
_ConceptItemName = "Open"
_ConceptName = "System Options_File Access"
_Description = "Allow access to 'File Access'"
_IsEnterprise = True
... | nublet/DMS | DMS.Forms.Shared/Security/Items/SystemOptions/FileAccess/Open.vb | Visual Basic | mit | 488 |
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.17929
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'-----------... | age-killer/Electronic-invoice-document-processing | MailSort_CSHARP/packages/Independentsoft.Exchange.3.0.400/Tutorial/VBUpdateMeetingAttendee/My Project/Settings.Designer.vb | Visual Basic | mit | 2,936 |
Imports System
Imports System.Reflection
Imports System.Runtime.InteropServices
' General Information about an assembly is controlled through the following
' set of attributes. Change these attribute values to modify the information
' associated with an assembly.
' Review the values of the assembly attribut... | ptrelford/Foq | Tests/Tests.VisualBasic/My Project/AssemblyInfo.vb | Visual Basic | apache-2.0 | 1,187 |
Imports System.Runtime.Serialization
Imports System.ComponentModel
Public MustInherit Class SectionItem
Inherits GenericObject
Implements ISerializable
#Region "Properties"
Friend _mainText As New Dictionary(Of Integer, String)
Friend _parent As GenericObject = Nothing
Friend _number As String = ... | QMDevTeam/QMDesigner | BO/BO classes/SectionItem.vb | Visual Basic | apache-2.0 | 5,074 |
Imports System
Imports System.Reflection
Imports System.Runtime.InteropServices
' General Information about an assembly is controlled through the following
' set of attributes. Change these attribute values to modify the information
' associated with an assembly.
' Review the values of the assembly attributes
<Ass... | wschult23/LOOM.NET | Deploy/RapierLoom.Examples/16-Visitor/VB/My Project/AssemblyInfo.vb | Visual Basic | apache-2.0 | 1,122 |
Imports System
Imports System.Drawing
Imports System.Collections
Imports System.ComponentModel
Imports System.Windows.Forms
Imports System.Diagnostics
Imports System.IO
Imports System.Xml
Imports AnimatGuiCtrls.Controls
Imports AnimatGUI.Framework
Namespace DataObjects.Behavior.Nodes
Public Class Off... | NeuroRoboticTech/AnimatLabPublicSource | Libraries/AnimatGUI/DataObjects/Behavior/Nodes/OffPage.vb | Visual Basic | bsd-3-clause | 19,022 |
'
' DotNetNuke® - http://www.dotnetnuke.com
' Copyright (c) 2002-2018
' by DotNetNuke Corporation
'
' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
' documentation files (the "Software"), to deal in the Software without restriction, including without... | wael101/Dnn.Platform | DNN Platform/DotNetNuke.WebUtility/ClientAPI.vb | Visual Basic | mit | 62,316 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Composition
Imports System.Threading
Imports Microsoft.CodeAnalysis.ExtractInterface
Imports Microsoft.CodeAnalysis.Formatting
Imports Microsof... | nguerrera/roslyn | src/Features/VisualBasic/Portable/ExtractInterface/VisualBasicExtractInterfaceService.vb | Visual Basic | apache-2.0 | 8,688 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Collections.Immutable
Imports System.Runtime.InteropServices
Imports Microsoft.CodeAnalysis.PooledObjects
Imports Microsoft.CodeAnalysis.Symbol... | nguerrera/roslyn | src/Compilers/VisualBasic/Portable/Symbols/MethodSymbol.vb | Visual Basic | apache-2.0 | 49,986 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Threading.Tasks
Imports Microsoft.CodeAnalysis.Editor.VisualBasic.KeywordHighlighting
Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitT... | mseamari/Stuff | src/EditorFeatures/VisualBasicTest/KeywordHighlighting/SingleLineIfBlockHighlighterTests.vb | Visual Basic | apache-2.0 | 2,811 |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Runtime.CompilerServices
Imports System.Threading
Imports Microsoft.CodeAnalysis
Imports Microsoft.Code... | davkean/roslyn | src/Workspaces/SharedUtilitiesAndExtensions/Compiler/VisualBasic/Extensions/ArgumentSyntaxExtensions.vb | Visual Basic | apache-2.0 | 3,051 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Composition
Imports Desktop.Analyzers
Imports Microsoft.CodeAnalysis
Imports Microsoft.CodeAnalysis.CodeFixes
Namespace Desktop.VisualBasic.Ana... | qinxgit/roslyn-analyzers | src/Desktop.Analyzers/VisualBasic/BasicProvideDeserializationMethodsForOptionalFields.Fixer.vb | Visual Basic | apache-2.0 | 684 |
Public Class PostEventArgs
Inherits EventArgs
Public Sub New(ByVal aPostType As Integer, ByVal aCancel As Boolean, Optional ByVal aTransaction As IDbTransaction = Nothing)
Me.PostType = aPostType
Me.Cancel = aCancel
Me.Transaction = aTransaction
End Sub 'New
Public PostTyp... | EIDSS/EIDSS-Legacy | EIDSS v6/vb/Shared/bv_common/Core/Delegates.vb | Visual Basic | bsd-2-clause | 842 |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Collections.Immutable
Imports System.Threading
Imports Microsoft.CodeAnalysis.Classification
Imports Mi... | CyrusNajmabadi/roslyn | src/Workspaces/VisualBasic/Portable/Classification/SyntaxClassification/OperatorOverloadSyntaxClassifier.vb | Visual Basic | mit | 1,882 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Collections.Immutable
Imports System.Diagnostics
Imports System.Runtime.InteropServices
Imports Microsoft.CodeAnalysis.Text
Imports Microsoft.C... | weltkante/roslyn | src/Compilers/VisualBasic/Portable/Lowering/LocalRewriter/LocalRewriter_FieldOrPropertyInitializer.vb | Visual Basic | apache-2.0 | 7,196 |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Threading.Tasks
Imports Microsoft.CodeAnalysis.Remote.Testing
Namespace Microsoft.CodeAnalysis.Editor.... | CyrusNajmabadi/roslyn | src/EditorFeatures/Test2/FindReferences/FindReferencesTests.AccessorSymbols.vb | Visual Basic | mit | 44,034 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports Microsoft.CodeAnalysis.Text
Imports Microsoft.CodeAnalysis.VisualBasic.Symbols
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
Imports InternalSynta... | paladique/roslyn | src/Compilers/VisualBasic/Portable/Parser/ParseTerminal.vb | Visual Basic | apache-2.0 | 8,838 |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Composition
Imports System.Diagnostics.CodeAnalysis
Imports Microsoft.CodeAnalysis.CodeFixes
Imports Mi... | ErikSchierboom/roslyn | src/Analyzers/VisualBasic/CodeFixes/ConvertAnonymousTypeToTuple/VisualBasicConvertAnonymousTypeToTupleCodeFixProvider.vb | Visual Basic | apache-2.0 | 3,128 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports Microsoft.CodeAnalysis
Imports Microsoft.CodeAnalysis.VisualBasic
Imports Roslyn.Test.Utilities
Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTest... | OmarTawfik/roslyn | src/Compilers/VisualBasic/Test/Semantic/Semantics/LambdaTests.vb | Visual Basic | apache-2.0 | 79,870 |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System
Module Module1
Sub Main()
Dim i8 As SByte
Dim i16 As Short
Dim i32 As In... | diryboy/roslyn | src/Compilers/VisualBasic/Test/Semantic/Semantics/BinaryOperatorsTestSource4.vb | Visual Basic | mit | 4,892 |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Collections.Immutable
Imports Microsoft.CodeAnalysis
Imports Microsoft.CodeAnalysis.PooledObjects
Impor... | physhi/roslyn | src/Compilers/VisualBasic/Portable/VisualBasicParseOptions.vb | Visual Basic | apache-2.0 | 15,217 |
answer = sum [1..100] ^ 2 - foldl (\x y -> y^2 + x) 0 [1..100]
| tamasgal/haskell_exercises | ProjectEuler/p006.hs | Haskell | mit | 63 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
module DirectoryAPI.API
( directoryAPIProxy
, DirectoryAPI
) where
import Servant
import AuthAPI.API (AuthToken)
import Models (File, Node, NodeId)
type DirectoryAPI = "ls" :> -- List all files
AuthToken :>
G... | houli/distributed-file-system | dfs-shared/src/DirectoryAPI/API.hs | Haskell | mit | 1,213 |
module BlocVoting.Tally.Resolution where
import qualified Data.ByteString as BS
data Resolution = Resolution {
rCategories :: Int
, rEndTimestamp :: Int
, rName :: BS.ByteString
, rUrl :: BS.ByteString
, rVotesFor :: Integer
, rVotesTotal :: Integer
, rResolved :: Bool
}
deriving (Show, Eq)
update... | XertroV/blocvoting | src/BlocVoting/Tally/Resolution.hs | Haskell | mit | 565 |
{-# LANGUAGE CPP #-}
module Database.Orville.PostgreSQL.Plan.Explanation
( Explanation
, noExplanation
, explainStep
, explanationSteps
) where
newtype Explanation =
Explanation ([String] -> [String])
#if MIN_VERSION_base(4,11,0)
instance Semigroup Explanation where
(<>) = appendExplanation
#endif
inst... | flipstone/orville | orville-postgresql/src/Database/Orville/PostgreSQL/Plan/Explanation.hs | Haskell | mit | 800 |
import Data.List (permutations, sort)
solve :: String
solve = (sort $ permutations "0123456789") !! 999999
main = putStrLn $ solve
| pshendry/project-euler-solutions | 0024/solution.hs | Haskell | mit | 133 |
module Lesson08 where
-- Now let's have some real fun: a two player, online five card stud game,
-- with a full betting system. The betting system is actually the biggest
-- addition versus what we've done previously, so most of our attention
-- will be focused on that. Most of the other code will be very similar
-- t... | snoyberg/haskell-impatient-poker-players | src/Lesson08.hs | Haskell | mit | 5,286 |
{-# LANGUAGE OverloadedStrings #-}
module Mdb.Status ( doStatus ) where
import Control.Monad ( when )
import Control.Monad.Catch (MonadMask)
import Control.Monad.IO.Class ( MonadIO, liftIO )
import Control.Monad.Logger ( logWarnN, logDebugN, logInfoN )
import Control... | waldheinz/mdb | src/lib/Mdb/Status.hs | Haskell | apache-2.0 | 1,802 |
module Serf.Event where
import Serf.Member
import Control.Applicative
import Control.Monad.IO.Class
import System.Environment
import System.Exit
import System.IO
import Text.Parsec
type SerfError = String
data SerfEvent = MemberJoin Member
| MemberLeave Member
| Memb... | lstephen/box | src/main/ansible/roles/serf/files/Serf/Event.hs | Haskell | apache-2.0 | 2,110 |
{-# LANGUAGE ExplicitForAll, Rank2Types #-}
-- | An implementation of Reagents (http://www.mpi-sws.org/~turon/reagents.pdf)
-- NOTE: currently this is just a very tiny core of the Reagent design. Needs
-- lots of work.
module Data.Concurrent.Internal.Reagent where
import Data.IORef
import Data.Atomics
import P... | rrnewton/concurrent-skiplist | src/Data/Concurrent/Internal/Reagent.hs | Haskell | apache-2.0 | 1,287 |
{-# LANGUAGE TemplateHaskell #-}
-- Copyright (C) 2010-2012 John Millikin <john@john-millikin.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/license... | jmillikin/haskell-dbus | tests/DBusTests/Signature.hs | Haskell | apache-2.0 | 4,901 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE... | dorchard/camfort | src/Language/Fortran/Model/Types.hs | Haskell | apache-2.0 | 9,913 |
{-# LANGUAGE TupleSections #-}
module Arbitrary.TestModule where
import Data.Integrated.TestModule
import Test.QuickCheck
import Data.ModulePath
import Control.Applicative
import Arbitrary.Properties
import Test.Util
import Filesystem.Path.CurrentOS
import Prelude hiding (FilePath)
import qualified Arbitrary.ModulePat... | jfeltz/tasty-integrate | tests/Arbitrary/TestModule.hs | Haskell | bsd-2-clause | 1,129 |
{-# LANGUAGE TemplateHaskell, QuasiQuotes, OverloadedStrings #-}
module Handler.Root where
import Foundation
-- This is a handler function for the GET request method on the RootR
-- resource pattern. All of your resource patterns are defined in
-- config/routes
--
-- The majority of the code you will write in Yesod l... | periodic/Simple-Yesod-ToDo | Handler/Root.hs | Haskell | bsd-2-clause | 625 |
{--
Copyright (c) 2014-2020, Clockwork Dev Studio
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions a... | clockworkdevstudio/Idlewild-Lang | Arguments.hs | Haskell | bsd-2-clause | 5,916 |
module Convert.LRChirotope where
-- standard modules
import Data.List
import qualified Data.Map as Map
import Data.Maybe
import qualified Data.Set as Set
-- local modules
import Basics
import Calculus.FlipFlop
import Helpful.General
--import Debug.Trace
{--------------------------------------------------------------... | spatial-reasoning/zeno | src/Convert/LRChirotope.hs | Haskell | bsd-2-clause | 1,839 |
{-# LANGUAGE FlexibleContexts #-}
module BRC.Solver.Error where
import Control.Monad.Error (Error(..), MonadError(..))
-- | Solver errors, really just a container for a possibly useful error message.
data SolverError = SolverError String deriving (Eq, Ord)
instance Show (SolverError) where
show (SolverError msg) ... | kcharter/brc-solver | BRC/Solver/Error.hs | Haskell | bsd-2-clause | 565 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module NW.Monster where
import NW.Stats
data MonsterClass
= MCFighter
| MCMage
deriving (Eq, Show)
data Monster = Monster
{ mClass :: MonsterClass
, mName :: String
, mStatsBase :: [Stat]
, mLootBonus :: Int
} deriving (Eq, Show)
type Mons... | listx/netherworld | src/NW/Monster.hs | Haskell | bsd-2-clause | 338 |
{-# LANGUAGE TemplateHaskell #-}
{-| Contains TemplateHaskell stuff I don't want to recompile every time I make
changes to other files, a pre-compiled header, so to say. Don't know if that
even works.
-}
module FeedGipeda.THGenerated
( benchmarkClosure
, stringDict
, __remoteTable
) where
import ... | sgraf812/feed-gipeda | src/FeedGipeda/THGenerated.hs | Haskell | bsd-3-clause | 1,466 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TupleSections #-}
{-# OP... | zohl/postgresql-simple-bind | tests/Test/PGConstant.hs | Haskell | bsd-3-clause | 1,133 |
{-# LANGUAGE OverloadedStrings #-}
module WildBind.SeqSpec (main,spec) where
import Control.Applicative ((<*>))
import Control.Monad (forM_)
import Control.Monad.IO.Class (liftIO)
import qualified Control.Monad.Trans.State as State
import Data.Monoid ((<>))
import Data.IORef (modifyIORef, newIORef, readIORef)
import T... | debug-ito/wild-bind | wild-bind/test/WildBind/SeqSpec.hs | Haskell | bsd-3-clause | 7,072 |
{-# LANGUAGE TemplateHaskell #-}
module Data.Comp.Trans.DeriveUntrans (
deriveUntrans
) where
import Control.Lens ( view ,(^.))
import Control.Monad ( liftM )
import Control.Monad.Trans ( lift )
import Data.Comp.Multi ( Alg, cata, (:&:)(..) )
import Language.Haskell.TH
import Data.Comp.Trans.Util
----------... | jkoppel/comptrans | Data/Comp/Trans/DeriveUntrans.hs | Haskell | bsd-3-clause | 8,030 |
module Mistral.Schedule.Value (
Env
, groupEnv
, lookupEnv
, bindType
, bindValue
, bindParam
, NodeTags
, bindNode
, lookupTag, lookupTags
, Value(..)
, SNetwork(..), mapWhen, modifyNode
, SNode(..), addTask
, STask(..), hasConstraints
, SConstraint(..), target
) where
import Mistral... | GaloisInc/mistral | src/Mistral/Schedule/Value.hs | Haskell | bsd-3-clause | 5,624 |
{-# LANGUAGE ParallelListComp #-}
module OldHMM
(Prob, HMM(..), train, bestSequence, sequenceProb)
where
import qualified Data.Map as M
import Data.List (sort, groupBy, maximumBy, foldl')
import Data.Maybe (fromMaybe, fromJust)
import Data.Ord (comparing)
import Data.Function (on)
import Control.Monad
import ... | mikeizbicki/hmm | OldHMM.hs | Haskell | bsd-3-clause | 5,845 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
... | bitemyapp/hspec-snap | src/Test/Hspec/Snap.hs | Haskell | bsd-3-clause | 22,986 |
{-# LANGUAGE TypeOperators, MultiParamTypeClasses, FunctionalDependencies
, UndecidableInstances
#-}
-- For ghc 6.6 compatibility
-- {-# OPTIONS -fglasgow-exts -fallow-undecidable-instances #-}
----------------------------------------------------------------------
-- |
-- Module : Data.FunArr
-- Cop... | conal/DeepArrow | src/Data/FunArr.hs | Haskell | bsd-3-clause | 2,075 |
module Main where
import Build_doctests (flags, pkgs, module_sources)
import Data.Foldable (traverse_)
import Test.DocTest (doctest)
main :: IO ()
main = do
traverse_ putStrLn args
doctest args
where
args = ["-XOverloadedStrings"] ++ flags ++ pkgs ++ module_sources
| kazu-yamamoto/unix-time | test/doctests.hs | Haskell | bsd-3-clause | 282 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Configure
-- Copyright : (c) David Himmelstrup 2005,
-- Duncan Coutts 2005
-- License : BSD-like
--
-- Maintainer : cabal-devel@haskell.org
-- Portability : portable
--
... | alphaHeavy/cabal | cabal-install/Distribution/Client/Configure.hs | Haskell | bsd-3-clause | 8,529 |
module Text.OpenGL.Xml.ReadRegistry (
readRegistry,
parseRegistry,
PreProcess
) where
import Prelude hiding ((.), id)
import Control.Category
import Text.OpenGL.Types
import Text.OpenGL.Xml.Pickle()
import Text.OpenGL.Xml.PreProcess
import Text.XML.HXT.Core
type PreProcess = Bool
-- TODO RelaxNG valid... | Laar/opengl-xmlspec | src/Text/OpenGL/Xml/ReadRegistry.hs | Haskell | bsd-3-clause | 1,468 |
{-# Language OverloadedStrings #-}
module XMonad.Actions.XHints.Render where
import XMonad hiding (drawString)
import Data.Text (Text)
import qualified Data.Text as T
import Foreign.C
import Graphics.X11.Xlib.Types
import qualified Data.Text.Foreign as TF
import qualified Data.ByteString as BS
import Codec.Binary.UTF8... | netogallo/XHints | src/XMonad/Actions/XHints/Render.hs | Haskell | bsd-3-clause | 1,227 |
isPrime :: Integral a => a -> Bool
isPrime 2 = True
isPrime 3 = True
isPrime n =
all (\ x -> x /= 0)
[n `mod` x | x <- [2..(truncate $ sqrt (fromIntegral n) + 1)]]
goldbach :: (Integral t, Integral t1) => t1 -> (t, t1)
goldbach n = goldbach' 3 (n - 3)
where
goldbach' a b
| isPrime a &&... | m00nlight/99-problems | haskell/p-40.hs | Haskell | bsd-3-clause | 403 |
module UI.Widget.List (
listWidget
) where
import Reactive.Banana
import Reactive.Banana.Extra
import Reactive.Banana.Frameworks
import UI.TclTk
import UI.TclTk.AST
import UI.TclTk.Builder
import UI.Widget
-- | List widget
listWidget :: Frameworks t => Event t [a] -> GUI t p (TkName, Event t (Int,a))
listWidg... | Shimuuar/banana-tcltk | UI/Widget/List.hs | Haskell | bsd-3-clause | 2,401 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DataKinds #-}
module React.Flux.Mui.RadioButton.RadioButtonGroup where
import Protolude
import Data.Aeson
import Data.Aeson.Casing
import Data.String (String)
import React.Flux
import React.Flux.Mui.Types
import React.Flux.Mui.Util
data ... | pbogdan/react-flux-mui | react-flux-mui/src/React/Flux/Mui/RadioButton/RadioButtonGroup.hs | Haskell | bsd-3-clause | 1,165 |
-- |
-- Module: Threshold
-- Description: Time integrated threshold functions
-- Copyright: (c) 2013 Tom Hawkins & Lee Pike
--
-- Time integrated threshold functions typically used in condition monitoring.
module Language.Atom.Common.Threshold
( boolThreshold
, doubleThreshold
) where
import Language.Atom.Expre... | Copilot-Language/atom_for_copilot | Language/Atom/Common/Threshold.hs | Haskell | bsd-3-clause | 1,806 |
import Control.Monad (when)
import Distribution.Simple
import System.Directory (doesFileExist)
import System.Process (readProcess)
import Data.ByteString.Char8 as BS
gitVersion :: IO ()
gitVersion = do
let filename = "app/Internal/Version.hs"
... | da-x/fancydiff | Setup.hs | Haskell | bsd-3-clause | 780 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.