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 |
|---|---|---|---|---|---|---|---|---|
fc085739aa9d46d43fb3724a751443ecb54ce58c | update Windows | AlejandroCano/extensions,signumsoftware/extensions,signumsoftware/extensions,MehdyKarimpour/extensions,signumsoftware/framework,signumsoftware/framework,AlejandroCano/extensions,MehdyKarimpour/extensions | Signum.Windows.Extensions/Authorization/OperationAuthClient.cs | Signum.Windows.Extensions/Authorization/OperationAuthClient.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Signum.Entities.Authorization;
using Signum.Services;
using System.Windows.Markup;
using System.Windows;
using Signum.Windows.Operations;
using Signum.Utilities;
using Signum.Entities;
namespace Signum.Windows.Auth... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Signum.Entities.Authorization;
using Signum.Services;
using System.Windows.Markup;
using System.Windows;
using Signum.Windows.Operations;
using Signum.Utilities;
using Signum.Entities;
namespace Signum.Windows.Auth... | mit | C# |
4751601973861024ca9e46b0c8dbc16b2dd37a70 | Add SourceID and SourceType to journal | MatthewSteeples/XeroAPI.Net | source/XeroApi/Model/Journal.cs | source/XeroApi/Model/Journal.cs | using System;
namespace XeroApi.Model
{
public class Journal : EndpointModelBase
{
[ItemId]
public Guid JournalID { get; set; }
public DateTime JournalDate { get; set; }
public long JournalNumber { get; set; }
[ItemUpdatedDate]
public DateTime... | using System;
namespace XeroApi.Model
{
public class Journal : EndpointModelBase
{
[ItemId]
public Guid JournalID { get; set; }
public DateTime JournalDate { get; set; }
public long JournalNumber { get; set; }
[ItemUpdatedDate]
public DateTime... | mit | C# |
ee0a0a70c00baa2b5db03454947998c0d34d4236 | Fix IsStream decoding | martin211/aimp_DiskCover,martin211/aimp_DiskCover | Plugin/CoverFinder/Interface/TrackInfo.cs | Plugin/CoverFinder/Interface/TrackInfo.cs | using System;
using System.Diagnostics.Contracts;
using AIMP.SDK.Services.Player;
namespace AIMP.DiskCover
{
/// <summary>
/// Container for data of various data of
/// a musical track which might be required by
/// cover finder plugins.
/// </summary>
public class TrackInfo
{
pr... | using System;
using System.Diagnostics.Contracts;
using AIMP.SDK.Services.Player;
namespace AIMP.DiskCover
{
/// <summary>
/// Container for data of various data of
/// a musical track which might be required by
/// cover finder plugins.
/// </summary>
public class TrackInfo
{
pr... | apache-2.0 | C# |
6f9a3c777e3b80b9a4571cc353849a59ba8bdede | use 'using' pattern for GValue | freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp,GStreamer/gstreamer-sharp,freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp,gstreamer-sharp/gstreamer-sharp,gstreamer-sharp/gstreamer-sharp,GStreamer/gstreamer-sharp,gstreamer-sharp/gstreamer-sharp,freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp,G... | sources/custom/Object.cs | sources/custom/Object.cs | // Copyright (C) 2013 Stephan Sundermann <stephansundermann@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any ... | // Copyright (C) 2013 Stephan Sundermann <stephansundermann@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any ... | lgpl-2.1 | C# |
a0460b8216eedbf6dd02bde2f89ebb4ddf568447 | Fix bug to find non-existent sys db in mysql | SaladLab/TrackableData,SaladbowlCreative/TrackableData,SaladbowlCreative/TrackableData,SaladLab/TrackableData | plugins/TrackableData.MySql.Tests/Database.cs | plugins/TrackableData.MySql.Tests/Database.cs | using System;
using System.Configuration;
using System.Data.SqlClient;
using MySql.Data.MySqlClient;
namespace TrackableData.MySql.Tests
{
public class Database : IDisposable
{
public Database()
{
var cstr = ConfigurationManager.ConnectionStrings["TestDb"].ConnectionString;
... | using System;
using System.Configuration;
using System.Data.SqlClient;
using MySql.Data.MySqlClient;
namespace TrackableData.MySql.Tests
{
public class Database : IDisposable
{
public Database()
{
var cstr = ConfigurationManager.ConnectionStrings["TestDb"].ConnectionString;
... | mit | C# |
929df35ec0f94d477880205e281e93e1d295a2c5 | remove redundant constructor | pseale/monopoly-dotnet,pseale/monopoly-dotnet | src/MonopolyWeb/Models/ASPNETIdentity/IdentityModels.cs | src/MonopolyWeb/Models/ASPNETIdentity/IdentityModels.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Data.Entity.Validation;
using System.Linq;
using Microsoft.AspNet.Identity;
namespace ASPNETIdentity
{
// Modify the User class to add extra us... | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Data.Entity.Validation;
using System.Linq;
using Microsoft.AspNet.Identity;
namespace ASPNETIdentity
{
// Modify the User class to add extra us... | mit | C# |
537a777947707ca3cdd13e6a217e06de63609a7e | Fix build for VS15 | karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailAr... | src/Package/Impl/History/Commands/LoadHistoryCommand.cs | src/Package/Impl/History/Commands/LoadHistoryCommand.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using Microsoft.Common.Core.UI.Commands;
using Microsoft.Languages.Editor.Controller.Command;
using Microsoft.R.Components.Controller;
using Microsoft.... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using Microsoft.Common.Core.UI.Commands;
using Microsoft.Languages.Editor.Controller.Command;
using Microsoft.R.Components.Controller;
using Microsoft.... | mit | C# |
c2ca4aa37a9b11db026bb774d818fb6d5ceb3ba0 | Make UnlinkAppCommand implement ICommand | appharbor/appharbor-cli | src/AppHarbor/Commands/UnlinkAppCommand.cs | src/AppHarbor/Commands/UnlinkAppCommand.cs | using System;
namespace AppHarbor.Commands
{
public class UnlinkAppCommand : ICommand
{
public void Execute(string[] arguments)
{
throw new NotImplementedException();
}
}
}
| namespace AppHarbor.Commands
{
public class UnlinkAppCommand
{
}
}
| mit | C# |
aa9ea22dda7b88cd3bfe63d6ab1ef0772ce7ed88 | Fix concurrent access to OnReceived | alexvictoor/SignalR-Hazelcast,alexvictoor/SignalR-Hazelcast,alexvictoor/SignalR-Hazelcast | SignalR-Hazelcast/HzScaleoutMessageBus.cs | SignalR-Hazelcast/HzScaleoutMessageBus.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hazelcast.Core;
using Microsoft.AspNet.SignalR;
using Microsoft.AspNet.SignalR.Messaging;
namespace SignalR.Hazelcast
{
class HzScaleoutMessageBus : ScaleoutMessageBus
{
private re... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hazelcast.Core;
using Microsoft.AspNet.SignalR;
using Microsoft.AspNet.SignalR.Messaging;
namespace SignalR.Hazelcast
{
class HzScaleoutMessageBus : ScaleoutMessageBus
{
private re... | apache-2.0 | C# |
aabf28b4f5ee897fa356e45148c63ea3cb968c1f | allow execution of scripts with a parameterless Main method (-p:run) | rmartinho/boo,KidFashion/boo,Unity-Technologies/boo,scottstephens/boo,BITechnologies/boo,Unity-Technologies/boo,wbardzinski/boo,drslump/boo,KingJiangNet/boo,KingJiangNet/boo,scottstephens/boo,scottstephens/boo,rmartinho/boo,Unity-Technologies/boo,BitPuffin/boo,hmah/boo,rmartinho/boo,bamboo/boo,hmah/boo,drslump/boo,BITe... | src/Boo.Lang.Compiler/Steps/RunAssembly.cs | src/Boo.Lang.Compiler/Steps/RunAssembly.cs | #region license
// Copyright (c) 2004, Rodrigo B. de Oliveira (rbo@acm.org)
// All rights reserved.
//
// 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 retain the... | #region license
// Copyright (c) 2004, Rodrigo B. de Oliveira (rbo@acm.org)
// All rights reserved.
//
// 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 retain the... | bsd-3-clause | C# |
892d906ac78f1c66c6b1f77ba0d2339a7d74d27b | Fix tx link in payment request | btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver | BTCPayServer/Payments/PaymentTypes.Bitcoin.cs | BTCPayServer/Payments/PaymentTypes.Bitcoin.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using BTCPayServer.Payments.Bitcoin;
using BTCPayServer.Services.Invoices;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace BTCPayServer.Payments
{
public class BitcoinPaymentTy... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using BTCPayServer.Payments.Bitcoin;
using BTCPayServer.Services.Invoices;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace BTCPayServer.Payments
{
public class BitcoinPaymentTy... | mit | C# |
737e86b889ec4a96e8dbe40c37e876a985a612df | add usage check and message | akrisiun/gtk-sharp,antoniusriha/gtk-sharp,openmedicus/gtk-sharp,antoniusriha/gtk-sharp,antoniusriha/gtk-sharp,openmedicus/gtk-sharp,Gankov/gtk-sharp,sillsdev/gtk-sharp,akrisiun/gtk-sharp,openmedicus/gtk-sharp,sillsdev/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,orion75/gtk-sharp,Gankov/gtk-sharp,antoniusriha/... | sample/GstPlayer.cs | sample/GstPlayer.cs | // GstPlayer.cs - a simple Vorbis media player using GStreamer
//
// Author: Alp Toker <alp@atoker.com>
//
// Copyright (c) 2002 Alp Toker
using System;
using Gst;
public class GstTest
{
static void Main(string[] args)
{
if (args.Length != 1)
{
Console.WriteLine ("usage: Gst.Player.exe FILE.ogg");
return;... | // GstPlayer.cs - a simple Vorbis media player using GStreamer
//
// Author: Alp Toker <alp@atoker.com>
//
// Copyright (c) 2002 Alp Toker
using System;
using Gst;
public class GstTest
{
static void Main(string[] args)
{
Application.Init ();
/* create a new bin to hold the elements */
Pipeline bin = new Pipe... | lgpl-2.1 | C# |
d10d81d9ddab27e44563538fb3598372ff8571a3 | Update Class1.cs | krabonsz/indywidualne | DokumentyPacjenci/DokumentyPacjenci/Class1.cs | DokumentyPacjenci/DokumentyPacjenci/Class1.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DokumentyPacjenci
{
public class Class1
{
int baba { get; set; }
float facet {get;set;}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DokumentyPacjenci
{
public class Class1
{
int baba { get; set; }
}
}
| mit | C# |
13a0182942fd1fe1670909d90f396d21db73d7f7 | fix error on saving empty content | Franklin89/Blog,Franklin89/Blog | src/MLSoftware.Web/Model/PostExtensions.cs | src/MLSoftware.Web/Model/PostExtensions.cs | using Markdig;
using Markdig.Renderers;
using System.IO;
namespace MLSoftware.Web.Model
{
public static class PostExtensions
{
public static string Parse(this PostContent postContent)
{
var content = postContent.Content;
if (string.IsNullOrEmpty(content))
{
... | using Markdig;
using Markdig.Renderers;
using System.IO;
namespace MLSoftware.Web.Model
{
public static class PostExtensions
{
public static string Parse(this PostContent postContent)
{
var content = postContent.Content;
var pipeline = new MarkdownPipelineBuilder().UseY... | mit | C# |
a8521a832422b20de16bd6cd3f2cdc2a2a999a46 | Fix display of title in alert box | eleven41/Eleven41.Web.Mvc.Bootstrap | Eleven41.Web.Mvc.Bootstrap/AlertExtensions.cs | Eleven41.Web.Mvc.Bootstrap/AlertExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace System.Web.Mvc
{
public static class AlertExtensions
{
public static BootstrapAlert BeginSuccessBox(this HtmlHelper html)
{
return BeginSuccessBox(html, null);
}
public static BootstrapAlert BeginSuccessBox(t... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace System.Web.Mvc
{
public static class AlertExtensions
{
public static BootstrapAlert BeginSuccessBox(this HtmlHelper html)
{
return BeginSuccessBox(html, null);
}
public static BootstrapAlert BeginSuccessBox(t... | mit | C# |
664d96cda53f8f0a891a92db3a9db3475fe20f9f | Revert assess changes. | Magneseus/3x-eh | Assets/Scripts/Data/SubTasks/DTask_Assess.cs | Assets/Scripts/Data/SubTasks/DTask_Assess.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using UnityEngine;
using SimpleJSON;
public class DTask_Assess : DTask
{
private float assessAmount;
public DTask_Assess(DBuilding dBuilding, float assessAmount, int dMaxPeople, string dName) : base(... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using UnityEngine;
using SimpleJSON;
public class DTask_Assess : DTask
{
private float assessAmount;
private float oAssessAmount;
private float falloff;
public DTask_Assess(DBuilding dBuildin... | mit | C# |
56109cfb57f4c5bd1a1d5215d1013ecdf726e49f | Fix #3328 Add periodic flush count to FlushStats (#3360) | elastic/elasticsearch-net,elastic/elasticsearch-net | src/Nest/CommonOptions/Stats/FlushStats.cs | src/Nest/CommonOptions/Stats/FlushStats.cs | using Newtonsoft.Json;
namespace Nest
{
[JsonObject]
public class FlushStats
{
[JsonProperty("total")]
public long Total { get; set; }
/// <summary>
/// The number of flushes that were periodically triggered when translog exceeded the flush threshold.
/// </summary>
[JsonProperty("periodic")]
publi... | using Newtonsoft.Json;
namespace Nest
{
[JsonObject]
public class FlushStats
{
[JsonProperty("total")]
public long Total { get; set; }
[JsonProperty("total_time")]
public string TotalTime { get; set; }
[JsonProperty("total_time_in_millis")]
public long TotalTimeInMilliseconds { get; set; }
}
}
| apache-2.0 | C# |
b306a7b0a8ce6c837b20ea0a25d6f9bb2adc2fa4 | Add IsWarning to action result | webprofusion/Certify | src/Certify.Models/Config/ActionResult.cs | src/Certify.Models/Config/ActionResult.cs | namespace Certify.Models.Config
{
public class ActionResult
{
public ActionResult() { }
public ActionResult(string msg, bool isSuccess)
{
Message = msg;
IsSuccess = isSuccess;
}
public bool IsSuccess { get; set; }
public bool IsWarning { ... | namespace Certify.Models.Config
{
public class ActionResult
{
public ActionResult() { }
public ActionResult(string msg, bool isSuccess)
{
Message = msg;
IsSuccess = isSuccess;
}
public bool IsSuccess { get; set; }
public string Message { ... | mit | C# |
9bb224dadcf6af015dcb89f9f683d5957b7dde0b | change fields to static | ramzzzay/GalleryMVC_With_Auth,ramzzzay/GalleryMVC_With_Auth,ramzzzay/GalleryMVC_With_Auth | GalleryMVC_With_Auth/App_Start/RouteConfig.cs | GalleryMVC_With_Auth/App_Start/RouteConfig.cs | using System.Web.Mvc;
using System.Web.Routing;
using GalleryMVC_With_Auth.Resources;
namespace GalleryMVC_With_Auth
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRou... | using System.Web.Mvc;
using System.Web.Routing;
namespace GalleryMVC_With_Auth
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute("Default", "{controller}/{action}/{... | apache-2.0 | C# |
fb7c11a705364c60cdad36bb0562c361c96df3a0 | add guard clauses in engine for reader and writer providers | olebg/Movie-Theater-Project | MovieTheater/MovieTheater.Framework/Core/Engine.cs | MovieTheater/MovieTheater.Framework/Core/Engine.cs | using System;
using Bytes2you.Validation;
using MovieTheater.Framework.Common.Contracts;
using MovieTheater.Framework.Core.Contracts;
using MovieTheater.Framework.Core.Providers.Contracts;
namespace MovieTheater.Framework.Core
{
public class Engine : IEngine
{
private const string CommandParserCheck =... | using System;
using Bytes2you.Validation;
using MovieTheater.Framework.Common.Contracts;
using MovieTheater.Framework.Core.Contracts;
using MovieTheater.Framework.Core.Providers.Contracts;
namespace MovieTheater.Framework.Core
{
public class Engine : IEngine
{
private const string CommandParserCheck =... | mit | C# |
f0660c6e0be46af43e9abe43f887af7905c37a22 | Include "Line xx" in ToString() output | macro187/nugit | NuGit/VisualStudio/VisualStudioProjectReference.cs | NuGit/VisualStudio/VisualStudioProjectReference.cs | using NuGit.Infrastructure;
namespace NuGit.VisualStudio
{
/// <summary>
/// A Visual Studio solution reference to a project
/// </summary>
///
/// <remarks>
/// References are in <c>.sln</c> files in the following format:
/// <code>
/// Project("<TypeId>") = "<Na... | using NuGit.Infrastructure;
namespace NuGit.VisualStudio
{
/// <summary>
/// A Visual Studio solution reference to a project
/// </summary>
///
/// <remarks>
/// References are in <c>.sln</c> files in the following format:
/// <code>
/// Project("<TypeId>") = "<Na... | mit | C# |
2a8b84bd3deb0d7d6a8e8f0701e0d5521ee26206 | Remove use of UseWorkingDirectory in default template | cake-build/cake,gep13/cake,patriksvensson/cake,devlead/cake,patriksvensson/cake,devlead/cake,gep13/cake,cake-build/cake | src/Cake.Frosting.Template/templates/cakefrosting/build/Program.cs | src/Cake.Frosting.Template/templates/cakefrosting/build/Program.cs | using System.Threading.Tasks;
using Cake.Core;
using Cake.Core.Diagnostics;
using Cake.Frosting;
public static class Program
{
public static int Main(string[] args)
{
return new CakeHost()
.UseContext<BuildContext>()
.Run(args);
}
}
public class BuildContext : FrostingConte... | using System.Threading.Tasks;
using Cake.Core;
using Cake.Core.Diagnostics;
using Cake.Frosting;
public static class Program
{
public static int Main(string[] args)
{
return new CakeHost()
.UseContext<BuildContext>()
.UseWorkingDirectory("..")
.Run(args);
}
}
pu... | mit | C# |
d76e188d28657629f7c61b67953c77f52b8ecb17 | Update InsertingWAVFile.cs | aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells... | Examples/CSharp/Articles/InsertingWAVFile.cs | Examples/CSharp/Articles/InsertingWAVFile.cs | using System.IO;
using Aspose.Cells;
using System;
using Aspose.Cells.Drawing;
namespace Aspose.Cells.Examples.Articles
{
public class InsertingWAVFile
{
public static void Main()
{
//ExStart:1
// The path to the documents directory.
string dataDir = Aspose.... | using System.IO;
using Aspose.Cells;
using System;
using Aspose.Cells.Drawing;
namespace Aspose.Cells.Examples.Articles
{
public class InsertingWAVFile
{
public static void Main()
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.Get... | mit | C# |
cca59e6b95eed998bbe1e34103a8f3716eec2103 | add PackagePromotionContents | lvermeulen/ProGet.Net | src/ProGet.Net/PackagePromotion/Models/PackagePromotionContents.cs | src/ProGet.Net/PackagePromotion/Models/PackagePromotionContents.cs | // ReSharper disable InconsistentNaming
namespace ProGet.Net.PackagePromotion.Models
{
public class PackagePromotionContents
{
public string packageName { get; set; }
public string groupName { get; set; }
public string version { get; set; }
public string fromFeed { get; s... | namespace ProGet.Net.PackagePromotion.Models
{
public class PackagePromotionContents
{
}
}
| mit | C# |
bae1e37f3a917c61033cacb12f3a02526961bfd6 | Add other upgrades to enum | makerslocal/LudumDare38 | bees-in-the-trap/Assets/Scripts/Upgrade.cs | bees-in-the-trap/Assets/Scripts/Upgrade.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum Upgrade {
NONE, ROBOT, NIGHTVISION, UNICORN, ZOMBIE, REDHAT, BEEARD, BEEBALL, SCHOOLBUZZ, BUZZFEED, BEACH, GUM, VISOR
}
| using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum Upgrade {
NONE, ROBOT, NIGHTVISION, UNICORN, ZOMBIE, REDHAT, BEEARD
}
| mit | C# |
96915caad9c08dc8c99b733a7e252af8fd95994f | Fix for .net 4.0. | msallin/SQLiteCodeFirst | SQLite.CodeFirst/Extensions/EntityTypeExtension.cs | SQLite.CodeFirst/Extensions/EntityTypeExtension.cs | using System;
using System.Data.Entity.Core.Metadata.Edm;
using SQLite.CodeFirst.Builder.NameCreators;
using SQLite.CodeFirst.Utility;
namespace SQLite.CodeFirst.Extensions
{
internal static class EntityTypeExtension
{
public static string GetTableName(this EntityType entityType)
{
... | using System;
using System.Data.Entity.Core.Metadata.Edm;
using SQLite.CodeFirst.Builder.NameCreators;
using SQLite.CodeFirst.Utility;
namespace SQLite.CodeFirst.Extensions
{
internal static class EntityTypeExtension
{
public static string GetTableName(this EntityType entityType)
{
... | apache-2.0 | C# |
f42a880b3dbafbc79d6a1b2ded19c908a02ee005 | Fix PrimitiveDrawable not using color alpha | prime31/Nez,ericmbernier/Nez,Blucky87/Nez,prime31/Nez,prime31/Nez | Nez.Portable/UI/Drawable/PrimitiveDrawable.cs | Nez.Portable/UI/Drawable/PrimitiveDrawable.cs | using System;
using Microsoft.Xna.Framework;
namespace Nez.UI
{
public class PrimitiveDrawable : IDrawable
{
#region IDrawable implementation
public float leftWidth { get; set; }
public float rightWidth { get; set; }
public float topHeight { get; set; }
public float bottomHeight { get; set; }
public f... | using System;
using Microsoft.Xna.Framework;
namespace Nez.UI
{
public class PrimitiveDrawable : IDrawable
{
#region IDrawable implementation
public float leftWidth { get; set; }
public float rightWidth { get; set; }
public float topHeight { get; set; }
public float bottomHeight { get; set; }
public f... | mit | C# |
7616c7a6ab30877993a00bbaa53ac185d67a7aa8 | Fix to also check the Required property of the JsonProperty when determining if a model property is required or optional. | domaindrivendev/Swashbuckle,domaindrivendev/Swashbuckle,domaindrivendev/Swashbuckle | Swashbuckle.Core/Swagger/JsonPropertyExtensions.cs | Swashbuckle.Core/Swagger/JsonPropertyExtensions.cs | using System;
using System.ComponentModel.DataAnnotations;
using System.Reflection;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Swashbuckle.Swagger
{
public static class JsonPropertyExtensions
{
public static bool IsRequired(this JsonProperty jsonProperty)
{
... | using System;
using System.ComponentModel.DataAnnotations;
using System.Reflection;
using Newtonsoft.Json.Serialization;
namespace Swashbuckle.Swagger
{
public static class JsonPropertyExtensions
{
public static bool IsRequired(this JsonProperty jsonProperty)
{
return jsonProperty.... | bsd-3-clause | C# |
ab598eafe1d92e5564b31432e45b86843bdf80ae | Set private.config to optional to fix unit tests on build server | CrustyJew/RedditSharp | RedditSharpTests/AuthenticatedTestsFixture.cs | RedditSharpTests/AuthenticatedTestsFixture.cs | using Microsoft.Extensions.Configuration;
using Xunit;
namespace RedditSharpTests
{
public class AuthenticatedTestsFixture
{
public IConfigurationRoot Config { get; private set; }
public string AccessToken { get; private set; }
public RedditSharp.BotWebAgent WebAgent { get; set; }
... | using Microsoft.Extensions.Configuration;
using Xunit;
namespace RedditSharpTests
{
public class AuthenticatedTestsFixture
{
public IConfigurationRoot Config { get; private set; }
public string AccessToken { get; private set; }
public RedditSharp.BotWebAgent WebAgent { get; set; }
... | mit | C# |
437f512831e83a51422a2072f7788b46a1fe6697 | fix bug with serializer | OpenTl/OpenTl.Schema | src/OpenTl.Schema/Serialization/Serializer.cs | src/OpenTl.Schema/Serialization/Serializer.cs | namespace OpenTl.Schema.Serialization
{
using System;
using System.Reflection;
using DotNetty.Buffers;
public static class Serializer
{
public static IObject Deserialize(IByteBuffer buffer)
{
return (IObject)Deserialize(buffer, typeof(IObject).GetTypeInfo());
}... | namespace OpenTl.Schema.Serialization
{
using System;
using System.Reflection;
using DotNetty.Buffers;
public static class Serializer
{
public static IObject Deserialize(IByteBuffer buffer)
{
return (IObject)Deserialize(buffer, typeof(IObject).GetTypeInfo());
}... | mit | C# |
3b1fd660928db28de677b08ed168613b98aee6f4 | Reduce packet size, remove bloated time codes | insthync/LiteNetLibManager,insthync/LiteNetLibManager | Scripts/GameApi/Messages/ServerTimeMessage.cs | Scripts/GameApi/Messages/ServerTimeMessage.cs | using System.Collections;
using System.Collections.Generic;
using LiteNetLib.Utils;
namespace LiteNetLibManager
{
public struct ServerTimeMessage : INetSerializable
{
public int serverUnixTime;
public void Deserialize(NetDataReader reader)
{
serverUnixTime = reader.GetPack... | using System.Collections;
using System.Collections.Generic;
using LiteNetLib.Utils;
namespace LiteNetLibManager
{
public struct ServerTimeMessage : INetSerializable
{
public int serverUnixTime;
public float serverTime;
public void Deserialize(NetDataReader reader)
{
... | mit | C# |
1e09caa0c7a3199afcadb0a3cf2a0f4b16db4bb8 | Update version | davghouse/Daves.WordamentPractice | WordamentPractice/Properties/AssemblyInfo.cs | WordamentPractice/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
[assembly: AssemblyTitle("WordamentPractice")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("WordamentPractice")]
[assembly: AssemblyCopyright("C... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
[assembly: AssemblyTitle("WordamentPractice")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("WordamentPractice")]
[assembly: AssemblyCopyright("C... | mit | C# |
26704e80bdb306925e49baec63037224adc693ef | Remove ToArray | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Crypto/ZeroKnowledge/Verifier.cs | WalletWasabi/Crypto/ZeroKnowledge/Verifier.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WalletWasabi.Crypto.Groups;
using WalletWasabi.Helpers;
namespace WalletWasabi.Crypto.ZeroKnowledge
{
public static class Verifier
{
public static bool Verify(KnowledgeOfExponent proof, GroupElement publicPoint, GroupElemen... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WalletWasabi.Crypto.Groups;
using WalletWasabi.Helpers;
namespace WalletWasabi.Crypto.ZeroKnowledge
{
public static class Verifier
{
public static bool Verify(KnowledgeOfExponent proof, GroupElement publicPoint, GroupElemen... | mit | C# |
ba02c6944b78a513112806561db451a5074a2864 | Change class to be public and clean up some comments. | ronnymgm/csla-light,jonnybee/csla,rockfordlhotka/csla,MarimerLLC/csla,rockfordlhotka/csla,BrettJaner/csla,JasonBock/csla,BrettJaner/csla,rockfordlhotka/csla,ronnymgm/csla-light,MarimerLLC/csla,JasonBock/csla,BrettJaner/csla,jonnybee/csla,JasonBock/csla,MarimerLLC/csla,jonnybee/csla,ronnymgm/csla-light | cslacs/Csla/Reflection/LateBoundObject.cs | cslacs/Csla/Reflection/LateBoundObject.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Csla.Reflection
{
/// <summary>
/// Enables simple invocation of methods
/// against the contained object using
/// late binding.
/// </summary>
public class LateBoundObject
{
/// <summary>... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Csla.Reflection
{
internal class LateBoundObject
{
/// <summary>
/// Object instance managed by LateBoundObject.
/// </summary>
public object Instance { get; private set; }
/// <summa... | mit | C# |
1bcab402f15718ed6bb67ad568158d9fd52a2ac1 | set version of MahApps.Metro.IconPacks.Browser to 1.0.1 | MahApps/MahApps.Metro.IconPacks | src/MahApps.Metro.IconPacks.Browser/Properties/AssemblyInfo.cs | src/MahApps.Metro.IconPacks.Browser/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
[assembly: ComVisible(false)]
[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]
[assembly: AssemblyInf... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
[assembly: ComVisible(false)]
[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInf... | mit | C# |
9b47248a7dc980dfc18a50980f89e708e46129f2 | test 2 | Yaxuan/BookApp,Yaxuan/BookApp | BookApp/DataAccess/Repository/DataContext.cs | BookApp/DataAccess/Repository/DataContext.cs | using System.Data.Entity;
using System.Data.Entity.Infrastructure;
namespace BookApp.DataAccess.Repository
{
public class DataContext : DbContext
{
public DataContext()
: base("name=DataContext")
{
this.Configuration.LazyLoadingEnabled = false;
}
protec... | using System.Data.Entity;
using System.Data.Entity.Infrastructure;
namespace BookApp.DataAccess.Repository
{
public class DataContext : DbContext
{
public DataContext()
: base("name=DataContext")
{
this.Configuration.LazyLoadingEnabled = false;
}
protec... | mit | C# |
70ea655bd8ca80934205f9ccced8657a7d31a59d | edit :) | webdude21/Caipirinha | KnightsOfCSharpia/KnightsOfCSharpia/Creatures/Warrior.cs | KnightsOfCSharpia/KnightsOfCSharpia/Creatures/Warrior.cs | using System;
using System.Linq;
using KnightsOfCSharpia.Common;
namespace KnightsOfCSharpia
{
public class Warrior : Hero
{
private const uint Strength = 15;
private const uint Dexterity = 6;
private const uint Intelligence = 2;
private const uint Endurance = 12;
publ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KnightsOfCSharpia.Common;
namespace KnightsOfCSharpia
{
public class Warrior : Hero
{
private const uint Strength = 15;
private const uint Dexterity = 6;
private const uint Intelligence = 2;
... | unlicense | C# |
d13fa31e8cc6ae604457dddc23dd8c4edfc7606d | Add missing license header | naoey/osu-framework,DrabWeb/osu-framework,Nabile-Rahmani/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,naoey/osu-framework,paparony03/osu-framework,peppy/osu-framework,Nabile-Rahmani/osu-framework,default0/osu-framework,smoogipooo/osu-framework,Tom94/osu-framework,DrabWeb/osu-framework,peppy/osu-framework... | osu.Framework/Input/CustomInputManager.cs | osu.Framework/Input/CustomInputManager.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.Collections.Generic;
using osu.Framework.Input.Handlers;
namespace osu.Framework.Input
{
/// <summary>
/// An <see cref="InputMa... | using System.Collections.Generic;
using osu.Framework.Input.Handlers;
namespace osu.Framework.Input
{
/// <summary>
/// An <see cref="InputManager"/> implementation which allows managing of <see cref="InputHandler"/>s manually.
/// </summary>
public class CustomInputManager : InputManager
... | mit | C# |
207ae2293f2cfaeac866dea84860889c58f5b667 | Update ImageIO.cs | matt77hias/cs-smallpt | cs-smallpt/core/ImageIO.cs | cs-smallpt/core/ImageIO.cs | using System.IO;
namespace cs_smallpt {
public static class ImageIO {
public static void WritePPM(int w, int h, Vector3[] Ls, string fname = "cs-image.ppm") {
using (StreamWriter sw = new StreamWriter(fname)) {
string sbegin = string.Format("P3\n{0} {1}\n{2}\n", w, h, 255);
... | using System.IO;
namespace cs_smallpt {
public class ImageIO {
public static void WritePPM(int w, int h, Vector3[] Ls, string fname = "cs-image.ppm") {
using (StreamWriter sw = new StreamWriter(fname)) {
string sbegin = string.Format("P3\n{0} {1}\n{2}\n", w, h, 255);
... | mit | C# |
3f349052e88a730eae4cffe247754a931ae46fc8 | bump version | alecgorge/adzerk-dot-net | Adzerk.Api/Properties/AssemblyInfo.cs | Adzerk.Api/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("Ad... | 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("Ad... | mit | C# |
ebe313977b80455160f24d7c93e941b9be9501a8 | bump version for 1.3.0 release | bbarnhill/barcodelib,barnhill/barcodelib,barnhill/barcodelib | BarcodeLib/Properties/AssemblyInfo.cs | BarcodeLib/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System.Security;
[assembly: AllowPartiallyTrustedCallers]
// 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.
[a... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Security;
[assembly: AllowPartiallyTrustedCallers]
// 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.
[a... | apache-2.0 | C# |
e690bf4b9cf0bd826020a70fff94ffbf9786ad2b | Add a few extra items to the options | csf-dev/ZPT-Sharp,csf-dev/ZPT-Sharp | CSF.Zpt/Rendering/RenderingOptions.cs | CSF.Zpt/Rendering/RenderingOptions.cs | using System;
using CSF.Zpt.Tales;
namespace CSF.Zpt.Rendering
{
/// <summary>
/// Encapsulates the available options for rendering a <see cref="ZptDocument"/>.
/// </summary>
public class RenderingOptions
{
#region fields
private static RenderingOptions _defaultOptions;
#endregion
#regio... | using System;
namespace CSF.Zpt.Rendering
{
/// <summary>
/// Encapsulates the available options for rendering a <see cref="ZptDocument"/>.
/// </summary>
public class RenderingOptions
{
#region fields
private static RenderingOptions _defaultOptions;
#endregion
#region properties
///... | mit | C# |
d005bc3ef534a6228818227b3f425364082a3b81 | Update rate limiter test | sonvister/Binance | test/Binance.Tests/Api/RateLimiterTest.cs | test/Binance.Tests/Api/RateLimiterTest.cs | using Binance.Api;
using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Xunit;
namespace Binance.Tests.Api
{
public class RateLimiterTest
{
[Fact]
public void ConfigureThrows()
{
var rateLimiter = new RateLimiter();
Assert.Throws<Argument... | using Binance.Api;
using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Xunit;
namespace Binance.Tests.Api
{
public class RateLimiterTest
{
[Fact]
public void ConfigureThrows()
{
var rateLimiter = new RateLimiter();
Assert.Throws<Argument... | mit | C# |
89281d44989133a2b36bc2c5457d138a41036bfe | test protobuf used | ejona86/grpc,vjpai/grpc,stanley-cheung/grpc,ejona86/grpc,donnadionne/grpc,jtattermusch/grpc,muxi/grpc,jtattermusch/grpc,muxi/grpc,ejona86/grpc,jtattermusch/grpc,nicolasnoble/grpc,firebase/grpc,jboeuf/grpc,firebase/grpc,vjpai/grpc,grpc/grpc,nicolasnoble/grpc,pszemus/grpc,stanley-cheung/grpc,sreecha/grpc,grpc/grpc,grpc/g... | test/distrib/csharp/DistribTest/Program.cs | test/distrib/csharp/DistribTest/Program.cs | #region Copyright notice and license
// Copyright 2015 gRPC authors.
//
// 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 req... | #region Copyright notice and license
// Copyright 2015 gRPC authors.
//
// 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 req... | apache-2.0 | C# |
a0f703f1334c0b25af0f524f85a61e2ab18afec6 | Rename refactor;: GCMonitor.work -> GCMonitor._work | theraot/Theraot | Core/Theraot/Threading/GCMonitor.internal.cs | Core/Theraot/Threading/GCMonitor.internal.cs | // Needed for Workaround
using System;
using System.Threading;
using Theraot.Collections.ThreadSafe;
namespace Theraot.Threading
{
public static partial class GCMonitor
{
private static class Internal
{
private static readonly WeakDelegateCollection _collectedEventHandlers;
... | // Needed for Workaround
using System;
using System.Threading;
using Theraot.Collections.ThreadSafe;
namespace Theraot.Threading
{
public static partial class GCMonitor
{
private static class Internal
{
private static readonly WeakDelegateCollection _collectedEventHandlers;
... | mit | C# |
4850af7892e354141322950cb05c332f65162c74 | Fix issue with node name | michael-reichenauer/Dependinator | Dependinator/ModelViewing/Nodes/NodeName.cs | Dependinator/ModelViewing/Nodes/NodeName.cs | using System;
using Dependinator.Utils;
namespace Dependinator.ModelViewing.Nodes
{
internal class NodeName : Equatable<NodeName>
{
public static NodeName Root = new NodeName("");
private readonly string fullName;
private readonly Lazy<string> name;
private readonly Lazy<string> shortName;
private readonl... | using System;
using System.Linq;
using Dependinator.Utils;
namespace Dependinator.ModelViewing.Nodes
{
internal class NodeName : Equatable<NodeName>
{
private static readonly char[] Separator = ".".ToCharArray();
public static NodeName Root = new NodeName("");
private readonly string fullName;
private read... | mit | C# |
b938492a8d1b9e01b7cc1a83748c10f102808077 | Remove drawing logging. | Azure-Samples/MyDriving,Azure-Samples/MyDriving,Azure-Samples/MyDriving | XamarinApp/MyTrips/MyTrips.iOS/Views/Maps/TripMapView.cs | XamarinApp/MyTrips/MyTrips.iOS/Views/Maps/TripMapView.cs | using System;
using Foundation;
using UIKit;
using MapKit;
using CoreLocation;
namespace MyTrips.iOS
{
public partial class TripMapView : MKMapView
{
public TripMapView(IntPtr handle) : base(handle)
{
}
public void DrawRoute(CLLocationCoordinate2D[] route)
{
var routeOverlay = MKPolyline.FromCoo... | using System;
using Foundation;
using UIKit;
using MapKit;
using CoreLocation;
namespace MyTrips.iOS
{
public partial class TripMapView : MKMapView
{
public TripMapView(IntPtr handle) : base(handle)
{
}
public void DrawRoute(CLLocationCoordinate2D[] route)
{
Console.WriteLine(route.Length);
... | mit | C# |
b32177624a2c26d011316f34d80884b09c2d060c | Handle null parameter. | chtoucas/Narvalo.NET,chtoucas/Narvalo.NET | src/Narvalo.Cerbere/Predicates.cs | src/Narvalo.Cerbere/Predicates.cs | // Copyright (c) Narvalo.Org. All rights reserved. See LICENSE.txt in the project root for license information.
namespace Narvalo
{
using System;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
using System.Reflection;
public static class Predicates
{
/// <s... | // Copyright (c) Narvalo.Org. All rights reserved. See LICENSE.txt in the project root for license information.
namespace Narvalo
{
using System;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
using System.Reflection;
public static class Predicates
{
/// <s... | bsd-2-clause | C# |
9ef9b63b6228a45854131fbb8ca17d55de721445 | fix seperator | Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek | Engine.Core/Context/ContextHelpers.cs | Engine.Core/Context/ContextHelpers.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Engine.Core.DataTypes;
using Engine.Core.Utils;
using LanguageExt;
namespace Engine.Core.Context
{
public class ContextHelpers
{
internal class FullKey : Tuple<string, string>
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Engine.Core.DataTypes;
using Engine.Core.Utils;
using LanguageExt;
namespace Engine.Core.Context
{
public class ContextHelpers
{
internal class FullKey : Tuple<string, string>
... | mit | C# |
7a6b4aefb7d0750d590fd7fe16b4afdb78415a64 | Update for new version of Cardboard SDK | JScott/cardboard-controls | CardboardControl/Scripts/ParsedTouchData.cs | CardboardControl/Scripts/ParsedTouchData.cs | using UnityEngine;
using System.Collections;
/**
* Dealing with raw touch input from a Cardboard device
*/
public class ParsedTouchData {
private bool wasTouched = false;
public ParsedTouchData() {
Cardboard cardboard = CardboardGameObject().GetComponent<Cardboard>();
cardboard.TapIsTrigger = false;
}
... | using UnityEngine;
using System.Collections;
/**
* Dealing with raw touch input from a Cardboard device
*/
public class ParsedTouchData {
private bool wasTouched = false;
public ParsedTouchData() {}
public void Update() {
wasTouched |= this.IsDown();
}
public bool IsDown() {
return Input.touchCou... | mit | C# |
606714d6f404fc6ef877b39457f89b98e80424d6 | Use default JSON settings when creating serializers. | aj-r/FileManagement | FileManagement.Json/JsonSerializer.cs | FileManagement.Json/JsonSerializer.cs | using System.IO;
using System.Text;
using Newtonsoft.Json;
namespace FileManagement.Json
{
/// <summary>
/// Serializes and deserializes objects in JSON format.
/// </summary>
public class JsonSerializer : ISerializer
{
private JsonSerializerSettings settings;
/// <summary>
... | using System.IO;
using System.Text;
using Newtonsoft.Json;
namespace FileManagement.Json
{
/// <summary>
/// Serializes and deserializes objects in JSON format.
/// </summary>
public class JsonSerializer : ISerializer
{
private JsonSerializerSettings settings;
/// <summary>
... | mit | C# |
6797890e1d8c58175446c79045972876372e3fbd | Fix a race condition between opening search results window and initializing it if it was closed within a frame. | TautvydasZilys/FileSystemSearch,TautvydasZilys/FileSystemSearch,TautvydasZilys/FileSystemSearch | FileSystemSearch/SearchResultsView.cs | FileSystemSearch/SearchResultsView.cs | using System;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows;
using System.Windows.Interop;
using System.Windows.Threading;
namespace FileSystemSearch
{
class SearchResultsView : HwndHost
{
private IntPtr childView;
private ManualResetEvent createdEvent = new ManualResetEvent... | using System;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows;
using System.Windows.Interop;
using System.Windows.Threading;
namespace FileSystemSearch
{
class SearchResultsView : HwndHost
{
private IntPtr childView;
private ManualResetEvent createdEvent = new ManualResetEvent... | mit | C# |
493a8e1a8feec1562b867d3b86af21c354ea5e51 | Refactor PlayerMovement | setchi/kagaribi,setchi/kagaribi | Assets/Scripts/Main/Player/PlayerMovement.cs | Assets/Scripts/Main/Player/PlayerMovement.cs | using UnityEngine;
using UnityEngine.UI;
using System;
using System.Collections;
using UniRx;
using UniRx.Triggers;
public class PlayerMovement : MonoBehaviour {
[SerializeField] GameObject operationTarget;
[SerializeField] float moveSpeed = 1;
void Awake() {
var touchDownStream = this.UpdateAsObservable()
.... | using UnityEngine;
using UnityEngine.UI;
using System;
using System.Collections;
public class PlayerMovement : MonoBehaviour {
public GameObject operationTarget;
public float moveSpeed = 1;
Vector3 touchPos;
bool isTouch = false;
void Update () {
if (Input.GetMouseButtonDown(0)) {
isTouch = true;
touch... | mit | C# |
34912771219524f2a511fc5231a9a8787a1b5625 | Update version to 2.1.2 (remove alpha). | jmptrader/elmah-mvc,alexbeletsky/elmah-mvc,fhchina/elmah-mvc,mmsaffari/elmah-mvc | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Elmah.Mvc")]
[assembly: AssemblyCopyright("Copyright © Atif Aziz, James Driscoll, Alexander Beletsky 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
#if DEBUG
[assembly: AssemblyConfiguration("Debug")]
#els... | using System.Reflection;
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Elmah.Mvc")]
[assembly: AssemblyCopyright("Copyright © Atif Aziz, James Driscoll, Alexander Beletsky 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
#if DEBUG
[assembly: AssemblyConfiguration("Debug")]
#els... | apache-2.0 | C# |
220c83515fada6ec173657fd4d58b178d9178e02 | Add settings view model to view model locator | erooijak/MeditationTimer | src/ViewModel/ViewModelLocator.cs | src/ViewModel/ViewModelLocator.cs | /*
In App.xaml:
<Application.Resources>
<vm:ViewModelLocator xmlns:vm="clr-namespace:Rooijakkers.MeditationTimer"
x:Key="Locator" />
</Application.Resources>
In the View:
DataContext="{Binding Source={StaticResource Locator}, Path=ViewModelName}"
You can also use Blend t... | /*
In App.xaml:
<Application.Resources>
<vm:ViewModelLocator xmlns:vm="clr-namespace:Rooijakkers.MeditationTimer"
x:Key="Locator" />
</Application.Resources>
In the View:
DataContext="{Binding Source={StaticResource Locator}, Path=ViewModelName}"
You can also use Blend t... | mit | C# |
adfdf52d57990c1b295aa3b196c5f61dcf74baae | patch bump | NinjaVault/NinjaHive,NinjaVault/NinjaHive | NinjaHive.WebApp/Properties/AssemblyInfo.cs | NinjaHive.WebApp/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("Nin... | 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("Nin... | apache-2.0 | C# |
61fccb7dc546cf48d7d87125a44ea41c393e4e40 | Update Localization.cs | yasinkuyu/Localization | src/Localization.cs | src/Localization.cs | // @yasinkuyu
// 05/08/2014
namespace Insya.Localization
{
public static class Localization
{
private static LocalizationStartup _loc;
static Localization()
{
_loc = new LocalizationStartup();
}
/// <summary>
/// Alternative calling Localize("id") o... | // @yasinkuyu
// 05/08/2014
namespace Insya.Localization
{
public static class Localization
{
private static LocalizationStartup _loc;
static Localization()
{
_loc = new LocalizationStartup();
}
/// <summary>
/// Alternative calling Localize("id") ... | mit | C# |
2de42abec35682c7dec1d1f3eabb86849c414b36 | remove test code | Fody/Equals | AssemblyToProcess/EmptyClass.cs | AssemblyToProcess/EmptyClass.cs | using System.Linq;
[Equals]
public class EmptyClass
{
}
| using System.Linq;
[Equals]
public class EmptyClass
{
public bool ggggg()
{
int[] o = new int[0];
return Enumerable.SequenceEqual(o, o);
}
}
| mit | C# |
bf2a2bd457cbd260d6b5bea4d1a7f7cbb3a94bca | Add serializable to class | LunaPg/RoguEvE | Assets/Scripts/Classes/Drone.cs | Assets/Scripts/Classes/Drone.cs | using UnityEngine;
using System.Collections;
using SimpleJSON;
using UnityEngine.Serialization;
using System;
[Serializable]
public class Drone : MonoBehaviour
{
public string name;
public int eveId;
//stats
public int signatureRadius;
public int maxVelocity;
public int speed;
public int maxRange;
public flo... | using UnityEngine;
using System.Collections;
using SimpleJSON;
public class Drone : MonoBehaviour
{
public string name;
public int eveId;
//stats
public int signatureRadius;
public int maxVelocity;
public int speed;
public int maxRange;
public float trackingSpeed;
public float entityAttackRange;
public flo... | mit | C# |
d9ccf8b15416d6c92368fd45e2939ddaab14d6cd | enable CORS | malevy/todo | src/Todo/Startup.cs | src/Todo/Startup.cs | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.AspNetCore.Diagnostics;
using Newtonsoft.Json;
using Todo.Formatters.Siren;
using Todo.Models;
... | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.AspNetCore.Diagnostics;
using Newtonsoft.Json;
using Todo.Formatters.Siren;
using Todo.Models;
... | bsd-3-clause | C# |
b5ac6c478a1e78b78164cccd5947df1feebe963b | Make window validation taller | gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,DaggerES/LunaMultiPlayer | Client/Windows/Mod/ModWindow.cs | Client/Windows/Mod/ModWindow.cs | using LunaClient.Base;
using LunaClient.Localization;
using LunaClient.Utilities;
using UnityEngine;
namespace LunaClient.Windows.Mod
{
public partial class ModWindow : Window<ModWindow>
{
private const float WindowHeight = 600;
private const float WindowWidth = 600;
private static Ve... | using LunaClient.Base;
using LunaClient.Localization;
using LunaClient.Utilities;
using UnityEngine;
namespace LunaClient.Windows.Mod
{
public partial class ModWindow : Window<ModWindow>
{
private const float WindowHeight = 400;
private const float WindowWidth = 600;
private static Ve... | mit | C# |
fbe4c9b66e875dfef853adea1a1f5350ca25da29 | implement symmetric encrypt/decrypt | SchmooseSA/Schmoose-BouncyCastle | Crypto/crypto/parameters/ParametersWithIV.cs | Crypto/crypto/parameters/ParametersWithIV.cs | using System;
namespace Org.BouncyCastle.Crypto.Parameters
{
public class ParametersWithIV : ICipherParameters
{
private readonly ICipherParameters _parameters;
private readonly byte[] _iv;
public ParametersWithIV(ICipherParameters parameters, byte[] iv)
: this(parameters, ... | using System;
namespace Org.BouncyCastle.Crypto.Parameters
{
public class ParametersWithIV
: ICipherParameters
{
private readonly ICipherParameters parameters;
private readonly byte[] iv;
public ParametersWithIV(
ICipherParameters parameters,
byte[] iv)
: this(paramete... | mit | C# |
fdce8389b56f642393921294f490212351d21e5c | Fix X509 validation | ahmetalpbalkan/Docker.DotNet,jterry75/Docker.DotNet,jterry75/Docker.DotNet | Docker.DotNet.X509/CertificateCredentials.cs | Docker.DotNet.X509/CertificateCredentials.cs | #if !netstandard1_3
using System.Net;
#endif
using System.Net.Http;
using System.Security.Cryptography.X509Certificates;
using Microsoft.Net.Http.Client;
using System.Net.Security;
namespace Docker.DotNet.X509
{
public class CertificateCredentials : Credentials
{
private X509Certificate2 _certificate... | #if !netstandard1_3
using System.Net;
#endif
using System.Net.Http;
using System.Security.Cryptography.X509Certificates;
using Microsoft.Net.Http.Client;
using System.Net.Security;
namespace Docker.DotNet.X509
{
public class CertificateCredentials : Credentials
{
private X509Certificate2 _certificate... | apache-2.0 | C# |
69c95cb4e0f5fc6d231b8027b6269e8208efe330 | Fix HttpServer.cs to use latest version of Kayak | zhdusurfin/HttpMock,mattolenik/HttpMock,hibri/HttpMock,oschwald/HttpMock | src/HttpMock/HttpServer.cs | src/HttpMock/HttpServer.cs | using System;
using System.Net;
using System.Threading;
using Kayak;
using Kayak.Http;
namespace HttpMock
{
public interface IHttpServer : IDisposable
{
RequestHandler Stub(Func<RequestProcessor, RequestHandler> func);
IStubHttp WithNewContext();
IStubHttp WithNewContext(string baseUri);
void S... | using System;
using System.Net;
using System.Threading;
using Kayak;
using Kayak.Http;
namespace HttpMock
{
public interface IHttpServer : IDisposable
{
RequestHandler Stub(Func<RequestProcessor, RequestHandler> func);
IStubHttp WithNewContext();
IStubHttp WithNewContext(string baseUri);
void S... | mit | C# |
6635dd253ec7cf745f7e545f73dc691aea80d2d1 | Add ctor with inner exception | McNeight/SharpZipLib | src/GZip/GZipException.cs | src/GZip/GZipException.cs | // GzipOutputStream.cs
//
// Copyright 2004 John Reilly
//
// 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 Foundation; either version 2
// of the License, or (at your option) any later version.
//
// Thi... | // GzipOutputStream.cs
//
// Copyright 2004 John Reilly
//
// 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 Foundation; either version 2
// of the License, or (at your option) any later version.
//
// Thi... | mit | C# |
30dbc1125ec61bd24ea2a6678b393dfa0bf4a189 | Add str_to_int Error Case | hkdnet/Collection2Model | NameValueCollectionMapper.Test/MapperTest.cs | NameValueCollectionMapper.Test/MapperTest.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Collection2Model.Mapper;
using System.Collections.Specialized;
namespace Collection2Model.Mapper.Test
{
[TestClass]
public class MapperTest
{
[TestMethod]
public void TestMethod1()
{
var c = new Nam... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Collection2Model.Mapper;
using System.Collections.Specialized;
namespace Collection2Model.Mapper.Test
{
[TestClass]
public class MapperTest
{
[TestMethod]
public void TestMethod1()
{
var c = new Nam... | mit | C# |
bbce4451aa7693ee634b55081c705b4672ae93a2 | Add ability to mark auth handle as successful | btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver | BTCPayServer.Abstractions/Security/AuthorizationFilterHandle.cs | BTCPayServer.Abstractions/Security/AuthorizationFilterHandle.cs | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
namespace BTCPayServer.Security;
public class AuthorizationFilterHandle
{
public AuthorizationHandlerContext Context { get; }
public PolicyRequirement Requirement { get; }
public HttpContext HttpContext { get; }
public bool Suc... | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
namespace BTCPayServer.Security;
public class AuthorizationFilterHandle
{
public AuthorizationHandlerContext Context { get; }
public PolicyRequirement Requirement { get; }
public HttpContext HttpContext { get; }
public bool Suc... | mit | C# |
3d2b2c6d7b13febea51723eca9eca06a2e4890d5 | Change html Breviary.cshtml | razsilev/Sv_Naum,razsilev/Sv_Naum,razsilev/Sv_Naum | Source/SvNaum.Web/Views/Home/Breviary.cshtml | Source/SvNaum.Web/Views/Home/Breviary.cshtml | @model IEnumerable<SvNaum.Models.Prayer>
@{
ViewBag.Title = "Молитвеник";
}
@if (this.User.Identity.IsAuthenticated)
{
@Html.ActionLink("Create prayer", "PrayerAdd", "Admin")
<br />
<br />
}
@if (Model != null && Model.Count() > 0)
{
foreach (var item in Model)
{
<div>
... | @model IEnumerable<SvNaum.Models.Prayer>
@{
ViewBag.Title = "Молитвеник";
}
<h2>Молитвеник</h2>
<br />
@if (this.User.Identity.IsAuthenticated)
{
@Html.ActionLink("Create prayer", "PrayerAdd", "Admin")
<br />
<br />
}
@if (Model != null && Model.Count() > 0)
{
foreach (var item in Model)
{
... | mit | C# |
cd30893ad2c35fdbedd829ab7268d8498cba9196 | return empty object | simgreci/SQLXEtoEventHub | SQLXEtoEventHub/XEPosition/RegistryStore.cs | SQLXEtoEventHub/XEPosition/RegistryStore.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Win32;
namespace SQLXEtoEventHub.XEPosition
{
public class RegistryStore
{
protected const string KEY_PATH = "SOFTWARE";
protected const string KEY_NODE = "SQLXEt... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Win32;
namespace SQLXEtoEventHub.XEPosition
{
public class RegistryStore
{
protected const string KEY_PATH = "SOFTWARE";
protected const string KEY_NODE = "SQLXEt... | apache-2.0 | C# |
fe079c082bd383aaf68a8bf21be3f2a1e34cec26 | Add imahe url property | toshetoo/TaskManagerMVC,toshetoo/TaskManagerMVC,toshetoo/TaskManagerMVC,toshetoo/TaskManagerMVC | TaskManagerMVC/TaskManagerMVC/Models/Task.cs | TaskManagerMVC/TaskManagerMVC/Models/Task.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace TaskManagerMVC.Models
{
public class Task: BaseModel
{
public string ProjectID { get; set; }
public string AuthorID { get; set; }
public string AsigneeID { get; set; }
public string T... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace TaskManagerMVC.Models
{
public class Task: BaseModel
{
public string ProjectID { get; set; }
public string AuthorID { get; set; }
public string AsigneeID { get; set; }
public string T... | mit | C# |
0dfc6e98402b8a2ec33078e51231f10c0e52b0b3 | Add display | warpzone81/ColouredCoins,warpzone81/ColouredCoins,warpzone81/ColouredCoins | WebApplication/Views/Shared/_Property.cshtml | WebApplication/Views/Shared/_Property.cshtml | @model IEnumerable<WebApplication.Models.PropertyViewModel>
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.Name)
</th>
<th>
@Html.DisplayNameFor(model => model.Description)
</th>
<th>
@Html.DisplayNameFor(model => mod... | @model IEnumerable<WebApplication.Models.PropertyViewModel>
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.Name)
</th>
<th>
@Html.DisplayNameFor(model => model.Description)
</th>
<th></th>
</tr>
@foreach (var item in Model) ... | mit | C# |
19cd2e3d3a5e36d7bade86c34101681407d4c510 | Update documentation URL in application template (#397) | nanoframework/nf-Visual-Studio-extension | source/CSharp.BlankApplication/Program.cs | source/CSharp.BlankApplication/Program.cs | using System;
using System.Threading;
namespace $safeprojectname$
{
public class Program
{
public static void Main()
{
Console.WriteLine("Hello world!");
Thread.Sleep(Timeout.Infinite);
// Browse our samples repository: https://github.com/nanoframework/sam... | using System;
using System.Threading;
namespace $safeprojectname$
{
public class Program
{
public static void Main()
{
Console.WriteLine("Hello world!");
Thread.Sleep(Timeout.Infinite);
// Browse our samples repository: https://github.com/nanoframework/sam... | mit | C# |
aaa3ff3f03b3e711b403e5010fe4ddd0589b4d02 | Fix the XenCenterUpdateAlertTests | kc284/xenadmin,minli1/xenadmin,kc284/xenadmin,jijiang/xenadmin,xenserver/xenadmin,stephen-turner/xenadmin,minli1/xenadmin,MihaelaStoica/xenadmin,stephen-turner/xenadmin,MihaelaStoica/xenadmin,minli1/xenadmin,MihaelaStoica/xenadmin,stephen-turner/xenadmin,MihaelaStoica/xenadmin,jijiang/xenadmin,xenserver/xenadmin,jijian... | XenAdminTests/UnitTests/AlertTests/XenCenterUpdateAlertTests.cs | XenAdminTests/UnitTests/AlertTests/XenCenterUpdateAlertTests.cs | /* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
*
* 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 retain the above
* copyright notice,... | /* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
*
* 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 retain the above
* copyright notice,... | bsd-2-clause | C# |
bd6a7fdd0b46764a2eaaf4fc9323edb7066a3f39 | Update Startup class with the new options | HangfireIO/Hangfire.Highlighter,HangfireIO/Hangfire.Highlighter,HangfireIO/Hangfire.Highlighter | Hangfire.Highlighter/Startup.cs | Hangfire.Highlighter/Startup.cs | using System;
using System.Collections.Generic;
using System.Transactions;
using Hangfire.Dashboard;
using Hangfire.Highlighter;
using Hangfire.Highlighter.Jobs;
using Hangfire.SqlServer;
using Microsoft.Owin;
using Owin;
[assembly:OwinStartup(typeof(Startup))]
namespace Hangfire.Highlighter
{
public class Start... | using System;
using System.Collections.Generic;
using System.Transactions;
using Hangfire.Dashboard;
using Hangfire.Highlighter;
using Hangfire.Highlighter.Jobs;
using Hangfire.SqlServer;
using Microsoft.Owin;
using Owin;
[assembly:OwinStartup(typeof(Startup))]
namespace Hangfire.Highlighter
{
public class Start... | mit | C# |
1905772d88235d4627f1520ae5243f512a57fe3c | Mark ICCSaxDelegator class as internal. | haithemaraissia/CocosSharp,netonjm/CocosSharp,netonjm/CocosSharp,mono/CocosSharp,MSylvia/CocosSharp,hig-ag/CocosSharp,haithemaraissia/CocosSharp,MSylvia/CocosSharp,mono/CocosSharp,hig-ag/CocosSharp,TukekeSoft/CocosSharp,zmaruo/CocosSharp,TukekeSoft/CocosSharp,zmaruo/CocosSharp | src/platform/ICCSAXDelegator.cs | src/platform/ICCSAXDelegator.cs | /****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2008-2009 Jason Booth
Copyright (c) 2011-2012 openxlive.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files ... | /****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2008-2009 Jason Booth
Copyright (c) 2011-2012 openxlive.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files ... | mit | C# |
511c5cad1221ce608f7d3563e7e815ca9f417ce8 | Simplify SkipTypeRule | another-guy/CSharpToTypeScript,another-guy/CSharpToTypeScript | CSharpToTypeScript.Core/Common/SkipTypeRule.cs | CSharpToTypeScript.Core/Common/SkipTypeRule.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using CSharpToTypeScript.Core.Configuration;
namespace CSharpToTypeScript.Core.Common
{
public sealed class SkipTypeRule : ISkipTypeRule
{
private readonly List<string> _skipTypeAttributeNames;
public ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using CSharpToTypeScript.Core.Configuration;
namespace CSharpToTypeScript.Core.Common
{
public sealed class SkipTypeRule : ISkipTypeRule
{
private readonly List<string> _skipTypeAttributeNames;
public ... | mit | C# |
161fda06cdc78fa623bdbfdb5b34b4b62d2a2659 | Update AssemblyInfo.cs | dotJEM/web-host,dotJEM/web-host,dotJEM/web-host | DotJEM.Web.Host/Properties/AssemblyInfo.cs | DotJEM.Web.Host/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("Do... | 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("Do... | mit | C# |
d8cebd20edac75973ad00c65b35421fcab97a9e7 | Add xmldoc | EVAST9919/osu,ppy/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,2yangk23/osu,johnneijzen/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,peppy/osu,smoogipooo/osu,smoogipoo/osu,NeoAdonis/osu,2yangk23/osu,peppy/osu-new,UselessToucan/osu,EVAST9919/osu,johnneijzen/osu,smoogipoo/osu | osu.Game.Rulesets.Osu/UI/Cursor/OsuCursorSprite.cs | osu.Game.Rulesets.Osu/UI/Cursor/OsuCursorSprite.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.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Rulesets.Osu.UI.Cursor
{
public abstract class OsuCursorSprite : CompositeD... | // 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.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Rulesets.Osu.UI.Cursor
{
public abstract class OsuCursorSprite : CompositeD... | mit | C# |
aaba8d1a62678f8ac3f61aef98f42b56571d2d05 | Simplify VisualStudioExecutionListener, for readability. | fixie/fixie | src/Fixie.VisualStudio.TestAdapter/VisualStudioExecutionListener.cs | src/Fixie.VisualStudio.TestAdapter/VisualStudioExecutionListener.cs | namespace Fixie.VisualStudio.TestAdapter
{
using System;
using Execution;
public class VisualStudioExecutionListener :
Handler<CaseSkipped>,
Handler<CasePassed>,
Handler<CaseFailed>
{
readonly ExecutionRecorder log;
public VisualStudioExecutionListener(Executio... | namespace Fixie.VisualStudio.TestAdapter
{
using System;
using Execution;
public class VisualStudioExecutionListener :
Handler<CaseSkipped>,
Handler<CasePassed>,
Handler<CaseFailed>
{
readonly ExecutionRecorder log;
public VisualStudioExecutionListener(Executio... | mit | C# |
23c9cac1e27a1836c40c54ccca36fba0b645e4ec | Fix the issue with settings name | miroslavpopovic/production-ready-apis-sample | BoardGamesApi/Controllers/TempController.cs | BoardGamesApi/Controllers/TempController.cs | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
namespace BoardGamesApi.Controllers
{
[ApiExplorerSettings(IgnoreApi = true)]
public class TempController : Controller
{
private readonly IConfiguration _configuration;
publ... | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
namespace BoardGamesApi.Controllers
{
[ApiExplorerSettings(IgnoreApi = true)]
public class TempController : Controller
{
private readonly IConfiguration _configuration;
publ... | mit | C# |
30c93d3b261e49bfc668fa4578e7b06f5945265a | Update ContactData.cs | AshleyMedway/MailJet.NET | MailJetClient/Response/Data/ContactData.cs | MailJetClient/Response/Data/ContactData.cs | using MailJet.Client.Enum;
using System.Collections.Generic;
namespace MailJet.Client.Response.Data
{
public class ContactData : DataItem
{
public string Email { get; set; }
public string Name { get; set; }
public CreateContactAction Action { get; set; }
public Dictio... | using MailJet.Client.Enum;
using System.Collections.Generic;
namespace MailJet.Client.Response.Data
{
public class ContactData : DataItem
{
public string Email { get; set; }
public string Name { get; set; }
public CreateContactAction Action { get; set; }
public Dictio... | mit | C# |
bef8c29596b72a927f989396f723aa5b0bef3e44 | Bump version to 0.14.1 | ar3cka/Journalist | src/SolutionInfo.cs | src/SolutionInfo.cs | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyProductAttribute("Journalist")]
[assembly: AssemblyVersionAttribute("0.14.1")]
[assembly: AssemblyInformationalVersionAttribute("0.14.1")]
[assembly: AssemblyFileVersionAttribute("0.14.1")]
[assembly: AssemblyCompanyAttribute("Anton Mednonogov")]
namesp... | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyProductAttribute("Journalist")]
[assembly: AssemblyVersionAttribute("0.14.0")]
[assembly: AssemblyInformationalVersionAttribute("0.14.0")]
[assembly: AssemblyFileVersionAttribute("0.14.0")]
[assembly: AssemblyCompanyAttribute("Anton Mednonogov")]
namesp... | apache-2.0 | C# |
e1febe9e9717fe58e2e14783edb99b718c9d36cb | Change version | marcosdimitrio/SolutionCreator | SolutionCreator.Wpf/Properties/AssemblyInfo.cs | SolutionCreator.Wpf/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("SolutionCreator.Wpf... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("SolutionCreator.Wpf... | apache-2.0 | C# |
23fa44446c18012e84a91dcf2c8007fb38e05faa | Add comment | drognanar/roslyn,AdamSpeight2008/roslyn-AdamSpeight2008,Hosch250/roslyn,robinsedlaczek/roslyn,DustinCampbell/roslyn,xasx/roslyn,jamesqo/roslyn,MichalStrehovsky/roslyn,tvand7093/roslyn,reaction1989/roslyn,jasonmalinowski/roslyn,heejaechang/roslyn,brettfo/roslyn,davkean/roslyn,wvdd007/roslyn,aelij/roslyn,eriawan/roslyn,t... | src/Features/Core/Portable/GenerateDefaultConstructors/GenerateDefaultConstructorsCodeRefactoringProvider.cs | src/Features/Core/Portable/GenerateDefaultConstructors/GenerateDefaultConstructorsCodeRefactoringProvider.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Composition;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.GenerateMember.GenerateDef... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Composition;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.GenerateMember.GenerateDef... | mit | C# |
2457be6e23a684d746c92ff1cbbd1aa6bbb26cc0 | fix su config checker - now sets the correct define | killerantz/HoloToolkit-Unity,DDReaper/MixedRealityToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity | Assets/MRTK/Providers/Experimental/WindowsSceneUnderstanding/Editor/WindowsSceneUnderstandingConfigChecker.cs | Assets/MRTK/Providers/Experimental/WindowsSceneUnderstanding/Editor/WindowsSceneUnderstandingConfigChecker.cs | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Microsoft.MixedReality.Toolkit.Utilities.Editor;
using System.IO;
using UnityEditor;
namespace Microsoft.MixedReality.Toolkit.WindowsSceneUnderstanding.Experimental
{
/// <summary>
/// Class to perform checks for configuration ... | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Microsoft.MixedReality.Toolkit.Utilities.Editor;
using System.IO;
using UnityEditor;
namespace Microsoft.MixedReality.Toolkit.WindowsSceneUnderstanding.Experimental
{
/// <summary>
/// Class to perform checks for configuration ... | mit | C# |
08358c24e29d513f6e29a9db93d2647976777565 | Allow Button.Text to be set to null | l8s/Eto,l8s/Eto,bbqchickenrobot/Eto-1,PowerOfCode/Eto,l8s/Eto,bbqchickenrobot/Eto-1,PowerOfCode/Eto,PowerOfCode/Eto,bbqchickenrobot/Eto-1 | Source/Eto.Mac/Forms/Controls/MacButton.cs | Source/Eto.Mac/Forms/Controls/MacButton.cs | using Eto.Forms;
using MonoMac.AppKit;
using Eto.Drawing;
namespace Eto.Mac.Forms.Controls
{
public abstract class MacButton<TControl, TWidget, TCallback> : MacControl<TControl, TWidget, TCallback>, TextControl.IHandler
where TControl: NSButton
where TWidget: Control
where TCallback: Control.ICallback
{
publ... | using Eto.Forms;
using MonoMac.AppKit;
using Eto.Drawing;
namespace Eto.Mac.Forms.Controls
{
public abstract class MacButton<TControl, TWidget, TCallback> : MacControl<TControl, TWidget, TCallback>, TextControl.IHandler
where TControl: NSButton
where TWidget: Control
where TCallback: Control.ICallback
{
publ... | bsd-3-clause | C# |
bf7705179f5226cf2f1be5e64f0af36c79784169 | Update JsonSerializer.cs | tiksn/TIKSN-Framework | TIKSN.Core/Serialization/JsonSerializer.cs | TIKSN.Core/Serialization/JsonSerializer.cs | using Newtonsoft.Json;
namespace TIKSN.Serialization
{
public class JsonSerializer : SerializerBase<string>
{
protected override string SerializeInternal(object obj)
{
return JsonConvert.SerializeObject(obj);
}
}
} | using Newtonsoft.Json;
using TIKSN.Analytics.Telemetry;
namespace TIKSN.Serialization
{
public class JsonSerializer : SerializerBase<string>
{
public JsonSerializer(IExceptionTelemeter exceptionTelemeter) : base(exceptionTelemeter)
{
}
protected override string SerializeInterna... | mit | C# |
486dd05e2a35589838e2fa74c5dc4b016981725f | Fix Lda formatting. | joshpeterson/mos,joshpeterson/mos,joshpeterson/mos | Mos6510/Instructions/Lda.cs | Mos6510/Instructions/Lda.cs | using System.Collections.Generic;
namespace Mos6510.Instructions
{
public class Lda : Instruction
{
private static Dictionary<AddressingMode, int> numberOfCycles =
new Dictionary<AddressingMode, int> {
{ AddressingMode.Immediate, 2 },
{ AddressingMode.Absolute, 4 },
{ AddressingMode.Absol... | using System.Collections.Generic;
namespace Mos6510.Instructions
{
public class Lda : Instruction
{
private static Dictionary<AddressingMode, int> numberOfCycles =
new Dictionary<AddressingMode, int> {
{ AddressingMode.Immediate, 2 },
{ AddressingMode.Absolute, 4 },
{ AddressingMode.Abs... | mit | C# |
3972a282f88f9ed8ed7e256668fefe3e386e542e | Improve CameraConsumer. | Eusth/VRGIN | VRGIN/Helpers/CameraConsumer.cs | VRGIN/Helpers/CameraConsumer.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using VRGIN.Core;
namespace VRGIN.Helpers
{
public class CameraConsumer : IScreenGrabber
{
private RenderTexture _Texture;
private bool _SpareMainCamera;
private bool _SoftMode;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using VRGIN.Core;
namespace VRGIN.Helpers
{
public class CameraConsumer : IScreenGrabber
{
private RenderTexture _Texture;
public bool Check(Camera camera)
{
return !ca... | mit | C# |
d3a06ba5e5d1c5122123be2ea3cb64a7b0053b7c | Update 20.WriteFileDelimited.cs | MarcosMeli/FileHelpers | FileHelpers.Examples/Examples/10.QuickStart/20.WriteFileDelimited.cs | FileHelpers.Examples/Examples/10.QuickStart/20.WriteFileDelimited.cs | using System;
using System.Collections.Generic;
using FileHelpers;
namespace ExamplesFx
{
//-> Name:Write Delimited File
//-> Description:Example of how to write a Delimited File
//-> AutoRun:true
public class WriteFileDelimited
: ExampleBase
{
//-> To write an output file, separa... | using System;
using System.Collections.Generic;
using FileHelpers;
namespace ExamplesFx
{
//-> Name:Write Delimited File
//-> Description:Example of how to write a Delimited File
//-> AutoRun:true
public class WriteFileDelimited
: ExampleBase
{
//-> To write an output file (separa... | mit | C# |
b6c683e95be623f4fe2ae4f766da4b3ddaf2b8f4 | Set the camera rotation | EightBitBoy/EcoRealms | Assets/Scripts/Camera/CameraMovement.cs | Assets/Scripts/Camera/CameraMovement.cs | using UnityEngine;
using System.Collections;
namespace ecorealms.camera {
public class CameraMovement : MonoBehaviour {
private Transform cameraTransform;
private Vector3 startPosition = new Vector3(0.0f, 10.0f, -5.0f);
private Quaternion startRotation = Quaternion.Euler(45.0f, 45.0f, 0.0f);
void Start () ... | using UnityEngine;
using System.Collections;
namespace ecorealms.camera {
public class CameraMovement : MonoBehaviour {
private Vector3 startPosition = new Vector3(0.0f, 10.0f, -5.0f);
private Transform cameraTransform;
private Quaternion startRotation;
void Start () {
cameraTransform = Camera.main.tran... | apache-2.0 | C# |
aec94c283d8f53f8f7605610bd4d5c8291a12138 | Make DisposeMethodKind internal to avoid conflicts | pakdev/roslyn-analyzers,dotnet/roslyn-analyzers,mavasani/roslyn-analyzers,mavasani/roslyn-analyzers,dotnet/roslyn-analyzers,pakdev/roslyn-analyzers | src/Utilities/Compiler/DisposeMethodKind.cs | src/Utilities/Compiler/DisposeMethodKind.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Analyzer.Utilities
{
/// <summary>
/// Describes different kinds of Dispose-like methods.
/// </summary>
internal enum DisposeMetho... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Analyzer.Utilities
{
/// <summary>
/// Describes different kinds of Dispose-like methods.
/// </summary>
public enum DisposeMethodK... | mit | C# |
21e8ab835769c5be5c66f16b241bdf6cb774b848 | Return `ILive` from `ToLive` calls instead of realm-typed instance | ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu | osu.Game/Database/RealmObjectExtensions.cs | osu.Game/Database/RealmObjectExtensions.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 AutoMapper;
using osu.Game.Input.Bindings;
using Realms;
namespace osu.Game.Database
{
public static class... | // 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 AutoMapper;
using osu.Game.Input.Bindings;
using Realms;
namespace osu.Game.Database
{
public static class... | mit | C# |
99ab22963763e51e3eef41830efdfdb4f89069eb | Improve resp. masters assignment | kirillkos/joinrpg-net,joinrpg/joinrpg-net,kirillkos/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net | JoinRpg.Domain/ClaimSourceExtensions.cs | JoinRpg.Domain/ClaimSourceExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using JoinRpg.DataModel;
using JoinRpg.Helpers;
namespace JoinRpg.Domain
{
public static class ClaimSourceExtensions
{
public static bool HasClaimForUser(this IClaimSource claimSource, int currentUserId)
{
... | using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using JoinRpg.DataModel;
using JoinRpg.Helpers;
namespace JoinRpg.Domain
{
public static class ClaimSourceExtensions
{
public static bool HasClaimForUser(this IClaimSource claimSource, int currentUserId)
{
return clai... | mit | C# |
d72dcb3fdae7de475afdd042656e133b302f9aaa | Rename variable | appharbor/appharbor-cli | src/AppHarbor/Commands/LoginAuthCommand.cs | src/AppHarbor/Commands/LoginAuthCommand.cs | using System.IO;
using RestSharp;
using RestSharp.Contrib;
namespace AppHarbor.Commands
{
[CommandHelp("Login to AppHarbor", alias: "login")]
public class LoginAuthCommand : ICommand
{
private readonly IAccessTokenConfiguration _accessTokenConfiguration;
private readonly IMaskedInput _maskedInput;
private re... | using System.IO;
using RestSharp;
using RestSharp.Contrib;
namespace AppHarbor.Commands
{
[CommandHelp("Login to AppHarbor", alias: "login")]
public class LoginAuthCommand : ICommand
{
private readonly IAccessTokenConfiguration _accessTokenConfiguration;
private readonly IMaskedInput _maskedConsoleInput;
pri... | mit | C# |
4c41bcb2ba3ed4ee0c6f381ca2dab7f9ec9ecd54 | Make ScrollEvent a MouseEvent | DrabWeb/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework,Tom94/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,Tom94/osu-framework,DrabWeb/osu-framework,ppy/osu-framework,peppy/osu-fr... | osu.Framework/Input/Events/ScrollEvent.cs | osu.Framework/Input/Events/ScrollEvent.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Extensions.TypeExtensions;
using osu.Framework.Input.States;
using OpenTK;
namespace osu.Framework.Input.Events
{
/// <summary>
//... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Extensions.TypeExtensions;
using osu.Framework.Input.States;
using OpenTK;
namespace osu.Framework.Input.Events
{
/// <summary>
//... | mit | C# |
2857f892a3eda46d5568405c2487d01cdcf5e7ce | Remove some unnessary codes | insthync/LiteNetLibManager,insthync/LiteNetLibManager | Scripts/LiteNetLibServer.cs | Scripts/LiteNetLibServer.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using LiteNetLib;
using LiteNetLib.Utils;
using LiteNetLibHighLevel.Utils;
namespace LiteNetLibHighLevel
{
public class LiteNetLibServer : INetEventListener
{
public LiteNetLibManager Manager { get; protected set; }
... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using LiteNetLib;
using LiteNetLib.Utils;
using LiteNetLibHighLevel.Utils;
namespace LiteNetLibHighLevel
{
public class LiteNetLibServer : INetEventListener
{
public LiteNetLibManager Manager { get; protected set; }
... | mit | C# |
6084fb1df79884be598b15b26e991e34cd1f7161 | Add tests for Sha512 class | ektrah/nsec | tests/Algorithms/Sha512Tests.cs | tests/Algorithms/Sha512Tests.cs | using System;
using NSec.Cryptography;
using Xunit;
namespace NSec.Tests.Algorithms
{
public static class Sha512Tests
{
public static readonly string HashOfEmpty = "cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e";
... | using System;
using NSec.Cryptography;
using Xunit;
namespace NSec.Tests.Algorithms
{
public static class Sha512Tests
{
public static readonly string HashOfEmpty = "cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e";
... | mit | C# |
fd39ab646271cb34db2ae638571227bf3a29c8ce | Increase HelenaZ jump power | bunashibu/kikan | Assets/Scripts/Skill/Helena/HelenaZ.cs | Assets/Scripts/Skill/Helena/HelenaZ.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using UniRx;
using UniRx.Triggers;
namespace Bunashibu.Kikan {
[RequireComponent(typeof(SkillSynchronizer))]
public class HelenaZ : Skill {
void Awake() {
_synchronizer = GetComponent<SkillSynchronizer>();
... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using UniRx;
using UniRx.Triggers;
namespace Bunashibu.Kikan {
[RequireComponent(typeof(SkillSynchronizer))]
public class HelenaZ : Skill {
void Awake() {
_synchronizer = GetComponent<SkillSynchronizer>();
... | mit | C# |
2f255a12b5e0132199bff99602eb5cbc54afb1c9 | Fix comments/documentation. | MatthewKing/DeviceId | src/DeviceId/Formatters/StringDeviceIdFormatter.cs | src/DeviceId/Formatters/StringDeviceIdFormatter.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace DeviceId.Formatters
{
/// <summary>
/// An implementation of <see cref="IDeviceIdFormatter"/> that combines the components into a concatenated string.
/// </summary>
public class StringDeviceIdFormatter : IDeviceIdFormatter
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace DeviceId.Formatters
{
/// <summary>
/// An implementation of <see cref="IDeviceIdFormatter"/> that combines the components into a concatenated string.
/// </summary>
public class StringDeviceIdFormatter : IDeviceIdFormatter
... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.