commit
stringlengths
40
40
subject
stringlengths
4
1.73k
repos
stringlengths
5
127k
old_file
stringlengths
2
751
new_file
stringlengths
2
751
new_contents
stringlengths
1
8.98k
old_contents
stringlengths
0
6.59k
license
stringclasses
13 values
lang
stringclasses
23 values
f0a8fb71c7384457d57c97336fbe81e5979fd358
Add test controller
richlander/test-repo
foo/Controllers/TestController.cs
foo/Controllers/TestController.cs
using Microsoft.AspNet.Mvc; using System.Collections.Generic; namespace MvcSample.Web { public class HomeController : Controller { [HttpGet] public IEnumerable<string> GetAll() { return new string[] {"1", "two", "III"}; } } }
mit
C#
164686e9b368cc46f934226644145655ecaaf50b
Add ambiguity test (#169)
graphql-dotnet/parser
src/GraphQLParser.Tests/Issue127.cs
src/GraphQLParser.Tests/Issue127.cs
using GraphQLParser.AST; using Shouldly; using Xunit; namespace GraphQLParser.Tests; // https://github.com/graphql-dotnet/parser/issues/127 // https://github.com/graphql/graphql-spec/pull/598 public class Issue127 { [Theory] [InlineData(IgnoreOptions.None)] [InlineData(IgnoreOptions.Comments)] [Inline...
mit
C#
238148c40f424022fc6ca8211393a06b03452a06
Add IHiveService interface
Branimir123/FMI-IoT-Teamwork,Branimir123/FMI-IoT-Teamwork
SmartHive/SmartHive.Services/Contracts/IHiveService.cs
SmartHive/SmartHive.Services/Contracts/IHiveService.cs
using SmartHive.Models; using System.Collections.Generic; namespace SmartHive.Services.Contracts { public interface IHiveService { Hive GetHiveById(string id); IEnumerable<Hive> GetHivesByUsername(string username); IEnumerable<Hive> GetHivesByUser(User user); } }
mit
C#
bc6b64b1d7a2ffc5310a69a69a08a8b1a01f0be7
Add failing test
ppy/osu,ppy/osu,UselessToucan/osu,smoogipooo/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu-new,peppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,ppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu
osu.Game.Tests/NonVisual/BarLineGeneratorTest.cs
osu.Game.Tests/NonVisual/BarLineGeneratorTest.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using NUnit.Framework; using osu.Framework.Utils; using osu.Game.Beatmaps; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Beatmap...
mit
C#
3f83132283a2afef053bed63954ef50120a36273
Add PlainClientTests
dsbenghe/Novell.Directory.Ldap.NETStandard,dsbenghe/Novell.Directory.Ldap.NETStandard
test/Novell.Directory.Ldap.NETStandard.UnitTests/PlainClientTests.cs
test/Novell.Directory.Ldap.NETStandard.UnitTests/PlainClientTests.cs
using Novell.Directory.Ldap.Sasl; using Novell.Directory.Ldap.Sasl.Clients; using System; using System.Collections.Generic; using Xunit; namespace Novell.Directory.Ldap.NETStandard.UnitTests { public class PlainClientTests { private const string AuthId = "admin"; private const string Password ...
mit
C#
b3b749bdce08e07446565b83876b8122270cf8f0
Create TransformLerper.cs
efruchter/UnityUtilities
TransformLerper.cs
TransformLerper.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Linq; #if UNITY_EDITOR using UnityEditor; #endif public class TransformLerper : MonoBehaviour { public bool applyInLateUpdate = false; public Transform bonesToMove, bonesToTrack; [Header("Cache")] public Mappi...
mit
C#
c2a5cbb6e62b12a6f2f0e7862eb6da024fa331e0
Add more null checking.
ryanwang/LeapMotionCoreAssets,Amarcolina/LeapMotionCoreAssets
Assets/LeapMotion/Widgets/Scripts/Dial/DatePickerHideVolume.cs
Assets/LeapMotion/Widgets/Scripts/Dial/DatePickerHideVolume.cs
using UnityEngine; using UnityEngine.UI; using System.Collections; public class DatePickerHideVolume : MonoBehaviour { // Use this for initialization void Start () { } void OnTriggerEnter(Collider other) { Text text = other.GetComponentInChildren<Text> (); if (text == null) { return; } text.enabl...
using UnityEngine; using UnityEngine.UI; using System.Collections; public class DatePickerHideVolume : MonoBehaviour { // Use this for initialization void Start () { } void OnTriggerEnter(Collider other) { other.GetComponentInChildren<Text>().enabled = false; } void OnTriggerExit(Collider other) { ot...
apache-2.0
C#
f73c856d25af53c42f92030b107d4abd662e077e
Create TestController.cs
schungx/WebApi-OData
TestController.cs
TestController.cs
namespace WebApi.OData.Controllers { // Testing public class Test { [Key] public string Message { get; set; } } public class TestController : StandardODataControllerBase<HomeNetDB> { [EnableQuery] public IEnumerable<Test> Get () { yield return new Test() { Message = "The OData server is on-line. Th...
mit
C#
ca2b34112c7666c93b371fb87370381a2e115a3e
Add WorkerParameter
vbessonov/gzip
GZip/GZip.Core/Workers/WorkerParameter.cs
GZip/GZip.Core/Workers/WorkerParameter.cs
using System; namespace VBessonov.GZip.Core.Workers { public class WorkerParameter<T> { public T Parameter { get; set; } public CancellationToken CancellationToken { get; set; } } }
mit
C#
ed9b710db0d465c30c21e223ef34839f6fd10bae
add keygroup
EdiWang/UWP-CharacterMap,EdiWang/UWP-CharacterMap,EdiWang/UWP-CharacterMap
CharacterMap/CharacterMap/Core/AlphaKeyGroup.cs
CharacterMap/CharacterMap/Core/AlphaKeyGroup.cs
using System; using System.Collections.Generic; using System.Linq; using Windows.Globalization.Collation; namespace BeijingMetro_UWP.Common { public class AlphaKeyGroup<T> : List<T> { const string GlobeGroupKey = "?"; public string Key { get; private set; } //public List<T> this { get;...
mit
C#
cfaa2ed7a07b8d9b45cbc388c4e1d2cdea46d166
Create InfoBox.cs
dnmitev/Team-Joseph-Heller
TeamJosephHeller/Game/InfoBox.cs
TeamJosephHeller/Game/InfoBox.cs
Enter file contents hereusing System; namespace NinjaWars { class InfoBox { private InfoBox() { } public static void GameInfo(uint numberOfLives) { Console.SetCursorPosition(65, 10); Console.Write("Lives left:{0}",numberOfLives); } ...
mit
C#
78722e772cd91050de82dcc04401df6b1757bc8e
add plugins for unity3d
zh423328/NFServer,xinst/NoahGameFrame,xinst/NoahGameFrame,xinst/NoahGameFrame,zh423328/NFServer,zh423328/NFServer,xinst/NoahGameFrame,zh423328/NFServer,zh423328/NFServer,zh423328/NFServer,xinst/NoahGameFrame,xinst/NoahGameFrame,zh423328/NFServer,xinst/NoahGameFrame,zh423328/NFServer,xinst/NoahGameFrame,xinst/NoahGameFr...
MiniClient/Assets/Editor/NFEditorWindow.cs
MiniClient/Assets/Editor/NFEditorWindow.cs
using UnityEngine; using UnityEditor; using System.Collections; public static NFCServer CreateServer(string name) { GameObject go = new GameObject(name); NFCServer client = go.AddComponent<NFCServer>(); } public static NFCClient CreateClient(string name) { GameObject go = new GameObject(name); NFCClient clien...
apache-2.0
C#
b93e628f636272dc5a3026238ef5d8fb2fdec77e
add docker image tests
lvermeulen/ProGet.Net
test/ProGet.Net.Tests/Native/DockerImages/ProGetClientShould.cs
test/ProGet.Net.Tests/Native/DockerImages/ProGetClientShould.cs
using System.Threading.Tasks; using Xunit; // ReSharper disable CheckNamespace namespace ProGet.Net.Tests { public partial class ProGetClientShould { [Fact] public async Task DockerImages_GetImagesAsync() { var results = await _client.DockerImages_GetImagesAsync(6, null); ...
mit
C#
a79ab273a1c33b72a002262312e6395f39a19064
add unit test(still failed)
runceel/ReactiveProperty,runceel/ReactiveProperty,runceel/ReactiveProperty
Test/ReactiveProperty.NETStandard.Tests/Helpers/FilteredReadOnlyObservableCollectionExtensionsTest.cs
Test/ReactiveProperty.NETStandard.Tests/Helpers/FilteredReadOnlyObservableCollectionExtensionsTest.cs
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Security.Cryptography.X509Certificates; using System.Text; using Microsoft.Reactive.Testing; using Microsoft.VisualStudio.TestTools.UnitTesting; using R...
mit
C#
3f2ddc438f6f248459a078b0cbdcdd65ece8b026
Add volume element
freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp,freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp,gstreamer-sharp/gstreamer-sharp,GStreamer/gstreamer-sharp,freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp,gstreamer-sharp/gstreamer-sharp,GStreamer/gstreamer-sharp,GStreamer/gstreamer-sharp,gstream...
samples/ExampleVolume.cs
samples/ExampleVolume.cs
using GLib; using Gst; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Text; namespace GstreamerSharp { class Program { static void Main(string[] args) { Application.Init(ref args); ...
lgpl-2.1
C#
f0818fb21903026864208221962d8fb173492c02
Create Solve_Me_First.cs
leocabrallce/HackerRank,leocabrallce/HackerRank
Solve_Me_First.cs
Solve_Me_First.cs
using System; using System.Collections.Generic; using System.IO; class Solution { static int solveMeFirst(int a, int b) { // Hint: Type return a+b; below return a+b; } static void Main(String[] args) { int val1 = Convert.ToInt32(Console.ReadLine()); int val2 = Convert.ToInt32(...
mit
C#
80de59253b5ff59035b362f280c24a10fd107a11
Add Nesterov
kawatan/Milk
Megalopolis/Optimizers/Nesterov.cs
Megalopolis/Optimizers/Nesterov.cs
using System; using System.Collections.Generic; namespace Megalopolis { namespace Optimizers { public class Nesterov : IOptimizer { private double lr = 0.01; // Learning rate private double momentum = 0.9; // Momentum private Dictionary<int, double> dictiona...
apache-2.0
C#
88c898e5a31f538baae128e405520c1dd17732f6
Add RFC 7693 test vectors
ektrah/nsec
tests/Rfc/Blake2Tests.cs
tests/Rfc/Blake2Tests.cs
using System; using NSec.Cryptography; using Xunit; namespace NSec.Tests.Rfc { public static class Blake2Tests { public static readonly TheoryData<string, string> Rfc7693TestVectors = new TheoryData<string, string> { { "616263", "ba80a53f981c4d0d6a2797b69f12f6e94c212f14685ac4b74b12b...
mit
C#
df46a329fb4382d49555db30309a72856c9d6146
add program code for overseer tests
doubtfire-lms/doubtfire-api,jakerenzella/doubtfire-api,jakerenzella/doubtfire-api,doubtfire-lms/doubtfire-api,doubtfire-lms/doubtfire-api,jakerenzella/doubtfire-api,jakerenzella/doubtfire-api,doubtfire-lms/doubtfire-api,jakerenzella/doubtfire-api,doubtfire-lms/doubtfire-api,jakerenzella/doubtfire-api,doubtfire-lms/doub...
test_files/submissions/program.cs
test_files/submissions/program.cs
using System; class Program { public static void Main() { Console.WriteLine("Hello World"); } }
agpl-3.0
C#
fe93f6dedc40612f85f8c7a49c1e275c863213e3
Remove unnecessary usings (#2721)
Jack109/MahApps.Metro,batzen/MahApps.Metro,psinl/MahApps.Metro,chuuddo/MahApps.Metro,Evangelink/MahApps.Metro,jumulr/MahApps.Metro,pfattisc/MahApps.Metro,p76984275/MahApps.Metro,xxMUROxx/MahApps.Metro,ye4241/MahApps.Metro,MahApps/MahApps.Metro
src/MahApps.Metro.Samples/MahApps.Metro.Caliburn.Demo/MahApps.Metro.Caliburn.Demo.NET45/Properties/AssemblyInfo.cs
src/MahApps.Metro.Samples/MahApps.Metro.Caliburn.Demo/MahApps.Metro.Caliburn.Demo.NET45/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.InteropServices; using System.Windows; // 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. [assembly: AssemblyTitle("MahApps.Metro.Calib...
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated ...
mit
C#
5158ec0913357261dfa6db821c3b19a788b88266
Add experimental module to check status of services that the simulator is connected to.
TomDataworks/opensim,TomDataworks/opensim,bravelittlescientist/opensim-performance,justinccdev/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,OpenSimian/opensimulator,Michelle-Argus/ArribasimExtract,RavenB/opensim,Michelle-Argus/ArribasimExtract,ft-/opensim-optimizations-wip-extras,bravelittlescientist/opensim-performanc...
OpenSim/Region/OptionalModules/Framework/Monitoring/MonitorServicesModule.cs
OpenSim/Region/OptionalModules/Framework/Monitoring/MonitorServicesModule.cs
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must r...
bsd-3-clause
C#
093fa19f16ce3f49383f8f49dff546bed976946a
Add tests for F.Always
farity/farity
Farity.Tests/AlwaysTests.cs
Farity.Tests/AlwaysTests.cs
using Xunit; namespace Farity.Tests { public class AlwaysTests { [Fact] public void AlwaysReturnsAFunctionThatReturnsTheSameValueAlways() { var alwaysAnswerToTheUniverseLifeAndEverything = F.Always(42); var answer = alwaysAnswerToTheUniverseLifeAndEverything(); ...
mit
C#
98210321d3ab748248dad01e622e58218d502538
Add DynamicRegistrationCapability type
PowerShell/PowerShellEditorServices
src/PowerShellEditorServices.Protocol/LanguageServer/DynamicRegistrationCapability.cs
src/PowerShellEditorServices.Protocol/LanguageServer/DynamicRegistrationCapability.cs
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer { /// <summary> /// Class to represent if a capability supports dynamic registration. /// </summary> public class DynamicRegistrationCapability { /// <summary> /// Whether the capability supports dynamic registrati...
mit
C#
cb6865ddcaeb49cf7a82506c771fa6b51f2306bc
add SFXManager.cs
dethi/troma
src/Arrow/Arrow/Map/SFXManager.cs
src/Arrow/Arrow/Map/SFXManager.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework.Audio; namespace Arrow.Map { static class SFXManager { private static Dictionary<string, SoundEffect> soundEffects = new Dictionary<string, SoundEffect>(); ...
mit
C#
68c9df854e9a6fa67fc59f26a1d3b4540e7d6066
Add Q263
txchen/csharp-leet,txchen/csharp-leet
solutions/Q263.cs
solutions/Q263.cs
public class Solution { public bool IsUgly(int num) { while (num % 2 == 0 && num > 1) { num /= 2; } while (num % 3 == 0 && num > 1) { num /= 3; } while (num % 5 == 0 && num > 1) { num /= 5; } retu...
mit
C#
1847ed294b2c10c30874030728ed855cd64aafe9
Create Subset_Sum_Main.cs
DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges
Subset_Sum/Subset_Sum_Main.cs
Subset_Sum/Subset_Sum_Main.cs
using System; namespace Subset_Sum { class MainClass { public static void Main(string[] args) { if (args.Length == 0) { Console.WriteLine("This program requires atleast 1 integer input!\n"); Environment.Exit(0); } int[] inputtedData = new int[args.Length]; for (int i = 0; i < args.Len...
unlicense
C#
eb7dc4c871fa3a6797e6c73edf65ed6f4a3a5eeb
Create AVeryBigSum.cs
michaeljwebb/Algorithm-Practice
HackerRank/AVeryBigSum.cs
HackerRank/AVeryBigSum.cs
//Given an array of integers. Print the sum of the elements in the array. Some of the integers may be large. using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { static long aVeryBigSum(int n, long[] ar) { long result = 0; for(n = 0; n < ar.Length; n+...
mit
C#
14dd2f67febe60f908335e447b77f13b37204bfd
Test to verify type name handling on newtonsoft using additional converter
phatboyg/MassTransit,MassTransit/MassTransit,phatboyg/MassTransit,MassTransit/MassTransit
tests/MassTransit.Tests/Serialization/TypeNameHandlingAuto_Specs.cs
tests/MassTransit.Tests/Serialization/TypeNameHandlingAuto_Specs.cs
namespace MassTransit.Tests.Serialization { using System; using System.Linq; using System.Threading.Tasks; using MassTransit.Testing; using Microsoft.Extensions.DependencyInjection; using Newtonsoft.Json; using NUnit.Framework; [TestFixture] public class When_using_type_name_handli...
apache-2.0
C#
ae6cbe6cb65c3d233258dee9a15752160e124f40
Create GettingInput.cs
cwesnow/Net_Fiddle
2017Aug/GettingInput.cs
2017Aug/GettingInput.cs
using System; public class Program { public static void Main() { bool validated = false; string output = "output"; string age = ""; int AGEMIN = 18; int AGEMAX = 99; while(output != "quit") { Console.WriteLine("Text Input [\"quit\" to exit]: "); validated = getText( Console.ReadLine(), out ou...
mit
C#
c85cea9f7413ef8289e2b7b56d29da8aec43e718
Add unit test
yfakariya/msgpack-rpc-cli,yonglehou/msgpack-rpc-cli
test/MsgPack.Rpc.Server.UnitTest/Rpc/Server/Protocols/ListeningContextTest.cs
test/MsgPack.Rpc.Server.UnitTest/Rpc/Server/Protocols/ListeningContextTest.cs
#region -- License Terms -- // // MessagePack for CLI // // Copyright (C) 2010 FUJIWARA, Yusuke // // 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.or...
apache-2.0
C#
80d3adcadb89097a84ab4f7ef81706b4a6ddc6e5
Add missing files
Mozu/mozu-dotnet,sanjaymandadi/mozu-dotnet,rocky0904/mozu-dotnet,ezekielthao/mozu-dotnet
SDK/Mozu.Api/Contracts/ProductAdmin/ProductCodeRename.cs
SDK/Mozu.Api/Contracts/ProductAdmin/ProductCodeRename.cs
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by Codezu. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------...
mit
C#
3d4f925232c629c8ee9e0882f4a06095d29d0184
Add `SCardReaderStates` enumeration
Archie-Yang/PcscDotNet
src/PcscDotNet/SCardReaderStates.cs
src/PcscDotNet/SCardReaderStates.cs
using System; namespace PcscDotNet { /// <summary> /// Reader states. /// </summary> [Flags] public enum SCardReaderStates { /// <summary> /// This implies that there is a card in the reader with an ATR matching one of the target cards. /// If this bit is set, `Present` ...
mit
C#
3c6043428493933f560a67486861223fb3b830ec
Create RandomTiles.cs
UnityCommunity/UnityLibrary
Scripts/2D/Tilemaps/RandomTiles.cs
Scripts/2D/Tilemaps/RandomTiles.cs
// Requires: Unity 5.5.0a1 or later // Fills tilemap with random tiles // Usage: Attach this script to Tilemap layer, assign tiles, hit play using UnityEngine; public class RandomTiles : MonoBehaviour { public Tile[] tiles; void Start() { RandomTileMap(); } void RandomTileMap() { ...
mit
C#
7c0e22ea72cafecadc784270e65c57ce8c360457
Add missing file
lunet-io/scriban,textamina/scriban
src/Scriban/Helpers/BoxHelper.cs
src/Scriban/Helpers/BoxHelper.cs
// Copyright (c) Alexandre Mutel. All rights reserved. // Licensed under the BSD-Clause 2 license. namespace Scriban.Helpers { /// <summary> /// Provides true/false already boxed /// </summary> internal static class BoxHelper { public static readonly object TrueObject = true; public...
bsd-2-clause
C#
1edfd49bfb2dd233e97fc27fa5deefa57f3db66b
add test key
pkzxs/Aurora.Music
Source/Aurora.Music.Core/Excluded.cs
Source/Aurora.Music.Core/Excluded.cs
namespace Aurora.Music.Core { static partial class Consts { public static string GraphServiceKey = "daf2a654-5b98-4954-bd03-d09a375628ed"; } }
mit
C#
28872976733134b2d2aa50aaba745829ee735fea
Patch #27 Create common serializer class
AfricasTalkingLtd/africastalking.Net
AfricasTalkingCS/ObjConverter.cs
AfricasTalkingCS/ObjConverter.cs
namespace AfricasTalkingCS { using Newtonsoft.Json; public static class ObjConverter { /// <summary> /// The serializer settings. /// </summary> public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings ...
mit
C#
901ceaa113c2de45dd91481e4cc8db5915bfc9b6
Create /Models/DatabaseModels/Student Class.
Programazing/Open-School-Library,Programazing/Open-School-Library
src/Open-School-Library/Models/DatabaseModels/Student.cs
src/Open-School-Library/Models/DatabaseModels/Student.cs
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace Open_School_Library.Models.DatabaseModels { public class Student { public int StudentID { get; set; } public string FirstName { get; se...
mit
C#
2cef1f0bd1816d19d3a9b9274f689b175277a82d
add initial test for C# version so it's the same as the others
emilybache/Racing-Car-Katas,emilybache/Racing-Car-Katas,emilybache/Racing-Car-Katas,emilybache/Racing-Car-Katas,TheoCadoret/racing,emilybache/Racing-Car-Katas,TheoCadoret/racing,emilybache/Racing-Car-Katas,TheoCadoret/racing,emilybache/Racing-Car-Katas,TheoCadoret/racing,emilybache/Racing-Car-Katas,emilybache/Racing-Ca...
CSharp/UnicodeFileToHtmlTextConverter.Tests/UnicodeFileToHtmlTextConverterTest.cs
CSharp/UnicodeFileToHtmlTextConverter.Tests/UnicodeFileToHtmlTextConverterTest.cs
using NUnit.Framework; namespace TDDMicroExercises.UnicodeFileToHtmTextConverter { [TestFixture] public class HikerTest { [Test] public void foobar() { UnicodeFileToHtmTextConverter converter = new UnicodeFileToHtmTextConverter("foobar.txt"); Assert.AreEqual(...
mit
C#
1d84c2f341399022265e5ebd16f080eccb14f764
add missing assemblyinfo file
MrHant/tiver-fowl.Drivers,MrHant/tiver-fowl.Drivers
Tiver.Fowl.Drivers.TestsWithoutConfigFile/Properties/AssemblyInfo.cs
Tiver.Fowl.Drivers.TestsWithoutConfigFile/Properties/AssemblyInfo.cs
using System.Reflection; using 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. [assembly: AssemblyTitle("Tiver.Fowl.Drivers.TestsWithoutConfigFile...
mit
C#
f8c5b96e3d487c30ea945a1cc1426ee240d55c12
add login partial view
iordan93/TeamPompeii,iordan93/TeamPompeii,iordan93/TeamPompeii
PompeiiSquare/PompeiiSquare.Server/Areas/VenueAdministrator/Views/Shared/_LoginPartial.cshtml
PompeiiSquare/PompeiiSquare.Server/Areas/VenueAdministrator/Views/Shared/_LoginPartial.cshtml
@using Microsoft.AspNet.Identity @if (Request.IsAuthenticated) { using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" })) { @Html.AntiForgeryToken() <ul class="nav navbar-nav navbar-right"> <li> @Html....
mit
C#
5fa06e3151e688c04a844f7549bf4cd8bd55ece6
Reduce number of threads used by the LocallocLarge test
stormleoxia/coreclr,josteink/coreclr,blackdwarf/coreclr,JosephTremoulet/coreclr,wtgodbe/coreclr,cmckinsey/coreclr,jhendrixMSFT/coreclr,cmckinsey/coreclr,krk/coreclr,Godin/coreclr,blackdwarf/coreclr,Godin/coreclr,krytarowski/coreclr,qiudesong/coreclr,cydhaselton/coreclr,sagood/coreclr,gkhanna79/coreclr,tijoytom/coreclr,...
tests/src/JIT/CodeGenBringUpTests/LocallocLarge.cs
tests/src/JIT/CodeGenBringUpTests/LocallocLarge.cs
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using System; using System.Threading; public class ThreadData { public AutoResetEvent autoEvent; public int initialAllocation; public int result; p...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using System; using System.Threading; public class ThreadData { public AutoResetEvent autoEvent; public int initialAllocation; public int result; p...
mit
C#
6e2843586d124c2af00307dbc6aa964fc2bbf89c
Complete refactoring started.
secana/PeNet
PeNet2/Properties/AssemblyInfo.cs
PeNet2/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using 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. [assembly: AssemblyTitle("Pe...
apache-2.0
C#
5da719ea551692f9a468111573fa579fa660c425
Create answer.cs
neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu...
POH2/answer.cs
POH2/answer.cs
// paiza POH! vol.2 // result: // http://paiza.jp/poh/paizen/result/85b2f2c34976b832709f2a784a83712f // author: Leonardone @ NEETSDKASU using System; using System.Text; public class Test { public static void Main() { String[] hw = Console.ReadLine().Split(' '); int h = Int32.Parse(hw[0]); int w = Int32.Parse(h...
mit
C#
f870a5b3e88f710d7ddd6e24e988d094003398a9
add forgotten stuff
rosudrag/EVEBotis
EVEBotis/EVE.Cache/EntityCache.cs
EVEBotis/EVE.Cache/EntityCache.cs
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Caching; using System.Text; using System.Threading.Tasks; using EVE.Core.Model; using EVE.ISXEVE; namespace EVE.Cache { /// <summary> /// /// </summary> public static class EntityCache { /// <summary> ...
mit
C#
7a66b9e75c2795e20ffa827a2e3fe1a63f7f0535
Remove dupes, keep lexicographic order, take 1 - wrong
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
CareerCup/Google/delete_duplicates_lexicographic.cs
CareerCup/Google/delete_duplicates_lexicographic.cs
// http://careercup.com/question?id=5758790009880576 // // Given a string with lowercase chars, delete the repeated // letters and only leave one but with the optimal // lexicographic order using System; using System.Collections.Generic; using System.Linq; using System.Text; static class Program { static String D...
mit
C#
7b575ff01305dfe5f1210c4d0e12e42a5a21de7f
Add a verification class
crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin
SignInCheckIn/SignInCheckIn/Security/VerifyRoles.cs
SignInCheckIn/SignInCheckIn/Security/VerifyRoles.cs
using Crossroads.Web.Auth.Models; using System; namespace SignInCheckIn.Security { public static class VerifyRoles { public static void KidsClubTools(AuthDTO authDto) { const int KidsClubTools = 112; if (!authDto.Authorization.MpRoles.ContainsKey(KidsClubTools)) ...
bsd-2-clause
C#
f19954f18a21fd7e279181b9165a482d90d78a85
Define the contract to specify a range
Seddryck/NBi,Seddryck/NBi
NBi.Core/Members/Ranges/IRange.cs
NBi.Core/Members/Ranges/IRange.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NBi.Core.Members.Ranges { public interface IRange { } }
apache-2.0
C#
c15df058889571e521086428bfc81f9f236c2344
Add a core ITransportProtocol
JasperFx/jasper,JasperFx/jasper,JasperFx/jasper
src/Jasper/Transports/ITransportProtocol.cs
src/Jasper/Transports/ITransportProtocol.cs
namespace Jasper.Transports { public interface ITransportProtocol<TTransportMsg> { /// <summary> /// Creates a transport message object from a Jasper Envelope /// </summary> /// <param name="envelope"></param> /// <returns></returns> TTransportMsg WriteFromEnvelop...
mit
C#
1a31c990c5303e306097ab5bc11bd1f89c729a70
Use this script to test the physics
Onastick/Unity2D
NudgeMe.cs
NudgeMe.cs
using UnityEngine; public class NudgeMe : MonoBehaviour { public float xDir = 1000; public float yDir = 1000; // Update is called once per frame void Update () { if(Input.GetKey (KeyCode.Space)){ this.gameObject.GetComponent<Rigidbody2D>().AddForce(new Vector2(xDir,yDir)); } } }
cc0-1.0
C#
d143386f6ae35e14074029abc9ee395d3ca5f6b1
Create Section.cs
tuttomax/IniSharp
Section.cs
Section.cs
namespace IniSharp { using System; using System.Collections.Generic; class Section { public string Key { get; set; } public List<Pair> Pairs { get; set; } public Section() { Pairs = new List<Pair>(); } public Section(string key) : this() {...
mit
C#
b66075ebfb7fba90f61487f8ab16abf2e4eb9866
add Similar class that checks if two INumbers are similar
icarus-consulting/Yaapii.Atoms
src/Yaapii.Atoms/Number/Similar.cs
src/Yaapii.Atoms/Number/Similar.cs
// MIT License // // Copyright(c) 2020 ICARUS Consulting GmbH // // 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 limitation the rights // to use, co...
mit
C#
e1e82785aad19b4dabfbfa14fa1c9992ba123910
add PropertyReader
AspectCore/Lite,AspectCore/AspectCore-Framework,AspectCore/Abstractions,AspectCore/AspectCore-Framework
redisprofiler/src/AspectCore.Extensions.RedisProfiler/PropertyReader.cs
redisprofiler/src/AspectCore.Extensions.RedisProfiler/PropertyReader.cs
using System; using System.Collections.Concurrent; using System.Reflection; using AspectCore.Extensions.Reflection; namespace AspectCore.Extensions.RedisProfiler { class PropertyReader { private readonly ConcurrentDictionary<string, PropertyReflector> _reflectorCache; private readonly Type _in...
mit
C#
6d960bd9556b00a3fdf18ce8e12f6b213f704ac6
Move IDE to a new Location
tgiphil/Cosmos,fanoI/Cosmos,zarlo/Cosmos,tgiphil/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos,fanoI/Cosmos,jp2masa/Cosmos,zarlo/Cosmos,jp2masa/Cosmos,zarlo/Cosmos,CosmosOS/Cosmos,fanoI/Cosmos,jp2masa/Cosmos,tgiphil/Cosmos,CosmosOS/Cosmos,zarlo/Cosmos
source/Cosmos.HAL2/Drivers/Controllers/IDE.cs
source/Cosmos.HAL2/Drivers/Controllers/IDE.cs
using System; using Cosmos.HAL.BlockDevice; namespace Cosmos.HAL.Drivers.PCI.SATA { public class IDE { public static void InitAta(Ata.ControllerIdEnum aControllerID, Ata.BusPositionEnum aBusPosition) { var xIO = aControllerID == Ata.ControllerIdEnum.Primary ? Core.Global.BaseIOGroup...
bsd-3-clause
C#
867a9c8ab78377efd5e2bd928b9ab8777f1ef009
Add Q233
txchen/localleet
csharp/Q233_NumberOfDigitOne.cs
csharp/Q233_NumberOfDigitOne.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. // // For example: // Given n = 13, // Return 6, because digit 1 occurred...
mit
C#
52ee87724465272906a38181b4cb517abe50e616
Add derivative statement for zlib, required by license
yizhang82/corefx,billwert/corefx,zhenlan/corefx,Petermarcu/corefx,seanshpark/corefx,nbarbettini/corefx,wtgodbe/corefx,seanshpark/corefx,gkhanna79/corefx,stephenmichaelf/corefx,stone-li/corefx,nbarbettini/corefx,billwert/corefx,twsouthwick/corefx,ravimeda/corefx,Jiayili1/corefx,billwert/corefx,axelheer/corefx,jlin177/co...
src/Common/tests/System/IO/Compression/CRC.cs
src/Common/tests/System/IO/Compression/CRC.cs
// 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. public class CRC { // Table of CRCs of all 8-bit messages. private static ulong[] s_crc_table = new ulong[25...
// 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. public class CRC { // Table of CRCs of all 8-bit messages. private static ulong[] s_crc_table = new ulong[25...
mit
C#
17598e17fdbc41df601de7cb9b17d8c5bb11930c
Create Anime.cs
myuulius/omega-kawaii-animeDB,myuulius/omega-kawaii-animeDB
Anime.cs
Anime.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace kawaii_animedb { public class Anime { public string title_canonical; public string title_english; public string title_romaji; public string title_japanes...
bsd-2-clause
C#
e36bc0c0160b8f7eb68fd75fc7a00aa2aa79ad9f
Add DotNetRuntimeIdentifiers
nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke
source/Nuke.Common/Tools/DotNet/DotNetRuntimeIdentifier.cs
source/Nuke.Common/Tools/DotNet/DotNetRuntimeIdentifier.cs
// Copyright 2022 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.ComponentModel; using System.Linq; using Nuke.Common.Tooling; namespace Nuke.Common.Tools.DotNet { [TypeConverter(typeof(TypeConverter<DotNetRuntimeIde...
mit
C#
aeef5505ec475a418e388860eeec76b017edfe84
Fix for #16: Unable to use different Locale without querying locales first
jochenvanwylick/SkyScanner,tamasvajk/SkyScanner
src/SkyScanner/Data/Locale.cs
src/SkyScanner/Data/Locale.cs
// Copyright (c) 2015 Tamas Vajk. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information. namespace SkyScanner.Data { using System.CodeDom; /// <summary> /// Localization supported by Skyscanner /// </summary> public class Locale { ...
// Copyright (c) 2015 Tamas Vajk. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information. namespace SkyScanner.Data { /// <summary> /// Localization supported by Skyscanner /// </summary> public class Locale { /// <summary> ...
mit
C#
e1446474fbf9f940a2f83d4534df5131d48277f5
add UsingVarChecker
BigBabay/AsyncConverter,BigBabay/AsyncConverter
AsyncConverter/AsyncHelpers/AwaitEliders/UsingVarChecker.cs
AsyncConverter/AsyncHelpers/AwaitEliders/UsingVarChecker.cs
using System.Linq; using AsyncConverter.Helpers; using JetBrains.ProjectModel; using JetBrains.ReSharper.Psi.CSharp.Tree; using JetBrains.ReSharper.Psi.Tree; namespace AsyncConverter.AsyncHelpers.AwaitEliders { [SolutionComponent] internal class UsingVarChecker : IConcreteAwaitEliderChecker { pub...
mit
C#
12b8e718e1fad0ce20aba3c61d1ce0c7b3f47fc3
Make the sample have good coding :-)
Gankov/gtk-sharp,akrisiun/gtk-sharp,Gankov/gtk-sharp,sillsdev/gtk-sharp,akrisiun/gtk-sharp,sillsdev/gtk-sharp,Gankov/gtk-sharp,sillsdev/gtk-sharp,Gankov/gtk-sharp,orion75/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,Gankov/gtk-sharp,sillsdev/gtk-sharp,openmedicus/gtk-sharp,antoniusriha/gt...
sample/gtk-html-sample.cs
sample/gtk-html-sample.cs
// mcs -pkg:gtkhtml-sharp -pkg:gtk-sharp gtk-html-sample.cs using Gtk; using System; using System.IO; class HTMLSample { static int Main (string [] args) { HTML html; Window win; Application.Init (); html = new HTML (); win = new Window ("Test"); win.Add (html); HTMLStream s = html.Begin ("text/html");...
// mcs -pkg:gtkhtml-sharp -pkg:gtk-sharp gtk-html-sample.cs using Gtk; using System; using System.IO; class HTMLSample { static int Main (string [] args) { HTML html; Window win; Application.Init (); html = new HTML (); win = new Window ("Test"); win.Add (html); HTMLStream s = html.Begin ("text/html");...
lgpl-2.1
C#
303c37374e57aa7846f6df4f284931e02c3bda98
Add SwitchBooleanConverter
Anapher/Anapher.Wpf.Swan
Anapher.Wpf.Swan/Converter/SwitchBooleanConverter.cs
Anapher.Wpf.Swan/Converter/SwitchBooleanConverter.cs
using System; using System.Globalization; using System.Windows.Data; namespace Anapher.Wpf.Swan.Converter { /// <summary> /// Switch the value of a boolean (true to false, false to true) /// </summary> [ValueConversion(typeof(bool), typeof(bool))] public class SwitchBooleanConverter : IValueCo...
mit
C#
f707862b014f3081120dfaf96309a763ad0c2711
Add Q164
txchen/localleet
csharp/Q164_MaximumGap.cs
csharp/Q164_MaximumGap.cs
using System; using System.Collections.Generic; using System.Linq; using Xunit; // Given an unsorted array, find the maximum difference between the successive elements in its sorted form. // // Try to solve it in linear time/space. // // Return 0 if the array contains less than 2 elements. // // You may assume all ele...
mit
C#
0fdb481007253cdc3d42b6537fbd2310be862ba7
Create kod.cs
developersmk/test
kod.cs
kod.cs
kod.cs
mit
C#
9f89466108f552fbc877ec6ba30256c3f17e52ec
Add ElapsedTimer
brian-dot-net/writeasync,brian-dot-net/writeasync,brian-dot-net/writeasync
projects/RetrySample/source/RetrySample.Core/ElapsedTimer.cs
projects/RetrySample/source/RetrySample.Core/ElapsedTimer.cs
//----------------------------------------------------------------------- // <copyright file="ElapsedTimer.cs" company="Brian Rogers"> // Copyright (c) Brian Rogers. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace RetrySample { using...
unlicense
C#
ca81429160c75b38d42ebee43df1eb8af776abec
Add new file userAuth.cpl/Droid/MainActivity.cs
ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl
userAuth.cpl/Droid/MainActivity.cs
userAuth.cpl/Droid/MainActivity.cs
 using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; namespace userAuth.cpl.Droid { [Activity (Label = "userAuth.cpl.Droid", Icon = "@drawable/icon", MainLa...
mit
C#
d046920f86d0a6244f23bb77c0f4896ed38b0a74
Call Dispose on the messageConsumer and add a Guid to the message payload.
BrighterCommand/Brighter,BrighterCommand/Brighter,BrighterCommand/Brighter,BrighterCommand/Paramore.Brighter,BrighterCommand/Paramore.Brighter
tests/Paramore.Brighter.Tests/MessagingGateway/kafka/When_posting_a_message_via_the_messaging_gateway.cs
tests/Paramore.Brighter.Tests/MessagingGateway/kafka/When_posting_a_message_via_the_messaging_gateway.cs
using System; using FluentAssertions; using Paramore.Brighter.MessagingGateway.Kafka; using Xunit; namespace Paramore.Brighter.Tests.MessagingGateway.Kafka { [Trait("Category", "KAFKA")] public class KafkaMessageProducerSendTests : IDisposable { private const string QueueName = "test"; pri...
mit
C#
71e4cf52505321173723dafaeef33a0f88c823b7
Fix assembly version
EtienneLamoureux/TQVaultAE,Malgardian/TQVaultAE,NorthFury/TQVaultAE
src/TQVaultAE.GUI/Properties/AssemblyInfo.cs
src/TQVaultAE.GUI/Properties/AssemblyInfo.cs
//----------------------------------------------------------------------- // <copyright file="AssemblyInfo.cs" company="None"> // Copyright (c) Brandon Wallace and Jesse Calhoun. All rights reserved. // </copyright> //----------------------------------------------------------------------- using System; using Syste...
//----------------------------------------------------------------------- // <copyright file="AssemblyInfo.cs" company="None"> // Copyright (c) Brandon Wallace and Jesse Calhoun. All rights reserved. // </copyright> //----------------------------------------------------------------------- using System; using Syste...
mit
C#
fdd93ad4e12e16d423ae8728c094fc034cb6ce0e
Add "Shelf"
DRFP/Personal-Library
_Build/PersonalLibrary/Library/Model/Shelf.cs
_Build/PersonalLibrary/Library/Model/Shelf.cs
using SQLite; namespace Library.Model { [Table("Shelves")] public class Shelf { [PrimaryKey, AutoIncrement] public int slfID { get; set; } public string slfName { get; set; } public string slfDescription { get; set; } } }
mit
C#
4bf7930ef36f9e02789369c435c11412783c4c1b
add event occurences tests
lvermeulen/ProGet.Net
test/ProGet.Net.Tests/Native/EventOccurrences/ProGetClientShould.cs
test/ProGet.Net.Tests/Native/EventOccurrences/ProGetClientShould.cs
using System.Threading.Tasks; using Xunit; // ReSharper disable CheckNamespace namespace ProGet.Net.Tests { public partial class ProGetClientShould { [Fact] public async Task EventOccurrences_GetOccurrencesAsync() { var results = await _client.EventOccurrences_GetOccurrenc...
mit
C#
c199811d5743d08d216f130a0f65eeee814ec264
Create ITournamentBase.cs
OpenConquer/Tournaments
Tournaments/ITournamentBase.cs
Tournaments/ITournamentBase.cs
using System; namespace OpenConquer.Game.Models.Tournaments { /// <summary> /// Model for the base of a tournament. /// </summary> public interface ITournamentBase { /// <summary> /// Gets or sets the id of the tournament. /// </summary> int Id { get; set; } ...
mit
C#
770997477499ca39d2d06bfc328becc369cacde0
Add Q168
txchen/localleet
csharp/Q168_ExcelSheetColumnTitle.cs
csharp/Q168_ExcelSheetColumnTitle.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Given a positive integer, return its corresponding column title as appear in an Excel sheet. // // For example: // // 1 -> A // 2 -> B // 3 -> C // ... // 26 -> Z // 27 -> AA // 28 -> AB /...
mit
C#
1f29c1826961855be523bffcabb80e04a8f8fd64
Add util classes to deal with specific claims.
marcuson/A2BBServer,marcuson/A2BBServer,marcuson/A2BBServer
A2BBAPI/Utils/ClaimsUtils.cs
A2BBAPI/Utils/ClaimsUtils.cs
using A2BBCommon; using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; namespace A2BBAPI.Utils { public static class ClaimsUtils { #region Nested classes /// <summary> /// Holder for authorized user claims. ...
apache-2.0
C#
13cb2e4e7d5e270982499b0ac46e8c3863cc60d8
Create PBU-Main-Future.cs
win120a/ACClassRoomUtil,win120a/ACClassRoomUtil
ProcessBlockUtil/PBU-Main-Future.cs
ProcessBlockUtil/PBU-Main-Future.cs
/* THIS IS ONLY TO EASY CHANGE, NOT THE PROJECT CODE AT NOW. (I will use in the future.) Copyright (C) 2011-2014 AC Inc. (Andy Cheung) 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...
apache-2.0
C#
b840ebd7f63a246072a99027f2a97965bda4e346
Add campaignDTO
TypeW/eShopOnContainers,dotnet-architecture/eShopOnContainers,albertodall/eShopOnContainers,productinfo/eShopOnContainers,andrelmp/eShopOnContainers,skynode/eShopOnContainers,skynode/eShopOnContainers,dotnet-architecture/eShopOnContainers,dotnet-architecture/eShopOnContainers,skynode/eShopOnContainers,TypeW/eShopOnCont...
src/Web/WebMVC/Models/CampaignDTO.cs
src/Web/WebMVC/Models/CampaignDTO.cs
namespace Microsoft.eShopOnContainers.WebMVC.Models { using System; public class CampaignDTO { public int Id { get; set; } public string Description { get; set; } public DateTime From { get; set; } public DateTime To { get; set; } public string Url { get; set; }...
mit
C#
eef57dfb7de8f54ea27ad2ca4f1c72c5454d3bae
add engine
ivayloivanof/Libbon_Tank_Game
TankGame/Engine.cs
TankGame/Engine.cs
namespace TankGame { using System; using Exception; public class Engine { private Player playerOne; private Player playerTwo; private MapFile map; public Engine() { } public Player PlayerOne { get { ...
cc0-1.0
C#
308453a82dcd6f65cc85e229dd8c46945cb57abd
Create Virtual-Assistant.cs
DeanCabral/Code-Snippets
Console/Virtual-Assistant.cs
Console/Virtual-Assistant.cs
class VirtualAssistant { private static string name; private static string time; private static string[] responses = { "hello", "how are you", "what is"}; static void Main(string[] args) { Initialisation(); } static void Initialisation() ...
mit
C#
4cb2c4a939c8cabd3fd2214c0752964ba817f009
add assembly infos
TUD-INF-IAI-MCI/BrailleIO,TUD-INF-IAI-MCI/BrailleIO,TUD-INF-IAI-MCI/BrailleIO,TUD-INF-IAI-MCI/BrailleIO
Properties/AssemblyInfo.cs
Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using 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. [assembly: AssemblyTitle("Ge...
bsd-2-clause
C#
1364f4bcb4309aeba40ba5310e054ef0ebdec7d3
Bring back TextSourceReader
StevenLiekens/Txt,StevenLiekens/TextFx
src/Txt.Core/TextSourceReader.cs
src/Txt.Core/TextSourceReader.cs
using System; using System.IO; using System.Threading.Tasks; using JetBrains.Annotations; namespace Txt.Core { public class TextSourceReader : TextReader, ITextSource { private readonly ITextSource textSource; public TextSourceReader([NotNull] ITextSource textSource) { if ...
mit
C#
81d177845004cc92e48aec32acab2fb82b95d887
Add WaterSplasherController.
j-be/vj-servo-controller,j-be/vj-servo-controller,j-be/vj-servo-controller,j-be/vj-servo-controller,j-be/vj-servo-controller
Unity/ServoController/WaterSplasherController.cs
Unity/ServoController/WaterSplasherController.cs
using UnityEngine; using System.Collections; public class WaterSplasherController : AbstractSocketioClient { private static readonly string SOCKETIO_SERVER = "ws://192.168.1.50:5000"; private static readonly string SOCKETIO_NAMESPACE = "/events"; public WaterSplasherController() : base(SOCKETIO_SERVER, S...
mit
C#
5dd8a73c743256729745232d981c7328ed9eeee3
Create SQLiteGeneratorTests.cs
phnx47/MicroOrm.Dapper.Repositories
test/MicroOrm.Dapper.Repositories.Tests/SqlGeneratorTests/SQLiteGeneratorTests.cs
test/MicroOrm.Dapper.Repositories.Tests/SqlGeneratorTests/SQLiteGeneratorTests.cs
using System; using System.Collections.Generic; using MicroOrm.Dapper.Repositories.Config; using MicroOrm.Dapper.Repositories.SqlGenerator; using MicroOrm.Dapper.Repositories.SqlGenerator.Filters; using MicroOrm.Dapper.Repositories.Tests.Classes; using Xunit; namespace MicroOrm.Dapper.Repositories.Tests.SqlGeneratorTe...
mit
C#
019f3013f86abdb252413a14048bfe174687036a
Add tests for PEImage.DefaultPdb (#455)
Microsoft/clrmd,Microsoft/clrmd,cshung/clrmd,cshung/clrmd
src/Microsoft.Diagnostics.Runtime.Tests/src/PEImagePdbTests.cs
src/Microsoft.Diagnostics.Runtime.Tests/src/PEImagePdbTests.cs
// 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. using Microsoft.Diagnostics.Runtime.Utilities; using System; using System.IO; using System.Linq; using System.Runti...
mit
C#
523bb6230d2325a1553b83b0a0e487ccdb751547
Add DateInterval
Aaylor/JobManager
src/DateInterval.cs
src/DateInterval.cs
namespace JobManager.Date { public sealed class DateInterval { public int Years = 0; public int Months = 0; public int Days = 0; public int Hours = 0; public int Minutes = 0; public int Seconds = 0; public int Mill...
mit
C#
05c55842d047316c0adb6332be3803e81752bbb9
Create template for credentials file (Azuria.Test)
InfiniteSoul/Azuria
Azuria.Test/Credentials.cs
Azuria.Test/Credentials.cs
namespace Azuria.Test { internal static class Credentials { public const string Username = ""; public const string Password = ""; public const string ApiKey = ""; } }
mit
C#
69b5e1eaa6a737f7320c6204864984315b79b5c0
Add custom contract resolver
PicnicBasket/Eventful,adbrowne/Eventful,PicnicBasket/Eventful,adbrowne/Eventful
src/BookLibrary.Web/App_Start/WebApiConfig.cs
src/BookLibrary.Web/App_Start/WebApiConfig.cs
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http.Formatting; using System.Reflection; using System.Web.Http; using System.Web.Http.Dispatcher; using System.Web.Http.Tracing; using Autofac.Integration.WebApi; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace ...
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Web.Http; using System.Web.Http.Dispatcher; using System.Web.Http.Tracing; using Autofac.Integration.WebApi; using Newtonsoft.Json.Serialization; namespace BookLibrary.Web { public static class WebApiConfig ...
apache-2.0
C#
a3caa575286fe2330afb10253d455cd7bc5035df
Create AuditReportingServices.cs
siuccwd/IOER,siuccwd/IOER,siuccwd/IOER
Services/Isle.BizServices/AuditReportingServices.cs
Services/Isle.BizServices/AuditReportingServices.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using LRWarehouse.Business; using LRWarehouse.DAL; namespace Isle.BizServices { public class AuditReportingServices : Isle.BusinessServices.BaseService { private AuditReportingManager myManager; public Audit...
apache-2.0
C#
e462a245a319100adfbf993d057d2d4d31f4b392
Create AssemblyInfo.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Properties/AssemblyInfo.cs
Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using 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. [assembly: AssemblyTitle("Pro...
mit
C#
b95dbaf3fc2fd531e257c14ccf5a9c1882ee8805
Add Q204
txchen/localleet
csharp/Q204_CountPrimes.cs
csharp/Q204_CountPrimes.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Count the number of prime numbers less than a non-negative number, n. // https://leetcode.com/problems/count-primes/ namespace LocalLeet { public class Q204 { public int Coun...
mit
C#
f7127c6ca380b8291fa3b7697d8f5dd7600ed3b6
Update src/Tools/ExternalAccess/FSharp/InlineHints/FSharpInlineHint.cs
dotnet/roslyn,mgoertz-msft/roslyn,jasonmalinowski/roslyn,KirillOsenkov/roslyn,heejaechang/roslyn,eriawan/roslyn,tmat/roslyn,weltkante/roslyn,ErikSchierboom/roslyn,shyamnamboodiripad/roslyn,mgoertz-msft/roslyn,mgoertz-msft/roslyn,tmat/roslyn,eriawan/roslyn,panopticoncentral/roslyn,shyamnamboodiripad/roslyn,KirillOsenkov...
src/Tools/ExternalAccess/FSharp/InlineHints/FSharpInlineHint.cs
src/Tools/ExternalAccess/FSharp/InlineHints/FSharpInlineHint.cs
// 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. using System; using System.Collections.Immutable; using System.Threading; using System.Threading.Tasks; using Micro...
// 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. using System; using System.Collections.Immutable; using System.Threading; using System.Threading.Tasks; using Micro...
mit
C#
557e9d1a303db0b374849f5b4dee925b16d878c7
Add JpegBitmapEncoder. First commit to git google code, woohoo!
weltkante/SharpDX,RobyDX/SharpDX,RobyDX/SharpDX,weltkante/SharpDX,fmarrabal/SharpDX,sharpdx/SharpDX,fmarrabal/SharpDX,shoelzer/SharpDX,VirusFree/SharpDX,TechPriest/SharpDX,mrvux/SharpDX,TigerKO/SharpDX,TechPriest/SharpDX,shoelzer/SharpDX,davidlee80/SharpDX-1,VirusFree/SharpDX,weltkante/SharpDX,weltkante/SharpDX,dazerdu...
Source/SharpDX.WIC/JpegBitmapEncoder.cs
Source/SharpDX.WIC/JpegBitmapEncoder.cs
// Copyright (c) 2010-2011 SharpDX - Alexandre Mutel // // 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 limitation the rights // to use, copy, modif...
mit
C#
2be8e5ca0f86fe7a28fceedcfba6a59c903cd4b9
Add LoginDto
denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs
src/Diploms.Dto/Login/LoginDto.cs
src/Diploms.Dto/Login/LoginDto.cs
namespace Diploms.Dto.Login { public class LoginDto { /// <summary> /// Username /// </summary> public string Username { get; set; } /// <summary> /// Password /// </summary> public string Password { get; set; } /// <summary> /// Sh...
mit
C#
2d6814b62e187039d0a804d982b38e341bafe605
add bundle.cs
gaulinsoft/fusion,gaulinsoft/fusion,gaulinsoft/fusion
examples/bundle.cs
examples/bundle.cs
using System.Web.Optimization; using Gaulinsoft.Web.Fusion; using Gaulinsoft.Web.Optimization; public class BundleConfig { public static void RegisterBundles(BundleCollection bundles) { // Create the fusion bundle and add it to the bundles collection bundles.Add(new FusionBundle("~/js/bundle.j...
apache-2.0
C#
fc45a38b9821dabdcf9da114ebe4fb85d7a85a92
Create IClient interface for GoogleMusic.Clients
GodTamIt/.NET-Google-Music-API
GoogleMusicAPI.NET/Clients/IClient.cs
GoogleMusicAPI.NET/Clients/IClient.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GoogleMusic.Clients { public interface IClient { void Logout(); /// <summary> /// Gets whether the client is logged in. /// </summary> bool IsL...
mit
C#
0b0309cb145590b135ffa91579c01a726c8d7619
Add WarpChecks
KerbaeAdAstra/KerbalFuture
KerbalFuture/SpaceFolderWarpChecks.cs
KerbalFuture/SpaceFolderWarpChecks.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using KSP; namespace KerbalFuture { class SpaceFolderVslChecks : MonoBehavior { public bool SpaceFolderWarpCheck() { List<Part> vslParts = this.Vessel.Parts; for(vslParts[i]) { if(partCont...
mit
C#
c88030480ddbf15872ad24733e26560e91167df2
Mark this .NET 3.5 version as 1.0.2
EamonNerbonne/ExpressionToCode,asd-and-Rizzo/ExpressionToCode
ExpressionToCodeLib/Properties/AssemblyInfo.cs
ExpressionToCodeLib/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using 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. [assembly: AssemblyTi...
using System.Reflection; using System.Runtime.CompilerServices; using 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. [assembly: AssemblyTi...
apache-2.0
C#
ac019a37c38ce713107d151b62ab11478dc94736
Add missing tests for write lock
tlycken/RdbmsEventStore
src/RdbmsEventStore.Tests/WriteLockTests.cs
src/RdbmsEventStore.Tests/WriteLockTests.cs
using Xunit; namespace RdbmsEventStore.Tests { public class WriteLockTests { [Fact] public void SameIdCannotEnterLockSimultaneously() { var mutex = new WriteLock<int>(); var lock1 = mutex.Aquire(1); var lock2 = mutex.Aquire(1); Assert.T...
mit
C#
ebac8f94b40acde91e8f1911a7e75e79c16d8e9c
Add IGremlinClientFactory so creation of Gremlin Clients can be configured better in the future.
ExRam/ExRam.Gremlinq
src/ExRam.Gremlinq.Providers.WebSocket/IGremlinClientFactory.cs
src/ExRam.Gremlinq.Providers.WebSocket/IGremlinClientFactory.cs
using System; using System.Net.WebSockets; using Gremlin.Net.Driver; namespace ExRam.Gremlinq.Providers.WebSocket { public interface IGremlinClientFactory { GremlinClient Create(Gremlin.Net.Driver.GremlinServer gremlinServer, IMessageSerializer? messageSerializer = null, ConnectionPoolSettings? connec...
mit
C#
b2e1fa83754d5bcb2267c1cd63168c2e9eab61cc
add some ANE checks
stratisproject/NStratis,MetacoSA/NBitcoin,HermanSchoenfeld/NBitcoin,bitcoinbrisbane/NBitcoin,MetacoSA/NBitcoin,you21979/NBitcoin,lontivero/NBitcoin,thepunctuatedhorizon/BrickCoinAlpha.0.0.1,dangershony/NStratis,NicolasDorier/NBitcoin
NBitcoin/Protocol/IMessageProducer.cs
NBitcoin/Protocol/IMessageProducer.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBitcoin.Protocol { public class MessageProducer<T> { List<MessageListener<T>> _Listeners = new List<MessageListener<T>>(); public IDisposable AddMessageListener(MessageListen...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBitcoin.Protocol { public class MessageProducer<T> { List<MessageListener<T>> _Listeners = new List<MessageListener<T>>(); public IDisposable AddMessageListener(MessageListen...
mit
C#
78ea1b034e4784f1422c97b79516aa3f69f77d93
add ValueStopwatch
WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common
src/WeihanLi.Common/Helpers/ValueStopwatch.cs
src/WeihanLi.Common/Helpers/ValueStopwatch.cs
using System; using System.Diagnostics; namespace WeihanLi.Common.Helpers { /// <summary> /// Value-type replacement for <see cref="Stopwatch"/> which avoids allocations. /// </summary> /// <remarks> /// Inspired on <seealso href="https://github.com/dotnet/extensions/blob/master/src/Shared/src/Val...
mit
C#
6de53a6dc6c472e4ede143699a9c4d72c815df14
Create mntp-partialView.cshtml
go4web/Umbraco-Snippets
mntp-partialView.cshtml
mntp-partialView.cshtml
@inherits Umbraco.Web.Mvc.UmbracoViewPage<IPublishedContent> @{ Layout = null; var nodeIds = Model.GetPropertyValue<string>("contentPanels").Split(','); List<IPublishedContent> panels = new List<IPublishedContent>(); foreach(var nodeId in nodeIds) { if(!String.IsNullOrEmpty(nodeId))...
mit
C#
ff163922206ed2b1ebe670d21466c6d90a499ab6
Move directions and orientations into global enums
cmilr/Unity2D-Components,jguarShark/Unity2D-Components
Global/GlobalEnums.cs
Global/GlobalEnums.cs
public enum Side : byte { Right, Left, Top, Bottom }; public enum Position : byte { TopLeft, TopCenter, TopRight, MiddleLeft, MiddleCenter, MiddleRight, BottomLeft, BottomCenter, BottomRight }
mit
C#