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 |
|---|---|---|---|---|---|---|---|---|
e306b01895369d35102ab47ad0ea24ccf3def80c | Change so that the minimum hash length is 6 characters and not 10 | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EmployerApprenticeshipsService.Infrastructure/Services/HashingService.cs | src/SFA.DAS.EmployerApprenticeshipsService.Infrastructure/Services/HashingService.cs | using SFA.DAS.EmployerApprenticeshipsService.Domain.Interfaces;
using HashidsNet;
namespace SFA.DAS.EmployerApprenticeshipsService.Infrastructure.Services
{
public class HashingService : IHashingService
{
public string HashValue(long id)
{
var hashIds = new Hashids("SFA: digital ap... | using SFA.DAS.EmployerApprenticeshipsService.Domain.Interfaces;
using HashidsNet;
namespace SFA.DAS.EmployerApprenticeshipsService.Infrastructure.Services
{
public class HashingService : IHashingService
{
public string HashValue(long id)
{
var hashIds = new Hashids("SFA: digital ap... | mit | C# |
fe74354e285d981d7fc747f9ace7cdf0b76d17aa | make the bitmap a field for reference passing | Willster419/RelicModManager,Willster419/RelhaxModpack,Willster419/RelhaxModpack | RelhaxModpack/RelhaxModpack/Atlases/Texture.cs | RelhaxModpack/RelhaxModpack/Atlases/Texture.cs | using RelhaxModpack.Database;
using System.Drawing;
namespace RelhaxModpack
{
/// <summary>
/// A Texture is a piece of an atlas file. Contains image data such as the position, size, and bitmap itself.
/// </summary>
public class Texture : IXmlSerializable
{
#region Xml Serialization
... | using RelhaxModpack.Database;
using System.Drawing;
namespace RelhaxModpack
{
/// <summary>
/// A Texture is a piece of an atlas file. Contains image data such as the position, size, and bitmap itself.
/// </summary>
public class Texture : IXmlSerializable
{
#region Xml Serialization
... | apache-2.0 | C# |
f37d41f06cfacef547dcd6190a228347e896e873 | Add DefaultCommandTimeout on OrmConnectionFactory | SimpleStack/simplestack.orm,SimpleStack/simplestack.orm | src/SimpleStack.Orm/OrmConnectionFactory.cs | src/SimpleStack.Orm/OrmConnectionFactory.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleStack.Orm
{
public class OrmConnectionFactory
{
private readonly IDialectProvider _dialectProvider;
private readonly string _connectionString;
public OrmConnectionFactory(IDiale... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleStack.Orm
{
public class OrmConnectionFactory
{
private readonly IDialectProvider _dialectProvider;
private readonly string _connectionString;
public OrmConnectionFactory(IDiale... | bsd-3-clause | C# |
45b9de742b4ebabab44688d9ef3cd2bd230bd4b6 | update signin namespaces | CatalystCode/TerrainFlow-Web,CatalystCode/TerrainFlow-Web,CatalystCode/TerrainFlow-Web | src/TerrainFlow/Views/Account/Signin.cshtml | src/TerrainFlow/Views/Account/Signin.cshtml | @using System.Collections.Generic
@using Microsoft.AspNetCore.Http
@using Microsoft.AspNetCore.Http.Authentication
@{
ViewData["Title"] = "Log in";
}
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Login using...</h3>
</div>
<div class="panel-body signin"... | @using System.Collections.Generic
@using Microsoft.AspNet.Http
@using Microsoft.AspNet.Http.Authentication
@{
ViewData["Title"] = "Log in";
}
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Login using...</h3>
</div>
<div class="panel-body signin">
... | mit | C# |
c1c8054d93777fd1e805d5f159e92df6014442b3 | add more unit tests for CarAdvertMapperTest | mdavid626/artemis | src/Artemis.Web.Tests/CarAdvertMapperTest.cs | src/Artemis.Web.Tests/CarAdvertMapperTest.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Artemis.Common;
using Artemis.Web.Models;
namespace Artemis.Web.Tests
{
[TestClass]
public class CarAdvertMapperTest
{
[TestMethod]
public void TestValidMapping()
{
var vm = new CarAdvertViewModel()... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Artemis.Common;
using Artemis.Web.Models;
namespace Artemis.Web.Tests
{
[TestClass]
public class CarAdvertMapperTest
{
[TestMethod]
public void TestValidMapping()
{
var vm = new CarAdvertViewModel()... | mit | C# |
be2f5a26914c97d1d96dcc3fb4ffc969e49e5c36 | implement fallbackOrSkip for converter errors | Pondidum/Stronk,Pondidum/Stronk | src/Stronk/ConfigBuilder.cs | src/Stronk/ConfigBuilder.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using Stronk.Policies;
using Stronk.PropertySelection;
using Stronk.SourceValueSelection;
using Stronk.ValueConversion;
namespace Stronk
{
public class ConfigBuilder
{
private readonly IStronkOptions _options;... | using System;
using System.Linq;
using Stronk.Policies;
using Stronk.PropertySelection;
using Stronk.SourceValueSelection;
using Stronk.ValueConversion;
namespace Stronk
{
public class ConfigBuilder
{
private readonly IStronkOptions _options;
public ConfigBuilder(IStronkOptions options)
{
_options = optio... | lgpl-2.1 | C# |
182fda9d34553989e553b143d3b4b1f6e2d968b3 | Add sample of FileSelector with filters | TheBrainTech/xwt,antmicro/xwt,hwthomas/xwt,lytico/xwt,mono/xwt,hamekoz/xwt | TestApps/Samples/Samples/FileSelectorSample.cs | TestApps/Samples/Samples/FileSelectorSample.cs | //
// FileSelector.cs
//
// Author:
// Lluis Sanchez Gual <lluis@xamarin.com>
//
// Copyright (c) 2016 Xamarin, Inc (http://www.xamarin.com)
//
// 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 th... | //
// FileSelector.cs
//
// Author:
// Lluis Sanchez Gual <lluis@xamarin.com>
//
// Copyright (c) 2016 Xamarin, Inc (http://www.xamarin.com)
//
// 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 th... | mit | C# |
ced176e8f89089a7cad5ae6fbadd94aef2c4df76 | Fix stack overflow | terrajobst/nquery-vnext | src/NQuery/SyntaxWalker.cs | src/NQuery/SyntaxWalker.cs | using System;
namespace NQuery
{
public abstract class SyntaxWalker : SyntaxVisitor
{
public override void DefaultVisit(SyntaxNode node)
{
foreach (var syntaxNodeOrToken in node.ChildNodesAndTokens())
{
if (syntaxNodeOrToken.IsToken)
V... | using System;
namespace NQuery
{
public abstract class SyntaxWalker : SyntaxVisitor
{
public override void DefaultVisit(SyntaxNode node)
{
foreach (var syntaxNodeOrToken in node.ChildNodesAndTokens())
{
if (syntaxNodeOrToken.IsToken)
V... | mit | C# |
9f35da223fad4116f8102d64315e7bd6ad6a8ee6 | Update IInputBand.cs | LANDIS-II-Foundation/Landis-Spatial-Modeling-Library | src/RasterIO/IInputBand.cs | src/RasterIO/IInputBand.cs | // Contributors:
// James Domingo, Green Code LLC
namespace Landis.RasterIO
{
/// <summary>
/// Input raster band
/// </summary>
public interface IInputBand
{
/// <summary>
/// Read the value from the raster band into the corresponding band of
/// the buffer pixel.
... | // Copyright 2010 Green Code LLC
// All rights reserved.
//
// The copyright holders license this file under the New (3-clause) BSD
// License (the "License"). You may not use this file except in
// compliance with the License. A copy of the License is available at
//
// http://www.opensource.org/licenses/BSD-3-Cla... | apache-2.0 | C# |
714c828c12d6f3108d34713815ac27a66ed2916e | exit test 2 | morganwm/reflectionCLI | src/ReflectionCli.Test/Standard/ExitTests.cs | src/ReflectionCli.Test/Standard/ExitTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ReflectionCli.Lib.Enums;
using ReflectionCli.Test.HelperServices;
using Xunit;
using static ReflectionCli.extended.ScriptingCommandSet;
namespace ReflectionCli.Test.Services
{
public class ExitTests
{
private r... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ReflectionCli.Lib.Enums;
using ReflectionCli.Test.HelperServices;
using Xunit;
using static ReflectionCli.extended.ScriptingCommandSet;
namespace ReflectionCli.Test.Services
{
public class ExitTests
{
private r... | mit | C# |
76154bc360eb9e979207a209fe4294b8198423f9 | Fix swagger schema | amweiss/WeatherLink | src/WeatherLink/Startup.cs | src/WeatherLink/Startup.cs | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using NSwag.AspNetCore;
using WeatherLink.Models;
using WeatherLink.Services;
using NS... | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using NSwag.AspNetCore;
using WeatherLink.Models;
using WeatherLink.Services;
namespa... | mit | C# |
929a59ade7f8cf67eb17ac4e7821b86a4ed794fb | Fix of incorrectly implemented interface. Addons GetAll() now returns the summary rather than the details. | lukecahill/alpha,lukecahill/alpha,lukecahill/alpha | Alpha.Infratructure/ViewModels/GameDetails.cs | Alpha.Infratructure/ViewModels/GameDetails.cs | using Alpha.DAL.Models;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Alpha.Infrastructure.ViewModels {
public class GameDetails {
public string Title { get; set; }
public string Publisher { get; set; }
public DateTime ReleaseDate { get; set; }
... | using Alpha.DAL.Models;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Alpha.Infrastructure.ViewModels {
public class GameDetails {
public string Title { get; set; }
public string Publisher { get; set; }
public DateTime ReleaseDate { get; set; }
... | mit | C# |
89e1141cc250c00e25205b5c87d6ae9d5e14b075 | Enable proper voice grouping for Reyes | overtools/OWLib | DataTool/ToolLogic/Extract/ExtractNPCVoice.cs | DataTool/ToolLogic/Extract/ExtractNPCVoice.cs | using System;
using System.Collections.Generic;
using System.IO;
using DataTool.FindLogic;
using DataTool.Flag;
using DataTool.Helper;
using DataTool.JSON;
using TankLib.STU.Types;
using static DataTool.Helper.STUHelper;
using static DataTool.Helper.IO;
namespace DataTool.ToolLogic.Extract {
[Tool("extract-npc-vo... | using System;
using System.Collections.Generic;
using System.IO;
using DataTool.FindLogic;
using DataTool.Flag;
using DataTool.Helper;
using DataTool.JSON;
using TankLib.STU.Types;
using static DataTool.Helper.STUHelper;
using static DataTool.Helper.IO;
namespace DataTool.ToolLogic.Extract {
[Tool("extract-npc-vo... | mit | C# |
b8e07e786c893af6e5ac550021ede9d27fd6d183 | Print source and destination addresses on ICMPv6 packets | zhanleewo/tapcfg,zhanleewo/tapcfg,juhovh/tapcfg,juhovh/tapcfg,juhovh/tapcfg,zhanleewo/tapcfg,eyecreate/tapcfg,juhovh/tapcfg,juhovh/tapcfg,juhovh/tapcfg,eyecreate/tapcfg,eyecreate/tapcfg,zhanleewo/tapcfg,eyecreate/tapcfg,eyecreate/tapcfg,zhanleewo/tapcfg | src/bindings/TAPCfgTest.cs | src/bindings/TAPCfgTest.cs |
using TAP;
using System;
using System.Net;
public class TAPCfgTest {
private static void Main(string[] args) {
EthernetDevice dev = new EthernetDevice();
dev.Start("Device name");
Console.WriteLine("Got device name: {0}", dev.DeviceName);
dev.MTU = 1280;
dev.SetAddress(IPAddress.Parse("192.168.1.1"), 16);
... |
using TAP;
using System;
using System.Net;
public class TAPCfgTest {
private static void Main(string[] args) {
EthernetDevice dev = new EthernetDevice();
dev.Start("Device name");
Console.WriteLine("Got device name: {0}", dev.DeviceName);
dev.MTU = 1280;
dev.SetAddress(IPAddress.Parse("192.168.1.1"), 16);
... | lgpl-2.1 | C# |
2696530c3f159fdd4eb5b98bca387689062a69ff | Add limits to the cards movement | Bigotter/gdggame | Assets/Scripts/SwipeCard.cs | Assets/Scripts/SwipeCard.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SwipeCard : MonoBehaviour {
public GameObject currentCard;
private bool buttonDown = false;
private Vector3 startMousePos;
private Vector3 startPos;
private bool IsButtonDown()
{
if (!buttonDown && Input.GetMouseBu... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SwipeCard : MonoBehaviour {
public GameObject currentCard;
private bool buttonDown = false;
private Vector3 startMousePos;
private Vector3 startPos;
private bool IsButtonDown()
{
if (!buttonDown && Input.GetMouseBu... | apache-2.0 | C# |
57bcdcadced14cc1d6901a94f93e63729188039c | implement test for stream position | icarus-consulting/Yaapii.Atoms | tests/Yaapii.Atoms.Tests/IO/ZipFilesTest.cs | tests/Yaapii.Atoms.Tests/IO/ZipFilesTest.cs | // MIT License
//
// Copyright(c) 2019 ICARUS Consulting GmbH
//
// 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, co... | // MIT License
//
// Copyright(c) 2019 ICARUS Consulting GmbH
//
// 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, co... | mit | C# |
dbffcc60a3bd0e13577c5d0a40381ac57d2c6455 | Update MvxFormsApp.cs | Ideine/Cheesebaron.MvxPlugins,Cheesebaron/Cheesebaron.MvxPlugins,Ideine/Cheesebaron.MvxPlugins,Cheesebaron/Cheesebaron.MvxPlugins | FormsPresenters/Core/MvxFormsApp.cs | FormsPresenters/Core/MvxFormsApp.cs | // MvxFormsApp.cs
// 2015 (c) Copyright Cheesebaron. http://ostebaronen.dk
// Cheesebaron.MvxPlugins.FormsPresenters is licensed using Microsoft Public License (Ms-PL)
// Contributions and inspirations noted in readme.md and license.txt
//
// Project Lead - Tomasz Cielecii, @cheesebaron, mvxplugins@ostebaronen.dk
... | using System;
using Xamarin.Forms;
namespace Cheesebaron.MvxPlugins.FormsPresenters.Core
{
public class MvxFormsApp : Application
{
public event EventHandler Start;
public event EventHandler Sleep;
public event EventHandler Resume;
protected override void OnStart()
{
... | apache-2.0 | C# |
a4ec840b77e96125cd134417288cc2e4f9acd9dd | Bump version to 15.2.2.34104 | HearthSim/HearthDb | HearthDb/Properties/AssemblyInfo.cs | HearthDb/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("Hea... | 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("Hea... | mit | C# |
12e407c8667cb48679feddd1a98b16e8e18db86a | Update Consumable.cs | legitbiz/SealsOfFate,connorkuehl/SealsOfFate,Zonr0/SealsOfFate | Assets/Scripts/Consumable.cs | Assets/Scripts/Consumable.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class Consumable : MonoBehaviour, IInteractable {
// public int HealthMod;
// public int ManaMod;
public void Interact()
{
Consume();
}
virtual public void Consume()
{
// GameMan... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class Consumable : MonoBehaviour, IInteractable {
// public int HealthMod;
// public int ManaMod;
public void Interact()
{
Consume();
}
virtual public void Consume()
{
// GameMan... | mit | C# |
48ab938e73ea8059de52841dfe46547b54787bdf | initialise ReactiveUI on AfterPlatformServicesSetup hook. | AvaloniaUI/Avalonia,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,SuperJMN/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Perspex,wieslawsoltes/Perspex,SuperJMN/Avalonia,SuperJMN/Avalonia,grokys/Perspex,wieslawsoltes/Perspex,SuperJMN/Avalonia,jkoritzinsky/Avalonia,wies... | src/Avalonia.ReactiveUI/AppBuilderExtensions.cs | src/Avalonia.ReactiveUI/AppBuilderExtensions.cs | using Avalonia.Controls;
using Avalonia.Threading;
using ReactiveUI;
using Splat;
namespace Avalonia.ReactiveUI
{
public static class AppBuilderExtensions
{
/// <summary>
/// Initializes ReactiveUI framework to use with Avalonia. Registers Avalonia
/// scheduler and Avalonia activation... | using Avalonia.Controls;
using Avalonia.Threading;
using ReactiveUI;
using Splat;
namespace Avalonia.ReactiveUI
{
public static class AppBuilderExtensions
{
/// <summary>
/// Initializes ReactiveUI framework to use with Avalonia. Registers Avalonia
/// scheduler and Avalonia activation... | mit | C# |
c1f7a357931934da10f1af92eccb885cbd9b5eed | Update IProductRepository.cs | ziyasal/Httwrap,Trendyol/Httwrap | Httwrap.Tests/IProductRepository.cs | Httwrap.Tests/IProductRepository.cs | using System.Collections.Generic;
namespace Httwrap.Tests
{
//REFERENCE: http://www.asp.net/web-api/overview/older-versions/creating-a-web-api-that-supports-crud-operations
public interface IProductRepository
{
IEnumerable<Product> GetAll();
Product Get(int id);
Product Add(Product... | using System.Collections.Generic;
namespace Httwrap.Tests
{
public interface IProductRepository
{
IEnumerable<Product> GetAll();
Product Get(int id);
Product Add(Product item);
void Remove(int id);
bool Update(Product item);
void ClearAll();
}
} | mit | C# |
459617e652fa9bb81f790ab95b4060503303defd | Fix DestroyEntitiesPacket for MC:Java | kennyvv/Alex,kennyvv/Alex,kennyvv/Alex,kennyvv/Alex | src/Alex.Networking.Java/Packets/Play/DestroyEntitiesPacket.cs | src/Alex.Networking.Java/Packets/Play/DestroyEntitiesPacket.cs | using System.Threading.Tasks;
using Alex.Networking.Java.Util;
namespace Alex.Networking.Java.Packets.Play
{
public class DestroyEntitiesPacket : Packet<DestroyEntitiesPacket>
{
public DestroyEntitiesPacket()
{
}
public int[] EntityIds;
/// <inheritdoc />
public override async Task DecodeAsync(... | using Alex.Networking.Java.Util;
namespace Alex.Networking.Java.Packets.Play
{
public class DestroyEntitiesPacket : Packet<DestroyEntitiesPacket>
{
public DestroyEntitiesPacket()
{
}
public int[] EntityIds;
public override void Decode(MinecraftStream stream)
{
EntityIds = new int[1];
int ... | mpl-2.0 | C# |
503a4e962ee84a3ea54ef51dc35f772ae34a08df | upgrade version to 0.6.3239.1 | NetDimension/NanUI,NetDimension/NanUI,NetDimension/NanUI | NetDimension.NanUI/Properties/AssemblyInfo.cs | NetDimension.NanUI/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("NetDimension.NanUI")]
[assembly: AssemblyDescription("Build your WinForm with HTML5/CSS3 and Javascript.")]
[assembly: AssemblyConfiguration("... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("NetDimension.NanUI")]
[assembly: AssemblyDescription("Build your WinForm with HTML5/CSS3 and Javascript.")]
[assembly: AssemblyConfiguration("... | mit | C# |
d2670344d395ce5e938083743e924a072ca91aa4 | Fix automated build. | ejball/XmlDocMarkdown | tools/Build/Build.cs | tools/Build/Build.cs | using System;
using Faithlife.Build;
using static Faithlife.Build.AppRunner;
internal static class Build
{
public static int Main(string[] args) => BuildRunner.Execute(args, build =>
{
var dotNetBuildSettings = new DotNetBuildSettings
{
NuGetApiKey = Environment.GetEnvironmentVariable("NUGET_API_KEY"),
Sou... | using Faithlife.Build;
using static Faithlife.Build.AppRunner;
internal static class Build
{
public static int Main(string[] args) => BuildRunner.Execute(args, build =>
{
var dotNetBuildSettings = new DotNetBuildSettings
{
SourceLinkSettings = new SourceLinkSettings
{
ShouldTestPackage = name => name ... | mit | C# |
e79ba9a1299fc54728d9762af30e5e38a02f0e4b | Add alwaysShowDecimals param to FormatAccuracy | NeoAdonis/osu,smoogipooo/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,2yangk23/osu,johnneijzen/osu,ppy/osu,EVAST9919/osu,smoogipoo/osu,NeoAdonis/osu,johnneijzen/osu,NeoAdonis/osu,2yangk23/osu,ppy/osu,UselessToucan/osu,peppy/osu,peppy/osu,peppy/osu-new,peppy/osu,UselessToucan/osu,smoogipoo/osu,EVAST9919/osu | osu.Game/Utils/FormatUtils.cs | osu.Game/Utils/FormatUtils.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.Utils
{
public static class FormatUtils
{
/// <summary>
/// Turns the provided accuracy into a percentage with 2 decimal places... | // 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.Utils
{
public static class FormatUtils
{
/// <summary>
/// Turns the provided accuracy into a percentage with 2 decimal places... | mit | C# |
bc801f7f8aeab780010d7ada1d7f02e556e675ce | determine transaction type; very oneof abuse | xxami/muppo-things,xxami/muppo-things | Cocopops/Cocopops/Program.cs | Cocopops/Cocopops/Program.cs |
using System.IO;
using Google.Protobuf;
using Cocopops.Model.BaseTransaction;
using Cocopops.Model.ExtendedTransaction;
using Cocopops.Model.Transaction;
using Cocopops.Model.TransactionCollection;
using System;
namespace Cocopops
{
class Program
{
static void Main(string[] args)
{
... |
using System.IO;
using Google.Protobuf;
using Cocopops.Model.BaseTransaction;
using Cocopops.Model.ExtendedTransaction;
using Cocopops.Model.Transaction;
using Cocopops.Model.TransactionCollection;
namespace Cocopops
{
class Program
{
static void Main(string[] args)
{
// Create o... | unlicense | C# |
5d66dbd61002e02441420dd6649bd56b8c9ab0e1 | Use DotNetCoreBuild in Cake script. | ryanjfitz/SimpSim.NET | build.cake | build.cake | //////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
/////////////////////////////////////////////////////////////... | //////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
/////////////////////////////////////////////////////////////... | mit | C# |
62c7cdea6ea5e88a37a0051a0d114fbe9af20f47 | Use local Nuget to restore packages. | HangfireIO/Cronos | build.cake | build.cake | #addin nuget:?package=Cake.VersionReader
#tool "nuget:?package=xunit.runner.console"
Task("Restore-NuGet-Packages")
.Does(()=>
{
StartProcess(".nuget/NuGet.exe", new ProcessSettings
{
Arguments = "restore Cronos.sln"
});
});
Task("Build")
.IsDependentOn("Restore-NuGet-Packages")
.Do... | #addin nuget:?package=Cake.VersionReader
#tool "nuget:?package=xunit.runner.console"
Task("Restore-NuGet-Packages")
.Does(()=>
{
NuGetRestore("Cronos.sln");
});
Task("Build")
.IsDependentOn("Restore-NuGet-Packages")
.Does(()=>
{
MSBuild("Cronos.sln", new MSBuildSettings
{
ToolVersio... | mit | C# |
42b77cf0fce04fc60997827c389e31237dc80192 | Add method for querying active entities | isurakka/ecs | ECS/EntityComponentSystem.cs | ECS/EntityComponentSystem.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ECS
{
public class EntityComponentSystem
{
private EntityManager entityManager;
private SystemManager systemManager;
public EntityComponentSystem()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ECS
{
public class EntityComponentSystem
{
private EntityManager entityManager;
private SystemManager systemManager;
public EntityComponentSystem()
{
... | apache-2.0 | C# |
e164e67cfe404e51c622c62240e3022cffcff83d | support predispose action | TakeAsh/cs-TakeAshUtility | TakeAshUtility/IDisposableHelper.cs | TakeAshUtility/IDisposableHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TakeAshUtility {
public static class IDisposableHelper {
public static void SafeDispose<T>(this T disposable, Action<T> predispose = null)
where T : IDisposable {
if (disp... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TakeAshUtility {
public static class IDisposableHelper {
public static void SafeDispose(this IDisposable disposable) {
if (disposable == null) {
return;
}
... | mit | C# |
112070c536e34b31124c68c2a0309d5754a79ed4 | Change remote app version to v0.1 | ascendedguard/starboard-sc2 | starboard-remote/Properties/AssemblyInfo.cs | starboard-remote/Properties/AssemblyInfo.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="Starboard">
// Copyright © 2011 All Rights Reserved
// </copyright>
// <summary>
// AssemblyInfo.cs
// </summary>
// --------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="Starboard">
// Copyright © 2011 All Rights Reserved
// </copyright>
// <summary>
// AssemblyInfo.cs
// </summary>
// --------------------------------... | mit | C# |
2fa591f2fdef113e89d01cd3c3016fed6508c016 | Document the MsoAnimTriggerType values | NetOfficeFw/NetOffice | Source/PowerPoint/Enums/MsoAnimTriggerType.cs | Source/PowerPoint/Enums/MsoAnimTriggerType.cs | using System;
using NetOffice;
using NetOffice.Attributes;
namespace NetOffice.PowerPointApi.Enums
{
/// <summary>
/// The action that triggers the animation effect. The default value is <see cref="msoAnimTriggerOnPageClick"/>.
/// SupportByVersion PowerPoint 10, 11, 12, 14, 15, 16
/// </summary>
///<remarks> MSD... | using System;
using NetOffice;
using NetOffice.Attributes;
namespace NetOffice.PowerPointApi.Enums
{
/// <summary>
/// SupportByVersion PowerPoint 10, 11, 12, 14, 15, 16
/// </summary>
///<remarks> MSDN Online Documentation: http://msdn.microsoft.com/en-us/en-us/library/office/ff743947.aspx </remarks>
[Suppor... | mit | C# |
2b7690f117c83b7f26cdd3538c872ac97de1281e | Fix most recent issue in #9 (DPI awareness for screen capture tool). | VictorZakharov/pinwin | PinWin/Program.cs | PinWin/Program.cs | using System;
using System.Windows.Forms;
namespace PinWin
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
if (Environment.OSVersion.Version.Major >= 6)
... | using System;
using System.Windows.Forms;
namespace PinWin
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false)... | mit | C# |
2e1fe14de8705512fccfab590f03f8237ac7da4d | Add missing documentation | DotNetToscana/TranslatorService | Src/TranslatorService/Models/ErrorResponse.cs | Src/TranslatorService/Models/ErrorResponse.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TranslatorService.Models
{
/// <summary>
/// Holds information about an error occurred while accessing Microsoft Translator Service.
/// </summary>
internal class ErrorResponse... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TranslatorService.Models
{
internal class ErrorResponse
{
public string Message { get; set; }
public int StatusCode { get; set; }
}
}
| mit | C# |
0ce40a61f281a80e5aa48f0fd1a18932fd268c96 | Fix for build | rc1/BowieCode | Components/PivotGizmo3D.cs | Components/PivotGizmo3D.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace BowieCode {
/// <summary>
/// Draws customisable axises like the move tool when the object is not selected.
/// </summary>
[AddComponentMenu("BowieCode/Pivot Gizmo 3D")]
public cla... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace BowieCode {
/// <summary>
/// Draws customisable axises like the move tool when the object is not selected.
/// </summary>
[AddComponentMenu("BowieCode/Pivot Gizmo 3D")]
public cla... | mit | C# |
dd533ae685707a7519c08cd097c1107e0b64b173 | Add documentation for SuppressGCTransition (dotnet/coreclr#27368) (#42006) | shimingsg/corefx,shimingsg/corefx,ericstj/corefx,ericstj/corefx,shimingsg/corefx,shimingsg/corefx,ericstj/corefx,ericstj/corefx,shimingsg/corefx,ericstj/corefx,ericstj/corefx,ericstj/corefx,shimingsg/corefx,shimingsg/corefx | src/Common/src/CoreLib/System/Runtime/InteropServices/SuppressGCTransitionAttribute.cs | src/Common/src/CoreLib/System/Runtime/InteropServices/SuppressGCTransitionAttribute.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Runtime.InteropServices
{
/// <summary>
/// An attribute used to indicate a GC transition s... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Runtime.InteropServices
{
/// <summary>
/// An attribute used to indicate a GC transition s... | mit | C# |
e681045315f5fda78c138ffed205c7809fdedf82 | Change method name | mikemajesty/coolvalidator | CoolValidator/Validator.cs | CoolValidator/Validator.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace CoolValidator
{
public static class formValidator
{
public static List<TextBox> ValidateTextBox(this Form form, Func<TextBox, bool> predicate = null)
{
var txtList = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace CoolValidator
{
public static class formValidator
{
public static List<TextBox> ValidateTextBox(this Form form, Func<TextBox, bool> predicate = null)
{
var txtList = ... | mit | C# |
aef31d28ea6c78f326524cf0a0f0f776a1700435 | Add some error checks to `run`. | mono/sdb,mono/sdb | src/Commands/RunCommand.cs | src/Commands/RunCommand.cs | /*
* SDB - Mono Soft Debugger Client
* Copyright 2013 Alex Rønne Petersen
*
* 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 3 of the License, or
* (at your option) any late... | /*
* SDB - Mono Soft Debugger Client
* Copyright 2013 Alex Rønne Petersen
*
* 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 3 of the License, or
* (at your option) any late... | mit | C# |
427c01dac3e33fac8f9b9d8b907e41f74a13ae94 | Update Codec.cs | lailongwei/llbc,lailongwei/llbc,lailongwei/llbc,lailongwei/llbc,lailongwei/llbc | wrap/csllbc/csharp/comm/Codec.cs | wrap/csllbc/csharp/comm/Codec.cs | // The MIT License (MIT)
// Copyright (c) 2013 lailongwei<lailongwei@126.com>
//
// 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 r... | // The MIT License (MIT)
// Copyright (c) 2013 lailongwei<lailongwei@126.com>
//
// 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 r... | mit | C# |
1f531c2df1346deb0154154a4648a3759a0ecaa4 | store the host/port | mlittle/avaya-moagent-client | AvayaMoagentClient/AvayaDialer.cs | AvayaMoagentClient/AvayaDialer.cs | using AvayaMoagentClient.Commands;
namespace AvayaMoagentClient
{
public class AvayaDialer
{
private MoagentClient _client;
private string _host;
private int _port;
public event MoagentClient.MessageReceivedHandler MessageReceived;
public AvayaDialer(string host, int port)
{... | using AvayaMoagentClient.Commands;
namespace AvayaMoagentClient
{
public class AvayaDialer
{
private MoagentClient _client;
private string _host;
private int _port;
public event MoagentClient.MessageReceivedHandler MessageReceived;
public AvayaDialer(string host, int port)
{... | bsd-2-clause | C# |
268d20106b95075c716ba8951a2bcd34a1110242 | Add System.Threading.Thread serialization | rahku/corefx,rubo/corefx,stephenmichaelf/corefx,ViktorHofer/corefx,lggomez/corefx,ViktorHofer/corefx,krytarowski/corefx,JosephTremoulet/corefx,Petermarcu/corefx,rubo/corefx,shimingsg/corefx,Jiayili1/corefx,stone-li/corefx,DnlHarvey/corefx,parjong/corefx,Jiayili1/corefx,mazong1123/corefx,ptoonen/corefx,the-dwyer/corefx,... | src/System.Threading.Thread/src/System/Threading/ThreadAbortException.cs | src/System.Threading.Thread/src/System/Threading/ThreadAbortException.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.Serialization;
namespace System.Threading
{
// Thread.Abort() is not supported in .NET co... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Threading
{
// Thread.Abort() is not supported in .NET core, so this is currently just a stub ... | mit | C# |
10cc9ba0745d07e5616b58133ec60dd1b220482d | Fix compilation error in sample | tomba/Toolkit,sharpdx/Toolkit,sharpdx/Toolkit | Samples/Toolkit/Desktop/MiniCube/Program.cs | Samples/Toolkit/Desktop/MiniCube/Program.cs | // Copyright (c) 2010-2012 SharpDX - Alexandre Mutel
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modi... | // Copyright (c) 2010-2012 SharpDX - Alexandre Mutel
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modi... | mit | C# |
0e77345707b9260e6418f855722431179cb7f66d | Improve code documentation in the IStorageEngine interface | openchain/openchain | src/Openchain.Abstractions/IStorageEngine.cs | src/Openchain.Abstractions/IStorageEngine.cs | // Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | // Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | apache-2.0 | C# |
90f7e83a68dc2372b3b648f228768c0f4d38902e | Implement scanning assemblies for function types | manisero/DSLExecutor | dev/Manisero.DSLExecutor.Parser.SampleDSL/ExpressionGeneration/FunctionExpressionGeneration/FunctionTypeResolvers/TypeSamplesAndSuffixConventionBasedFunctionTypeResolver.cs | dev/Manisero.DSLExecutor.Parser.SampleDSL/ExpressionGeneration/FunctionExpressionGeneration/FunctionTypeResolvers/TypeSamplesAndSuffixConventionBasedFunctionTypeResolver.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Manisero.DSLExecutor.Domain.FunctionsDomain;
using Manisero.DSLExecutor.Extensions;
using Manisero.DSLExecutor.Parser.SampleDSL.Parsing.Tokens;
namespace Manisero.DSLExecutor.Parser.SampleDSL.ExpressionGeneration... | using System;
using System.Collections.Generic;
using Manisero.DSLExecutor.Parser.SampleDSL.Parsing.Tokens;
namespace Manisero.DSLExecutor.Parser.SampleDSL.ExpressionGeneration.FunctionExpressionGeneration.FunctionTypeResolvers
{
public class TypeSamplesAndSuffixConventionBasedFunctionTypeResolver : IFuncti... | mit | C# |
6232e372397f04a9e7252564d39edb2880aa3b61 | Bump to v0.8.0 | danielwertheim/mynatsclient,danielwertheim/mynatsclient | buildconfig.cake | buildconfig.cake | public class BuildConfig
{
private const string Version = "0.8.0";
private const bool IsPreRelease = false;
public readonly string SrcDir = "./src/";
public readonly string OutDir = "./build/";
public string Target { get; private set; }
public string SemVer { get; private set; }
pu... | public class BuildConfig
{
private const string Version = "0.7.0";
private const bool IsPreRelease = false;
public readonly string SrcDir = "./src/";
public readonly string OutDir = "./build/";
public string Target { get; private set; }
public string SemVer { get; private set; }
pu... | mit | C# |
ed714c20d53528d4f69af884ac0f17cf862a538f | Fix build..... | sitofabi/duplicati,mnaiman/duplicati,duplicati/duplicati,mnaiman/duplicati,mnaiman/duplicati,duplicati/duplicati,duplicati/duplicati,sitofabi/duplicati,duplicati/duplicati,duplicati/duplicati,sitofabi/duplicati,sitofabi/duplicati,mnaiman/duplicati,sitofabi/duplicati,mnaiman/duplicati | Duplicati/UnitTest/WebApiTests.cs | Duplicati/UnitTest/WebApiTests.cs | // Copyright (C) 2018, The Duplicati Team
// http://www.duplicati.com, info@duplicati.com
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// L... | // Copyright (C) 2018, The Duplicati Team
// http://www.duplicati.com, info@duplicati.com
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// L... | lgpl-2.1 | C# |
e688044f7660d59749ffcec8bbadc9ac8bef32a6 | Add ReadScalar extensions to IDbConnection | vjacquet/WmcSoft | WmcSoft.Core/Data/DbConnectionExtensions.cs | WmcSoft.Core/Data/DbConnectionExtensions.cs | #region Licence
/****************************************************************************
Copyright 1999-2015 Vincent J. Jacquet. All rights reserved.
Permission is granted to anyone to use this software for any purpose on
any computer system, and to alter it and redistribute it, subject
t... | #region Licence
/****************************************************************************
Copyright 1999-2015 Vincent J. Jacquet. All rights reserved.
Permission is granted to anyone to use this software for any purpose on
any computer system, and to alter it and redistribute it, subject
t... | mit | C# |
be1da07b4fba9fc6bd34a299668cfd7dcb13fb17 | Update GameStateManager with basic game flow | ChrisMa130/SpellCraft,ChrisMa130/SpellCraft | Assets/Scripts/GameState/GameStateManager.cs | Assets/Scripts/GameState/GameStateManager.cs | using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class GameStateManager : MonoBehaviour {
public GameObject player;
public GameObject manager;
public bool gameStarted;
// define possible game states
public enum GameStatus
{
Start,
Waiting,
Playing,
Loses,
End
}
public Ga... | using UnityEngine;
using System.Collections;
public class GameStateManager : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
| mit | C# |
f9b2ec8c6d5145c701f42e9456d9b23d89c4bdac | Build script correction | bt-skyrise/OrionLib | Build/build.cake | Build/build.cake | var target = Argument("target", "Default");
var slnPath = "../Source/Orion.Lib.sln";
var nugerPackagesOutputPath = "../Nuget";
Task("Restore-NuGet-Packages")
.Does(() =>
{
NuGetRestore(slnPath);
});
Task("Clean")
.Does(() =>
{
CleanDirectories("../Source/**/bin");
CleanDirectories("../Source/**/ob... | var target = Argument("target", "Default");
var slnPath = "../Source/Orion.Lib.sln";
var nugerPackagesOutputPath = "../Nuget";
Task("Restore-NuGet-Packages")
.Does(() =>
{
NuGetRestore(slnPath);
});
Task("Clean")
.Does(() =>
{
CleanDirectories("../Source/**/bin");
CleanDirectories("../Source/**/ob... | mit | C# |
6bbd0ecfac9fc77ae680064ec61b29f2409380e8 | Remove unused lock object | ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu,smoogipooo/osu,ppy/osu,peppy/osu,peppy/osu-new | osu.Game/Online/Multiplayer/MultiplayerRoom.cs | osu.Game/Online/Multiplayer/MultiplayerRoom.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable enable
using System;
using System.Collections.Generic;
using System.Threading;
using Newtonsoft.Json;
using osu.Framework.Allocation;
namespace osu.Game.Onlin... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable enable
using System;
using System.Collections.Generic;
using System.Threading;
using Newtonsoft.Json;
using osu.Framework.Allocation;
namespace osu.Game.Onlin... | mit | C# |
baceadb0bda88f48c77d8595ffe266a8642a01f4 | tweak to system message regex | thesmallbang/EverquestOpenParser | OpenParser/Constants/Misc.cs | OpenParser/Constants/Misc.cs | namespace OpenParser.Constants
{
public static class Misc
{
public const string FactionRegex =
@"\AYour faction standing with (.+?) (has been adjusted by (-?)(.+)|could not possibly get any (better|worse)).$";
public const string ExperienceRegex = @"\AYou gain (?:(party) )?experien... | namespace OpenParser.Constants
{
public static class Misc
{
public const string FactionRegex =
@"\AYour faction standing with (.+?) (has been adjusted by (-?)(.+)|could not possibly get any (better|worse)).$";
public const string ExperienceRegex = @"\AYou gain (?:(party) )?experien... | mit | C# |
cea145b7fa24e1883d468e36353610f16b90a610 | Update WeaponThrow.cs | Notulp/Pluton,Notulp/Pluton | Pluton/Events/WeaponThrow.cs | Pluton/Events/WeaponThrow.cs | namespace Pluton.Events
{
public class WeaponThrow : CountedInstance
{
private ThrownWeapon _w;
private BaseEntity.RPCMessage _msg;
private Player _player;
public WeaponThrow(ThrownWeapon thrownWeapon, BaseEntity.RPCMessage msg)
{
this._msg = msg;
... |
namespace Pluton.Events
{
public class WeaponThrow
{
private ThrownWeapon _w;
private BaseEntity.RPCMessage _msg;
private Player _player;
public WeaponThrow(ThrownWeapon thrownWeapon, BaseEntity.RPCMessage msg)
{
this._msg = msg;
this._w = thro... | mit | C# |
4aebb587bb80bbca68fdd856cf200d39eb4c4442 | add a new element type | patrickpissurno/samecitysameshit | GGJ2016/Assets/Scripts/Domain/ElementType.cs | GGJ2016/Assets/Scripts/Domain/ElementType.cs | using UnityEngine;
using System.Collections;
public enum ElementType {
Player,
Taxi,
Rebu,
RebuBG,
Bike,
Metro,
Limit
}
| using UnityEngine;
using System.Collections;
public enum ElementType {
Player,
Taxi,
Rebu,
Bike,
Metro,
Limit
}
| cc0-1.0 | C# |
2188c50ee44b4b42a5d27c0342776364ecb30413 | Add missing copyright header text. | killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,DDReaper/MixedRealityToolkit-Unity,killerantz/HoloToolkit-Unity | Assets/MixedRealityToolkit.Services/InputSystem/DefaultRaycastProvider.cs | Assets/MixedRealityToolkit.Services/InputSystem/DefaultRaycastProvider.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.MixedReality.Toolkit.Physics;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Input
{
/// <summary>
/// The default implementati... | using Microsoft.MixedReality.Toolkit.Physics;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Input
{
/// <summary>
/// The default implementation of IMixedRealityRaycastProvider.
/// </summary>
public class DefaultRaycastProvider : BaseDataProvider, IMixedRealityRaycastProvider
{
... | mit | C# |
ca378d1f9994bee331907edd97130794ff783759 | Add a test for a simple method call | gordonwatts/LINQtoROOT,gordonwatts/LINQtoROOT,gordonwatts/LINQtoROOT | LINQToTTree/LINQToTTreeLib.Tests/TypeHandlers/ROOT/TypeHanlderROOTTest.cs | LINQToTTree/LINQToTTreeLib.Tests/TypeHandlers/ROOT/TypeHanlderROOTTest.cs | // <copyright file="TypeHanlderROOTTest.cs" company="Microsoft">Copyright Microsoft 2010</copyright>
using System;
using System.Linq.Expressions;
using LinqToTTreeInterfacesLib;
using LINQToTTreeLib.Tests;
using LINQToTTreeLib.Utils;
using Microsoft.Pex.Framework;
using Microsoft.Pex.Framework.Validation;
usin... | // <copyright file="TypeHanlderROOTTest.cs" company="Microsoft">Copyright Microsoft 2010</copyright>
using System;
using System.Linq.Expressions;
using LinqToTTreeInterfacesLib;
using Microsoft.Pex.Framework;
using Microsoft.Pex.Framework.Validation;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespa... | lgpl-2.1 | C# |
743eb959820a55643805d1ef4d5ef19ef6194526 | Fix NoContentChangedOnLoad - skip load if null | jlewin/MatterControl,jlewin/MatterControl,larsbrubaker/MatterControl,unlimitedbacon/MatterControl,mmoening/MatterControl,mmoening/MatterControl,larsbrubaker/MatterControl,unlimitedbacon/MatterControl,mmoening/MatterControl,unlimitedbacon/MatterControl,jlewin/MatterControl,unlimitedbacon/MatterControl,jlewin/MatterContr... | Library/Providers/FileSystem/McxContainer.cs | Library/Providers/FileSystem/McxContainer.cs | /*
Copyright (c) 2018, John Lewin
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following ... | /*
Copyright (c) 2018, John Lewin
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following ... | bsd-2-clause | C# |
a5e7002ddc42771fc84c71aa629b8942eb505e4d | Test is inconvenient | Fubineva/NOps.Instance | NOps.Instance.Tests/InstanceRegistryTests.cs | NOps.Instance.Tests/InstanceRegistryTests.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Fubineva.NOps.Instance;
using NUnit.Framework;
namespace NOps.Instance.Tests
{
[TestFixture]
public class InstanceRegistryTests
{
//... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Fubineva.NOps.Instance;
using NUnit.Framework;
namespace NOps.Instance.Tests
{
[TestFixture]
public class InstanceRegistryTests
{
[T... | mit | C# |
64cbb1df1720a49dfdd1884024a3aabaa9f5815c | Bump to v2.8.0.0 | Silv3rPRO/proshine | PROShine/Properties/AssemblyInfo.cs | PROShine/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: Ass... | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: Ass... | mit | C# |
4147336a0a2876383007f8c9b0eb0d14d3862f99 | Fix for issue #362 | johnkors/azure-sdk-tools,DinoV/azure-sdk-tools,antonba/azure-sdk-tools,johnkors/azure-sdk-tools,akromm/azure-sdk-tools,DinoV/azure-sdk-tools,johnkors/azure-sdk-tools,akromm/azure-sdk-tools,hyonholee/azure-sdk-tools-1,DinoV/azure-sdk-tools,Madhukarc/azure-sdk-tools,hyonholee/azure-sdk-tools-1,markcowl/azure-sdk-tools,al... | WindowsAzurePowershell/src/Management/Utilities/ConfigurationConstants.cs | WindowsAzurePowershell/src/Management/Utilities/ConfigurationConstants.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
// http://ww... | // ----------------------------------------------------------------------------------
//
// 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
// http://ww... | apache-2.0 | C# |
04446b0633116305a02376c0787526467be409db | Save trip before dismissing summary. | Azure-Samples/MyDriving,Azure-Samples/MyDriving,Azure-Samples/MyDriving | XamarinApp/MyTrips/MyTrips.iOS/Screens/Trips/TripSummaryViewController.cs | XamarinApp/MyTrips/MyTrips.iOS/Screens/Trips/TripSummaryViewController.cs | using System;
using UIKit;
namespace MyTrips.iOS
{
public partial class TripSummaryViewController : UIViewController
{
public ViewModel.CurrentTripViewModel ViewModel { get; set; }
public TripSummaryViewController(IntPtr handle) : base(handle) { }
public override void ViewDidLoad()
{
lblDateTime.T... | using System;
using UIKit;
namespace MyTrips.iOS
{
public partial class TripSummaryViewController : UIViewController
{
public ViewModel.CurrentTripViewModel ViewModel { get; set; }
public TripSummaryViewController(IntPtr handle) : base(handle) { }
public override void ViewDidLoad()
{
lblDateTime.T... | mit | C# |
d5b08201b646221275e056612f466b4f9c6fe179 | add link.Title to aria-label | smbc-digital/iag-webapp,smbc-digital/iag-webapp,smbc-digital/iag-webapp | src/StockportWebapp/Views/stockportgov/Shared/Semantic/Showcase/SocialMediaLinks.cshtml | src/StockportWebapp/Views/stockportgov/Shared/Semantic/Showcase/SocialMediaLinks.cshtml | @model StockportWebapp.ViewModels.SocialMediaLinksViewModel
<section>
<h2>@Model.SocialMediaLinksSubheading</h2>
<div class="showcase-button-container">
@foreach (var link in Model.SocialMediaLinks)
{
<a as-link="true" class="showcase-button" href="@link.Url">
<span class="@lin... | @model StockportWebapp.ViewModels.SocialMediaLinksViewModel
<section>
<h2>@Model.SocialMediaLinksSubheading</h2>
<div class="showcase-button-container">
@foreach (var link in Model.SocialMediaLinks)
{
<a as-link="true" class="showcase-button" href="@link.Url">
<span class="@link.Ic... | mit | C# |
933ebbca5630c8c8aeb9f44df9bad7634823540a | Fix quotes symbols in contacts | 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# |
9141c54138bfb13eef6f2a14aff41620c55052d8 | Update to versión 1.7.0 | hossmi/qtfk | QTFK.DBMigrations/Properties/AssemblyInfo.cs | QTFK.DBMigrations/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("QTF... | 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("QTF... | mit | C# |
2086025ebd3d5df8548fda2035a357b6bf8fdc86 | Update NotifyArgs.cs | gsp8181/FairExchange | FEClient/API/NotifyArgs.cs | FEClient/API/NotifyArgs.cs | using System;
namespace FEClient.API
{
[Obsolete] //TODO: transition
public class NotifyArgs
{
public bool HasSet { get; set; }
}
}
| using System;
namespace FEClient.API
{
[Obsolete]
public class NotifyArgs
{
public bool HasSet { get; set; }
}
} | apache-2.0 | C# |
80883df9674abf036715c3904739065de93f2e22 | Update SNOMED link | endeavourhealth/FHIR-Tools,endeavourhealth/FHIR-Tools,endeavourhealth/FHIR-Tools | FhirProfilePublisher/FhirProfilePublisher.Specification/Utilities/Snomed/SnomedHelper.cs | FhirProfilePublisher/FhirProfilePublisher.Specification/Utilities/Snomed/SnomedHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FhirProfilePublisher.Engine
{
public static class SnomedHelper
{
public static bool IsSnomedSystemUri(string uri)
{
return uri.ToLower().Contains("snomed.in... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FhirProfilePublisher.Engine
{
public static class SnomedHelper
{
public static bool IsSnomedSystemUri(string uri)
{
return uri.ToLower().Contains("snomed.in... | apache-2.0 | C# |
04b5f157a2ce9fa43d6b614f51a55a4f921195ba | Remove unseless comment | fredatgithub/InterClubBadminton | InterClubBadminton/FormOptions.cs | InterClubBadminton/FormOptions.cs | /*
The MIT License(MIT)
Copyright(c) 2015 Freddy Juhel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... | /*
The MIT License(MIT)
Copyright(c) 2015 Freddy Juhel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... | mit | C# |
8a8fba0bc7a969569b22ef9d71241645efef3e88 | Update Enum.cs | balarvs2002/FeatureToggle | FeatureToggle.Core/Enum.cs | FeatureToggle.Core/Enum.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FeatureToggle.Core
{
public class Enum
{
public enum ToggleType
{
AlwaysOnFeature,
AlwaysOffFeature,
DateFromFeature,
Ti... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FeatureToggle.Core
{
public class Enum
{
public enum ToggleType
{
AlwaysOnFeature,
AlwaysOffFeature,
DateFromFeature,
Ti... | apache-2.0 | C# |
830fc7900b5807f10790e0f134313f994f0f0c1e | Fix off by one bug | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Io/MutexIoManager.cs | WalletWasabi/Io/MutexIoManager.cs | using Nito.AsyncEx;
using WalletWasabi.Crypto;
namespace WalletWasabi.Io
{
public class MutexIoManager : IoManager
{
public MutexIoManager(string filePath) : base(filePath)
{
var shortHash = HashHelpers.GenerateSha256Hash(FilePath).Substring(0, 7);
// https://docs.microsoft.com/en-us/dotnet/api/system.thr... | using Nito.AsyncEx;
using WalletWasabi.Crypto;
namespace WalletWasabi.Io
{
public class MutexIoManager : IoManager
{
public MutexIoManager(string filePath) : base(filePath)
{
var shortHash = HashHelpers.GenerateSha256Hash(FilePath).Substring(1, 7);
// https://docs.microsoft.com/en-us/dotnet/api/system.thr... | mit | C# |
66ca8c1eb5ce1e89eafa7f4a32650ff74d33725a | Fix argb color parsing, #203 | Kagamia/WzComparerR2 | WzComparerR2.MapRender/UI/ColorWConverter.cs | WzComparerR2.MapRender/UI/ColorWConverter.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EmptyKeys.UserInterface.Media;
namespace WzComparerR2.MapRender.UI
{
public class ColorWConverter
{
public static bool TryParse(string s, out ColorW colorW)
{
i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EmptyKeys.UserInterface.Media;
namespace WzComparerR2.MapRender.UI
{
public class ColorWConverter
{
public static bool TryParse(string s, out ColorW colorW)
{
i... | mit | C# |
6c584f82c43c281812c0aab1af74dbae7aa7b25c | refactor then remove netwonsoft references (uneeded), and add interface into ctor for automagic injection | YoloDev/YOBAO | Source/Yobao/YobaoModule.cs | Source/Yobao/YobaoModule.cs | using System.Linq;
using Nancy;
namespace Yobao
{
public class YobaoModule : Nancy.NancyModule
{
public YobaoModule(IYobao<SampleDatabase> yobao)
{
Get["/"] = _ =>
{
return Response.AsJson(yobao.Configurations.ToList());
};
Get... | using System.Linq;
using Newtonsoft.Json;
namespace Yobao
{
public class YobaoModule : Nancy.NancyModule
{
public YobaoModule(Yobao<SampleDatabase> yobao) // push this up to module creation... some how..
{
Get["/"] = _ =>
{
return JsonConvert.SerializeO... | mit | C# |
4e460cc258a95ca4aa7bac1448a5e7afd97e5e3e | Add Keyword class | whampson/bft-spec,whampson/cascara | Src/WHampson.Bft/Keyword.cs | Src/WHampson.Bft/Keyword.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# |
bc75bd34f6222c5fa3ccd5678d745700061e10a4 | Fix caret width having changed | 2yangk23/osu,NeoAdonis/osu,2yangk23/osu,UselessToucan/osu,peppy/osu,peppy/osu,ppy/osu,johnneijzen/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,smoogipooo/osu,johnneijzen/osu,EVAST9919/osu,ppy/osu,smoogipoo/osu,peppy/osu-new,peppy/osu,EVAST9919/osu | osu.Game/Graphics/UserInterface/OsuTextBox.cs | osu.Game/Graphics/UserInterface/OsuTextBox.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.UserInterface;
using osu.Game.Graphics.S... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.UserInterface;
using osu.Game.Graphics.S... | mit | C# |
318b8a4157b53831e7196671f3f8ede918ca64a4 | Add CollidableRectangle class | McIntireEvan/FusionLib | FusionLib/FusionLib/Shapes/CollidableRectangle.cs | FusionLib/FusionLib/Shapes/CollidableRectangle.cs | using FusionLib.Collision;
using Microsoft.Xna.Framework;
namespace FusionLib.Shapes
{
public class CollidableRectangle : ICollidable
{
private Rectangle rectangle;
public CollidableRectangle(Rectangle rectangle)
{
this.rectangle = rectangle;
}
public Rect... | mit | C# | |
08e7955daaf5aef63c5d8c0a4a4ea99a93886041 | add Account int BankOfKurtovoKonare | ivayloivanof/OOP.CSharp,ivayloivanof/OOP.CSharp | 04.EncapsulationAndPolymorphism/EncapsulationAndPolimophism/BankOfKurtovoKonare/Class/Accounts.cs | 04.EncapsulationAndPolymorphism/EncapsulationAndPolimophism/BankOfKurtovoKonare/Class/Accounts.cs | namespace BankOfKurtovoKonare.Class
{
class Accounts
{
private string customer;
}
}
| cc0-1.0 | C# | |
aaf8ec3895e548cdf94dbc56b1081644747a6ef7 | Sort chars by freq - monad | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | LeetCode/remote/sort_characters_by_frequency.cs | LeetCode/remote/sort_characters_by_frequency.cs | // https://leetcode.com/problems/sort-characters-by-frequency/
// https://leetcode.com/submissions/detail/83684155/
//
// Submission Details
// 34 / 34 test cases passed.
// Status: Accepted
// Runtime: 188 ms
// Submitted: 0 minutes ago
public class Solution {
public string FrequencySort(st... | mit | C# | |
96d3db522b46221b286c484ab010bdba3cb8c07a | Add knownfile.cs | Ackara/Daterpillar | src/Tests.Daterpillar/Globals/KnownFile.cs | src/Tests.Daterpillar/Globals/KnownFile.cs | namespace Tests.Daterpillar.Globals
{
public static class KnownFile
{
public const string XDDL = "xddl.xsd";
public const string x86SQLiteInterop = "x86\\SQLite.Interop.dll";
public const string x64SQLiteInterop = "x64\\SQLite.Interop.dll";
public const string SongCSV = "songs.... | mit | C# | |
7c14bc2f3c5f5dda6af8c07d8123ae752bb2d362 | Create MessageBodyDeserializer.cs | Azure/azure-stream-analytics | CustomDeserializers/Protobuf/MessageBodyDeserializer.cs | CustomDeserializers/Protobuf/MessageBodyDeserializer.cs | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the Microsoft Public License.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTI... | mit | C# | |
2582754e31a0dd53d81a18b9b81c23817b9ccc71 | Fix inverted documentation between two methods | ravimeda/corefx,Yanjing123/corefx,weltkante/corefx,shahid-pk/corefx,lggomez/corefx,mazong1123/corefx,vrassouli/corefx,dotnet-bot/corefx,erpframework/corefx,gabrielPeart/corefx,erpframework/corefx,alexandrnikitin/corefx,tstringer/corefx,thiagodin/corefx,shmao/corefx,manu-silicon/corefx,manu-silicon/corefx,shahid-pk/core... | src/System.ComponentModel/src/System/ComponentModel/IEditableObject.cs | src/System.ComponentModel/src/System/ComponentModel/IEditableObject.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace System.ComponentModel
{
/// <summary>
/// Provides functionality to commit or rollback changes to an object that is used as a data source.
/// </s... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace System.ComponentModel
{
/// <summary>
/// Provides functionality to commit or rollback changes to an object that is used as a data source.
/// </s... | mit | C# |
4bd5b4e7bd742ff91d5c41798fc5f12fdf63472a | Implement the DependencyResolver class | openchain/openchain | src/Openchain.Server/Models/DependencyResolver.cs | src/Openchain.Server/Models/DependencyResolver.cs | // Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | apache-2.0 | C# | |
b285cf598b0f2b142cc818ec5dfaba6df6a0e452 | Add tests for ParseIntoWords() | KirillOsenkov/MSBuildStructuredLog,KirillOsenkov/MSBuildStructuredLog | src/StructuredLogger.Tests/ParseIntoWordsTests.cs | src/StructuredLogger.Tests/ParseIntoWordsTests.cs | using System.Collections.Generic;
using System.Text;
using Xunit;
namespace StructuredLogger.Tests
{
public class ParseIntoWordsTests
{
[Fact]
public void TestParseIntoWords()
{
T("a b", "a", "b");
T("a \"b c\"", "a", "b c");
T("a \"b\" ... | mit | C# | |
8b4619173867972466ca60df30f7e229755cc544 | Add test coverage for `RemoveAndDisposeImmediately()` | peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework | osu.Framework.Tests/Containers/TestSceneSyncDisposal.cs | osu.Framework.Tests/Containers/TestSceneSyncDisposal.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 NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Testing;
using osu.Framework.Tests.Visual;
namespace os... | mit | C# | |
3789ce6e27b969eae41c4402e1bba14b38652be5 | Add a new repository interface to deal with counting of elements from the data store | reexmonkey/xmisc | solution/xmisc.backbone.repositories.contracts/count.cs | solution/xmisc.backbone.repositories.contracts/count.cs | using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace reexmonkey.xmisc.backbone.repositories.contracts
{
/// <summary>
/// Specifies a repository that counts the data models of a data store.
/// </s... | mit | C# | |
4a08826812a88af41b7390ff69b56bdb76d76394 | Disable tests parallelization. We are ocasionally getting `MqttCommunicationException ` with message `The Write method cannot be called when another write operation is pending.` and I can't find any obvious overlap within the given test. So it's probably because of several tests executing at once. | GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples | iot/api/CloudIotMqttExampleTest/AssemblyInfo.cs | iot/api/CloudIotMqttExampleTest/AssemblyInfo.cs | /*
* Copyright 2021 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 ... | apache-2.0 | C# | |
f12ae23de291a0fdb3b59eb1c009189406c70055 | Check if an array is preorder | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | GeeksForGeeks/check_if_array_is_preorder.cs | GeeksForGeeks/check_if_array_is_preorder.cs | // http://www.geeksforgeeks.org/check-if-a-given-array-can-represent-preorder-traversal-of-binary-search-tree/
//
// Given an array of numbers, return true if given array can represent preorder traversal of a Binary Search Tree,
// else return false. Expected time complexity is O(n).
//
using System;
using System.Coll... | mit | C# | |
f34f1c55c17b2aae58ffbedcd5fa4a5e76d569e6 | Create qmodule.cs | QetriX/CS | libs/qmodule.cs | libs/qmodule.cs | namespace com.qetrix.libs
{
/* Copyright (c) QetriX.com. Licensed under MIT License, see /LICENSE.txt file.
* 18.08.22 | QetriX Module C# class
*/
using components;
public class QModule
{
protected DataStore _ds; // Primary DataStore
protected DataStore varDS; // Variable files DataStore (logs, temps)
pro... | mit | C# | |
6d1b654283a67e1508851e5e8867fe0bb033f675 | Change UIView.Animate to UIView.Transition, bug #4422 fix | sakthivelnagarajan/monotouch-samples,davidrynn/monotouch-samples,nelzomal/monotouch-samples,peteryule/monotouch-samples,YOTOV-LIMITED/monotouch-samples,YOTOV-LIMITED/monotouch-samples,a9upam/monotouch-samples,robinlaide/monotouch-samples,davidrynn/monotouch-samples,iFreedive/monotouch-samples,haithemaraissia/monotouch-... | CoreAnimation/Screens/iPad/ViewTransitions/Controller.cs | CoreAnimation/Screens/iPad/ViewTransitions/Controller.cs | using System;
using System.Drawing;
using MonoTouch.CoreFoundation;
using MonoTouch.UIKit;
namespace Example_CoreAnimation.Screens.iPad.ViewTransitions
{
public class Controller : UIViewController, IDetailView
{
public event EventHandler ContentsButtonClicked;
private TransitionViewController transitionViewCont... | using System;
using System.Drawing;
using MonoTouch.CoreFoundation;
using MonoTouch.UIKit;
namespace Example_CoreAnimation.Screens.iPad.ViewTransitions
{
public class Controller : UIViewController, IDetailView
{
public event EventHandler ContentsButtonClicked;
private TransitionViewController transitionViewCont... | mit | C# |
c4b63872ccc1754f592dd22b38f1fd82e67e82c7 | Add entities interface | Branimir123/PhotoLife,Branimir123/PhotoLife,Branimir123/PhotoLife | PhotoLife/PhotoLife.Data/Contracts/IPhotoLifeEntities.cs | PhotoLife/PhotoLife.Data/Contracts/IPhotoLifeEntities.cs | using System.Data.Entity;
namespace PhotoLife.Data.Contracts
{
public interface IPhotoLifeEntities
{
IDbSet<TEntity> DbSet<TEntity>()
where TEntity : class;
int SaveChanges();
void SetAdded<TEntry>(TEntry entity)
where TEntry : class;
void SetDeleted<TEn... | mit | C# | |
70ae49c838dc63b03e2eaeb099b4cf79ff9e80b0 | Return null if DefaultProfile or context does not exist, move error writing to ExecuteCmdlet | AzureAutomationTeam/azure-powershell,devigned/azure-powershell,AzureAutomationTeam/azure-powershell,atpham256/azure-powershell,krkhan/azure-powershell,atpham256/azure-powershell,hungmai-msft/azure-powershell,AzureAutomationTeam/azure-powershell,ClogenyTechnologies/azure-powershell,naveedaz/azure-powershell,krkhan/azure... | src/ResourceManager/Profile/Commands.Profile/Context/GetAzureRMContext.cs | src/ResourceManager/Profile/Commands.Profile/Context/GetAzureRMContext.cs | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | apache-2.0 | C# |
154f6b98d1a347af4970f3d43d57563ee9fd51ea | Create OptionsWindow.cs | hallstromsimon/wearables | OptionsWindow.cs | OptionsWindow.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using S... | apache-2.0 | C# | |
e03bae28bbd6c903d285786939da69fd9437266c | Enable soft delete on server | lindydonna/app-service-mobile-dotnet-todo-list-files,Azure-Samples/app-service-mobile-dotnet-todo-list-files | src/service/MobileAppsFileSampleService/Controllers/TodoItemController.cs | src/service/MobileAppsFileSampleService/Controllers/TodoItemController.cs | using System.Linq;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.OData;
using Microsoft.Azure.Mobile.Server;
using MobileAppsFileSampleService.DataObjects;
using MobileAppsFileSampleService.Models;
namespace MobileAppsFileSampleService.Controllers
{
... | using System.Linq;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.OData;
using Microsoft.Azure.Mobile.Server;
using MobileAppsFileSampleService.DataObjects;
using MobileAppsFileSampleService.Models;
namespace MobileAppsFileSampleService.Controllers
{
... | mit | C# |
0734e4fa97754b7e3f76da6e51b83dbcd7bc9650 | Create kod.cs | Juchnowski/testrep | kod.cs | kod.cs |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RozliczeniePracownikow
{
public class Rozliczenia
{
public virtual double kosztPrzejazduSamochod(int kilometry, float spalanie, float cenaLitr, float dodatkowe)
{
... | mit | C# | |
df02e1adbc29b484f101c89b018963a1dc8c5452 | Add INativeTexture interface | ppy/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,peppy/osu-framework | osu.Framework/Graphics/Rendering/INativeTexture.cs | osu.Framework/Graphics/Rendering/INativeTexture.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.Graphics.Textures;
using osu.Framework.Graphics.Visualisation;
namespace osu.Framework.Graphics.Rendering
{
internal interface INat... | mit | C# | |
bdb5399fd684911fcbab2b64db9e5aa87bde99d6 | Add Device Model Extenstion | cmoussalli/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings,MagedAlNaamani/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings,cmoussalli/DynThings,MagedAlNaamani/DynThings | DynThings.Data.Models/ModelsExtensions/Device.cs | DynThings.Data.Models/ModelsExtensions/Device.cs | /////////////////////////////////////////////////////////////////
// Created by : Caesar Moussalli //
// TimeStamp : 3-2-2016 //
// Content : Extend the properties of Device Model //
// Notes : Don't add Behavior in this class ... | mit | C# | |
931f3bd2ce920db392e33e15dc88c37bd6ab4757 | Revert "remove old assemblyinfo (wasn't included in the solution)" | rickyah/ini-parser,rickyah/ini-parser,davidgrupp/ini-parser | src/IniFileParser.Tests/Properties/AssemblyInfo.cs | src/IniFileParser.Tests/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("In... | mit | C# | |
d18875c04e8efb9556842083ad8faff4f871b64e | Add BgpSettings | ClogenyTechnologies/azure-powershell,hungmai-msft/azure-powershell,hungmai-msft/azure-powershell,ankurchoubeymsft/azure-powershell,CamSoper/azure-powershell,atpham256/azure-powershell,arcadiahlyy/azure-powershell,akurmi/azure-powershell,zhencui/azure-powershell,arcadiahlyy/azure-powershell,hovsepm/azure-powershell,hung... | src/ServiceManagement/Network/Commands.Network/Gateway/Model/BgpSettings.cs | src/ServiceManagement/Network/Commands.Network/Gateway/Model/BgpSettings.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.WindowsAzure.Commands.ServiceManagement.Network
{
public class BgpSettings
{
public uint Asn { get; set; }
public string BgpPeeringAddress { get; set; }
... | apache-2.0 | C# | |
411fc37567398cd9d595e61d1aab5f372df325db | Add type to request comment help | PowerShell/PowerShellEditorServices | src/PowerShellEditorServices.Protocol/LanguageServer/CommentHelpRequest.cs | src/PowerShellEditorServices.Protocol/LanguageServer/CommentHelpRequest.cs | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
{
class CommentHelp... | mit | C# | |
db0cd600c417d6f10c762f6e91de39c08e4d8348 | Introduce exponential backoff for executors | ExRam/ExRam.Gremlinq | src/ExRam.Gremlinq.Core/Extensions/GremlinQueryExecutorExtensions.cs | src/ExRam.Gremlinq.Core/Extensions/GremlinQueryExecutorExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Gremlin.Net.Driver.Exceptions;
namespace ExRam.Gremlinq.Core
{
public static class GremlinQueryExecutorExtensions
{
private sealed class ExponentialBackoffExecutor : IGremlinQ... | mit | C# | |
f9ce987cc51a4142a6a1f7065d38de66f88f07db | Cover DelegateInvokingLoadBalancerCreator by unit tests. | TomPallister/Ocelot,TomPallister/Ocelot | test/Ocelot.UnitTests/LoadBalancer/DelegateInvokingLoadBalancerCreatorTests.cs | test/Ocelot.UnitTests/LoadBalancer/DelegateInvokingLoadBalancerCreatorTests.cs | using System;
using System.Threading.Tasks;
using Moq;
using Ocelot.Configuration;
using Ocelot.Configuration.Builder;
using Ocelot.LoadBalancer.LoadBalancers;
using Ocelot.Middleware;
using Ocelot.Responses;
using Ocelot.ServiceDiscovery.Providers;
using Ocelot.Values;
using Shouldly;
using TestStack.BDDfy;
using Xun... | mit | C# | |
6494b13f3509cfb7fe63863e4d6dc36fbff61804 | Add http request reason provider for Abp.Web | carldai0106/aspnetboilerplate,carldai0106/aspnetboilerplate,verdentk/aspnetboilerplate,verdentk/aspnetboilerplate,luchaoshuai/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,luchaoshuai/aspnetboilerplate,ryancyq/aspnetboilerplate,ilyhacker/aspnetboiler... | src/Abp.Web/EntityHistory/HttpRequestEntityChangeSetReasonProvider.cs | src/Abp.Web/EntityHistory/HttpRequestEntityChangeSetReasonProvider.cs | using Abp.Dependency;
using Abp.EntityHistory;
using Abp.Runtime;
using JetBrains.Annotations;
using System.Web;
namespace Abp.Web.EntityHistory
{
/// <summary>
/// Implements <see cref="IEntityChangeSetReasonProvider"/> to get reason from HTTP request.
/// </summary>
public class HttpRequestEntityCha... | mit | C# | |
8130d5ca1af55ac9bacee8d9a148901b4d04a39f | Add LineSchemeUrl static class | pierre3/LineMessagingApi,pierre3/LineMessagingApi | Line.Messaging/LineSchmeUrl.cs | Line.Messaging/LineSchmeUrl.cs | using System;
namespace Line.Messaging
{
public static class LineSchmeUrl
{
private static readonly string camera = "line://nv/camera/";
private static readonly string cameraRollSingle = "line://nv/cameraRoll/single";
private static readonly string cameraRollMulti = "line://nv/cameraRo... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.