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 |
|---|---|---|---|---|---|---|---|---|
c75406a00fa97dfa518e73d933f8c24a4f61d4e2 | Correct value when registry value does not exist | emoacht/Monitorian | Source/ScreenFrame/Painter/ThemeInfo.cs | Source/ScreenFrame/Painter/ThemeInfo.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Win32;
namespace ScreenFrame.Painter
{
/// <summary>
/// Windows themes information
/// </summary>
public static class ThemeInfo
{
/// <summary>
/// Gets the color theme for Win... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Win32;
namespace ScreenFrame.Painter
{
/// <summary>
/// Windows themes information
/// </summary>
public static class ThemeInfo
{
/// <summary>
/// Gets the color theme for Win... | mit | C# |
b26fdddf3f10fec3bed969b336e13d032a906219 | Define 'System.{SystemException,InvalidOperationException}' | jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm | stdlib/corlib/Exception.cs | stdlib/corlib/Exception.cs | // This file makes use of the LeMP 'unroll' macro to avoid copy-pasting code.
// See http://ecsharp.net/lemp/avoid-tedium-with-LeMP.html for an explanation.
#importMacros(LeMP);
namespace System
{
/// <summary>
/// Represents errors that occur during program execution.
/// </summary>
public class Exce... | namespace System
{
/// <summary>
/// Represents errors that occur during program execution.
/// </summary>
public class Exception : Object
{
/// <summary>
/// Creates an exception.
/// </summary>
public Exception()
: this("An exception occurred.")
... | mit | C# |
38b5066a32278de2dd8cb63a850929d86a89a8dd | Add license to new file | Newsworthy/Huxley,jpsingleton/Huxley,Newsworthy/Huxley,jpsingleton/Huxley,mjanthony/Huxley,mjanthony/Huxley | src/Huxley/Models/DelaysResponse.cs | src/Huxley/Models/DelaysResponse.cs | /*
Huxley - a JSON proxy for the UK National Rail Live Departure Board SOAP API
Copyright (C) 2015 James Singleton
* http://huxley.unop.uk
* https://github.com/jpsingleton/Huxley
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License a... | using System;
namespace Huxley.Models {
public class DelaysResponse {
public DateTime GeneratedAt { get; set; }
public string LocationName { get; set; }
public string Crs { get; set; }
public string FilterLocationName { get; set; }
// Yes this is a typo but it match... | agpl-3.0 | C# |
005222ff4555ef98b1d2ae202ed84b3190f068f7 | update valueController #1 | adamstephensen/test-api-publish-1221,adamstephensen/test-api-publish-1221 | TestApi/Controllers/ValuesController.cs | TestApi/Controllers/ValuesController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
namespace TestApi.Controllers
{
[Route("api/[controller]")]
public class ValuesController : Controller
{
// GET: api/values
[HttpGet]
public IEn... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
namespace TestApi.Controllers
{
[Route("api/[controller]")]
public class ValuesController : Controller
{
// GET: api/values
[HttpGet]
public IEnumerable<stri... | mit | C# |
678f0fc0b9ed76a981888b205699513477ce259b | Update AssemblyInfo | danielchalmers/WpfAboutView | WpfAboutView/Properties/AssemblyInfo.cs | WpfAboutView/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("WpfAboutView")]
[assembly: AssemblyDescription("Simple About control with app name, icon, version, and credits")]
[assembly: AssemblyCompany("Daniel Chalmers")]
[assembly: AssemblyProduct("WpfAboutView")]
[assembly: AssemblyCopyr... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("WpfAboutView")]
[ass... | mit | C# |
d5dda3035fdd42a625039f76f3274810fb2e5eb5 | Test Positioned.Value. | Faithlife/Parsing | tests/Faithlife.Parsing.Tests/CommonTests.cs | tests/Faithlife.Parsing.Tests/CommonTests.cs | using Xunit;
namespace Faithlife.Parsing.Tests;
public class CommonTests
{
[Fact]
public void ResultShouldAlwaysSucceed()
{
Parser.Success(true).TryParse("").ShouldSucceed(true, 0);
Parser.Success(true).TryParse("x").ShouldSucceed(true, 0);
Parser.Success(true).TryParse("xabc").ShouldSucceed(true, 0);
}
[... | using Xunit;
namespace Faithlife.Parsing.Tests;
public class CommonTests
{
[Fact]
public void ResultShouldAlwaysSucceed()
{
Parser.Success(true).TryParse("").ShouldSucceed(true, 0);
Parser.Success(true).TryParse("x").ShouldSucceed(true, 0);
Parser.Success(true).TryParse("xabc").ShouldSucceed(true, 0);
}
[... | mit | C# |
22b7060e63e2b98dd24ef60b6190c158e0ac63a4 | Fix the license | googleapis/doc-templates,googleapis/doc-templates | java/yaml_navtree.cs | java/yaml_navtree.cs | # Copyright 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | <!--
Copyright 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | apache-2.0 | C# |
057516d72024e3d034d464c4b7b26985345d7472 | Resolve #25 | Seaal/disclose | src/Disclose/Handler.cs | src/Disclose/Handler.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Disclose.DiscordClient;
namespace Disclose
{
/// <summary>
/// A base class for all Handlers. Extend this to create your own Handlers.
/// </summary>
public abstract class Handler : IHandler
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Disclose.DiscordClient;
namespace Disclose
{
/// <summary>
/// A base class for all Handlers. Extend this to create your own Handlers.
/// </summary>
public abstract class Handler : IHandler
{
... | mit | C# |
7839e76f9bb8ba2b2cc4ec21566c14acce8faa44 | Add ThrowIfAny method | Archie-Yang/PcscDotNet | src/PcscDotNet/SCardErrorExtensions.cs | src/PcscDotNet/SCardErrorExtensions.cs | using System;
using System.ComponentModel;
using System.Linq;
namespace PcscDotNet
{
public static class SCardErrorExtensions
{
public static void Throw(this SCardError error)
{
throw new PcscException(error);
}
public static void ThrowIfAny(this SCardError error, p... | using System;
using System.ComponentModel;
namespace PcscDotNet
{
public static class SCardErrorExtensions
{
public static void Throw(this SCardError error)
{
throw new PcscException(error);
}
public static void ThrowIfNotSuccess(this SCardError error)
{
... | mit | C# |
dab5288aaa4c775826d9cfd317684bd1537d76f7 | Bump version | dylanplecki/KeycloakOwinAuthentication,joelnet/KeycloakOwinAuthentication,dylanplecki/BasicOidcAuthentication | src/Owin.Security.Keycloak/Properties/AssemblyInfo.cs | src/Owin.Security.Keycloak/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("Ke... | 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("Ke... | mit | C# |
94e46996d280e1803669dad3e9385037fd73c3f3 | Update SkillController.cs - add "Edit" action - add "GetSkillByIdQueryHandler" | NinjaVault/NinjaHive,NinjaVault/NinjaHive | NinjaHive.WebApp/Controllers/SkillsController.cs | NinjaHive.WebApp/Controllers/SkillsController.cs | using System;
using System.Web.Mvc;
using NinjaHive.Contract.Commands;
using NinjaHive.Contract.DTOs;
using NinjaHive.Contract.Queries;
using NinjaHive.Core;
using NinjaHive.WebApp.Services;
namespace NinjaHive.WebApp.Controllers
{
public class SkillsController : Controller
{
private readonly IQueryHa... | using System;
using System.Web.Mvc;
using NinjaHive.Contract.Commands;
using NinjaHive.Contract.DTOs;
using NinjaHive.Contract.Queries;
using NinjaHive.Core;
using NinjaHive.WebApp.Services;
namespace NinjaHive.WebApp.Controllers
{
public class SkillsController : Controller
{
private readonly IQueryHa... | apache-2.0 | C# |
fb082f70c9daebdf1e75d651e398d59d713a79ea | remove lingering code | elastic/elasticsearch-net,elastic/elasticsearch-net | src/Tests/Reproduce/GithubIssue2788.cs | src/Tests/Reproduce/GithubIssue2788.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Elasticsearch.Net;
using FluentAssertions;
using FluentAssertions.Common;
using Nest;
using Tests.Framework;
using Tests.Framework.ManagedElasticsearch.Clusters;
using Xunit;
namespace Tests.Reproduce
{
public class GithubIssue2788 : IClusterFix... | using System;
using System.Collections.Generic;
using System.Linq;
using Elasticsearch.Net;
using FluentAssertions;
using FluentAssertions.Common;
using Nest;
using Tests.Framework;
using Tests.Framework.ManagedElasticsearch.Clusters;
using Xunit;
namespace Tests.Reproduce
{
public class GithubIssue2788 : IClusterFix... | apache-2.0 | C# |
d45940fd7ce9940c6324020c17c59963b8dd62a4 | Update ValuesOut.cs | EricZimmerman/RegistryPlugins | RegistryPlugin.TerminalServerClient/ValuesOut.cs | RegistryPlugin.TerminalServerClient/ValuesOut.cs | using System;
using RegistryPluginBase.Interfaces;
namespace RegistryPlugin.TerminalServerClient
{
public class ValuesOut:IValueOut
{
public ValuesOut(int mru, string host, string user, DateTimeOffset lastmod)
{
MRUPosition = mru;
HostName = host;
Username =... | using System;
using RegistryPluginBase.Interfaces;
namespace RegistryPlugin.TerminalServerClient
{
public class ValuesOut:IValueOut
{
public ValuesOut(int mru, string host, string user, DateTimeOffset lastmod)
{
MRUPosition = mru;
HostName = host;
Username =... | mit | C# |
f3ae10c9e3d202a8a87e44b0735aaa988e6a41f8 | Update build.cake | xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents | Android/Kotlin/build.cake | Android/Kotlin/build.cake |
var TARGET = Argument("t", Argument("target", "Default"));
Task("binderate")
.Does(() =>
{
var configFile = MakeAbsolute(new FilePath("./config.json")).FullPath;
var basePath = MakeAbsolute(new DirectoryPath("./")).FullPath;
var exit = StartProcess("xamarin-android-binderator",
$"--config=\"{configFile}\" --ba... |
var TARGET = Argument("t", Argument("target", "Default"));
Task("binderate")
.Does(() =>
{
var configFile = MakeAbsolute(new FilePath("./config.json")).FullPath;
var basePath = MakeAbsolute(new DirectoryPath("./")).FullPath;
var exit = StartProcess("xamarin-android-binderator",
$"--config=\"{configFile}\" --ba... | mit | C# |
39cfda05167673898faeda0403c2047a2917cd94 | Update FileItem.cs | thijse/DSPhotoSorter | DSPhotoSorter/FileItem.cs | DSPhotoSorter/FileItem.cs | #region DS Photosorter - MIT - (c) 2017 Thijs Elenbaas.
/*
DS Photosorter - tool that processes photos captured with Synology DS Photo
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 withou... | using System;
namespace PhotoSorter
{
public class FileItem
{
public string FileName { get; set; }
public DateTime ModifiedTime { get; set; }
// Determine uniqueness
public long Size { get; set; }
public string QuickHash { get; set; }
public string FullHash { g... | mit | C# |
6278f3d5c4297814d425afa23fa421715800db45 | bump version | QuintSys/Five9ApiClient | src/Five9ApiClient/Five9ApiClient/Properties/AssemblyInfo.cs | src/Five9ApiClient/Five9ApiClient/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Quintsys.Five9ApiClient")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Quintero Systems, Inc.")]
[assembly: AssemblyProduct("Quintsys.Five9ApiClient")]
[assembly: Assembly... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Quintsys.Five9ApiClient")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Quintero Systems, Inc.")]
[assembly: AssemblyProduct("Quintsys.Five9ApiClient")]
[assembly: Assembly... | mit | C# |
00ffd9ad709a5a46f6c366bbe3bcb79ca7be92ea | Fix on breakable body | pavelkouril/ld38,pavelkouril/ld38 | Assets/Scripts/BreakableBody.cs | Assets/Scripts/BreakableBody.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace RUF
{
public class BreakableBody : MonoBehaviour
{
public GameObject OriginalObject;
public GameObject ReplaceObject;
private List<Rigidbody> mBodies;
private List<float> mOffsets;
... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace RUF
{
public class BreakableBody : MonoBehaviour
{
public GameObject OriginalObject;
public GameObject ReplaceObject;
private void OnTriggerExit(Collider other)
{
if (other.Com... | mit | C# |
14389b4f6fc7f8a00d5c3704de9baace92a02684 | Allow app to be hosted in a virtual directory via IIS, e.g. /docs/ | RaynaldM/autohelp,RaynaldM/autohelp,RaynaldM/autohelp,RaynaldM/autohelp,RaynaldM/autohelp,RaynaldM/autohelp | AutoHelp/Views/Dll/Index.cshtml | AutoHelp/Views/Dll/Index.cshtml | @{
ViewBag.Title = "Assembly Docs";
}
@using aspnet_mvc_helpers
@using AutoHelp.Helpers
@model AutoHelp.domain.Models.Assembly
@section scripts
{
@Html.CompressedPartial("_Namespaces")
@Html.CompressedPartial("_Typebaselist")
@Html.CompressedPartial("_Typebase-Classes")
@Html.CompressedPartial("_Ty... | @{
ViewBag.Title = "Assembly Docs";
}
@using aspnet_mvc_helpers
@using AutoHelp.Helpers
@model AutoHelp.domain.Models.Assembly
@section scripts
{
@Html.CompressedPartial("_Namespaces")
@Html.CompressedPartial("_Typebaselist")
@Html.CompressedPartial("_Typebase-Classes")
@Html.CompressedPartial("_Ty... | mit | C# |
026078645330107b0d07166677e9212aa79fcac6 | Add methods to get the overriden values, or use a default value if not overridden. Make them extension methods so that we can call them on null objects. | izrik/ChamberLib,izrik/ChamberLib,izrik/ChamberLib | Overrides.cs | Overrides.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ChamberLib
{
public class Overrides
{
public LightingData? Lighting;
public IMaterial Material;
public IShaderProgram ShaderProgram;
public IShaderStage VertexShader;
public ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ChamberLib
{
public class Overrides
{
public LightingData? Lighting;
public IMaterial Material;
public IShaderProgram ShaderProgram;
public IShaderStage VertexShader;
public ... | lgpl-2.1 | C# |
99d053ef81aca0291a9ad752185172490dbf1b10 | Return a copy of the route values in functional tests. | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | test/WebSites/RoutingWebSite/TestResponseGenerator.cs | test/WebSites/RoutingWebSite/TestResponseGenerator.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.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Mvc;
using Microsoft.Framework.DependencyInj... | // 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.Linq;
using Microsoft.AspNet.Mvc;
using Microsoft.Framework.DependencyInjection;
namespace RoutingWebSite
... | apache-2.0 | C# |
46b379899e0d7299ff8ebb37d3de83701414b9aa | add taiko hd mod (2nd attempt) | NeoAdonis/osu,ppy/osu,ppy/osu,peppy/osu-new,smoogipoo/osu,smoogipooo/osu,peppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu,ppy/osu | osu.Game.Rulesets.Taiko/Mods/TaikoModHidden.cs | osu.Game.Rulesets.Taiko/Mods/TaikoModHidden.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.Bindables;
using osu.Framework.Graphics;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Configuration;
using osu.Game... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Objects.Drawables;
namespace osu.Game.Rulesets.Taiko.Mods
{
public class TaikoModHidden : ModHidden
{
... | mit | C# |
4ff5310473b38e82244c0bdf2b240c16a5438922 | Fix editor crashing when loading a beatmap for an unsupported r… (#7261) | johnneijzen/osu,UselessToucan/osu,ppy/osu,peppy/osu,2yangk23/osu,2yangk23/osu,smoogipooo/osu,UselessToucan/osu,peppy/osu-new,ppy/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,johnneijzen/osu,EVAST9919/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,EVAST9919/osu,smoogipoo/osu,NeoAdonis/osu | osu.Game/Screens/Edit/Compose/ComposeScreen.cs | osu.Game/Screens/Edit/Compose/ComposeScreen.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Rulesets.Edit;
using osu.Game.Screens.Edit.Compose.Components.Timeline;
using osu.Ga... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Rulesets.Edit;
using osu.Game.Screens.Edit.Compose.Components.Timeline;
using osu.Ga... | mit | C# |
cd62ec9a691716882f1542bb207d0bb79059a08f | Change Windows small icon from 24px to 16px | smoogipooo/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework | osu.Framework/Platform/Windows/WindowsDesktopWindow.cs | osu.Framework/Platform/Windows/WindowsDesktopWindow.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.Runtime.InteropServices;
using osu.Framework.Platform.Windows.Native;
namespace osu.Framework.Platform.Windows
{
public class WindowsDeskt... | // 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.Runtime.InteropServices;
using osu.Framework.Platform.Windows.Native;
namespace osu.Framework.Platform.Windows
{
public class WindowsDeskt... | mit | C# |
af09ed1b7fe648930f4bc084e2dd00b7307cf1e1 | Make cursor test scene more automated | NeoAdonis/osu,EVAST9919/osu,peppy/osu-new,smoogipoo/osu,UselessToucan/osu,EVAST9919/osu,johnneijzen/osu,smoogipoo/osu,ppy/osu,peppy/osu,ZLima12/osu,ZLima12/osu,ppy/osu,peppy/osu,peppy/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,2yangk23/osu,johnneijzen/osu,UselessToucan/osu,NeoAdonis/osu,2y... | osu.Game.Rulesets.Osu.Tests/TestSceneGameplayCursor.cs | osu.Game.Rulesets.Osu.Tests/TestSceneGameplayCursor.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 NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Testing.Input;
u... | // 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 NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Osu.UI.Curso... | mit | C# |
bc69ec77678f0a8c718ab7c5d44cd6334275b6ac | Change VSO to VSTS | devlead/website,cake-build-bot/website,SharpeRAD/Cake.Website,cake-build/website,cake-build/website,devlead/website,SharpeRAD/Cake.Website,cake-build-bot/website,devlead/website,cake-build/website | src/Cake.Web/Views/Home/Index.cshtml | src/Cake.Web/Views/Home/Index.cshtml | @model dynamic
@{
ViewBag.Title = "Start";
ViewBag.Menu = "Home";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="jumbotron">
<div class="container">
<h1>What is Cake?</h1>
<p>Cake (C# Make) is a cross platform build automation system with a C# DSL to do things like compiling c... | @model dynamic
@{
ViewBag.Title = "Start";
ViewBag.Menu = "Home";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="jumbotron">
<div class="container">
<h1>What is Cake?</h1>
<p>Cake (C# Make) is a cross platform build automation system with a C# DSL to do things like compiling c... | mit | C# |
fb6e06c5e4aac12f4ec85200cc327f3e3d00a26a | Fix bug | BERef/BibTeXLibrary | BibTeXLibrary/UnexpectedCharacterException.cs | BibTeXLibrary/UnexpectedCharacterException.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BibTeXLibrary
{
public class UnexpectedCharacterException : ParserErrorException
{
#region Private Field
/// <summary>
/// Customed error message.
/// <... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BibTeXLibrary
{
class UnexpectedCharacterException : ParserErrorException
{
#region Private Field
/// <summary>
/// Customed error message.
/// </summar... | mit | C# |
8fcb3cd667a857a08dff2486f4e4598aacddd19c | Use DefaultContractResolver in default JSON response negotiator (#70) | jchannon/Botwin | src/DefaultJsonResponseNegotiator.cs | src/DefaultJsonResponseNegotiator.cs | namespace Botwin
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.Net.Http.Headers;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
public clas... | namespace Botwin
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.Net.Http.Headers;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
public clas... | mit | C# |
c7407e2b358551ce3448fd6af2c420a81cd8f123 | Add Version string to package for support for yaml script | AlexEyler/VSCopyAsPathCommand | CopyAsPathCommand/CopyAsPathCommandPackage.cs | CopyAsPathCommand/CopyAsPathCommandPackage.cs | using System;
using System.Runtime.InteropServices;
using EnvDTE;
using EnvDTE80;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
namespace CopyAsPathCommand
{
[PackageRegistration(UseManagedResourcesOnly = true)]
[ProvideMenuResource("Menus.ctmenu", 1)]
[InstalledProductRe... | using System;
using System.Runtime.InteropServices;
using EnvDTE;
using EnvDTE80;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
namespace CopyAsPathCommand
{
[PackageRegistration(UseManagedResourcesOnly = true)]
[ProvideMenuResource("Menus.ctmenu", 1)]
[InstalledProductRe... | mit | C# |
973093653618fc015d75f0b46cc0fc706d84d32a | Add GetAttributeValue et SetAttribute to IBaseEntity | xaviermonin/EntityCore | EntityCore.Proxy/IBaseEntity.cs | EntityCore.Proxy/IBaseEntity.cs |
namespace EntityCore.Proxy
{
public interface IBaseEntity
{
int Id { get; set; }
T GetAttributeValue<T>(string propertyName);
void SetAttributeValue<T>(string propertyName, T value);
}
}
|
namespace EntityCore.Proxy
{
public interface IBaseEntity
{
int Id { get; set; }
}
}
| mit | C# |
e15a00dec4bc9d0f412bb4fa362162549744be1a | Change PropertyAsObservable to return a BehaviorSubject | MHeasell/Mappy,MHeasell/Mappy | Mappy/ExtensionMethods.cs | Mappy/ExtensionMethods.cs | namespace Mappy
{
using System;
using System.ComponentModel;
using System.Reactive.Linq;
using System.Reactive.Subjects;
public static class ExtensionMethods
{
public static BehaviorSubject<TField> PropertyAsObservable<TSource, TField>(this TSource source, Func<TSource, TField... | namespace Mappy
{
using System;
using System.ComponentModel;
using System.Reactive.Linq;
using System.Reactive.Subjects;
public static class ExtensionMethods
{
public static IObservable<TField> PropertyAsObservable<TSource, TField>(this TSource source, Func<TSource, TField> ac... | mit | C# |
254673e69e7a8ae7be63cd4470cd756fb12d401c | Use flag instead of `StreamWriter` changes | ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework | osu.Framework/Platform/FlushingStream.cs | osu.Framework/Platform/FlushingStream.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.IO;
namespace osu.Framework.Platform
{
/// <summary>
/// A <see cref="FileStream"/> which always flushes to disk on disposal.
/// </summary>
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.IO;
namespace osu.Framework.Platform
{
/// <summary>
/// A <see cref="FileStream"/> which always flushes to disk on disposal.
/// </summary>
... | mit | C# |
0fb33a3feaa9e33a8c1051b11b031badbccfe693 | Rephrase for loop as Select within GenericArgumentResolver.ResolveTypeArguments. | fixie/fixie,JakeGinnivan/fixie,EliotJones/fixie,bardoloi/fixie,bardoloi/fixie,Duohong/fixie,KevM/fixie | src/Fixie/GenericArgumentResolver.cs | src/Fixie/GenericArgumentResolver.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Fixie
{
public class GenericArgumentResolver
{
public static Type[] ResolveTypeArguments(MethodInfo method, object[] parameters)
{
var genericArguments = method.GetGenericArguments... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Fixie
{
public class GenericArgumentResolver
{
public static Type[] ResolveTypeArguments(MethodInfo method, object[] parameters)
{
var genericArguments = method.GetGenericArguments... | mit | C# |
0f121aa9ee9d6cf4c43b83f4cb9a2285ff45bc36 | Update ExtractPhase.cs | Desolath/ConfuserEx3 | Confuser.Protections/Compress/ExtractPhase.cs | Confuser.Protections/Compress/ExtractPhase.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Confuser.Core;
using dnlib.DotNet;
using dnlib.DotNet.MD;
using dnlib.DotNet.Writer;
namespace Confuser.Protections.Compress {
internal class ExtractPhase : ProtectionPhase {
public ExtractPhase(Compressor parent) : base(pa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Confuser.Core;
using dnlib.DotNet;
using dnlib.DotNet.MD;
using dnlib.DotNet.Writer;
namespace Confuser.Protections.Compress {
internal class ExtractPhase : ProtectionPhase {
public ExtractPhase(Compressor parent) : base(pa... | mit | C# |
19ae7a737ff8e9018267502c7f77ce065723ef7d | Rename to reflect which position is meant | Xeeynamo/KingdomHearts | OpenKh.Kh2/Jiminy/Char.cs | OpenKh.Kh2/Jiminy/Char.cs | using System.Collections.Generic;
using System.IO;
using System.Linq;
using Xe.BinaryMapper;
namespace OpenKh.Kh2.Jiminy
{
public class Char
{
public const int MagicCode = 0x48434D4A;
[Data] public byte World { get; set; }
[Data] public byte Picture { get; set; } //index jmface
... | using System.Collections.Generic;
using System.IO;
using System.Linq;
using Xe.BinaryMapper;
namespace OpenKh.Kh2.Jiminy
{
public class Char
{
public const int MagicCode = 0x48434D4A;
[Data] public byte World { get; set; }
[Data] public byte Picture { get; set; } //index jmface
... | mit | C# |
ba865af04b8eed34e6da3d282bce27f3ff38bd5a | Update Program.cs | ffMathy/testability-kata | src/TestabilityKata/Program.cs | src/TestabilityKata/Program.cs | using System;
using System.IO;
namespace TestabilityKata
{
public class Program
{
public static void Main(string[] args)
{
try
{
Logger.Log(LogLevel.Warning, "Some warning - program is starting up or whatever");
MailSender.SendMail("some-... | using System;
using System.IO;
namespace TestabilityKata
{
public class Program
{
public static void Main(string[] args)
{
try
{
Logger.Log(LogLevel.Warning, "Some warning - program is starting up or whatever");
MailSender.SendMail("some-... | mit | C# |
822ee5f981b9f44f5743fe45ea8f80fa807fb4c2 | Add MatchTo2 | bartsokol/Monacs | Monacs.Core/Tuples/Result.Tuple.Extensions.cs | Monacs.Core/Tuples/Result.Tuple.Extensions.cs | using System;
using static Monacs.Core.Result;
namespace Monacs.Core.Tuples
{
public static class Result
{
/* Bind2 */
public static Result<TResult> Bind2<TResult, T1, T2>(this Result<(T1, T2)> result, Func<T1, T2, Result<TResult>> func) =>
result.IsOk ? func(result.Value.Item1, res... | using System;
using static Monacs.Core.Result;
namespace Monacs.Core.Tuples
{
public static class Result
{
/* Bind2 */
public static Result<TResult> Bind2<TResult, T1, T2>(this Result<(T1, T2)> result, Func<T1, T2, Result<TResult>> func) =>
result.IsOk ? func(result.Value.Item1, res... | mit | C# |
ddf623a784929303a345af326032cbab0eb66aff | Make user not-required for DirectEmailHistory | MCLD/greatreadingadventure,MCLD/greatreadingadventure,MCLD/greatreadingadventure,MCLD/greatreadingadventure,MCLD/greatreadingadventure | src/GRA.Data/Model/DirectEmailHistory.cs | src/GRA.Data/Model/DirectEmailHistory.cs | using System.ComponentModel.DataAnnotations;
namespace GRA.Data.Model
{
public class DirectEmailHistory : Abstract.BaseDbEntity
{
public string BodyHtml { get; set; }
public string BodyText { get; set; }
[Required]
[MaxLength(255)]
public string FromEmailAddress { get... | using System.ComponentModel.DataAnnotations;
namespace GRA.Data.Model
{
public class DirectEmailHistory : Abstract.BaseDbEntity
{
public string BodyHtml { get; set; }
public string BodyText { get; set; }
[Required]
[MaxLength(255)]
public string FromEmailAddress { get... | mit | C# |
cc5723faaab81a3cac22fec817916ec08515bea8 | update version number | ekonbenefits/impromptu-interface,LancelotMak/lancelotmakumbila9-description,cgourlay/impromptu-interface,LancelotMak/lancelotmakumbila9-description,ekonbenefits/impromptu-interface | ImpromptuInterface/Properties/AssemblyInfo.cs | ImpromptuInterface/Properties/AssemblyInfo.cs | //
// Copyright 2010 Ekon Benefits
//
// 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 require... | //
// Copyright 2010 Ekon Benefits
//
// 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 require... | apache-2.0 | C# |
206806915a8382cbeae81fba737064be6ad038d3 | Add Read/Write methods | ektrah/nsec | src/Cryptography/Utilities.cs | src/Cryptography/Utilities.cs | using System;
using System.Runtime.CompilerServices;
namespace NSec.Cryptography
{
internal static class Utilities
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static T Read<T>(
this ReadOnlySpan<byte> span)
where T : struct
{
if (span.... | using System;
using System.Runtime.CompilerServices;
namespace NSec.Cryptography
{
internal static class Utilities
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static uint ToBigEndian(
uint value)
{
if (BitConverter.IsLittleEndian)
{
... | mit | C# |
70d6f52a7f36c66418f6d8d3e541e63715f98ed4 | fix #6 | bengreenier/Unity-MenuStack | Assets/Scripts/Navigation/NextMenuNavigator.cs | Assets/Scripts/Navigation/NextMenuNavigator.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace MenuStack.Navigation
{
/// <summary>
/// Represents a menu navigator that navigates the next <see cref="Menu"/> in the <see cref="MenuRoot"/>
/// </summary>
public class NextMenuNavigator... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace MenuStack.Navigation
{
/// <summary>
/// Represents a menu navigator that navigates the next <see cref="Menu"/> in the <see cref="MenuRoot"/>
/// </summary>
public class NextMenuNavigator... | mit | C# |
7cf4248ca443d8ad05a8ffcd5d5cf47ff54fc43d | Fix next page button on listinvoices | btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver | BTCPayServer/Views/Invoice/ListInvoices.cshtml | BTCPayServer/Views/Invoice/ListInvoices.cshtml | @model InvoicesModel
@{
ViewData["Title"] = "Invoices";
}
<section>
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
@Html.Partial("_StatusMessage", Model.StatusMessage)
</div>
</div>
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-headi... | @model InvoicesModel
@{
ViewData["Title"] = "Invoices";
}
<section>
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
@Html.Partial("_StatusMessage", Model.StatusMessage)
</div>
</div>
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-headi... | mit | C# |
5f2f8d17596639f29be78315c668e90295be315a | Complete unit tests | aloisdg/RandomUtils | RandomUtils.Test/Tests.cs | RandomUtils.Test/Tests.cs | using System;
using System.Diagnostics;
using NUnit.Framework;
namespace RandomUtils.Test
{
[TestFixture]
public class Tests
{
private const int Seed = 4;
[Test]
public void TestNextBoolean()
{
Assert.IsTrue(RandomUtils.NextBoolean(new Random(Seed)) && !RandomUtils.NextBoolean(new Random(Seed - 1)));
... | using NUnit.Framework;
namespace RandomUtils.Test
{
[TestFixture]
public class Tests
{
[Test]
public void TestNextBoolean()
{
Assert.IsTrue(RandomUtils.NextBoolean() is bool);
}
}
}
| apache-2.0 | C# |
7ec9ba69c836de6e5ca3fb2198c92a29c8d58885 | Update the assembly information to add the right owners to the package. | AlexGhiondea/OAuth.net,AlexGhiondea/OAuth.net | src/OAuth.net/Properties/AssemblyInfo.cs | src/OAuth.net/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("OA... | 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("OA... | mit | C# |
0438aa69f336b47ddd5121b1ee684dc6cdd5fcd2 | Use range and theory to test a larger range | mattgwagner/CertiPay.Payroll.Common | CertiPay.Payroll.Common.Tests/PayrollFrequencyTests.cs | CertiPay.Payroll.Common.Tests/PayrollFrequencyTests.cs | using NUnit.Framework;
using System;
namespace CertiPay.Payroll.Common.Tests
{
public class PayrollFrequencyTests
{
[Test]
[TestCase(PayrollFrequency.Monthly, 12)]
[TestCase(PayrollFrequency.SemiMonthly, 24)]
[TestCase(PayrollFrequency.Weekly, 52)]
[TestCase(PayrollFreq... | using NUnit.Framework;
using System;
namespace CertiPay.Payroll.Common.Tests
{
public class PayrollFrequencyTests
{
[Test]
[TestCase(PayrollFrequency.Monthly, 12)]
[TestCase(PayrollFrequency.SemiMonthly, 24)]
[TestCase(PayrollFrequency.Weekly, 52)]
[TestCase(PayrollFreq... | mit | C# |
9389376fe76963d86dcbdfb4ff610eff0605a96b | Update tests for loose mode | adamreeve/semver.net | SemVer.Tests/LooseMode.cs | SemVer.Tests/LooseMode.cs | using System;
using Xunit;
using Xunit.Extensions;
namespace SemVer.Tests
{
public class LooseMode
{
[Theory]
[InlineData("=1.2.3", "1.2.3")]
[InlineData("v 1.2.3", "1.2.3")]
[InlineData("1.2.3alpha", "1.2.3-alpha")]
// SemVer spec is ambiguous about whether 01 in a prer... | using System;
using Xunit;
using Xunit.Extensions;
namespace SemVer.Tests
{
public class LooseMode
{
[Theory]
[InlineData("=1.2.3", "1.2.3")]
[InlineData("v 1.2.3", "1.2.3")]
[InlineData("1.2.3alpha", "1.2.3-alpha")]
// SemVer spec is ambiguous about whether 01 in a prer... | mit | C# |
a6a05d09e4562ca809700bd59d4e756013a65ee5 | Return trampoline from lazy function | sharper-library/Sharper.C.Enumerable | Sharper.C.Enumerable/Data/EnumerableModule.cs | Sharper.C.Enumerable/Data/EnumerableModule.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Sharper.C.Control;
namespace Sharper.C.Data
{
using static TrampolineModule;
public static class EnumerableModule
{
public static B FoldLeft<A, B>(this IEnumerable<A> e, B x, Func<B, A, B> f)
=>
e.Aggregate(x, f);
public s... | using System;
using System.Collections.Generic;
using System.Linq;
using Sharper.C.Control;
namespace Sharper.C.Data
{
using static TrampolineModule;
public static class EnumerableModule
{
public static B FoldLeft<A, B>(this IEnumerable<A> e, B x, Func<B, A, B> f)
=>
e.Aggregate(x, f);
public s... | mit | C# |
722a194463e3a1de79ef3cd983b448521590fda2 | Implement IHtmlString in LocalizedString | mios-fi/mios.localization | Localization/LocalizedString.cs | Localization/LocalizedString.cs | using System.Web;
namespace Mios.Localization {
public struct LocalizedString : IHtmlString {
public string Localization { get; private set; }
public string String { get; private set; }
public LocalizedString(string @string, string localization) : this() {
Localization = localization;
String = ... | namespace Mios.Localization {
public struct LocalizedString {
public string Localization { get; private set; }
public string String { get; private set; }
public LocalizedString(string @string, string localization) : this() {
Localization = localization;
String = @string;
}
public override st... | bsd-2-clause | C# |
ea752807f142d1ada00672ee1dc0513ee867cc89 | support null metrics filter in WIthFilter extension method | Liwoj/Metrics.NET,Liwoj/Metrics.NET,Recognos/Metrics.NET,Recognos/Metrics.NET | Src/Metrics/MetricData/MetricsDataProvider.cs | Src/Metrics/MetricData/MetricsDataProvider.cs |
namespace Metrics.MetricData
{
/// <summary>
/// A provider capable of returning the current values for a set of metrics
/// </summary>
public interface MetricsDataProvider : Utils.IHideObjectMembers
{
/// <summary>
/// Returns the current metrics data for the context for which th... |
namespace Metrics.MetricData
{
/// <summary>
/// A provider capable of returning the current values for a set of metrics
/// </summary>
public interface MetricsDataProvider : Utils.IHideObjectMembers
{
/// <summary>
/// Returns the current metrics data for the context for which th... | apache-2.0 | C# |
1290698f24d9d936af00332e947ab90f9c78ee4b | Add GetValue<T>() and SetValue<T>() | whampson/bft-spec,whampson/cascara | Src/WHampson.Cascara/Types/ICascaraPointer.cs | Src/WHampson.Cascara/Types/ICascaraPointer.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# |
4202704e110d11e1d675684d4ff32b10165527de | Add documentaton for SparkMessage | RichLogan/CiscoSpark-UnityProject,RichLogan/CiscoSpark-UnityProject | SparkUnity/Assets/Cisco/Spark/SparkMessage.cs | SparkUnity/Assets/Cisco/Spark/SparkMessage.cs | using System.Collections.Generic;
using UnityEngine.Networking;
namespace Cisco.Spark
{
/// <summary>
/// A message Spark returns in response to an operation.
/// This is usually a wrapping of a SparkError.
/// </summary>
public class SparkMessage
{
/// <summary>
/// The specif... | using System.Collections.Generic;
using UnityEngine.Networking;
namespace Cisco.Spark
{
/// <summary>
/// A message Spark returns in response to an operation.
/// This is usually a wrapping of a SparkError.
/// </summary>
public class SparkMessage
{
/// <summary>
/// The specif... | apache-2.0 | C# |
92d9071574013bce0a16b70b9431b6c6710c5d5b | Fix type name prettyfying for generics | lazlo-bonin/unity-reflection,lazlo-bonin/ludiq-reflection | Reflection/Editor/Extensions.cs | Reflection/Editor/Extensions.cs | using System;
using System.CodeDom;
using System.Linq;
using System.Text.RegularExpressions;
using Microsoft.CSharp;
namespace Ludiq.Reflection.Editor
{
public static class Extensions
{
// Used to print pretty type names for primitives
private static CSharpCodeProvider csharp = new CSharpCodeProvider();
/// ... | using System;
using System.CodeDom;
using System.Linq;
using Microsoft.CSharp;
namespace Ludiq.Reflection.Editor
{
public static class Extensions
{
// Used to print pretty type names for primitives
private static CSharpCodeProvider csharp = new CSharpCodeProvider();
/// <summary>
/// Returns the name for t... | mit | C# |
9bdf913e40c03ad91d7efffefb7ff6d18ccc9187 | change amount -> ratio1 in Blend() | TakeAsh/cs-3DGraphics | 3DGraphics/ColorExtensionMethods.cs | 3DGraphics/ColorExtensionMethods.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;
namespace _3DGraphics {
public static class ColorExtensionMethods {
/// <summary>
/// Blends the specified colors together.
/// </summary>
/// <param nam... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;
namespace _3DGraphics {
public static class ColorExtensionMethods {
/// <summary>
/// Blends the specified colors together.
/// </summary>
/// <param nam... | mit | C# |
c42550a0b7b433ce75fde304e860b7acf3ac54e2 | set keychain access as less restrictive | HTBox/MobileKidsIdApp,HTBox/MobileKidsIdApp,HTBox/MobileKidsIdApp,HTBox/MobileKidsIdApp | src/MobileKidsIdApp/MobileKidsIdApp.iOS/AppDelegate.cs | src/MobileKidsIdApp/MobileKidsIdApp.iOS/AppDelegate.cs | using Foundation;
using MobileKidsIdApp.iOS.Platform;
using MobileKidsIdApp.Platform;
using Security;
using UIKit;
using Unity;
using Xamarin.Essentials;
namespace MobileKidsIdApp.iOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the appl... | using Foundation;
using MobileKidsIdApp.iOS.Platform;
using MobileKidsIdApp.Platform;
using Security;
using UIKit;
using Unity;
using Xamarin.Essentials;
namespace MobileKidsIdApp.iOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the appl... | apache-2.0 | C# |
d43b31be1918120659a2170210872731fb6d0687 | Remove V1 code to send notifcations to employer and providers | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments | src/SFA.DAS.Commitments.Notification.WebJob/Program.cs | src/SFA.DAS.Commitments.Notification.WebJob/Program.cs | using System;
using System.Threading.Tasks;
using NLog;
using SFA.DAS.Commitments.Notification.WebJob.Configuration;
using SFA.DAS.Commitments.Notification.WebJob.DependencyResolution;
using SFA.DAS.NLog.Logger;
namespace SFA.DAS.Commitments.Notification.WebJob
{
// To learn more about Microsoft Azure WebJobs S... | using System;
using System.Threading.Tasks;
using NLog;
using SFA.DAS.Commitments.Notification.WebJob.Configuration;
using SFA.DAS.Commitments.Notification.WebJob.DependencyResolution;
using SFA.DAS.NLog.Logger;
namespace SFA.DAS.Commitments.Notification.WebJob
{
// To learn more about Microsoft Azure WebJobs S... | mit | C# |
abcbc45761e168c0ddbbae2da191319c05c5caa7 | Raise authentication server prerelease version. | affecto/dotnet-AuthenticationServer | Source/AuthenticationServer/Properties/AssemblyInfo.cs | Source/AuthenticationServer/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("Affecto Authentication Server")]
[assembly: AssemblyProduct("Affecto Authentication Server")]
[assembly: AssemblyCompany("Affecto")]
[assembly: AssemblyVersion("2.1.0.0")]
[assembly: AssemblyFileVersion("2.1.0.0")]
[assembly: A... | using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("Affecto Authentication Server")]
[assembly: AssemblyProduct("Affecto Authentication Server")]
[assembly: AssemblyCompany("Affecto")]
[assembly: AssemblyVersion("2.1.0.0")]
[assembly: AssemblyFileVersion("2.1.0.0")]
[assembly: A... | mit | C# |
c7783e70fc76fb2a7972ca2ac0a99eb5a67cf2fb | Make SyslogNet.Client CLS-compliant | YallaDotNet/syslog | SyslogNet.Client/Transport/SyslogEncryptedTcpSender.cs | SyslogNet.Client/Transport/SyslogEncryptedTcpSender.cs | using System;
using System.Net.Security;
using System.Security;
using System.Security.Cryptography.X509Certificates;
using System.Threading;
namespace SyslogNet.Client.Transport
{
public class SyslogEncryptedTcpSender : SyslogTcpSender
{
protected int IOTimeout;
public Boolean IgnoreTLSChainErrors { ... | using System;
using System.Net.Security;
using System.Security;
using System.Security.Cryptography.X509Certificates;
using System.Threading;
namespace SyslogNet.Client.Transport
{
public class SyslogEncryptedTcpSender : SyslogTcpSender
{
protected int IOTimeout;
public Boolean IgnoreTLSChainErrors { ... | mit | C# |
88e0c53dffcafdac214b1eaf466de9586417c81b | Fix constructor visibility for plugin | pleonex/NitroDebugger,pleonex/NitroDebugger,pleonex/NitroDebugger | NitroDebugger/Plugin.cs | NitroDebugger/Plugin.cs | //
// Plugin.cs
//
// Author:
// Benito Palacios Sánchez <benito356@gmail.com>
//
// Copyright (c) 2015 Benito Palacios Sánchez
//
// 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,... | //
// Plugin.cs
//
// Author:
// Benito Palacios Sánchez <benito356@gmail.com>
//
// Copyright (c) 2015 Benito Palacios Sánchez
//
// 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,... | mit | C# |
b142440f83ba0c11ea14cd266cfb657fbd119395 | Revert access modifier change and update its comment | botaberg/coreclr,poizan42/coreclr,parjong/coreclr,yizhang82/coreclr,kyulee1/coreclr,yizhang82/coreclr,kyulee1/coreclr,kyulee1/coreclr,JosephTremoulet/coreclr,rartemev/coreclr,dpodder/coreclr,wateret/coreclr,hseok-oh/coreclr,botaberg/coreclr,poizan42/coreclr,kyulee1/coreclr,JosephTremoulet/coreclr,krk/coreclr,yizhang82/... | src/mscorlib/shared/System/UnitySerializationHolder.cs | src/mscorlib/shared/System/UnitySerializationHolder.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;
using System.Reflection;
namespace System
{
/// <summary>
/// Holds Nul... | // 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;
using System.Reflection;
namespace System
{
/// <summary>
/// Holds Nul... | mit | C# |
71914b2aa1ead163c400f38fc7340344c1bd8a5e | Update JunianTriajianto.cs short bio (#277) | planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin | src/Firehose.Web/Authors/JunianTriajianto.cs | src/Firehose.Web/Authors/JunianTriajianto.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class JunianTriajianto : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Junian";
public string LastName => "... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class JunianTriajianto : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Junian";
public string LastName => "... | mit | C# |
e5f09a1420d350530478fac447664f4b4e444a77 | Fix SqlTemplates concurrency | NikRimington/Umbraco-CMS,robertjf/Umbraco-CMS,tcmorris/Umbraco-CMS,marcemarc/Umbraco-CMS,KevinJump/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,arknu/Umbraco-CMS,hfloyd/Umbraco-CMS,rasmuseeg/Umbraco-CMS,rasmuseeg/Umbraco-CMS,tcmorris/Umbraco-CMS,abryukhov/Umbraco-CMS,abjerner/Umbraco-CMS,tcmorris/Umbraco-CMS,JimBobSquareP... | src/Umbraco.Core/Persistence/SqlTemplates.cs | src/Umbraco.Core/Persistence/SqlTemplates.cs | using System;
using System.Collections.Concurrent;
using NPoco;
namespace Umbraco.Core.Persistence
{
public class SqlTemplates
{
private readonly ConcurrentDictionary<string, SqlTemplate> _templates = new ConcurrentDictionary<string, SqlTemplate>();
private readonly ISqlContext _sqlContext;
... | using System;
using System.Collections.Generic;
using NPoco;
namespace Umbraco.Core.Persistence
{
public class SqlTemplates
{
private readonly Dictionary<string, SqlTemplate> _templates = new Dictionary<string, SqlTemplate>();
private readonly ISqlContext _sqlContext;
public SqlTempla... | mit | C# |
eb7e4389c05340530cc336ddef3dd935a015ac68 | bump to 1.3.1 | ronin1/urbanairsharp | src/UrbanAirSharp/Properties/AssemblyInfo.cs | src/UrbanAirSharp/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
// 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;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
// 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# |
10c3edd6f35158beef14edd76c54660a8d97e4a8 | Mark connectionstrings.json as optional | JamieMagee/GovUK-Pulse,JamieMagee/GovUK-Pulse,JamieMagee/GovUK-Pulse | GovUk/Startup.cs | GovUk/Startup.cs | using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace GovUk
{
public class Startup
{
public Startup(IHostingEnvironment env)
{
// Set up... | using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace GovUk
{
public class Startup
{
public Startup(IHostingEnvironment env)
{
// Set up... | mit | C# |
dc2d20f0e6ae1e5ef8ed050fb1e6f0c6b338eb77 | Add Catch to IAsyncSpec to be able to use it in async tests | robfe/SpecLight | SpecLight/IAsyncSpec.cs | SpecLight/IAsyncSpec.cs | using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace SpecLight
{
/// <summary>
/// When you call any Async method on a Spec, you get back an IAsyncSpec instead of a Spec. The only difference is that the <see cref... | using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace SpecLight
{
/// <summary>
/// When you call any Async method on a Spec, you get back an IAsyncSpec instead of a Spec. The only difference is that the <see cref... | mit | C# |
e59490779bc36a637b1663e03e282cb4e39bffd3 | バージョン番号更新。 | YKSoftware/YKToolkit.Controls | YKToolkit.Controls/Properties/AssemblyInfo.cs | YKToolkit.Controls/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
[assembly: AssemblyTitle("YKToolkit.Controls")]
#if NET4
[assembly: AssemblyDescription(".NET Framework 4.0 用 の WPF カスタムコントロールライブラリです。")]
#else
[assembly: AssemblyDescription("WPF カスタムコントロールライブラリです。")]
#endif
[assembly: Ass... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
[assembly: AssemblyTitle("YKToolkit.Controls")]
#if NET4
[assembly: AssemblyDescription(".NET Framework 4.0 用 の WPF カスタムコントロールライブラリです。")]
#else
[assembly: AssemblyDescription("WPF カスタムコントロールライブラリです。")]
#endif
[assembly: Ass... | mit | C# |
1e88db6d86471ca25810ab589ac1a41aeafac9e6 | Update JSON.cs | Ryanb58/JSONTool | JSONTool/JSON.cs | JSONTool/JSON.cs | namespace JSONTool
{
public class JSON
{
public string minify(string json)
{
//Return the json string.
return System.Text.RegularExpressions.Regex.Replace(json, "(\"(?:[^\"\\\\]|\\\\.)*\")|\\s+", "$1");
}
}
}
| namespace JSONTool
{
public class JSON
{
public static string minify(string json)
{
//Return the json string.
return System.Text.RegularExpressions.Regex.Replace(json, "(\"(?:[^\"\\\\]|\\\\.)*\")|\\s+", "$1");
}
}
}
| mit | C# |
ffccaf60c297fc4fddbdd907268c74c5cafa05b3 | comment clean up | smeehan82/Hermes,smeehan82/Hermes,smeehan82/Hermes | src/Hermes.Web/Controllers/BlogsController.cs | src/Hermes.Web/Controllers/BlogsController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
using Microsoft.Extensions.Logging;
using Hermes.Content.Blogs;
namespace Hermes.Web.Controllers
{
[Route("api/blogs")]
public class BlogsController : Controller
{
#region C... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
using Microsoft.Extensions.Logging;
using Hermes.Content.Blogs;
namespace Hermes.Web.Controllers
{
[Route("api/blogs")]
public class BlogsController : Controller
{
#region C... | mit | C# |
93caa2db629e97e6c11f78e152e8ddc28de87d34 | Add FNV1a-32 description to example usage | bhannan/csharp-bloom-filter | BloomFilter/ExampleUsage.cs | BloomFilter/ExampleUsage.cs | using System.Collections.Generic;
using System.Security.Cryptography;
namespace BloomFilter
{
class ExampleUsage
{
static void Main(string[] args)
{
//standard usage using SHA1 hashing
using (var bf = new BloomFilter<string>(MaxItems: 1000, FalsePositiveProbability: .00... | using System.Collections.Generic;
using System.Security.Cryptography;
namespace BloomFilter
{
class ExampleUsage
{
static void Main(string[] args)
{
//standard usage using SHA1 hashing
using (var bf = new BloomFilter<string>(MaxItems: 1000, FalsePositiveProbability: .00... | mit | C# |
b7edc59442bb82dda4ed1295f38a9e2cc8e451cf | Remove redundant configuration-checking tests from ACallToTests | FakeItEasy/FakeItEasy,thomaslevesque/FakeItEasy,adamralph/FakeItEasy,FakeItEasy/FakeItEasy,thomaslevesque/FakeItEasy,blairconrad/FakeItEasy,adamralph/FakeItEasy,blairconrad/FakeItEasy | tests/FakeItEasy.Tests/ACallToTests.cs | tests/FakeItEasy.Tests/ACallToTests.cs | namespace FakeItEasy.Tests
{
using System;
using System.Collections.Generic;
using System.Linq;
using FluentAssertions;
using Xunit;
public class ACallToTests
{
public static IEnumerable<object[]> CallSpecificationActions =>
TestCases.FromObject<Action<IFoo>>(... | namespace FakeItEasy.Tests
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using FakeItEasy.Configuration;
using FluentAssertions;
using Xunit;
public class ACallToTests
: ConfigurableServiceLocatorTestBase
{
... | mit | C# |
b551cb6d5decfdea8ab820042e2e46daf8220964 | build 1.5.8 | agileharbor/Netco | src/GlobalAssemblyInfo.cs | src/GlobalAssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[ assembly : AssemblyProduct( "Netco" ) ]
[ assembly : Asse... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[ assembly : AssemblyProduct( "Netco" ) ]
[ assembly : Asse... | bsd-3-clause | C# |
529cd84a9f8aeae49db8317780e83a8d157da6f0 | add DataPtr so the mapped Data can be accessed without copying | gstreamer-sharp/gstreamer-sharp,freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp,gstreamer-sharp/gstreamer-sharp,freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp,GStreamer/gstreamer-sharp,GStreamer/gstreamer-sharp,freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp,GStreamer/gstreamer-sharp,gstream... | sources/custom/MapInfo.cs | sources/custom/MapInfo.cs | //
// MapInfo.cs
//
// Authors:
// Stephan Sundermann <stephansundermann@gmail.com>
//
// Copyright (C) 2014 Stephan Sundermann
//
// 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; eit... | //
// MapInfo.cs
//
// Authors:
// Stephan Sundermann <stephansundermann@gmail.com>
//
// Copyright (C) 2014 Stephan Sundermann
//
// 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; eit... | lgpl-2.1 | C# |
2dfd37779c53e00743cf15b66b0ff30d285b1f82 | increment minor to 2.2.0 | adamralph/xbehave.net,xbehave/xbehave.net | src/VersionInfo.2.cs | src/VersionInfo.2.cs | // <copyright file="VersionInfo.2.cs" company="xBehave.net contributors">
// Copyright (c) xBehave.net contributors. All rights reserved.
// </copyright>
using System.Reflection;
[assembly: AssemblyVersion("2.2.0.0")]
[assembly: AssemblyFileVersion("2.2.0.0")]
[assembly: AssemblyInformationalVersion("2.2.0")... | // <copyright file="VersionInfo.2.cs" company="xBehave.net contributors">
// Copyright (c) xBehave.net contributors. All rights reserved.
// </copyright>
using System.Reflection;
[assembly: AssemblyVersion("2.1.0.0")]
[assembly: AssemblyFileVersion("2.1.0.0")]
[assembly: AssemblyInformationalVersion("2.1.0")... | mit | C# |
f44b7d152dcbf1eb96d5cee2312d774d3e09c3ff | order by descending comments | fullstack101/SuggestionSystem,fullstack101/SuggestionSystem,fullstack101/SuggestionSystem,fullstack101/SuggestionSystem | Source/SuggestionSystem/Services/SuggestionSystem.Services.Data/CommentService.cs | Source/SuggestionSystem/Services/SuggestionSystem.Services.Data/CommentService.cs | namespace SuggestionSystem.Services.Data
{
using System;
using SuggestionSystem.Data.Models;
using SuggestionSystem.Services.Data.Contracts;
using SuggestionSystem.Data.Repositories;
using System.Linq;
using Web.DataTransferModels.Comment;
public class CommentService : ICommentService
... | namespace SuggestionSystem.Services.Data
{
using System;
using SuggestionSystem.Data.Models;
using SuggestionSystem.Services.Data.Contracts;
using SuggestionSystem.Data.Repositories;
using System.Linq;
using Web.DataTransferModels.Comment;
public class CommentService : ICommentService
... | mit | C# |
1823358b0e530f642dacc27466c7d4f2f6862dc0 | Bump to v0.23.0 | danielwertheim/mycouch,danielwertheim/mycouch | src/SharedAssemblyInfo.cs | src/SharedAssemblyInfo.cs | using System.Runtime.InteropServices;
using System.Reflection;
#if DEBUG
[assembly: AssemblyProduct("MyCouch (Debug)")]
[assembly: AssemblyConfiguration("Debug")]
#else
[assembly: AssemblyProduct("MyCouch (Release)")]
[assembly: AssemblyConfiguration("Release")]
#endif
[assembly: AssemblyDescription("MyCo... | using System.Runtime.InteropServices;
using System.Reflection;
#if DEBUG
[assembly: AssemblyProduct("MyCouch (Debug)")]
[assembly: AssemblyConfiguration("Debug")]
#else
[assembly: AssemblyProduct("MyCouch (Release)")]
[assembly: AssemblyConfiguration("Release")]
#endif
[assembly: AssemblyDescription("MyCo... | mit | C# |
d5edcc7febde78beb6da3cb1e73a59454d08fa39 | remove existing fix | GHPReporter/Ghpr.Core,GHPReporter/Ghpr.Core,GHPReporter/Ghpr.Core | Ghpr.Core/Helpers/ItemInfoHelper.cs | Ghpr.Core/Helpers/ItemInfoHelper.cs | using System.Collections.Generic;
using System.IO;
using System.Linq;
using Ghpr.Core.Common;
using Newtonsoft.Json;
namespace Ghpr.Core.Helpers
{
public static class ItemInfoHelper
{
public static void SaveItemInfo(string path, string filename, ItemInfo itemInfo, bool removeExisting = true)
{... | using System.Collections.Generic;
using System.IO;
using System.Linq;
using Ghpr.Core.Common;
using Newtonsoft.Json;
namespace Ghpr.Core.Helpers
{
public static class ItemInfoHelper
{
public static void SaveItemInfo(string path, string filename, ItemInfo itemInfo, bool removeExisting = true)
{... | mit | C# |
0922d11f13b179660b80f989eaf16763fa45f9d2 | Remove the debugging log | Unity-Technologies/editorconfig-visualstudio,Unity-Technologies/editorconfig-visualstudio,jedmao/editorconfig-visualstudio,jedmao/editorconfig-visualstudio | Plugin/Plugin.cs | Plugin/Plugin.cs | using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
namespace EditorConfig.VisualStudio
{
/// <summary>
/// This plugin attaches to an editor instance and updates its settings at
/// the appropriate times
/// </summary>
internal class Plugin
{
public Plugin(IWpf... | using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
namespace EditorConfig.VisualStudio
{
/// <summary>
/// This plugin attaches to an editor instance and updates its settings at
/// the appropriate times
/// </summary>
internal class Plugin
{
public Plugin(IWpf... | bsd-2-clause | C# |
10c81586239d8e336409e3bb96e495c1ebbe7376 | tidy up | edyoung/prequel | Prequel/Checker.cs | Prequel/Checker.cs | using Microsoft.SqlServer.TransactSql.ScriptDom;
using System;
using System.Collections.Generic;
using System.IO;
namespace Prequel
{
public class Checker
{
private Arguments arguments;
public Checker(Arguments arguments)
{
this.arguments = arguments;
}
pu... | using Microsoft.SqlServer.TransactSql.ScriptDom;
using System;
using System.Collections.Generic;
using System.IO;
namespace Prequel
{
public class Checker
{
private Arguments arguments;
public Checker(Arguments arguments)
{
this.arguments = arguments;
}
pu... | mit | C# |
fbec18c94bb79c9aae9c2c074a5484e13627d083 | Set internals visible to DynamicProxyGenAssembly2 for Moq | mattherman/MbDotNet,mattherman/MbDotNet,SuperDrew/MbDotNet | MbDotNet/Properties/AssemblyInfo.cs | MbDotNet/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("Mb... | 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("Mb... | mit | C# |
e12235885ac0ce0505b2023fb95dc7c7ac7f8f46 | Implement the operators in MPoint2 | charlenni/Mapsui,charlenni/Mapsui | Mapsui/MPoint2.cs | Mapsui/MPoint2.cs | using Mapsui.Utilities;
namespace Mapsui;
public class MPoint2
{
public MPoint2(double x, double y)
{
X = x;
Y = y;
}
public MPoint2(MPoint2 point)
{
X = point.X;
Y = point.Y;
}
public double X { get; set; }
public double Y { get; set; }
public MRe... | using Mapsui.Utilities;
namespace Mapsui;
public class MPoint2
{
public double X { get; set; }
public double Y { get; set; }
public MRect MRect => new MRect(X, Y, X, Y);
public MPoint Copy()
{
return new MPoint(X, Y);
}
public double Distance(MPoint point)
{
return A... | mit | C# |
dad1d2aecf8c988f7e013a631c7d2f8c49f06ff8 | Update Applied.cs | datanets/kask-kiosk,datanets/kask-kiosk | Models/Applied.cs | Models/Applied.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Empty.Models
{
public class Applied
{
public int Applicant_ID { get; set; }
public int Application_ID { get; set; }
public int JobID { get; set; }
public DateTime dateApplied { get; se... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Empty.Models
{
public class Applied
{
public int applicant_ID { get; set; }
public int application_ID { get; set; }
public int jobID { get; set; }
//date type??
public string ... | mit | C# |
a4fddf77df0cae50013e06630323e6281925b116 | Add GroupTestAsync | ats124/backlog4net | src/Backlog4net.Test/GroupMethodsTest.cs | src/Backlog4net.Test/GroupMethodsTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.Remoting;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Backlog4net.Test
{
using Api;
using Api.Option;
using Backlog4net.Internal.Json;... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.Remoting;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Backlog4net.Test
{
using Api;
using Api.Option;
using Backlog4net.Internal.Json;... | mit | C# |
df7ee53fa0d6d7cc6f0266ab77b994fdd9c01535 | load the parser assembly with Assembly.LoadWithPartialName to support the GAC | boo/boo-lang,boo/boo-lang,boo/boo-lang,boo/boo-lang,boo/boo-lang,boo/boo-lang,boo/boo-lang | src/Boo.Lang.Compiler/Pipelines/Parse.cs | src/Boo.Lang.Compiler/Pipelines/Parse.cs | #region license
// Copyright (c) 2004, Rodrigo B. de Oliveira (rbo@acm.org)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above co... | #region license
// Copyright (c) 2004, Rodrigo B. de Oliveira (rbo@acm.org)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the... | bsd-3-clause | C# |
c1bd154eb60b3e1877e6e480d30f0a8ab7de99a6 | return AsyncTask when you invoke Async.Run | mdavid/SuperSocket,mdavid/SuperSocket,mdavid/SuperSocket | mainline/Common/Async.cs | mainline/Common/Async.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SuperSocket.Common
{
public static class Async
{
public static Task Run(Action task)
{
return Run(task, TaskCreationOptions.None);
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SuperSocket.Common
{
public static class Async
{
public static void Run(Action task)
{
Run(task, TaskCreationOptions.None);
}
... | apache-2.0 | C# |
e963d21ecff6311e9a27199a94ec0ce4d2f71df2 | Clean up code | mike-rowley/XamarinMediaManager,mike-rowley/XamarinMediaManager | MediaManager/Platforms/Uap/Media/MediaItemExtensions.cs | MediaManager/Platforms/Uap/Media/MediaItemExtensions.cs | using System;
using System.IO;
using System.Threading.Tasks;
using MediaManager.Library;
using MediaManager.Media;
using Windows.Media.Core;
using Windows.Media.Playback;
using Windows.Storage;
namespace MediaManager.Platforms.Uap.Media
{
public static class MediaItemExtensions
{
public static async T... | using System;
using System.IO;
using System.Threading.Tasks;
using MediaManager.Library;
using MediaManager.Media;
using Windows.Media.Core;
using Windows.Media.Playback;
using Windows.Storage;
namespace MediaManager.Platforms.Uap.Media
{
public static class MediaItemExtensions
{
public static async T... | mit | C# |
0a57c043acc336641cf0c013ca6dc5cf0014b94b | Fix whitespace in tests file | SharpeRAD/Cake.Services | src/Services.Tests/Tests/ServiceTests.cs | src/Services.Tests/Tests/ServiceTests.cs | #region Using Statements
using System;
using System.IO;
using System.Collections.ObjectModel;
using System.ServiceProcess;
using Xunit;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
using Cake.Core.Diagnostics;
using Cake.Core.IO;
using Cak... | #region Using Statements
using System;
using System.IO;
using System.Collections.ObjectModel;
using System.ServiceProcess;
using Xunit;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
using Cake.Core.Diagnostics;
using Cake.Core.IO;
using Cak... | mit | C# |
18ec9068e86b3dc60ad29eaeaad496bcf4694dd4 | Bump the patch version. | SparkPost/csharp-sparkpost,kirilsi/csharp-sparkpost,darrencauthon/csharp-sparkpost,kirilsi/csharp-sparkpost,ZA1/csharp-sparkpost,darrencauthon/csharp-sparkpost | src/SparkPost/Properties/AssemblyInfo.cs | src/SparkPost/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("Sp... | 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("Sp... | apache-2.0 | C# |
12809cdff162fd6ca0e522f544ac2b46216d9c91 | add s6 | Mooophy/158212 | sudoku/Library/Sudoku6.cs | sudoku/Library/Sudoku6.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Library
{
public class Sudoku6 : Library.Matrix
{
public Sudoku6()
: base(6, new RRangeSet(), new CRangeSet())
{ }
public Sudoku6(int[,] data)
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Library
{
public class Sudoku6
{
public class RowRangeSet : HashSet<Matrix.Range>
{
public RowRangeSet()
{
this.Add(new Matrix.R... | mit | C# |
a7e2362fbeeb6c4d16f64ea66f3b805c4bb0674e | Make Range a more wholesome implementation (#65) | sebastienros/esprima-dotnet,sebastienros/esprima-dotnet | src/Esprima/Ast/Range.cs | src/Esprima/Ast/Range.cs | using System;
using System.Globalization;
namespace Esprima.Ast
{
public readonly struct Range : IEquatable<Range>
{
public readonly int Start;
public readonly int End;
public Range(int start, int end)
{
Start = start >= 0 ? start : throw new ArgumentOutOfRangeExce... | namespace Esprima.Ast
{
public struct Range
{
public readonly int Start;
public readonly int End;
public Range(int start, int end)
{
Start = start;
End = end;
}
}
} | bsd-3-clause | C# |
9bfcd0db7d9c3a00dd677289ba23e16df451541a | Fix integration test build error due to overprotective warning. (#1540) | PomeloFoundation/Pomelo.EntityFrameworkCore.MySql,PomeloFoundation/Pomelo.EntityFrameworkCore.MySql | test/EFCore.MySql.IntegrationTests/Program.cs | test/EFCore.MySql.IntegrationTests/Program.cs | using System;
using Pomelo.EntityFrameworkCore.MySql.IntegrationTests.Commands;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Pomelo.EntityFrameworkCore.MySql.Tests;
namespace Pomelo.EntityFrameworkCore.MySql.I... | using System;
using Pomelo.EntityFrameworkCore.MySql.IntegrationTests.Commands;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Pomelo.EntityFrameworkCore.MySql.Tests;
namespace Pomelo.EntityFrameworkCore.MySql.I... | mit | C# |
04dc2f8dd3d4c6a630559c7af3f8cfa26ab28091 | Add ability to match nearest DisplayMode | smoogipooo/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework | osu.Framework/Platform/Display.cs | osu.Framework/Platform/Display.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.Drawing;
using System.Linq;
namespace osu.Framework.Platform
{
/// <summary>
/// Represents a physical display device on the current 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 System;
using System.Drawing;
namespace osu.Framework.Platform
{
/// <summary>
/// Represents a physical display device on the current system.
/// </su... | mit | C# |
a04e6d22bae679f75debd648516a5ccf4fe918f7 | add equals to intstr | kubernetes-client/csharp,kubernetes-client/csharp | src/IntstrIntOrString.cs | src/IntstrIntOrString.cs | using System;
using Newtonsoft.Json;
namespace k8s.Models
{
internal class IntOrStringConverter : JsonConverter
{
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
var s = (value as IntstrIntOrString)?.Value;
if (int... | using System;
using Newtonsoft.Json;
namespace k8s.Models
{
internal class IntOrStringConverter : JsonConverter
{
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
var s = (value as IntstrIntOrString)?.Value;
if (int... | apache-2.0 | C# |
b74402f734f834e3b1752f57eda1269f484ec37d | Bump version v1.1.5 | karronoli/tiny-sato | TinySato/Properties/AssemblyInfo.cs | TinySato/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("TinySato")]
[assembly: AssemblyDescription("You can construct and send SBPL packet to Sato printer. Sat... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("TinySato")]
[assembly: AssemblyDescription("You can construct and send SBPL packet to Sato printer. Sat... | apache-2.0 | C# |
b7b54d1c9a840773c3cccdbac167892cec10914a | Switch to version 1.4.6 | Abc-Arbitrage/Zebus,biarne-a/Zebus | src/SharedVersionInfo.cs | src/SharedVersionInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("1.4.6")]
[assembly: AssemblyFileVersion("1.4.6")]
[assembly: AssemblyInformationalVersion("1.4.6")]
| using System.Reflection;
[assembly: AssemblyVersion("1.4.6")]
[assembly: AssemblyFileVersion("1.4.6")]
[assembly: AssemblyInformationalVersion("1.4.6-subsfix01")]
| mit | C# |
3a61099829886b48d8f0ca130794fab7dba4320c | Adjust the namespace for the test program | mathnet/mathnet-numerics,mathnet/mathnet-numerics,shaia/mathnet-numerics,shaia/mathnet-numerics,mathnet/mathnet-numerics,mathnet/mathnet-numerics,mathnet/mathnet-numerics,shaia/mathnet-numerics,shaia/mathnet-numerics,shaia/mathnet-numerics | src/UnitTests/Program.cs | src/UnitTests/Program.cs | // <copyright file="Program.cs" company="Math.NET">
// Math.NET Numerics, part of the Math.NET Project
// http://numerics.mathdotnet.com
// http://github.com/mathnet/mathnet-numerics
//
// Copyright (c) 2009-2017 Math.NET
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this soft... | // <copyright file="Program.cs" company="Math.NET">
// Math.NET Numerics, part of the Math.NET Project
// http://numerics.mathdotnet.com
// http://github.com/mathnet/mathnet-numerics
//
// Copyright (c) 2009-2017 Math.NET
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this soft... | mit | C# |
5fba9e1aa85aa7ef2e1e7125975073641b0e5c15 | Fix generic constraint for ValueType (from ValueType to EquatableByValue). | tpierrain/Value | Value/ValueType.cs | Value/ValueType.cs | // // --------------------------------------------------------------------------------------------------------------------
// // <copyright file="ValueType.cs">
// // Copyright 2016
// // Thomas PIERRAIN (@tpierrain)
// // Licensed under the Apache License, Version 2.0 (the "License");
// // ... | // // --------------------------------------------------------------------------------------------------------------------
// // <copyright file="ValueType.cs">
// // Copyright 2016
// // Thomas PIERRAIN (@tpierrain)
// // Licensed under the Apache License, Version 2.0 (the "License");
// // ... | apache-2.0 | C# |
fd14b1d992a0a87837d079366806859d693e4747 | Add test | sakapon/Tools-2016 | FileReplacer/UnitTest/FileHelperTest.cs | FileReplacer/UnitTest/FileHelperTest.cs | using System;
using System.IO;
using System.Text;
using FileReplacer;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTest
{
[TestClass]
public class FileHelperTest
{
[TestMethod]
public void ReplaceContent_UTF8()
{
ReplaceContent("Replac... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTest
{
[TestClass]
public class FileHelperTest
{
[TestMethod]
public void TestMethod1()
{
}
}
}
| mit | C# |
b6b5c84f9151e801b3c7c8f6e306dc0d0a7e1211 | Set TCP keepalive for all OSes. Fixes #746 | mysql-net/MySqlConnector,mysql-net/MySqlConnector | src/MySqlConnector/Utilities/SocketExtensions.cs | src/MySqlConnector/Utilities/SocketExtensions.cs | using System;
using System.Net.Sockets;
using System.Runtime.InteropServices;
namespace MySqlConnector.Utilities
{
internal static class SocketExtensions
{
#if !NETSTANDARD2_1 && !NETCOREAPP3_0
public static SocketAwaitable ReceiveAsync(this Socket socket, SocketAwaitable awaitable)
{
awaitable.Reset();
if... | using System;
using System.Net.Sockets;
using System.Runtime.InteropServices;
namespace MySqlConnector.Utilities
{
internal static class SocketExtensions
{
#if !NETSTANDARD2_1 && !NETCOREAPP3_0
public static SocketAwaitable ReceiveAsync(this Socket socket, SocketAwaitable awaitable)
{
awaitable.Reset();
if... | mit | C# |
d40117ec93eaaf2ce13cf4ccf0c8290f898a2977 | fix up | jefking/King.Azure.Imaging,jefking/King.Azure.Imaging,jefking/King.Azure.Imaging | King.Azure.Imaging/ImagePreProcessor.cs | King.Azure.Imaging/ImagePreProcessor.cs | namespace King.Azure.Imaging
{
using King.Azure.Data;
using King.Azure.Imaging.Entities;
using King.Azure.Imaging.Models;
using Newtonsoft.Json;
using System;
using King.Mapper;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;... | namespace King.Azure.Imaging
{
using King.Azure.Data;
using King.Azure.Imaging.Entities;
using King.Azure.Imaging.Models;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class Imag... | mit | C# |
960a4a07bb4c6d3899a18200d85f8a08df3dd076 | Edit it | sta/websocket-sharp,2Toad/websocket-sharp,2Toad/websocket-sharp,2Toad/websocket-sharp,jogibear9988/websocket-sharp,sta/websocket-sharp,jogibear9988/websocket-sharp,jogibear9988/websocket-sharp,jogibear9988/websocket-sharp,2Toad/websocket-sharp,sta/websocket-sharp,sta/websocket-sharp | websocket-sharp/Net/HttpBasicIdentity.cs | websocket-sharp/Net/HttpBasicIdentity.cs | #region License
/*
* HttpBasicIdentity.cs
*
* This code is derived from HttpListenerBasicIdentity.cs (System.Net) of
* Mono (http://www.mono-project.com).
*
* The MIT License
*
* Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
* Copyright (c) 2014 sta.blockhead
*
* Permission is hereby granted, free ... | #region License
/*
* HttpBasicIdentity.cs
*
* This code is derived from System.Net.HttpListenerBasicIdentity.cs of Mono
* (http://www.mono-project.com).
*
* The MIT License
*
* Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
* Copyright (c) 2014 sta.blockhead
*
* Permission is hereby granted, free of... | mit | C# |
c7cd8de6f21be80237740849c52d14511ca97bef | Fix XAML path parsing | Desolath/ConfuserEx3,timnboys/ConfuserEx,Desolath/Confuserex,yeaicc/ConfuserEx,engdata/ConfuserEx | Confuser.Renamer/BAML/BAMLPropertyReference.cs | Confuser.Renamer/BAML/BAMLPropertyReference.cs | using System;
using System.Diagnostics;
using Confuser.Core;
namespace Confuser.Renamer.BAML {
internal class BAMLPropertyReference : IBAMLReference {
PropertyRecord rec;
public BAMLPropertyReference(PropertyRecord rec) {
this.rec = rec;
}
public bool CanRename(string oldName, string newName) {
retur... | using System;
using System.Diagnostics;
using Confuser.Core;
namespace Confuser.Renamer.BAML {
internal class BAMLPropertyReference : IBAMLReference {
PropertyRecord rec;
public BAMLPropertyReference(PropertyRecord rec) {
this.rec = rec;
}
public bool CanRename(string oldName, string newName) {
retur... | mit | C# |
7160a48bab4fc69166e30c19954d0585528097f2 | Adjust hold to confirm animation curve to better show intention | peppy/osu,ppy/osu,ppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,peppy/osu | osu.Game/Graphics/Containers/HoldToConfirmContainer.cs | osu.Game/Graphics/Containers/HoldToConfirmContainer.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.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Config... | // 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.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Config... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.