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
fcad1dcdb7b7766dc412c291d623478093652ff5
Add KeyHandler with helper methods
tsolarin/readline,tsolarin/readline
src/ReadLine/KeyHandler.cs
src/ReadLine/KeyHandler.cs
using System; using System.Text; using System.Collections.Generic; namespace ReadLine { internal class KeyHandler { private int _cursorPos; private int _cursorLimit; private StringBuilder _text; private ConsoleKeyInfo _keyInfo; private Dictionary<string, Action> _keyActi...
mit
C#
1534e3ebcf5754a22ad9ea3139732feee27aa1e7
add comments
BurtBiel/autorest,stankovski/AutoRest,amarzavery/AutoRest,colemickens/autorest,sergey-shandar/autorest,BretJohnson/autorest,dsgouda/autorest,ljhljh235/AutoRest,AzCiS/autorest,lmazuel/autorest,dsgouda/autorest,vulcansteel/autorest,stankovski/AutoRest,John-Hart/autorest,sergey-shandar/autorest,ljhljh235/AutoRest,BurtBiel...
AutoRest/Generators/AcceptanceTests/NugetPackageTest/PackageTests.cs
AutoRest/Generators/AcceptanceTests/NugetPackageTest/PackageTests.cs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Fixtures.Bodynumber; using Microsoft.Rest.Generator.CSharp.Tests; using Newtonsoft.Json; using System; using Xunit; using Xunit....
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Fixtures.Bodynumber; using Microsoft.Rest.Generator.CSharp.Tests; using Newtonsoft.Json; using System; using Xunit; using Xunit....
mit
C#
094d82d22aef92b9dbe166f84b9302409f6f7bbf
Create Function.cs
irtezasyed007/CSC523-Game-Project
Algorithms/Function.cs
Algorithms/Function.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace CSC_523_Game { class Function { //Two representations of the function private string function; private string postfix; private List<Variable> variables = new...
mit
C#
889dac40d6532f14395a80bb13be03d770db0355
Create PasswordPermutation.cs
Zephyr-Koo/sololearn-challenge
PasswordPermutation.cs
PasswordPermutation.cs
using System; using System.Collections.Generic; using System.Linq; // https://www.sololearn.com/Discuss/704469/?ref=app namespace SoloLearn { class Program { static readonly Dictionary<char, string> DICTIONARY = new Dictionary<char, string> { { 'p', "pP" }, { 'a', "aA@...
apache-2.0
C#
932242f950374c988bb6b553a03e27fc5345c1a9
Add Vector3 base
Amathlog/rl-unity,Amathlog/rl-unity,Amathlog/rl-unity,Amathlog/rl-unity,Amathlog/rl-unity
simulator/Assets/Scripts/Vector3_base.cs
simulator/Assets/Scripts/Vector3_base.cs
using UnityEngine; public class Vector3_base { public float x { get; set; } public float y { get; set; } public float z { get; set; } public Vector3_base(Vector3 v) { x = v.x; y = v.y; z = v.z; } }
mit
C#
d272b924c7341230a02853c67b4794ac86657ec3
add ReflectionHelper
JeffreySu/WeiXinMPSDK,wanddy/WeiXinMPSDK,down4u/WeiXinMPSDK,JeffreySu/WeiXinMPSDK,lishewen/WeiXinMPSDK,jiehanlin/WeiXinMPSDK,lishewen/WeiXinMPSDK,mc7246/WeiXinMPSDK,lishewen/WeiXinMPSDK,jiehanlin/WeiXinMPSDK,mc7246/WeiXinMPSDK,wanddy/WeiXinMPSDK,JeffreySu/WeiXinMPSDK,wanddy/WeiXinMPSDK,down4u/WeiXinMPSDK,jiehanlin/WeiX...
src/Senparc.Weixin/Senparc.Weixin/Helpers/Methods/ReflectionHelper.cs
src/Senparc.Weixin/Senparc.Weixin/Helpers/Methods/ReflectionHelper.cs
#region Apache License Version 2.0 /*---------------------------------------------------------------- Copyright 2017 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd. 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 ...
apache-2.0
C#
ffe5855da77f7756f98c0dfa900aa154882e7321
Add UploadPartRequestTests test
carbon/Amazon
src/Amazon.S3.Tests/Actions/UploadPartRequest.cs
src/Amazon.S3.Tests/Actions/UploadPartRequest.cs
using System; using Xunit; namespace Amazon.S3.Models.Tests { public class UploadPartRequestTests { [Fact] public void Construct() { var a = new UploadPartRequest("s3.amazon.com", "bucket", "key", "uploadId", 1); Assert.Equal(new Uri("https://s3.ama...
mit
C#
7e8ab236d48a1a89ecc2cb6781d19fd76ea89454
initialize model sample model
Colectica/cogs,clementpeihengtan/cogs,kevinchristianson/cogs
Cogs.Publishers/ModelInitializer.cs
Cogs.Publishers/ModelInitializer.cs
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace Cogs.Publishers { public class ModelInitializer { public string Dir { get; set; } public void Create() { if (Directory.Exists(Dir)) { th...
mit
C#
7b3eae64047a87be20f032341e589270b4c51f30
Create Metaprogramming.cs
SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming
Kattis-Solutions/Metaprogramming.cs
Kattis-Solutions/Metaprogramming.cs
using System; using System.Collections; using System.Collections.Generic; namespace Metaprogramming { class Program { static void Main(string[] args) { Dictionary<string, int> dsi = new Dictionary<string, int>(); string xs = Console.ReadLine(); while (!string...
mit
C#
ec5161e24c44a36eb98a8c6cd0c69e432725b8dd
Add xmldoc for WeakList.
smoogipooo/osu-framework,naoey/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,Tom94/osu-framework,peppy/osu-framework,paparony03/osu-framework,Nabile-Rahmani/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,naoey/osu-framework,ZLima12/osu-framework,EVAST9919/osu-f...
osu.Framework/Lists/WeakList.cs
osu.Framework/Lists/WeakList.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; namespace osu.Framework.Lists { /// <summary> /// A list maintaining weak reference of objec...
// 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; namespace osu.Framework.Lists { public class WeakList<T> : List<WeakReference<T>> where ...
mit
C#
7b9769a41efaaedd5dd7f65c8af46e2a1defdaaf
fix Status Details property change from authentication to authenticated
watson-developer-cloud/dotnet-standard-sdk,watson-developer-cloud/dotnet-standard-sdk
src/IBM.Watson.Discovery.v1/Model/StatusDetails.cs
src/IBM.Watson.Discovery.v1/Model/StatusDetails.cs
/** * (C) Copyright IBM Corp. 2021. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/** * (C) Copyright IBM Corp. 2021. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
apache-2.0
C#
1777a6d24abffb933105e6fdd148368a4c841d50
Add attribute to retry flaky tests on normal CI runs
ppy/osu,peppy/osu,peppy/osu,ppy/osu,peppy/osu,ppy/osu
osu.Game/Tests/FlakyTestAttribute.cs
osu.Game/Tests/FlakyTestAttribute.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. #nullable disable using System; using NUnit.Framework; namespace osu.Game.Tests { /// <summary> /// An attribute to mark any flaky tests. /// Will add a retr...
mit
C#
41ecf4e39480ff82102a3906d4b33cbfb52a676a
Add rando
puckipedia/CardsAgainstIRC
CardsAgainstIRC3/Game/Bots/Rando.cs
CardsAgainstIRC3/Game/Bots/Rando.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CardsAgainstIRC3.Game.Bots { [Bot("rando")] public class Rando : IBot { public GameManager Manager { get; private set; } pu...
mit
C#
bfc54ed825b468478a3d69928e5924255ca2b735
Update window structure
hifi/q2online
Launcher/UpdateWindow.cs
Launcher/UpdateWindow.cs
using System; using System.Windows.Forms; using System.Collections.Generic; using System.Drawing; namespace Launcher { public class UpdateWindow : Form { public UpdateWindow() { Text = "Updating " + Configuration.Instance.Name; Icon = Configuration.Instance.Icon; ...
mit
C#
82fd504ae5fad0ed9089c76a43fde20f473ef62f
Create Global.aspx.cs
fatmagazaile/Projet
Global.aspx.cs
Global.aspx.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace MvcMeublatexApp { // Note: For instructions on enabling IIS6 or IIS7 classic mode, // visit http://go.microsoft.com/?LinkId=9394801 public class MvcApplication : ...
apache-2.0
C#
cce156aedf83249d2b1152315202de1a66136bf0
Add ReferenceEqualityComparer to Common
alexperovich/corefx,alphonsekurian/corefx,elijah6/corefx,alphonsekurian/corefx,Ermiar/corefx,stone-li/corefx,twsouthwick/corefx,lggomez/corefx,JosephTremoulet/corefx,Ermiar/corefx,ViktorHofer/corefx,lggomez/corefx,richlander/corefx,alphonsekurian/corefx,Jiayili1/corefx,stone-li/corefx,JosephTremoulet/corefx,rjxby/coref...
src/Common/src/System/Collections/Generic/ReferenceEqualityComparer.cs
src/Common/src/System/Collections/Generic/ReferenceEqualityComparer.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.Runtime.CompilerServices; namespace System.Collections.Generic { internal sealed class ReferenceEq...
mit
C#
9ea8220a0592afd923c6879cd4f5bcacb4a0a401
Create XSLHelper.cs
poostwoud/discovery
src/Library/Transformation/XSLHelper.cs
src/Library/Transformation/XSLHelper.cs
using System; using System.Xml; using System.Xml.XPath; using System.Xml.Xsl; namespace Discovery.Library.Transformation { public static class XSLHelper { /// <summary> /// Transforms a XML file to another XML file using a XSL transformation. /// </summary> /// <remarks> /// Source: http://www.csharpfriend...
mit
C#
f14c6053dbf7e8bd1ab4c876c2779c77ea8c1f15
Add HeartBeat class.
jcheng31/AgentIntervals
HeartBeat.cs
HeartBeat.cs
using System; using System.Threading; using Microsoft.SPOT; namespace AgentIntervals { public delegate void HeartBeatEventHandler(object sender, EventArgs e); public class HeartBeat { private Timer _timer; private int _period; public event HeartBeatEventHandler On...
mit
C#
7dbe69296e76a2b29ef4a31c825a2d4d372ccbef
Add IDeepCloneable Interface
BenVlodgi/VMFParser
VMFParser/IDeepCloneable.cs
VMFParser/IDeepCloneable.cs
namespace VMFParser { public interface IDeepCloneable<T> where T : IDeepCloneable<T> { T DeepClone(); } }
mit
C#
f918d34cfa0b5c1d4d3a4a4ae248e4d974c0016c
Add enumeration: SCardError
Archie-Yang/PcscDotNet
src/PcscDotNet/SCardError.cs
src/PcscDotNet/SCardError.cs
namespace PcscDotNet { public enum SCardError : uint { Successs = 0 } }
mit
C#
e355b0e0c2fffe869da9c63cb53a4aeb28d2a390
Create fps_demo_c#.cs
ScreenBasedSimulator/ScreenBasedSimulator2,ScreenBasedSimulator/ScreenBasedSimulator2,ScreenBasedSimulator/ScreenBasedSimulator2,ScreenBasedSimulator/ScreenBasedSimulator2
unity/fps_demo_c#.cs
unity/fps_demo_c#.cs
//demo_video url: https://youtu.be/F86WbKHpSBo ; https://youtu.be/rpJaWQKK75c ------------------------------------------------------------------------------- codes below are for controling car ------------------------------------------------------------------------------- ouusing UnityEngine; using System.Collections; ...
mit
C#
d7a909fd0ea529fcc99cf630f67850bc27754096
Create tobyte.cs
harrybutler/l337Images,harrybutler/l337Images
tobyte.cs
tobyte.cs
/// <summary> /// Function to get byte array from a file /// </summary> /// <param name="_FileName">File name to get byte array</param> /// <returns>Byte Array</returns> public byte[] FileToByteArray(string _FileName) { byte[] _Buffer = null; try { // Open file for reading System.IO.FileStr...
mit
C#
436d0ad035d0cbe79de16e04ece2aa6c6b2661f2
Add UUID to RaygunIdentifierMessage
ddunkin/raygun4net,nelsonsar/raygun4net,articulate/raygun4net,MindscapeHQ/raygun4net,nelsonsar/raygun4net,tdiehl/raygun4net,MindscapeHQ/raygun4net,ddunkin/raygun4net,tdiehl/raygun4net,articulate/raygun4net,MindscapeHQ/raygun4net
Mindscape.Raygun4Net/Messages/RaygunIdentifierMessage.cs
Mindscape.Raygun4Net/Messages/RaygunIdentifierMessage.cs
namespace Mindscape.Raygun4Net.Messages { public class RaygunIdentifierMessage { public RaygunIdentifierMessage(string user) { Identifier = user; } /// <summary> /// Unique Identifier for this user. Set this to the identifier you use internally to look up users, /// or a correlation ...
namespace Mindscape.Raygun4Net.Messages { public class RaygunIdentifierMessage { public RaygunIdentifierMessage(string user) { Identifier = user; } /// <summary> /// Unique Identifier for this user. Set this to the identifier you use internally to look up users, /// or a correlation ...
mit
C#
72ddb41b9641a70d01d4598285a850bafbb126fb
Create OnTriggerEnter.cs
carcarc/unity3d
OnTriggerEnter.cs
OnTriggerEnter.cs
bool playerInRange; GameObject player = GameObject.FindGameObjectWithTag ("Player"); void OnTriggerEnter (Collider other) { // If the entering collider is the player... if(other.gameObject == player) { // ... the player is in range. playerInRange = true; } }
mit
C#
0d77a6203f5a718f91e330db21baac3fbb11b3f2
add missing file
Terradue/DotNetTep,Terradue/DotNetTep
Terradue.Tep/Terradue/Tep/Controller/Accounting/EventFactory.cs
Terradue.Tep/Terradue/Tep/Controller/Accounting/EventFactory.cs
using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Runtime.Serialization; using Newtonsoft.Json; using Terradue.Portal; namespace Terradue.Tep { public class EventFactory { public static void Log(IfyContext context, Event log){ HttpWebRequest webRe...
agpl-3.0
C#
4681094fcfff9b295a0944faafdabd73898386a5
Check Techtopia's claim about C# strings
sblom/sandbox,sblom/sandbox,sblom/sandbox,sblom/sandbox,sblom/sandbox,sblom/sandbox
try/cs/strcmp.cs
try/cs/strcmp.cs
// Techtopia doesn't understand .NET strings. http://www.techotopia.com/index.php/Working_with_Strings_in_C_Sharp using System; public static class MainClass { public static int Main(string[] args) { String myString1 = "Hello World"; String myString2 = "Hello World"; if (myString1 == myString2) { ...
mit
C#
9fc6179690fe7185d8a5856ee9728fe47285d893
Create CountWithPeriods.cs
AttilaLorincz/a3-4-c2,AttilaLorincz/a3-4-c2
cs/CountWithPeriods.cs
cs/CountWithPeriods.cs
using System; using System.Linq; public class OneGcd { int countInRangeInclusive(long a, long b, int y) { var mul2 = y%2==0; var mul3 = y%3==0; var mul5 = y%5==0; var mul7 = y%7==0; int notcoprimes = 0; for (long i=a;i<=b;i++) { if (mul2 && i%2 == 0) ...
mpl-2.0
C#
408bbb422dc13974c7ee7ae3afb6d2dd794ddcd3
Add missing file
aloisdg/algo
Algo/HappyNumber/HappyNumber.cs
Algo/HappyNumber/HappyNumber.cs
using System.Collections.Generic; namespace HappyNumber { // http://en.wikipedia.org/wiki/Happy_number public static class HappyNumber { public static bool IsHappy(this int n) { var cache = new HashSet<int>(); while (n != 1 && cache.Add(n)) { var sum = 0; while (n != 0) { var digit =...
bsd-3-clause
C#
168328b93d4e2b87163cf925f9e3d6bf2c09322f
Add new bip 157 p2p message cfilter
MetacoSA/NBitcoin,MetacoSA/NBitcoin,NicolasDorier/NBitcoin
NBitcoin/Protocol/Payloads/CompactFilterPayload.cs
NBitcoin/Protocol/Payloads/CompactFilterPayload.cs
using System; using System.Collections.Generic; namespace NBitcoin.Protocol { /// <summary> /// Represents the p2p message payload used for sharing a block's compact filter. /// </summary> [Payload("cfilter")] public class CompactFilterPayload : Payload { private byte _FilterType = (byte)FilterType.Basic; pr...
mit
C#
f596c655c4c6e8078b94959bf9ff2b13926f0261
Add extra static method in VideoFormatGuids to retrieve Guid from FourCC
RobyDX/SharpDX,waltdestler/SharpDX,sharpdx/SharpDX,dazerdude/SharpDX,waltdestler/SharpDX,sharpdx/SharpDX,sharpdx/SharpDX,mrvux/SharpDX,dazerdude/SharpDX,andrewst/SharpDX,andrewst/SharpDX,mrvux/SharpDX,waltdestler/SharpDX,RobyDX/SharpDX,dazerdude/SharpDX,andrewst/SharpDX,RobyDX/SharpDX,waltdestler/SharpDX,dazerdude/Shar...
Source/SharpDX.MediaFoundation/VideoFormatGuids.cs
Source/SharpDX.MediaFoundation/VideoFormatGuids.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SharpDX.MediaFoundation { public static partial class VideoFormatGuids { /// <summary> /// Returns a standard Media foundation GUID format from a FourCC input /...
mit
C#
62ce049a1a88dbaaf40f26368b330589ab8650e8
Define enumeration for supported list of predefined members
Seddryck/NBi,Seddryck/NBi
NBi.Core/Members/PredefinedMembers.cs
NBi.Core/Members/PredefinedMembers.cs
using System; using System.Linq; using System.Xml.Serialization; namespace NBi.Core.Members { public enum PredefinedMembers { [XmlEnum(Name = "weekdays")] DaysOfWeek = 1, [XmlEnum(Name = "months")] MonthsOfYear = 2 } }
apache-2.0
C#
f16b3126fc34ba4f482f21c5cd1065c551bc6b01
Create LevelGrading.cs
afroraydude/First_Unity_Game,afroraydude/First_Unity_Game,afroraydude/First_Unity_Game
Real_Game/Assets/Scripts/LevelGrading.cs
Real_Game/Assets/Scripts/LevelGrading.cs
using UnityEngine; using System.Collections; public class LevelGrading : MonoBehaviour {
mit
C#
d766bd4ef88b1beab7203626e7f807799972bac8
Create Calculator.cs
mchomin/installments-calc
Calculator.cs
Calculator.cs
using System; using System.Collections.Generic; using System.Linq; namespace InstallmentCalculator { public static class Calculator { public static double Calculate(double capital, double dailyInterest, List<DateTime> repaymentDates, bool isDailyCompound) { if (repaymentDates.Count ...
mit
C#
d0b673d96e7925520379a7de9f778328aaab44e5
Create Index.cshtml
Longfld/ASPNETcoreAngularJWT,Longfld/ASPNETcoreAngularJWT,Longfld/ASPNETcoreAngularJWT,Longfld/ASPNETcoreAngularJWT
Views/Home/Index.cshtml
Views/Home/Index.cshtml
<!doctype html> <html> <head> <title>webapp</title> <base href="~/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" /> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Robo...
mit
C#
35a6c4fdf6c94f48c8600e8bf4853954881e4002
Add WebBrowserFactory
yoder/CefSharp,ITGlobal/CefSharp,wangzheng888520/CefSharp,jamespearce2006/CefSharp,jamespearce2006/CefSharp,zhangjingpu/CefSharp,Livit/CefSharp,yoder/CefSharp,VioletLife/CefSharp,illfang/CefSharp,rlmcneary2/CefSharp,VioletLife/CefSharp,dga711/CefSharp,wangzheng888520/CefSharp,ITGlobal/CefSharp,rlmcneary2/CefSharp,Numbe...
CefSharp.Wpf.Example/WebBrowserFactory.cs
CefSharp.Wpf.Example/WebBrowserFactory.cs
using CefSharp.Example; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace CefSharp.Wpf.Example { public class WebBrowserFactory { FrameworkElement _parent; ILifeSpanHandler _lifespanHandler; ...
bsd-3-clause
C#
db52e6195ff193f1379b6ed6f83dd24ba403dbc0
Create Absplit.cs
danesparza/MailChimp.NET,marmind/MailChimp.NET-APIv2
MailChimp/Reports/Absplit.cs
MailChimp/Reports/Absplit.cs
using System.Runtime.Serialization; namespace MailChimp.Reports { /// <summary> /// optional - various extra options based on the campaign type /// </summary> [DataContract] public class Absplit { /// <summary> ///bounces for the A group /// </summary> [DataMember(Name...
mit
C#
e14be5034908c18b847be9465a6c65ff3f1221e8
Introduce benchmark values generator
StanJav/language-ext,louthy/language-ext,StefanBertels/language-ext
LanguageExt.Benchmarks/ValuesGenerator.cs
LanguageExt.Benchmarks/ValuesGenerator.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LanguageExt.Benchmarks { internal class ValuesGenerator { public static readonly ValuesGenerator Default = new ValuesGenerator(1234); readonly Random rand; public ValuesGenerator(int seed)...
mit
C#
81ff8b778727fa31fa9e36eaedf36b222f8d326e
Create InvertedComparer.cs
yuanrui/Examples,yuanrui/Examples,yuanrui/Examples,yuanrui/Examples,yuanrui/Examples
Simple.Common/Generic/InvertedComparer.cs
Simple.Common/Generic/InvertedComparer.cs
// Copyright © Sven Groot (Ookii.org) 2009 // This code may be freely used for any purpose, without restrictions. using System; using System.Collections.Generic; using System.Threading; namespace Simple.Common.Generic { /// <summary> /// Provides an <see cref="IComparer{T}"/> that inverts the results of the s...
apache-2.0
C#
9e4f53bc5a0504e5ecf3ac11d337e7f139bb79d6
Create Game1.cs
Moci1/ColorBox
Game1.cs
Game1.cs
#region Using Statements using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Storage; using Microsoft.Xna.Framework.Input; #endregion namespace ColorBox { /// <summary> /// This is the main type for your game /// </summary> public class Game...
mit
C#
1fbe6dc389f1ea7e3ab183b602e30b9398fa370f
Create ExplodeOnDestroy.cs
felladrin/unity3d-scripts,felladrin/unity-scripts
ExplodeOnDestroy.cs
ExplodeOnDestroy.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ExplodeOnDestroy : MonoBehaviour { public GameObject ExplosionPrefab; bool isQuitting; void OnDestroy() { if (!isQuitting) Instantiate(ExplosionPrefab, transform.position, transform.rotation); } ...
mit
C#
0c7e821ba61f9af51a4e5ad66a6603088e25e0af
Create and update a tableau user with its profile information.
lighthorseinnovation/TableauAPI
TableauAPI/RESTRequests/SendCreateUser.cs
TableauAPI/RESTRequests/SendCreateUser.cs
using System; using System.Collections.Generic; using System.Text; using System.Xml; using TableauAPI.RESTHelpers; using TableauAPI.ServerData; namespace TableauAPI.RESTRequests { public class SendCreateUser : TableauServerSignedInRequestBase { private readonly TableauServerUrls _onlineUrls; p...
mit
C#
6e6c9131b91d3eac94eaf0b00305db1fde615999
Add TypeHelper
xin9le/DeclarativeSql
src/DeclarativeSql/Helpers/TypeHelper.cs
src/DeclarativeSql/Helpers/TypeHelper.cs
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using This = DeclarativeSql.Helpers.TypeHelper; namespace DeclarativeSql.Helpers { /// <summary> /// Provides helper functions for type information. /// </summary> internal static class TypeHelper { ...
mit
C#
210acf965bed4b3602858545ee84be7ff0c449d7
Add Plaid.cs
Ackara/Plaid.NET,Ackara/Plaid.NET,Ackara/Plaid.NET
src/Plaid.Core/Plaid.cs
src/Plaid.Core/Plaid.cs
using System; namespace Gigobyte.Plaid { public static class Plaid { internal static Uri GetEndpoint(Environment environment, string path) { string host = (environment == Environment.Development ? "tartan.plaid.com" : "api.plaid.com"); return new UriBuilder("https", hos...
mit
C#
5c78a804063c8fd703746b27b9240dd1f43fce4c
introduce AmmyCallBuilder
isukces/isukces.code
isukces.code/Ammy/AmmyCallBuilder.cs
isukces.code/Ammy/AmmyCallBuilder.cs
using System.Collections.Generic; using System.Linq; namespace isukces.code.Ammy { public class AmmyCallBuilder { public AmmyCallBuilder(string name = null) { Name = name; } public static SimpleAmmyCodePiece BuildAliasCall(string name, params string[] args) ...
mit
C#
8d8d591685277b70f84d49b9423e53e670e0bd76
Create VersionInfo.cs
imazen/imageflow-dotnet
src/Imageflow/Bindings/VersionInfo.cs
src/Imageflow/Bindings/VersionInfo.cs
using System; using System.Xml; namespace Imageflow.Bindings { public class VersionInfo { internal VersionInfo() { } internal static VersionInfo FromDynamic(dynamic versionInfo) { var info = new VersionInfo(); info.BuildDate = XmlConvert.ToDateTime(versionInfo.b...
agpl-3.0
C#
2d50ac8b907d06842f80bd4867a5078d656e2063
Add Error Tests
iwillspeak/IronRure,iwillspeak/IronRure
test/IronRureTests/ErrorTests.cs
test/IronRureTests/ErrorTests.cs
using System; using Xunit; using IronRure; namespace IronRureTests { public class ErrorTests { [Fact] public void Eror_Create_Succeeds() { var err = new Error(); } [Fact] public void Error_AsIDisposable_ImplementsInterface() { va...
mit
C#
646c74e165fa2583d4c7445d43b2303628d6b25e
Create StringExtension class file
hylasoft-usa/h-behavior,hylasoft-usa/h-behavior
h-behavior/Extensions/StringExtensions.cs
h-behavior/Extensions/StringExtensions.cs
using System.Collections.Generic; using System.Collections; using System.Linq; using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Hylasoft.Behavior.Extensions { /// <summary> /// Extensions to check Strings /// </summary> public static class StringExtensions { } }
mit
C#
d2b17a441e5271d3149ee8e453025e66f7e194ca
Update perf metric names
Azure/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,oliver-feng/azure-webjobs-sdk,Azure/azure-webjobs-sdk,vasanthangel4/azure-webjobs-sdk,brendankowitz/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,shrishrirang/azure-webjobs-sdk,vasanthangel4/azur...
perf/FunctionChainingScenario/PerfTest.cs
perf/FunctionChainingScenario/PerfTest.cs
using System.Threading; using Microsoft.VisualStudio.Diagnostics.Measurement; namespace Microsoft.Azure.Jobs.Host.FunctionChainingScenario { public partial class PerfTest { private const string HostStartMetric = "HostStart"; private const string QueueFunctionChainMetric = "QueueChain"; ...
using System.Threading; using Microsoft.VisualStudio.Diagnostics.Measurement; namespace Microsoft.Azure.Jobs.Host.FunctionChainingScenario { public partial class PerfTest { private const string HostStartMetric = "FunctionChainingScenario;HostStart;Time"; private const string QueueFunctionChain...
mit
C#
e26837420b0f8f71f3ce61a662a07d454c98dcea
Add EnableBusMaster
zarlo/Cosmos,jp2masa/Cosmos,zarlo/Cosmos,fanoI/Cosmos,fanoI/Cosmos,tgiphil/Cosmos,CosmosOS/Cosmos,jp2masa/Cosmos,zarlo/Cosmos,jp2masa/Cosmos,zarlo/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos,tgiphil/Cosmos,fanoI/Cosmos,tgiphil/Cosmos,CosmosOS/Cosmos
source/Cosmos.HAL2/PCIDevice.cs
source/Cosmos.HAL2/PCIDevice.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Cosmos.Debug.Kernel; namespace Cosmos.HAL { public class PCI { private static List<PCIDevice> Devices; public static uint Count { get { return (uint)Devices.Count; } } ...
bsd-3-clause
C#
4eefbd004fe82723ce64edb145d66437511b1266
Add Utility class
bartlomiejwolk/ActionTrigger
Utilities.cs
Utilities.cs
using UnityEngine; namespace ActionTrigger { public enum InfoType { Warning, Error } public static class Utilities { /// <summary> /// Log info about missing reference. /// </summary> /// <param name="sourceCo"> /// MonoBehaviour from wh...
mit
C#
04efa52656e27d3adfc91057999f176e8b4929da
Revert "."
anewkirk-/Tetris,anewkirk-/Tetris
Tetris/Models/TetriminoBag/z_Tetrimino.cs
Tetris/Models/TetriminoBag/z_Tetrimino.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Media; namespace Tetris.Models.TetriminoBag { public class z_Tetrimino : Tetrimino { public z_Tetrimino() { color = new SolidColorBrush(Color.Fro...
mit
C#
74224ae70895334db6eb1ead5d24e1f1fdce32aa
Add PSOObject Class
cyberkitsune/PolarisServer,MrSwiss/PolarisServer,Dreadlow/PolarisServer,PolarisTeam/PolarisServer,lockzag/PolarisServer
PolarisServer/Models/PSOObject.cs
PolarisServer/Models/PSOObject.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PolarisServer.Models { class PSOObject { class PSOObjectThing { UInt32 data; } int ObjectID { get; set; } MysteryPositions Position { get; set; } string ...
agpl-3.0
C#
4b277ff9b5d6bd00d5cd53dfbd5cde0bbaa3cb4b
Add feed: http://www.knightsofsidonia.com/news/
mayuki/RadioWhip
KnightsOfSidonia-News.cshtml
KnightsOfSidonia-News.cshtml
@RadioWhip.Feedify( "http://www.knightsofsidonia.com/news/", "シドニアの騎士|新着情報", (content, cq) => { return cq[".detail"] .Select(x => x.Cq()) .Select(x => new RadioWhip.Entry { Title = System.Text.RegularExpressions.Regex.Replace(x.Find("...
mit
C#
4526361f02d88bf77aad8f3855fdcf2a6fcddb00
Create PetEnPlugin.cs
krbysh/FFXIV-ACT-OverlayPlugin-Plugins
PetEnPlugin.cs
PetEnPlugin.cs
using Advanced_Combat_Tracker; using System; using System.Reflection; using System.Text; using System.Windows.Forms; // Advanced Combat Tracker - mini parse window用Plugin // NameEn:キャラクター名のペットも含めて英語で出力 [assembly: AssemblyTitle("Mini Parse Pets' Name in English")] [assembly: AssemblyVersion("1.0.0.0")] namespace ACTv3P...
mit
C#
4b858ded0dc48184cd7ac93eae6bde948b07cd13
Add support for 8 bit raw bitmap
Xeeynamo/KingdomHearts
OpenKh.Kh2/RawBitmap.cs
OpenKh.Kh2/RawBitmap.cs
using System; using System.Drawing; using System.IO; using OpenKh.Imaging; namespace OpenKh.Kh2 { public class RawBitmap : IImageRead { private const int PaletteCount = 256; private const int BitsPerColor = 32; private readonly byte[] _data; private readonly byte[] _clut; ...
mit
C#
ee8bd43a9a1d30cefd84821f1b4ce9a1a226e0ba
Change visibility for IsChildContext
olcayseker/FluentValidation,regisbsb/FluentValidation,robv8r/FluentValidation,IRlyDontKnow/FluentValidation,GDoronin/FluentValidation
src/FluentValidation/ValidationContext.cs
src/FluentValidation/ValidationContext.cs
#region License // Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk) // // 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...
#region License // Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk) // // 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...
apache-2.0
C#
9c75be6a57080442e11d180b753729fb1dd4ad91
add missing file
full-build/full-build,pchalamet/full-build,full-build/full-build,pchalamet/full-build
src/FullBuild/Model/HostedPackage.cs
src/FullBuild/Model/HostedPackage.cs
using System; using System.Linq; using System.Xml.Linq; using FullBuild.Helpers; namespace FullBuild.Model { internal class HostedPackage { public static HostedPackage CreateFrom(Package package, XContainer entry) { var content = entry.Descendants(XmlHelpers.Atom + "content").Single...
apache-2.0
C#
f18163df03a51d28812075eb69244e96005933c2
move network address extension methods into node project
ArsenShnurkov/BitSharp
BitSharp.Node/ExtensionMethods.cs
BitSharp.Node/ExtensionMethods.cs
using BitSharp.WireProtocol; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace BitSharp.Node.ExtensionMethods { public static class ExtensionMethods { public static IPEndPoint ToIPEndPoint(this Ne...
unlicense
C#
0b2311aca4b1fb13978012972e53d9c183810feb
Add Grid class for storing two-dimensional data
mgefvert/DotNetCommons
DotNetCommons/Collections/Grid.cs
DotNetCommons/Collections/Grid.cs
using System; using System.Collections.Generic; using System.Linq; // Written by Mats Gefvert // Distributed under MIT License: https://opensource.org/licenses/MIT namespace DotNetCommons.Collections { public class Grid<TRow, TCol, TData> { private readonly Dictionary<Tuple<TRow, TCol>, TData> _data...
mit
C#
27dfb21a50226db0aba0e5722670408b1d8b341a
Create Triangles.cs
dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey
C#/CodeAbbey/Triangles.cs
C#/CodeAbbey/Triangles.cs
// http://www.codeabbey.com/index/task_view/triangles using System; namespace CSharpCodeProblems { class Solution { static void Main(string[] args) { int numberOfTriplets = int.Parse(Console.ReadLine()); for (int i = 0; i < numberOfTriplets; ++i) { ...
mit
C#
0c9c5577227368ac5bbefbfc09113bab6c624af5
添加ThreadLocalStorage 的实现
xuanye/vulcan,xuanye/vulcan
src/Vulcan.DataAccess/ThreadLocalStorage.cs
src/Vulcan.DataAccess/ThreadLocalStorage.cs
using System.Collections.Generic; using System.Threading; namespace Vulcan.DataAccess { public class ThreadLocalStorage : IRuntimeContextStorage { private static readonly ThreadLocal<Dictionary<string,object>> local = new ThreadLocal<Dictionary<string,object>>(); private static object lockObj =...
mit
C#
2fedd5a5618a36411295f5f4a38fc7855a0c646a
Create style.cs
scotmatson/js_form_validator,scotmatson/js_form_validator
style.cs
style.cs
/* Eric Meyer's CSS Reset http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain) */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, stro...
unlicense
C#
23d50e4854ea23124025dc288af0b1f02b638124
Test for #139
adamabdelhamed/PowerArgs,workabyte/PowerArgs,BlackFrog1/PowerArgs,BlackFrog1/PowerArgs,workabyte/PowerArgs,adamabdelhamed/PowerArgs
PowerArgsTestCore/Core/WhichShortcutTest.cs
PowerArgsTestCore/Core/WhichShortcutTest.cs
using Microsoft.VisualStudio.TestTools.UnitTesting; using PowerArgs; using System.Linq; namespace PowerArgsTestCore.Core { public class WhichShortcutHook : ArgHook { public string ArgVal { get; set; } public override void AfterPopulateProperty(HookContext context) { ArgVal ...
mit
C#
a1e36c1ce07cb31f557a3e63aa32708e3a191bff
Create DoubleRange.cs
DoubleLinePartners/ObjectFiller.NET,HerrLoesch/ObjectFiller.NET,Tynamix/ObjectFiller.NET,blmeyers/ObjectFiller.NET
ObjectFiller/Plugins/Double/DoubleRange.cs
ObjectFiller/Plugins/Double/DoubleRange.cs
using System; namespace Tynamix.ObjectFiller { public class DoubleRange : IRandomizerPlugin<double>, IRandomizerPlugin<double?>,IRandomizerPlugin<decimal>, IRandomizerPlugin<decimal?> { private readonly double _minValue; private readonly double _maxValue; /// <summary> /// Use ...
mit
C#
6e8bae9a047922b93e7c8d5b41a982332c28634a
Fix for Start controller
vtfuture/BForms,vtfuture/BForms,vtfuture/BForms
BForms.Docs/Controllers/StartController.cs
BForms.Docs/Controllers/StartController.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace BForms.Docs.Controllers { public class StartController : BaseController { public ActionResult Setup() { return View("Setup/Index"); } ...
mit
C#
063383783d02b3d683c3814461ea9ac9bda08f36
Revert "Delete Startup.cs"
TalicZealot/Frontslide-Wiki,TalicZealot/Frontslide-Wiki,TalicZealot/Frontslide-Wiki
SotnWiki/Services/SotnWiki.Auth/Startup.cs
SotnWiki/Services/SotnWiki.Auth/Startup.cs
using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using Microsoft.Owin.Security.Cookies; using Microsoft.Owin.Security.Twitter; using Owin; using System; [assembly: OwinStartupAttribute(typeof(SotnWiki.Auth.Startup))] namespace SotnWiki.Auth { public class Startup { ...
mit
C#
f5684985fd1bf82ea565d2fee2797b1d194b20f9
Create IGraph.cs
codecore/Functional,codecore/Functional
IGraph.cs
IGraph.cs
using System.Collections.Generic; namespace Functional.Graph { public interface IEdge<C> { long ID { get; } C Cost { get; set; } bool Skip { get; set; } long Start { get; } long Destination { get; } } public interface INode<T> { long ID { get; } T Nam...
apache-2.0
C#
3a2d4af78fa951af4b9f452590d822ba5d9e3ccb
fix a test who depended on sourceforge
thepunctuatedhorizon/BrickCoinAlpha.0.0.1,NicolasDorier/NBitcoin,stratisproject/NStratis,dangershony/NStratis,you21979/NBitcoin,HermanSchoenfeld/NBitcoin,lontivero/NBitcoin,MetacoSA/NBitcoin,MetacoSA/NBitcoin,bitcoinbrisbane/NBitcoin
NBitcoin.Tests/checkblock_tests.cs
NBitcoin.Tests/checkblock_tests.cs
using NBitcoin.DataEncoders; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using Xunit; namespace NBitcoin.Tests { public class checkblock_tests { [Fact] [Trait("C...
using NBitcoin.DataEncoders; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using Xunit; namespace NBitcoin.Tests { public class checkblock_tests { [Fact] [Trait("Core", "Core")] public void...
mit
C#
1e2f4a54c755e95dc19706fdfae2c8aa49f81ffe
Add forgotten OnlineFriends
windowsphonehacker/SparklrWP
SparklrLib/Objects/Responses/Work/OnlineFriends.cs
SparklrLib/Objects/Responses/Work/OnlineFriends.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SparklrLib.Objects.Responses.Work { public class OnlineFriends { public int id { get; set; } } }
mit
C#
43667cccb5e5e8455d07a83e9f9bd9e39e472f58
Create Costomer
ivayloivanof/OOP.CSharp,ivayloivanof/OOP.CSharp
03.InheritanceAndAbstraction/InheritanceAndAbstraction/CompanyHierarchy/Class/Customer/Costomer.cs
03.InheritanceAndAbstraction/InheritanceAndAbstraction/CompanyHierarchy/Class/Customer/Costomer.cs
namespace CompanyHierarchy.Class.Customer { class Costomer { } }
cc0-1.0
C#
7cfe3e7fbb48e9a1f401c1f60e71900b4f5f13b5
add base service interface
NickPolyder/FreeParkingSystem
Common/Services/Interfaces/IStoreService.cs
Common/Services/Interfaces/IStoreService.cs
using System; using System.Collections.Generic; using FreeParkingSystem.Common.Models; using X.PagedList; namespace FreeParkingSystem.Common.Services { public interface IStoreService<TEntity> where TEntity : IBaseModel { IServiceResult<TEntity> Find(string id); IServiceResult<TEntity> Find(F...
mit
C#
e1d0cccc1a51ecbc95587e614fd377d944c3df41
Add AzureAuthenticationMode
sharpjs/PSql,sharpjs/PSql
PSql/_Data/AzureAuthenticationMode.cs
PSql/_Data/AzureAuthenticationMode.cs
using Sam = Microsoft.Data.SqlClient.SqlAuthenticationMethod; namespace PSql { /// <summary> /// Modes for authentiating connections to Azure SQL Database and /// compatible databases. /// </summary> public enum AzureAuthenticationMode { /// <summary> /// Default authentic...
isc
C#
fe66764a16f2777634e9aff96abd966439d8d526
Add needed generated file for Live Preview.
Fenex/Pinta,jakeclawson/Pinta,jakeclawson/Pinta,xxgreg/Pinta,Mailaender/Pinta,Mailaender/Pinta,PintaProject/Pinta,PintaProject/Pinta,PintaProject/Pinta,Fenex/Pinta
Pinta/gtk-gui/Pinta.ProgressDialog.cs
Pinta/gtk-gui/Pinta.ProgressDialog.cs
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.4927 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----...
mit
C#
727495425472b59bab9444497f814f515e91c3c3
Add CharUtility class
amironov73/ManagedIrbis2,amironov73/ManagedIrbis2
Source/Libs/AM.Core/AM/CharUtility.cs
Source/Libs/AM.Core/AM/CharUtility.cs
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com /* CharacterUtility.cs -- helpers for System.Char * Ars Magna project, http://arsmagna.ru * ------------------------------------------------------- * Statu...
mit
C#
5260b1038c5b12c8b47560eba2afebf6c24ee961
put a try/finally in
abombss/MassTransit,vebin/MassTransit,lahma/MassTransit,D3-LucaPiombino/MassTransit,ccellar/MassTransit,abombss/MassTransit,ccellar/MassTransit,lahma/MassTransit,jsmale/MassTransit,ccellar/MassTransit,petedavis/MassTransit,ccellar/MassTransit,abombss/MassTransit,lahma/MassTransit,lahma/MassTransit,lahma/MassTransit,pet...
MassTransit.ServiceBus/Internal/ComponentDispatcher.cs
MassTransit.ServiceBus/Internal/ComponentDispatcher.cs
/// Copyright 2007-2008 The Apache Software Foundation. /// /// 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 /// /// Unl...
/// Copyright 2007-2008 The Apache Software Foundation. /// /// 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 /// /// Unl...
apache-2.0
C#
d6d5d4ebd033d47886c6e31ae87c0be527f5545e
Add file missing from last commit 4c2f6de
RavenB/opensim,M-O-S-E-S/opensim,ft-/opensim-optimizations-wip-extras,QuillLittlefeather/opensim-1,ft-/arribasim-dev-extras,Michelle-Argus/ArribasimExtract,Michelle-Argus/ArribasimExtract,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,RavenB/opensim,ft-/opensim-optimizations-wip,OpenSimian/opensimulator,justinccdev/opensim,Quill...
OpenSim/Framework/Monitoring/StatsLogger.cs
OpenSim/Framework/Monitoring/StatsLogger.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#
cb9b249108e0ba09b2ee65f2fbd0d7780cac7ebc
Add missed file
JonPSmith/SampleMvcWebApp,JonPSmith/SampleMvcWebApp,JonPSmith/SampleMvcWebApp
SampleWebApp/Models/AttendeeAllListModel.cs
SampleWebApp/Models/AttendeeAllListModel.cs
using System.ComponentModel.DataAnnotations; namespace SampleWebApp.Models { public class AttendeeAllListModel { [UIHint("HiddenInput")] public int AttendeeId { get; set; } public string CourseName { get; set; } public string FullName { get; set; } [DataType(DataType...
mit
C#
8763e8f7bbce88b19ce9aa8ca2ec9a3fed1b6201
Fix for connection closing
Avira/dblinq,vinodvar/dblinq,vinodvar/dblinq,Avira/dblinq
DbLinq/util/ConnectionManager.cs
DbLinq/util/ConnectionManager.cs
using System; using System.Data; using System.Data.SqlClient; using System.Collections.Generic; using System.Linq; using System.Text; namespace DBLinq.util { /// <summary> /// if a connection is initially closed, ConnectionManager closes it in Dispose(). /// if a connection is initially open, C...
using System; using System.Data; using System.Data.SqlClient; using System.Collections.Generic; using System.Linq; using System.Text; namespace DBLinq.util { /// <summary> /// if a connection is initially closed, ConnectionManager closes it in Dispose(). /// if a connection is initially open, C...
mit
C#
6d82ab2af4d609c9ec6c5159fd95d771023b2eb3
Create 16.cs
rikkus/adventofcode2016,rikkus/adventofcode2016
16.cs
16.cs
using System; using System.Linq; using System.Text; namespace Aoc2016_16 { class Program { static void Main(string[] args) { var testInput = "110010110100"; var testLength = 12; var realInput = "11101000110010100"; var realLength = 272; ...
mit
C#
c86f1c3010e2d99ce094374863c92aff48efb554
Add missing file Delay.cs
brian-dot-net/writeasync,brian-dot-net/writeasync,brian-dot-net/writeasync
projects/CommSample/source/CommSample.App/Delay.cs
projects/CommSample/source/CommSample.App/Delay.cs
//----------------------------------------------------------------------- // <copyright file="Delay.cs" company="Brian Rogers"> // Copyright (c) Brian Rogers. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace CommSample { using System;...
unlicense
C#
a2c83072e3e1c942e43927d329faa954b2f3fa56
add the response files
darrencauthon/csharp-sparkpost,kirilsi/csharp-sparkpost,darrencauthon/csharp-sparkpost,kirilsi/csharp-sparkpost,SparkPost/csharp-sparkpost
src/SparkPost/RetrieveTempaltesResponse.cs
src/SparkPost/RetrieveTempaltesResponse.cs
using System; using System.Collections.Generic; namespace SparkPost { public class RetrieveTempaltesResponse : Response { public RetrieveTempaltesResponse() { Templates = new List<Template>(); } public List<Template> Templates { get; set; } public IDiction...
apache-2.0
C#
5f067172b41e243aa79d8d25bac024b551212ce6
Add model class for realm skin
ppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu
osu.Game/Models/RealmSkin.cs
osu.Game/Models/RealmSkin.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 osu.Framework.Extensions.ObjectExtensions; using osu.Framework.Testing; using osu.Game.Database; using osu.Game.Exte...
mit
C#
8ddf0ddc2e7597d2f3e191508a18932153757723
Add DataService test.
jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr
test/HelloWorldDataServiceTest.cs
test/HelloWorldDataServiceTest.cs
using System.Threading.Tasks; using FluentAssertions; using Microsoft.EntityFrameworkCore; using Xunit; namespace HelloWorldApp { public class HelloWorldDataServiceTest { [Fact] public async Task SaveOneGreetingShouldResultInOneSavedGreetingTest() { var options = new DbConte...
mit
C#
4dc6e84cc33afb4652ecebb54678bc15de082a69
Use a cast instead of an 'as' check.
mohtamohit/CppSharp,inordertotest/CppSharp,genuinelucifer/CppSharp,genuinelucifer/CppSharp,nalkaro/CppSharp,Samana/CppSharp,imazen/CppSharp,txdv/CppSharp,imazen/CppSharp,xistoso/CppSharp,u255436/CppSharp,KonajuGames/CppSharp,mono/CppSharp,mohtamohit/CppSharp,SonyaSa/CppSharp,mono/CppSharp,Samana/CppSharp,ddobrev/CppSha...
src/Generator/Passes/CheckAbiParameters.cs
src/Generator/Passes/CheckAbiParameters.cs
using CppSharp.AST; namespace CppSharp.Passes { /// <summary> /// This pass checks for ABI-specific details that need to be fixed /// in the generated code. /// /// In both the Microsoft and Itanium ABI, some functions return types /// and parameter can be returned indirectly. In the case of ...
using CppSharp.AST; namespace CppSharp.Passes { /// <summary> /// This pass checks for ABI-specific details that need to be fixed /// in the generated code. /// /// In both the Microsoft and Itanium ABI, some functions return types /// and parameter can be returned indirectly. In the case of ...
mit
C#
465ebb15bb76029ec944f71dc29ab57f787019df
Use name that doesn't clash with unit-testing classes
asd-and-Rizzo/ExpressionToCode,EamonNerbonne/ExpressionToCode
ExpressionToCodeLib/ExpressionAssertions.cs
ExpressionToCodeLib/ExpressionAssertions.cs
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; namespace ExpressionToCodeLib { /// <summary> /// Intended to be used as a static import; i.e. via "using static ExpressionToCodeLib.ExpressionAssertions;" /// </summary> public static...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; namespace ExpressionToCodeLib { /// <summary> /// Intended to be used as a static import; i.e. via "using static ExpressionToCodeLib.ExpressionAssertions;" /// </summary> public static...
apache-2.0
C#
ba922fd1ae1f597479278b66f67e83aedc48916f
update version
AzureAD/microsoft-authentication-library-for-dotnet,bjartebore/azure-activedirectory-library-for-dotnet,yamamoWorks/azure-activedirectory-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/azure-activedirectory-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/mi...
src/ADAL.Common/CommonAssemblyInfo.cs
src/ADAL.Common/CommonAssemblyInfo.cs
//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. // All rights reserved. // // This code is licensed under the MIT License. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated doc...
//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. // All rights reserved. // // This code is licensed under the MIT License. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated doc...
mit
C#
888b280b08ddeac21f24f270cc5d18fbd3654660
build fixed
linkelf/GridDomain,andreyleskov/GridDomain
GridDomain.Tests.Acceptance/DateTimeSpec.cs
GridDomain.Tests.Acceptance/DateTimeSpec.cs
using System; using System.Threading; using GridDomain.Common; using GridDomain.Tests.Framework; using NUnit.Framework; namespace GridDomain.Tests.Acceptance { [TestFixture] public class DateTimeSpec { [Test] public void When_EditableDateTimeStrategy_is_used_and_Now_is_set_Then_DateTimeFaca...
apache-2.0
C#
5db1c0b189a89469f1f1ebf33910b8b98ecfc4a7
add missing file
paymill/paymill-net,paymill/paymill-net
PaymillWrapper/Models/EventType.cs
PaymillWrapper/Models/EventType.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PaymillWrapper.Models { public sealed class EventType { private readonly String name; private static List<EventType> createdEvents = new List<EventType>(); publ...
mit
C#
a86ab3c4f56f2a902f1e5f85234067d4e4ace08b
Add `SCardShare` enumeration
Archie-Yang/PcscDotNet
src/PcscDotNet/SCardShare.cs
src/PcscDotNet/SCardShare.cs
namespace PcscDotNet { /// <summary> /// Indicates whether other applications may form connections to the card. /// </summary> public enum SCardShare { /// <summary> /// This application demands direct control of the reader, so it is not available to other applications. /// <...
mit
C#
b16353899ed2bb1fb9bf1d202a74f1b56a1cc4d9
Create DiagonalDifference.cs
costincaraivan/hackerrank,costincaraivan/hackerrank
algorithms/warmup/DiagonalDifference.cs
algorithms/warmup/DiagonalDifference.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()); int[][] a = new int[n][]; for(int a_i = 0; a_i < n; a_i++){ string[] a_temp = Console.ReadLine().Sp...
mit
C#
5e44abfa138d9d98d6187befaf324c91e30958d9
Create TournamentSignUpResponse.cs
OpenConquer/Tournaments
Tournaments/TournamentSignUpResponse.cs
Tournaments/TournamentSignUpResponse.cs
using System; namespace OpenConquer.Game.Models.Tournaments { /// <summary> /// Model for tournament sign up response. /// </summary> public sealed class TournamentSignUpResponse { /// <summary> /// Gets the message. /// </summary> public string Message { get; privat...
mit
C#
4a9295abb4e879bb3e042fcc70307dd9fd358123
Create index.cshtml
Aleksandrovskaya/apmathclouddif
site/index.cshtml
site/index.cshtml
@{ var txt = DateTime.Now; } <html> <body> <p>The dateTime is @txt</p> </body> </html>
mit
C#
a45ecc6513d094bb4364bc53f696ff09e050dff0
Add a controller for authorized user s.t. they can retrieve their info and update password.
marcuson/A2BBServer,marcuson/A2BBServer,marcuson/A2BBServer
A2BBIdentityServer/Controllers/MeController.cs
A2BBIdentityServer/Controllers/MeController.cs
using A2BBCommon; using A2BBCommon.Models; using A2BBIdentityServer.DTO; using A2BBIdentityServer.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using System.Collections.Generic; using System.Threading.Tasks; usi...
apache-2.0
C#
f2e70ecd5d546c82f41c301fc941f51a7f712a0a
Fix workaround for the Unity Web Player.
PowerOfCode/lidgren-network-gen3,SacWebDeveloper/lidgren-network-gen3,RainsSoft/lidgren-network-gen3,dragutux/lidgren-network-gen3,jbruening/lidgren-network-gen3,forestrf/lidgren-network-gen3,lidgren/lidgren-network-gen3
Lidgren.Network/Encryption/NetAESEncryption.cs
Lidgren.Network/Encryption/NetAESEncryption.cs
using System; using System.IO; using System.Security.Cryptography; namespace Lidgren.Network { public class NetAESEncryption : NetCryptoProviderBase { public NetAESEncryption(NetPeer peer) #if UNITY_WEBPLAYER : base(peer, new RijndaelManaged()) #else : base(peer, new AesCryptoServiceProvider()) ...
using System; using System.IO; using System.Security.Cryptography; namespace Lidgren.Network { public class NetAESEncryption : NetCryptoProviderBase { public NetAESEncryption(NetPeer peer) : base(peer, new AesCryptoServiceProvider()) { } public NetAESEncryption(NetPeer peer, string key) ...
mit
C#
9ec8101f0f9f67127aa78a80800a88633d9c635b
update test exceptions
LinqToDB4iSeries/linq2db,linq2db/linq2db,MaceWindu/linq2db,linq2db/linq2db,LinqToDB4iSeries/linq2db,ronnyek/linq2db,MaceWindu/linq2db
Tests/Linq/UserTests/Issue1486Tests.cs
Tests/Linq/UserTests/Issue1486Tests.cs
using LinqToDB; using LinqToDB.Data; using LinqToDB.DataProvider; using NUnit.Framework; using System.Data; using System.Linq; using Tests.Model; namespace Tests.UserTests { [TestFixture] public class Issue1486Tests : TestBase { public class IssueDataConnection : DataConnection { public IssueDataConnection(...
using LinqToDB; using LinqToDB.Data; using LinqToDB.DataProvider; using NUnit.Framework; using System.Data; using System.Linq; using Tests.Model; namespace Tests.UserTests { [TestFixture] public class Issue1486Tests : TestBase { public class IssueDataConnection : DataConnection { public IssueDataConnection(...
mit
C#
55e8a44db605f24af80cc71c53c372b5289bc989
add test for DrawableComment
smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,peppy/osu,smoogipooo/osu,peppy/osu,ppy/osu,peppy/osu-new,NeoAdonis/osu,ppy/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,UselessToucan/osu
osu.Game.Tests/Visual/Online/TestSceneDrawableComment.cs
osu.Game.Tests/Visual/Online/TestSceneDrawableComment.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 NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.S...
mit
C#
37030fd14afc0054fe21172398b43eec5a094f7e
Update assembly info
AArnott/nuproj,oliver-feng/nuproj,ericstj/nuproj,kovalikp/nuproj,nuproj/nuproj,NN---/nuproj,faustoscardovi/nuproj,zbrad/nuproj,DavidAnson/nuproj,PedroLamas/nuproj,DavidAnson/nuproj
src/NuProj.Tasks/Properties/AssemblyInfo.cs
src/NuProj.Tasks/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("NuProj.Tasks")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Immo Landwerth")] [assembly: AssemblyProduct("NuProj")] [assembly: Assem...
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("Nu...
mit
C#
87ae882a715a83482144d87d40990d17c5775601
Truncate string
naile/cacti.mvc.web
src/Extension/Truncate.cs
src/Extension/Truncate.cs
using System.Web; using System.Web.Mvc; namespace Cacti.Mvc.Web { public static class TruncateExtension { public static IHtmlString Truncate(this HtmlHelper helper, string input, int length, string marker = "...") { return input.Length <= length ? MvcHtmlString.Crea...
mit
C#
a7194e1bc347a204661c939517067cf931c997b6
add stateless RNG
UselessToucan/osu,peppy/osu-new,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,peppy/osu,smoogipooo/osu,peppy/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,ppy/osu
osu.Game/Utils/StatelessRNG.cs
osu.Game/Utils/StatelessRNG.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. namespace osu.Game.Utils { /// Provides a fast stateless function that can be used in randomly-looking visual elements. public static class StatelessRNG { ...
mit
C#
24574d19329dbabeca1afd66ad42a37b7e4d74ce
Add new entity ApiGauges
Mahifernando/GaugesNet
GaugesNet/Entity/ApiGauges.cs
GaugesNet/Entity/ApiGauges.cs
// ------------------------------------------------------------------------------ // | // Copyright 2012 Mahi Fernando. | // ...
apache-2.0
C#