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 |
|---|---|---|---|---|---|---|---|---|
3fc9070d44a353ee65cfdaec0546ca4ab510b89b | Create 4.cs | rikkus/adventofcode2016,rikkus/adventofcode2016 | 4.cs | 4.cs | static Regex matcher = new Regex(@"^(?<letters>[a-z-]+)-(?<sectorid>\d+)\[(?<checksum>[a-z]{5})\]$");
public struct Row
{
public string Letters;
public uint SectorID;
public string CheckSum;
public bool IsValid;
public static Row Parse(string s)
{
var match = matcher.Match(s);
if (match.Groups.Count != 4)
... | mit | C# | |
8b8524b2a00a1aa5dfc37ea0b2f8bc319c3535c8 | add tests for ExpandedDependencyMap (#1218) | dotnet/docfx,dotnet/docfx,pascalberger/docfx,dotnet/docfx,pascalberger/docfx,DuncanmaMSFT/docfx,LordZoltan/docfx,hellosnow/docfx,superyyrrzz/docfx,DuncanmaMSFT/docfx,superyyrrzz/docfx,928PJY/docfx,hellosnow/docfx,LordZoltan/docfx,LordZoltan/docfx,928PJY/docfx,pascalberger/docfx,superyyrrzz/docfx,LordZoltan/docfx,928PJY... | test/Microsoft.DocAsCode.Build.Engine.Tests/ExpandedDependencyMapTest.cs | test/Microsoft.DocAsCode.Build.Engine.Tests/ExpandedDependencyMapTest.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.Build.Engine.Tests
{
using System.Linq;
using Microsoft.DocAsCode.Build.Engine.Incrementals;
using Microsoft.DocAsCode.Build... | mit | C# | |
9601cb699a05f40720c7c82e2132446c5e1856cf | Implement KTH API data fetcher | Zalodu/Schedutalk,Zalodu/Schedutalk | Schedutalk/Schedutalk/Schedutalk/Logic/KTHPlaces/KTHPlacesDataFetcher.cs | Schedutalk/Schedutalk/Schedutalk/Logic/KTHPlaces/KTHPlacesDataFetcher.cs | using Newtonsoft.Json;
using Org.Json;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Runtime.Serialization.Json;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace Schedut... | mit | C# | |
af6212bf9827798499ebf72f2aacfeee12d50df6 | Add in MessageAgentBus definition | mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,zanetdev/Glimpse.Prototype,zanetdev/Glimpse.Prototype,pranavkm/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Protot... | src/Glimpse.Agent.Common/Framework/IMessageAgentBus.cs | src/Glimpse.Agent.Common/Framework/IMessageAgentBus.cs | using System;
namespace Glimpse.Agent
{
public interface IMessageAgentBus
{
IObservable<T> Listen<T>()
where T : IMessage;
IObservable<T> ListenIncludeLatest<T>()
where T : IMessage;
void SendMessage(IMessage message);
}
} | mit | C# | |
f51b434870cbc9415937939bebe78f6c44b8e196 | Add Serailizable tests | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Tests/UnitTests/SerializableExceptionTests.cs | WalletWasabi.Tests/UnitTests/SerializableExceptionTests.cs | using System;
using System.Collections.Generic;
using System.Text;
using WalletWasabi.Models;
using Xunit;
namespace WalletWasabi.Tests.UnitTests
{
public class SerializableExceptionTests
{
[Fact]
public void UtxoRefereeSerialization()
{
var message = "Foo Bar Buzz";
var innerMessage = "Inner Foo Bar Buz... | mit | C# | |
bcc866966b5578d3a55f5024c360770f9d67d5db | Fix git tracking. | bozoweed/Sanderling,exodus444/Sanderling,Arcitectus/Sanderling | src/Sanderling/Sanderling.Test.Exe/Parse/InfoPanel.cs | src/Sanderling/Sanderling.Test.Exe/Parse/InfoPanel.cs | using Sanderling.Parse;
using NUnit.Framework;
namespace Sanderling.Test.Exe.Parse
{
public class InfoPanel
{
[Test]
public void Parse_InfoPanel_System_SecurityLevel()
{
Assert.AreEqual(400, @"<url=showinfo:5//1234567 alt='Current Solar System'>Jita</url></b> <color=0xff00ff00L><hint='Security status'>0.4<... | apache-2.0 | C# | |
5524fd560179e9b95cb0e5a148985982bcc00f29 | Add HashAlgorithm class | ektrah/nsec | src/Cryptography/HashAlgorithm.cs | src/Cryptography/HashAlgorithm.cs | using System;
using System.Diagnostics;
namespace NSec.Cryptography
{
public abstract class HashAlgorithm : Algorithm
{
private readonly int _defaultHashSize;
private readonly int _maxHashSize;
private readonly int _minHashSize;
internal HashAlgorithm(
int minHashSi... | mit | C# | |
6483d9ee973f1e680cb35b2cc8d40019f4fd2c88 | remove syntax errors from OSX platform code | winalex/Unity3d-InputMapper,winalex/Unity3d-InputMapper,zodsoft/Unity3d-InputMapper,korbengr/WiiControlUnity,korbengr/WiiControlUnity,zodsoft/Unity3d-InputMapper | Assets/Scripts/ws/winx/platform/OSX/GenericHIDDevice.cs | Assets/Scripts/ws/winx/platform/OSX/GenericHIDDevice.cs | // ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerat... | mit | C# | |
c4ceea7c76cdff387ae009070ba1b3da44988d07 | remove unused code | josealencar/Aritter,aritters/Ritter,josealencar/Aritter,josealencar/Aritter,arsouza/Aritter,arsouza/Aritter,josealencar/Aritter,josealencar/Aritter | src/Aritter.Domain/Security/Services/UserDomainService.cs | src/Aritter.Domain/Security/Services/UserDomainService.cs | using Aritter.Domain.Security.Aggregates;
using Aritter.Domain.Seedwork.Services;
using System.Threading.Tasks;
namespace Aritter.Domain.Security.Services
{
public class UserDomainService : DomainService, IUserDomainService
{
private readonly IUserRoleRepository userRoleRepository;
private rea... | using Aritter.Domain.Security.Aggregates;
using Aritter.Domain.Seedwork.Services;
using System.Threading.Tasks;
namespace Aritter.Domain.Security.Services
{
public class UserDomainService : DomainService, IUserDomainService
{
private readonly IUserRoleRepository userRoleRepository;
private rea... | mit | C# |
e2d8a84930d95381999031fbc3e948075dfcc6c2 | Add tests for restoring the aggregate from events | optimusway/NetCoreCqrsEsSample,optimusway/NetCoreCqrsEsSample | tests/NetCoreCqrsEsSample.Tests/Domain/AggregateTests.cs | tests/NetCoreCqrsEsSample.Tests/Domain/AggregateTests.cs | using FluentAssertions;
using NetCoreCqrsEsSample.Domain.Models;
using Xunit;
namespace NetCoreCqrsEsSample.Tests.Domain
{
public class AggregateTests
{
[Fact]
public void Should_load_aggregate_from_events_correctly()
{
// arrange
var counter = new Counter();
... | mit | C# | |
01e08147f3e812033454a6c1d87479a3f1b91eb6 | Create AchievementManager.cs | Rewtek/GameLibrary | Code/Rewtek.GameLibrary/Achievements/AchievementManager.cs | Code/Rewtek.GameLibrary/Achievements/AchievementManager.cs | namespace Rewtek.GameLibrary.Achivements
{
#region Using directives
using global::System;
using global::System.Linq;
using global::System.Collections.Generic;
using Rewtek.GameLibrary.Components;
#endregion
/// <summary>
/// Provides a management for achivements.
/// </summary>
... | mit | C# | |
3d72c19dad1e2aa0703ccc09d5a344964cf4de8a | Create Palindrome-Checker.cs | DeanCabral/Code-Snippets | Console/Palindrome-Checker.cs | Console/Palindrome-Checker.cs | class Palindrome
{
static void Main(string[] args)
{
GetUserInput();
}
static void GetUserInput()
{
string input = "";
string output = "";
Console.Write("Enter a word: ");
input = Console.ReadLine();
o... | mit | C# | |
35129f55905df73ced8c3e74a567f0cbf00c8c9d | Upgrade file | signumsoftware/framework,signumsoftware/framework | Signum.Upgrade/Upgrades/Upgrade_20220610_ToolbarRendererMoved.cs | Signum.Upgrade/Upgrades/Upgrade_20220610_ToolbarRendererMoved.cs | namespace Signum.Upgrade.Upgrades;
class Upgrade_20220610_ToolbarRendererMoved : CodeUpgradeBase
{
public override string Description => "ToolbarRenderer moved to Renderers";
public override void Execute(UpgradeContext uctx)
{
uctx.ChangeCodeFile(@"Southwind.React\App\Layout.tsx", file =>
... | mit | C# | |
6fd4467ee0a124dde070df68ec4d7bf9688ff233 | Add command to delete all instances of a component (#2580) | space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 | Content.Server/Administration/Commands/DeleteComponent.cs | Content.Server/Administration/Commands/DeleteComponent.cs | #nullable enable
using Content.Shared.Administration;
using Robust.Server.Interfaces.Console;
using Robust.Server.Interfaces.Player;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.IoC;
namespace Content.Server.Administration.Commands
{
[AdminCommand(AdminFlags.Admin)]
public class DeleteCompo... | mit | C# | |
ab1a1a1df4da3504a215b4acd22e39e88dca3b60 | Add failing test case due to div by zero | ppy/osu,UselessToucan/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,peppy/osu,peppy/osu-new,peppy/osu,ppy/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipooo/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu | osu.Game.Rulesets.Osu.Tests/Editor/TestSliderScaling.cs | osu.Game.Rulesets.Osu.Tests/Editor/TestSliderScaling.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.Linq;
using NUnit.Framework;
using osu.Framework.Testing;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Objects.Types;
us... | mit | C# | |
d918b62a5df9c0299616eaeac654497768368bd5 | test name fix | commonsensesoftware/Its.Cqrs,commonsensesoftware/Its.Cqrs,askheaves/Its.Cqrs,askheaves/Its.Cqrs,askheaves/Its.Cqrs,commonsensesoftware/Its.Cqrs | Domain.Tests/EventSourcedAggregateSnapshottingTests.cs | Domain.Tests/EventSourcedAggregateSnapshottingTests.cs | using System.Reactive.Disposables;
using Microsoft.Its.Domain.Testing;
using NUnit.Framework;
using Sample.Domain;
using Sample.Domain.Ordering;
namespace Microsoft.Its.Domain.Tests
{
[TestFixture]
public class EventSourcedAggregateSnapshottingTests
{
private CompositeDisposable disposab... | using System.Reactive.Disposables;
using Microsoft.Its.Domain.Testing;
using NUnit.Framework;
using Sample.Domain;
using Sample.Domain.Ordering;
namespace Microsoft.Its.Domain.Tests
{
[TestFixture]
public class EventSourcedAggregateSnapshottingTests
{
private CompositeDisposable disposab... | mit | C# |
568ac6bfc887631c32b14272a6132f92666d2b22 | Update static/vendors/ace-builds/demo/kitchen-sink/docs/razor.cshtml | apipanda/openssl,apipanda/openssl,apipanda/openssl,apipanda/openssl | static/vendors/ace-builds/demo/kitchen-sink/docs/razor.cshtml | static/vendors/ace-builds/demo/kitchen-sink/docs/razor.cshtml | @{
Layout = "~/layout"
} | mit | C# | |
f38b3ea5d7a269693b240c1eba550a7656948f56 | add register scenarios | leotsarev/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net | JoinRpg.IntegrationTests/Scenarios/RegisterScenario.cs | JoinRpg.IntegrationTests/Scenarios/RegisterScenario.cs | using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using JoinRpg.IntegrationTests.TestInfrastructure;
using Shouldly;
using Xunit;
namespace JoinRpg.IntegrationTests.Scenarios
{
public class RegisterScenario : IClassFixture<JoinApplicationFactory>
{
... | mit | C# | |
78bf9bd6344a536b3c81666ef28bef63e2eefdc5 | Add ConfigSection attribute for Rockifier tool | RockFramework/Rock.Encryption | RockLib.Encryption/AssemblyAttributes.cs | RockLib.Encryption/AssemblyAttributes.cs | using RockLib.Configuration.ObjectFactory;
using RockLib.Encryption;
using System.Collections.Generic;
[assembly: ConfigSection("RockLib.Encryption", typeof(List<ICrypto>))] | mit | C# | |
3e2314d1f5a60b9823eb688379da2da48714381c | Add visual and assertive test coverage | peppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework | osu.Framework.Tests/Visual/Drawables/TestSceneColourInterpolation.cs | osu.Framework.Tests/Visual/Drawables/TestSceneColourInterpolation.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.Linq;
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.... | mit | C# | |
e4839072eadbfa55310d6553a45d246763d7be1e | Create temp.cs | sebastiankloch/Platformer-2D | images/temp.cs | images/temp.cs | agpl-3.0 | C# | ||
695e16a33b0a1f4e907bc450cce472dddf677921 | Create Util.cs | QetriX/quly | Assets/Scripts/Util.cs | Assets/Scripts/Util.cs | namespace Quly
{
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Util
{
static Dictionary<string, AudioClip> sfx = new Dictionary<string, AudioClip>();
public static void loadSfx(string name)
{
sfx.Add(name, Resources.Load<AudioClip>("Sfx/" + name));
}
pu... | mit | C# | |
bba14cb2efde24e4837d90bbc4bd19c59af0184a | Create List.Head() and List.Tail() extension methods | escamilla/squirrel | squirrel/ExtensionMethods.cs | squirrel/ExtensionMethods.cs | using System.Collections.Generic;
using System.Linq;
namespace squirrel
{
public static class ExtensionMethods
{
public static T Head<T>(this List<T> list)
{
return list[0];
}
public static List<T> Tail<T>(this List<T> list)
{
return list.Skip(1... | mit | C# | |
3f7bfe8e8329daf09dd8f15dac548621e9c7c331 | Add PluginState | KpdApps/KpdApps.Common.MsCrm2013 | PluginState.cs | PluginState.cs | using System;
using Microsoft.Xrm.Sdk;
namespace KpdApps.Common.MsCrm2013
{
public class PluginState
{
public virtual IServiceProvider Provider { get; private set; }
private IPluginExecutionContext _context;
public virtual IPluginExecutionContext Context => _context ?? (_context = (IP... | mit | C# | |
2df7b9f4ae112f2a2588f9cde13cf2bcd7fc749d | Check the RequiredAttribute's AllowEmptyStrings property | charleypeng/Nancy,asbjornu/Nancy,charleypeng/Nancy,blairconrad/Nancy,davidallyoung/Nancy,charleypeng/Nancy,damianh/Nancy,danbarua/Nancy,VQComms/Nancy,NancyFx/Nancy,jchannon/Nancy,jeff-pang/Nancy,xt0rted/Nancy,davidallyoung/Nancy,sadiqhirani/Nancy,anton-gogolev/Nancy,khellang/Nancy,felipeleusin/Nancy,sadiqhirani/Nancy,s... | src/Nancy.Validation.DataAnnotations/RequiredValidatorAdapter.cs | src/Nancy.Validation.DataAnnotations/RequiredValidatorAdapter.cs | namespace Nancy.Validation.DataAnnotations
{
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Nancy.Validation.Rules;
/// <summary>
/// An adapter for the <see cref="System.ComponentModel.DataAnnotations.RequiredAttribu... | namespace Nancy.Validation.DataAnnotations
{
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Nancy.Validation.Rules;
/// <summary>
/// An adapter for the <see cref="System.ComponentModel.DataAnnotations.RequiredAttribu... | mit | C# |
5102e03b403f38d55e391fc2a72f030d411ca42f | Create LetterCapitalize.cs | michaeljwebb/Algorithm-Practice | Coderbyte/LetterCapitalize.cs | Coderbyte/LetterCapitalize.cs | //Capitalize the first letter of each word.
using System;
using System.Globalization;
class MainClass {
public static string LetterCapitalize(string str) {
string cStr = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(str);
str = cStr;
return str;
}
static void Main() {
// keep this... | mit | C# | |
8b6608421dd438f0e652c8f9fd3427949c1a6ea7 | Add tests for WindowsApplication | rubyu/CreviceApp,rubyu/CreviceApp | CreviceAppTests/WindowsApplicationTests.cs | CreviceAppTests/WindowsApplicationTests.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using CreviceApp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CreviceApp.Tests
{
[TestClass()]
public class WindowsApplicationTests
{
[TestMethod()]
public ... | mit | C# | |
8c91b69ec92aa08f45475d6e801b278edc6d8647 | Add in-process DB ORM test | hgcummings/DataAccessExamples,hgcummings/DataAccessExamples | DataAccessExamples.Core.Tests/DbOrmTest.cs | DataAccessExamples.Core.Tests/DbOrmTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataAccessExamples.Core.Data;
using DataAccessExamples.Core.Services.Department;
using DataAccessExamples.Core.Services.Employee;
using DataAccessExamples.Core.ViewModels;
using NUnit.Fram... | cc0-1.0 | C# | |
e351bfba2e4dc796fec19fdf029539be8eef1098 | add missing file | jvalladolid/recurly-client-net,cgerrior/recurly-client-net | Library/List/RefundList.cs | Library/List/RefundList.cs | using System.Xml;
using System.Collections;
using System.Collections.Generic;
namespace Recurly
{
internal class RefundList : IEnumerable<Refund>
{
private List<Refund> Refunds = new List<Refund>();
internal RefundList(IEnumerable<Adjustment> adjustments, bool prorate, int quantity = 0)
... | mit | C# | |
04ee86b39bceec2b8e3361b7c084f902d74df643 | Add servicing attribute (fixes #108). | vasanthangel4/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,vasanthangel4/azure-webjobs-sdk,brendankowitz/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,Azure/azure-webjobs-sdk,oliver-feng/azure-webjobs-sdk,vasanthangel4/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,brendanko... | src/Common/CommonAssemblyInfo.cs | src/Common/CommonAssemblyInfo.cs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct("Microsoft Azure WebJobs SDK"... | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct("Microsoft Azure WebJobs SDK"... | mit | C# |
207ccc4756474cea1a57b056f5404593433089d2 | Add test scene for beatmapset online status pill display | smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,peppy/osu,peppy/osu,ppy/osu,smoogipooo/osu,ppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu | osu.Game.Tests/Visual/Beatmaps/TestSceneBeatmapSetOnlineStatusPill.cs | osu.Game.Tests/Visual/Beatmaps/TestSceneBeatmapSetOnlineStatusPill.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.Drawables;
using ... | mit | C# | |
fe1e491da1dceffd01c54fa81b37b353e8e4e95d | Add default ignored request provider which discovers instances | mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,pranavkm/Glimpse.Pr... | src/Glimpse.Agent.Web/Options/DefaultIgnoredRequestProvider.cs | src/Glimpse.Agent.Web/Options/DefaultIgnoredRequestProvider.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.Remoting.Messaging;
namespace Glimpse.Agent.Web.Options
{
public class DefaultIgnoredRequestProvider : IIgnoredRequestProvider
{
private readonly ITypeService _typeService;
public ... | mit | C# | |
b1f248eeecc6f908281f72ab2f64fc3d6fd0eff6 | Add CIL instruction tests. | Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver | test/AsmResolver.PE.Tests/DotNet/Cil/CilInstructionTest.cs | test/AsmResolver.PE.Tests/DotNet/Cil/CilInstructionTest.cs | using AsmResolver.PE.DotNet.Cil;
using Xunit;
namespace AsmResolver.PE.Tests.DotNet.Cil
{
public class CilInstructionTest
{
[Theory]
[InlineData(CilCode.Ldc_I4, 1234, 1234)]
[InlineData(CilCode.Ldc_I4_M1, null, -1)]
[InlineData(CilCode.Ldc_I4_0, null, 0)]
[InlineData(Cil... | mit | C# | |
0702f414aa6483182a16aa4b417e9610c0a6ea0a | Add report with basic metadata | Kentico/KInspector,Kentico/KInspector,ChristopherJennings/KInspector,ChristopherJennings/KInspector,ChristopherJennings/KInspector,ChristopherJennings/KInspector,Kentico/KInspector,Kentico/KInspector | KenticoInspector.Reports/ContentTreeConsistencyAnalysis/Report.cs | KenticoInspector.Reports/ContentTreeConsistencyAnalysis/Report.cs | using KenticoInspector.Core;
using KenticoInspector.Core.Constants;
using KenticoInspector.Core.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace KenticoInspector.Reports.ContentTreeConsistencyAnalysis
{
class Report : IReport
{
public string Codename => "Content-Tre... | mit | C# | |
fdf40b089b8ed567c5cdf26b0368ea417bc4487c | Add this back in | editor-tools/octokit.net,hitesh97/octokit.net,khellang/octokit.net,michaKFromParis/octokit.net,takumikub/octokit.net,gdziadkiewicz/octokit.net,eriawan/octokit.net,bslliw/octokit.net,gabrielweyer/octokit.net,daukantas/octokit.net,octokit-net-test-org/octokit.net,shiftkey/octokit.net,khellang/octokit.net,SamTheDev/octoki... | Burr.Tests.Integration/UserTests.cs | Burr.Tests.Integration/UserTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
using FluentAssertions;
namespace Burr.Tests.Integration
{
public class UserTests
{
[Fact]
public async Task CanGetUser()
{
var client = new GitH... | mit | C# | |
503a69ce4dde56cfada630425b134166bae6ba96 | Добавить объект video_image | vknet/vk,vknet/vk | VkNet/Model/VideoImage.cs | VkNet/Model/VideoImage.cs | using System;
using Newtonsoft.Json;
namespace VkNet.Model
{
/// <summary>
/// Объект, описывающий размер обложки видео.
/// См. описание https://vk.com/dev/objects/video_image
/// </summary>
public class VideoImage
{
/// <summary>
/// URL-адрес изображения.
/// </summary>
[JsonProperty("url")]
public ... | mit | C# | |
97bfcc9feabeee5643775c6aa27311f83ce1c697 | Create Problem290.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problem290.cs | Problem290.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Numerics;
namespace ProjectEuler.Problems
{
class Problem290
{
private int SumDigits(BigInteger n)
{
int sum = 0;
do
{
sum += (int)(n % 10);
n /= 10;... | mit | C# | |
e994396bebaa5b6a907a9bdf3c8d1a1cf17d97ff | add QueryableExtension.cs | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/Extensions/QueryableExtension.cs | src/WeihanLi.Common/Extensions/QueryableExtension.cs | using JetBrains.Annotations;
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using WeihanLi.Common.Models;
// ReSharper disable once CheckNamespace
namespace WeihanLi.Extensions
{
public static class QueryableExtension
{
/// <summary>
/// Converts the s... | mit | C# | |
f3b6cc8dd5ce74d3495715549aa0c23df9dfef28 | Add Isolated attribute for DB transactions. | Dissolving-in-Eternity/GigHub,Dissolving-in-Eternity/GigHub,Dissolving-in-Eternity/GigHub | GigHub.IntegrationTests/Isolated.cs | GigHub.IntegrationTests/Isolated.cs | using System;
using System.Transactions;
using NUnit.Framework;
namespace GigHub.IntegrationTests
{
// Any changes we make to the data in the DB will be automatically rolled back
public class Isolated : Attribute, ITestAction
{
private TransactionScope _transactionScope;
public void Befor... | mit | C# | |
9233248a0ba84919802e8dbae203a5a95b2fceaa | add OsuMarkdownUnorderedListItem | smoogipooo/osu,peppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,peppy/osu-new,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu | osu.Game/Graphics/Containers/Markdown/OsuMarkdownUnorderedListItem.cs | osu.Game/Graphics/Containers/Markdown/OsuMarkdownUnorderedListItem.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
namespace osu.Game.Graphics.Containers.Markdown
{
public class OsuMarkdownUnorderedListItem : Osu... | mit | C# | |
6b6f4dac622c9267378c8ccdc145e7ff23ec11e1 | update plugin | wh-ess/ess,wh-ess/ess,wh-ess/ess,wh-ess/ess | Framework/ESS.Framework.Data/EF/EFRepositoryAsync.cs | Framework/ESS.Framework.Data/EF/EFRepositoryAsync.cs | #region
using System;
using System.Data;
using System.Data.Entity;
using System.Data.SqlClient;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
#endregion
namespace ESS.Framework.Data.EF
{
public class EfRepositoryAsync<TEntity, TKey> : IRepositoryAsync<TEntity, TKey> where TEnti... | apache-2.0 | C# | |
e1b472ddc4a2ed367e1a0988745b9c0fba6f5607 | Add ServerAddress tests | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | test/Microsoft.AspNet.Server.KestrelTests/ServerAddressFacts.cs | test/Microsoft.AspNet.Server.KestrelTests/ServerAddressFacts.cs | using Microsoft.AspNet.Server.Kestrel;
using Xunit;
namespace Microsoft.AspNet.Server.KestrelTests
{
public class ServerAddressFacts
{
[Theory]
[InlineData("")]
[InlineData("//noscheme")]
public void FromUriReturnsNullForSchemelessUrls(string url)
{
Assert.N... | apache-2.0 | C# | |
63756c2b22b1e1d1cdb431841b22081ac12c9d21 | add test scene | peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,peppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework | osu.Framework.Tests/Visual/Platform/TestSceneResizableWindow.cs | osu.Framework.Tests/Visual/Platform/TestSceneResizableWindow.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.Platform;
namespace osu.Framework.Tests.Visual.Platform
{
public class TestSceneResizableWindow : FrameworkTestS... | mit | C# | |
e29e039ef1e48b24114f0e684897e1e6227b8156 | Create the power type DataItemType to classify DataItem types | Ontica/Empiria.Extended | Data.DataObjects/RootTypes/DataItemType.cs | Data.DataObjects/RootTypes/DataItemType.cs | /* Empiria Extensions ****************************************************************************************
* *
* Module : Empiria Data Objects Component : Service Provider ... | agpl-3.0 | C# | |
460cf141de6ce895cfa69f3dd00cdc62a0d50205 | Add testing | 2yangk23/osu,ZLima12/osu,2yangk23/osu,smoogipooo/osu,smoogipoo/osu,UselessToucan/osu,EVAST9919/osu,ppy/osu,ZLima12/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,EVAST9919/osu,NeoAdonis/osu,UselessToucan/osu,johnneijzen/osu,ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new,johnneijzen/osu,ppy/osu,Useless... | osu.Game.Tests/Visual/Multiplayer/TestSceneMatchBeatmapPanel.cs | osu.Game.Tests/Visual/Multiplayer/TestSceneMatchBeatmapPanel.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using osu.Game.Beatmaps;
using osu.Game.Online.Multiplayer;
using osu.Game.Screens.Multi.Match.Components;
using osu.Fram... | mit | C# | |
ce8b2c1e379de69697ca880a24be662ae726a120 | add WikiMarkdownContainer | ppy/osu,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu,UselessToucan/osu,ppy/osu,smoogipooo/osu,ppy/osu,peppy/osu-new,NeoAdonis/osu,peppy/osu,peppy/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu | osu.Game/Overlays/Wiki/Markdown/WikiMarkdownContainer.cs | osu.Game/Overlays/Wiki/Markdown/WikiMarkdownContainer.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.Game.Graphics.Containers.Markdown;
namespace osu.Game.Overlays.Wiki.Markdown
{
public class WikiMarkdownContainer : OsuMarkdownContainer
{
publ... | mit | C# | |
5091df6607ef3db40b6a32efbe57d73e42475c1b | Add files via upload | viktorMirev/SoftUni-tasks-others,viktorMirev/SoftUni-tasks-others | Lybrary.cs | Lybrary.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
namespace softUni
{
public class Book
{
public string Title { get; set; }
public string Author { get; set; }
public string Publishe... | mit | C# | |
3c1ff7c4f557f9b6d325cad90c4271ca25c6d8e1 | Add IParameterCustomizationSource attribute to the AutoFixture core | Pvlerick/AutoFixture,AutoFixture/AutoFixture,zvirja/AutoFixture,sean-gilliam/AutoFixture | Src/AutoFixture/IParameterCustomizationSource.cs | Src/AutoFixture/IParameterCustomizationSource.cs | using System.Reflection;
namespace Ploeh.AutoFixture
{
/// <summary>
/// Source of the <see cref="ICustomization" /> instances specific for the particular
/// <see cref="ParameterInfo" /> parameter.
/// The main clients of this interface might be glue libraries which provide support for th... | mit | C# | |
d8739aafa6cfac9fd91611121a085fb0744d6d0c | Add missing file | pugachAG/univ,pugachAG/univ,pugachAG/univ | WienerProcessModel/WPMMath/Probability/TheWienerProcess/WienerProcess.cs | WienerProcessModel/WPMMath/Probability/TheWienerProcess/WienerProcess.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WPMMath.Common;
using WPMMath.Probability.Distributions;
namespace WPMMath.Probability
{
public class WienerProcess
{
private NormalDistributionGenerator randomGenerator = new Norm... | mit | C# | |
cbbb51072e85102f7fdd96e9fb7acf17c31cb1cb | Create passwordTextBox.cs | rronen10/AutoImage | passwordTextBox.cs | passwordTextBox.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Markup;
using NLog;
namespace PerfectoLabPackage.ToolWindows.ClientCommon.Controls
{
public class PasswordTextBox : TextBox
... | mit | C# | |
2951cbed33883c67a77f5a159c8ef73c905ddea7 | Make sure toggle events trigger at the right time. | ryanwang/LeapMotionCoreAssets,Amarcolina/LeapMotionCoreAssets | Assets/LeapMotion/Widgets/Scripts/Button/ButtonToggleBase.cs | Assets/LeapMotion/Widgets/Scripts/Button/ButtonToggleBase.cs | using UnityEngine;
using System.Collections;
namespace LMWidgets
{
public abstract class ButtonToggleBase : ButtonBase, BinaryInteractionHandler<bool>, IDataBoundWidget<ButtonToggleBase, bool> {
protected DataBinderToggle m_dataBinder;
protected bool m_toggleState = true;
public abstract void ButtonTu... | using UnityEngine;
using System.Collections;
namespace LMWidgets
{
public abstract class ButtonToggleBase : ButtonBase, BinaryInteractionHandler<bool>, IDataBoundWidget<ButtonToggleBase, bool> {
protected DataBinderToggle m_dataBinder;
protected bool m_toggleState = true;
public abstract void ButtonTu... | apache-2.0 | C# |
2881cf3b7b7f01164bf28e5a2514e35d61d176c7 | Test additions | karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthikn... | src/R/Editor/Test/Utility/TextViewTest.cs | src/R/Editor/Test/Utility/TextViewTest.cs | using System.Diagnostics.CodeAnalysis;
using Microsoft.Languages.Core.Text;
using Microsoft.Languages.Editor.Shell;
using Microsoft.Languages.Editor.Tests.Shell;
using Microsoft.R.Core.AST;
using Microsoft.R.Core.Parser;
using Microsoft.R.Editor.ContentType;
using Microsoft.VisualStudio.Editor.Mocks;
using Microsoft.V... | using System.Diagnostics.CodeAnalysis;
using Microsoft.Languages.Core.Text;
using Microsoft.Languages.Editor.Shell;
using Microsoft.Languages.Editor.Tests.Shell;
using Microsoft.R.Core.AST;
using Microsoft.R.Core.Parser;
using Microsoft.R.Editor.ContentType;
using Microsoft.VisualStudio.Editor.Mocks;
using Microsoft.V... | mit | C# |
da0e8acf70d689ff3449366a614c3f9265982949 | Bump version | rabbit-link/rabbit-link,rabbit-link/rabbit-link | src/RabbitLink/Properties/AssemblyInfo.cs | src/RabbitLink/Properties/AssemblyInfo.cs | #region Usings
using System.Reflection;
using System.Runtime.InteropServices;
#endregion
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("R... | #region Usings
using System.Reflection;
using System.Runtime.InteropServices;
#endregion
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("R... | mit | C# |
88dcc4a3ceccf6c55f1b088a4c6eac1bb11baf5f | bump version (4.1.0) | voucherifyio/voucherify-dotNET-sdk,voucherifyio/voucherify-dotNET-sdk | src/Voucherify/Properties/AssemblyInfo.cs | src/Voucherify/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.
#if VOUCHERIFYCLIENT
[assemb... | 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.
#if VOUCHERIFYCLIENT
[assemb... | mit | C# |
14edab4d1500f3b68da5a6a1c2a711082fc94b86 | Update Validator | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/Services/Validator.cs | src/WeihanLi.Common/Services/Validator.cs | using System.ComponentModel.DataAnnotations;
using WeihanLi.Extensions;
using AnnotationValidationResult = System.ComponentModel.DataAnnotations.ValidationResult;
using ValidationResult = WeihanLi.Common.Models.ValidationResult;
namespace WeihanLi.Common.Services;
public interface IValidator
{
ValidationResult V... | using System.ComponentModel.DataAnnotations;
using WeihanLi.Extensions;
using AnnotationValidationResult = System.ComponentModel.DataAnnotations.ValidationResult;
using ValidationResult = WeihanLi.Common.Models.ValidationResult;
namespace WeihanLi.Common.Services;
public interface IValidator
{
ValidationResult V... | mit | C# |
85047de35ec2faf6fd8755ea2cc6f97a78ebf156 | Make AspectActivatorContext struct | AspectCore/Abstractions,AspectCore/Lite,AspectCore/AspectCore-Framework,AspectCore/AspectCore-Framework | src/Abstractions/src/AspectCore.Abstractions/Aspects/AspectActivatorContext.cs | src/Abstractions/src/AspectCore.Abstractions/Aspects/AspectActivatorContext.cs | using System;
using System.Reflection;
namespace AspectCore.Abstractions
{
[NonAspect]
public struct AspectActivatorContext
{
public Type ServiceType { get; }
public MethodInfo ServiceMethod { get; }
public MethodInfo ProxyMethod { get; }
public object ProxyInstance { ge... | using System;
using System.Reflection;
namespace AspectCore.Abstractions
{
[NonAspect]
public abstract class AspectActivatorContext
{
public abstract Type ServiceType { get; }
public abstract MethodInfo ServiceMethod { get; }
public abstract MethodInfo TargetMethod { get; }
... | mit | C# |
5914251317a68a61640f221c8c01a0dc9d9a63e8 | Fix syntax | googleads/googleads-mobile-unity,googleads/googleads-mobile-unity | source/plugin/Assets/GoogleMobileAds/Platforms/Android/ResponseInfoClient.cs | source/plugin/Assets/GoogleMobileAds/Platforms/Android/ResponseInfoClient.cs | // Copyright (C) 2020 Google, LLC.
//
// 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 ... | // Copyright (C) 2020 Google, LLC.
//
// 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 ... | apache-2.0 | C# |
ae30a903a54338c8055791df1e9f331108239967 | Use Crockford Base32 by default. | MatthewKing/DeviceId | src/DeviceId/DeviceIdFormatters.cs | src/DeviceId/DeviceIdFormatters.cs | using System.Security.Cryptography;
using DeviceId.Encoders;
using DeviceId.Formatters;
namespace DeviceId
{
/// <summary>
/// Provides access to some of the default formatters.
/// </summary>
public static class DeviceIdFormatters
{
/// <summary>
/// Returns the default formatter ... | using System.Security.Cryptography;
using DeviceId.Encoders;
using DeviceId.Formatters;
namespace DeviceId
{
/// <summary>
/// Provides access to some of the default formatters.
/// </summary>
public static class DeviceIdFormatters
{
/// <summary>
/// Returns the default formatter ... | mit | C# |
7952beccde30ac9f2e9990392d7a056affc2371b | Add Needed Vm properties and cmds | SamTheDev/ToxRt,SamTheDev/ToxRt,SamTheDev/ToxRt | ToxRt/ToxRt.Shared/ViewModel/LoadProfileViewModel.cs | ToxRt/ToxRt.Shared/ViewModel/LoadProfileViewModel.cs | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Views;
using ToxRt.Helpers;
using ToxRt.Model;
using ToxRt.NavigationService;
namespace ToxRt.ViewModel
{
public class LoadProfileViewModel : Navigabl... | using System;
using System.Collections.Generic;
using System.Text;
using GalaSoft.MvvmLight.Views;
using ToxRt.Helpers;
using ToxRt.Model;
using ToxRt.NavigationService;
namespace ToxRt.ViewModel
{
public class LoadProfileViewModel : NavigableViewModelBase
{
#region Fields
#endregion
... | mit | C# |
18f8b50eb4bfa99450c192a838db0afd7e266cfd | Update AdminDashboard.cshtml (#1980) | OrchardCMS/Brochard,xkproject/Orchard2,petedavis/Orchard2,petedavis/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,petedavis/Orchard2,xkproject/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,OrchardCMS/Brochard,xkproject/Orchard2,xkproject/Orchard2,petedavis/Orchard2,xkproject/Orc... | src/OrchardCore.Modules/OrchardCore.Admin/Views/AdminDashboard.cshtml | src/OrchardCore.Modules/OrchardCore.Admin/Views/AdminDashboard.cshtml | <div class="alert alert-success">
<h4>@T["Welcome to Orchard"]</h4>
<p>@T["Check out the menu on the left and discover all of its possibilities."]</p>
</div>
| <div class="alert alert-success">
<h4>@T["Welcome to Orchard"]</h4>
<p>@T["Feel free to browse the menu on the left and discover all its possibilities."]</p>
</div>
| bsd-3-clause | C# |
9febca1ba661254b29272a748a115bf832bbc9f8 | Update the SnapIn Definition files | alpon/azure-sdk-tools,johnkors/azure-sdk-tools,akromm/azure-sdk-tools,hyonholee/azure-sdk-tools-1,akromm/azure-sdk-tools,yozik04/azure-sdk-tools,hyonholee/azure-sdk-tools-1,DinoV/azure-sdk-tools,markcowl/azure-sdk-tools,markcowl/azure-sdk-tools,antonba/azure-sdk-tools,alpon/azure-sdk-tools,antonba/azure-sdk-tools,DinoV... | WindowsAzurePowershell/src/Management.SqlDatabase/Microsoft.WindowsAzure.Management.SqlDatabase.SnapIn.cs | WindowsAzurePowershell/src/Management.SqlDatabase/Microsoft.WindowsAzure.Management.SqlDatabase.SnapIn.cs | // ----------------------------------------------------------------------------------
//
// Copyright 2011 Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// htt... | // ----------------------------------------------------------------------------------
//
// Copyright 2011 Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// htt... | apache-2.0 | C# |
516c7ff54b8e3dbdca0d6abd05f4346609945680 | Modify snippet for new resource name configuration | googleapis/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/gcloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet | apis/Google.Cloud.Irm.V1Alpha2/Google.Cloud.Irm.V1Alpha2.Snippets/IncidentServiceClientSnippets.cs | apis/Google.Cloud.Irm.V1Alpha2/Google.Cloud.Irm.V1Alpha2.Snippets/IncidentServiceClientSnippets.cs | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | apache-2.0 | C# |
65447d96f5698ae86c8098112f82bc15f67a82df | Add comments to EvaluateHandler | PowerShell/PowerShellEditorServices | src/PowerShellEditorServices/Services/PowerShell/Handlers/EvaluateHandler.cs | src/PowerShellEditorServices/Services/PowerShell/Handlers/EvaluateHandler.cs | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Management.Automation;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.PowerShell.EditorServices.Services.PowerShell;
using Microsoft.PowerShell.EditorServices.Services.Pow... | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Management.Automation;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.PowerShell.EditorServices.Services.PowerShell;
using Microsoft.PowerShell.EditorServices.Services.Pow... | mit | C# |
98526d9518b7a444fce91862fb97e1aee5bb0813 | correct assembly name | AerisG222/mikeandwan.us,AerisG222/mikeandwan.us,AerisG222/mikeandwan.us,AerisG222/mikeandwan.us,AerisG222/mikeandwan.us | src/www/Views/_ViewImports.cshtml | src/www/Views/_ViewImports.cshtml | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, MiniProfiler.AspNetCore.Mvc
@addTagHelper *, maw_www
@using MawMvcApp.TagHelpers
@using MawMvcApp.ViewModels.Navigation
@using Microsoft.Extensions.Options
@using Maw.Domain
| @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, MiniProfiler.AspNetCore.Mvc
@addTagHelper *, mikeandwan.us
@using MawMvcApp.TagHelpers
@using MawMvcApp.ViewModels.Navigation
@using Microsoft.Extensions.Options
@using Maw.Domain
| mit | C# |
3f917f7ecc4a9c25a470635861391a4f461cc423 | 更新.net 4.5版本号 | JeffreySu/WxOpen,JeffreySu/WxOpen | src/Senparc.Weixin.WxOpen/Senparc.Weixin.WxOpen/Properties/AssemblyInfo.cs | src/Senparc.Weixin.WxOpen/Senparc.Weixin.WxOpen/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Senparc.Weixin.WxOpen")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: ... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Senparc.Weixin.WxOpen")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: ... | apache-2.0 | C# |
35d66c3c1df447370eca1baaf5f1281b60c015df | Fix missing comma | NeoAdonis/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,EVAST9919/osu,UselessToucan/osu,ppy/osu,peppy/osu,smoogipooo/osu,peppy/osu,smoogipoo/osu,EVAST9919/osu,UselessToucan/osu,peppy/osu-new,peppy/osu,UselessToucan/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu | osu.Game/Skinning/LegacyManiaSkinConfigurationLookup.cs | osu.Game/Skinning/LegacyManiaSkinConfigurationLookup.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Skinning
{
public class LegacyManiaSkinConfigurationLookup
{
public readonly int Keys;
public readonly LegacyManiaSkinConfigura... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Skinning
{
public class LegacyManiaSkinConfigurationLookup
{
public readonly int Keys;
public readonly LegacyManiaSkinConfigura... | mit | C# |
a51132cb2659b2cc2e4715b3804a2070cedf9d78 | Format the event type as Seq does, not as an integer. | continuousit/seq-apps,continuousit/seq-apps | src/Seq.App.FirstOfType/FirstOfTypeDetector.cs | src/Seq.App.FirstOfType/FirstOfTypeDetector.cs | using System.IO;
using Seq.Apps;
using Seq.Apps.LogEvents;
namespace Seq.App.FirstOfType
{
[SeqApp(
"First of Type",
Description = "Emits an event whenever the first event of a new type is seen. Currently only suitable when the event stream is Serilog-based.")]
public class FirstOfTypeDetector... | using System.IO;
using Seq.Apps;
using Seq.Apps.LogEvents;
namespace Seq.App.FirstOfType
{
[SeqApp(
"First of Type",
Description = "Emits an event whenever the first event of a new type is seen. Currently only suitable when the event stream is Serilog-based.")]
public class FirstOfTypeDetector... | apache-2.0 | C# |
d2eb589fdeafc0a88dd6387ef49c08d71f970234 | fix comments | SixLabors/Fonts | src/SixLabors.Fonts/IReadonlyFontCollection.cs | src/SixLabors.Fonts/IReadonlyFontCollection.cs | // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using SixLabors.Fonts.Exceptions;
namespace SixLabors.Fonts
{
/// <summary>
/// A readonly collection of fonts.
... | // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using SixLabors.Fonts.Exceptions;
namespace SixLabors.Fonts
{
/// <summary>
/// A readonly collection of fonts.
... | apache-2.0 | C# |
a88c1473da0f05a409bb9c7160ff1a1800791702 | fix NRE in double dispose of ScreenImpl | SuperJMN/Avalonia,jkoritzinsky/Avalonia,SuperJMN/Avalonia,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,jkoritzinsky/Perspex,Perspex/Perspex,AvaloniaUI/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Avalonia,akrisiun/Perspex,grokys/Perspex,jkoritzinsky/Avalonia,SuperJMN/Avalonia,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,SuperJMN/... | src/Avalonia.Native/ScreenImpl.cs | src/Avalonia.Native/ScreenImpl.cs | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using Avalonia.Native.Interop;
using Avalonia.Platform;
namespace Avalonia.Native
{
class ScreenImpl : IScreenImpl, IDisposable
{
... | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using Avalonia.Native.Interop;
using Avalonia.Platform;
namespace Avalonia.Native
{
class ScreenImpl : IScreenImpl, IDisposable
{
... | mit | C# |
3597eda72d2e7148a8d891ab39ae5399bf5fbddf | Remove unused usings | TheEadie/LazyStorage,TheEadie/LazyStorage,TheEadie/LazyLibrary | src/LazyStorage/Xml/XmlStorage.cs | src/LazyStorage/Xml/XmlStorage.cs | using System.Collections.Generic;
using LazyStorage.Interfaces;
namespace LazyStorage.Xml
{
internal class XmlStorage : IStorage
{
private readonly string _storageFolder;
private Dictionary<string, IRepository> _repos;
public XmlStorage(string storageFolder)
{
_sto... | using System;
using System.Collections.Generic;
using System.IO;
using System.Xml.Linq;
using LazyStorage.Interfaces;
namespace LazyStorage.Xml
{
internal class XmlStorage : IStorage
{
private readonly string _storageFolder;
private Dictionary<string, IRepository> _repos;
public XmlSt... | mit | C# |
828d31432d7377c6558aabdde4b1e24717944c00 | Add `IEnumerable<double> Samples` to `ISampleMonitor` (#31) | abeham/SimSharp,stuarthillary/SimSharp | src/SimSharp/Analysis/IMonitor.cs | src/SimSharp/Analysis/IMonitor.cs | #region License Information
/*
* This file is part of SimSharp which is licensed under the MIT license.
* See the LICENSE file in the project root for more information.
*/
#endregion
using System;
using System.Collections.Generic;
namespace SimSharp {
public interface IMonitor {
bool Active { get; set; }
... | #region License Information
/*
* This file is part of SimSharp which is licensed under the MIT license.
* See the LICENSE file in the project root for more information.
*/
#endregion
using System;
namespace SimSharp {
public interface IMonitor {
bool Active { get; set; }
string Name { get; }
string... | mit | C# |
3a2efda777cfb63ace432effdf7988522721caa8 | Fix parameter name 'IDynamicTableEntitySerializer<TEntity>.Serialize(TEntity entity)' | OpenMagic/OpenMagic.Azure.Storage.Table | source/OpenMagic.Azure.Storage.Table/IDynamicTableEntitySerializer.cs | source/OpenMagic.Azure.Storage.Table/IDynamicTableEntitySerializer.cs | using Microsoft.WindowsAzure.Storage.Table;
namespace OpenMagic.Azure.Storage.Table
{
public interface IDynamicTableEntitySerializer<TEntity>
{
TEntity Deserialize(DynamicTableEntity row);
DynamicTableEntity Serialize(TEntity entity);
}
} | using Microsoft.WindowsAzure.Storage.Table;
namespace OpenMagic.Azure.Storage.Table
{
public interface IDynamicTableEntitySerializer<TEntity>
{
TEntity Deserialize(DynamicTableEntity row);
DynamicTableEntity Serialize(TEntity row);
}
} | mit | C# |
772589c0bfc1aa2ce9689d8efba4db2ffa15a699 | Update AttachedToVisualTreeBehavior.cs | wieslawsoltes/AvaloniaBehaviors,wieslawsoltes/AvaloniaBehaviors | src/Avalonia.Xaml.Interactions/Custom/AttachedToVisualTreeBehavior.cs | src/Avalonia.Xaml.Interactions/Custom/AttachedToVisualTreeBehavior.cs | using System.Reactive.Disposables;
using Avalonia.Xaml.Interactivity;
namespace Avalonia.Xaml.Interactions.Custom;
/// <summary>
/// A base class for behaviors using attached to visual tree event.
/// </summary>
/// <typeparam name="T"></typeparam>
public abstract class AttachedToVisualTreeBehavior<T> : DisposingBeha... | using System.Reactive.Disposables;
namespace Avalonia.Xaml.Interactions.Custom;
/// <summary>
/// A base class for behaviors using attached to visual tree event.
/// </summary>
/// <typeparam name="T"></typeparam>
public abstract class AttachedToVisualTreeBehavior<T> : DisposingBehavior<T> where T : Visual
{
private... | mit | C# |
a0fbb6eef3993b5d6a801ac967f7ba491d08d10d | Address PR comments | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments | src/CommitmentsV2/SFA.DAS.CommitmentsV2/Models/DraftApprenticeship.cs | src/CommitmentsV2/SFA.DAS.CommitmentsV2/Models/DraftApprenticeship.cs | using System;
using System.Xml.Serialization;
using SFA.DAS.CommitmentsV2.Domain.Entities;
using SFA.DAS.CommitmentsV2.Types;
namespace SFA.DAS.CommitmentsV2.Models
{
public class DraftApprenticeship : Apprenticeship
{
internal DraftApprenticeship()
{
CreatedOn = DateTime.UtcNow;
... | using System;
using System.Xml.Serialization;
using SFA.DAS.CommitmentsV2.Domain.Entities;
using SFA.DAS.CommitmentsV2.Types;
namespace SFA.DAS.CommitmentsV2.Models
{
public class DraftApprenticeship : Apprenticeship
{
internal DraftApprenticeship()
{
CreatedOn = DateTime.UtcNow;
... | mit | C# |
5ade162af503d92b48d1bb1c67a8574851370b93 | Fix NULL indexed value for LocalizationSetContentPickerFieldIndexHandler (#11249) | stevetayloruk/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2 | src/OrchardCore.Modules/OrchardCore.ContentFields/Indexing/LocalizationSetContentPickerFieldIndexHandler.cs | src/OrchardCore.Modules/OrchardCore.ContentFields/Indexing/LocalizationSetContentPickerFieldIndexHandler.cs | using System.Threading.Tasks;
using OrchardCore.ContentFields.Fields;
using OrchardCore.Indexing;
using OrchardCore.Modules;
namespace OrchardCore.ContentFields.Indexing
{
[RequireFeatures("OrchardCore.ContentLocalization")]
public class LocalizationSetContentPickerFieldIndexHandler : ContentFieldIndexHandler<... | using System.Threading.Tasks;
using OrchardCore.ContentFields.Fields;
using OrchardCore.Indexing;
using OrchardCore.Modules;
namespace OrchardCore.ContentFields.Indexing
{
[RequireFeatures("OrchardCore.ContentLocalization")]
public class LocalizationSetContentPickerFieldIndexHandler : ContentFieldIndexHandler<... | bsd-3-clause | C# |
8d4aca1fb2b5b9bb31ae3bddf52ed9d030e1057e | Fix na mazaloto | Porto-Flip-OOP-Team/PortoFlipPizzaSystem | PortoFlipPizzaSystem/ProtoFlipPizzaSystem.Models/Client/Order/Order.cs | PortoFlipPizzaSystem/ProtoFlipPizzaSystem.Models/Client/Order/Order.cs | using ProtoFlipPizzaSystem.Models.Client.Contracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ProtoFlipPizzaSystem.Models.Administrator.Contracts;
namespace ProtoFlipPizzaSystem.Models.Client.Order
{
class Order : IOrder
{
... | using ProtoFlipPizzaSystem.Models.Client.Contracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ProtoFlipPizzaSystem.Models.Administrator.Contracts;
using ProtoFlipPizzaSystem.Models.Validation;
namespace ProtoFlipPizzaSystem.Models.Client.... | mit | C# |
795422b19ee3565d26e51f83e855acb2db6e88f8 | fix comment | os2kitos/kitos,os2kitos/kitos,os2kitos/kitos,os2kitos/kitos | Presentation.Web/Models/External/V2/Request/StandardPaginationQuery.cs | Presentation.Web/Models/External/V2/Request/StandardPaginationQuery.cs | using System.ComponentModel.DataAnnotations;
using Core.ApplicationServices.Shared;
namespace Presentation.Web.Models.External.V2.Request
{
/// <summary>
/// Defines the terms used for pagination across the V2 API
/// </summary>
public class StandardPaginationQuery
{
/// <summary>
... | using System.ComponentModel.DataAnnotations;
using Core.ApplicationServices.Shared;
namespace Presentation.Web.Models.External.V2.Request
{
/// <summary>
/// Defines the terms used for pagination across the V2 API
/// </summary>
public class StandardPaginationQuery
{
/// <summary>
... | mpl-2.0 | C# |
779b5c42f7896f26217d1648a7d6d70baba53b7c | fix category | darrenkopp/SassyStudio | SassyStudio.2012/Scss/Classifications/FormatDefinitions/ScssComment.cs | SassyStudio.2012/Scss/Classifications/FormatDefinitions/ScssComment.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using Microsoft.VisualStudio.Text.Classification;
using Microsoft.VisualStudio.Utilities;
using Microsoft.VisualStudio.Language.StandardClassification;
namespace SassyStudio.Scss.Classifications
{
[Export(t... | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using Microsoft.VisualStudio.Text.Classification;
using Microsoft.VisualStudio.Utilities;
using Microsoft.VisualStudio.Language.StandardClassification;
namespace SassyStudio.Scss.Classifications
{
[Export(t... | mit | C# |
ce6934126513f1da9e46b8d695fedb2ddf261ae1 | Add ITrackingConsentFeature.CreateConsentCookie | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNetCore.Http.Features/ITrackingConsentFeature.cs | src/Microsoft.AspNetCore.Http.Features/ITrackingConsentFeature.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Http.Features
{
/// <summary>
/// Used to query, grant, and withdraw user consent regarding the storage of user
... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Http.Features
{
/// <summary>
/// Used to query, grant, and withdraw user consent regarding the storage of user
... | apache-2.0 | C# |
fc97889f410922f85f049558eae4aebf3e59e7a9 | remove swagger extension code. | ArchitectNow/ArchitectNow.Framework | src/ArchitectNow.Web/Configuration/SwaggerExtensions.cs | src/ArchitectNow.Web/Configuration/SwaggerExtensions.cs | using System.Collections.Generic;
using System.Linq;
using ArchitectNow.Web.Models;
using Microsoft.AspNetCore.Builder;
using NJsonSchema;
using NSwag.AspNetCore;
using NSwag.SwaggerGeneration.WebApi;
namespace ArchitectNow.Web.Configuration
{
public static class SwaggerExtensions
{
}
} | using System.Collections.Generic;
using System.Linq;
using ArchitectNow.Web.Models;
using Microsoft.AspNetCore.Builder;
using NJsonSchema;
using NSwag.AspNetCore;
using NSwag.SwaggerGeneration.WebApi;
namespace ArchitectNow.Web.Configuration
{
public static class SwaggerExtensions
{
public static void... | mit | C# |
023235495a59d0a6faf659fc79329f7a77cd3747 | Fix a nasty bug in RelabelingFunction | lou1306/CIV,lou1306/CIV | CIV/Helpers/RelabelingFunction.cs | CIV/Helpers/RelabelingFunction.cs | using System;
using System.Collections;
using System.Collections.Generic;
namespace CIV.Helpers
{
public class RelabelingFunction : ICollection<KeyValuePair<string, string>>
{
IDictionary<string, string> dict = new Dictionary<string, string>();
public int Count => dict.Count;
public ... | using System;
using System.Collections;
using System.Collections.Generic;
namespace CIV.Helpers
{
public class RelabelingFunction : ICollection<KeyValuePair<string, string>>
{
IDictionary<string, string> dict = new Dictionary<string, string>();
public int Count => dict.Count;
public ... | mit | C# |
1a9d0548179cb643905c26181b31f6f9411ff934 | Fix potential null reference exceptions | CaitSith2/ktanemod-twitchplays | Assets/Scripts/Audio/MusicPlayer.cs | Assets/Scripts/Audio/MusicPlayer.cs | using UnityEngine;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class MusicPlayer : MonoBehaviour
{
private static Dictionary<string, MusicPlayer> _musicPlayers = new Dictionary<string, MusicPlayer>();
public AudioSource startInterruptSound = null;
public AudioSou... | using UnityEngine;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class MusicPlayer : MonoBehaviour
{
private static Dictionary<string, MusicPlayer> _musicPlayers = new Dictionary<string, MusicPlayer>();
public AudioSource startInterruptSound = null;
public AudioSou... | mit | C# |
487c94b4a7ad74e7f385ed771fd64c39bd6499f0 | fix comment | bzn/naxs | Assets/Scripts/ViveCameraChecker.cs | Assets/Scripts/ViveCameraChecker.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Valve.VR;
public class ViveCameraChecker : MonoBehaviour {
public bool isViveCameraValid;
private IEnumerator coroutine;
void OnEnable()
{
isViveCameraValid = false;
if (PlayerDataControl.ins... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Valve.VR;
public class ViveCameraChecker : MonoBehaviour {
public bool isViveCameraValid;
private IEnumerator coroutine;
void OnEnable()
{
isViveCameraValid = false;
if (PlayerDataControl.ins... | mit | C# |
623d639d38487496d7f47f1013aec0cac8655acf | Update Index.cshtml | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Mvc/Views/Home/Index.cshtml | Anlab.Mvc/Views/Home/Index.cshtml | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">×</button>
Update posted: August 3, 2021<br /><br />
<strong>New Methods Under Development</strong><br /><br />
Crude Fiber<br />
... | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">×</button>
Update posted: August 3, 2021<br /><br />
<strong>New Methods Under Development</strong><br /><br />
Crude Fiber<br />
... | mit | C# |
fa742a2ef1567072065c8bb3d7b8de7ccf5def1d | Update to consume framework fixes | NeoAdonis/osu,UselessToucan/osu,ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu-new,smoogipoo/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu | osu.Game/Screens/Edit/Components/Timelines/Summary/Parts/ControlPointPart.cs | osu.Game/Screens/Edit/Components/Timelines/Summary/Parts/ControlPointPart.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Specialized;
using System.Linq;
using osu.Framework.Bindables;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
namespace osu.Gam... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Specialized;
using System.Linq;
using osu.Framework.Bindables;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
namespace osu.Gam... | mit | C# |
220b8fd1fc59071c0c05eec47089a739295bd966 | Add Twitter link. Close #29. | ForNeVeR/fornever.me,ForNeVeR/fornever.me,ForNeVeR/fornever.me | ForneverMind/views/Contact.cshtml | ForneverMind/views/Contact.cshtml | @using RazorEngine.Templating
@inherits TemplateBase
@{
Layout = "_Layout.cshtml";
ViewBag.Title = "Контакты";
}
<p>
<a class="so-badge" href="http://stackoverflow.com/users/2684760/fornever">
<img src="http://stackoverflow.com/users/flair/2684760.png"
width="208"
height=... | @using RazorEngine.Templating
@inherits TemplateBase
@{
Layout = "_Layout.cshtml";
ViewBag.Title = "Контакты";
}
<p>
<a class="so-badge" href="http://stackoverflow.com/users/2684760/fornever">
<img src="http://stackoverflow.com/users/flair/2684760.png"
width="208"
height=... | mit | C# |
ec7b6dbaf628653373967a1698cb7dd0fd42d04b | remove debug line | StoikoNeykov/OnlineShop,StoikoNeykov/OnlineShop | OnlineShop/Configuration/OnlineShop.ConfigurationProviders/EnvoirmentProvider.cs | OnlineShop/Configuration/OnlineShop.ConfigurationProviders/EnvoirmentProvider.cs | using System;
using OnlineShop.ConfigurationProviders.Contracts;
using System.Configuration;
namespace OnlineShop.ConfigurationProviders
{
public class EnvoirmentProvider : IEnvoirmentProvider
{
public string Envoirment
{
get
{
return ConfigurationManage... | using System;
using OnlineShop.ConfigurationProviders.Contracts;
using System.Configuration;
namespace OnlineShop.ConfigurationProviders
{
public class EnvoirmentProvider : IEnvoirmentProvider
{
public string Envoirment
{
get
{
var result = Configuration... | mit | C# |
dcd8185fef93b39944d78a3c724ab11a4648b107 | Rename Create => Done | JDawes-ScottLogic/voting-application,tpkelly/voting-application,stevenhillcox/voting-application,Generic-Voting-Application/voting-application,Generic-Voting-Application/voting-application,JDawes-ScottLogic/voting-application,stevenhillcox/voting-application,Generic-Voting-Application/voting-application,tpkelly/voting-... | VotingApplication/VotingApplication.Web/Views/Routes/AddOptionDialog.cshtml | VotingApplication/VotingApplication.Web/Views/Routes/AddOptionDialog.cshtml | <div class="account-login dialog-content centered">
<form name="addOptionForm" ng-submit="createAnother(addOptionForm)">
<h2>New Option</h2>
<div class="form-section-block centered">
<label for="name">Name</label>
<input autofocus class="form-input" id="name" ng-model="addOp... | <div class="account-login dialog-content centered">
<form name="addOptionForm" ng-submit="createAnother(addOptionForm)">
<h2>New Option</h2>
<div class="form-section-block centered">
<label for="name">Name</label>
<input autofocus class="form-input" id="name" ng-model="addOp... | apache-2.0 | C# |
f2cf820974526c7a2f115510b726bc0329147b8b | Update AssemblyInfoResult.cs | mansoor-omrani/AssemblyInfo | AssemblyInfo/AssemblyInfoResult.cs | AssemblyInfo/AssemblyInfoResult.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AssemblyInfo
{
public class AssemblyInfoResult
{
public string CodeBase { get; set; }
public string ContentType { get; set; }
public string CultureInfo { get; s... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AssemblyInfo
{
public class AssemblyInfoResult
{
public string CodeBase { get; set; }
public string ContentType { get; set; }
public string CultureInfo { get; s... | mit | C# |
faa97214c37bdf7ecdd8f758304a9eab53ab015b | Make GetAllStubs return a List<string> instead of immediately writing the output to console | izik1/JAGBE | JAGBE/Stats/AttributeReflector.cs | JAGBE/Stats/AttributeReflector.cs | using System;
using System.Collections.Generic;
using System.Reflection;
using JAGBE.Attributes;
namespace JAGBE.Stats
{
internal static class AttributeReflector
{
/// <summary>
/// Gets the methods of <paramref name="type"/> with the <see cref="Attribute"/> of type
/// <paramref name=... | using System;
using System.Collections.Generic;
using System.Reflection;
using JAGBE.Attributes;
namespace JAGBE.Stats
{
internal static class AttributeReflector
{
/// <summary>
/// Gets the methods of <paramref name="type"/> with the <see cref="Attribute"/> of type
/// <paramref name=... | mit | C# |
6a4aa7309daaf36c5f4f5e3375ba87d9cb445f81 | prepare merge 2 | os2kitos/kitos,os2kitos/kitos,os2kitos/kitos,os2kitos/kitos | Core.ApplicationServices/GDPR/IDataProcessingRegistrationApplicationService.cs | Core.ApplicationServices/GDPR/IDataProcessingRegistrationApplicationService.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Core.ApplicationServices.Model.GDPR;
using Core.DomainModel;
using Core.DomainModel.GDPR;
using Core.DomainModel.ItSystem;
using Core.DomainModel.Organization;
using Core.DomainModel.Result;
using Core.DomainModel.Shared;
using Infrastructure.Ser... | using System;
using System.Collections.Generic;
using System.Linq;
using Core.ApplicationServices.Model.GDPR;
using Core.DomainModel;
using Core.DomainModel.GDPR;
using Core.DomainModel.ItSystem;
using Core.DomainModel.Organization;
using Core.DomainModel.Result;
using Core.DomainModel.Shared;
using Infrastructure.Ser... | mpl-2.0 | C# |
39067e6926e0950303e137140dded1f2eb2f5dd7 | Fix slider input handling potentially being offset after composer area resize | peppy/osu-new,smoogipoo/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,smoogipooo/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,peppy/osu,peppy/osu | osu.Game.Rulesets.Osu/Edit/Blueprints/Sliders/Components/SliderBodyPiece.cs | osu.Game.Rulesets.Osu/Edit/Blueprints/Sliders/Components/SliderBodyPiece.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Game.Graphics;
using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Rulesets.Osu.Skinning.Defau... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Game.Graphics;
using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Rulesets.Osu.Skinning.Defau... | mit | C# |
b7c803ae697cbc07987e6c409e480f8b7b2f5efd | update swagger test | os2kitos/kitos,os2kitos/kitos,os2kitos/kitos,os2kitos/kitos | Tests.Integration.Presentation.Web/Swagger/SwaggerDocumentationTest.cs | Tests.Integration.Presentation.Web/Swagger/SwaggerDocumentationTest.cs | using System.Net;
using System.Threading.Tasks;
using Tests.Integration.Presentation.Web.Tools;
using Xunit;
namespace Tests.Integration.Presentation.Web.Swagger
{
public class SwaggerDocumentationTest
{
public class SwaggerDoc
{
public string Swagger { get; set; }
publ... | using System.Net;
using System.Threading.Tasks;
using Tests.Integration.Presentation.Web.Tools;
using Xunit;
namespace Tests.Integration.Presentation.Web.Swagger
{
public class SwaggerDocumentationTest
{
public class SwaggerDoc
{
public string Swagger { get; set; }
publ... | mpl-2.0 | C# |
834ab54712bc57e79393bb8e4d045e6e44c73cfa | disable warning in FullSerializer | watson-developer-cloud/unity-sdk,watson-developer-cloud/unity-sdk,watson-developer-cloud/unity-sdk | ThirdParty/FullSerializer/Converters/Unity/Keyframe_DirectConverter.cs | ThirdParty/FullSerializer/Converters/Unity/Keyframe_DirectConverter.cs | #if !NO_UNITY
#pragma warning disable 0618
using System;
using System.Collections.Generic;
using UnityEngine;
namespace FullSerializer {
partial class fsConverterRegistrar {
public static Internal.DirectConverters.Keyframe_DirectConverter Register_Keyframe_DirectConverter;
}
}
namespace FullSerializer... | #if !NO_UNITY
using System;
using System.Collections.Generic;
using UnityEngine;
namespace FullSerializer {
partial class fsConverterRegistrar {
public static Internal.DirectConverters.Keyframe_DirectConverter Register_Keyframe_DirectConverter;
}
}
namespace FullSerializer.Internal.DirectConverters {
... | apache-2.0 | C# |
d510c30173526ab4a3c74590cac06fe3df2fe1fc | Update ReceiveWalletActionViewModel.cs | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/ViewModels/Wallets/Actions/ReceiveWalletActionViewModel.cs | WalletWasabi.Fluent/ViewModels/Wallets/Actions/ReceiveWalletActionViewModel.cs | using WalletWasabi.Fluent.ViewModels.NavBar;
namespace WalletWasabi.Fluent.ViewModels.Wallets.Actions
{
[NavigationMetaData(
Title = "Receive",
Caption = "",
IconName = "wallet_action_receive",
NavBarPosition = NavBarPosition.None,
Searchable = false,
NavigationTarget = NavigationTarget.HomeScreen)]
pub... | using WalletWasabi.Fluent.ViewModels.NavBar;
namespace WalletWasabi.Fluent.ViewModels.Wallets.Actions
{
[NavigationMetaData(
Title = "Receive",
Caption = "",
IconName = "wallet_action_receive",
NavBarPosition = NavBarPosition.None,
Searchable = false,
NavigationTarget = NavigationTarget.DialogScreen)]
p... | mit | C# |
b75e24d30c805c33652e0d0fc607050263529f3e | Add source of script and remove unnecessary usings | itay347/TheBoat | Assets/Scripts/StretchScript.cs | Assets/Scripts/StretchScript.cs | using UnityEngine;
// Source: http://answers.unity3d.com/questions/464487/windowed-game-to-fullscreen.html
public class StretchScript : MonoBehaviour {
public float orthographicSize = 4;
public float aspect = 0.6f;
void Start()
{
Camera.main.projectionMatrix = Matrix4x4.Ortho(
... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StretchScript : MonoBehaviour {
public float orthographicSize = 4;
public float aspect = 0.6f;
void Start()
{
Camera.main.projectionMatrix = Matrix4x4.Ortho(
-orthographicSize * aspect... | mit | C# |
67990c10d558414dbf28f7fb4b91569ea06eef45 | fix yield call on main thread | luzexi/slua-3rd,Salada/slua,zhaog/slua,Roland0511/slua,houxuanfelix/slua,slb1988/slua,DebugClub/slua,mr-kelly/slua,thing-nacho/slua,pangweiwei/slua,DebugClub/slua,littleboss/slua,luzexi/slua-3rd-lib,moto2002/slua,zhukunqian/slua-1,slb1988/slua,haolly/slua_source_note,angeldnd/slua,thing-nacho/slua,shenxiyou/slua,zhaog/... | Assets/Slua/Script/Coroutine.cs | Assets/Slua/Script/Coroutine.cs | // The MIT License (MIT)
// Copyright 2015 Siney/Pangweiwei siney@yeah.net
//
// 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 right... | // The MIT License (MIT)
// Copyright 2015 Siney/Pangweiwei siney@yeah.net
//
// 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 right... | mit | C# |
14cfcb6d6f13b3e1a6bc319cf3967ae9eba3a082 | Add static methods | sakapon/Blaze | Blaze/Blaze/Propositions/Formula.cs | Blaze/Blaze/Propositions/Formula.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Blaze.Propositions
{
public abstract class Formula
{
public abstract Formula[] Children { get; }
public abstract bool? IsTrue { get; }
internal static Formula[] EmptyFormulas { get; } = new Formula... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Blaze.Propositions
{
public abstract class Formula
{
internal static Formula[] EmptyFormulas { get; } = new Formula[0];
public abstract Formula[] Children { get; }
public abstract bool? IsTrue { ge... | mit | C# |
d20fb2c53cae4383fca7f960ba5f25d1b227299c | test fix | bitrise-io/sample-apps-xamarin-android,bitrise-io/sample-apps-xamarin-android | CreditCardValidator.Droid.UITests/Tests.cs | CreditCardValidator.Droid.UITests/Tests.cs | using System;
using System.IO;
using System.Linq;
using NUnit.Framework;
using Xamarin.UITest;
using Xamarin.UITest.Android;
using Xamarin.UITest.Queries;
using Xamarin.UITest.Utils;
namespace CreditCardValidator.Droid.UITests
{
[TestFixture]
public class Tests
{
[SetUp]
public void BeforeEachTest()
{
str... | using System;
using System.IO;
using System.Linq;
using NUnit.Framework;
using Xamarin.UITest;
using Xamarin.UITest.Android;
using Xamarin.UITest.Queries;
namespace CreditCardValidator.Droid.UITests
{
[TestFixture]
public class Tests
{
AndroidApp app;
[SetUp]
public void BeforeEachTest()
{
app = Config... | mit | C# |
1448bc5b9ce3c53fb8eb4f33326c75fa55065484 | Remove obsolete exception | messagebird/csharp-rest-api | MessageBird/Resources/Messages.cs | MessageBird/Resources/Messages.cs | using MessageBird.Objects;
using Newtonsoft.Json;
using System;
namespace MessageBird.Resources
{
public class Messages : Resource
{
private Message message;
public override object Object
{
get
{
return message;
}
protect... | using MessageBird.Objects;
using Newtonsoft.Json;
using System;
namespace MessageBird.Resources
{
public class InvalidResource : Exception
{
public string Reason {get; set;}
public InvalidResource(string reason)
{
Reason = reason;
}
}
public class Messages... | isc | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.