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
c16034c633ce58661fcbf6a32c497949e180243a
Create empty folder
lizaamini/CSharpExercises
Sheet-3/Exercise3A.cs
Sheet-3/Exercise3A.cs
mit
C#
7196b7982ad2ad1d10797fbd51db000be65afe79
Create Auto-Capital.cs
DeanCabral/Code-Snippets
Console/Auto-Capital.cs
Console/Auto-Capital.cs
class AutoCapital { static void Main(string[] args) { GetUserInput(); } static void GetUserInput() { string input = ""; Console.Write("Enter sentence: "); input = Console.ReadLine(); Console.WriteLine("{0}", Capit...
mit
C#
072c348bd3ba5e7d689d0bd575dc6f8b5c406f8b
Add RightToLeft property to Language Entity.
AlexGeller/aspnetboilerplate,oceanho/aspnetboilerplate,Nongzhsh/aspnetboilerplate,carldai0106/aspnetboilerplate,beratcarsi/aspnetboilerplate,fengyeju/aspnetboilerplate,carldai0106/aspnetboilerplate,ilyhacker/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,oceanho/aspnetboilerplate,beratcarsi/aspnetboilerplate,oce...
src/Abp/Localization/LanguageInfo.cs
src/Abp/Localization/LanguageInfo.cs
using System.Globalization; namespace Abp.Localization { /// <summary> /// Represents an available language for the application. /// </summary> public class LanguageInfo { /// <summary> /// Code name of the language. /// It should be valid culture code. /// Ex: "en-U...
namespace Abp.Localization { /// <summary> /// Represents an available language for the application. /// </summary> public class LanguageInfo { /// <summary> /// Code name of the language. /// It should be valid culture code. /// Ex: "en-US" for American English, "tr-...
mit
C#
dac2d4e2f0327352fd58cef32be7439cef2e6e3b
Define a mapping of well-known storage names to impls
zyborg/Zyborg.Vault,zyborg/Zyborg.Vault
client/src/Zyborg.Vault.Server/Storage/Standard.cs
client/src/Zyborg.Vault.Server/Storage/Standard.cs
using System; using System.Collections.Generic; namespace Zyborg.Vault.Server.Storage { public static class Standard { public static readonly IReadOnlyDictionary<string, Type> StorageTypes = new Dictionary<string, Type> { ["in-memory"] = typeof(InMemo...
mit
C#
86c90f1bb9e27988fbeb97517f0e1bbec065e98e
add StartInfo
AlexanderYao/ThreadPool
ThreadPool/StartInfo.cs
ThreadPool/StartInfo.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ThreadPool { public class StartInfo { public Int32 MinWorkerThreads { get; set; } public Int32 MaxWorkerThreads { get; set; } public DropEnum DropEnum { get; se...
apache-2.0
C#
2ce8955728639f7ac3276710de0d104e90155d03
move CandidatesController to base Controller folder
KristianMariyanov/VotingSystem,KristianMariyanov/VotingSystem,KristianMariyanov/VotingSystem
VotingSystem.Web/Controllers/CandidatesController.cs
VotingSystem.Web/Controllers/CandidatesController.cs
namespace VotingSystem.Web.Controllers { using System.Linq; using System.Web.Mvc; using AutoMapper.QueryableExtensions; using VotingSystem.Data; using VotingSystem.Web.Areas.User.ViewModels; public class CandidatesController : BaseController { // GET: Candidates ...
mit
C#
942b230a199ff3ec692fd3389d7725f23af0af79
Create FBX_Import.cs
scmcom/unitycode
FBX_Import.cs
FBX_Import.cs
//FBX IMPORT SCALING AUTOMATION //FBX_Import.cs //INSIDE EDITOR FOLDER using UnityEngine; using UnityEditor; using System; //sets FBX Mesh Scale Factor to 1 public class FBX_Import : AssetPostprocessor { public const float importScale= 1.0f; void OnPreprocessModel() { ModelImporter importer = assetImporter as M...
mit
C#
fc2fca4c6199ddc4514dabb4710a7ce2d94668fa
Implement edit music ui
TentacleGuitar/Server,TentacleGuitar/Server
src/TentacleGuitar.Server/Views/System/Edit.cshtml
src/TentacleGuitar.Server/Views/System/Edit.cshtml
@model Music @{ ViewBag.Title = "Upload"; } <div class="with-sidebar-wrapper"> <section id="content-section-1"> <div class="section-container container"> <div class="blog-item-wrapper"> <div class="blog-item-holder"> <div class="gdlr-item gdlr-blog-full"...
mit
C#
728c871c938b421a48903631645cb32cac39c8cd
Add Exceptions folder to RdrLib, and HeaderException
Kingloo/Rdr
RdrLib/Exceptions/HeaderException.cs
RdrLib/Exceptions/HeaderException.cs
using System; using System.Runtime.Serialization; namespace RdrLib.Exceptions { public class HeaderException : Exception { public string UnaddableHeader { get; init; } = string.Empty; public HeaderException() { } public HeaderException(string? message) : base(message) { } public Head...
unlicense
C#
001f1a67d68eedf71821373e52ea54b2c6501af2
add Highlighting
BigBabay/AsyncConverter,BigBabay/AsyncConverter
AsyncConverter/Highlightings/AsyncWaitHighlighting.cs
AsyncConverter/Highlightings/AsyncWaitHighlighting.cs
using AsyncConverter.Highlightings; using AsyncConverter.Settings; using JetBrains.DocumentModel; using JetBrains.ReSharper.Feature.Services.Daemon; using JetBrains.ReSharper.Psi.CSharp; using JetBrains.ReSharper.Psi.CSharp.Tree; using JetBrains.ReSharper.Psi.Tree; [assembly: RegisterConfigurableSeverity(AsyncWaitHigh...
mit
C#
c7fde5bc72f4e2ec68665b245b82bdc971072d58
Update TermCountProcessor.cs
hannan-azam/Orchard,JRKelso/Orchard,ehe888/Orchard,Dolphinsimon/Orchard,AdvantageCS/Orchard,RoyalVeterinaryCollege/Orchard,Praggie/Orchard,hannan-azam/Orchard,SzymonSel/Orchard,RoyalVeterinaryCollege/Orchard,jimasp/Orchard,grapto/Orchard.CloudBust,vairam-svs/Orchard,vairam-svs/Orchard,SzymonSel/Orchard,planetClaire/Orc...
src/Orchard.Web/Modules/Orchard.Taxonomies/Services/TermCountProcessor.cs
src/Orchard.Web/Modules/Orchard.Taxonomies/Services/TermCountProcessor.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Orchard.ContentManagement; using Orchard.Taxonomies.Models; namespace Orchard.Taxonomies.Services { public class TermCountProcessor : ITermCountProcessor { private readonly ITaxonomyService _taxonomyService; ...
using Orchard.ContentManagement; using Orchard.Taxonomies.Models; namespace Orchard.Taxonomies.Services { public class TermCountProcessor : ITermCountProcessor { private readonly ITaxonomyService _taxonomyService; public TermCountProcessor(ITaxonomyService taxonomyService) { _taxonomyS...
bsd-3-clause
C#
6a8b84204285a2125bb253e92139bb892767e367
Create ENB.cs
etormadiv/njRAT_0.7d_Stub_ReverseEngineering
j_csharp/OK/ENB.cs
j_csharp/OK/ENB.cs
//Reversed by Etor Madiv public static string ENB(ref string s) { return System.Convert.ToBase64String( SB(ref s) ); }
unlicense
C#
ed2c07a584abef1adac26cff5fa016d92d20a998
Make TaskHelper static
FakeItEasy/FakeItEasy,thomaslevesque/FakeItEasy,blairconrad/FakeItEasy,blairconrad/FakeItEasy,FakeItEasy/FakeItEasy,adamralph/FakeItEasy,adamralph/FakeItEasy,thomaslevesque/FakeItEasy
src/FakeItEasy/TaskHelper.cs
src/FakeItEasy/TaskHelper.cs
namespace FakeItEasy { using System.Threading.Tasks; internal static class TaskHelper { public static Task<T> FromResult<T>(T result) { var source = new TaskCompletionSource<T>(); source.SetResult(result); return source.Task; } } ...
namespace FakeItEasy { using System.Threading.Tasks; internal class TaskHelper { public static Task<T> FromResult<T>(T result) { var source = new TaskCompletionSource<T>(); source.SetResult(result); return source.Task; } } }
mit
C#
c592f51dbaf3f3b24ecd9f56203aad1b4c6c4298
Create CrowdSSOAttribute.cs
ryanmcdonough/CrowdSSO
CrowdSSOAttribute.cs
CrowdSSOAttribute.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; public class CrowdSSOAttribute { public string Name { get; set; } public object Values { get; set; } }
mit
C#
c5eb84dbfbd528eb6274fba71c1c5425beef3ac0
Create ExtensionProperty.cs
nilbot/furry-sansa,nilbot/furry-sansa,nilbot/furry-sansa
ExtensionProperty.cs
ExtensionProperty.cs
public static class AttachedProperies { public static ConditionalWeakTable<object, Dictionary<string, object>> ObjectCache = new ConditionalWeakTable<object, Dictionary<string, object>>(); public static void SetValue<T>(this T obj, string name, object value) where T : class { Dic...
mit
C#
851fee82d271b25921b98bf7eabe783095de3111
test (Enumerable.Replaced): add unit test for ctor taking index
icarus-consulting/Yaapii.Atoms
tests/Yaapii.Atoms.Tests/Enumerable/ReplacedTest.cs
tests/Yaapii.Atoms.Tests/Enumerable/ReplacedTest.cs
// MIT License // // Copyright(c) 2019 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#
7d94e265bd22be187199cb7295e499184c656b4f
Create Weather.cs
RobinsonMann/UWaterlooApi
weather/Weather.cs
weather/Weather.cs
using Newtonsoft.Json; using UWaterlooApi.ApiRequest; namespace UWaterlooAPI.Weather { /// <summary> Information about the current weather in Waterloo </summary> public class CurrentWeather { /// <summary> "Station's latitude" (Offical Documentation) </summary> [JsonProperty("latitude")] public double Lati...
mit
C#
4ff8670309207f8b2b07ff9e047f39f0d89fa241
Add forgotten fuzzy func
dzibma/FuzzyMath
FuzzyMath/Functions/atan2.cs
FuzzyMath/Functions/atan2.cs
using System; namespace FuzzyMath { public static partial class Functions { public static FuzzyNumber Atan2(FuzzyNumber Y, FuzzyNumber X) { var rotated = Y.Support.Contains(0) && !X.Support.Contains(0); return FuzzyNumber.Map(Y, X, (y, x) => Atan2(y, x, rot...
mit
C#
5934737f1731dec154a445369fab4616609650bc
add ToSlug method
tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web
src/Tugberk.Domain/StringExtensions.cs
src/Tugberk.Domain/StringExtensions.cs
using System; using System.Text; using System.Text.RegularExpressions; namespace Tugberk.Domain { public static class StringExtensions { /// <summary> /// A regular expression for validating slugs. /// Does not allow leading or trailing hypens or whitespace. /// </summary> ...
agpl-3.0
C#
7cb162bca4337d1c2eb16313a0f1a8e497595216
Introduce Interpreter class
DustinCampbell/ifvm
src/ifvm.core/Execution/Interpreter.cs
src/ifvm.core/Execution/Interpreter.cs
using IFVM.Core; namespace IFVM.Execution { public partial class Interpreter { public static uint Execute(Function function) { return 0; } } }
mit
C#
a2f3a812d73b5fd0218bd1b4af0254b4102e53c0
Update version number to 1.0.2
SonarSource-VisualStudio/sonar-scanner-msbuild,duncanpMS/sonar-msbuild-runner,SonarSource-VisualStudio/sonar-scanner-msbuild,jabbera/sonar-msbuild-runner,SonarSource-DotNet/sonar-msbuild-runner,duncanpMS/sonar-msbuild-runner,SonarSource-VisualStudio/sonar-msbuild-runner,SonarSource-VisualStudio/sonar-msbuild-runner,Son...
AssemblyInfo.Shared.cs
AssemblyInfo.Shared.cs
//----------------------------------------------------------------------- // <copyright file="AssemblyInfo.Shared.cs" company="SonarSource SA and Microsoft Corporation"> // Copyright (c) SonarSource SA and Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the projec...
//----------------------------------------------------------------------- // <copyright file="AssemblyInfo.Shared.cs" company="SonarSource SA and Microsoft Corporation"> // Copyright (c) SonarSource SA and Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the projec...
mit
C#
38014f40738ca822713650dd0ba9e480fe59229b
Create Problem113.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem113.cs
Problems/Problem113.cs
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace ProjectEuler.Problems { class Problem113 { private bool IsBouncy(BigInteger number) { if (number < 100) { return false; } string numberS = number.ToString(); b...
mit
C#
24fc0768d5649601f264a07971b50c62d9da82c4
Create run.csx
he3/afunc
a/run.csx
a/run.csx
using System.Net; public static string Run(HttpRequestMessage req, TraceWriter log) { //log.Info($"C# Timer trigger function executed at: {DateTime.Now}"); string data; try { using (var client = new WebClient()) { // test comment.3 data = client.DownloadSt...
mit
C#
efa05be452a9be1d9a6e4abc70be7fa90a3f1dcc
Create StephenOwen.cs
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/StephenOwen.cs
src/Firehose.Web/Authors/StephenOwen.cs
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class StephenOwen : IAmAMicrosoftMVP, IFilterMyBlogPosts { public string FirstName => "Stephen"; pub...
mit
C#
5cf126fe01dd112e669ea95dd661db3f798d1e4a
Create MainMenu.cs
WNxpyromania/Main-Menu
MainMenu.cs
MainMenu.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; namespace MainMenu { public class MainMenu { public string[] Option = ...
bsd-3-clause
C#
8b6a6e8b9c5d93edd42df14e96413bdc49b0a705
Add missed file
karolz-ms/diagnostics-eventflow
AirTrafficControl.Interfaces/Location.cs
AirTrafficControl.Interfaces/Location.cs
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace AirTrafficControl.Interfaces { [DataContract] public class Location { public Location(double latitude, double longitude, double? altitud...
mit
C#
bfce31ad3f5fa5bc82dec2ea74d76e84434c9436
Test that asserts all characters can be displayed properly
verybadcat/CSharpMath
CSharpMath.Rendering.Tests/TestCommandDisplay.cs
CSharpMath.Rendering.Tests/TestCommandDisplay.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; namespace CSharpMath.Rendering.Tests { using BackEnd; public class TestCommandDisplay { public TestCommandDisplay() => typefaces = Fonts.GlobalTypefaces.ToArray(); readonly Typography.OpenFont.Typeface[...
mit
C#
569099388f63f73769b184f7757a99991df914bb
Add missing unit tests for equality.
ZenLulz/Matrix.NET
tests/MatrixUnitTests/EqualityTests.cs
tests/MatrixUnitTests/EqualityTests.cs
using System; using Binarysharp.Maths; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Binarysharp.Tests { [TestClass] public class EqualityTests { [TestMethod] public void EqualityWithIEquatableInterface() { // Arrange IEquatable<Matrix<int>> ...
mit
C#
454b6b312e283ced40d6863552f9440fd39c818a
Add CustomBase32Encoding class.
wiry-net/Wiry.Base32,wiry-net/Wiry.Base32,wiry-net/Base32,wiry-net/Base32
src/Wiry.Base32/CustomBase32Encoding.cs
src/Wiry.Base32/CustomBase32Encoding.cs
// Copyright (c) Dmitry Razumikhin, 2016-2019. // Licensed under the MIT License. // See LICENSE in the project root for license information. using System; namespace Wiry.Base32 { /// <summary> /// Base32 implementation based on specified <see cref="Alphabet"/> and <see cref="PadSymbol"/>. /// </summary>...
mit
C#
7ee902cd44cbfd01678c8ab239181887ce20544f
set up models for new implementation
gregsdennis/Manatee.Trello,gregsdennis/Manatee.Trello
Manatee.Trello/CustomFieldDefinition.cs
Manatee.Trello/CustomFieldDefinition.cs
using System; using System.Collections.Generic; using System.Text; namespace Manatee.Trello { public class CustomFieldDefinition { public string Id { get; set; } public Board Board { get; set; } public string FieldGroup { get; set; } public string Name { get; set; } public Position Position { get; set; } ...
mit
C#
23fe68bbeea43e1d54e95aa0a2048675020d9192
Add APIEndpoints.cs
zigagrcar/Steam2faGenerator,geel9/SteamAuth,r2d2rigo/SteamAuth,fjch1997/SteamAuth
SteamAuth/APIEndpoints.cs
SteamAuth/APIEndpoints.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SteamAuth { public static class APIEndpoints { public static string STEAMAPI_BASE = "https://api.steampowered.com"; public static string TWO_FACTOR_BASE = STEAMAPI_BASE...
mit
C#
bb31166fdb4cb3dc5aeeec35dbb84b15314580a0
Create buscas.cs
matheuslessarodrigues/TPJ1-3003-2017
buscas/buscas.cs
buscas/buscas.cs
using System; namespace TesteBuscas { class Buscas { public static void TesteBuscaLinear() { int[] valores = new int[] { 1, 2, 6, 8, 9, 13, 14, 15 }; int alvo = 13; int indice = -1; int nIteracoes = 0; for( int i = 0; i < valores.Length; i++ ) { nIteracoes++; if( valores[i] == alvo ...
mit
C#
143d62eac8bb77da22c734e294ca4fa273f37269
Make SearchContainer match by word.
DrabWeb/osu-framework,ppy/osu-framework,peppy/osu-framework,paparony03/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,Nabile-Rahmani/osu-framework,Nabile-Rahmani/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,default0/osu-framework,naoey/osu-framework,EVAST9919/osu-fra...
osu.Framework/Graphics/Containers/SearchContainer.cs
osu.Framework/Graphics/Containers/SearchContainer.cs
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using System.Collections.Generic; using System.Linq; using osu.Framework.Extensions.IEnumerableExtensions; namespace osu.Framework.Grap...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using System.Collections.Generic; using System.Linq; namespace osu.Framework.Graphics.Containers { public class SearchContainer : ...
mit
C#
967fc7903d7235870b69458f4be3803d0013a3dd
Add keyboard tab system
rds1983/Myra
src/Myra/Systems/KeyboardTabSystem.cs
src/Myra/Systems/KeyboardTabSystem.cs
using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework.Input; using Myra.Graphics2D.UI; namespace Myra.Systems { public class KeyboardTabSystem : BaseSystem { private KeyboardState _lastState; private readonly IList<Widget> _focusableWidgets = new List<Widget>(); ...
mit
C#
7214acb2105d00d0db1ec11c304064e14c48b33a
make rotate and motion actions.
dkoeb/f-spot,GNOME/f-spot,Yetangitu/f-spot,mono/f-spot,dkoeb/f-spot,mono/f-spot,Yetangitu/f-spot,mans0954/f-spot,Yetangitu/f-spot,nathansamson/F-Spot-Album-Exporter,mans0954/f-spot,NguyenMatthieu/f-spot,mans0954/f-spot,nathansamson/F-Spot-Album-Exporter,GNOME/f-spot,mono/f-spot,Yetangitu/f-spot,mono/f-spot,dkoeb/f-spot...
src/ItemAction.cs
src/ItemAction.cs
/* * ItemAction.cs * * Copyright 2007 Novell Inc. * * Author * Larry Ewing <lewing@novell.com> * * See COPYING for license information. * */ using Gtk; using Mono.Unix; namespace FSpot { public abstract class ItemAction : Action { protected BrowsablePointer item; public ItemAction (BrowsablePointe...
mit
C#
e01e2c3d2be81a7210dbf1a0d0d8255b6bf5f7f1
Add StringBuilder extensions to accept a StringSlice
lunet-io/markdig
src/Markdig/Helpers/StringBuilderExtensions.cs
src/Markdig/Helpers/StringBuilderExtensions.cs
// Copyright (c) Alexandre Mutel. All rights reserved. // This file is licensed under the BSD-Clause 2 license. // See the license.txt file in the project root for more information. using System.Text; namespace Markdig.Helpers { /// <summary> /// Extensions for StringBuilder with <see cref="StringSlice"/> ...
bsd-2-clause
C#
b5386a901765c66306567304d5dd6de39e27141a
add new class for sorting ListView
Coding-Enthusiast/Watch-Only-Bitcoin-Wallet
WatchOnlyBitcoinWallet/SortAdorner.cs
WatchOnlyBitcoinWallet/SortAdorner.cs
using System.ComponentModel; using System.Windows; using System.Windows.Documents; using System.Windows.Media; namespace WatchOnlyBitcoinWallet { /// <summary> /// Adorner class for sorting ListView /// </summary> public class SortAdorner : Adorner { private static Geometry ascGeometry = G...
mit
C#
7f236dd75f277642c5f8eab6b6c6c17bf59b23fd
Support Base64 (2)
codetuner/Arebis.Common
Arebis.Common/Arebis/Numerics/Base64.cs
Arebis.Common/Arebis/Numerics/Base64.cs
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace Arebis.Numerics { /// <summary> /// A numeral system with 64 case-sensitive symbols (0-9, A-Z, a-z, + and /). /// </summary> [Dat...
mit
C#
3ce57cdb4fd4fd556306da158b176847f358c6d4
Add Text (Class).
LuviKunG/LuviTools,LuviKunG/LuviTools
Text/Text.cs
Text/Text.cs
namespace LuviKunG { //This class inspired by Unreal Engine class called "Text". //That can hold the string key of localization and translate into the localized string. /// <summary> /// Class that keep localization key and transfer into localized string. /// Using with M2H Localization plugins. ...
mit
C#
136af5a37bfc7970fda29b26dabb88d9c628ac5f
add #1363 test
ronnyek/linq2db,MaceWindu/linq2db,linq2db/linq2db,linq2db/linq2db,LinqToDB4iSeries/linq2db,LinqToDB4iSeries/linq2db,MaceWindu/linq2db
Tests/Linq/UserTests/Issue1363Tests.cs
Tests/Linq/UserTests/Issue1363Tests.cs
using LinqToDB; using LinqToDB.Mapping; using NUnit.Framework; using System; using System.Linq; namespace Tests.UserTests { /// <summary> /// Test fixes to Issue #1305. /// Before fix fields in derived tables were added first in the column order by <see cref="DataExtensions.CreateTable{T}(IDataContext, string, str...
mit
C#
2ab2f9407e48d97e7bf78c4bd4e14e1693c21021
Add Local class for (de)serializing BI's Local.json
BeowulfStratOps/BSU.Sync
FileTypes/BI/Local.cs
FileTypes/BI/Local.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace BSU.Sync.FileTypes.BI { class Local { [JsonProperty(propertyName: "autodetectionDirectories")] public List<string> AutodetectionDirectories { get...
mit
C#
bb595b80b07e34ce16da96b24376134277d7c714
Create ExampleUsage.cs
wallymathieu/what-is-updated
Tests/ExampleUsage.cs
Tests/ExampleUsage.cs
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using WallyMathieu.Collections; namespace Tests { public class ExampleUsage { private readonly IProductDb db; public class ProductModel { public int Id { get; set; } public strin...
mit
C#
8966c46d4ffa950ab853eb744a5bfdcc2076bb6d
Update tests
cube-soft/Cube.Core,cube-soft/Cube.Core
Tests/MessengerTest.cs
Tests/MessengerTest.cs
/* ------------------------------------------------------------------------- */ /// /// Copyright (c) 2010 CubeSoft, Inc. /// /// 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 /// /// ht...
apache-2.0
C#
794e5c2900869d0244ab848191f8b8f6793271cd
Update NetworkLinkKML to uppercase "Link".
AkshayHarshe/arcgis-runtime-samples-dotnet,Arc3D/arcgis-runtime-samples-dotnet,Esri/arcgis-runtime-samples-dotnet,Esri/arcgis-runtime-samples-dotnet,Esri/arcgis-runtime-samples-dotnet
src/Desktop/ArcGISRuntimeSamplesDesktop/Samples/KmlLayers/NetworklinkKML.xaml.cs
src/Desktop/ArcGISRuntimeSamplesDesktop/Samples/KmlLayers/NetworklinkKML.xaml.cs
using System; using System.Collections.ObjectModel; using System.Windows.Controls; using Esri.ArcGISRuntime.Layers; using Esri.ArcGISRuntime.Geometry; using Esri.ArcGISRuntime.Controls; using System.Windows.Media; using System.Windows; namespace ArcGISRuntime.Samples.Desktop { /// <summary> /// This sam...
using System; using System.Collections.ObjectModel; using System.Windows.Controls; using Esri.ArcGISRuntime.Layers; using Esri.ArcGISRuntime.Geometry; using Esri.ArcGISRuntime.Controls; using System.Windows.Media; using System.Windows; namespace ArcGISRuntime.Samples.Desktop { /// <summary> /// This sam...
apache-2.0
C#
bb4a5550ceddcd4e7784710c3dce5d53d3c6adfd
Add IEventSender
Vanaheimr/Hermod
Hermod/Helpers/IEventSender.cs
Hermod/Helpers/IEventSender.cs
/* * Copyright (c) 2010-2021, Achim Friedland <achim.friedland@graphdefined.com> * This file is part of Vanaheimr Hermod <https://www.github.com/Vanaheimr/Hermod> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtai...
apache-2.0
C#
35007c0abbcfba21f01f582d5401941b058d55a8
Create Problem34.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem34.cs
Problems/Problem34.cs
using System; using System.Collections.Generic; using System.Text; namespace ProjectEuler { class Problem34 { private int upper = 2540162; // 7*9! = 2540160 private int[] f; public Problem34() { // Populate Factorials f = new int[10]; f[0] = 1...
mit
C#
81b5e088a77451ded7bcbc539e9403afa0d2b04b
add disposing behavior.
nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet
WalletWasabi.Fluent/Behaviors/DisposingBehavior.cs
WalletWasabi.Fluent/Behaviors/DisposingBehavior.cs
using System.Reactive.Disposables; using Avalonia; using Avalonia.Xaml.Interactivity; namespace WalletWasabi.Fluent.Behaviors { public abstract class DisposingBehavior<T> : Behavior<T> where T : class, IAvaloniaObject { private CompositeDisposable? _disposables; protected override void OnAttached() { base....
mit
C#
a86eb95450f7b27a6465a8ef00d4a97d7af4cfc8
add keyBoardSln.cs
jackzhenguo/leetcode-csharp
HashTable/HashTable.Lib/KeyBoradRowSln.cs
HashTable/HashTable.Lib/KeyBoradRowSln.cs
/* ============================================================================== * 功能描述:KeyBoradRowSln * 创 建 者:gz * 创建日期:2017/5/9 12:44:32 * ==============================================================================*/ using System; using System.Collections.Generic; using System.Linq; using System.Text; //Gi...
mit
C#
41b258f84436bd4402033238c93c42027463c4f5
fix issue #1 - problem with Location header casing
lovewitty/Open.NAT,lontivero/Open.NAT,mcatanzariti/Open.NAT
Open.Nat/Upnp/DiscoveryResponseMessage.cs
Open.Nat/Upnp/DiscoveryResponseMessage.cs
// // Authors: // Lucas Ontivero lucasontivero@gmail.com // // Copyright (C) 2014 Lucas Ontivero // // 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 // wi...
// // Authors: // Lucas Ontivero lucasontivero@gmail.com // // Copyright (C) 2014 Lucas Ontivero // // 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 // wi...
mit
C#
6517d61ce33ed68e20e434204a35bcd4467d7529
Add Handler.cs back.
eternnoir/NLogging
src/NLogging/Handler.cs
src/NLogging/Handler.cs
namespace NLogging { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class Handler { } }
mit
C#
68d97e2edd0df8c4ad48958c8fd64873f0dad7eb
Add unit test
ericgreenmix/marten,JasperFx/Marten,mysticmind/marten,mysticmind/marten,ericgreenmix/marten,mysticmind/marten,ericgreenmix/marten,JasperFx/Marten,JasperFx/Marten,mysticmind/marten,ericgreenmix/marten,mdissel/Marten,mdissel/Marten
src/Marten.Testing/Bugs/Bug_1151_assert_database_matches_configuration_exception.cs
src/Marten.Testing/Bugs/Bug_1151_assert_database_matches_configuration_exception.cs
using Xunit; namespace Marten.Testing.Bugs { public class Bug_1151_assert_db_matches_config_exception : IntegratedFixture { [Fact] public void check_assert_db_matches_config_for_doc_with_pg_keyword_prop() { StoreOptions(_ => { _.AutoCreateSchemaOb...
mit
C#
d08e93b3fe06531c39f6110884b7c76dabb63a14
add SystemEventServer
signumsoftware/framework,signumsoftware/extensions,MehdyKarimpour/extensions,signumsoftware/extensions,MehdyKarimpour/extensions,AlejandroCano/extensions,AlejandroCano/extensions,signumsoftware/framework
Signum.React.Extensions/Scheduler/SystemEventServer.cs
Signum.React.Extensions/Scheduler/SystemEventServer.cs
using Signum.Entities.UserAssets; using Signum.React.Json; using Signum.Utilities; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Web; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using Signum.Engine.DynamicQuery; using Signum.Engine.Basics...
mit
C#
00b6fc09dfbc04112d5814cf228c06054aa59927
Create Context.cs
drawcode/labs-unity
utility/Context.cs
utility/Context.cs
using UnityEngine; using System.Collections; public class Context { private static volatile Context instance; private static System.Object syncRoot = new System.Object(); public static Context Current { get { if (instance == null) { lock (syncRoot) { if (instance == null) instance = new...
mit
C#
df8e61a7c336aaa9ba17dd209b60820858ff78a9
Add the common LocationName resource name type
jskeet/gax-dotnet,googleapis/gax-dotnet,googleapis/gax-dotnet,jskeet/gax-dotnet
Google.Api.Gax/ResourceNames/LocationName.cs
Google.Api.Gax/ResourceNames/LocationName.cs
/* * Copyright 2019 Google LLC * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file or at * https://developers.google.com/open-source/licenses/bsd */ using gax = Google.Api.Gax; using sys = System; namespace Google.Api.Gax.ResourceNames { /// <summary> ///...
bsd-3-clause
C#
374975eb153df24636661f8d10d2c12df471c60a
Create GetUpdateVersion.cs
afroraydude/First_Unity_Game,afroraydude/First_Unity_Game,afroraydude/First_Unity_Game
Real_Game/Assets/Scripts/GetUpdateVersion.cs
Real_Game/Assets/Scripts/GetUpdateVersion.cs
using UnityEngine; using UnityEngine.UI; using System.Collections; public class WebFileLoader : MonoBehaviour { public WWW update; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } IEnumerator GetURL (string url) { www = new WWW (url); yield retu...
mit
C#
0c394614deeae99c551b74d1b9109bfd646613f6
Revert "bad merge"
akurmi/azure-powershell,zaevans/azure-powershell,CamSoper/azure-powershell,yantang-msft/azure-powershell,ClogenyTechnologies/azure-powershell,stankovski/azure-powershell,devigned/azure-powershell,yantang-msft/azure-powershell,bgold09/azure-powershell,pankajsn/azure-powershell,hungmai-msft/azure-powershell,naveedaz/azur...
src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StartPSJobParameter.cs
src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StartPSJobParameter.cs
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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.apa...
apache-2.0
C#
3d2591c12689aa29c0c7b7abcec40a7be67e5da9
add a very limited glx binding.
dkoeb/f-spot,GNOME/f-spot,mans0954/f-spot,Sanva/f-spot,dkoeb/f-spot,mono/f-spot,nathansamson/F-Spot-Album-Exporter,GNOME/f-spot,GNOME/f-spot,nathansamson/F-Spot-Album-Exporter,NguyenMatthieu/f-spot,Sanva/f-spot,Sanva/f-spot,NguyenMatthieu/f-spot,NguyenMatthieu/f-spot,mono/f-spot,Yetangitu/f-spot,mono/f-spot,dkoeb/f-spo...
src/Glx.cs
src/Glx.cs
namespace FSpot.GdkGlx { public enum GlxAttribute { None = 0, UseGL = 1, BufferSize = 2, Level = 3, Rgba = 4, DoubleBuffer = 5, Stereo = 6, AuxBuffers = 7, RedSize = 8, GreenSize = 9, BlueSize = 10, AlphaSize = 11, DepthSize = 12, StencilSize = 13, AccumRedSize = 14, AccumGreenS...
mit
C#
86cb57a5ff7166278f1d68a302d3501831a422e9
Reorder parameters and fix typo
jabbera/sonar-msbuild-runner,duncanpMS/sonar-msbuild-runner,jessehouwing/sonar-msbuild-runner,SonarSource-VisualStudio/sonar-msbuild-runner,SonarSource-VisualStudio/sonar-scanner-msbuild,dbolkensteyn/sonar-msbuild-runner,HSAR/sonar-msbuild-runner,jango2015/sonar-msbuild-runner,SonarSource-VisualStudio/sonar-scanner-msb...
src/Sonar.FxCopRuleset/Program.cs
src/Sonar.FxCopRuleset/Program.cs
//----------------------------------------------------------------------- // <copyright file="Program.cs" company="SonarSource SA and Microsoft Corporation"> // (c) SonarSource SA and Microsoft Corporation. All rights reserved. // </copyright> //------------------------------------------------------------------...
//----------------------------------------------------------------------- // <copyright file="Program.cs" company="SonarSource SA and Microsoft Corporation"> // (c) SonarSource SA and Microsoft Corporation. All rights reserved. // </copyright> //------------------------------------------------------------------...
mit
C#
b6df5dfea92d702e5223484f63acf1782c004c64
Add tests for ToString()
modulexcite/nunit,akoeplinger/nunit,jeremymeng/nunit,modulexcite/nunit,pflugs30/nunit,NikolayPianikov/nunit,akoeplinger/nunit,appel1/nunit,Therzok/nunit,elbaloo/nunit,ArsenShnurkov/nunit,appel1/nunit,JustinRChou/nunit,ChrisMaddock/nunit,akoeplinger/nunit,Suremaker/nunit,modulexcite/nunit,jhamm/nunit,agray/nunit,pcalin/...
src/tests/Constraints/ToStringTests.cs
src/tests/Constraints/ToStringTests.cs
// **************************************************************** // Copyright 2010, Charlie Poole // This is free software licensed under the NUnit license. You may // obtain a copy of the license at http://nunit.org // **************************************************************** using System; namespace NUnit...
mit
C#
75f8250f660f8a93c56d2bac6f412465baa9a7bc
Create LoadManager.cs
Gianxs/CitiesSkylineFavoriteCimsMod
LoadManager.cs
LoadManager.cs
//using ColossalFramework; using ColossalFramework.UI; //using ColossalFramework.IO; //using ColossalFramework.Globalization; //using ColossalFramework.DataBinding; //using ColossalFramework.Importers; using ICities; using UnityEngine; //using UnityEngine.UI; using System; //using System.Text; using System.Collections....
mit
C#
7259407fc3c2aa2bf9af05d200571149f2395825
Create MainWindow.xaml.cs
doplusplus/PointSimulator,doplusplus/Physics_Simulator,doplusplus/Physics_Simulator,doplusplus/PointSimulator,doplusplus/Physics_Simulator
GUI/MainWindow.xaml.cs
GUI/MainWindow.xaml.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Globalization; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input...
mit
C#
405bdb2d1537b60b32a0e58200e4908c0d727d9e
Add History
axazeano/ImageEditor
ImageEditor/History.cs
ImageEditor/History.cs
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ImageEditor { class History { struct HistoryItem { public Bitmap imageState; public string description; publi...
mit
C#
902697378ecebd3c3109cd1e2c81cb9c05028fd6
Add Utils.cs.
sqc1999/LxRunOffline
LxRunOffline/Utils.cs
LxRunOffline/Utils.cs
using System; using System.Security.Principal; namespace LxRunOffline { static class Utils { static string promptAnswer = Environment.GetEnvironmentVariable("LXRUNOFFLINE_PROMPT_ANSWER"); static void WriteLine(string output, ConsoleColor color) { Console.ForegroundColor = color; Console.Error.Wri...
mit
C#
360268c1168724676c60c5c61064d2a485c57bc1
Simplify path
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
LeetCode/simplify_path.cs
LeetCode/simplify_path.cs
using System; using System.Collections.Generic; using System.Linq; static class Program { static String SimplifyPath(this String path) { Stack<String> stack = new Stack<String>(); foreach (String element in path.Split(new char[] {'/'}, StringSplitOptions.RemoveEmptyEntries)) { switch (e...
mit
C#
001b6cd0e9458c1207129edc7c417ece26ca0413
Create CheckNums.cs
michaeljwebb/Algorithm-Practice
Coderbyte/CheckNums.cs
Coderbyte/CheckNums.cs
using System; class MainClass { public static int CheckNums(int num1, int num2) { if(num2 > num1){ Console.WriteLine("true"); } else if(num1 == num2){ num1 = -1; } else if(num2 < num1){ Console.WriteLine("false"); } return num1; } static void Main() { /...
mit
C#
ec4b52f222dc5c08ff91a923a347ea174b8a154a
Add in temp 15EA/BlockSetCharacterDataEventPayloadHandler
HelloKitty/Booma.Proxy
src/Booma.Proxy.Client.Unity.Ship/Handlers/Command/Bursting/GameSetCharacterDataEventPayloadHandler.cs
src/Booma.Proxy.Client.Unity.Ship/Handlers/Command/Bursting/GameSetCharacterDataEventPayloadHandler.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Common.Logging; using GladNet; namespace Booma.Proxy { [SceneTypeCreate(GameSceneType.Pioneer2)] public sealed class GameSetCharacterDataEventPayloadHandler : GameMessageHandler<BlockSetCharacte...
agpl-3.0
C#
c9982e980bceb3386d08a3fab43a065a76603d06
add csharp example file, Load.cs, which read data from files
geektoni/shogun,Saurabh7/shogun,sorig/shogun,lisitsyn/shogun,besser82/shogun,geektoni/shogun,shogun-toolbox/shogun,besser82/shogun,shogun-toolbox/shogun,karlnapf/shogun,shogun-toolbox/shogun,besser82/shogun,lisitsyn/shogun,karlnapf/shogun,Saurabh7/shogun,karlnapf/shogun,lisitsyn/shogun,lambday/shogun,sorig/shogun,geekt...
examples/undocumented/csharp_modular/Load.cs
examples/undocumented/csharp_modular/Load.cs
using System; using System.IO; public class Load { public static string[] read_file(string file) { StreamReader r = null; string[] split = null; try { r = new StreamReader(file); string contents = r.ReadToEnd().Trim(); split = System.Text.RegularExpressions.Regex.Split(contents, "\\s+", System.Text.Reg...
bsd-3-clause
C#
b374e020c481ec48c330cc7a60f6454f3323382c
Add header example
RapidScada/scada,RapidScada/scada,RapidScada/scada,RapidScada/scada,southasia/scada,southasia/scada,southasia/scada
header.cs
header.cs
/* * Copyright 2014 Mikhail Shiryaev * * 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 ag...
apache-2.0
C#
00dee4c08e5c40678359efe76aa12904796702f9
Update SecurityMarginModelTests for Travis cast error
JKarathiya/Lean,QuantConnect/Lean,Jay-Jay-D/LeanSTP,AlexCatarino/Lean,jameschch/Lean,redmeros/Lean,AlexCatarino/Lean,redmeros/Lean,redmeros/Lean,StefanoRaggi/Lean,QuantConnect/Lean,AnshulYADAV007/Lean,AnshulYADAV007/Lean,QuantConnect/Lean,jameschch/Lean,jameschch/Lean,AnshulYADAV007/Lean,QuantConnect/Lean,AnshulYADAV00...
Tests/Common/Securities/SecurityMarginModelTests.cs
Tests/Common/Securities/SecurityMarginModelTests.cs
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * 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...
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * 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...
apache-2.0
C#
d8079dec269d332ed9692bd4e0c88ac1ba4e5bb7
Fix on Content Picker Field rendering (#7631)
LaserSrl/Orchard,LaserSrl/Orchard,LaserSrl/Orchard,abhishekluv/Orchard,tobydodds/folklife,yersans/Orchard,IDeliverable/Orchard,grapto/Orchard.CloudBust,Dolphinsimon/Orchard,li0803/Orchard,jersiovic/Orchard,aaronamm/Orchard,hbulzy/Orchard,Dolphinsimon/Orchard,LaserSrl/Orchard,Fogolan/OrchardForWork,jimasp/Orchard,Lombiq...
src/Orchard.Web/Modules/Orchard.ContentPicker/Views/EditorTemplates/Fields/ContentPickerLocalization.Edit.cshtml
src/Orchard.Web/Modules/Orchard.ContentPicker/Views/EditorTemplates/Fields/ContentPickerLocalization.Edit.cshtml
@model Orchard.ContentPicker.ViewModels.ContentPickerFieldViewModel @using Orchard.ContentPicker.Settings; @using Orchard.Localization.Models; @using Orchard.ContentManagement; @{ Script.Require("jQuery").AtFoot(); var settings = Model.Field.PartFieldDefinition.Settings.GetModel<ContentPickerFieldLocalizatio...
@model Orchard.ContentPicker.ViewModels.ContentPickerFieldViewModel @using Orchard.ContentPicker.Settings; @using Orchard.Localization.Models; @using Orchard.ContentManagement; @{ Script.Require("jQuery").AtFoot(); var settings = Model.Field.PartFieldDefinition.Settings.GetModel<ContentPickerFieldLocalizatio...
bsd-3-clause
C#
570d7c8f03b745721a567df0f589e326b97cd9d2
Create JSONHelper.cs
poostwoud/discovery
src/Library/Transformation/JSONHelper.cs
src/Library/Transformation/JSONHelper.cs
using System.IO; using System.Runtime.Serialization.Json; using System.Xml; /// <summary> /// Static class containing helper methods to work with JSON objects. /// Source: http://ashwinjp.wordpress.com/2011/10/11/convert-json-objects-to-xml/ /// </summary> namespace Discovery.Library.Transformation { public static cl...
mit
C#
55cc0751bafb98ad5aba2041f9af84adb5b729f9
Create HTTPSUpload.cs
diev/HTTPSUpload
HTTPSUpload.cs
HTTPSUpload.cs
// Copyright (c) 2016 Dmitrii Evdokimov. All rights reserved. // Licensed under the Apache License, Version 2.0. // Source https://github.com/diev/HTTPSUpload using System; using System.Collections.Specialized; using System.IO; using System.Net; using System.Text; namespace HTTPSUpload { class Program { ...
apache-2.0
C#
a667d3cc4354f91cf957429e4311647d448d1611
add AppConfig.cs
RaulVan/FMRadioPro
FMRadioPro/FMRadioPro/AppConfig.cs
FMRadioPro/FMRadioPro/AppConfig.cs
using System; using System.Collections.Generic; using System.IO.IsolatedStorage; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FMRadioPro { public class AppConfig { /// <summary> /// 当前播放曲目 /// </summary> public static int isoCurrentTr...
mit
C#
9a5410e5d235431cc8f2394cd1d1567f9a38a676
Add basic test coverage
ppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu,smoogipoo/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,UselessToucan/osu,peppy/osu-new,smoogipoo/osu,peppy/osu,ppy/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu
osu.Game.Tests/Database/TestRealmKeyBindingStore.cs
osu.Game.Tests/Database/TestRealmKeyBindingStore.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; using System.Collections.Generic; using System.IO; using System.Linq; using NUnit.Framework; using osu.Framework.Input; using osu.Framework.Input.Bindings; ...
mit
C#
6e49bed15f8d6c8635696989842c985ecbc0436b
Create Ptice.cs
SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming
Kattis-Solutions/Ptice.cs
Kattis-Solutions/Ptice.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ptice { class Program { static string genadrian(int n) { string res = ""; for (int i = 1; i <= n; i++) { if (i % 3 ==...
mit
C#
941c4c80f0d25b34808d19adc7f8556107a88718
Reduce running time of KeepAlive_LongDelayBetweenSendReceives_Succeeds test
parjong/corefx,Jiayili1/corefx,ViktorHofer/corefx,ericstj/corefx,wtgodbe/corefx,ptoonen/corefx,fgreinacher/corefx,zhenlan/corefx,ravimeda/corefx,ravimeda/corefx,mmitche/corefx,axelheer/corefx,fgreinacher/corefx,ViktorHofer/corefx,twsouthwick/corefx,seanshpark/corefx,mmitche/corefx,tijoytom/corefx,shimingsg/corefx,twsou...
src/System.Net.WebSockets.Client/tests/KeepAliveTest.cs
src/System.Net.WebSockets.Client/tests/KeepAliveTest.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.Collections.Generic; using System.Net.Test.Common; using System.Threading; using System.Threading.Tasks...
// 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.Collections.Generic; using System.Net.Test.Common; using System.Threading; using System.Threading.Tasks...
mit
C#
103e94639e7e37359b4a565ec9e51b582e0c1df8
add Bytes.Extensions
acple/ParsecSharp
ParsecSharp/Parser/Bytes.Extensions.cs
ParsecSharp/Parser/Bytes.Extensions.cs
using System.IO; using System.Runtime.CompilerServices; namespace ParsecSharp { public static class Bytes { [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Result<byte, T> Parse<T>(this Parser<byte, T> parser, Stream source) => parser.Parse(new ByteStream(source)); ...
mit
C#
1cd6fe658ca68b4bfb4875712e13a945c3c744e5
Create Resources.cs
RobinsonMann/UWaterlooApi
Resources/Resources.cs
Resources/Resources.cs
using System.Collections.Generic; using Newtonsoft.Json; using UWaterlooApi.ApiRequest; namespace UWaterlooAPI.Resources { /// <summary> /// todo /// </summary> public class Tutor { /// <summary> "Subject acronym" (Offical Documentation) </summary> public string Subject { get; set; } /// <summary> "Course c...
mit
C#
b1e5bb3a1f98412b684b51f703c07259b1d08ca7
Create HttpClientUtilTests.cs
charlenni/Mapsui,pauldendulk/Mapsui,charlenni/Mapsui
Tests/Mapsui.Tests/Providers/Wfs/HttpClientUtilTests.cs
Tests/Mapsui.Tests/Providers/Wfs/HttpClientUtilTests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Mapsui.Providers.Wfs.Utilities; using NUnit.Framework; namespace Mapsui.Tests.Providers.Wfs { [TestFixture] public class HttpClientUtilTests { [Test] public void CloseD...
mit
C#
3ea5ca5e471a8dd144b5a70e0081f3a4e47233d6
Create main void
marios-tsiliakos/UnblockGHLibraries
src/main.cs
src/main.cs
private void RunScript(bool Run, bool Add) { #region checks if (Component.Params.Input[0].VolatileDataCount == 0) { Print("Connect a button component to the run input."); } if (Component.Params.Input[1].VolatileDataCount == 0) { Print("Default value is set to False / Connect a t...
mit
C#
c0ebcef7d2c148aad7250a9f1fd1f4bbd6f93f12
Add files via upload
EvolveVr/Hydrogen
Assets/Scipts/Items/Magazine.cs
Assets/Scipts/Items/Magazine.cs
using UnityEngine; using NewtonVR; using Hydrogen; using System.Collections; //isEquipped from the Magazines perspective means the Magazine is inside a gun public class Magazine : NVRInteractableItem { public MagazineType magazineType; public Bullet bullet; BulletManager bulletPools; stri...
mit
C#
e5cee0812fb6d9065790691edac352d0125d8c87
Create PlusMinus.cs
costincaraivan/hackerrank,costincaraivan/hackerrank
algorithms/warmup/PlusMinus.cs
algorithms/warmup/PlusMinus.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { static void Main(String[] args) { int n = Convert.ToInt32(Console.ReadLine()); string[] arr_temp = Console.ReadLine().Split(' '); int[] arr = Array.ConvertAll(arr_temp,Int32.Parse); ...
mit
C#
14c55350166f383b58e7678f0fdfc625ec20ee3f
Add RFC 7748 test vectors
ektrah/nsec
tests/Rfc/X25519Tests.cs
tests/Rfc/X25519Tests.cs
using System; using NSec.Cryptography; using Xunit; namespace NSec.Tests.Rfc { public static class X25519Tests { public static readonly TheoryData<string, string, string> Rfc7748TestVectors = new TheoryData<string, string, string> { { "a546e36bf0527c9d3b16154b82465edd62144c0ac1fc5a1...
mit
C#
9e375aa8545c48f8df2d0faadcbabbec52901860
Test Commit
chocoa/WDMTabForm
src/Program.cs
src/Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace WindowsFormsApplication1 { static class Program { /// <summary> /// アプリケーションのメイン エントリ ポイントです。 /// </summary> [STAThread] static void Main() { App...
mit
C#
1b18487cde28bbd5e9479edb19372504b5f0aa33
Add missing Logger default registration.
peeedge/mobile,eatskolnikov/mobile,ZhangLeiCharles/mobile,peeedge/mobile,ZhangLeiCharles/mobile,eatskolnikov/mobile,masterrr/mobile,masterrr/mobile,eatskolnikov/mobile
Phoebe/Services.cs
Phoebe/Services.cs
using System; using Toggl.Phoebe.Data; using Toggl.Phoebe.Data.Json.Converters; using Toggl.Phoebe.Net; using XPlatUtils; namespace Toggl.Phoebe { public static class Services { public static void Register () { ServiceContainer.Register<MessageBus> (); ServiceContainer....
using System; using Toggl.Phoebe.Data; using Toggl.Phoebe.Data.Json.Converters; using Toggl.Phoebe.Net; using XPlatUtils; namespace Toggl.Phoebe { public static class Services { public static void Register () { ServiceContainer.Register<MessageBus> (); ServiceContainer....
bsd-3-clause
C#
1abcc52646ab76a6bf3f672202de35cc285b3ae1
Create console-oef6166.cs
Tjoosten/School,Tjoosten/School
Programmatuur/csharp/console-oef6166.cs
Programmatuur/csharp/console-oef6166.cs
apache-2.0
C#
6b6fc4818b0c8fbe1d201497c416dd2e724038e1
Set HTTP status code. Closes #114
jerriep/auth0.net,auth0/auth0.net,auth0/auth0.net,jerriep/auth0.net,jerriep/auth0.net
src/Auth0.Core/Exceptions/ApiException.cs
src/Auth0.Core/Exceptions/ApiException.cs
using System; using System.Net; using Auth0.Core; namespace Auth0.Core.Exceptions { /// <summary> /// Represents errors that occur when making API calls. /// </summary> public class ApiException : Exception { /// <summary> /// The exception payload from the response ///...
using System; using System.Net; using Auth0.Core; namespace Auth0.Core.Exceptions { /// <summary> /// Represents errors that occur when making API calls. /// </summary> public class ApiException : Exception { /// <summary> /// The exception payload from the response ///...
mit
C#
86613e44fb3a81a35d24935517cfe513e05c6f99
Add Blob Moving routine
lerthe61/Snippets,lerthe61/Snippets
Azure/Storage/AzureBlobExtensions.cs
Azure/Storage/AzureBlobExtensions.cs
using System; using System.Threading.Tasks; using Microsoft.Azure.Storage.Blob; namespace Common.Utils { public static class AzureBlobExtensions { /// <summary> /// Move sourceBlob into destBlob /// </summary> /// <param name="sourceBlob"></param> /// <param...
unlicense
C#
ed00599c6f04d5282ee4459dacb8495d65104a82
Add ReplicationStatus
carbon/Amazon
src/Amazon.S3/Models/ReplicationStatus.cs
src/Amazon.S3/Models/ReplicationStatus.cs
namespace Amazon.S3 { public enum ReplicationStatus : byte { None = 0, Pending = 1, Completed = 2, Failed = 3, Replica = 4 } }
mit
C#
783c449dea0f53637e3c1883afbd764fed5a74d7
Add ColumnEqualityComparer.cs
Ackara/Daterpillar
src/Daterpillar.Core/Equality/ColumnEqualityComparer.cs
src/Daterpillar.Core/Equality/ColumnEqualityComparer.cs
using System.Collections.Generic; namespace Gigobyte.Daterpillar.Equality { public class ColumnEqualityComparer : IEqualityComparer<Column> { public bool Equals(Column x, Column y) { if (x == null && y == null) return true; else if (x == null || y == null) return false;...
mit
C#
221550a08d68b558f99940ae0c32560728746efc
Test illustrating a way to find the composed character sequences. They are the indexes missing from the array.
verybadcat/CSharpMath
CSharpMath.Tests/ComposedCharacterTests.cs
CSharpMath.Tests/ComposedCharacterTests.cs
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace CSharpMath.Tests { public class ComposedCharacterTests { [Fact] public void TestCharacterRanges() { string foo = "\u0104\u0...
mit
C#
63ef1e0428e51b6079e126aa294ab371da917fd8
Check in missing ICompilerResults
jameswiseman76/JsGoogleCompile,jameswiseman76/JsGoogleCompile,jameswiseman76/JsGoogleCompile
JsGoogleCompile/JSON/ICompilerResults.cs
JsGoogleCompile/JSON/ICompilerResults.cs
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ICompilerResults.cs" company="www.jameswiseman.com"> // This license governs use of the accompanying software. If you use the software, you // accept this license. If you do not a...
mit
C#
38a319c9274b9d87842f1458ef9274e48f10531d
add validator
WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common
src/WeihanLi.Common/Services/IValidator.cs
src/WeihanLi.Common/Services/IValidator.cs
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace WeihanLi.Common.Services { public interface IValidator { bool TryValidate(object value, out ICollection<ValidationResult> validationResults); } public class DataAnnotationValidator : IValidator { ...
mit
C#
8076ef0a3ac54a5c571e0b83a15f5a85365d1e7e
Create Exercise8B.cs
lizaamini/CSharpExercises
Sheet-8/Exercise8B.cs
Sheet-8/Exercise8B.cs
mit
C#
4de4cd86bdfe81ea42b1b0c6520d959c18a14b2a
Move solvers to KMLib.SVMSolver namespace
ksirg/KMLib,ksirg/KMLib,ksirg/KMLib,ksirg/KMLib
KMLib/SVMSolvers/Solver.cs
KMLib/SVMSolvers/Solver.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using KMLib.Kernels; namespace KMLib.SVMSolvers { /// <summary> /// Represents base class for different binary clasification SVM solvers /// </summary> /// <typeparam name="TProblemElement"></typeparam> public a...
mit
C#
53e119c4f93848c72a9f87b173d495f16dd61e45
Add initial GUI version
Vultour/music-tracker
MusicTracker/MusicTracker/GUI/MusicTrackerListViewItem.cs
MusicTracker/MusicTracker/GUI/MusicTrackerListViewItem.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using MusicTracker.Core; namespace MusicTracker.GUI { class MusicTrackerListViewItem : ListViewItem { public event EventHandler Deleting; public Mu...
apache-2.0
C#
d5327c931dba58334140857ec7892e172c0e550e
test users repository
HristoKolev/TrackTV,HristoKolev/TrackTV,HristoKolev/TrackTV,HristoKolev/TrackTV,HristoKolev/TrackTV
test/TrackTv.Services.Data.Tests/UsersRepositoryTest.cs
test/TrackTv.Services.Data.Tests/UsersRepositoryTest.cs
namespace TrackTv.Services.Data.Tests { public class UsersRepositoryTest : BaseRepositoryTest { } }
mit
C#
8701152ad16c55e6b53fd48873760abfd580d758
Add StringEnum file
twilio/twilio-csharp
Twilio/Types/StringEnum.cs
Twilio/Types/StringEnum.cs
namespace Twilio.Types { public abstract class StringEnum { private string _value; protected StringEnum() {} protected StringEnum(string value) { _value = value; } public void FromString(string value) { _value = value; } public override string ToStri...
mit
C#
e59c586a3ef57d92b6dc090439078fc19bbe82a1
Create PostProcessingLibrary.cs
GaZ3ll3/DataFilterGenericLibrary
PostProcessingLibrary.cs
PostProcessingLibrary.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataFilterGenericLibrary { public class PostProcessLibrary { public static double snr(ref double[] signal, ref double[] noise) { double sr = rssq(ref signal)...
mit
C#
718361f0172a0b3a1085e139c5cfcddb652b5774
Create Problem70.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem70.cs
Problems/Problem70.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProjectEuler.Problems { class Problem70 { int upper = 10000000; private bool ArePermutations(long n1, long n2) { string n1s = n1.ToString(); string n2s = n2.ToString(...
mit
C#