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
dfce0e54251bdf4c49e958f9f05234fb6b86b23d
improve comments
jeromerg/NCase,jeromerg/NCase,jeromerg/NCase
src/NCase.Autofac/NCaseModule.cs
src/NCase.Autofac/NCaseModule.cs
using Autofac; using NCase.Api; using NCase.Api.Vis; using NCase.Imp; using NCase.Imp.Vis; using NDsl.Autofac; namespace NCase.Autofac { public class NCaseModule : Module { protected override void Load(ContainerBuilder builder) { base.Load(builder); // modules ...
using Autofac; using NCase.Api; using NCase.Api.Vis; using NCase.Imp; using NCase.Imp.Vis; using NDsl.Autofac; namespace NCase.Autofac { public class NCaseModule : Module { protected override void Load(ContainerBuilder builder) { base.Load(builder); // modules ...
apache-2.0
C#
9448ed557d0d488c86de4d0fa786f60188d17306
Remove unnecessary conditions
farity/farity
Farity.Tests/SubtractTests.cs
Farity.Tests/SubtractTests.cs
using System; using Xunit; namespace Farity.Tests { public class SubtractTests { [Theory] [InlineData(1, 2)] [InlineData(-1, 2)] public void SubtractSubtractsTwoIntegers(int a, int b) { var expected = a - b; var actual = F.Subtract(a, b); ...
using System; using Xunit; namespace Farity.Tests { public class SubtractTests { [Theory] [InlineData(1, 2)] [InlineData(-1, 2)] public void SubtractSubtractsTwoIntegers(int a, int b) { var expected = a - b; var actual = F.Subtract(a, b); ...
mit
C#
fbae55b0c231b7b113431a23f08df8a2a7327d06
Remove buttons home view
RateMyPoPo/website,RateMyPoPo/website,RateMyPoPo/website,RateMyPoPo/website
FedUp/Views/Home/Index.cshtml
FedUp/Views/Home/Index.cshtml
@{ ViewBag.Title = "Home Page"; } <div class="jumbotron"> <h1>FedUp</h1> <p class="lead">Empowering citizens in police interactions via mobile evidence collection. </p> <p><a href="https://github.com/RateMyPoPo" class="btn btn-primary btn-lg">Check out our github &raquo;</a></p> </div> <div class="ro...
@{ ViewBag.Title = "Home Page"; } <div class="jumbotron"> <h1>FedUp</h1> <p class="lead">Empowering citizens in police interactions via mobile evidence collection of geolocation, timestamps, and audio.</p> <p><a href="https://github.com/RateMyPoPo" class="btn btn-primary btn-lg">Learn more &raquo;</a>...
apache-2.0
C#
370ccc8c28725b240222e6ed49980bc179ef4ed9
Add extension method for convert colore color to WinForms color
CoraleStudios/Colore,WolfspiritM/Colore
Corale.Colore.WinForms/Extensions.cs
Corale.Colore.WinForms/Extensions.cs
// <copyright file="Extensions.cs" company="Corale"> // Copyright © 2015 by Adam Hellberg and Brandon Scott. // // 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 rest...
// <copyright file="Extensions.cs" company="Corale"> // Copyright © 2015 by Adam Hellberg and Brandon Scott. // // 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 rest...
mit
C#
931d742b2993841ac629a4995c440d3f91d2c01d
Fix cref.
chtoucas/Narvalo.NET,chtoucas/Narvalo.NET
src/Narvalo.Fx/Linq/Qperators.cs
src/Narvalo.Fx/Linq/Qperators.cs
// Copyright (c) Narvalo.Org. All rights reserved. See LICENSE.txt in the project root for license information. namespace Narvalo.Linq { /// <summary> /// Provides a set of static and extension methods for querying /// objects that implement <see cref="System.Collections.Generic.IEnumerable{T}"/>. ///...
// Copyright (c) Narvalo.Org. All rights reserved. See LICENSE.txt in the project root for license information. namespace Narvalo.Linq { /// <summary> /// Provides a set of static and extension methods for querying /// objects that implement <see cref="IEnumerable{T}"/>. /// </summary> /// <remark...
bsd-2-clause
C#
374864a7aa7dd2fb829f7ec0ca3d343dbbd9e136
Update version info
LambdaSix/InfiniMap,LambdaSix/InfiniMap
InfiniMap/Properties/AssemblyInfo.cs
InfiniMap/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("In...
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("In...
mit
C#
024edd228b7c470facac316530713616e735342c
Add missing "the"
ppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework
osu.Framework/Input/States/MouseState.cs
osu.Framework/Input/States/MouseState.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 osu.Framework.Extensions.TypeExtensions; using osu.Framework.Input.StateChanges; using osuTK; using osuTK.Input; namespace osu.Framework.Input.States { public ...
// 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 osu.Framework.Extensions.TypeExtensions; using osu.Framework.Input.StateChanges; using osuTK; using osuTK.Input; namespace osu.Framework.Input.States { public ...
mit
C#
45b4fc9201849483d0d08ec770c6c5b89d413d6a
Add xmldoc
NeoAdonis/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,EVAST9919/osu,NeoAdonis/osu,2yangk23/osu,peppy/osu,UselessToucan/osu,johnneijzen/osu,ppy/osu,2yangk23/osu,smoogipooo/osu,johnneijzen/osu,ZLima12/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu-new,EVAST9919/osu,ppy/osu,UselessToucan/osu,ZLima12/o...
osu.Game.Rulesets.Osu/OsuInputManager.cs
osu.Game.Rulesets.Osu/OsuInputManager.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.ComponentModel; using osu.Framework.Input.Bindings; using osu.Framework.Input.Events; using osu.Game.Rulesets.UI; namespa...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.ComponentModel; using osu.Framework.Input.Bindings; using osu.Framework.Input.Events; using osu.Game.Rulesets.UI; namespa...
mit
C#
f419518887b2d840cb06f80f04bc2393985fc903
Make comment xmldoc
smoogipoo/osu,johnneijzen/osu,UselessToucan/osu,ppy/osu,UselessToucan/osu,peppy/osu,naoey/osu,naoey/osu,smoogipooo/osu,smoogipoo/osu,EVAST9919/osu,naoey/osu,UselessToucan/osu,2yangk23/osu,ZLima12/osu,DrabWeb/osu,DrabWeb/osu,NeoAdonis/osu,ppy/osu,ppy/osu,ZLima12/osu,EVAST9919/osu,smoogipoo/osu,Nabile-Rahmani/osu,peppy/o...
osu.Game/Rulesets/Mods/IApplicableMod.cs
osu.Game/Rulesets/Mods/IApplicableMod.cs
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE namespace osu.Game.Rulesets.Mods { /// <summary> /// The base interface for a mod which can be applied in some way. /// If this is not implemented by...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE namespace osu.Game.Rulesets.Mods { // The base interface for a mod which can be applied in some way. public interface IApplicableMod { } }
mit
C#
928bce8fcdee3daf785539cd068b48274eae30e0
Fix crash when attempting to watch a replay when the storage file doesn't exist
ppy/osu,peppy/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu
osu.Game/Scoring/LegacyDatabasedScore.cs
osu.Game/Scoring/LegacyDatabasedScore.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 System.Linq; using osu.Framework.IO.Stores; using osu.Game.Beatmaps; using osu.Game.Extensions; using osu.Game.Rulesets; using osu....
// 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 System.Linq; using osu.Framework.IO.Stores; using osu.Game.Beatmaps; using osu.Game.Extensions; using osu.Game.Rulesets; using osu....
mit
C#
ad985c526682817f37b3d2ea82cc97eb637146da
Update CMSG_LOGINREQUEST.cs
minhjemmesiden/Wakfusharp
Network/Packets/CMSG_LOGINREQUEST.cs
Network/Packets/CMSG_LOGINREQUEST.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WakSharp.Network.Packets { public class CMSG_LOGINREQUEST : WakfuClientMessage { public string Username { get; set; } public string Password { get; set; } public CMSG_LOGINREQUE...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WakSharp.Network.Packets { public class CMSG_LOGINREQUEST : WakfuClientMessage { public string Username { get; set; } public string Password { get; set; } public CMSG_LOGINREQUEST(byte[] da...
mit
C#
0c7739e00f99070305d5b5a3c3a8ffad72d699bd
Add AutoPlay property
modplug/LottieXamarin,fabionuno/LottieXamarin,martijn00/LottieXamarin,fabionuno/LottieXamarin,martijn00/LottieXamarin
Lottie.Forms/AnimationView.cs
Lottie.Forms/AnimationView.cs
using System; using Xamarin.Forms; namespace Lottie.Forms { public class AnimationView : View { public static readonly BindableProperty ProgressProperty = BindableProperty.Create(nameof(Progress), typeof(float), typeof(AnimationView), default(float)); public static readonly Bindabl...
using System; using Xamarin.Forms; namespace Lottie.Forms { public class AnimationView : View { public static readonly BindableProperty ProgressProperty = BindableProperty.Create(nameof(Progress), typeof(float), typeof(AnimationView), default(float)); public static readonly Bindabl...
apache-2.0
C#
d1d7b1bb59c018631837e783a67553f8230389e1
revert to before branch
Earlz/lucidmvc,Earlz/lucidmvc
BarelyMVC/Routing/RedirectHandler.cs
BarelyMVC/Routing/RedirectHandler.cs
/* Copyright (c) 2010 - 2012 Jordan "Earlz/hckr83" Earls <http://lastyearswishes.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright ...
/* Copyright (c) 2010 - 2012 Jordan "Earlz/hckr83" Earls <http://lastyearswishes.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright ...
bsd-3-clause
C#
711c2dd1ac1dfdb5a898065e9d66519c2b66f355
Update GetFile.cs
muhammedikinci/FuzzyCore
FuzzyCore/CommandClasses/GetFile.cs
FuzzyCore/CommandClasses/GetFile.cs
using FuzzyCore.Data; using FuzzyCore.Server; using System; using System.IO; namespace FuzzyCore.Commands { public class GetFile { ConsoleMessage Message = new ConsoleMessage(); private String FilePath; private String FileName; private JsonCommand mCommand; public GetFi...
using FuzzyCore.Data; using FuzzyCore.Server; using System; using System.IO; namespace FuzzyCore.Commands { public class GetFile { ConsoleMessage Message = new ConsoleMessage(); private String FilePath; private String FileName; private JsonCommand mCommand; public GetFi...
mit
C#
e33332c4aedb5b92b286748a447001d85697329b
Fix datetime unit test
smarkets/IronSmarkets
IronSmarkets.Tests/DateTimeTests.cs
IronSmarkets.Tests/DateTimeTests.cs
// Copyright (c) 2011 Smarkets Limited // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use, copy, // modify, merge, pu...
// Copyright (c) 2011 Smarkets Limited // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use, copy, // modify, merge, pu...
mit
C#
78d027b8d11f38256eb56004f9f6f84f5a6767df
Put body data type check into switch statement
yojimbo87/ArangoDB-NET
src/Arango/Arango.Client/Protocol/Response.cs
src/Arango/Arango.Client/Protocol/Response.cs
using System; using System.Net; using Arango.fastJSON; namespace Arango.Client.Protocol { internal class Response { internal int StatusCode { get; set; } internal WebHeaderCollection Headers { get; set; } internal string Body { get; set; } internal DataType DataType ...
using System; using System.Net; using Arango.fastJSON; namespace Arango.Client.Protocol { internal class Response { internal int StatusCode { get; set; } internal WebHeaderCollection Headers { get; set; } internal string Body { get; set; } internal DataType DataType ...
mit
C#
5e6a3321faa2ddc1665c6f3346b423d8326e4685
Increase version
cap9/EEPhysics
EEPhysics/Properties/AssemblyInfo.cs
EEPhysics/Properties/AssemblyInfo.cs
using System.Runtime.InteropServices; using System.Reflection; // 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("EEPhysics")] [assembly: AssemblyDescripti...
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("EEPhysics")] [assembly: AssemblyDescripti...
mit
C#
ba6c5309e44adeafd2fce84b39cb629dec59b29a
Format date with user culture
dlidstrom/Snittlistan,dlidstrom/Snittlistan,dlidstrom/Snittlistan
SnittListan/Infrastructure/AutoMapperProfiles/MatchProfile.cs
SnittListan/Infrastructure/AutoMapperProfiles/MatchProfile.cs
using System.Threading; using AutoMapper; using SnittListan.Models; using SnittListan.ViewModels; namespace SnittListan.Infrastructure { public class MatchProfile : Profile { protected override void Configure() { Mapper.CreateMap<Match, MatchViewModel>() .ForMember(x => x.Date, o => o.MapFrom...
using AutoMapper; using SnittListan.Models; using SnittListan.ViewModels; namespace SnittListan.Infrastructure { public class MatchProfile : Profile { protected override void Configure() { Mapper.CreateMap<Match, MatchViewModel>() .ForMember(x => x.Date, o => o.MapFrom(y => y.Date.ToShortDateS...
mit
C#
ff5e6c0dcfeb8d9eb62ad5527486faa7af24af75
Make DefaultComboColours a property
NeoAdonis/osu,EVAST9919/osu,2yangk23/osu,ppy/osu,EVAST9919/osu,johnneijzen/osu,ppy/osu,smoogipoo/osu,ppy/osu,peppy/osu,peppy/osu-new,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,smoogipooo/osu,2yangk23/osu,UselessToucan/osu,peppy/osu,johnneijzen/osu,smoogipoo/osu,peppy/osu
osu.Game/Skinning/SkinConfiguration.cs
osu.Game/Skinning/SkinConfiguration.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.Linq; using osu.Game.Beatmaps.Formats; using osuTK.Graphics; namespace osu.Game.Skinning { /// <summary> /// An e...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.Linq; using osu.Game.Beatmaps.Formats; using osuTK.Graphics; namespace osu.Game.Skinning { /// <summary> /// An e...
mit
C#
ecd934ae7a86c9852844180f54af819023460fbe
update the server dto
imranmomin/Hangfire.Firebase
Hangfire.Firebase/Entities/Server.cs
Hangfire.Firebase/Entities/Server.cs
using System; namespace Hangfire.Firebase.Entities { internal class Server { public string Id { get; set; } public int Workers { get; set; } public string[] Queues { get; set; } public DateTime CreatedOn { get; set; } public DateTime LastHeartbeat { get; set; } } }
using System; namespace Hangfire.Firebase.Entities { internal class Server { public string Id { get; set; } public string Name { get; set; } public DateTime LastHeartbeat { get; set; } } }
mit
C#
0048c192919400ad0da939c32406a5f3a876ed71
Make ExceptionProblemDetails public
khellang/Middleware,khellang/Middleware
src/ProblemDetails/ExceptionProblemDetails.cs
src/ProblemDetails/ExceptionProblemDetails.cs
using System; using Microsoft.AspNetCore.Http; namespace Hellang.Middleware.ProblemDetails { public class ExceptionProblemDetails : StatusCodeProblemDetails { private static readonly string[] LineSeparators = { Environment.NewLine }; public ExceptionProblemDetails(Exception error) : this(erro...
using System; using Microsoft.AspNetCore.Http; namespace Hellang.Middleware.ProblemDetails { internal class ExceptionProblemDetails : StatusCodeProblemDetails { private static readonly string[] LineSeparators = { Environment.NewLine }; public ExceptionProblemDetails(Exception error) : this(er...
mit
C#
0e9bb6f5a7b93b3e6c18356c883a6fe372ae0fff
Update SDK version to v.4.0.1
NIFTYCloud-mbaas/ncmb_unity,NIFTYCloud-mbaas/ncmb_unity,NIFTYCloud-mbaas/ncmb_unity
ncmb_unity/Assets/NCMB/Script/CommonConstant.cs
ncmb_unity/Assets/NCMB/Script/CommonConstant.cs
/******* Copyright 2017-2018 FUJITSU CLOUD TECHNOLOGIES LIMITED All Rights Reserved. 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 requir...
/******* Copyright 2017-2018 FUJITSU CLOUD TECHNOLOGIES LIMITED All Rights Reserved. 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 requir...
apache-2.0
C#
b91b9320af94cd34e90c6edaf082ab506b733c55
make obsolete message more descriptive on constructor
dkackman/FakeHttp
FakeHttp/ResponseCallbacks.cs
FakeHttp/ResponseCallbacks.cs
using System; using System.IO; using System.Net.Http; using System.Threading.Tasks; namespace FakeHttp { /// <summary> /// Default implementations of the <see cref="IResponseCallbacks"/> interface that do nothing /// </summary> public class ResponseCallbacks : IResponseCallbacks { private ...
using System; using System.IO; using System.Net.Http; using System.Threading.Tasks; namespace FakeHttp { /// <summary> /// Default implementations of the <see cref="IResponseCallbacks"/> interface that do nothing /// </summary> public class ResponseCallbacks : IResponseCallbacks { private ...
apache-2.0
C#
c9111628657a30bb95a9c766503c9586124b37bd
Update 20170707.cs
twilightspike/cuddly-disco,twilightspike/cuddly-disco
main/20170707.cs
main/20170707.cs
float timer = 80f; /*120sec = 2min*/ void Update(){ timer = Time.deltaTime; GetComponent<ok>().text = timer.ToString(); }
float timer = 80f;
mit
C#
831132300e4df39366c4fbb62f0848e10fe46604
Update Program.cs
stephanstapel/ZUGFeRD-csharp,stephanstapel/ZUGFeRD-csharp
ZUGFeRDToExcelTest/Program.cs
ZUGFeRDToExcelTest/Program.cs
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ZUGFeRDToExcelTest { class Program { static void Main(string[] args) { } } }
apache-2.0
C#
a18e0b3b2faa0d94601021a688ee88efe09cb15b
Fix test scene
UselessToucan/osu,peppy/osu,NeoAdonis/osu,2yangk23/osu,ppy/osu,peppy/osu,peppy/osu,ZLima12/osu,UselessToucan/osu,EVAST9919/osu,smoogipoo/osu,smoogipoo/osu,ZLima12/osu,2yangk23/osu,smoogipooo/osu,ppy/osu,johnneijzen/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,EVAST9919/osu,NeoAdonis/osu,johnneijzen/osu,ppy/osu,pep...
osu.Game.Tests/Visual/Online/TestSceneChangelogOverlay.cs
osu.Game.Tests/Visual/Online/TestSceneChangelogOverlay.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 NUnit.Framework; using osu.Game.Online.API.Requests.Responses; using osu.Game.Overlays; using osu.Game.Overlays.Cha...
// 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 NUnit.Framework; using osu.Game.Online.API.Requests.Responses; using osu.Game.Overlays; using osu.Game.Overlays.Cha...
mit
C#
c602b58165eab126545073c6227c8fd39534de42
Add checks for Wasta and Cinnamon in PlatformUtilities
sillsdev/libpalaso,mccarthyrb/libpalaso,gtryus/libpalaso,hatton/libpalaso,gtryus/libpalaso,gmartin7/libpalaso,gtryus/libpalaso,glasseyes/libpalaso,andrew-polk/libpalaso,ddaspit/libpalaso,tombogle/libpalaso,hatton/libpalaso,JohnThomson/libpalaso,ermshiperete/libpalaso,sillsdev/libpalaso,JohnThomson/libpalaso,JohnThomson...
Palaso/PlatformUtilities/Platform.cs
Palaso/PlatformUtilities/Platform.cs
// Copyright (c) 2014 SIL International // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) // Parts based on code by MJ Hutchinson http://mjhutchinson.com/journal/2010/01/25/integrating_gtk_application_mac using System; namespace Palaso.PlatformUtilities { public static class Plat...
// Copyright (c) 2014 SIL International // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) // Parts based on code by MJ Hutchinson http://mjhutchinson.com/journal/2010/01/25/integrating_gtk_application_mac using System; namespace Palaso.PlatformUtilities { public static class Plat...
mit
C#
79fe9aea114c5bd23ed5df166ae8c635c1a8e903
Document Level
HQC-Team-Minesweeper-5/Minesweeper
src/Minesweeper.Logic/Level.cs
src/Minesweeper.Logic/Level.cs
namespace Minesweeper.Logic { /// <summary> /// Util class that holds the params of the chosen level in the begining of the game /// </summary> public class Level { public Level(int numberOfRows, int numberOfCols, int numberOfMines) { this.NumberOfRows = numberOfRows; ...
namespace Minesweeper.Logic { public class Level { public Level(int numberOfRows, int numberOfCols, int numberOfMines) { this.NumberOfRows = numberOfRows; this.NumberOfCols = numberOfCols; this.NumberOfMines = numberOfMines; } public int Numb...
mit
C#
f80e4ea94c7105776879dd368c0b5095f5a0f885
Make Preconditions.CheckNotNull internal so we can use it elsewhere
jskeet/DemoCode,jskeet/DemoCode,jskeet/DemoCode,jskeet/DemoCode
CSharp8/Nullability/Preconditions.cs
CSharp8/Nullability/Preconditions.cs
using System; using System.Diagnostics.CodeAnalysis; namespace Nullability { class Precondition { static void Main() { string? text = MaybeNull(); string textNotNull = CheckNotNull(text); // This is relatively obvious... Console.WriteLine(textNot...
using System; using System.Diagnostics.CodeAnalysis; namespace Nullability { class Precondition { static void Main() { string? text = MaybeNull(); string textNotNull = CheckNotNull(text); // This is relatively obvious... Console.WriteLine(textNot...
apache-2.0
C#
ae2120f9eb26e23ffb8fd49b91d98fbecf2dd26b
Revert back to old signature (transpilers get confused with multiple version); add opcode=Call
pardeike/Harmony
Harmony/Transpilers.cs
Harmony/Transpilers.cs
using System; using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; namespace Harmony { public static class Transpilers { public static IEnumerable<CodeInstruction> MethodReplacer(this IEnumerable<CodeInstruction> instructions, MethodBase from, MethodBase to) { if (from == n...
using System; using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; namespace Harmony { public static class Transpilers { public static IEnumerable<CodeInstruction> MethodReplacer(this IEnumerable<CodeInstruction> instructions, MethodBase from, MethodBase to, OpCode? callOpcode =...
mit
C#
ac03ef3d108c8498f92df50cc3bbc2f9ff06a462
Convert Main to be async
martincostello/website,martincostello/website,martincostello/website,martincostello/website
src/Website/Program.cs
src/Website/Program.cs
// Copyright (c) Martin Costello, 2016. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.Website { using System; using System.Threading.Tasks; using Extensions; using Microsoft.AspNetCore; ...
// Copyright (c) Martin Costello, 2016. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.Website { using System; using Extensions; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting...
apache-2.0
C#
c2956613bb1c41cf894f0ab2ee5abd7b363e9356
Fix for saving window state while minimized on closing
Esri/military-planner-application-csharp
source/MilitaryPlanner/Views/MainWindow.xaml.cs
source/MilitaryPlanner/Views/MainWindow.xaml.cs
using System.Windows; namespace MilitaryPlanner.Views { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { //InitializeComponent(); } protected override void OnClosing(...
using System.Windows; namespace MilitaryPlanner.Views { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { //InitializeComponent(); } } }
apache-2.0
C#
b41765ffde15bb7308261b203a5267339414eaaa
Remove unused constructor for Core.FSM.GestureMachine
rubyu/CreviceApp,rubyu/CreviceApp
CreviceApp/Core.FSM.GestureMachine.cs
CreviceApp/Core.FSM.GestureMachine.cs
using System; using System.Collections.Generic; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CreviceApp.Core.FSM { public class GestureMachine : IDisposable { public StateGlobal Global { get; private set; } public...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CreviceApp.Core.FSM { public class GestureMachine : IDisposable { public StateGlobal Global { get; private set; } public...
mit
C#
14ea0baf7e482e8fef42b37dd5ac32a463219181
Disable options when not executing in VS
github/VisualStudio,github/VisualStudio,github/VisualStudio
src/GitHub.VisualStudio/Settings/OptionsPage.cs
src/GitHub.VisualStudio/Settings/OptionsPage.cs
using System; using System.Windows; using System.Windows.Controls; using System.ComponentModel; using System.Runtime.InteropServices; using GitHub.Exports; using GitHub.Logging; using GitHub.Settings; using GitHub.VisualStudio.UI; using Microsoft.VisualStudio.Shell; using Serilog; namespace GitHub.VisualStudio { ...
using GitHub.Settings; using GitHub.VisualStudio.UI; using Microsoft.VisualStudio.Shell; using System; using System.ComponentModel; using System.Runtime.InteropServices; using System.Windows; namespace GitHub.VisualStudio { [ClassInterface(ClassInterfaceType.AutoDual)] [ComVisible(true)] [Guid("68C87C7B-0...
mit
C#
5871d52fd004bc82ccc5ad2106e64242d8ed1cee
Make M readonly
coinfoundry/miningcore,coinfoundry/miningcore,coinfoundry/miningcore,coinfoundry/miningcore
src/Miningcore/Blockchain/Ergo/ErgoConstants.cs
src/Miningcore/Blockchain/Ergo/ErgoConstants.cs
using System.Text.RegularExpressions; // ReSharper disable InconsistentNaming namespace Miningcore.Blockchain.Ergo; public static class ErgoConstants { public const uint ShareMultiplier = 256; public const decimal SmallestUnit = 1000000000; public static readonly Regex RegexChain = new("ergo-([^-]+)-.+",...
using System.Text.RegularExpressions; // ReSharper disable InconsistentNaming namespace Miningcore.Blockchain.Ergo; public static class ErgoConstants { public const uint ShareMultiplier = 256; public const decimal SmallestUnit = 1000000000; public static readonly Regex RegexChain = new("ergo-([^-]+)-.+",...
mit
C#
fd0e50d57626c8fca9a3eb204468cc0ad0350c2c
Make precedence test public to be discoverable by test runner.
plasma-umass/parcel,plasma-umass/parcel,plasma-umass/parcel
ParcelTest/PrecedenceTests.cs
ParcelTest/PrecedenceTests.cs
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using ExprOpt = Microsoft.FSharp.Core.FSharpOption<AST.Expression>; using Expr = AST.Expression; namespace ParcelTest { [TestClass] public class PrecedenceTests { [TestMethod] public void MultiplicationVsAdditionPrecedenceTe...
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using ExprOpt = Microsoft.FSharp.Core.FSharpOption<AST.Expression>; using Expr = AST.Expression; namespace ParcelTest { [TestClass] class PrecedenceTests { [TestMethod] public void MultiplicationVsAdditionPrecedenceTest() ...
bsd-2-clause
C#
d3e610c636f4aa654ada72486a0caf5b9cb2ac58
Update version to 1.0.0.2
ddobric/durabletask,Azure/durabletask,yonglehou/durabletask,affandar/durabletask,jasoneilts/durabletask
Framework/Properties/AssemblyInfo.cs
Framework/Properties/AssemblyInfo.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....
// ---------------------------------------------------------------------------------- // 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....
apache-2.0
C#
81c16d8d10260cd6aa4590dd55ce6af4228ca871
Fix post filter test after boost/descriptor refactoring
KodrAus/elasticsearch-net,RossLieberman/NEST,adam-mccoy/elasticsearch-net,cstlaurent/elasticsearch-net,TheFireCookie/elasticsearch-net,KodrAus/elasticsearch-net,azubanov/elasticsearch-net,jonyadamit/elasticsearch-net,jonyadamit/elasticsearch-net,jonyadamit/elasticsearch-net,UdiBen/elasticsearch-net,azubanov/elasticsear...
src/Nest/QueryDsl/MatchAllQuery.cs
src/Nest/QueryDsl/MatchAllQuery.cs
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using Nest.Resolvers.Converters; using Newtonsoft.Json; namespace Nest { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] [JsonConverter(typeof(ReadAsTypeConverter<MatchAllQuery>))] public interface IMat...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using Nest.Resolvers.Converters; using Newtonsoft.Json; namespace Nest { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] [JsonConverter(typeof(ReadAsTypeConverter<MatchAllQuery>))] public interface IMat...
apache-2.0
C#
6cca579472db9129cef29ef43441b928a69774e3
Fix TU
rducom/ALM
Alm.Test/AnswerTest.cs
Alm.Test/AnswerTest.cs
using System; using Xunit; namespace Alm.Test { public class AnswerTest { [Fact] public void TryGetTheAnswer() { var computer = new MegaComputer(); Assert.Throws<ArgumentNullException>(() => computer.Ask(null)); } } }
using System; using Xunit; namespace Alm.Test { public class AnswerTest { [Fact] public void TryGetTheAnswer() { var computer = new MegaComputer(); Assert.Throws<Exception>(() => computer.Ask(null)); } } }
mit
C#
ab639214795a0bf44a93de911ee5c473d95bd6cf
Add option to disable gravity for debugging.
PlanetLotus/TetrisClone2D
Assets/ShapeManager.cs
Assets/ShapeManager.cs
using UnityEngine; using System; public class ShapeManager : MonoBehaviour { public GameObject StartingObject; public bool DisableGravity; public void MoveActiveShapeDown() { if (activeShape == null) { return; } Vector3 position = activeShape.transform.pos...
using UnityEngine; using System; public class ShapeManager : MonoBehaviour { public GameObject StartingObject; public void MoveActiveShapeDown() { if (activeShape == null) { return; } Vector3 position = activeShape.transform.position; activeShape.trans...
mit
C#
9398327b675e2595323a816c5e2962385cd1df8b
Fix order of startup
mycroes/SupportManager,mycroes/SupportManager,mycroes/SupportManager
SupportManager.Web/Program.cs
SupportManager.Web/Program.cs
using System.Diagnostics; using System.IO; using Hangfire; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Server.HttpSys; using SupportManager.Contracts; using Topshelf; namespace SupportManager.Web { public class Program { private static string[] args; ...
using System.Diagnostics; using System.IO; using Hangfire; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Server.HttpSys; using SupportManager.Contracts; using Topshelf; namespace SupportManager.Web { public class Program { private static string[] args; ...
mit
C#
e2489b3b74c6a2422187e77b4d79d906cf9f1f87
Update AssemblyInfo.cs
Brightspace/D2L.Security.OAuth2
src/D2L.Security.OAuth2.WebApi/Properties/AssemblyInfo.cs
src/D2L.Security.OAuth2.WebApi/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; [assembly: AssemblyTitle( "D2L.Security.WebApi" )] [assembly: AssemblyDescription( "A library that implements Web API components for authenticating D2L services." )] [assembly: AssemblyCompany( "Desire2Learn" )] [assembly: AssemblyProduct( "Brights...
using System.Reflection; using System.Runtime.CompilerServices; [assembly: AssemblyTitle( "D2L.Security.WebApi" )] [assembly: AssemblyDescription( "A library that implements Web API components for authenticating D2L services." )] [assembly: AssemblyCompany( "Desire2Learn" )] [assembly: AssemblyProduct( "Brights...
apache-2.0
C#
a588432febbf61ea6824cec1cd322046c22d0071
add another test
huoxudong125/Metrics.NET,ntent-ad/Metrics.NET,DeonHeyns/Metrics.NET,MetaG8/Metrics.NET,DeonHeyns/Metrics.NET,Liwoj/Metrics.NET,ntent-ad/Metrics.NET,Recognos/Metrics.NET,alhardy/Metrics.NET,MetaG8/Metrics.NET,Recognos/Metrics.NET,cvent/Metrics.NET,mnadel/Metrics.NET,cvent/Metrics.NET,mnadel/Metrics.NET,Liwoj/Metrics.NET...
Src/Metrics.Tests/AtomicLongTests.cs
Src/Metrics.Tests/AtomicLongTests.cs
using FluentAssertions; using Metrics.Utils; using Xunit; namespace Metrics.Tests { public class AtomicLongTests { [Fact] public void AtomicLongDefaultsToZero() { new AtomicLong().Value.Should().Be(0L); } [Fact] public void AtomicLongCanBeCreatedWit...
using FluentAssertions; using Metrics.Utils; using Xunit; namespace Metrics.Tests { public class AtomicLongTests { [Fact] public void AtomicLongDefaultsToZero() { new AtomicLong().Value.Should().Be(0L); } [Fact] public void AtomicLongCanBeCreatedWit...
apache-2.0
C#
ea3b36807426d70a30b633924d1b352c31d19975
remove "https://" prefix from sso validate token address
bgTeamDev/bgTeam.Core,bgTeamDev/bgTeam.Core
src/bgTeam.SSO.Client/SsoClient.cs
src/bgTeam.SSO.Client/SsoClient.cs
namespace bgTeam.SSO.Client { using System; using System.IdentityModel.Tokens.Jwt; using System.Net.Http; using System.Threading.Tasks; using Newtonsoft.Json; // TODO: cache responses: public key -> response // TODO: http client issues review: http://www.nimaara.com/2016/11/01/beware-of-th...
namespace bgTeam.SSO.Client { using System; using System.IdentityModel.Tokens.Jwt; using System.Net.Http; using System.Threading.Tasks; using Newtonsoft.Json; // TODO: cache responses: public key -> response // TODO: http client issues review: http://www.nimaara.com/2016/11/01/beware-of-th...
mit
C#
79aeeb49b5a2a02167cda5f81178fdb233631fd9
Tweak date formatting
mattgwagner/Cash-Flow-Projection,mattgwagner/Cash-Flow-Projection,mattgwagner/Cash-Flow-Projection,mattgwagner/Cash-Flow-Projection
src/Cash-Flow-Projection/Models/Entry.cs
src/Cash-Flow-Projection/Models/Entry.cs
using System; using System.ComponentModel.DataAnnotations; namespace Cash_Flow_Projection.Models { public class Entry { /// <summary> /// A unique identifer generated for the entry /// </summary> public String id { get; set; } = Guid.NewGuid().ToString(); /// <summary>...
using System; using System.ComponentModel.DataAnnotations; namespace Cash_Flow_Projection.Models { public class Entry { /// <summary> /// A unique identifer generated for the entry /// </summary> public String id { get; set; } = Guid.NewGuid().ToString(); /// <summary>...
mit
C#
be4f536b06560425d14eb0c9320ca667e84e5c66
Make MetadataToken IEquatable
gluck/cecil
Mono.Cecil.Metadata/MetadataToken.cs
Mono.Cecil.Metadata/MetadataToken.cs
// // Author: // Jb Evain (jbevain@gmail.com) // // Copyright (c) 2008 - 2015 Jb Evain // Copyright (c) 2008 - 2011 Novell, Inc. // // Licensed under the MIT/X11 license. // using System; namespace Mono.Cecil { public struct MetadataToken : IEquatable<MetadataToken> { readonly uint token; public uint RID { ...
// // Author: // Jb Evain (jbevain@gmail.com) // // Copyright (c) 2008 - 2015 Jb Evain // Copyright (c) 2008 - 2011 Novell, Inc. // // Licensed under the MIT/X11 license. // namespace Mono.Cecil { public struct MetadataToken { readonly uint token; public uint RID { get { return token & 0x00ffffff; } } ...
mit
C#
981048e8f80a4987a36b0e24ac517b9ba59f40ed
test implementation of error page
ramzzzay/GalleryMVC_With_Auth,ramzzzay/GalleryMVC_With_Auth,ramzzzay/GalleryMVC_With_Auth
GalleryMVC_With_Auth/Views/Errors/Index.cshtml
GalleryMVC_With_Auth/Views/Errors/Index.cshtml
@model Exception @{ ViewBag.Title = "Index"; } <h2>Index</h2> @Model.Message
 @{ ViewBag.Title = "Index"; } <h2>Index</h2>
apache-2.0
C#
40245838d6762fff8d384dcea47828d9062b323e
add test
SixLabors/Fonts
tests/SixLabors.Fonts.Tests/Issues/Issues_47.cs
tests/SixLabors.Fonts.Tests/Issues/Issues_47.cs
using System.Collections.Immutable; using SixLabors.Fonts.Tests.Fakes; using Xunit; namespace SixLabors.Fonts.Tests.Issues { public class Issues_47 { [Theory] [InlineData("hello world hello world hello world hello world")] public void LeftAlignedTextNewLineShouldNotStartWithWhiteSpace(s...
using System.Collections.Immutable; using SixLabors.Fonts.Tests.Fakes; using Xunit; namespace SixLabors.Fonts.Tests.Issues { public class Issues_47 { [Theory] [InlineData("hello world hello world hello world hello world")] public void LeftAlignedTextNewLineShouldNotStartWithWhiteSpace(s...
apache-2.0
C#
913a0490fd9d6b1e7a0f8f66055cd1c5c8f3cd24
add logs
dotnetcore/CAP,dotnetcore/CAP,ouraspnet/cap,dotnetcore/CAP
src/DotNetCore.CAP/Internal/ICallbackMessageSender.Default.cs
src/DotNetCore.CAP/Internal/ICallbackMessageSender.Default.cs
using System; using System.Threading.Tasks; using DotNetCore.CAP.Abstractions; using DotNetCore.CAP.Infrastructure; using DotNetCore.CAP.Models; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace DotNetCore.CAP.Internal { internal class CallbackMessageSender : ICallbackM...
using System; using System.Threading.Tasks; using DotNetCore.CAP.Abstractions; using DotNetCore.CAP.Infrastructure; using DotNetCore.CAP.Models; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace DotNetCore.CAP.Internal { internal class CallbackMessageSender : ICallbackM...
mit
C#
53f3c227ef23c24aed528e87c670f0db2d4da49d
Remove the silly error I am adding
RockstarLabs/GeoToast,RockstarLabs/GeoToast,RockstarLabs/GeoToast
src/GeoToast/Infrastructure/Filters/ValidateModelAttribute.cs
src/GeoToast/Infrastructure/Filters/ValidateModelAttribute.cs
using System.Linq; using GeoToast.Infrastructure.Errors; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; namespace GeoToast.Infrastructure.Filters { public class ValidateModelAttribute : ActionFilterAttribute { public override void OnActionExecuting(ActionExecutingContext contex...
using System.Linq; using GeoToast.Infrastructure.Errors; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; namespace GeoToast.Infrastructure.Filters { public class ValidateModelAttribute : ActionFilterAttribute { public override void OnActionExecuting(ActionExecutingContext contex...
mit
C#
1f27d2b04fb19558a40ef8de296adab17d6303f8
Bump Assembly version to 1.0.0.11
Azure/durabletask,affandar/durabletask,ddobric/durabletask
Framework/Properties/AssemblyInfo.cs
Framework/Properties/AssemblyInfo.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....
// ---------------------------------------------------------------------------------- // 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....
apache-2.0
C#
7b27f6b37829e98a6643e737227eb0616032aa2b
Add droplet rotation animation
ppy/osu,peppy/osu-new,EVAST9919/osu,2yangk23/osu,peppy/osu,UselessToucan/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,2yangk23/osu,UselessToucan/osu,NeoAdonis/osu,johnneijzen/osu,smoogipooo/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,johnneijzen/osu,peppy/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,EVAST9919/osu
osu.Game.Rulesets.Catch/Objects/Drawable/DrawableDroplet.cs
osu.Game.Rulesets.Catch/Objects/Drawable/DrawableDroplet.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 osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Utils; using osu.Game.Rulesets.Catch.Objects.Drawable.Pieces; using osu.Game.Skinning; ...
// 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 osu.Framework.Allocation; using osu.Game.Rulesets.Catch.Objects.Drawable.Pieces; using osu.Game.Skinning; using osuTK.Graphics; namespace osu.Game.Rulesets.Catch....
mit
C#
c5dba2c3e12f4accbf86285f4868c4035ed11de9
Fix compilation issue introduced with the windows service feature
laurentkempe/Nubot,lionelplessis/Nubot,laurentkempe/Nubot,lionelplessis/Nubot
Nubot/Plugins/Httpd.cs
Nubot/Plugins/Httpd.cs
namespace Nubot.Plugins{ using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.Diagnostics; using System.Net; using System.Text; using Interfaces; using Nancy; using Nancy.TinyIoc; [Export(typeof(IRobotPlugin))] public class H...
namespace Nubot.Plugins{ using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.Diagnostics; using System.Net; using System.Text; using Interfaces; using Nancy; using Nancy.TinyIoc; [Export(typeof(IRobotPlugin))] public class H...
mit
C#
0bbaafc51f0850426b5e5c4639a45420c6637fe8
Add QueryEduLevels and QueryEduProgramLevels methods
roman-yagodin/R7.University,roman-yagodin/R7.University,roman-yagodin/R7.University
R7.University/Data/UniversityDataRepository.cs
R7.University/Data/UniversityDataRepository.cs
// // UniversityDataRepository.cs // // Author: // Roman M. Yagodin <roman.yagodin@gmail.com> // // Copyright (c) 2016 Roman M. Yagodin // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Fou...
// // UniversityDataRepository.cs // // Author: // Roman M. Yagodin <roman.yagodin@gmail.com> // // Copyright (c) 2016 Roman M. Yagodin // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Fou...
agpl-3.0
C#
ba0e233f85032e6534ffa6174a632cb7d906a3e7
Fix OS based character Encoding issue
Tochemey/Iso85834Net
ModIso8583.Test/Parse/TestEncoding.cs
ModIso8583.Test/Parse/TestEncoding.cs
using System; using System.Text; using ModIso8583.Parse; using ModIso8583.Util; using Xunit; namespace ModIso8583.Test.Parse { public class TestEncoding { [Fact] public void WindowsToUtf8() { string data = "05ácido"; Encoding encoding = Encoding.GetEncoding("ISO...
using System; using System.Text; using ModIso8583.Parse; using ModIso8583.Util; using Xunit; namespace ModIso8583.Test.Parse { public class TestEncoding { [Fact(Skip = "character encoding issue")] public void WindowsToUtf8() { string data = "05ácido"; Encoding e...
mit
C#
cea1370e10baa7fe3dd06dda54513a01c1eb17ca
Remove unused variable
aj-r/RiotNet
RiotNet/JsonContent.cs
RiotNet/JsonContent.cs
using Newtonsoft.Json; using System.IO; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; namespace RiotNet { /// <summary> /// Represents HTTP content in JSON format. /// </summary> public class JsonContent : HttpContent { private object...
using Newtonsoft.Json; using System.IO; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; namespace RiotNet { /// <summary> /// Represents HTTP content in JSON format. /// </summary> public class JsonContent : HttpContent { private object...
mit
C#
c8f3014356e54c5137d542e3b2c526ad33524b1c
Handle Discover
LordMike/TMDbLib
TMDbLib/Client/TMDbClientDiscover.cs
TMDbLib/Client/TMDbClientDiscover.cs
using System.Collections.Specialized; using System.Threading.Tasks; using RestSharp; using TMDbLib.Objects.Discover; using TMDbLib.Objects.General; using TMDbLib.Utilities; namespace TMDbLib.Client { public partial class TMDbClient { /// <summary> /// Can be used to discover new tv shows match...
using System.Collections.Specialized; using System.Threading.Tasks; using RestSharp; using TMDbLib.Objects.Discover; using TMDbLib.Objects.General; namespace TMDbLib.Client { public partial class TMDbClient { /// <summary> /// Can be used to discover new tv shows matching certain criteria ...
mit
C#
7666d5973f036662981d7117879f6cf4814ddfb3
fix build issue in coreclr
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
test/WebSites/BasicWebSite/Controllers/OrderController.cs
test/WebSites/BasicWebSite/Controllers/OrderController.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 System; using System.Collections.Generic; using System.Reflection; using Microsoft.AspNet.Mvc; namespace BasicWebSite { pub...
// 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 System; using System.Collections.Generic; using Microsoft.AspNet.Mvc; namespace BasicWebSite { public class OrderController...
apache-2.0
C#
bc9e8d83d2035591679e8de2167d4e815873c066
Add distance method to Vector3
dmweis/DynamixelServo,dmweis/DynamixelServo,dmweis/DynamixelServo,dmweis/DynamixelServo
DynamixelServo.Quadruped/Vector3.cs
DynamixelServo.Quadruped/Vector3.cs
using System; namespace DynamixelServo.Quadruped { public struct Vector3 { public readonly float X; public readonly float Y; public readonly float Z; public Vector3(float x, float y, float z) { X = x; Y = y; Z = z; } ...
namespace DynamixelServo.Quadruped { public struct Vector3 { public readonly float X; public readonly float Y; public readonly float Z; public Vector3(float x, float y, float z) { X = x; Y = y; Z = z; } public static ...
apache-2.0
C#
7cadb51cdf5d1bd1b67915eaca31ca0192968eb6
Update control comments
anjdreas/roslyn-analyzers
SampleConsoleApp/Program.cs
SampleConsoleApp/Program.cs
namespace SampleConsoleApp { internal static class Program { private static void Main(string[] args) { // ObjectInitializer_AssignAll enable Foo foo = new Foo { PropInt = 1, // ObjectInitializer_AssignAll disable ...
namespace SampleConsoleApp { internal static class Program { private static void Main(string[] args) { // Roslyn enable analyzer ObjectInitializer_AssignAll Foo foo = new Foo { PropInt = 1, // Roslyn disable analyzer ObjectInit...
mit
C#
e89d08f5f34eb8cac20a46b4f892bac2c84fd697
Disable exception throwing when ModelState is not valid
dmytrokuzmin/RepairisCore,dmytrokuzmin/RepairisCore,dmytrokuzmin/RepairisCore
src/Repairis.Web.Core/Controllers/RepairisControllerBase.cs
src/Repairis.Web.Core/Controllers/RepairisControllerBase.cs
using Abp.AspNetCore.Mvc.Controllers; using Abp.IdentityFramework; using Abp.Runtime.Validation; using Microsoft.AspNetCore.Identity; namespace Repairis.Controllers { [DisableValidation] public abstract class RepairisControllerBase: AbpController { protected RepairisControllerBase() { ...
using Abp.AspNetCore.Mvc.Controllers; using Abp.IdentityFramework; using Microsoft.AspNetCore.Identity; namespace Repairis.Controllers { public abstract class RepairisControllerBase: AbpController { protected RepairisControllerBase() { LocalizationSourceName = RepairisConsts.Localiz...
mit
C#
082c8910a2a05b78dabbdc76b646f693635049ba
change help url
stanac/shutdown
ShutDown/MainWindow.xaml.cs
ShutDown/MainWindow.xaml.cs
using ShutDown.Data; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Win...
using ShutDown.Data; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Win...
mit
C#
844b136657da4590e73c54125ac7adce2b2bb7cb
Add relay.md
bitbeans/SimpleDnsCrypt
SimpleDnsCrypt/Helper/PatchHelper.cs
SimpleDnsCrypt/Helper/PatchHelper.cs
namespace SimpleDnsCrypt.Helper { /// <summary> /// Class to update the configuration file. /// </summary> public static class PatchHelper { public static bool Patch() { var version = VersionHelper.PublishVersion; if (!DnscryptProxyConfigurationManager.LoadConfiguration()) return false; if (version....
namespace SimpleDnsCrypt.Helper { /// <summary> /// Class to update the configuration file. /// </summary> public static class PatchHelper { public static bool Patch() { var version = VersionHelper.PublishVersion; if (!DnscryptProxyConfigurationManager.LoadConfiguration()) return false; if (version....
mit
C#
487d077dca59f0d416d0a6fac77660ba1a623acf
Remove readonly
AlexCatarino/pythonnet,AlexCatarino/pythonnet,AlexCatarino/pythonnet,AlexCatarino/pythonnet
src/runtime/typeaccessormanager.cs
src/runtime/typeaccessormanager.cs
using System; using System.Collections.Generic; using System.Dynamic; using FastMember; namespace Python.Runtime { /// <summary> /// TypeAccessorManager creates TypeAccessor instances when necessary. /// </summary> public class TypeAccessorManager { private static Dictionary<Type, TypeAcc...
using System; using System.Collections.Generic; using System.Dynamic; using FastMember; namespace Python.Runtime { /// <summary> /// TypeAccessorManager creates TypeAccessor instances when necessary. /// </summary> public class TypeAccessorManager { private static readonly Dictionary<Type...
mit
C#
22d993ae6bc88fd8eceb0edfa30cb83285067082
Remove IOperation.IsInstantaneous, no longer needed.
huin/kerbcam2
kerbcam2/IOperation.cs
kerbcam2/IOperation.cs
 namespace kerbcam2 { /// <summary> /// Handles modification of the world (or camera) during a given time range. /// Strictly speaking, the times are inclusive of the start time, and /// exclusive of the end time, except where they are equal, which implies /// an instantaneous effect. /// </sum...
 namespace kerbcam2 { /// <summary> /// Handles modification of the world (or camera) during a given time range. /// Strictly speaking, the times are inclusive of the start time, and /// exclusive of the end time, except where they are equal, which implies /// an instantaneous effect. /// </sum...
bsd-3-clause
C#
c34d4123d71d9d829510e9aaa8ca8a54878ed0e7
Update StubBehavior.cs
XamlBehaviors/XamlBehaviors,wieslawsoltes/AvaloniaBehaviors,wieslawsoltes/AvaloniaBehaviors,XamlBehaviors/XamlBehaviors
tests/Avalonia.Xaml.Interactivity.UnitTests/StubBehavior.cs
tests/Avalonia.Xaml.Interactivity.UnitTests/StubBehavior.cs
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. namespace Avalonia.Xaml.Interactivity.UnitTests { public class StubBehavior : AvaloniaObject, IBehavior { public int AttachCount { ...
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System.Collections.Generic; namespace Avalonia.Xaml.Interactivity.UnitTests { public class StubBehavior : AvaloniaObject, IBehavior { pu...
mit
C#
46c0f9ed8635f330319d53ae4596e80e3067bff4
Remove unused imports
MHeasell/Mappy,MHeasell/Mappy
Mappy/Models/IMapViewSettingsModel.cs
Mappy/Models/IMapViewSettingsModel.cs
namespace Mappy.Models { using System; using System.Drawing; using System.Windows.Forms; using Mappy.Database; public interface IMapViewSettingsModel { IObservable<bool> GridVisible { get; } IObservable<Color> GridColor { get; } IObservable<Size> GridSi...
namespace Mappy.Models { using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; using Mappy.Data; using Mappy.Database; public interface IMapViewSettingsModel { IObservable<bool> GridVisible { get; } IObservable...
mit
C#
faa9c244842262cfeec00ce94011f45911959a1e
fix jtoken
Xarlot/NGitLab,maikebing/NGitLab
NGitLab/NGitLab/Json/Sha1Converter.cs
NGitLab/NGitLab/Json/Sha1Converter.cs
using System; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace NGitLab.Json { public class Sha1Converter : JsonConverter { public override bool CanConvert(Type objectType) { return objectType == typeof(Sha1); } public override object ReadJson(JsonReader reader, Typ...
using System; using Newtonsoft.Json; namespace NGitLab.Json { public class Sha1Converter : JsonConverter { public override bool CanConvert(Type objectType) { return objectType == typeof(Sha1); } public override object ReadJson(JsonReader reader, Type objectType, object existin...
mit
C#
04750ce524823faa1a0091e0e49c2e1419be2727
Use ReactiveUI Events for Loaded and SelectionChanged
ApplETS/ETSMobile-WindowsPlatforms,ApplETS/ETSMobile-WindowsPlatforms
Ets.Mobile/Ets.Mobile.WindowsPhone/Pages/Main/MainPage.xaml.cs
Ets.Mobile/Ets.Mobile.WindowsPhone/Pages/Main/MainPage.xaml.cs
using System; using Windows.UI.Xaml; using EventsMixin = Windows.UI.Xaml.Controls.EventsMixin; namespace Ets.Mobile.Pages.Main { public sealed partial class MainPage { partial void PartialInitialize() { // Ensure to hide the status bar var statusBar = Windows...
using ReactiveUI; using Windows.UI.Xaml; namespace Ets.Mobile.Pages.Main { public sealed partial class MainPage { partial void PartialInitialize() { // Ensure to hide the status bar var statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView(); ...
apache-2.0
C#
8044107b5f3597c7a034dbe2946b919b4988f9f8
update the solution for karaoke.
komitoff/Softuni-Programming-Fundamentals,komitoff/Softuni-Programming-Fundamentals,komitoff/Softuni-Programming-Fundamentals,komitoff/Softuni-Programming-Fundamentals,komitoff/Softuni-Programming-Fundamentals
ExamPreparation/Exam1June2016/SoftuniKaraoke/SoftuniKaraoke.cs
ExamPreparation/Exam1June2016/SoftuniKaraoke/SoftuniKaraoke.cs
using System; using System.Collections.Generic; using System.Linq; class SoftuniKaraoke { static void Main() { List<string> appliedParticipants = Console.ReadLine().Split(',').ToList(); List<string> aviableSongs = Console.ReadLine().TrimStart().Split(',').ToList(); for (int i = 0; i <...
using System; using System.Collections.Generic; using System.Linq; class SoftuniKaraoke { static void Main() { List<string> appliedParticipants = Console.ReadLine().Split(',').ToList(); List<string> aviableSongs = Console.ReadLine().TrimStart().Split(',').ToList(); for (int i = 0; i <...
mit
C#
f6315a8986a513361c3f199d7da651dac53fb8f6
Add OutputEvent.
Microsoft/vscode-mono-debug,Microsoft/vscode-mono-debug
src/common/Events.cs
src/common/Events.cs
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------...
mit
C#
4d0d1fd8674639f1ed8c59735edef29b08cb41ca
Update DurationToDateTimeOffsetConverter.cs
Nikey646/VndbSharp
VndbSharp/Json/Converters/DurationToDateTimeOffsetConverter.cs
VndbSharp/Json/Converters/DurationToDateTimeOffsetConverter.cs
using System; using Newtonsoft.Json; namespace VndbSharp.Json.Converters { internal class DurationToDateTimeOffsetConverter : JsonConverter { public override void WriteJson(JsonWriter writer, Object value, JsonSerializer serializer) { // Is this the correct order? Or should it be 'value - Now'? serializer...
using System; using Newtonsoft.Json; namespace VndbSharp.Json.Converters { internal class DurationToDateTimeOffsetConverter : JsonConverter { public override void WriteJson(JsonWriter writer, Object value, JsonSerializer serializer) { // Is this the correct order? Or should it be 'value - Now'? serializer...
mit
C#
83bf07d51b6be34b792ec52a2e5418b083dc6fb5
Update DateContextEnum.cs
ADAPT/ADAPT
source/ADAPT/Common/DateContextEnum.cs
source/ADAPT/Common/DateContextEnum.cs
/******************************************************************************* * Copyright (C) 2015 AgGateway and ADAPT Contributors * Copyright (C) 2015 Deere and Company * Copyright (C) 2019 Syngenta * All rights reserved. This program and the accompanying materials * are made available under the terms of...
/******************************************************************************* * Copyright (C) 2015 AgGateway and ADAPT Contributors * Copyright (C) 2015 Deere and Company * Copyright (C) 2019 Syngenta * All rights reserved. This program and the accompanying materials * are made available under the terms of...
epl-1.0
C#
9abd73e0350bb472351f23fbe7831da8000d4d37
Add GetTititleEstimate that accepts data from URI.
bigfont/webapi-cors
CORS/Controllers/ValuesController.cs
CORS/Controllers/ValuesController.cs
using System.Collections.Generic; using System.Web.Http; using System.Web.Http.Cors; namespace CORS.Controllers { public class ValuesController : ApiController { // GET api/values public IEnumerable<string> Get() { return new string[] { "This is a CORS request.",...
using System.Collections.Generic; using System.Web.Http; using System.Web.Http.Cors; namespace CORS.Controllers { public class ValuesController : ApiController { // GET api/values public IEnumerable<string> Get() { return new string[] { "This is a CORS request.",...
mit
C#
ba98e0a15a7b44b1fc4911f4cf6b36409d655244
Stop Equinox complaining about session download patch not being static
TorchAPI/Torch
Torch/Patches/SessionDownloadPatch.cs
Torch/Patches/SessionDownloadPatch.cs
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Sandbox.Game.World; using Torch.Managers.PatchManager; using Torch.Mod; using VRage.Game; namespace Torch.Patches { [PatchShim] internal static class SessionDownlo...
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Sandbox.Game.World; using Torch.Managers.PatchManager; using Torch.Mod; using VRage.Game; namespace Torch.Patches { [PatchShim] internal class SessionDownloadPatch...
apache-2.0
C#
522f7379e4ae244b27636657cbb020755013227f
Fix ColoreException test performing wrong comparison.
danpierce1/Colore,CoraleStudios/Colore,Sharparam/Colore,WolfspiritM/Colore
Colore.Tests/ColoreExceptionTests.cs
Colore.Tests/ColoreExceptionTests.cs
namespace Colore.Tests { using System; using NUnit.Framework; [TestFixture] public class ColoreExceptionTests { [Test] public void ShouldSetMessage() { const string Expected = "Test message."; Assert.AreEqual(Expected, new ColoreException("Test mess...
namespace Colore.Tests { using System; using NUnit.Framework; [TestFixture] public class ColoreExceptionTests { [Test] public void ShouldSetMessage() { const string Expected = "Test message."; Assert.AreEqual(Expected, new ColoreException("Test mess...
mit
C#
be1f22298266915202df31ea5c0f554c7e23cae9
Update the ExposureNotifications (#887)
xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents
XPlat/ExposureNotification/build.cake
XPlat/ExposureNotification/build.cake
var TARGET = Argument("t", Argument("target", "ci")); var SRC_COMMIT = "fcff875013295514a22e71648a7c6ad985dc4f9f"; var SRC_URL = $"https://github.com/xamarin/xamarin.exposurenotification/archive/{SRC_COMMIT}.zip"; var OUTPUT_PATH = (DirectoryPath)"./output/"; var NUGET_VERSION = "0.5.0-preview"; Task("externals") ....
var TARGET = Argument("t", Argument("target", "ci")); var SRC_COMMIT = "fb7d888ebce17ab7d579a7c51c3e9ff30688502d"; var SRC_URL = $"https://github.com/xamarin/xamarin.exposurenotification/archive/{SRC_COMMIT}.zip"; var OUTPUT_PATH = (DirectoryPath)"./output/"; var NUGET_VERSION = "0.4.0-preview"; Task("externals") ....
mit
C#
68419a9510963c4c5f27caa7bfb88a3875b39a34
Improve password reset email copy (#2211)
btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver
BTCPayServer/Extensions/EmailSenderExtensions.cs
BTCPayServer/Extensions/EmailSenderExtensions.cs
using System.Text.Encodings.Web; using BTCPayServer.Services.Mails; namespace BTCPayServer.Services { public static class EmailSenderExtensions { private static string BODY_STYLE = "font-family: Open Sans, Helvetica Neue,Arial,sans-serif; font-color: #292929;"; private static string HEADER_HTML...
using System.Text.Encodings.Web; using BTCPayServer.Services.Mails; namespace BTCPayServer.Services { public static class EmailSenderExtensions { public static void SendEmailConfirmation(this IEmailSender emailSender, string email, string link) { emailSender.SendEmail(email, "Confir...
mit
C#
3f4345918fef5162ab200598528f2a1a4c6c6f6c
Update VehicleService.cs
mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander
Battery-Commander.Web/Services/VehicleService.cs
Battery-Commander.Web/Services/VehicleService.cs
using BatteryCommander.Web.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BatteryCommander.Web.Services { public class VehicleService { public static async Task Reset_Convoy(Database db, Query quer...
using BatteryCommander.Web.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BatteryCommander.Web.Services { public class VehicleService { public static async Task Reset_Convoy(Database db, Query quer...
mit
C#
d639d329789153a4b9e20890efcdf2f55276129f
Move details to first in list
mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander
Battery-Commander.Web/Views/Soldiers/List.cshtml
Battery-Commander.Web/Views/Soldiers/List.cshtml
@model IEnumerable<Soldier> <h2>Soldiers @Html.ActionLink("Add New", "New", "Soldiers", null, new { @class = "btn btn-default" })</h2> <table class="table table-striped"> <thead> <tr> <th></th> <th>@Html.DisplayNameFor(_ => _.FirstOrDefault().Rank)</th> <th>@Html.Displ...
@model IEnumerable<Soldier> <h2>Soldiers @Html.ActionLink("Add New", "New", "Soldiers", null, new { @class = "btn btn-default" })</h2> <table class="table table-striped"> <thead> <tr> <th>@Html.DisplayNameFor(_ => _.FirstOrDefault().Rank)</th> <th>@Html.DisplayNameFor(_ => _.First...
mit
C#
f41f14042382a817c35bc21e34fb0c6036ca7f19
Add to soldier list
mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander
Battery-Commander.Web/Views/Soldiers/List.cshtml
Battery-Commander.Web/Views/Soldiers/List.cshtml
@model IEnumerable<Soldier> <h2>Soldiers</h2> @Html.ActionLink("Add New Soldier", "New") <table class="table table-striped"> <thead> <tr> <th>@Html.DisplayNameFor(_ => _.FirstOrDefault().Rank)</th> <th>@Html.DisplayNameFor(_ => _.FirstOrDefault().LastName)</th> <th>@H...
@model IEnumerable<Soldier> <h2>Soldiers</h2> @Html.ActionLink("Add New Soldier", "New") <table class="table table-striped"> <thead> <tr> <th>@Html.DisplayNameFor(_ => _.FirstOrDefault().Rank)</th> <th>@Html.DisplayNameFor(_ => _.FirstOrDefault().LastName)</th> <th>@H...
mit
C#
01911993b4dd7140f8a4766365e5daebd0d13ee6
Add thread-safe random number instance
benjaminramey/Faker
Faker/NumberFaker.cs
Faker/NumberFaker.cs
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; namespace Faker { public static class NumberFaker { private static readonly RNGCryptoServiceProvider Global = new RNGCryptoServiceProvider(); [ThreadStatic] privat...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Faker { public static class NumberFaker { private static Random _random = new Random(); public static int Number() { return _random.Next(); } public static int Number(int maxValue) { return _random.Ne...
apache-2.0
C#
fc3e9280ede7afe7f1bbf9d4332eb08a7087098f
Add namespace (#823)
GeertvanHorrik/Fody,Fody/Fody
FodyHelpers/Guard.cs
FodyHelpers/Guard.cs
using System; using System.IO; namespace Fody { [Obsolete("Not for public use")] public static class Guard { public static void AgainstNull(string argumentName, object value) { if (value == null) { throw new ArgumentNullException(argumentName); ...
using System; using System.IO; [Obsolete("Not for public use")] public static class Guard { public static void AgainstNull(string argumentName, object value) { if (value == null) { throw new ArgumentNullException(argumentName); } } public static void AgainstNullAnd...
mit
C#
e3c29b46fe2f3af3be5e54b08fc198c263db88cf
Revert "Another hack"
matthew-a-thomas/gps-logger,matthew-a-thomas/gps-logger
GPSLogger/Program.cs
GPSLogger/Program.cs
using System.IO; using Microsoft.AspNetCore.Hosting; namespace GPSLogger { public class Program { public static void Main(string[] args) { var host = new WebHostBuilder() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) ...
using System.IO; using Microsoft.AspNetCore.Hosting; namespace GPSLogger { public class Program { public static void Main(string[] args) { var host = new WebHostBuilder() .CaptureStartupErrors(true) .UseSetting("detailedErrors", "true") ...
mit
C#
581cfd7518261a5ea7a6976416db20b6509a422e
Update version number to 0.4.0.
beppler/trayleds
TrayLeds/Properties/AssemblyInfo.cs
TrayLeds/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("TrayLeds")] [assembly: AssemblyDescription...
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("TrayLeds")] [assembly: AssemblyDescription...
mit
C#
fa74d4313f9b91c7f3a20259c2d9337d6fa651af
make Internal Aggregate State as Serializable.
selganor74/Jarvis.Framework,selganor74/Jarvis.Framework,selganor74/Jarvis.Framework,ProximoSrl/Jarvis.Framework
Jarvis.Framework.Kernel/Engine/AggregateState.cs
Jarvis.Framework.Kernel/Engine/AggregateState.cs
using System; using Fasterflect; using Jarvis.Framework.Shared.Events; using Jarvis.Framework.Shared.IdentitySupport; using Jarvis.NEventStoreEx.CommonDomainEx; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.IO; namespace Jarvis.Framework.Kernel.Engine ...
using System; using Fasterflect; using Jarvis.Framework.Shared.Events; using Jarvis.Framework.Shared.IdentitySupport; using Jarvis.NEventStoreEx.CommonDomainEx; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.IO; namespace Jarvis.Framework.Kernel.Engine ...
mit
C#
fc43d93f58e0b889ed0d0c5be364b74ccac6ea29
Update InclusionChecker.cs
Fody/Virtuosity
Virtuosity.Fody/InclusionChecker.cs
Virtuosity.Fody/InclusionChecker.cs
using System; using System.Collections.Generic; using System.Linq; using Mono.Cecil; public partial class ModuleWeaver { public Func<TypeDefinition, bool> ShouldIncludeType; List<LineMatcher> lineMatchers; public void ProcessIncludesExcludes() { if (ExcludeNamespaces.Any()) { ...
using System; using System.Collections.Generic; using System.Linq; using Mono.Cecil; public partial class ModuleWeaver { public Func<TypeDefinition, bool> ShouldIncludeType; List<LineMatcher> lineMatchers; public void ProcessIncludesExcludes() { if (ExcludeNamespaces.Any()) { ...
mit
C#
0d62eed32b50c9ce5c8b3d570418f455916bace6
update drpc demo.
ziyunhx/storm-net-adapter,ziyunhx/storm-net-adapter,ziyunhx/storm-net-adapter,ziyunhx/storm-net-adapter,ziyunhx/storm-net-adapter
src/Samples/Storm.DRPC.Demo/Program.cs
src/Samples/Storm.DRPC.Demo/Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Storm; namespace Storm.DRPC.Demo { public class Program { public static void Main(string[] args) { DRPCClient client = new DRPCClient("host", 3772); string result = cl...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Storm; namespace Storm.DRPC.Demo { public class Program { public static void Main(string[] args) { DRPCClient client = new DRPCClient("mech.palaspom.com", 49772); stri...
apache-2.0
C#
2b7c4b9309749f8fa6ebe1a0e9b6e17fec4a0c6a
Remove duplicate code in TestUtil.cs
Vodurden/Http-Multipart-Data-Parser
Source/HttpMultipartParser.UnitTests/TestUtil.cs
Source/HttpMultipartParser.UnitTests/TestUtil.cs
using System.IO; using System.Linq; using System.Text; namespace HttpMultipartParser.UnitTests { internal static class TestUtil { public static Stream StringToStream(string input) { return StringToStream(input, Encoding.UTF8); } public static Stream Str...
using System.IO; using System.Linq; using System.Text; namespace HttpMultipartParser.UnitTests { internal static class TestUtil { public static Stream StringToStream(string input) { return StringToStream(input, Encoding.UTF8); } public static Stream Str...
mit
C#
0bb0d6125870c0380b855aa5d548dc78de1685f4
Update IMongoUnitOfWorkFactory.cs
tiksn/TIKSN-Framework
TIKSN.Core/Data/Mongo/IMongoUnitOfWorkFactory.cs
TIKSN.Core/Data/Mongo/IMongoUnitOfWorkFactory.cs
using System.Threading; using System.Threading.Tasks; namespace TIKSN.Data.Mongo { public interface IMongoUnitOfWorkFactory { Task<IMongoUnitOfWork> CreateAsync(CancellationToken cancellationToken); } }
using System.Threading; using System.Threading.Tasks; namespace TIKSN.Data.Mongo { public interface IMongoUnitOfWorkFactory { Task<IMongoUnitOfWork> CreateAsync(CancellationToken cancellationToken); } }
mit
C#
48c297b017700726dd3cfcc21dcda4d1338ca534
Bump version for beta
maxmind/GeoIP2-dotnet
GeoIP2/Properties/AssemblyInfo.cs
GeoIP2/Properties/AssemblyInfo.cs
#region using System; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #endregion // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an asse...
#region using System; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #endregion // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an asse...
apache-2.0
C#
c2f18523c26e1e5d1b8a10b18266f7fc44d4d038
Fix failing test
Lc5/CurrencyRates,Lc5/CurrencyRates,Lc5/CurrencyRates
CurrencyRates.Tests/Web/Installers/ContextInstallerTest.cs
CurrencyRates.Tests/Web/Installers/ContextInstallerTest.cs
namespace CurrencyRates.Tests.Web.Installers { using Castle.Windsor; using CurrencyRates.Model; using CurrencyRates.Web.Installers; using NUnit.Framework; [TestFixture] public class ContextInstallerTest { private IWindsorContainer containerWithContext; [Set...
namespace CurrencyRates.Tests.Web.Installers { using Castle.Core; using Castle.MicroKernel; using Castle.MicroKernel.ModelBuilder; using Castle.Windsor; using CurrencyRates.Model; using CurrencyRates.Web.Installers; using NUnit.Framework; [TestFixture] public class C...
mit
C#
2caa7b50735595fb114dac5222aad04486df1b54
Use Url instead of UrlPath.
Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW
MitternachtWeb/Areas/User/Views/Verifications/Index.cshtml
MitternachtWeb/Areas/User/Views/Verifications/Index.cshtml
@model IEnumerable<(GommeHDnetForumAPI.Models.Entities.UserInfo UserInfo, Discord.WebSocket.SocketGuild Guild)> <h4>Verifizierungen</h4> <div class="table-responsive"> <table class="table"> <thead> <tr> <th></th> <th> @Html.DisplayNameFor(model => model.UserInfo.Username) </th> <th> @...
@model IEnumerable<(GommeHDnetForumAPI.Models.Entities.UserInfo UserInfo, Discord.WebSocket.SocketGuild Guild)> <h4>Verifizierungen</h4> <div class="table-responsive"> <table class="table"> <thead> <tr> <th></th> <th> @Html.DisplayNameFor(model => model.UserInfo.Username) </th> <th> @...
mit
C#
2d75d75d2062726af37f0e472393494e1f248c70
Fix prefix.
PenguinF/sandra-three
Sandra.UI.WF.Chess/SharedUIAction.cs
Sandra.UI.WF.Chess/SharedUIAction.cs
/********************************************************************************* * SharedUIAction.cs * * Copyright (c) 2004-2018 Henk Nicolai * * 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 cop...
/********************************************************************************* * SharedUIAction.cs * * Copyright (c) 2004-2018 Henk Nicolai * * 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 cop...
apache-2.0
C#
4957d7b6bda19408c64c2a2cf266baeea96e846b
Fix copyright year
locana/locana
Locana/Properties/AssemblyInfo.cs
Locana/Properties/AssemblyInfo.cs
using System.Resources; using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Locana")] ...
using System.Resources; using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Locana")] ...
mit
C#
c7c36b104afe215f6ddbebd94cc16b0615fdbcae
Make Local class public
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 { public class Local { [JsonProperty(propertyName: "autodetectionDirectories")] public List<string> AutodetectionDirectorie...
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#
93510c9537eab2767ada00112bd3538988a2dd65
remove use of USE_GENERICS in DefaultPersistentComparator.cs
kjk/volante-obsolete,kjk/volante-obsolete,kjk/volante-obsolete,ingted/volante,kjk/volante-obsolete,ingted/volante,ingted/volante,ingted/volante
csharp/src/impl/DefaultPersistentComparator.cs
csharp/src/impl/DefaultPersistentComparator.cs
namespace NachoDB.Impl { using System; using NachoDB; public class DefaultPersistentComparator<K,V> : PersistentComparator<K,V> where V:class,IPersistent,IComparable<V>,IComparable<K> { public override int CompareMembers(V m1, V m2) { return m1.CompareTo(m2); } ...
namespace NachoDB.Impl { using System; using NachoDB; #if USE_GENERICS public class DefaultPersistentComparator<K,V> : PersistentComparator<K,V> where V:class,IPersistent,IComparable<V>,IComparable<K> { public override int CompareMembers(V m1, V m2) { return m1.CompareTo(...
mit
C#
d1b29bdbb0d95b17097cd886d442bbffe7cdab16
Fix CouchbaseAsyncExample bug
couchbaselabs/couchbase-net-examples,couchbaselabs/couchbase-net-examples,couchbaselabs/couchbase-net-examples
Src/CouchbaseAsyncExample/Program.cs
Src/CouchbaseAsyncExample/Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Remoting.Channels; using System.Text; using System.Threading.Tasks; using Couchbase; using Couchbase.Configuration.Client; using Couchbase.Core; namespace CouchbaseAsyncExample { class Program { public class Person...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Remoting.Channels; using System.Text; using System.Threading.Tasks; using Couchbase; using Couchbase.Configuration.Client; using Couchbase.Core; namespace CouchbaseAsyncExample { class Program { public class Person...
apache-2.0
C#
c1766d8a411f1626255c1d74fbf0b634e7bc4610
Add paused state
NeoAdonis/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,ppy/osu
osu.Game/Online/Spectator/SpectatingUserState.cs
osu.Game/Online/Spectator/SpectatingUserState.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.Online.Spectator { public enum SpectatingUserState { /// <summary> /// The spectated user is not yet playing. /// </sum...
// 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.Online.Spectator { public enum SpectatingUserState { /// <summary> /// The spectated user is not yet playing. /// </sum...
mit
C#
c3edf02b2f2c43cebc304cd29aea3a4ff42afb3f
Add a test to make sure the migrator adds columns
praeclarum/sqlite-net,ericsink/sqlite-net
tests/MigrationTest.cs
tests/MigrationTest.cs
using System.Linq; using System.Text; using SQLite; #if NETFX_CORE using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; using SetUp = Microsoft.VisualStudio.TestPlatform.UnitTestFramework.TestInitializeAttribute; using TestFixture = Microsoft.VisualStudio.TestPlatform.UnitTestFramework.TestClassAttribute; usin...
using System.Linq; using System.Text; using SQLite; #if NETFX_CORE using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; using SetUp = Microsoft.VisualStudio.TestPlatform.UnitTestFramework.TestInitializeAttribute; using TestFixture = Microsoft.VisualStudio.TestPlatform.UnitTestFramework.TestClassAttribute; usin...
mit
C#