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 |
|---|---|---|---|---|---|---|---|---|
58c60100b431e6ce6ee720ff72206e9f9071d070 | Fix APIScoreToken's data type not matching server side | peppy/osu-new,ppy/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu,peppy/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu | osu.Game/Online/Rooms/APIScoreToken.cs | osu.Game/Online/Rooms/APIScoreToken.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 Newtonsoft.Json;
namespace osu.Game.Online.Rooms
{
public class APIScoreToken
{
[JsonProperty("id")]
public long ID { get; set; }
}
}
| // 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 Newtonsoft.Json;
namespace osu.Game.Online.Rooms
{
public class APIScoreToken
{
[JsonProperty("id")]
public int ID { get; set; }
}
}
| mit | C# |
a5794adbdce96484eb5ce44044b9333683fa69a3 | Update Laters class | one-signal/OneSignal-Xamarin-SDK,one-signal/OneSignal-Xamarin-SDK | Com.OneSignal.Core/Utilities/Later.cs | Com.OneSignal.Core/Utilities/Later.cs | using System;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace Laters {
/// <summary>For referencing <see cref="ILater{TResult}"/> generically</summary>
public interface ILater { }
/// <summary>Read-only interface for a standard <see cref="Later{TResult}"/></summary>
public ... | using System;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace Laters {
/// <summary>Read-only interface for a standard <see cref="Later{TResult}"/></summary>
public interface ILater<TResult> {
event Action<TResult> OnComplete;
TaskAwaiter<TResult> GetAwaiter();
... | mit | C# |
f75740f07ac32452ffac39f468ab1c51ae4c63b3 | Add ToString override to Process File | danielchalmers/DesktopWidgets | DesktopWidgets/Classes/ProcessFile.cs | DesktopWidgets/Classes/ProcessFile.cs | using System.ComponentModel;
using System.Diagnostics;
using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;
namespace DesktopWidgets.Classes
{
[ExpandableObject]
[DisplayName("Process File")]
public class ProcessFile : FilePath
{
public ProcessFile(string path) : base(path)
{
P... | using System.ComponentModel;
using System.Diagnostics;
using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;
namespace DesktopWidgets.Classes
{
[ExpandableObject]
[DisplayName("Process File")]
public class ProcessFile : FilePath
{
public ProcessFile(string path) : base(path)
{
P... | apache-2.0 | C# |
2f8842761387e24a76c6cdc4ef836f06893d796f | update version | DanielLavrushin/LinqToSolr | LinqToSolr/Properties/AssemblyInfo.cs | LinqToSolr/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("Li... | 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("Li... | mit | C# |
aea414fb31f2ae3aed7dec68d22ccc89ba6176b8 | Update IrrSpatialScope.cs | ADAPT/ADAPT | source/ADAPT/Documents/IrrSpatialScope.cs | source/ADAPT/Documents/IrrSpatialScope.cs | /*******************************************************************************
* Copyright (C) 2018 AgGateway and ADAPT Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution,... | /*******************************************************************************
* Copyright (C) 2018 AgGateway and ADAPT Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution,... | epl-1.0 | C# |
13ab9e11fd2c651aa32430504c1016a9e5c81768 | Add string extension "CombineForPath": Similar to Path.Combine, but it combines as may parts as you have into a single, platform-appropriate path. | gtryus/libpalaso,mccarthyrb/libpalaso,marksvc/libpalaso,mccarthyrb/libpalaso,darcywong00/libpalaso,tombogle/libpalaso,ddaspit/libpalaso,darcywong00/libpalaso,ermshiperete/libpalaso,gtryus/libpalaso,marksvc/libpalaso,andrew-polk/libpalaso,hatton/libpalaso,ermshiperete/libpalaso,darcywong00/libpalaso,marksvc/libpalaso,ch... | Palaso/Extensions/StringExtensions.cs | Palaso/Extensions/StringExtensions.cs | using System.Collections.Generic;
using System.IO;
using System.Xml;
namespace Palaso.Extensions
{
public static class StringExtensions
{
public static List<string> SplitTrimmed(this string s, char seperator)
{
if(s.Trim() == string.Empty)
return new List<string>();
var x = s.Split(seperator);
var... | using System.Collections.Generic;
using System.Xml;
namespace Palaso.Extensions
{
public static class StringExtensions
{
public static List<string> SplitTrimmed(this string s, char seperator)
{
if(s.Trim() == string.Empty)
return new List<string>();
var x = s.Split(seperator);
var r = new List<str... | mit | C# |
c38952175f3b5e012506bc3d34daeb9e6528903b | Bump for v0.3.0 (#152) | decred/Paymetheus,jrick/Paymetheus | Paymetheus/Properties/AssemblyInfo.cs | Paymetheus/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
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 ... | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
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 ... | isc | C# |
a1a8246c05cb920e14a35f0fbba9df573bbe6233 | trim whitespace | ZLima12/osu,EVAST9919/osu,UselessToucan/osu,johnneijzen/osu,DrabWeb/osu,ppy/osu,peppy/osu,EVAST9919/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new,ZLima12/osu,NeoAdonis/osu,smoogipooo/osu,smoogipoo/osu,johnneijzen/osu,UselessToucan/osu,DrabWeb/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,ppy/osu,2yangk23/osu,... | osu.Game/Rulesets/Mods/ModTimeRamp.cs | osu.Game/Rulesets/Mods/ModTimeRamp.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 osu.Framework.Audio;
using osu.Framework.Timing;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.UI;
using osu.Game.Rulesets.Objects;
using osu.Game.... | // 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 osu.Framework.Audio;
using osu.Framework.Timing;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.UI;
using osu.Game.Rulesets.Objects;
using osu.Game.... | mit | C# |
3cac4c1b70d7c0d42710847ace9adfc46ffc8922 | Add Create() method | whampson/bft-spec,whampson/cascara | Src/WHampson.Bft/TemplateException.cs | Src/WHampson.Bft/TemplateException.cs | #region License
/* Copyright (c) 2017 Wes Hampson
*
* 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,... | #region License
/* Copyright (c) 2017 Wes Hampson
*
* 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,... | mit | C# |
f29d92c162761afbde6e4fa244d433a5ded72d4c | fix broken typeformatter tests | OrleansContrib/OrleansDashboard,OrleansContrib/OrleansDashboard,OrleansContrib/OrleansDashboard | Tests/UnitTests/TypeFormatterTests.cs | Tests/UnitTests/TypeFormatterTests.cs | using System;
using OrleansDashboard.Metrics.TypeFormatting;
using TestGrains;
using Xunit;
namespace UnitTests
{
public class TypeFormatterTests
{
[Fact]
public void TestSimpleType()
{
var example = "System.String";
var name = TypeFormatter.Parse(example);
... | using System;
using OrleansDashboard.Metrics.TypeFormatting;
using TestGrains;
using Xunit;
namespace UnitTests
{
public class TypeFormatterTests
{
[Fact]
public void TestSimpleType()
{
var example = "System.String";
var name = TypeFormatter.Parse(example);
... | mit | C# |
f31a5dc70446281cbe5f25a621f468f29a7ffbf0 | add function of using space to skip prologue | Rubyjin/SENECA | SENECA/Assets/Scripts/Game_World/Prologue.cs | SENECA/Assets/Scripts/Game_World/Prologue.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ChrsUtils.ChrsEventSystem;
using ChrsUtils.ChrsEventSystem.EventsManager;
using UnityEngine.SceneManagement;
using SenecaEvents;
public class Prologue : MonoBehaviour
{
public AudioClip clip;
private AudioSource audioSource;
// U... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ChrsUtils.ChrsEventSystem;
using ChrsUtils.ChrsEventSystem.EventsManager;
using UnityEngine.SceneManagement;
using SenecaEvents;
public class Prologue : MonoBehaviour
{
public AudioClip clip;
private AudioSource audioSource;
// U... | unlicense | C# |
01a7014eadfc0df79dc12b5e4a2ba60d87d8269d | Update ScriptRunner.cs | filipw/dotnet-script,filipw/dotnet-script | src/Dotnet.Script.Core/ScriptRunner.cs | src/Dotnet.Script.Core/ScriptRunner.cs | using System;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp.Scripting.Hosting;
using Microsoft.CodeAnalysis.Scripting;
using Microsoft.CodeAnalysis.Scripting.Hosting;
namespace Dotnet.Script.Core
{
public class ScriptRunner
{
protected ScriptLogger Logger;
protected ScriptCo... | using System;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp.Scripting.Hosting;
using Microsoft.CodeAnalysis.Scripting;
using Microsoft.CodeAnalysis.Scripting.Hosting;
namespace Dotnet.Script.Core
{
public class ScriptRunner
{
protected ScriptLogger Logger;
protected ScriptCo... | mit | C# |
170749508f98d35f6f6170b7f05c74f3ca80e960 | Move version to 3.1 | tombogle/libpalaso,gtryus/libpalaso,gtryus/libpalaso,ermshiperete/libpalaso,gmartin7/libpalaso,ermshiperete/libpalaso,gtryus/libpalaso,tombogle/libpalaso,andrew-polk/libpalaso,glasseyes/libpalaso,glasseyes/libpalaso,glasseyes/libpalaso,gmartin7/libpalaso,tombogle/libpalaso,glasseyes/libpalaso,sillsdev/libpalaso,ddaspit... | GlobalAssemblyInfo.cs | GlobalAssemblyInfo.cs | using System.Reflection;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyCompany("SIL")]
[assembly: AssemblyProduct("Palaso Library")]
[assembly: AssemblyCopyr... | using System.Reflection;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyCompany("SIL")]
[assembly: AssemblyProduct("Palaso Library")]
[assembly: AssemblyCopyr... | mit | C# |
b7ef1e8b05489aac91e4d18261225723acddd6ea | Add Array.CopyRangeTo, Array.SubArray | eleven41/Eleven41.Extensions | Eleven41.Extensions/ArrayExtensions.cs | Eleven41.Extensions/ArrayExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eleven41.Extensions
{
public static class ArrayExtensions
{
// Populates an entire array with the specified value.
public static void Populate<T>(this T[] arr, T value)
{
for (int i = 0; i < arr.Length; i++)
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eleven41.Extensions
{
public static class ArrayExtensions
{
// Populates an entire array with the specified value.
public static void Populate<T>(this T[] arr, T value)
{
for (int i = 0; i < arr.Length; i++)
... | mit | C# |
67f283b91e534d68663de29bf0fbee21d0527471 | Update setcursorposition condition | tsolarin/readline,tsolarin/readline | src/ReadLine/Abstractions/Console2.cs | src/ReadLine/Abstractions/Console2.cs | using System;
namespace Internal.ReadLine.Abstractions
{
internal class Console2 : IConsole
{
private bool IsSeenOnScreen(char c) => !(char.IsControl(c) || char.IsWhiteSpace(c));
public int CursorLeft => Console.CursorLeft;
public int CursorTop => Console.CursorTop;
public in... | using System;
namespace Internal.ReadLine.Abstractions
{
internal class Console2 : IConsole
{
private bool IsSeenOnScreen(char c) => !(char.IsControl(c) || char.IsWhiteSpace(c));
public int CursorLeft => Console.CursorLeft;
public int CursorTop => Console.CursorTop;
public in... | mit | C# |
9d35521fde85e9fcaafe2cbfd8b3dc46a5649a9b | adjust links args | beginor/PNChartTouch | PNChartBindings/libPNChart.linkwith.cs | PNChartBindings/libPNChart.linkwith.cs | using System;
using MonoTouch.ObjCRuntime;
[assembly: LinkWith (
"libPNChart.a",
LinkTarget.ArmV7 | LinkTarget.ArmV7s | LinkTarget.Simulator,
Frameworks = "Foundation,UIKit,CoreGraphics,QuartzCore",
ForceLoad = true
)]
| using System;
using MonoTouch.ObjCRuntime;
[assembly: LinkWith ("libPNChart.a", LinkTarget.ArmV7 | LinkTarget.ArmV7s | LinkTarget.Simulator, ForceLoad = true)]
| mit | C# |
790b1361d5895719ab471d273f3e999aa8d09142 | Add Start Manually option to IMEI prefab | adjust/unity_sdk,adjust/unity_sdk,adjust/unity_sdk | Assets/AdjustImei/Unity/AdjustImei.cs | Assets/AdjustImei/Unity/AdjustImei.cs | using System;
using UnityEngine;
namespace com.adjust.sdk.imei
{
public class AdjustImei : MonoBehaviour
{
private const string errorMsgEditor = "[AdjustImei]: Adjust IMEI plugin can not be used in Editor.";
private const string errorMsgPlatform = "[AdjustImei]: Adjust IMEI plugin can only be u... | using System;
using UnityEngine;
namespace com.adjust.sdk.imei
{
public class AdjustImei : MonoBehaviour
{
private const string errorMsgEditor = "[AdjustImei]: Adjust IMEI plugin can not be used in Editor.";
private const string errorMsgPlatform = "[AdjustImei]: Adjust IMEI plugin can only be u... | mit | C# |
1f4ecddf6b4675bb6bbd5f3f749a61f204f688c9 | bump to 1.4.0 | greggman/DeJson.NET | DeJson/AssemblyInfo.cs | DeJson/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("DeJson")]
[assembly: AssemblyDescription("JSON serializer/deserializer")]
[assembly: AssemblyConf... | 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("DeJson")]
[assembly: AssemblyDescription("JSON serializer/deserializer")]
[assembly: AssemblyConf... | bsd-3-clause | C# |
df8f3f3803f586b9b06e7f09a4e788c48d1410fd | add validation for Fraction setter Gtk backend doesn't allow setting a MinValue or MaxValue, so Xwt uses the same assumed max and min values by the Gtk backend, and adjust the other 2 backends to this limits. | mono/xwt,residuum/xwt,iainx/xwt,akrisiun/xwt,mminns/xwt,lytico/xwt,sevoku/xwt,hwthomas/xwt,mminns/xwt,directhex/xwt,antmicro/xwt,hamekoz/xwt,TheBrainTech/xwt,steffenWi/xwt,cra0zy/xwt | Xwt/Xwt/ProgressBar.cs | Xwt/Xwt/ProgressBar.cs | //
// ProgressBar.cs
//
// Author:
// Andres G. Aragoneses <knocte@gmail.com>
//
// Copyright (c) 2012 Anrdres G. Aragoneses
//
// 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 w... | //
// ProgressBar.cs
//
// Author:
// Andres G. Aragoneses <knocte@gmail.com>
//
// Copyright (c) 2012 Anrdres G. Aragoneses
//
// 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 w... | mit | C# |
8d0550d6f602d16e016b609879bcafbae53ddfe6 | Fix Trigger2D wrong method names | wirunekaewjai/unity-fsm | FSM/Event/OnTrigger2D.cs | FSM/Event/OnTrigger2D.cs | using UnityEngine;
namespace Devdayo
{
[DisallowMultipleComponent]
public class TriggerEnter2D : FsmEvent<Collider2D>
{
void OnTriggerEnter2D(Collider2D other)
{
Notify(other);
}
}
[DisallowMultipleComponent]
public class TriggerStay2D : FsmEvent<Collider2D... | using UnityEngine;
namespace Devdayo
{
[DisallowMultipleComponent]
public class TriggerEnter2D : FsmEvent<Collider2D>
{
void OnTrigger2DEnter(Collider2D other)
{
Notify(other);
}
}
[DisallowMultipleComponent]
public class TriggerStay2D : FsmEvent<Collider2D... | mit | C# |
6d1ef689ae5dc9a3edfb6713c49208adf7a046a7 | Change VarAddr to use identifier | CosmosOS/XSharp,CosmosOS/XSharp,CosmosOS/XSharp | source/XSharp/Tokens/Variable.cs | source/XSharp/Tokens/Variable.cs | namespace XSharp.Tokens
{
public class Variable : Identifier
{
public Variable() {
mFirstChars = ".";
}
protected override bool CheckChar(int aLocalPos, char aChar)
{
// The name of the variable must start with a alphabet
if (aLoca... | namespace XSharp.Tokens
{
public class Variable : Identifier
{
public Variable() {
mFirstChars = ".";
}
protected override bool CheckChar(int aLocalPos, char aChar)
{
// The name of the variable must start with a alphabet
if (aLoca... | bsd-3-clause | C# |
551964755bac758d51286d67b41c86095612e75a | fix urlparser logger type | PandaWood/Cradiator | src/Cradiator/Model/UrlParser.cs | src/Cradiator/Model/UrlParser.cs | using System;
using System.Text.RegularExpressions;
using Cradiator.Extensions;
using log4net;
namespace Cradiator.Model
{
public class UrlParser
{
static readonly ILog _log = LogManager.GetLogger(typeof(UrlParser).Name);
private readonly string _url;
public UrlParser(string url)
{
_url = url;
}
pu... | using System;
using System.Text.RegularExpressions;
using Cradiator.Extensions;
using log4net;
namespace Cradiator.Model
{
public class UrlParser
{
static readonly ILog _log = LogManager.GetLogger(typeof(ViewUrl).Name);
private readonly string _url;
public UrlParser(string url)
{
_url = url;
}
publ... | mit | C# |
fd1bc3f77767eb57509810fd3c2fae2dbba66aa1 | build 0.0.5 | rachmann/qboAccess,rachmann/qboAccess,rachmann/qboAccess | src/Global/GlobalAssemblyInfo.cs | src/Global/GlobalAssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[ assembly : ComVisible( false ) ]
[ assembly : AssemblyProduct( "QuickBooksOnlineAccess" ) ]
[ assembly : AssemblyCompany( "Agile Harbor, LLC" ) ]
[ assembly : AssemblyCopyright( "Copyright (C) 2014 Agile Harbor, LLC" ) ]
[ assembly : Assemb... | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[ assembly : ComVisible( false ) ]
[ assembly : AssemblyProduct( "QuickBooksOnlineAccess" ) ]
[ assembly : AssemblyCompany( "Agile Harbor, LLC" ) ]
[ assembly : AssemblyCopyright( "Copyright (C) 2014 Agile Harbor, LLC" ) ]
[ assembly : Assemb... | bsd-3-clause | C# |
e33e78ece05145e7480e570c4dbe1ddea6034a5f | change sample | akamyshanov/launchable | src/Launchable.Sample/Program.cs | src/Launchable.Sample/Program.cs | using System;
using System.IO;
namespace Launchable.Sample
{
class Program : ILaunchable
{
public void Dispose()
{
Log("Stopping");
}
public void Start()
{
Log("Starting");
}
private static void Log(string msg)
{
... | using System;
using System.IO;
namespace Launchable.Sample
{
class Program : ILaunchable
{
public void Dispose()
{
Log("Stopping");
}
public void Start()
{
Log("Starting");
}
private static void Log(string msg)
{
... | mit | C# |
0ee782e8f4fb78ed743cad90fe2105194cfe7fca | Make this interface disposable so taht code analysis should hopefully remind users to call .Dispose on it. | Haraguroicha/CefSharp,zhangjingpu/CefSharp,dga711/CefSharp,AJDev77/CefSharp,VioletLife/CefSharp,VioletLife/CefSharp,gregmartinhtc/CefSharp,battewr/CefSharp,illfang/CefSharp,wangzheng888520/CefSharp,VioletLife/CefSharp,twxstar/CefSharp,NumbersInternational/CefSharp,haozhouxu/CefSharp,twxstar/CefSharp,twxstar/CefSharp,Li... | CefSharp/IRequest.cs | CefSharp/IRequest.cs | // Copyright © 2010-2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Collections.Specialized;
namespace CefSharp
{
public interface IRequest : IDisposable
{
string Url { g... | // Copyright © 2010-2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System.Collections.Specialized;
namespace CefSharp
{
public interface IRequest
{
string Url { get; set; }
string Me... | bsd-3-clause | C# |
cc7da265f272cf0d3eafa32bafd7e043e458540e | Add exit codes | Ackara/Daterpillar | src/Daterpillar.CommandLine/ExitCode.cs | src/Daterpillar.CommandLine/ExitCode.cs | namespace Gigobyte.Daterpillar
{
internal struct ExitCode
{
public const int Success = 0;
public const int ParsingError = 2;
public const int UnhandledException = 1;
}
} | namespace Gigobyte.Daterpillar
{
internal struct ExitCode
{
public const int Success = 0;
}
} | mit | C# |
4f40333cc02adb8c04e1940538702e891a657d51 | Update AssemblyInfo.cs | tiksn/TIKSN-Framework | TIKSN.LanguageLocalization/Properties/AssemblyInfo.cs | TIKSN.LanguageLocalization/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
[assembly: AssemblyTitle("TIKSN.LanguageLocalization")]
[assembly: NeutralResourcesLanguage("en")]
| using System.Reflection;
using System.Resources;
[assembly: AssemblyTitle("TIKSN.LanguageLocalization")]
[assembly: NeutralResourcesLanguage("en")] | mit | C# |
5be216e16f6d092847058d963e38af5b4b7d5817 | Disable test parallelization | tunnelvisionlabs/dotnet-trees | Tvl.Collections.Trees.Test/Properties/AssemblyInfo.cs | Tvl.Collections.Trees.Test/Properties/AssemblyInfo.cs | // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using Xunit;
// General Information about an assembly is controlled through t... | // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
... | mit | C# |
312872fc74f9287782187936aa8e5108b8afd766 | add note to use your own api key in Demo.cs | weblogng/weblogng-client-dotnet | WeblogNG.Test/Demo.cs | WeblogNG.Test/Demo.cs | using System;
namespace WeblogNG.Demo
{
public class Utilities
{
//be sure to generate and use your own api key via the 'User Account' page at:
//http://weblog-ng-ui.herokuapp.com/app/#/account
public static Logger Logger = Logger.CreateAsyncLogger ("93c5a127-e2a4-42cc-9cc6-cf17fdac8a7f");
}
public class Ap... | using System;
namespace WeblogNG.Demo
{
public class Utilities
{
public static Logger Logger = Logger.CreateAsyncLogger ("93c5a127-e2a4-42cc-9cc6-cf17fdac8a7f");
}
public class Application
{
public void StartUp()
{
using (Utilities.Logger.CreateTimer ("Application-StartUp")) {
//perform the acutal s... | apache-2.0 | C# |
dcc2dc1fa5b23db8b710d6f46b889f24f30dd9aa | add XML doc | OlegKleyman/Omego.Extensions | core/Omego.Extensions/Queryable.cs | core/Omego.Extensions/Queryable.cs | namespace Omego.Extensions
{
using System;
using System.Linq;
using System.Linq.Expressions;
/// <summary>
/// Contains extension methods for <see cref="IQueryable{T}" />.
/// </summary>
public static class Queryable
{
/// <summary>
/// Returns the first element... | namespace Omego.Extensions
{
using System;
using System.Linq;
using System.Linq.Expressions;
public static class Queryable
{
public static T FirstOrThrow<T>(this IQueryable<T> queryable, Expression<Func<T, bool>> predicate, Exception exception)
{
if (queryable == null) ... | unlicense | C# |
fa64cd411957a6c067b567fad88eb9165ebfda66 | 修复查询字符串拼接的一个小错误。 :station: | Zongsoft/Zongsoft.Web | src/Utility.cs | src/Utility.cs | using System;
using System.Collections.Generic;
namespace Zongsoft.Web
{
internal static class Utility
{
public static string RepairQueryString(string path, string queryString = null)
{
if(string.IsNullOrWhiteSpace(queryString))
return path;
queryString = queryString.Trim().TrimStart('?');
if(str... | using System;
using System.Collections.Generic;
namespace Zongsoft.Web
{
internal static class Utility
{
public static string RepairQueryString(string path, string queryString = null)
{
if(string.IsNullOrWhiteSpace(queryString))
return path;
queryString = queryString.Trim().TrimStart('?');
if(str... | lgpl-2.1 | C# |
76907cbee6f63a2ead6fc76204644ed6accbf36c | Fix constructor line length in DirectedEdge. | DasAllFolks/SharpGraphs | Graph/DirectedEdge.cs | Graph/DirectedEdge.cs | using System;
namespace Graph
{
/// <summary>
/// Represents a directed edge (arrow) in a labeled <see cref="IGraph"/>.
/// </summary>
/// <typeparam name="V">
/// The type used to create vertex (node) labels.
/// </typeparam>
/// <typeparam name="W">
/// The type used for the edge wei... | using System;
namespace Graph
{
/// <summary>
/// Represents a directed edge (arrow) in a labeled <see cref="IGraph"/>.
/// </summary>
/// <typeparam name="V">
/// The type used to create vertex (node) labels.
/// </typeparam>
/// <typeparam name="W">
/// The type used for the edge wei... | apache-2.0 | C# |
fae3bef17dc1c19437f2a5a4b87b11508f8c353f | disable ci task | lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino | tools/LuminoBuild/Rules/BuildForCI_3.cs | tools/LuminoBuild/Rules/BuildForCI_3.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LuminoBuild.Rules
{
// CI 環境によっては実行時間が長すぎると強制終了させられる。そのため、一部のタスクを分離したりスキップするための BuildRule。
class BuildForCI_3 : BuildRule
{
public override string Name => "Build... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LuminoBuild.Rules
{
// CI 環境によっては実行時間が長すぎると強制終了させられる。そのため、一部のタスクを分離したりスキップするための BuildRule。
class BuildForCI_3 : BuildRule
{
public override string Name => "Build... | mit | C# |
ace1cc0e7072df25e53a08281856630edd6e2a17 | Fix number formatter allocating many arrays | smoogipooo/osu-framework,peppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,ppy/osu-framework | osu.Framework/Utils/NumberFormatter.cs | osu.Framework/Utils/NumberFormatter.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;
namespace osu.Framework.Utils
{
/// <summary>
/// Exposes functionality for formatting numbers.
/// </summary>
public static class NumberF... | // 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;
namespace osu.Framework.Utils
{
/// <summary>
/// Exposes functionality for formatting numbers.
/// </summary>
public static class NumberF... | mit | C# |
2f972ebb0066a2a4235126da7e103f684de1c777 | Use OnAttachedToVisualTree and OnDetachedFromVisualTree | wieslawsoltes/AvaloniaBehaviors,wieslawsoltes/AvaloniaBehaviors | src/Avalonia.Xaml.Interactions/Custom/FocusOnAttachedToVisualTreeBehavior.cs | src/Avalonia.Xaml.Interactions/Custom/FocusOnAttachedToVisualTreeBehavior.cs | using Avalonia.Controls;
using Avalonia.Xaml.Interactivity;
namespace Avalonia.Xaml.Interactions.Custom;
/// <summary>
/// Focuses the <see cref="Behavior.AssociatedObject"/> when attached to visual tree.
/// </summary>
public class FocusOnAttachedToVisualTreeBehavior : Behavior<Control>
{
/// <inheritdoc/>
... | using Avalonia.Controls;
using Avalonia.Xaml.Interactivity;
namespace Avalonia.Xaml.Interactions.Custom;
/// <summary>
/// Focuses the <see cref="Behavior.AssociatedObject"/> when attached to visual tree.
/// </summary>
public class FocusOnAttachedToVisualTreeBehavior : Behavior<Control>
{
/// <summary>
/// ... | mit | C# |
b2dcda7b5ddfbd10fdfa9112ccd478c209defe05 | Add auth to Learners endpoint | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Api/Controllers/LearnerController.cs | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Api/Controllers/LearnerController.cs | using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using SFA.DAS.CommitmentsV2.Api.Types.Responses;
using SFA.DAS.CommitmentsV2.Application.Queries.GetAllLearners;
using System;
using System.Net;
using System.Threading.Tasks;
namespace SFA.DAS.CommitmentsV2... | using System;
using System.Net;
using System.Threading.Tasks;
using MediatR;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using SFA.DAS.CommitmentsV2.Api.Types.Responses;
using SFA.DAS.CommitmentsV2.Application.Queries.GetAllLearners;
namespace SFA.DAS.CommitmentsV2.Api.Controllers
{
[ApiController]
... | mit | C# |
c77c84bec7cca32b8d4c081acaf57e197461d6f5 | Remove ContextType.Invalid | RogueException/Discord.Net,Confruggy/Discord.Net,AntiTcb/Discord.Net,LassieME/Discord.Net | src/Discord.Net.Commands/Attributes/Preconditions/RequireContextAttribute.cs | src/Discord.Net.Commands/Attributes/Preconditions/RequireContextAttribute.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Discord.Commands
{
[Flags]
public enum ContextType
{
Guild = 1, // 01
DM = 2 // 10
}
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false,... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Discord.Commands
{
[Flags]
public enum ContextType
{
Invalid = 0, // 00
Guild = 1, // 01
DM = 2 // 10
}
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Met... | mit | C# |
04de08ca3f39914433a35a28b964eb4a99ddf446 | move list to one matchbox parent | smbc-digital/iag-webapp,smbc-digital/iag-webapp,smbc-digital/iag-webapp | src/StockportWebapp/Views/stockportgov/Shared/GenericFeaturedItemList.cshtml | src/StockportWebapp/Views/stockportgov/Shared/GenericFeaturedItemList.cshtml | @model StockportWebapp.Models.GenericFeaturedItemList
@{
var loopCount = Model.HideButton ? Model.Items.Count() : 8;
}
<div class="matchbox-parent">
<div class="primary-topics">
@for (var count = 0; count < loopCount; count += 4)
{
<div class="featured-topic-list generic-Featured-... | @model StockportWebapp.Models.GenericFeaturedItemList
@{
var loopCount = Model.HideButton ? Model.Items.Count() : 8;
}
<div class="primary-topics">
@for (var count = 0; count < loopCount; count += 4)
{
<div class="featured-topic-list generic-Featured-Items-margin-top matchbox-parent">
... | mit | C# |
d2a5b00748e599a465c42dea7dd2f700c7f3f08d | Check for AD credentials, check if local account | ZXeno/Andromeda | Andromeda/Andromeda/CredentialManager.cs | Andromeda/Andromeda/CredentialManager.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.DirectoryServices.AccountManagement;
namespace Andromeda
{
public static class CredentialManager
{
public static string UserName { get; set; }
public static string GetDomain()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Andromeda
{
public static class CredentialManager
{
public static string GetUser()
{
return "null";
}
public static string GetPass()
... | agpl-3.0 | C# |
e6607fb1f00b1a446fcfb4adc869c329a25006d0 | update xml comments | Pondidum/Conifer,Pondidum/Conifer | Conifer/RouterConfigurationExpression.cs | Conifer/RouterConfigurationExpression.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Web.Http.Controllers;
namespace Conifer
{
public class RouterConfigurationExpression
{
private readonly List<IRouteConvention> _defaultConventions;
private readonly IConventionalRouter _router;
publ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Web.Http.Controllers;
namespace Conifer
{
public class RouterConfigurationExpression
{
private readonly List<IRouteConvention> _defaultConventions;
private readonly IConventionalRouter _router;
publ... | lgpl-2.1 | C# |
a58f6d6b37116b034cb55907416a10021ee0282b | Refactor IServerConfig | msoler8785/ExoMail | ExoMail.Smtp/Interfaces/IServerConfig.cs | ExoMail.Smtp/Interfaces/IServerConfig.cs | using ExoMail.Smtp.Enums;
using System.Collections.Generic;
using System.Net;
using System.Security.Cryptography.X509Certificates;
namespace ExoMail.Smtp.Interfaces
{
public interface IServerConfig
{
string HostName { get; set; }
bool IsEncryptionRequired { get; }
bool IsTls { get; set... | using System.Collections.Generic;
using System.Net;
using System.Security.Cryptography.X509Certificates;
namespace ExoMail.Smtp.Interfaces
{
public interface IServerConfig
{
string HostName { get; set; }
bool IsEncryptionRequired { get; }
bool IsTls { get; set; }
int MaxMessage... | mit | C# |
1d62ffead31fc05708135c3c732dd6e7bd557f23 | Set off automatical assembly version up | kamil4521/GendarmeNUnit | GendarmeNUnit/Properties/AssemblyInfo.cs | GendarmeNUnit/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("Ge... | 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("Ge... | mit | C# |
e9469009c16478cf8cfdf02e3b43185fe9e63089 | refactor standalone osx build target | watson-developer-cloud/unity-sdk,watson-developer-cloud/unity-sdk,watson-developer-cloud/unity-sdk | Travis/TravisBuild.cs | Travis/TravisBuild.cs | /**
* Copyright 2015 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | /**
* Copyright 2015 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | apache-2.0 | C# |
1c07c1c60a9d85d3795b146409dc222e7ae35a7c | fix EnableVirtualizationWithGrouping | chuuddo/MahApps.Metro,MahApps/MahApps.Metro,ye4241/MahApps.Metro,jumulr/MahApps.Metro,xxMUROxx/MahApps.Metro,Jack109/MahApps.Metro,Evangelink/MahApps.Metro,Danghor/MahApps.Metro,psinl/MahApps.Metro,pfattisc/MahApps.Metro,batzen/MahApps.Metro,p76984275/MahApps.Metro | MahApps.Metro/Controls/ComboBoxHelper.cs | MahApps.Metro/Controls/ComboBoxHelper.cs | using System;
using System.Windows;
using System.Windows.Controls;
namespace MahApps.Metro.Controls
{
/// <summary>
/// A helper class that provides various attached properties for the ComboBox control.
/// <see cref="ComboBox"/>
/// </summary>
public class ComboBoxHelper
{
public stat... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
namespace MahApps.Metro.Controls
{
/// <summary>
/// A helper class that provides various attached properties for the ComboBox control.
/// <see cref="ComboBox"/>
... | mit | C# |
7298a2c574070ebb3c263017addd659dbea216e4 | Update version number | dneelyep/MonoGameUtils | MonoGameUtils/Properties/AssemblyInfo.cs | MonoGameUtils/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("MonoGameUtils")]
[assembly: AssemblyDescr... | 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("MonoGameUtils")]
[assembly: AssemblyDescr... | mit | C# |
ce4f0b46a5d65cf96841958dceb551115f19e930 | fix dataview | Ackara/Daterpillar | src/Daterpillar/Modeling/DataRecord.cs | src/Daterpillar/Modeling/DataRecord.cs | using System;
using System.Reflection;
namespace Acklann.Daterpillar.Modeling
{
public abstract class DataRecord : DataViewRecord, IInsertable
{
public DataRecord() : this(null)
{
}
public DataRecord(Type type) : base(type)
{
ColumnMap.Register(type ?? GetTy... | using System;
using System.Reflection;
namespace Acklann.Daterpillar.Modeling
{
public abstract class DataRecord : DataViewRecord, IInsertable
{
public DataRecord() : this(null)
{
}
public DataRecord(Type type)
{
ColumnMap.Register(type ?? GetType());
... | mit | C# |
b88410682d22231eac3fb78ad51e1367d3d190b6 | bump version | Recognos/Recognos.Core | Recognos.Core/Properties/AssemblyInfo.cs | Recognos.Core/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Recognos Romania")]
[assembly: AssemblyProduct("Recognos Core Libraries")]
[assembly: AssemblyCopyright("Copyright © Recognos Romania 2014")]
[assembly: AssemblyTrademark("Rec... | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Recognos Romania")]
[assembly: AssemblyProduct("Recognos Core Libraries")]
[assembly: AssemblyCopyright("Copyright © Recognos Romania 2014")]
[assembly: AssemblyTrademark("Rec... | mit | C# |
0ebdf90dfa9d4ed99b6df992844fe16a85beaf33 | Move methods below ctor | smoogipoo/osu,EVAST9919/osu,johnneijzen/osu,UselessToucan/osu,johnneijzen/osu,ppy/osu,ppy/osu,peppy/osu-new,smoogipooo/osu,2yangk23/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,ppy/osu,NeoAdonis/osu,EVAST9919/osu,NeoAdonis/osu,NeoAdonis/osu,2yangk23/osu,UselessToucan/osu,peppy/osu,peppy/osu,smoogipoo/osu | osu.Game.Tests/WaveformTestBeatmap.cs | osu.Game.Tests/WaveformTestBeatmap.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.IO;
using System.Linq;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Graphics.Textures;
using osu.Framework.Graphics.Video... | // 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.IO;
using System.Linq;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Graphics.Textures;
using osu.Framework.Graphics.Video... | mit | C# |
e7f87e713aa41976fcdd8f6aa6b97ee5751030df | Add some tests for Tuple3dc class. | Xevle/Tests | Tests.Xevle.Math/Tuples/Tuple3dcTests.cs | Tests.Xevle.Math/Tuples/Tuple3dcTests.cs | using NUnit.Framework;
using System;
using Xevle.Math.Tuples;
namespace Tests.Xevle.Math
{
[TestFixture()]
public class Test
{
[Test()]
public void TestConstructor()
{
// Prepare test
Tuple3dc tuple = new Tuple3dc(1, 2, 3);
// Execute test
Assert.AreEqual(1, tuple.x);
Assert.AreEqual(2, tuple... | using NUnit.Framework;
using System;
using Xevle.Math.Tuples;
namespace Tests.Xevle.Math
{
[TestFixture ()]
public class Test
{
[Test ()]
public void TestConstructor ()
{
Tuple3dc tuple = new Tuple3dc (1, 2, 3);
Assert.AreEqual (1, tuple.x);
Assert.AreEqual (2, tuple.y);
Assert.AreEqual (3, tuple... | mit | C# |
49502ab46e824fec1ff6dc9b631da1a4ac72e815 | Tweak login page | mattgwagner/alert-roster | alert-roster.web/Views/Home/Login.cshtml | alert-roster.web/Views/Home/Login.cshtml | @{
ViewBag.Title = "Login";
}
@using (Html.BeginForm("Login", "Home", FormMethod.Post))
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>Password</h4>
<div class="form-group">
<div class="col-md-4">
@Html.Password("password")
</div>
... | @{
ViewBag.Title = "Login";
}
<h2>@ViewBag.Title</h2>
@using (Html.BeginForm("Login", "Home", FormMethod.Post))
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>Password</h4>
<hr />
@Html.ValidationSummary(true)
<div class="form-group">
<div class... | mit | C# |
2acbd21f71c77453f0a049ad6e5debfa16838543 | add static references to SQLite | mdavid626/artemis | src/Artemis.Data/CarAdvertDbContext.cs | src/Artemis.Data/CarAdvertDbContext.cs | using Artemis.Common;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Artemis.Data
{
internal class CarAdvertDbContext : DbContext
{
public CarAdvertDbContext() : base("Sql... | using Artemis.Common;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Artemis.Data
{
internal class CarAdvertDbContext : DbContext
{
public DbSet<CarAdvert> CarAdverts { get; set; }
}
}
| mit | C# |
239304dc6c072ccf7b4cd9981d34ec99383f4c46 | upgrade enode version to 2.6.2 | Aaron-Liu/enode,tangxuehua/enode | src/ENode/Properties/AssemblyInfo.cs | src/ENode/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("EN... | 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("EN... | mit | C# |
1216057dda848422bddef3b8503717d82eca4a5f | Update AssemblyInfo.cs | heinrichelsigan/TwitterTestLogon | AssemblyInfo.cs | 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: AssemblyTi... | 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: AssemblyTi... | apache-2.0 | C# |
5b0c66cb7bc82905ac1b1391586ff5e6bfa5dcee | Update seed method | wagoid/easy-vet,wagoid/easy-vet,wagoid/easy-vet | server/EasyVet/Migrations/Configuration.cs | server/EasyVet/Migrations/Configuration.cs | namespace EasyVet.Migrations
{
using DAO;
using Models;
using System;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
internal sealed class Configuration : DbMigrationsConfiguration<EasyVet.DAO.VetContext>
{
public Configuration()
{
... | namespace EasyVet.Migrations
{
using DAO;
using Models;
using System;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
internal sealed class Configuration : DbMigrationsConfiguration<EasyVet.DAO.VetContext>
{
public Configuration()
{
... | mit | C# |
fffc895129b07be1761ebe3d9ca64deeea6f1d14 | simplify previous commit | WreckedAvent/slimCat,AerysBat/slimCat | slimCat/Commands/Channel/OpenLogCommand.cs | slimCat/Commands/Channel/OpenLogCommand.cs | #region Copyright
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="OpenLogCommand.cs">
// Copyright (c) 2013, Justin Kadrovach, All rights reserved.
//
// This source is subject to the Simplified BSD License.
// P... | #region Copyright
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="OpenLogCommand.cs">
// Copyright (c) 2013, Justin Kadrovach, All rights reserved.
//
// This source is subject to the Simplified BSD License.
// P... | bsd-2-clause | C# |
456564b26ce10f9802af036a82f0cab49f9d726a | fix context redirect | Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek | Tweek.ApiService.NetCore/Security/TweekLegacy.cs | Tweek.ApiService.NetCore/Security/TweekLegacy.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using Tweek.ApiService.Addons;
using System.Security.Claims;
using Microsoft.AspNetCore.Rewrite;
namespace Twe... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using Tweek.ApiService.Addons;
using System.Security.Claims;
using Microsoft.AspNetCore.Rewrite;
namespace Twe... | mit | C# |
34468a3f53b6af41089f0ae0c68724a8aa43a5e7 | Update feedback command | bcanseco/magnanibot | src/Magnanibot.Discord/Modules/Feedback.cs | src/Magnanibot.Discord/Modules/Feedback.cs | using System;
using System.Threading.Tasks;
using CommonBotLibrary.Services;
using Discord;
using Discord.Commands;
using Magnanibot.Exceptions;
using Magnanibot.Extensions;
namespace Magnanibot.Modules
{
[Group(nameof(Feedback)), Alias("idea", "suggestion", "bug")]
[Summary("Allows submitting bot feedback. T... | using System;
using System.Threading.Tasks;
using CommonBotLibrary.Services;
using Discord;
using Discord.Commands;
using Magnanibot.Exceptions;
using Magnanibot.Extensions;
namespace Magnanibot.Modules
{
[Group(nameof(Feedback)), Alias("idea", "suggestion", "bug")]
[Summary("Creates a GitHub issue with your ... | mit | C# |
cbde5ba9820eac6671d9b703fb921345e97a88a3 | Disable store generated properties for the Ids. | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/MusicStore/Models/MusicStoreContext.cs | src/MusicStore/Models/MusicStoreContext.cs | using System;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.SqlServer;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Framework.OptionsModel;
namespace MusicStore.Models
{
public class ApplicationUser : IdentityUser { }
public class MusicStoreContext : I... | using System;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.SqlServer;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Framework.OptionsModel;
namespace MusicStore.Models
{
public class ApplicationUser : IdentityUser { }
public class MusicStoreContext : I... | apache-2.0 | C# |
cce4a41c5d97e2aec83e6e1095424b3cd3a13e3b | Add "disabled" common string | smoogipoo/osu,ppy/osu,smoogipoo/osu,peppy/osu,peppy/osu-new,peppy/osu,smoogipooo/osu,NeoAdonis/osu,ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu | osu.Game/Localisation/CommonStrings.cs | osu.Game/Localisation/CommonStrings.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.Localisation;
namespace osu.Game.Localisation
{
public static class CommonStrings
{
private const string prefix = @"osu.Game.Resource... | // 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.Localisation;
namespace osu.Game.Localisation
{
public static class CommonStrings
{
private const string prefix = @"osu.Game.Resource... | mit | C# |
4961ba3e703ccbde635b650fbb5ee8b381d346ec | Test Scan being lazy | guygervais/morelinq,florinbrasov/morelinq,gayancc/morelinq,Prince2690/morelinq,smurfpandey/morelinq,amyhickman/morelinq,KalebDark/morelinq,joeeisel/morelinq,soraismus/morelinq,csuffyy/morelinq,Prince2690/morelinq,whut/morelinq,hardborn/morelinq,ApocalypticOctopus/morelinq,faithword/morelinq,ventis07/morelinq,ayseff/mor... | MoreLinq.Test/ScanTest.cs | MoreLinq.Test/ScanTest.cs | #region License and Terms
// MoreLINQ - Extensions to LINQ to Objects
// Copyright (c) 2008 Jonathan Skeet. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//... | #region License and Terms
// MoreLINQ - Extensions to LINQ to Objects
// Copyright (c) 2008 Jonathan Skeet. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//... | apache-2.0 | C# |
2d5a134a702b18a2432e3492881349ddb9c5b700 | Change comments header | Minesweeper-6-Team-Project-Telerik/Minesweeper-6 | src2/WpfMinesweeper/Models/ImageFactory.cs | src2/WpfMinesweeper/Models/ImageFactory.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ImageFactory.cs" company="Telerik Academy">
// Teamwork Project "Minesweeper-6"
// </copyright>
// <summary>
// The image factory
// </summary>
// ----------------------... | namespace WpfMinesweeper.Models
{
using System;
using System.Drawing;
using System.Windows;
using System.Windows.Interop;
using System.Windows.Media;
using System.Windows.Media.Imaging;
public static class ImageFactory
{
/// <summary>
/// Creates an ... | mit | C# |
144b8ce141ff748f736f8b05972a5c6d6c3cfdd7 | Fix failing test | mvno/Okanshi,mvno/Okanshi,mvno/Okanshi | tests/Okanshi.Tests/PeakRateCounterTest.cs | tests/Okanshi.Tests/PeakRateCounterTest.cs | using System;
using FluentAssertions;
using Xunit;
namespace Okanshi.Test
{
public class PeakRateCounterTest
{
private readonly PeakRateCounter counter;
private readonly ManualClock manualClock = new ManualClock();
public PeakRateCounterTest()
{
counter = new PeakRateCounter(MonitorConf... | using System;
using FluentAssertions;
using Xunit;
namespace Okanshi.Test
{
public class PeakRateCounterTest
{
private readonly PeakRateCounter counter;
private readonly ManualClock manualClock = new ManualClock();
public PeakRateCounterTest()
{
counter = new PeakRateCounter(MonitorConf... | mit | C# |
274ef14f1047c644d2e981e8ebe43c75d4422bd2 | Bump version to 0.2.2. | ejball/XmlDocMarkdown | SolutionInfo.cs | SolutionInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("0.2.2.0")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCopyright("Copyright 2017 Ed Ball")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
| using System.Reflection;
[assembly: AssemblyVersion("0.2.1.0")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCopyright("Copyright 2017 Ed Ball")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
| mit | C# |
24176ba1024f103b89c84ba1c0aca8823647a3c9 | Replace the BELL character before writing to the console. | gnieuwhof/httpforwarder | ForwarderConsole/Print.cs | ForwarderConsole/Print.cs | namespace ForwarderConsole
{
using System;
using System.Text;
public static class Print
{
public static void Error(string error)
{
InternalPrint("--- ERROR --", error, ConsoleColor.Red);
}
public static void Request(byte[] bytes)
{
strin... | namespace ForwarderConsole
{
using System;
using System.Text;
public static class Print
{
public static void Error(string error)
{
InternalPrint("--- ERROR --", error, ConsoleColor.Red);
}
public static void Request(byte[] bytes)
{
strin... | mit | C# |
9f8f9cc9d6d55e411e7eb43915f41cf9e036e2fc | make ParamT accessible and separate virtual methods from public methods | pragmatrix/Konstruktor2 | Konstruktor2/Activator.cs | Konstruktor2/Activator.cs | using System;
using System.Diagnostics;
using Konstruktor2.Detail;
namespace Konstruktor2
{
public class Activator<ParamT, ResultT> : IDisposable
where ResultT : class
{
readonly Func<ParamT, Owned<ResultT>> _generator;
Owned<ResultT> _generated_;
ParamT _param;
public ParamT Param
{
... | using System;
using System.Diagnostics;
namespace Konstruktor2
{
public class Activator<ParamT, ResultT> : IDisposable
where ResultT : class
{
readonly Func<ParamT, Owned<ResultT>> _generator;
Owned<ResultT> _generated_;
public ResultT Instance_
{
get { return IsActive ? _generated_.Value... | bsd-3-clause | C# |
a116876e17c2fcc020f20020ec6de83d3bf1cac4 | Add Color | EasyPeasyLemonSqueezy/MadCat | MadCat/NutEngine/Scene.cs | MadCat/NutEngine/Scene.cs | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using NutEngine.Camera;
namespace NutEngine
{
public abstract class Scene
{
protected Application App { get; }
protected ContentManager Content { get; }
protected SpriteBatch B... | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using NutEngine.Camera;
namespace NutEngine
{
public abstract class Scene
{
protected Application App { get; }
protected ContentManager Content { get; }
protected SpriteBatch B... | mit | C# |
edb771c4a95dce984ddb05d109a1f7d9343c867c | Update ReadLineTests | tsolarin/readline,tsolarin/readline | test/ReadLine.Tests/ReadLineTests.cs | test/ReadLine.Tests/ReadLineTests.cs | using System;
using System.Linq;
using Xunit;
using static System.ReadLine;
namespace ReadLine.Tests
{
public class ReadLineTests : IDisposable
{
public ReadLineTests()
{
string[] history = new string[] { "ls -a", "dotnet run", "git init" };
AddHistory(history);
... | using System;
using System.Linq;
using Xunit;
namespace Tests
{
public class Tests : IDisposable
{
public Tests()
{
string[] history = new string[] { "ls -a", "dotnet run", "git init" };
ReadLine.AddHistory(history);
}
[Fact]
public void TestNoI... | mit | C# |
026f76d838bdf557448469d34719042cb2ef388a | Update App.xaml.cs | fanoI/Cosmos,MetSystem/Cosmos,jp2masa/Cosmos,CosmosOS/Cosmos,zarlo/Cosmos,tgiphil/Cosmos,CosmosOS/Cosmos,zarlo/Cosmos,MyvarHD/Cosmos,zdimension/Cosmos,sgetaz/Cosmos,zhangwenquan/Cosmos,zdimension/Cosmos,fanoI/Cosmos,Cyber4/Cosmos,MetSystem/Cosmos,sgetaz/Cosmos,MetSystem/Cosmos,MyvarHD/Cosmos,CosmosOS/Cosmos,Cyber4/Cosm... | source/Cosmos.Build.Builder/App.xaml.cs | source/Cosmos.Build.Builder/App.xaml.cs | using System.Linq;
using System.Windows;
using Cosmos.Build.Installer;
namespace Cosmos.Build.Builder {
public partial class App : Application {
public static bool DoNotLaunchVS;
public static bool IsUserKit;
public static bool ResetHive;
public static bool StayOpen;
public static bool... | using System.Linq;
using System.Windows;
using Cosmos.Build.Installer;
namespace Cosmos.Build.Builder {
public partial class App : Application {
public static bool DoNotLaunchVS;
public static bool IsUserKit;
public static bool ResetHive;
public static bool StayOpen;
public static bool... | bsd-3-clause | C# |
3c2f64963b77f6a1780925411ba0b1eb844c6a92 | Fix test runs that are launched from Test Explorer in debug mode | GitTools/GitLink,ShaiNahum/GitLink,AArnott/PdbGit | src/GitLink.Tests/ProjectHelperFacts.cs | src/GitLink.Tests/ProjectHelperFacts.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ProjectHelperFacts.cs" company="CatenaLogic">
// Copyright (c) 2014 - 2016 CatenaLogic. All rights reserved.
// </copyright>
// -------------------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ProjectHelperFacts.cs" company="CatenaLogic">
// Copyright (c) 2014 - 2016 CatenaLogic. All rights reserved.
// </copyright>
// -------------------------------------------------... | mit | C# |
265913be662436886380735bf87ae4923212dc61 | Add Bigsby Trovalds was here | Bigsby/NetCore,Bigsby/NetCore,Bigsby/NetCore | consoleApp/Program.cs | consoleApp/Program.cs | using System;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World, I was created by my father, Bigsby, in an unidentified evironment!");
Console.WriteLine("Bigsby Gates was here!");
Co... | using System;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World, I was created by my father, Bigsby, in an unidentified evironment!");
Console.WriteLine("Bigsby Gates was here!");
}
... | apache-2.0 | C# |
5b84c90286f839efb44a89954353c657ed57ddbb | Fix documentation warning. | googol/NuGet.Lucene,Stift/NuGet.Lucene,themotleyfool/NuGet.Lucene | source/NuGet.Lucene/IFastZipPackage.cs | source/NuGet.Lucene/IFastZipPackage.cs | using System;
using System.IO;
namespace NuGet.Lucene
{
/// <summary>
/// An extension of <see cref="IPackage"/> that
/// can stream package contents reusing a single
/// stream without loading the entire package into
/// memory or using any temp files.
/// </summary>
/// <remarks>
... | using System;
using System.IO;
namespace NuGet.Lucene
{
/// <summary>
/// An extension of <see cref="IPackage"/> that
/// can stream package contents reusing a single
/// stream without loading the entire package into
/// memory or using any temp files.
/// </summary>
/// <remarks>
... | apache-2.0 | C# |
7c24765bfceab6259963210e6d9295c71a197d4d | add failing test | jquintus/TeamCitySpike | AmazingApp/AmazingTests/ProgramTests.cs | AmazingApp/AmazingTests/ProgramTests.cs | using AmazingApp;
using NUnit.Framework;
namespace AmazingTests
{
[TestFixture]
public class ProgramTests
{
[Test]
public void Msg_IsHelloWorld()
{
Assert.AreEqual("Hello World", Program.Msg);
}
[Test]
public void Pass()
{
As... | using AmazingApp;
using NUnit.Framework;
namespace AmazingTests
{
[TestFixture]
public class ProgramTests
{
[Test]
public void Msg_IsHelloWorld()
{
Assert.AreEqual("Hello World", Program.Msg);
}
[Test]
public void Pass()
{
As... | mit | C# |
21b6832e46c3042a31e5e2ac12744a007b5137ea | Add volume and pitch mults to AudioAutoScale | Barleytree/NitoriWare,NitorInc/NitoriWare,NitorInc/NitoriWare,Barleytree/NitoriWare | Assets/Scripts/Audio/AudioAutoAdjust.cs | Assets/Scripts/Audio/AudioAutoAdjust.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//Automatically adjusts pitch od all audiosources in gameobject, and its children if specified
public class AudioAutoAdjust : MonoBehaviour
{
[SerializeField]
private bool includeChildren, tieToTimescale = true, tieToVolumeSettings = ... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//Automatically adjusts pitch od all audiosources in gameobject, and its children if specified
public class AudioAutoAdjust : MonoBehaviour
{
[SerializeField]
private bool includeChildren, tieToTimescale = true, tieToVolumeSettings = ... | mit | C# |
aea7263ffad571df4684057b565969755c7febb1 | Use the AppData instead of the CommonAppData folder to save the profile and settings, to avoid the UAC. | vebin/CloudNotes,vebin/CloudNotes,daxnet/CloudNotes,daxnet/CloudNotes,daxnet/CloudNotes,vebin/CloudNotes | CloudNotes.DesktopClient/Directories.cs | CloudNotes.DesktopClient/Directories.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Mime;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CloudNotes.DesktopClient
{
public static class Directories
{
private const string CloudNotesDataFolder = "Cl... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Mime;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CloudNotes.DesktopClient
{
public static class Directories
{
private const string CloudNotesDataFolder = "Cl... | apache-2.0 | C# |
5948455dd54d68be75885d7e0f653710ba5933b0 | Implement ManagerCollection.this[string name] access | tainicom/Aether | Source/Engine/Data/ManagerCollection.cs | Source/Engine/Data/ManagerCollection.cs | #region License
// Copyright 2015 Kastellanos Nikolaos
//
// 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 requi... | #region License
// Copyright 2015 Kastellanos Nikolaos
//
// 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 requi... | apache-2.0 | C# |
b5b36ee09ed405e7bb259cde341dd6ba9e293775 | Update AttributeContainsElement.cs | thelgevold/xpathitup | XPathFinder/AttributeContainsElement.cs | XPathFinder/AttributeContainsElement.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace XPathItUp
{
internal class AttributeContainsElement : Base, IAttributeContains
{
internal static IAttributeContains Create(List<string> expressionParts, string value, int currentAttributeIndex,bool ... | /*
Copyright (C) 2010 Torgeir Helgevold
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.
This program is distributed ... | mit | C# |
ea7f574388b724ac271fe73678b98e66a29f394c | Add credits field to microgame traits | NitorInc/NitoriWare,NitorInc/NitoriWare,Barleytree/NitoriWare,Barleytree/NitoriWare | Assets/Scripts/Microgame/MicrogameTraits.cs | Assets/Scripts/Microgame/MicrogameTraits.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class MicrogameTraits : MonoBehaviour
{
#pragma warning disable 0649
[SerializeField]
private ControlScheme _controlScheme;
public virtual ControlScheme controlScheme { get { return _controlScheme; } ... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class MicrogameTraits : MonoBehaviour
{
#pragma warning disable 0649
[SerializeField]
private ControlScheme _controlScheme;
public virtual ControlScheme controlScheme { get { return _controlScheme; } ... | mit | C# |
ef28ff53b928aff0088edca811f35cb7b231e383 | Clean up old BoundObject code | quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot,sqt/cactbot,sqt/cactbot | BrowserControl.xaml.cs | BrowserControl.xaml.cs | using CefSharp.Wpf;
using System.Windows.Controls;
namespace Cactbot
{
public partial class BrowserControl : UserControl
{
public BrowserControl()
{
DataContext = this;
InitializeComponent();
CreationHandlers = delegate {};
}
public delegate... | using CefSharp.Wpf;
using System.Windows.Controls;
namespace Cactbot
{
public partial class BrowserControl : UserControl
{
public BrowserControl()
{
DataContext = this;
InitializeComponent();
CreationHandlers = delegate {};
}
public delegate... | apache-2.0 | C# |
2e1cf96c8dd936e668885282478c28d14e436bad | add error handling | conekta/conekta-.net | conekta/Base/Requestor.cs | conekta/Base/Requestor.cs | using System;
using System.IO;
using System.Net;
using System.Text;
using Newtonsoft.Json;
namespace conekta
{
public class Requestor
{
public Requestor ()
{
}
public String request (String method, String resource_uri, String data = "{}")
{
try {
HttpWebRequest http = (HttpWebRequest)WebRequest.... | using System;
using System.IO;
using System.Net;
using System.Text;
using Newtonsoft.Json;
namespace conekta
{
public class Requestor
{
public Requestor ()
{
}
public String request (String method, String resource_uri, String data = "{}")
{
HttpWebRequest http = (HttpWebRequest)WebRequest.Create(con... | mit | C# |
9ddf4bf9e10941a948cb7db11ee0091724ac56a3 | Update AssemblyInfo.cs | NimaAra/Easy.Logger,NimaAra/EasyLogger | EasyLogger/Properties/AssemblyInfo.cs | EasyLogger/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("EasyLogger")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: InternalsVisibleTo("EasyLogger.Tests.Unit")]... | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("EasyLogger")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: NeutralResourcesLanguage("en-GB")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly... | mit | C# |
3c11e8542dafc0778a7b7dc933cb9d5e46d786b5 | remove controller name from main route | annaked/ExpressEntryCalculator,annaked/ExpressEntryCalculator,annaked/ExpressEntryCalculator | ExpressEntryCalculator.Web/Startup.cs | ExpressEntryCalculator.Web/Startup.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace ExpressEntryCalculator.Web
{
public class Sta... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace ExpressEntryCalculator.Web
{
public class Sta... | mit | C# |
91b4d5cc5dc7faad1937686b7d107a350a23c22f | Update BuildTool Deploy | WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework | Framework.BuildTool/Command/Deploy.cs | Framework.BuildTool/Command/Deploy.cs | using System.IO;
namespace Framework.BuildTool
{
public class CommandDeploy : Command
{
public CommandDeploy()
: base("deploy", "Deploy to Azure git")
{
this.AzureGitUrl = ArgumentAdd("azureGitUrl", "Azure Git Url");
}
public readonly Argument AzureGitU... | using System.IO;
namespace Framework.BuildTool
{
public class CommandDeploy : Command
{
public CommandDeploy()
: base("deploy", "Deploy to Azure git")
{
this.AzureGitUrl = ArgumentAdd("azureGitUrl", "Azure Git Url");
}
public readonly Argument AzureGitU... | mit | C# |
5d0b16d0ee48b398118363a0a99166ed048b10c8 | Fix NullReferenceException. | rmcardle/LazerTagHost,rmcardle/LazerTagHost | LazerTagHostLibrary/GameDefinition.cs | LazerTagHostLibrary/GameDefinition.cs | namespace LazerTagHostLibrary
{
public struct GameDefinition
{
public HostGun.CommandCode GameType { get; set; }
public byte GameId { get; set; }
public int GameTimeMinutes { get; set; }
public int Tags { get; set; }
private int _reloads;
public int Reloads
{
get { return _reloads; }
set
{
... | namespace LazerTagHostLibrary
{
public struct GameDefinition
{
public HostGun.CommandCode GameType { get; set; }
public byte GameId { get; set; }
public int GameTimeMinutes { get; set; }
public int Tags { get; set; }
private int _reloads;
public int Reloads
{
get { return _reloads; }
set
{
... | mit | C# |
8bacc2d9196caab2ad6ae443ae7a0a98f56fa074 | Fix build error. | inter8ection/Obvs | Obvs.NetMQ/Properties/AssemblyInfo.cs | Obvs.NetMQ/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("Obvs.NetMQ")]
[assembly: AssemblyDescript... | 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("Obvs.NetMQ")]
[assembly: AssemblyDescript... | mit | C# |
0cf79d4bfd456d16071520cfa2158c20fdbc8479 | Update ValuesOut.cs | EricZimmerman/RegistryPlugins | RegistryPlugin.Uninstall/ValuesOut.cs | RegistryPlugin.Uninstall/ValuesOut.cs | using System;
using RegistryPluginBase.Interfaces;
namespace RegistryPlugin.Uninstall
{
public class ValuesOut : IValueOut
{
public ValuesOut(string keyName, string displayName, string displayVersion, string publisher, string installDate, string installSource, string installLocation, string uninstallS... | using System;
using RegistryPluginBase.Interfaces;
namespace RegistryPlugin.Uninstall
{
public class ValuesOut : IValueOut
{
public ValuesOut(string keyName, string displayName, string displayVersion, string publisher, string installDate, string installSource, string installLocation, string uninstallS... | mit | C# |
7c3a6cb6e0d3fd04c20a0e34d4fd414dc575b3d5 | Update assembly info | bcatcho/transition,bcatcho/transition | Transition/Properties/AssemblyInfo.cs | Transition/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 ("Transition")]
[assembly: AssemblyDescription ("A state machine language and interpreter")]
[ass... | 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 ("Transition")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[asse... | mit | C# |
902b8cfaf80f03c160e4bfad2aceb94cf89214de | Test shouldn't check registered peer count | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Tests/LiveServerTests.cs | WalletWasabi.Tests/LiveServerTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using NBitcoin;
using WalletWasabi.Services;
using WalletWasabi.Tests.XunitConfiguration;
using WalletWasabi.WebClients.ChaumianCoinJoin;
using Xunit;
namespace WalletWasabi.Tests
{
public class LiveServerTests : IClassFi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using NBitcoin;
using WalletWasabi.Services;
using WalletWasabi.Tests.XunitConfiguration;
using WalletWasabi.WebClients.ChaumianCoinJoin;
using Xunit;
namespace WalletWasabi.Tests
{
public class LiveServerTests : IClassFi... | mit | C# |
3e8666cadbcae04e658a85da13b8d4eaaa570521 | Delete unsed class | lizhen325/DakHanMaRi,lizhen325/DakHanMaRi | Web.UI/Reposotires/AdminRepository.cs | Web.UI/Reposotires/AdminRepository.cs | using System.Linq;
using System.Web.Mvc;
using Web.UI.Interfaces;
using Web.UI.Models;
namespace Web.UI.Reposotires
{
public class AdminRepository : Controller, IAdminProfileRepository
{
private readonly CMSDBContext db;
public AdminRepository(CMSDBContext db)
{
this.db = ... | using System.Linq;
using System.Web.Mvc;
using Web.UI.Interfaces;
using Web.UI.Models;
namespace Web.UI.Reposotires
{
public class aa
{
public string Password { get; set; }
}
public class AdminRepository : Controller, IAdminProfileRepository
{
private readonly CMSDBContext db;
... | mit | C# |
f2a972e49164f4b068d587d7043873819678e39b | Update comments and bumped up default packets to 64 and datagrams 40 | markmnl/FalconUDP | PoolSizes.cs | PoolSizes.cs |
namespace FalconUDP
{
/// <summary>
/// Class contining the number of objects FalconPeer will create on construction to mitigate
/// later allocations and
/// </summary>
public class FalconPoolSizes
{
/// <summary>
/// Number of <see cref="Packet"/>s to pool. The optimal numb... |
namespace FalconUDP
{
/// <summary>
/// Class contining the number of object FalconPeer will create on construction to mitigate
/// later allocations.
/// </summary>
public class FalconPoolSizes
{
/// <summary>
/// Number of <see cref="Packet"/>s to pool. The optimal number is... | mit | C# |
9ac7d7ba8aadd1e1182acbfdbee5cb4d75142852 | add warning that SuppressFinalize is not supported | dot42/api | System/GC.cs | System/GC.cs | // Copyright (C) 2014 dot42
//
// Original filename: GC.cs
//
// 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 re... | // Copyright (C) 2014 dot42
//
// Original filename: GC.cs
//
// 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 re... | apache-2.0 | C# |
51c5eac7acc2f385cdceef79fb2f25d5ae1aeddf | Update EnumerableTests.cs | keith-hall/Extensions,keith-hall/Extensions | tests/EnumerableTests.cs | tests/EnumerableTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HallLibrary.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Tests
{
[TestClass]
public class EnumerableTests
{
private IEnumerable<int> _failAtFifthIteration = Enumerable.Range(1, 4).Concat(new[] ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HallLibrary.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Tests
{
[TestClass]
public class EnumerableTests
{
private IEnumerable<int> _failAtFifthIteration = Enumerable.Range(1, 4).Concat(new[] ... | apache-2.0 | C# |
bac1f8d1c0ef8689326571fe267d13fc93c48492 | add indexer method | pashchuk/Numerical-methods,pashchuk/Numerical-methods | CSharp/lab1/Matrix.cs | CSharp/lab1/Matrix.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace lab1
{
public class Matrix<T> where T : struct
{
#region Fields
private T[,] _matrix;
#endregion
#region Properties
public T this[int row, int column]
{
get { return _mat... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace lab1
{
public class Matrix<T> where T : struct
{
#region Fields
private T[,] _matrix;
#endregion
#region Properties
#endregion
#region Costructors
public Matrix(int ro... | mit | C# |
aacd65078c3d6d54fdf030d0955c7f29bcdf7473 | Use Id instead of fixed value | jazd/Business,jazd/Business,jazd/Business | CSharp/Core/Individual/IndividualDB.cs | CSharp/Core/Individual/IndividualDB.cs | using System;
namespace Business.Core
{
public partial class Individual
{
public IDatabase Database { get; private set; }
public Individual(IDatabase database, UInt64? id = null) {
Database = database;
if(id != null)
Load((UInt64)id);
}
private void Load(UInt64 id) {
// Overwrite this object w... | using System;
namespace Business.Core
{
public partial class Individual
{
public IDatabase Database { get; private set; }
public Individual(IDatabase database, UInt64? id = null) {
Database = database;
if(id != null)
Load((UInt64)id);
}
private void Load(UInt64 id) {
// Overwrite this object w... | mit | C# |
5e75d001c820c6125b5b9ee759be4f34cfd5d83a | Fix Dialog creation | openmedicus/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp | gtk/Dialog.cs | gtk/Dialog.cs | //
// Gtk.Dialog.cs - Gtk Dialog class customizations
//
// Author: Duncan Mak (duncan@ximian.com)
// Mike Kestner (mkestner@speakeasy.net)
//
// Copyright (C) 2002 Ximian, Inc. and Mike Kestner
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Les... | //
// Gtk.Dialog.cs - Gtk Dialog class customizations
//
// Author: Duncan Mak (duncan@ximian.com)
// Mike Kestner (mkestner@speakeasy.net)
//
// Copyright (C) 2002 Ximian, Inc. and Mike Kestner
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Les... | lgpl-2.1 | C# |
bd48b262c3c11fa24473c77372b98d8d00fd66f0 | fix bug: #90 | shuxinqin/Chloe | src/Chloe/Query/QueryState/DistinctQueryState.cs | src/Chloe/Query/QueryState/DistinctQueryState.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Chloe.DbExpressions;
using Chloe.Query.QueryExpressions;
namespace Chloe.Query.QueryState
{
class DistinctQueryState : SubQueryState
{
public DistinctQueryState(ResultElement resultElement)
: base(r... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Chloe.DbExpressions;
namespace Chloe.Query.QueryState
{
class DistinctQueryState : SubQueryState
{
public DistinctQueryState(ResultElement resultElement)
: base(resultElement)
{
}
... | mit | C# |
2f8f06e1fc6923aa51c959ef4659c97ae91093ba | Fix ctor to take arbitrary object type as model. | nikhilk/silverlightfx | src/Client/Core/UserInterface/ViewUserControl.cs | src/Client/Core/UserInterface/ViewUserControl.cs | // ViewUserControl.cs
// Copyright (c) Nikhil Kothari, 2008. All Rights Reserved.
// http://www.nikhilk.net
//
// Silverlight.FX is an application framework for building RIAs with Silverlight.
// This project is licensed under the BSD license. See the accompanying License.txt
// file for more information.
// For updat... | // ViewUserControl.cs
// Copyright (c) Nikhil Kothari, 2008. All Rights Reserved.
// http://www.nikhilk.net
//
// Silverlight.FX is an application framework for building RIAs with Silverlight.
// This project is licensed under the BSD license. See the accompanying License.txt
// file for more information.
// For updat... | bsd-3-clause | C# |
aaa8d020b70e0b209f8d692d0377a2012b2192b0 | update version to 1.0.1.0 | cityindex-attic/RESTful-Webservice-Schema,cityindex-attic/RESTful-Webservice-Schema,cityindex-attic/RESTful-Webservice-Schema | src/MetadataProcessor/Properties/AssemblyInfo.cs | src/MetadataProcessor/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("Me... | 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("Me... | apache-2.0 | C# |
f0964e6c3522250a88f9383e3036a8cc3a8ea311 | Add application/problem+json and application/problem+xml media types | ASP-NET-MVC-Boilerplate/Framework,ASP-NET-Core-Boilerplate/Framework,ASP-NET-Core-Boilerplate/Framework,ASP-NET-Core-Boilerplate/Framework,ASP-NET-MVC-Boilerplate/Framework,ASP-NET-Core-Boilerplate/Framework | Source/Boxed.AspNetCore/ContentType.cs | Source/Boxed.AspNetCore/ContentType.cs | namespace Boxed.AspNetCore
{
/// <summary>
/// A list of internet media types, which are a standard identifier used on the Internet to indicate the type of
/// data that a file contains. Web browsers use them to determine how to display, output or handle files and search
/// engines use them to classify... | namespace Boxed.AspNetCore
{
/// <summary>
/// A list of internet media types, which are a standard identifier used on the Internet to indicate the type of
/// data that a file contains. Web browsers use them to determine how to display, output or handle files and search
/// engines use them to classify... | mit | C# |
b06f4e88873682050bf0efdc8dc035e0bfb4ba3c | Update SparklrMenu.xaml.cs | windowsphonehacker/SparklrWP | SparklrWP/Controls/SparklrMenu.xaml.cs | SparklrWP/Controls/SparklrMenu.xaml.cs | using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using SparklrWP.Controls;
using SparklrWP.Utils;
using SparklrWP.Utils.Extensions;
using SparklrWP.ViewModels;
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
namespace SparklrWP.Controls
{
public part... | using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using SparklrWP.Controls;
using SparklrWP.Utils;
using SparklrWP.Utils.Extensions;
using SparklrWP.ViewModels;
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
namespace SparklrWP.Controls
{
public part... | mit | C# |
06fd2699310b50b4f8fb942031bbc595f650611e | add license | NDark/ndinfrastructure,NDark/ndinfrastructure | Unity/UnityTools/OnClickChangeScene.cs | Unity/UnityTools/OnClickChangeScene.cs | /**
MIT License
Copyright (c) 2017 NDark
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, publish, distr... | /**
@file OnClickChangeScene.cs
@author NDark
@date 20170402 . file started.
*/
using UnityEngine;
public class OnClickChangeScene : MonoBehaviour
{
public string m_SceneName = string.Empty ;
void OnClick()
{
UnityEngine.SceneManagement.SceneManager.LoadScene ( m_SceneName );
}
}
| mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.