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 |
|---|---|---|---|---|---|---|---|---|
536a8559f62e411e44437fcaae74d76c1804b757 | Update MjpegWriter.cs | secile/MotionJPEGWriter | source/MjpegWriter.cs | source/MjpegWriter.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace GitHub.secile.Avi
{
class MjpegWriter
{
private AviWriter aviWriter;
public MjpegWriter(System.IO.Stream outputAvi, int width, int height, int fps)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace GitHub.secile.Avi
{
class MjpegWriter
{
private AviWriter aviWriter;
public MjpegWriter(System.IO.Stream outputAvi, int width, int height, int fps)
{
... | mit | C# |
bca175b70b70dcd45147b49cb7d35cd356047df1 | Update KeyManager.cs | sentrid/OpenCKMS | OpenCKMS/KeyManager.cs | OpenCKMS/KeyManager.cs | // Copyright 2016 Edward Curren
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | // Copyright 2016 Edward Curren
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | apache-2.0 | C# |
ef8d6c0b2924036cd5998403d4108f900958bf40 | correct ArrowManager | ice-blaze/msr,ice-blaze/msr | Assets/Scripts/ArrowManager.cs | Assets/Scripts/ArrowManager.cs | using UnityEngine;
using System.Collections.Generic;
public class ArrowManager : MonoBehaviour
{
List<Transform> checkpoints = new List<Transform>();
GameObject arrow;
float baseZscale;
void Start()
{
this.arrow = GameObject.Find("Arrow");
baseZscale = arrow.transform.localScale.x;
... | using UnityEngine;
using System.Collections.Generic;
public class ArrowManager : MonoBehaviour
{
List<Transform> checkpoints = new List<Transform>();
GameObject arrow;
float baseZscale;
void Start()
{
this.arrow = GameObject.Find("Arrow");
baseZscale = arrow.transform.localScale.x;
<<<<<<... | mit | C# |
b4369ea97cb410519bc6cc651d711e91a5403279 | Make base ack message not abstract | insthync/LiteNetLibManager,insthync/LiteNetLibManager | Scripts/Messages/BaseAckMessage.cs | Scripts/Messages/BaseAckMessage.cs | using System.Collections;
using System.Collections.Generic;
using LiteNetLib.Utils;
namespace LiteNetLibManager
{
public class BaseAckMessage : ILiteNetLibMessage
{
public uint ackId;
public AckResponseCode responseCode;
public void Deserialize(NetDataReader reader)
{
... | using System.Collections;
using System.Collections.Generic;
using LiteNetLib.Utils;
namespace LiteNetLibManager
{
public abstract class BaseAckMessage : ILiteNetLibMessage
{
public uint ackId;
public AckResponseCode responseCode;
public void Deserialize(NetDataReader reader)
{... | mit | C# |
05d77c16ce93aa1ad492681ef9930b2026c95fd2 | Update test console | refactorsaurusrex/FluentConsole | TestConsole/Program.cs | TestConsole/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluentConsole.Library;
namespace TestConsole
{
class Program
{
static void Main(string[] args)
{
var key = "Press any key to continue...".Write... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluentConsole.Library;
namespace TestConsole
{
class Program
{
static void Main(string[] args)
{
FluentConsoleSettings.LineWrapOption = LineWra... | mit | C# |
073f81566d8fe12995f9a94a03a9178c7a3f1383 | Bump version number | pinting/SharpCrop | SharpCrop/Constants.cs | SharpCrop/Constants.cs | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
namespace SharpCrop
{
public static class Constants
{
// Version
public const int Version = 2100;
// List of the registered providers
public static readonly IReadOn... | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
namespace SharpCrop
{
public static class Constants
{
// Version
public const int Version = 2000;
// List of the registered providers
public static readonly IReadOn... | mit | C# |
7e0d71ed32c629fbcd563b80fcf806b5ac4467ad | Drop useless TagOption entry | red-gate/libgit2sharp,AMSadek/libgit2sharp,psawey/libgit2sharp,dlsteuer/libgit2sharp,ethomson/libgit2sharp,vorou/libgit2sharp,shana/libgit2sharp,GeertvanHorrik/libgit2sharp,Skybladev2/libgit2sharp,psawey/libgit2sharp,Zoxive/libgit2sharp,oliver-feng/libgit2sharp,jeffhostetler/public_libgit2sharp,red-gate/libgit2sharp,su... | LibGit2Sharp/TagOptions.cs | LibGit2Sharp/TagOptions.cs | using System;
namespace LibGit2Sharp
{
/// <summary>
/// Enum for TagOptions
/// </summary>
public enum TagOption
{
/// <summary>
/// None.
/// </summary>
None = 1, // GIT_REMOTE_DOWNLOAD_TAGS_NONE
/// <summary>
/// Auto.
/// </summar... | using System;
namespace LibGit2Sharp
{
/// <summary>
/// Enum for TagOptions
/// </summary>
public enum TagOption
{
/// <summary>
/// Unset.
/// </summary>
Unset = 0, // GIT_REMOTE_DOWNLOAD_TAGS_UNSET
/// <summary>
/// None.
/// </summ... | mit | C# |
5e76acc089754d5b2eb56de42cf11edd690807be | Remove old comments | mono/dbus-sharp-glib,mono/dbus-sharp-glib | glib/GLib.cs | glib/GLib.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using NDesk.DBus;
using NDesk.GLib;
using org.freedesktop.DBus;
namespace NDesk.DBus
{
//FIXME: this API needs review and de-unixification. It is horrid, but gets the job don... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
//using GLib;
//using Gtk;
using NDesk.DBus;
using NDesk.GLib;
using org.freedesktop.DBus;
namespace NDesk.DBus
{
//FIXME: this API needs review and de-unixification. It is h... | mit | C# |
b0d2859e744ea437af3b04613f8599fb66e7a219 | Fix phrasing | reznet/MusicXml.Net,gerryaobrien/MusicXml.Net,vdaron/MusicXml.Net | MusicXml/Domain/Measure.cs | MusicXml/Domain/Measure.cs | using System.Collections.Generic;
namespace MusicXml.Domain
{
public class Measure
{
internal Measure()
{
Width = -1;
Notes = new List<Note>();
Attributes = new MeasureAttributes();
UpperStaffNotesInOrderOfTime = new Dictionary<int, List<Note>>();
}
public int Width { get; internal set; }
p... | using System.Collections.Generic;
namespace MusicXml.Domain
{
public class Measure
{
internal Measure()
{
Width = -1;
Notes = new List<Note>();
Attributes = new MeasureAttributes();
UpperStaffNotesInOrderOfTime = new Dictionary<int, List<Note>>();
}
public int Width { get; internal set; }
p... | bsd-3-clause | C# |
e60a79fbedc32e185983f6f4ee3076147a55639f | add benchmarks | runceel/ReactiveProperty,runceel/ReactiveProperty,runceel/ReactiveProperty | Benchmark/Benchmark.V6/BasicUsages.cs | Benchmark/Benchmark.V6/BasicUsages.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Text;
using BenchmarkDotNet.Attributes;
using Reactive.Bindings;
using Reactive.Bindings.Extensions;
namespace ReactivePropertyBenchmark
{
public class BasicUsages
{
[Benchm... | using System;
using System.Collections.Generic;
using System.Text;
using BenchmarkDotNet.Attributes;
using Reactive.Bindings;
namespace ReactivePropertyBenchmark
{
public class BasicUsages
{
[Benchmark]
public ReactiveProperty<string> CreateReactivePropertyInstance() => new ReactiveProperty<st... | mit | C# |
457ce2ddd2ed615748680bfee42c24b7067b9824 | Bump version | Yuisbean/WebMConverter,o11c/WebMConverter,nixxquality/WebMConverter | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("We... | 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("We... | mit | C# |
38dbe63a7a5cf0469addce3008c39f6ac3e24693 | Update version numbers | mnitchie/EdmundsApiSDK | Properties/AssemblyInfo.cs | 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( "EdmundsApiSDK" )]
[assembly: AssemblyDes... | 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( "EdmundsApiSDK" )]
[assembly: AssemblyDes... | mit | C# |
f406b42fb1c0fbb807cd1cdcd328268f3ba1069e | Bump version | nixxquality/WebMConverter,Yuisbean/WebMConverter,o11c/WebMConverter | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("We... | 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("We... | mit | C# |
94f1374c02031833a90be9da7b005885c464f08b | Fix data attribute in ReconnectTeamResult | duracellko/planningpoker4azure,duracellko/planningpoker4azure,duracellko/planningpoker4azure | Duracellko.PlanningPoker/Service/ReconnectTeamResult.cs | Duracellko.PlanningPoker/Service/ReconnectTeamResult.cs | // <copyright>
// Copyright (c) 2012 Rasto Novotny
// </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Duracellko.PlanningPoker.Service
{
/// <summary>
/// Result data of reconnect op... | // <copyright>
// Copyright (c) 2012 Rasto Novotny
// </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Duracellko.PlanningPoker.Service
{
/// <summary>
/// Result data of reconnect op... | mit | C# |
5873ea633fc0d5eaeeacb9a44c2b626ef990a01f | fix a small typo | toontown-archive/Krypton.LibProtocol | Krypton.LibProtocol/Src/Member/Statement/IfStatement.cs | Krypton.LibProtocol/Src/Member/Statement/IfStatement.cs | using System.Collections.Generic;
using System.Collections.ObjectModel;
using Krypton.LibProtocol.Member.Expression;
using Krypton.LibProtocol.Target;
namespace Krypton.LibProtocol.Member.Statement
{
public class IfStatement : IExpressiveStatementContainer, IStatement, ITemplateType
{
public string Te... | using System.Collections.Generic;
using System.Collections.ObjectModel;
using Krypton.LibProtocol.Member.Expression;
using Krypton.LibProtocol.Target;
namespace Krypton.LibProtocol.Member.Statement
{
public class IfStatement : IExpressiveStatementContainer, IStatement, ITemplateType
{
public string Te... | mit | C# |
a537c1d0f95aa6836933e563bdf201dfe861373a | Add Async suffix to async methods | andyfmiller/LtiLibrary | LtiLibrary.AspNet.Tests/LineItemsControllerUnitTests.cs | LtiLibrary.AspNet.Tests/LineItemsControllerUnitTests.cs | using System;
using System.Net;
using LtiLibrary.Core.Outcomes.v2;
using Newtonsoft.Json;
using Xunit;
namespace LtiLibrary.AspNet.Tests
{
public class LineItemsControllerUnitTests
{
[Fact]
public void GetLineItemBeforePostReturnsNotFound()
{
var controller = new LineItemsC... | using System;
using System.Net;
using LtiLibrary.Core.Outcomes.v2;
using Newtonsoft.Json;
using Xunit;
namespace LtiLibrary.AspNet.Tests
{
public class LineItemsControllerUnitTests
{
[Fact]
public void GetLineItemBeforePostReturnsNotFound()
{
var controller = new LineItemsC... | apache-2.0 | C# |
f860c5585f431857d5b851ffe4a907ae9d13408b | make NetworkSettings implement common interface. again | olinyavod/Melomans,olinyavod/MessageRouter | Module.MessageRouter.Mobile/Network/NetworkSettings.cs | Module.MessageRouter.Mobile/Network/NetworkSettings.cs | using Sockets.Plugin;
using Sockets.Plugin.Abstractions;
using Module.MessageRouter.Abstractions.Network;
namespace Module.MessageRouter.Mobile.Network
{
public class NetworkSettings: INetworkSettings
{
public int TTL {get;set;}
public int ListenPort { get; set;}
public string MulticastAddress { get; set;}... | using Sockets.Plugin;
using Sockets.Plugin.Abstractions;
namespace Module.MessageRouter.Mobile.Network
{
public class NetworkSettings
{
public int TTL {get;set;}
public int ListenPort { get; set;}
public string MulticastAddress { get; set;}
public ICommsInterface Adapters { get; set; }
public int Multi... | mit | C# |
e4062ea57cd5dd6f76c5b1146f6d9cd7855fc74e | Use the current working directory if we don't have Unity | wibbe/DreamboundFramework | Dreambound/Scripts/IO/DataSystem.cs | Dreambound/Scripts/IO/DataSystem.cs | using System;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
#if UNITY_STANDALONE || UNITY_IOS || UNITY_ANDROID
using UnityEngine;
#define HAS_UNITY
#endif
namespace Dreambound.IO
{
public static class DataSystem
{
public static bool Save(Data data, string name)
{
BinaryFormatter ser... | using System;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
#if UNITY_STANDALONE || UNITY_IOS || UNITY_ANDROID
using UnityEngine;
#define HAS_UNITY
#endif
namespace Dreambound.IO
{
public static class DataSystem
{
public static bool Save(Data data, string name)
{
BinaryFormatter ser... | mit | C# |
b7fb5548c74898980545bc4ca09731f011953f6c | make IGeneration public | jobeland/GeneticAlgorithm | NeuralNetwork.GeneticAlgorithm/Evolution/IGeneration.cs | NeuralNetwork.GeneticAlgorithm/Evolution/IGeneration.cs | using System;
using System.Collections.Generic;
namespace NeuralNetwork.GeneticAlgorithm.Evolution
{
public interface IGeneration
{
ITrainingSession GetBestPerformer();
IList<ITrainingSession> GetBestPerformers(int numPerformers);
double[] GetEvalsForGeneration();
void Run();
... | using System;
using System.Collections.Generic;
namespace NeuralNetwork.GeneticAlgorithm.Evolution
{
interface IGeneration
{
ITrainingSession GetBestPerformer();
IList<ITrainingSession> GetBestPerformers(int numPerformers);
double[] GetEvalsForGeneration();
void Run();
}
}
| mit | C# |
716fcac216fc9e099ad74659ac39ad0dc0b9e95b | Tidy up RemoteSqlClient correctly when an exception is returned from the host | ProductiveRage/SqlProxyAndReplay | DataProviderClient/RemoteSqlClient.cs | DataProviderClient/RemoteSqlClient.cs | using System;
using System.ServiceModel;
using ProductiveRage.SqlProxyAndReplay.DataProviderInterface.Interfaces;
namespace ProductiveRage.SqlProxyAndReplay.DataProviderClient
{
public sealed class RemoteSqlClient : IDisposable
{
private ChannelFactory<ISqlProxy> _proxyChannelFactory;
private ISqlProxy _proxy;
... | using System;
using System.Data;
using System.ServiceModel;
using ProductiveRage.SqlProxyAndReplay.DataProviderInterface.Interfaces;
namespace ProductiveRage.SqlProxyAndReplay.DataProviderClient
{
public sealed class RemoteSqlClient : IDisposable
{
private ChannelFactory<ISqlProxy> _proxyChannelFactory;
private... | mit | C# |
3397b03120c9290b061b173bee29ed7f32276742 | Use jobs info command for ExecuteTask wait. | YuvalItzchakov/aerospike-client-csharp | AerospikeClient/Task/ExecuteTask.cs | AerospikeClient/Task/ExecuteTask.cs | /*
* Copyright 2012-2015 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements.
*
* 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 Lice... | /*
* Copyright 2012-2015 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements.
*
* 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 Lice... | apache-2.0 | C# |
cfddaa90e19898a6dade61e59b6440f20f8585da | Bump version | ragnard/Graphite.NET | Graphite/Properties/AssemblyInfo.cs | Graphite/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("Gr... | 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("Gr... | bsd-2-clause | C# |
e20a15aadbf4cc07b235223cc66c0dfef7265ae6 | Update Pluton.cs | Notulp/Pluton,Notulp/Pluton | Pluton/Pluton.cs | Pluton/Pluton.cs | using System;
namespace Pluton {
[ConsoleSystem.Factory("pluton")]
public class pluton : ConsoleSystem {
[ConsoleSystem.Admin]
[ConsoleSystem.Help("Helps to break basic functionality", "")]
public static bool enabled;
static pluton() {
pluton.enabled = true;
}
public pluton() : base() {
}
[Co... | using System;
namespace Pluton {
[ConsoleSystem.Factory("pluton")]
public class pluton : ConsoleSystem {
[ConsoleSystem.Admin]
[ConsoleSystem.Help("Helps to break basic functionality", "")]
public static bool enabled;
static pluton() {
pluton.enabled = true;
}
public pluton() {
base.\u002Ector(... | mit | C# |
a06574d666a0f382054cb681f1f10ef8bb0b6e4c | add a 'connect' button :) | heftig/avahi-1,catta-x/catta,sunilghai/avahi-clone,lathiat/avahi,gloryleague/avahi,Distrotech/avahi,Distrotech/avahi,lathiat/avahi,sunilghai/avahi-clone,heftig/avahi-1,Kisensum/xmDNS-avahi,Distrotech/avahi,sunilghai/avahi-clone,Kisensum/xmDNS-avahi,heftig/avahi,sunilghai/avahi-clone,lathiat/avahi,Kisensum/xmDNS-avahi,h... | avahi-ui-sharp/zssh.cs | avahi-ui-sharp/zssh.cs | using System;
using System.Diagnostics;
using Gtk;
using Avahi.UI;
public class EntryPoint {
public static void Main () {
Application.Init ();
ServiceDialog dialog = new ServiceDialog ("Choose SSH Server", null,
Stock.Cancel, ResponseType.Cancel... | using System;
using System.Diagnostics;
using Gtk;
using Avahi.UI;
public class EntryPoint {
public static void Main () {
Application.Init ();
ServiceDialog dialog = new ServiceDialog ("Choose SSH Server", null, Stock.Close, ResponseType.Cancel);
dialog.BrowseServiceTypes = new string[] { "_ss... | lgpl-2.1 | C# |
4dd65b5b9f949d548ce8a9140eee2bb9819a0b83 | Update AssmeblyInformation | miniter/SSH.NET,GenericHero/SSH.NET,Bloomcredit/SSH.NET,sshnet/SSH.NET | Renci.SshClient/Renci.SshNet/Properties/AssemblyInfo.cs | Renci.SshClient/Renci.SshNet/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System;
// 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.
[assem... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System;
// 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.
[assem... | mit | C# |
29f641ba613f005fc1e68d0b6287be6e00b0280f | Update Assmbly information to version 2013.1.27 | Bloomcredit/SSH.NET,sshnet/SSH.NET,GenericHero/SSH.NET,miniter/SSH.NET | Renci.SshClient/Renci.SshNet/Properties/AssemblyInfo.cs | Renci.SshClient/Renci.SshNet/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System;
// 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.
[assem... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System;
// 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.
[assem... | mit | C# |
4a0613672488e4bdcc5d931f7a1b4eebbe0edcf0 | Fix bug in polling logic. | rakutensf-malex/slinqy,rakutensf-malex/slinqy | Source/Slinqy.Test.Functional/Utilities/Polling/Poll.cs | Source/Slinqy.Test.Functional/Utilities/Polling/Poll.cs | namespace Slinqy.Test.Functional.Utilities.Polling
{
using System;
using System.Diagnostics;
using System.Threading;
/// <summary>
/// Provides common polling functionality.
/// </summary>
internal static class Poll
{
/// <summary>
/// Polls the specified function until... | namespace Slinqy.Test.Functional.Utilities.Polling
{
using System;
using System.Diagnostics;
using System.Threading;
/// <summary>
/// Provides common polling functionality.
/// </summary>
internal static class Poll
{
/// <summary>
/// Polls the specified function until... | mit | C# |
c113020161bd83b540888fd3237e5e382d75edfd | 修正 Bug | wukaixian/DbUtility,wukaixian/DbUtility,Ivony/DbUtility,Ivony/DbUtility | Sources/Ivony.Data.MySql/MySqlClient/MySqlDbExecutor.cs | Sources/Ivony.Data.MySql/MySqlClient/MySqlDbExecutor.cs | using Ivony.Data.Common;
using Ivony.Data.Queries;
using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ivony.Data.MySqlClient
{
public class MySqlDbExecutor : DbExecutorBase, IDbExecutor<ParameterizedQuery>, IDbT... | using Ivony.Data.Common;
using Ivony.Data.Queries;
using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ivony.Data.MySqlClient
{
public class MySqlDbExecutor : DbExecutorBase, IDbExecutor<ParameterizedQuery>, IDbT... | apache-2.0 | C# |
8865392d1808b983daf996bdb05d0ed3715c33fd | update version | prodot/ReCommended-Extension | Sources/ReCommendedExtension/Properties/AssemblyInfo.cs | Sources/ReCommendedExtension/Properties/AssemblyInfo.cs | using System.Reflection;
using ReCommendedExtension;
// 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(ZoneMarker.ExtensionName)]
[assembly: AssemblyDescript... | using System.Reflection;
using ReCommendedExtension;
// 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(ZoneMarker.ExtensionName)]
[assembly: AssemblyDescript... | apache-2.0 | C# |
9ff3f21a9102ad652a54fba96664b4c8be9f35d8 | fix build on net4.0 | DeonHeyns/Metrics.NET,MetaG8/Metrics.NET,Liwoj/Metrics.NET,MetaG8/Metrics.NET,Recognos/Metrics.NET,ntent-ad/Metrics.NET,MetaG8/Metrics.NET,Liwoj/Metrics.NET,cvent/Metrics.NET,cvent/Metrics.NET,alhardy/Metrics.NET,mnadel/Metrics.NET,alhardy/Metrics.NET,mnadel/Metrics.NET,etishor/Metrics.NET,Recognos/Metrics.NET,etishor/... | Src/Metrics/Utils/Clock.cs | Src/Metrics/Utils/Clock.cs |
using System;
namespace Metrics.Utils
{
public abstract class Clock
{
private sealed class StopwatchClock : Clock
{
private static readonly long factor = (1000L * 1000L * 1000L) / System.Diagnostics.Stopwatch.Frequency;
public override long Nanoseconds { get { return S... |
using System;
namespace Metrics.Utils
{
public abstract class Clock
{
private sealed class StopwatchClock : Clock
{
private static readonly long factor = (1000L * 1000L * 1000L) / System.Diagnostics.Stopwatch.Frequency;
public override long Nanoseconds { get { return S... | apache-2.0 | C# |
40f7858e5fa1a1c84be32ae002daeb837a086eb2 | Support config from alternative source | Lethrir/NLogger | NLogger/NLogger/CustomLogFactory.cs | NLogger/NLogger/CustomLogFactory.cs | using System.Collections.Generic;
using System.Configuration;
using System.Linq;
namespace NLogger
{
public class CustomLogFactory<T> where T : NLoggerSection
{
private readonly List<ILogWriterRegistration<T>> _logWriterTypes;
public CustomLogFactory()
{
_logWriterTypes= n... | using System.Collections.Generic;
using System.Configuration;
using System.Linq;
namespace NLogger
{
public class CustomLogFactory<T> where T : NLoggerSection
{
private readonly List<ILogWriterRegistration<T>> _logWriterTypes;
public CustomLogFactory()
{
_logWriterTypes= n... | mit | C# |
1ab2381b7afc3d1f532628bdb2f773786b7af1c3 | Remove some unused usings | ccoton/MFlow,ccoton/MFlow,ccoton/MFlow | MFlow.Samples.Mvc/Global.asax.cs | MFlow.Samples.Mvc/Global.asax.cs | using System;
using System.Linq;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace MFlow.Samples.Mvc
{
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
// visit http://go.microsoft.com/?LinkId=9394801
public class ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace MFlow.Samples.Mvc
{
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
// visit http:/... | mit | C# |
b5aed429724d2735b0e3a0c699da23a2b24e3bd6 | Add Png,Tiff,Gif,Wmp encoders | tomba/Toolkit,sharpdx/Toolkit,sharpdx/Toolkit | Samples/WIC/EncodeDecode/Program.cs | Samples/WIC/EncodeDecode/Program.cs | // Copyright (c) 2010-2011 SharpDX - Alexandre Mutel
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modi... | // Copyright (c) 2010-2011 SharpDX - Alexandre Mutel
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modi... | mit | C# |
ec2723c10ac280cef1178ac9a4a642424088260f | Update AssemblyInfo.cs | demigor/nreact | NReact.Csx/Properties/AssemblyInfo.cs | NReact.Csx/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("NR... | 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("NR... | mit | C# |
a93b21a07db8add30741717db75df907271781e7 | fix ConsoleWriter QR output | tsongknows/WeChatBot.Net | WeChatBot.Net/Util/ConsoleWriter.cs | WeChatBot.Net/Util/ConsoleWriter.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace WeChatBot.Net.Util
{
public class ConsoleWriter
{
private const string Black = "";
private const string White = "";
/// <summary>
///
/// </summary>
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace WeChatBot.Net.Util
{
public class ConsoleWriter
{
private const string Black = "";
private const string White = " ";
/// <summary>
///
/// </summary>
... | mit | C# |
20da5d94a26aac8e8323fce409970c2d8a18c167 | update version | gaochundong/Cowboy.WebSockets | Cowboy.WebSockets/SolutionVersion.cs | Cowboy.WebSockets/SolutionVersion.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyDescription("Cowboy.WebSockets is a library for building WebSocket based services.")]
[assembly: AssemblyCompany("Dennis Gao")]
[assembly: AssemblyProduct("Cowboy.WebSockets")]
[assembly: AssemblyCopyright("Copyright © 2015-2016 Dennis ... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyDescription("Cowboy.WebSockets is a library for building WebSocket based services.")]
[assembly: AssemblyCompany("Dennis Gao")]
[assembly: AssemblyProduct("Cowboy.WebSockets")]
[assembly: AssemblyCopyright("Copyright © 2015-2016 Dennis ... | mit | C# |
a7c0dabf2dd181d45e0706526a12f92be434dc7f | Change Namespace | muhammedikinci/FuzzyCore | FuzzyCore/CommandClasses/GetFile.cs | FuzzyCore/CommandClasses/GetFile.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace FuzzyCore.Server.Commands
{
class GetFile
{
ConsoleMessage Message = new ConsoleMessage();
public voi... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace fuzzyControl.Server.Commands
{
class GetFile
{
ConsoleMessage Message = new ConsoleMessage();
public ... | mit | C# |
80e1d55909210da8fc1a748289805ac5dda76c51 | Handle overflows in line selection | fadookie/monodevelop-justenoughvi,hifi/monodevelop-justenoughvi | JustEnoughVi/ViMode.cs | JustEnoughVi/ViMode.cs | using System;
using MonoDevelop.Ide.Editor;
using MonoDevelop.Ide.Editor.Extension;
namespace JustEnoughVi
{
public abstract class ViMode
{
protected TextEditor Editor { get; set; }
public Mode RequestedMode { get; internal set; }
protected ViMode(TextEditor editor)
{
... | using System;
using MonoDevelop.Ide.Editor;
using MonoDevelop.Ide.Editor.Extension;
namespace JustEnoughVi
{
public abstract class ViMode
{
protected TextEditor Editor { get; set; }
public Mode RequestedMode { get; internal set; }
protected ViMode(TextEditor editor)
{
... | mit | C# |
f77d332dbeef8a18e195b256b5a259afbf18752a | Fix possible null-reference error | roman-yagodin/R7.Epsilon,roman-yagodin/R7.Epsilon,roman-yagodin/R7.Epsilon | R7.Epsilon/Skins/Controls/PageInfo.cs | R7.Epsilon/Skins/Controls/PageInfo.cs | //
// PageInfo.ascx.cs
//
// Author:
// Roman M. Yagodin <roman.yagodin@gmail.com>
//
// Copyright (c) 2015
//
// 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 res... | //
// PageInfo.ascx.cs
//
// Author:
// Roman M. Yagodin <roman.yagodin@gmail.com>
//
// Copyright (c) 2015
//
// 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 res... | agpl-3.0 | C# |
6e513a738890d7fe74f433dc1b0712731028fffd | Build Fix - Include missing | amaneureka/AtomOS,amaneureka/AtomOS,amaneureka/AtomOS | src/Compiler/Atomixilc/IL/CodeType/OpToken.cs | src/Compiler/Atomixilc/IL/CodeType/OpToken.cs | /*
* PROJECT: Atomix Development
* LICENSE: Copyright (C) Atomix Development, Inc - All Rights Reserved
* Unauthorized copying of this file, via any medium is
* strictly prohibited Proprietary and confidential.
* PURPOSE: Token Value MSIL
* PROGRAMME... | /*
* PROJECT: Atomix Development
* LICENSE: Copyright (C) Atomix Development, Inc - All Rights Reserved
* Unauthorized copying of this file, via any medium is
* strictly prohibited Proprietary and confidential.
* PURPOSE: Token Value MSIL
* PROGRAMME... | bsd-3-clause | C# |
f58e5cfec6ad26883e4bc8801f91b13ab82f817a | Bump assembly version number | nerdfury/Slack.Webhooks,asizikov/Slack.Webhooks,nerdfury/Slack.Webhooks,mteper/Slack.Webhooks,circuitrider/Slack.Webhooks | src/Slack.Webhooks/Properties/AssemblyInfo.cs | src/Slack.Webhooks/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("Sl... | 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("Sl... | mit | C# |
646e035b0a0c490d4922a8c147bd2d2d7b25db6c | update assemblyinfo | yanghongjie/DotNetDev | src/Dev/Properties/AssemblyInfo.cs | src/Dev/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Dev")]
[assembly: AssemblyDescription("C# 常用类库及拓展方法")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("逗豆豆")]
[assembly: AssemblyProduct("Dev")]
[assembly: As... | using System.Reflection;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Dev")]
[assembly: AssemblyDescription("DotNet 开发组件")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Dev")]
[assembly: Assemb... | apache-2.0 | C# |
4b47b407f18f1a64d5fc1e4a1ae2c24c0b9e6d4a | Edit library version | Vtek/Ninject.WebContext | src/Ninject.WebContext/Properties/AssemblyInfo.cs | src/Ninject.WebContext/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Ninject.WebContext")]
[assembly: AssemblyDescription("Smart IoC library for your WebApp")]
[assem... | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Ninject.WebContext")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[... | mit | C# |
6889d63bfae6312cd7585ca3ec2263dd0f820619 | Update BuildWebsite.cs | dotnetsheff/dotnetsheff-api,dotnetsheff/dotnetsheff-api | src/dotnetsheff.Api/BuildWebsite/BuildWebsite.cs | src/dotnetsheff.Api/BuildWebsite/BuildWebsite.cs | using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Host;
namespace dotnetsheff.Api.BuildWebsite
{
public static class BuildWebsite
{
private static readonly HttpClient HttpClient = new HttpClien... | using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Host;
namespace dotnetsheff.Api.BuildWebsite
{
public static class BuildWebsite
{
private static readonly HttpClient HttpClient = new HttpClien... | mit | C# |
380fa199d098875f10c012746685ae3eb02dd629 | copy file listing and file download method | j2ghz/IntranetGJAK,j2ghz/IntranetGJAK | IntranetGJAK/Controllers/FileController.cs | IntranetGJAK/Controllers/FileController.cs | using IntranetGJAK.Models;
using Microsoft.AspNet.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
// For more information on enabling Web API for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
namespace IntranetGJAK.Controllers
{
using Sy... | using IntranetGJAK.Models;
using Microsoft.AspNet.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
// For more information on enabling Web API for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
namespace IntranetGJAK.Controllers
{
[Route("... | agpl-3.0 | C# |
345b38a6f6879ae1d9e78d289f0e3845b603e9ac | Update version number. | ronnymgm/csla-light,rockfordlhotka/csla,ronnymgm/csla-light,rockfordlhotka/csla,MarimerLLC/csla,MarimerLLC/csla,BrettJaner/csla,MarimerLLC/csla,JasonBock/csla,jonnybee/csla,JasonBock/csla,jonnybee/csla,BrettJaner/csla,ronnymgm/csla-light,jonnybee/csla,rockfordlhotka/csla,JasonBock/csla,BrettJaner/csla | cslacs/Csla/Properties/AssemblyInfo.cs | cslacs/Csla/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("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("CS... | mit | C# |
db4c1b5b5e4cb47155a390ebd382e249ad9b274e | Remove Readline() | SeanDuffy42/SudokuSolver | SudokuSolver/Program.cs | SudokuSolver/Program.cs | using Microsoft.Practices.Unity;
using SudukoSolverLib;
using SudukoSolverLib.Interfaces;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;
namespace SudokuSolverConsole
{
class Program
{
sta... | using Microsoft.Practices.Unity;
using SudukoSolverLib;
using SudukoSolverLib.Interfaces;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;
namespace SudokuSolverConsole
{
class Program
{
sta... | mit | C# |
2c1523097f62182c2749747fb437064efb2a7e93 | refactor user agent to more leaner and cleaner | wangkanai/Detection | src/Detection.Core/src/Models/UserAgent.cs | src/Detection.Core/src/Models/UserAgent.cs | // Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved.
// The Apache v2. See License.txt in the project root for license information.
namespace Wangkanai.Detection
{
public class UserAgent
{
private readonly string _useragent;
public UserAgent()
=> _useragent = string.... | // Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved.
// The Apache v2. See License.txt in the project root for license information.
namespace Wangkanai.Detection
{
public class UserAgent //: IUserAgent
{
private readonly string useragent;
public UserAgent() => useragent = string... | apache-2.0 | C# |
eedf0955b63450fbe528123c62be2ecba417fc32 | Update ProblemDetails.cs | paulcbetts/refit,paulcbetts/refit,PKRoma/refit | Refit/ProblemDetails.cs | Refit/ProblemDetails.cs | using System.Collections.Generic;
namespace Refit
{
/// <summary>
/// The object representing the details about a ValidationException caught by a service implementing RFC 7807.
/// </summary>
public class ProblemDetails
{
/// <summary>
/// Collection of resulting errors for the req... | using System.Collections.Generic;
namespace Refit
{
public class ProblemDetails
{
/// <summary>
/// Collection of resulting errors for the request.
/// </summary>
public Dictionary<string, string[]> Errors { get; set; } = new Dictionary<string, string[]>();
/// <summar... | mit | C# |
4e473923112e9a5cd291533dbdaf9634fe062ae0 | Test in wrong place | tommarien/zenini | src/Zenini.Tests/Model/An_IniSettings_instance.cs | src/Zenini.Tests/Model/An_IniSettings_instance.cs | using System.Linq;
using NUnit.Framework;
using Shouldly;
using Zenini.Model;
namespace Zenini.Tests.Model
{
[TestFixture]
public class An_IniSettings_instance
{
[SetUp]
public void Setup()
{
sectionOne = new Section("SectionOne");
sectionTwo = new Section("... | using System.Linq;
using NUnit.Framework;
using Shouldly;
using Zenini.Model;
namespace Zenini.Tests.Model
{
[TestFixture]
public class An_IniSettings_instance
{
[SetUp]
public void Setup()
{
sectionOne = new Section("SectionOne");
sectionTwo = new Section("... | mit | C# |
b9a1fbfd1b4d37f0a815c5b3d3cb38a9c224a37c | Fix d71b852 | sergeyshushlyapin/Sitecore-Instance-Manager,Sitecore/Sitecore-Instance-Manager,Brad-Christie/Sitecore-Instance-Manager | src/SIM.Pipelines/Export/ExportSettings.cs | src/SIM.Pipelines/Export/ExportSettings.cs | namespace SIM.Pipelines.Export
{
using System.Diagnostics;
using System.IO;
using SIM.Adapters.WebServer;
internal class ExportSettings : ExportProcessor
{
#region Protected methods
protected override void Process(ExportArgs args)
{
var websiteName = args.Instance.Name;
using (var c... | namespace SIM.Pipelines.Export
{
using System.Diagnostics;
using System.IO;
using SIM.Adapters.WebServer;
internal class ExportSettings : ExportProcessor
{
#region Protected methods
protected override void Process(ExportArgs args)
{
var websiteName = args.Instance.Name;
var appPoolN... | mit | C# |
7dcd986def5bd2bdba99acdd79dfb810e02cba3c | Update version number. | Damnae/storybrew | editor/Properties/AssemblyInfo.cs | editor/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("storybrew editor")]
[assembly: AssemblyDe... | 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("storybrew editor")]
[assembly: AssemblyDe... | mit | C# |
b2ba1d701922d2312d59099c56cdc31cd3df6975 | Fix issue with getting content. | TastesLikeTurkey/Papyrus | Papyrus/Papyrus.Demo/MainPage.xaml.cs | Papyrus/Papyrus.Demo/MainPage.xaml.cs | using Newtonsoft.Json;
using System;
using System.Diagnostics;
using System.IO;
using Windows.Storage.Pickers;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespace Papyrus.Demo
{
public sealed partial class MainPage : Page
{
#region EBook
public EBook EBook
{
g... | using Newtonsoft.Json;
using System;
using System.Diagnostics;
using System.IO;
using Windows.Storage.Pickers;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespace Papyrus.Demo
{
public sealed partial class MainPage : Page
{
#region EBook
public EBook EBook
{
g... | mit | C# |
6ef3f23eb5e253b93c7c8b161e445f87c396ccc4 | Update AvailableTranslations.cs | Utdanningsdirektoratet/IdentityServer3.Contrib.Localization,totpero/IdentityServer3.Contrib.Localization,IdentityServer/IdentityServer3.Contrib.Localization,darkestspirit/IdentityServer3.Contrib.Localization,johnkors/IdentityServer3.Contrib.Localization | source/Unittests/AvailableTranslations.cs | source/Unittests/AvailableTranslations.cs | using System.Linq;
using Thinktecture.IdentityServer.Core.Services.Contrib;
using Xunit;
namespace Unittests
{
public class AvailableTranslations
{
[Theory]
[InlineData("Default")]
[InlineData("pirate")]
[InlineData("de-DE")]
[InlineData("es-AR")]
[InlineData("fr... | using System.Linq;
using Thinktecture.IdentityServer.Core.Services.Contrib;
using Xunit;
namespace Unittests
{
public class AvailableTranslations
{
[Theory]
[InlineData("Default")]
[InlineData("pirate")]
[InlineData("de-DE")]
[InlineData("es-AR")]
[InlineData("fr... | mit | C# |
ce589d7303a2aab1235d933323cc847dc5357cab | Fix for loading mysettings | mrvoorhe/redox-extensions,mrvoorhe/redox-extensions,mrvoorhe/redox-extensions | RedoxExtensions/Settings/ActiveSettings.cs | RedoxExtensions/Settings/ActiveSettings.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using NiceIO;
namespace RedoxExtensions.Settings
{
public static class ActiveSettings
{
private static UserSettings _activeSettings;
public static void Clear()
{
_a... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using NiceIO;
namespace RedoxExtensions.Settings
{
public static class ActiveSettings
{
private static UserSettings _activeSettings;
public static void Clear()
{
_a... | mit | C# |
3e12204c60ada8164561a841bb8dcb4c96078c99 | Fix sample: encoder must be disposed | weltkante/managed-lzma,weltkante/managed-lzma,weltkante/managed-lzma | sandbox-7z/Program.cs | sandbox-7z/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using ManagedLzma.LZMA.Master.SevenZip;
namespace sandbox_7z
{
static class Program
{
class Password: master._7zip.Legacy.IPasswordProvider
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using ManagedLzma.LZMA.Master.SevenZip;
namespace sandbox_7z
{
static class Program
{
class Password: master._7zip.Legacy.IPasswordProvider
... | mit | C# |
9f12c3a4e4645b21a4a4a9dba8d81ac859bf2733 | Add safe ctor overload for UnmanagedDataSource. | Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver | src/AsmResolver/IO/UnmanagedDataSource.cs | src/AsmResolver/IO/UnmanagedDataSource.cs | using System;
using System.Runtime.InteropServices;
namespace AsmResolver.IO
{
/// <summary>
/// Represents a data source that obtains its data from a block of unmanaged memory.
/// </summary>
public sealed unsafe class UnmanagedDataSource : IDataSource
{
private readonly void* _basePointer... | using System;
using System.Runtime.InteropServices;
namespace AsmResolver.IO
{
/// <summary>
/// Represents a data source that obtains its data from a block of unmanaged memory.
/// </summary>
public sealed unsafe class UnmanagedDataSource : IDataSource
{
private readonly void* _basePointer... | mit | C# |
9116df615f7a2eb11f88c0d28d35ccf864462201 | Update GlennStephens.cs | beraybentesen/planetxamarin,planetxamarin/planetxamarin,stvansolano/planetxamarin,stvansolano/planetxamarin,planetxamarin/planetxamarin,stvansolano/planetxamarin,MabroukENG/planetxamarin,planetxamarin/planetxamarin,MabroukENG/planetxamarin,beraybentesen/planetxamarin,planetxamarin/planetxamarin,MabroukENG/planetxamarin... | src/Firehose.Web/Authors/GlennStephens.cs | src/Firehose.Web/Authors/GlennStephens.cs | using System;
using System.Collections.Generic;
using Firehose.Web.Infrastructure;
namespace Firehose.Web
{
public class GlennStephens : IWorkAtXamarinOrMicrosoft
{
public string FirstName => "Glenn";
public string LastName => "Stephens";
public string StateOrRegion => "Sunshine Coast, Australia";
public... | using System;
using System.Collections.Generic;
using Firehose.Web.Infrastructure;
namespace Firehose.Web
{
public class GlennStephens : IWorkAtXamarinOrMicrosoft
{
public string FirstName => "Glenn";
public string LastName => "Stephens";
public string StateOrRegion => "Sunshine Coast, Australia";
public... | mit | C# |
7393fad3bc9ceb4105c3fef3d28e5b858b7c2735 | Add license to new unit test class file | fredatgithub/UsefulFunctions | UnitTestUsefullFunctions/UnitTest1.cs | UnitTestUsefullFunctions/UnitTest1.cs | /*
The MIT License(MIT)
Copyright(c) 2015 Freddy Juhel
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, pub... | using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTestUsefullFunctions
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
Assert.IsTrue(true);
}
}
} | mit | C# |
733cf350f53e321367e279ad0c1291f56fdcea47 | Change return type from bool to void. | Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW | src/NadekoBot/Resources/CommandStrings.cs | src/NadekoBot/Resources/CommandStrings.cs | using System;
using System.IO;
using System.Linq;
using Mitternacht.Common.Collections;
using Newtonsoft.Json;
using NLog;
namespace Mitternacht.Resources
{
public class CommandStrings
{
private static readonly Logger Log;
private const string CmdStringPath = @"./_strings/commandst... | using System;
using System.IO;
using System.Linq;
using Mitternacht.Common.Collections;
using Newtonsoft.Json;
using NLog;
namespace Mitternacht.Resources
{
public class CommandStrings
{
private static readonly Logger Log;
private const string CmdStringPath = @"./_strings/commandstrings.json";... | mit | C# |
44a6a4ca6037f8dd10c04a4e93c9ddf01e0c5da5 | update TerminalLexeme by moving method | bilsaboob/Pliant,patrickhuber/Pliant | libraries/Pliant/Lexemes/TerminalLexeme.cs | libraries/Pliant/Lexemes/TerminalLexeme.cs | using Pliant.Grammars;
using Pliant.Tokens;
namespace Pliant.Lexemes
{
public class TerminalLexeme : ILexeme
{
public ITerminal Terminal { get; private set; }
public string Capture { get; private set; }
public TokenType TokenType { get; private set; }
public TerminalLexeme(I... | using Pliant.Grammars;
using Pliant.Tokens;
namespace Pliant.Lexemes
{
public class TerminalLexeme : ILexeme
{
public ITerminal Terminal { get; private set; }
public string Capture { get; private set; }
public TokenType TokenType { get; private set; }
public TerminalLexeme(I... | mit | C# |
55c5e0eadb60d9d0f5822d6dc91e4cb6e9d6081f | Remove redundant directive | Trulioo/sdk-csharp-v1 | src/Trulioo.Client.V1/Model/RecordRule.cs | src/Trulioo.Client.V1/Model/RecordRule.cs | namespace Trulioo.Client.V1.Model
{
public class RecordRule
{
public string RuleName { get; set; }
public string Note { get; set; }
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Trulioo.Client.V1.Model
{
public class RecordRule
{
public string RuleName { get; set; }
public string Note { get; set; }
}
}
| apache-2.0 | C# |
4a25d87fede3758c384799d121f1ec4be87e6c7e | Fix author name on commits | BeefEX/ships | Ships-Client/Rendering/Renderer.cs | Ships-Client/Rendering/Renderer.cs | using System;
using Ships_Common;
namespace Ships_Client {
public static class Renderer {
public static char[][,] loadingCircle = {
new [,] {
{'\\', '_', '/'}, {' ', ' ', ' '}, {' ', ' ', ' '}
},
new [,] {
{'\\', '_', ' '}, {'|', ' ', ' '}, {' ', ' ', ' '}
},
new [,] {
{'\\', ' ',... | using System;
using System.Collections.Generic;
using System.Reflection.Emit;
using Ships_Common;
namespace Ships_Client {
public static class Renderer {
public static char[][,] loadingCircle = {
new [,] {
{'\\', '_', '/'}, {' ', ' ', ' '}, {' ', ' ', ' '}
},
new [,] {
{'\\', '_', ' '}, {'|'... | mit | C# |
d50998e7c6dd74b16896ce9395fd8daf837ab09b | Set property item as localizable only if Localizable attribute value is true | rolembergfilho/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,rolembergfilho/Serenity,volkanceylan/Serenity,WasimAhmad/Serenity,rolembergfilho/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,WasimAhmad/Serenity,WasimAhmad/Serenity,rolembergfilho/Serenity,rolembergfilho/Serenity,WasimAhmad/Serenity,WasimAhmad... | Serenity.Services/RequestHandlers/IntegratedFeatures/Localization/LocalizablePropertyProcessor.cs | Serenity.Services/RequestHandlers/IntegratedFeatures/Localization/LocalizablePropertyProcessor.cs | using Serenity.ComponentModel;
using Serenity.Data;
using System;
using System.ComponentModel;
using System.Reflection;
namespace Serenity.PropertyGrid
{
public partial class LocalizablePropertyProcessor : PropertyProcessor
{
private ILocalizationRowHandler localizationRowHandler;
... | using Serenity.ComponentModel;
using Serenity.Data;
using System;
using System.ComponentModel;
using System.Reflection;
namespace Serenity.PropertyGrid
{
public partial class LocalizablePropertyProcessor : PropertyProcessor
{
private ILocalizationRowHandler localizationRowHandler;
... | mit | C# |
9c08b633e01e3410a609306399f571870896de35 | Update Program.cs | organizacjaJM/rezerwacjaKawa | ConsoleApplication1/ConsoleApplication1/Program.cs | ConsoleApplication1/ConsoleApplication1/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("asdasd");
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# |
95894a3177e0e1dfbc825b24be0f453b6a1efbc4 | Add try catches to SimpleServer Dispose where necessary to prevent throwing in unit tests. | RestSharp-resurrected/RestSharp,mattwalden/RestSharp,lydonchandra/RestSharp,rivy/RestSharp,SaltyDH/RestSharp,wparad/RestSharp,huoxudong125/RestSharp,jiangzm/RestSharp,restsharp/RestSharp,eamonwoortman/RestSharp.Unity,kouweizhong/RestSharp,dyh333/RestSharp,mwereda/RestSharp,cnascimento/RestSharp,who/RestSharp,wparad/Res... | RestSharp.IntegrationTests/Helpers/SimpleServer.cs | RestSharp.IntegrationTests/Helpers/SimpleServer.cs | namespace RestSharp.IntegrationTests.Helpers
{
using System;
using System.Net;
using System.Security;
using System.Threading;
public class SimpleServer : IDisposable
{
private readonly HttpListener listener;
private readonly Action<HttpListenerContext> handler;
private ... | namespace RestSharp.IntegrationTests.Helpers
{
using System;
using System.Net;
using System.Threading;
public class SimpleServer : IDisposable
{
private readonly HttpListener listener;
private readonly Action<HttpListenerContext> handler;
private Thread processor;
... | apache-2.0 | C# |
d2b9d69f9511fec77300cc7f057b1aaeedbead11 | Improve persistent session client test | xobed/RohlikAPI,xobed/RohlikAPI,notdev/RohlikAPI,xobed/RohlikAPI,xobed/RohlikAPI | RohlikAPITests/PersistentSessionHttpClientTests.cs | RohlikAPITests/PersistentSessionHttpClientTests.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using RohlikAPI;
namespace RohlikAPITests
{
[TestClass]
public class PersistentSessionHttpClientTests
{
[TestMethod]
public void HTTPGet_PersistsCookies()
{
const string testCookieName = "testCookieName";
c... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using RohlikAPI;
namespace RohlikAPITests
{
[TestClass]
public class PersistentSessionHttpClientTests
{
[TestMethod]
public void GetTest()
{
const string testCookieName = "testCookieName";
const string test... | mit | C# |
763d9778bb66bf131960d9281d243d9a826219a5 | Check parameters and add friendly exceptions. | chkr1011/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet | Source/MQTTnet/Extensions/UserPropertyExtension.cs | Source/MQTTnet/Extensions/UserPropertyExtension.cs | using System;
using System.Linq;
namespace MQTTnet.Extensions
{
public static class UserPropertyExtension
{
public static string GetUserProperty(this MqttApplicationMessage message, string propertyName, StringComparison comparisonType = StringComparison.OrdinalIgnoreCase)
{
if (mess... | using System;
using System.Linq;
namespace MQTTnet.Extensions
{
public static class UserPropertyExtension
{
public static string GetUserProperty(this MqttApplicationMessage message, string propertyName, StringComparison comparisonType = StringComparison.OrdinalIgnoreCase)
{
return m... | mit | C# |
d85c48a9d4307046fc34d198562351065e478102 | Increment version to 1.4.2 | evilz/sc2replay-csharp,ascendedguard/sc2replay-csharp | Starcraft2.ReplayParser/Properties/AssemblyInfo.cs | Starcraft2.ReplayParser/Properties/AssemblyInfo.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="Ascend">
// Copyright © 2011 All Rights Reserved
// </copyright>
// <summary>
// AssemblyInfo.cs
// </summary>
// -----------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="Ascend">
// Copyright © 2011 All Rights Reserved
// </copyright>
// <summary>
// AssemblyInfo.cs
// </summary>
// -----------------------------------... | mit | C# |
1c7cbceffcc274911d1a9cf6d71bd7943835f409 | Make ReflectionTypeGenericInfo failures easier to understand in test runner. | FUSEEProjectTeam/JSIL,acourtney2015/JSIL,Trattpingvin/JSIL,antiufo/JSIL,acourtney2015/JSIL,hach-que/JSIL,antiufo/JSIL,iskiselev/JSIL,dmirmilshteyn/JSIL,volkd/JSIL,sander-git/JSIL,sq/JSIL,dmirmilshteyn/JSIL,antiufo/JSIL,iskiselev/JSIL,mispy/JSIL,acourtney2015/JSIL,iskiselev/JSIL,sander-git/JSIL,FUSEEProjectTeam/JSIL,FUS... | Tests/SimpleTestCases/ReflectionTypeGenericInfo.cs | Tests/SimpleTestCases/ReflectionTypeGenericInfo.cs | using System;
using System.Linq.Expressions;
public static class Program
{
public static void Main()
{
Write(typeof(Base<,>), 1);
Write(typeof(Derived<>), 2);
Write(typeof(Derived<>).BaseType, 3);
Write(typeof(Derived<>).GetField("Field1").FieldType, 4);
Writ... | using System;
using System.Linq.Expressions;
public static class Program
{
public static void Main()
{
Write(typeof(Base<,>), 1);
Write(typeof(Derived<>), 2);
Write(typeof(Derived<>).BaseType, 3);
Write(typeof(Derived<>).GetField("Field1").FieldType, 4);
Writ... | mit | C# |
4a484c3539f111a8570621ef6cdad723c1d28ffa | fix threading bug | ruarai/Trigrad,ruarai/Trigrad | Trigrad/DataTypes/Compression/TrigradCompressed.cs | Trigrad/DataTypes/Compression/TrigradCompressed.cs | using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using ICSharpCode.SharpZipLib.BZip2;
using TriangleNet;
namespace Trigrad.DataTypes.Compression
{
/// <summary> The TrigradCompressed form o... | using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using ICSharpCode.SharpZipLib.BZip2;
using TriangleNet;
namespace Trigrad.DataTypes.Compression
{
/// <summary> The TrigradCompressed form o... | mit | C# |
8163d63342aca04f9861eb7c680a076e612c3af3 | Set "Last-Modified" for HomeController. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Backend/Controllers/HomeController.cs | WalletWasabi.Backend/Controllers/HomeController.cs | using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace WalletWasabi.Backend.Controllers
{
[Route("")]
public class HomeController : Controller
{
[HttpGet("")]
public ActionResult Index()
{
VirtualFileResult response = File... | using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace WalletWasabi.Backend.Controllers
{
[Route("")]
public class HomeController : Controller
{
[HttpGet("")]
public ActionResult Index()
{
return File("index.html", "text/h... | mit | C# |
a50c0f7f94720e35dfcc82ead284f1746b211769 | Fix cake again | stormpath/stormpath-dotnet-owin-middleware | build.cake | build.cake | var configuration = Argument("configuration", "Debug");
Task("Clean")
.Does(() =>
{
CleanDirectory("./artifacts/");
});
Task("Restore")
.Does(() =>
{
DotNetCoreRestore();
});
Task("Build")
.Does(() =>
{
var projects = GetFiles("./src/**/*.csproj");
Console.WriteLine("Building {0} projects", projects... | var configuration = Argument("configuration", "Debug");
Task("Clean")
.Does(() =>
{
CleanDirectory("./artifacts/");
});
Task("Restore")
.Does(() =>
{
DotNetCoreRestore();
});
Task("Build")
.Does(() =>
{
var projects = GetFiles("./src/**/*.csproj");
Console.WriteLine("Building {0} projects", projects... | apache-2.0 | C# |
9cd914b36a3ff56251935922393a3ccbf09e38e6 | add apiSessionId to token resp | SnapMD/connectedcare-sdk | SnapMD.VirtualCare.ApiModels/SerializableToken.cs | SnapMD.VirtualCare.ApiModels/SerializableToken.cs | #region Copyright
// Copyright 2016 SnapMD, Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by ap... | #region Copyright
// Copyright 2016 SnapMD, Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by ap... | apache-2.0 | C# |
7fbc1ff26769034d533edbe90da0e06a7cd70c74 | Fix new unit test to fail if it does not throw properly | marianosz/azure-mobile-services,baumatron/azure-mobile-services-baumatron,dcristoloveanu/azure-mobile-services,Azure/azure-mobile-services,soninaren/azure-mobile-services,Reminouche/azure-mobile-services,Reminouche/azure-mobile-services,ysxu/azure-mobile-services,cmatskas/azure-mobile-services,gb92/azure-mobile-service... | sdk/Managed/test/Microsoft.WindowsAzure.MobileServices.WindowsStore.Test/UnitTests/PushUnit.Test.cs | sdk/Managed/test/Microsoft.WindowsAzure.MobileServices.WindowsStore.Test/UnitTests/PushUnit.Test.cs | // ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
using System;
using System.Linq;
using Microsoft.WindowsAzure.MobileServices.Test.Functional;
us... | // ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
using System;
using System.Linq;
using Microsoft.WindowsAzure.MobileServices.Test.Functional;
us... | apache-2.0 | C# |
e37ff06578e34e9be035d7b230965b8afdf14989 | Set Credits to long to prevent overflow | timeanddate/libtad-net | TimeAndDate.Services/DataTypes/Account/Account.cs | TimeAndDate.Services/DataTypes/Account/Account.cs | using System;
using System.Collections.Generic;
using System.Xml;
using TimeAndDate.Services.DataTypes.Time;
namespace TimeAndDate.Services.DataTypes.Account
{
public class Account
{
/// <summary>
/// Padded 8-digit account ID.
/// </summary>
/// <value>
/// The account ID..
/// </value>
public string ... | using System;
using System.Collections.Generic;
using System.Xml;
using TimeAndDate.Services.DataTypes.Time;
namespace TimeAndDate.Services.DataTypes.Account
{
public class Account
{
/// <summary>
/// Padded 8-digit account ID.
/// </summary>
/// <value>
/// The account ID..
/// </value>
public string ... | mit | C# |
b7c64ecbfbe8a77501cfdaed6ff5bb06f3110316 | Simplify CanClone logic | krille90/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,krille90/unitystation,krille90/unitystation,fomalsd/unitystation | UnityProject/Assets/Scripts/Medical/CloningPod.cs | UnityProject/Assets/Scripts/Medical/CloningPod.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Mirror;
public class CloningPod : NetworkBehaviour
{
[SyncVar(hook = nameof(SyncSprite))] public CloningPodStatus statusSync;
public SpriteRenderer spriteRenderer;
public Sprite cloningSprite;
public Sprite emptySprite;
public ... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Mirror;
public class CloningPod : NetworkBehaviour
{
[SyncVar(hook = nameof(SyncSprite))] public CloningPodStatus statusSync;
public SpriteRenderer spriteRenderer;
public Sprite cloningSprite;
public Sprite emptySprite;
public ... | agpl-3.0 | C# |
31ca4785424b8017b01f8550f588de7a58d5f694 | change localhost ip address | xlui/KinectProject,xlui/KinectProject,xlui/KinectProject,xlui/KinectProject | csharp_client/csharp_client/Config.cs | csharp_client/csharp_client/Config.cs | /* 在该文件中设置:
* 服务器 IP 地址
* 服务器端口号
* 引用:
* Config.SERVER_IP
* Config.SERVER_PORT
*/
using System;
namespace csharp_client
{
class Config
{
// 部署用的服务器 IP 地址
// public const String SERVER_IP = "111.231.1.210";
// 测试用的本机 IP 地址
public const String SERVER_IP = "10.100.67.235";
... | /* 在该文件中设置:
* 服务器 IP 地址
* 服务器端口号
* 引用:
* Config.SERVER_IP
* Config.SERVER_PORT
*/
using System;
namespace csharp_client
{
class Config
{
// 部署用的服务器 IP 地址
// public const String SERVER_IP = "111.231.1.210";
// 测试用的本机 IP 地址
public const String SERVER_IP = "192.168.1.165";
... | apache-2.0 | C# |
147b8f7cd274cbc05a5571bfba4d497d28aad821 | fix missing using | ArsenShnurkov/BitSharp | BitSharp.Core/Wallet/WalletAddress.cs | BitSharp.Core/Wallet/WalletAddress.cs | using BitSharp.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BitSharp.Core.Wallet
{
public class WalletAddress
{
// point in the blockchain when monitoring started
private readonly UInt256 start... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BitSharp.Core.Wallet
{
public class WalletAddress
{
// point in the blockchain when monitoring started
private readonly UInt256 startBlockHash;
priv... | unlicense | C# |
fd99da52e103fdfc8569e931ce2555b61b8555a9 | Fix fault in context menu | mike-ward/tweetz-desktop | tweetz5/tweetz5/Controls/Timeline.xaml.cs | tweetz5/tweetz5/Controls/Timeline.xaml.cs | // Copyright (c) 2013 Blue Onion Software - All rights reserved
using System.Windows;
using System.Windows.Input;
using tweetz5.Model;
namespace tweetz5.Controls
{
public partial class Timeline
{
public TimelineController Controller { get; private set; }
public Timeline()
... | // Copyright (c) 2013 Blue Onion Software - All rights reserved
using System.Windows.Documents;
using System.Windows.Input;
using tweetz5.Model;
namespace tweetz5.Controls
{
public partial class Timeline
{
public TimelineController Controller { get; private set; }
public Timeline... | mit | C# |
4125ee612c2109a922e4d1d9837bb486ecba26c2 | Support russian variant in FtpServerStrings.fileSizeNotInASCII | robinrodricks/FluentFTP,robinrodricks/FluentFTP,robinrodricks/FluentFTP | FluentFTP/Servers/FtpServerStrings.cs | FluentFTP/Servers/FtpServerStrings.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace FluentFTP.Servers {
internal static class FtpServerStrings {
#region File Exists
/// <summary>
/// Error messages returned by various servers when a file does not exist.
/// Instead of throwing an error, we use these to detect and... | using System;
using System.Collections.Generic;
using System.Text;
namespace FluentFTP.Servers {
internal static class FtpServerStrings {
#region File Exists
/// <summary>
/// Error messages returned by various servers when a file does not exist.
/// Instead of throwing an error, we use these to detect and... | mit | C# |
3a17d7b12ea98156a1617f9b7e5f6efff3c2fb97 | Add the col class. (It move the button to the right a little) | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Mvc/Views/AdminAnalysis/Delete.cshtml | Anlab.Mvc/Views/AdminAnalysis/Delete.cshtml | @using AnlabMvc.Controllers
@model AnlabMvc.Controllers.AdminAnalysisController.AnalysisDeleteModel
@{
ViewBag.Title = "Delete Analysis Method";
}
<div class="col">
<hr />
<h3>Are you sure you want to delete this?</h3>
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model... | @using AnlabMvc.Controllers
@model AnlabMvc.Controllers.AdminAnalysisController.AnalysisDeleteModel
@{
ViewBag.Title = "Delete Analysis Method";
}
<div>
<hr />
<h3>Are you sure you want to delete this?</h3>
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.An... | mit | C# |
53b3bb9a3208844510c01dc78f8f68569148c7f2 | add ex hook | ProRoman/Aura_PhotoViewer | AuraPhotoViewer/AuraPhotoViewer/App.xaml.cs | AuraPhotoViewer/AuraPhotoViewer/App.xaml.cs | using AuraPhotoViewer.Modules.Common.Events;
using Microsoft.Practices.Unity;
using Prism.Events;
using System.Windows;
using log4net;
using System;
using System.Windows.Threading;
namespace AuraPhotoViewer
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Ap... | using AuraPhotoViewer.Modules.Common.Events;
using Microsoft.Practices.Unity;
using Prism.Events;
using System.Windows;
using log4net;
namespace AuraPhotoViewer
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
#region Log4net
... | mit | C# |
a5936be1385293f868622c9b9179bb6da73b26a8 | Add warning | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Views/SUTA/New.cshtml | Battery-Commander.Web/Views/SUTA/New.cshtml | @model BatteryCommander.Web.Commands.AddSUTARequest
<div class="alert alert-default">
Use this form to submit a Substitute Unit Training (SUTA) request to your chain of command.
</div>
<div class="alert alert-warning">
Note: All requests are subject to mission requirements and Commander's discretion!
</div>
... | @model BatteryCommander.Web.Commands.AddSUTARequest
@using (Html.BeginForm("Save", "SUTA", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary()
<div class="form-group form-group-lg">
@Html.DisplayNameFor(model => model.Soldier)
... | mit | C# |
394e834e4846908b832085ba1758c60ef6e0e8ac | Remove use of "unaligned. 8" IL instruction | RyanLamansky/dotnet-webassembly | WebAssembly/Instructions/MemoryReadInstruction.cs | WebAssembly/Instructions/MemoryReadInstruction.cs | using System.Reflection.Emit;
using WebAssembly.Runtime;
using WebAssembly.Runtime.Compilation;
namespace WebAssembly.Instructions
{
/// <summary>
/// Provides shared functionality for instructions that read from linear memory.
/// </summary>
public abstract class MemoryReadInstruction : MemoryImmedia... | using System.Reflection.Emit;
using WebAssembly.Runtime;
using WebAssembly.Runtime.Compilation;
namespace WebAssembly.Instructions
{
/// <summary>
/// Provides shared functionality for instructions that read from linear memory.
/// </summary>
public abstract class MemoryReadInstruction : MemoryImmedia... | apache-2.0 | C# |
d093eb6660c7f04ff27c75dd587e08bb67bd48d0 | Mark sprite read-only | NeoAdonis/osu,peppy/osu,ppy/osu,johnneijzen/osu,smoogipoo/osu,2yangk23/osu,EVAST9919/osu,ppy/osu,ZLima12/osu,peppy/osu,EVAST9919/osu,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,2yangk23/osu,ppy/osu,UselessToucan/osu,peppy/osu,johnneijzen/osu,smoogipooo/osu,ZLima12/osu,smoogipoo/osu,peppy/osu-new,NeoAdonis/osu,Neo... | osu.Game/Graphics/Backgrounds/Background.cs | osu.Game/Graphics/Backgrounds/Background.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.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.... | // 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.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics... | mit | C# |
288a435cecba3de2517d68c67a5d3efb39e5a29e | Remove errant comment on calc type | mattgwagner/CertiPay.Payroll.Common | CertiPay.Payroll.Common/CalculationType.cs | CertiPay.Payroll.Common/CalculationType.cs | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace CertiPay.Payroll.Common
{
/// <summary>
/// Identifies the method to calculate the result
/// </summary>
public enum CalculationType : byte
{
/// <summary>
/// Deduction is taken as a percentag... | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace CertiPay.Payroll.Common
{
/// <summary>
/// Identifies the method to calculate the result
/// </summary>
public enum CalculationType : byte
{
// TODO: We might implement some other calculation methods ... | mit | C# |
c84759968874d903b4319900638ccf13eac19063 | Tweak module for returning PDF request | kylebjones/CertiPay.Services.PDF | CertiPay.Services.PDF/Modules/PdfModule.cs | CertiPay.Services.PDF/Modules/PdfModule.cs | using CertiPay.Common;
using CertiPay.PDF;
using Nancy;
using Nancy.ModelBinding;
using Nancy.Responses;
using System;
using System.Configuration;
using System.IO;
using System.Net.Mime;
namespace CertiPay.Services.PDF.Modules
{
public class PdfModule : NancyModule
{
private static String AppName { ge... | using CertiPay.Common;
using CertiPay.PDF;
using Nancy;
using Nancy.ModelBinding;
using Nancy.Responses;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
namespace CertiPay.Services.PDF.Modules
{
public class PdfModule : NancyModule
{
private static String A... | mit | C# |
f645d4d25d09fb4b81266fa6e1e5b223e47a2a17 | Remove usage of newer C# feature | GrognardsFromHell/TemplePlus,GrognardsFromHell/TemplePlus,GrognardsFromHell/TemplePlus,GrognardsFromHell/TemplePlus,GrognardsFromHell/TemplePlus | Configurator/SaveGameFolder.cs | Configurator/SaveGameFolder.cs | using System;
using System.Runtime.InteropServices;
namespace TemplePlusConfig
{
class SaveGameFolder
{
private static readonly Guid SavedGames = new Guid("4C5C32FF-BB9D-43b0-B5B4-2D72E54EAAA4");
[DllImport("shell32.dll")]
private static extern int SHGetKnownFolderPath(
[... | using System;
using System.Runtime.InteropServices;
namespace TemplePlusConfig
{
class SaveGameFolder
{
private static readonly Guid SavedGames = new Guid("4C5C32FF-BB9D-43b0-B5B4-2D72E54EAAA4");
[DllImport("shell32.dll")]
private static extern int SHGetKnownFolderPath(
[... | mit | C# |
70bac48cd79c42557e0a64fa89adf9bb59cb8e44 | Fix warning. | JohanLarsson/Gu.Wpf.ToolTips | Gu.Wpf.ToolTips.UiTests/MainWindowTests.cs | Gu.Wpf.ToolTips.UiTests/MainWindowTests.cs | namespace Gu.Wpf.ToolTips.UiTests
{
using Gu.Wpf.UiAutomation;
using NUnit.Framework;
public class MainWindowTests
{
[Test]
public void ClickAllTabs()
{
// Just a smoke test so we don't crash.
using (var app = Application.Launch("Gu.Wpf.ToolTips.Demo.exe"... | namespace Gu.Wpf.ToolTips.UiTests
{
using Gu.Wpf.UiAutomation;
using NUnit.Framework;
public class MainWindowTests
{
[Test]
public void ClickAllTabs()
{
// Just a smoke test so we don't crash.
using (var app = Application.Launch("Gu.Wpf.ToolTips.Demo.exe"... | mit | C# |
9caac71450b8f4befd72ffba042b668f4582095d | Update assembly information | jozefizso/FogBugz-ExtendedEvents,jozefizso/FogBugz-ExtendedEvents | FBExtendedEvents/Properties/AssemblyInfo.cs | FBExtendedEvents/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Extended Events")]
[assembly: AssemblyDescription("Show events from external sources like Subversion, TeamCity and Jenkins.")]
[assembly: AssemblyCompany("Jozef Izso")]
[assembly: AssemblyPr... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Extended Events")]
[assembly: AssemblyDescription("Show events from external sources like Subversion, TeamCity and Jenkins.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompan... | mit | C# |
dace33e59c93a40e73341a8b11d78d72e9630bb5 | add year property to Quote | jgraber/MicroORM_examples,jgraber/MicroORM_examples,jgraber/MicroORM_examples | MicroORM_Dapper/Quotations/Models/Quote.cs | MicroORM_Dapper/Quotations/Models/Quote.cs | namespace Quotations.Models
{
public class Quote
{
public int Id { get; set; }
public string Text { get; set; }
public string Context { get; set; }
public Person Author { get; set; }
public string Year { get; set; }
}
} | namespace Quotations.Models
{
public class Quote
{
public int Id { get; set; }
public string Text { get; set; }
public string Context { get; set; }
public Person Author { get; set; }
}
} | apache-2.0 | C# |
d23dd26b31d7ebbced51bc23bc0690434ba90766 | update in performance benchmark | p-org/PSharp | Tests/Performance.Tests/NBody/Test.cs | Tests/Performance.Tests/NBody/Test.cs | using System;
using Microsoft.PSharp;
using Microsoft.PSharp.Utilities;
namespace NBody
{
public class Test
{
static readonly int NumOfBodies = 1000;
static readonly int NumOfSteps = 100;
static void Main(string[] args)
{
Profiler profiler = new Profiler();
... | using System;
using Microsoft.PSharp;
using Microsoft.PSharp.Utilities;
namespace NBody
{
public class Test
{
static readonly int NumOfBodies = 100;
static readonly int NumOfSteps = 100;
static void Main(string[] args)
{
Profiler profiler = new Profiler();
... | mit | C# |
2881d9af4ddaabebb6f0870c12bc80eed5e0f3f3 | Format available channels for Limit attribute | mastorm/MODiX,mariocatch/MODiX,mariocatch/MODiX,mariocatch/MODiX,mariocatch/MODiX | Modix/Utilities/LimitToChannelsAttribute.cs | Modix/Utilities/LimitToChannelsAttribute.cs | using Discord.Commands;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace Modix.Utilities
{
public class LimitToChannelsAttribute : PreconditionAttribute
{
public override Task<PreconditionResult> CheckPermissions(ICommandContext context, CommandInfo command, IDependencyMap map)... | using Discord.Commands;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace Modix.Utilities
{
public class LimitToChannelsAttribute : PreconditionAttribute
{
public override Task<PreconditionResult> CheckPermissions(ICommandContext context, CommandInfo command, IDependencyMap map)... | mit | C# |
9ca4a727514997c70c37f83aebbf1705a530273a | Fix code style and mode initialisation code to Initialize method | peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework | osu.Framework.iOS/Input/IOSMouseHandler.cs | osu.Framework.iOS/Input/IOSMouseHandler.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 CoreGraphics;
using Foundation;
using JetBrains.Annotations;
using osu.Framework.Input.Handlers;
using osu.Framework.Input.StateChanges;
using osu.Fr... | // 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 CoreGraphics;
using Foundation;
using ObjCRuntime;
using osu.Framework.Input.Handlers;
using osu.Framework.Input.StateChanges;
using osu.Framework.Pl... | mit | C# |
e42d8a73694ed6241f7d5b18c06591e644f05ad8 | edit for style | kaosborn/KaosCollections | Bench/RdExample02/RdExample02.cs | Bench/RdExample02/RdExample02.cs | using System;
using Kaos.Collections;
namespace ExampleApp
{
class RdExample02
{
static void Main()
{
var dary = new RankedDictionary<int,int>()
{ [36] = 360, [12] = 120 };
Console.WriteLine ("Keys:");
foreach (var key in dary.Keys)
... | using System;
using Kaos.Collections;
namespace ExampleApp
{
class RdExample02
{
static void Main()
{
var d2 = new RankedDictionary<int,int>()
{ [36] = 360, [12] = 120 };
Console.WriteLine ("Keys:");
foreach (var key in d2.Keys)
... | mit | C# |
b4a050b5b06ae120c0f329dfa713ed3bef26169d | Fix typo that broke the build | JasonBock/csla,rockfordlhotka/csla,rockfordlhotka/csla,JasonBock/csla,JasonBock/csla,rockfordlhotka/csla,MarimerLLC/csla,MarimerLLC/csla,MarimerLLC/csla | Source/Csla.Validation.Test/Properties/AssemblyInfo.cs | Source/Csla.Validation.Test/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("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("Cs... | mit | C# |
afbf1e2f722ac224f505426ee9b4f248810f6aca | Update ObsoleteAttribute Text | FormsCommunityToolkit/FormsCommunityToolkit | src/CommunityToolkit/Xamarin.CommunityToolkit/ObjectModel/Extensions/INotifyPropertyChangedExtension.shared.cs | src/CommunityToolkit/Xamarin.CommunityToolkit/ObjectModel/Extensions/INotifyPropertyChangedExtension.shared.cs | using System;
using System.ComponentModel;
namespace Xamarin.CommunityToolkit.ObjectModel.Extensions
{
public static class INotifyPropertyChangedExtension
{
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method is deprecated due to high probability of misuse. Use WeakEventManager instead.")]
pu... | using System;
using System.ComponentModel;
namespace Xamarin.CommunityToolkit.ObjectModel.Extensions
{
public static class INotifyPropertyChangedExtension
{
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method shouldn't be used week events (like one in ObservableObject). This method is deprecate... | mit | C# |
8e3212c9d0d2cf0887f4a1e5c0378c8e0d1fcb06 | fix UserConnections regex | signumsoftware/framework,avifatal/framework,avifatal/framework,AlejandroCano/framework,AlejandroCano/framework,signumsoftware/framework | Signum.Engine/Connection/UserConnections.cs | Signum.Engine/Connection/UserConnections.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Signum.Engine;
using System.Data.SqlClient;
using System.Diagnostics;
using Signum.Engine.Maps;
using Signum.Utilities;
using System.Text.RegularExpressions;
namespace Signum.Engine
{
public ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Signum.Engine;
using System.Data.SqlClient;
using System.Diagnostics;
using Signum.Engine.Maps;
using Signum.Utilities;
using System.Text.RegularExpressions;
namespace Signum.Engine
{
public ... | mit | C# |
6e64d653c5f775c37c951e35452b8fdccc86ccd4 | Hide connect password from logs. | chkr1011/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet | Source/MQTTnet/Packets/MqttConnectPacket.cs | Source/MQTTnet/Packets/MqttConnectPacket.cs | namespace MQTTnet.Packets
{
public class MqttConnectPacket : MqttBasePacket
{
public string ProtocolName { get; set; }
public byte? ProtocolLevel { get; set; }
public string ClientId { get; set; }
public string Username { get; set; }
public string Password { get; set... | namespace MQTTnet.Packets
{
public class MqttConnectPacket : MqttBasePacket
{
public string ProtocolName { get; set; }
public byte? ProtocolLevel { get; set; }
public string ClientId { get; set; }
public string Username { get; set; }
public string Password { get; set... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.