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 |
|---|---|---|---|---|---|---|---|---|
778441265e519577122454aa3c0819d2ece63d2f | Update OfData() | amatukaze/HeavenlyWind | src/Game/Sakuno.ING.Game.Provider/GameProvider.Extensions.cs | src/Game/Sakuno.ING.Game.Provider/GameProvider.Extensions.cs | using Sakuno.ING.Game.Json;
using System;
using System.Reactive.Linq;
namespace Sakuno.ING.Game
{
internal static class SvDataObservableExtensions
{
public static IObservable<T> OfData<T>(this IObservable<SvData?> source) =>
source.OfType<SvData<T>>().Where(svdata => svdata.api_result == 1... | using Sakuno.ING.Game.Json;
using System;
using System.Reactive.Linq;
namespace Sakuno.ING.Game
{
internal static class SvDataObservableExtensions
{
public static IObservable<TEvent> Parse<TRaw, TEvent>(this IObservable<SvData?> source, Func<TRaw, TEvent> eventSelector)
{
var event... | mit | C# |
c02e9c5ca95741fb22a518d831db16c9ec747110 | Add comment to uSyncCore extension method | KevinJump/uSync,KevinJump/uSync,KevinJump/uSync | uSync.Core/uSyncCoreBuilderExtensions.cs | uSync.Core/uSyncCoreBuilderExtensions.cs |
using System.Linq;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Extensions;
using uSync.Core.Cache;
using uSync.Core.DataTypes;
using uSync.Core.Dependency;
using uSync.Core.Mapping;
using uSync.Core.Serialization;
using uSync.Core.Tracking;
namespace uSync.Core
{
public static class uSyncCoreBuil... |
using System.Linq;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Extensions;
using uSync.Core.Cache;
using uSync.Core.DataTypes;
using uSync.Core.Dependency;
using uSync.Core.Mapping;
using uSync.Core.Serialization;
using uSync.Core.Tracking;
namespace uSync.Core
{
public static class uSyncCoreBuil... | mpl-2.0 | C# |
5d659b38601b2620054b286c941a5d53f1da20ae | Revert "registration of api controllers fixed" | borismod/ReSharperTnT,borismod/ReSharperTnT | ReSharperTnT/Bootstrapper.cs | ReSharperTnT/Bootstrapper.cs | using System.Web.Http;
using Autofac;
using Autofac.Integration.WebApi;
namespace ReSharperTnT
{
public class Bootstrapper
{
static Bootstrapper()
{
Init();
}
public static void Init()
{
var bootstrapper = new Bootstrapper();
var con... | using System.Reflection;
using System.Web.Http;
using Autofac;
using Autofac.Integration.WebApi;
namespace ReSharperTnT
{
public class Bootstrapper
{
public static void Init()
{
var bootstrapper = new Bootstrapper();
var container = bootstrapper.CreateContainer();
... | apache-2.0 | C# |
1c23e073f938b3a3b9aa05d2cea797d5219406c1 | Convert Point2 (ints) to Vector2 (floats). | izrik/ChamberLib,izrik/ChamberLib,izrik/ChamberLib | ChamberLib/Point2.cs | ChamberLib/Point2.cs | using System;
namespace ChamberLib
{
public struct Point2
{
public Point2(int x, int y)
{
X = x;
Y = y;
}
public int X;
public int Y;
public static readonly Point2 Zero = new Point2(0, 0);
public static readonly Point2 One = new... | using System;
namespace ChamberLib
{
public struct Point2
{
public Point2(int x, int y)
{
X = x;
Y = y;
}
public int X;
public int Y;
public static readonly Point2 Zero = new Point2(0, 0);
public static readonly Point2 One = new... | lgpl-2.1 | C# |
ce1f9e7b9259391fa4627febb1cde15fe565a7f2 | update assm ver | jlucansky/refit,PKRoma/refit,jlucansky/refit,onovotny/refit,paulcbetts/refit,onovotny/refit,paulcbetts/refit | Refit/Properties/AssemblyInfo.cs | Refit/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Refit")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: Asse... | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Refit")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: Asse... | mit | C# |
105420a297cae1085a5d046bb62a658c0c334a7f | Add KEYS function in expression #743 | mbdavid/LiteDB,falahati/LiteDB,89sos98/LiteDB,89sos98/LiteDB,falahati/LiteDB | LiteDB/Document/Expression/Functions/DataTypes.cs | LiteDB/Document/Expression/Functions/DataTypes.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace LiteDB
{
public partial class BsonExpression
{
public static IEnumerable<BsonValue> ARRAY(IEnumerable<BsonValue> values)
{
yield ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace LiteDB
{
public partial class BsonExpression
{
public static IEnumerable<BsonValue> ARRAY(IEnumerable<BsonValue> values)
{
yield ... | mit | C# |
7fa5fe3357463baefe03969207a058cfc5b87037 | Update AbstractMusicNote names | MattJamesChampion/FretEngine | FretEngine/Common/DataTypes/AbstractMusicNote.cs | FretEngine/Common/DataTypes/AbstractMusicNote.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FretEngine.Common.DataTypes
{
public enum AbstractMusicNote
{
BSharpCNatural,
CSharpDFlat,
DNatural,
DSharpEFlat,
ENaturalFFlat,
ESharpF... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FretEngine.Common.DataTypes
{
public enum AbstractMusicNote
{
CNatural,
CSharpDFlat,
DNatural,
DSharpEFlat,
ENatural,
FNatural,
... | mit | C# |
13b9a046f53ef906b23593ed63c95a199278426e | Remove actions, moved to Utils.SynchronizeModule | roman-yagodin/R7.University,roman-yagodin/R7.University,roman-yagodin/R7.University | R7.University.Launchpad/SettingsLaunchpad.ascx.cs | R7.University.Launchpad/SettingsLaunchpad.ascx.cs | using System;
using System.Web.UI.WebControls;
using System.Linq;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.UI.UserControls;
using R7.University;
namespace R7.University.Launchpad
{
public partial class SettingsLaunchpad : ModuleSettingsBase
{
public voi... | using System;
using System.Web.UI.WebControls;
using System.Linq;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.UI.UserControls;
using R7.University;
namespace R7.University.Launchpad
{
public partial class SettingsLaunchpad : ModuleSettingsBase
{
public voi... | agpl-3.0 | C# |
cc9431c2dac19b232be8c91bc9920f07d33ff584 | Add implicit client flow. | affecto/dotnet-AuthenticationServer | Source/AuthenticationServer/Configuration/Flow.cs | Source/AuthenticationServer/Configuration/Flow.cs | namespace Affecto.AuthenticationServer.Configuration
{
public enum Flow
{
ResourceOwner,
Implicit
}
} | namespace Affecto.AuthenticationServer.Configuration
{
public enum Flow
{
ResourceOwner
}
} | mit | C# |
115496594e2709b0abba0b518963b19eabd26eca | Add a JsonObject.FromString convenience method | GNOME/hyena,arfbtwn/hyena,dufoli/hyena,GNOME/hyena,arfbtwn/hyena,dufoli/hyena | Hyena/Hyena.Json/JsonObject.cs | Hyena/Hyena.Json/JsonObject.cs | //
// JsonObject.cs
//
// Author:
// Aaron Bockover <abockover@novell.com>
//
// Copyright (C) 2008 Novell, Inc.
//
// 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, i... | //
// JsonObject.cs
//
// Author:
// Aaron Bockover <abockover@novell.com>
//
// Copyright (C) 2008 Novell, Inc.
//
// 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, i... | mit | C# |
79614d37b6df798c4df9e21e09f5de6f3ffa26a3 | Update Skills/Index.html | NinjaVault/NinjaHive,NinjaVault/NinjaHive | NinjaHive.WebApp/Views/Skills/Index.cshtml | NinjaHive.WebApp/Views/Skills/Index.cshtml | @using NinjaHive.Contract.DTOs
@using NinjaHive.WebApp.Controllers
@using NinjaHive.WebApp.Services
@model Skill[]
<div class="row">
<div class="col-md-12">
<br />
<p>
@Html.ActionLink("Create Equipment Item", "Create", null, new { @class = "btn btn-default" })
</p>
... | @using NinjaHive.Contract.DTOs
@using NinjaHive.WebApp.Controllers
@using NinjaHive.WebApp.Services
@model Skill[]
<div class="row">
<div class="panel panel-default">
<div class="panel-body">
@{ var createUri = UrlProvider<SkillsController>.GetUrl(c => c.Create()); }
<a ... | apache-2.0 | C# |
19e737e45ab2b58554d1068833528b473bc333d2 | hide reply. | Jetski5822/NGM.Forum | Views/Parts.Thread.Manage.cshtml | Views/Parts.Thread.Manage.cshtml | @using NGM.Forum
@using NGM.Forum.Extensions
@using NGM.Forum.Models
@{
var postPart = (PostPart)Model.ContentPart;
}
<div class="item-properties actions">
@if (!postPart.ThreadPart.IsClosed) {
<a href="@Url.PostReply(postPart)">@T("Reply to this Thread")</a>
}
</div> | @using NGM.Forum
@using NGM.Forum.Extensions
@using NGM.Forum.Models
@{
var postPart = (PostPart)Model.ContentPart;
}
<div class="item-properties actions">
<a href="@Url.PostReply(postPart)">@T("Reply to this Thread")</a>
</div> | bsd-3-clause | C# |
ee13ed524d3a56943af041b51d6a9ddf09126c38 | Update TypeProcessor.cs | Fody/Virtuosity | Virtuosity.Fody/TypeProcessor.cs | Virtuosity.Fody/TypeProcessor.cs | using Mono.Cecil;
public partial class ModuleWeaver
{
public void ProcessType(TypeDefinition typeDefinition)
{
WriteDebug($"\t{typeDefinition.FullName}");
foreach (var method in typeDefinition.Methods)
{
if (method.IsConstructor)
{
continue;
... | using Mono.Cecil;
public partial class ModuleWeaver
{
public void ProcessType(TypeDefinition typeDefinition)
{
LogDebug($"\t{typeDefinition.FullName}");
foreach (var method in typeDefinition.Methods)
{
if (method.IsConstructor)
{
continue;
... | mit | C# |
21fae893a55dd748dc3838852f88ad0b18d68ecd | Add friendly API for NetworkListener | gnamma/client | Assets/Scripts/NetworkListener.cs | Assets/Scripts/NetworkListener.cs | using UnityEngine;
using System.Collections;
using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Text;
using System.IO;
public class NetworkListener : MonoBehaviour {
public string host;
public int port;
private TcpClient client;
public void Connect() {
... | using UnityEngine;
using System.Collections;
using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Text;
using System.IO;
public class NetworkListener : MonoBehaviour {
public string host;
public int port;
private TcpClient client;
private byte[] datalen = ne... | mit | C# |
c52838bd4cb080dae54c90c97a774abcad602a32 | Initialize CommandDispatcher with an alias matcher | appharbor/appharbor-cli | src/AppHarbor/CommandDispatcher.cs | src/AppHarbor/CommandDispatcher.cs | using System;
using System.Linq;
using Castle.MicroKernel;
namespace AppHarbor
{
public class CommandDispatcher
{
private readonly IAliasMatcher _aliasMatcher;
private readonly ITypeNameMatcher _typeNameMatcher;
private readonly IKernel _kernel;
public CommandDispatcher(IAliasMatcher aliasMatcher, ITypeNam... | using System;
using System.Linq;
using Castle.MicroKernel;
namespace AppHarbor
{
public class CommandDispatcher
{
private readonly ITypeNameMatcher _typeNameMatcher;
private readonly IKernel _kernel;
public CommandDispatcher(ITypeNameMatcher typeNameMatcher, IKernel kernel)
{
_typeNameMatcher = typeName... | mit | C# |
2ac11207ce09255090058a603d244256719a58d2 | Refactor and tweak Koren triode model to hopefully make it faster | dsharlet/LiveSPICE | Circuit/Components/KorenTriode.cs | Circuit/Components/KorenTriode.cs | using ComputerAlgebra;
using System.ComponentModel;
namespace Circuit
{
/// <summary>
/// Base class for a triode.
/// </summary>
[Category("Vacuum Tubes")]
[DisplayName("Triode (Koren)")]
[Description("Triode implemented using Norman Koren's model.")]
public class KorenTriode : Triode
... | using ComputerAlgebra;
using System.ComponentModel;
namespace Circuit
{
/// <summary>
/// Base class for a triode.
/// </summary>
[Category("Vacuum Tubes")]
[DisplayName("Triode (Koren)")]
[Description("Triode implemented using Norman Koren's model.")]
public class KorenTriode : Triode
... | mit | C# |
0e8a87b6e2eb62be10e2108f981469b7ab265dec | Remove guitar model prop | michaelp0730/MichaelsMusic,michaelp0730/MichaelsMusic,michaelp0730/MichaelsMusic | MichaelsMusic/Models/Guitar.cs | MichaelsMusic/Models/Guitar.cs | namespace MichaelsMusic.Models
{
public class Guitar : Item
{
public string Binding { get; set; }
public string BodyMaterial { get; set; }
public string BodyStyle { get; set; }
public string Bridge { get; set; }
public string BridgePickup { get; set; }
public stri... | namespace MichaelsMusic.Models
{
public class Guitar : Item
{
public string Binding { get; set; }
public string BodyMaterial { get; set; }
public string BodyStyle { get; set; }
public string Bridge { get; set; }
public string BridgePickup { get; set; }
public stri... | mit | C# |
b3e59c10b8b8dd151f7b83d5cb02ee4223380b89 | Update class documentation for keyboard constants. | CoraleStudios/Colore,danpierce1/Colore,WolfspiritM/Colore,Sharparam/Colore | Colore/Razer/Keyboard/Constants.cs | Colore/Razer/Keyboard/Constants.cs | // ---------------------------------------------------------------------------------------
// <copyright file="Constants.cs" company="">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associ... | // ---------------------------------------------------------------------------------------
// <copyright file="Constants.cs" company="">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associ... | mit | C# |
27ce510fd3ad7c22cc0d21a0c1efa20cfe04d62e | remove obsolete warnings from usage. | Jaxelr/Nancy.Template.Webservice,Jaxelr/Nancy.Template.Webservice | Content/src/Modules/HelloModule.cs | Content/src/Modules/HelloModule.cs | using System.Diagnostics;
using Nancy;
using Nancy.Metadata.Modules;
using Nancy.Metadata.OpenApi.Core;
using Nancy.Metadata.OpenApi.Fluent;
using Nancy.Template.WebService.Extensions;
using Nancy.Template.WebService.Models.Entities;
using Nancy.Template.WebService.Models.Operations;
using Nancy.Template.WebService.Re... | using System.Diagnostics;
using Nancy;
using Nancy.Metadata.Modules;
using Nancy.Metadata.OpenApi.Core;
using Nancy.Metadata.OpenApi.Fluent;
using Nancy.Template.WebService.Extensions;
using Nancy.Template.WebService.Models.Entities;
using Nancy.Template.WebService.Models.Operations;
using Nancy.Template.WebService.Re... | mit | C# |
7a384ebd9ba441d23aa458268c78069ba1ca6f08 | Bump version. | r3c/cottle,r3c/cottle | Cottle/Properties/AssemblyInfo.cs | Cottle/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// Les informations générales relatives à un assembly dépendent de
// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations
// associées à un assembly.
[assembly: AssemblyTitle ("Cottle")]
[assembly: A... | using System.Reflection;
using System.Runtime.InteropServices;
// Les informations générales relatives à un assembly dépendent de
// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations
// associées à un assembly.
[assembly: AssemblyTitle ("Cottle")]
[assembly: A... | mit | C# |
455b8a39351bdfcc2a74dca9938b81fab0ea7443 | Sort SC constants. | PenguinF/sandra-three | Eutherion/Win/Native/Constants.cs | Eutherion/Win/Native/Constants.cs | #region License
/*********************************************************************************
* Constants.cs
*
* Copyright (c) 2004-2020 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obt... | #region License
/*********************************************************************************
* Constants.cs
*
* Copyright (c) 2004-2020 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obt... | apache-2.0 | C# |
cb73f867f383e9f546c7f3bd550ac45efa1792a7 | fix typo | Fody/Fody,GeertvanHorrik/Fody | FodyCommon/ExceptionExtensions.cs | FodyCommon/ExceptionExtensions.cs | using System;
using System.Text;
public static class ExceptionExtensions
{
public static string ToFriendlyString(this Exception exception)
{
var stringBuilder = new StringBuilder();
stringBuilder.Append("An unhandled exception occurred:");
stringBuilder.Append(Environment.NewLine);
... | using System;
using System.Text;
public static class ExceptionExtensions
{
public static string ToFriendlyString(this Exception exception)
{
var stringBuilder = new StringBuilder();
stringBuilder.Append("An unhandled exception occurred:");
stringBuilder.Append(Environment.NewLine);
... | mit | C# |
523ac068f2b2295013d385bcc59bc3560c0bb9cd | Add inheit class 'AssuntoCursoUsuario' | fmassaretto/formacao-talentos,fmassaretto/formacao-talentos,fmassaretto/formacao-talentos | Fatec.Treinamento.Model/Assunto.cs | Fatec.Treinamento.Model/Assunto.cs | using Fatec.Treinamento.Model.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Fatec.Treinamento.Model
{
public class Assunto : AssuntoCursoUsuario
{
public int Id { get; set; }
public string Nome { get; set; }
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Fatec.Treinamento.Model
{
public class Assunto
{
public int Id { get; set; }
public string Nome { get; set; }
}
}
| apache-2.0 | C# |
18908a0557bdb31a331d0f61a798113b26d0f948 | Add a custom formatter to AboutMediaTypeFormatters. | panesofglass/WebApiKoans | Koans/AboutMediaTypeFormatters.cs | Koans/AboutMediaTypeFormatters.cs | using System;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Net.Http.Headers;
using System.Text;
using System.Web.Http;
using FSharpKoans.Core;
namespace Koans
{
[Koan(Sort = 4)]
public static partial class AboutMediaTypeFormatters
{... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FSharpKoans.Core;
namespace Koans
{
[Koan(Sort = 4)]
public static class AboutMediaTypeFormatters
{
// Custom Formatter
// Adding / Removing formatters
... | apache-2.0 | C# |
1d49c49c8dacb6f672488651f9928435fd9b85e5 | add planId to the transaction table | ndrmc/cats,ndrmc/cats,ndrmc/cats | Models/Cats.Models/Transaction.cs | Models/Cats.Models/Transaction.cs | using System;
using System.Collections.Generic;
using Cats.Models;
namespace Cats.Models
{
public partial class Transaction
{
public System.Guid TransactionID { get; set; }
public Nullable<int> PartitionID { get; set; }
public System.Guid TransactionGroupID { get; set; }
public... | using System;
using System.Collections.Generic;
using Cats.Models;
namespace Cats.Models
{
public partial class Transaction
{
public System.Guid TransactionID { get; set; }
public Nullable<int> PartitionID { get; set; }
public System.Guid TransactionGroupID { get; set; }
public... | apache-2.0 | C# |
5ec3fa5bf4861fa26f7fdeeddec207e61855ca5a | Update Index.cshtml | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Mvc/Views/Home/Index.cshtml | Anlab.Mvc/Views/Home/Index.cshtml | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<h2 style="color: blue">PLEASE NOTE: There will be a modest increase in our rates effective in early October.</h2>
<p class="lead">The UC Davis Analytical Laboratory is a core support facility of the UC Davis College of Agriculture and Environ... | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
@*<h2 style="color: blue">PLEASE NOTE: The Analytical Lab will be closed on July 4th and 5th.</h2>*@
<p class="lead">The UC Davis Analytical Laboratory is a core support facility of the UC Davis College of Agriculture and Environmental Science... | mit | C# |
f1e4ed7e1bd0193d34e85b134428b849e846e3f1 | Update AppConst.cs | Mikejinhua/UnitySocketProtobuf3Demo,Mikejinhua/UnitySocketProtobuf3Demo,Mikejinhua/UnitySocketProtobuf3Demo,Mikejinhua/UnitySocketProtobuf3Demo | Client/Assets/Scripts/AppConst.cs | Client/Assets/Scripts/AppConst.cs | using UnityEngine;
using System.Collections;
public class AppConst {
public static int SocketPort = 3563; //Socket服务器端口
public static string SocketAddress = "127.0.0.1"; //Socket服务器地址
}
| using UnityEngine;
using System.Collections;
public class AppConst {
public static int SocketPort = 3563; //Socket服务器端口
public static string SocketAddress = "192.168.3.188"; //Socket服务器地址
}
| mit | C# |
55bea79f5c966cc508f47a2bbee12ca0cc9329c5 | Add more usings to Sandbox | JohanLarsson/Gu.Roslyn.Asserts | Gu.Roslyn.Asserts.Tests/Sandbox.cs | Gu.Roslyn.Asserts.Tests/Sandbox.cs | // ReSharper disable UnusedVariable
// ReSharper disable RedundantNameQualifier
namespace Gu.Roslyn.Asserts.Tests
{
using System;
using System.Reflection;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using NUnit.Framework;
[E... | // ReSharper disable UnusedVariable
// ReSharper disable RedundantNameQualifier
namespace Gu.Roslyn.Asserts.Tests
{
using System;
using System.Reflection;
using NUnit.Framework;
[Explicit("Sandbox")]
public static class Sandbox
{
[Test]
public static void FindReferences()
... | mit | C# |
13254bcbd8104a3b8970d835451ef64de18cee10 | Update Feature1.cs | ershadnozari/GitTest | ConsoleApp/ConsoleApp/Feature1.cs | ConsoleApp/ConsoleApp/Feature1.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp
{
class Feature1
{
// Added code in VS
// Added code in GitHub
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp
{
class Feature1
{
// Added code in VS
}
}
| mit | C# |
161e8d75f44b96790c47c0ba2080518e22abe25d | Bump minor version due to public API change | dustyburwell/garlic | Garlic/Properties/AssemblyInfo.cs | Garlic/Properties/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Garlic")]
[assembly: AssemblyDescription("Google Analytics Client for .Net")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyCompany("Dusty Burwell")]
[assembly: AssemblyProduct("Garlic Google Analytics Client")]
[assembly: AssemblyCopyright("Copyrig... | using System.Reflection;
[assembly: AssemblyTitle("Garlic")]
[assembly: AssemblyDescription("Google Analytics Client for .Net")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyCompany("Dusty Burwell")]
[assembly: AssemblyProduct("Garlic Google Analytics Client")]
[assembly: AssemblyCopyright("Copyrig... | mit | C# |
dfe407fda0dbf714d084ed843a2551a5a54e9bb6 | change name of primary key | pashchuk/Hospital-MVVM- | Hospital/DesktopApp/Model/Note.cs | Hospital/DesktopApp/Model/Note.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DesktopApp.Model
{
public class Note
{
#region Properties
public int Id { get; set; }
public string NoteText { get; set; }
public DateTime Date { get; set; }
#endregion
#reg... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DesktopApp.Model
{
public class Note
{
#region Properties
public int NoteId { get; set; }
public string NoteText { get; set; }
public DateTime Date { get; set; }
#endregion
... | mit | C# |
4fa3c87e7fb7ef16a1889a164e53fcd6718f9d60 | Refactor long line | Sitecore/Sitecore-Instance-Manager | src/SIM.Tool.Base/AuthenticationHelper.cs | src/SIM.Tool.Base/AuthenticationHelper.cs | namespace SIM.Tool.Base
{
using System;
using System.Threading;
using System.Web;
using System.Windows;
using SIM.Instances;
using Sitecore.Diagnostics.Base;
using JetBrains.Annotations;
using SIM.Core;
using SIM.Extensions;
public static class AuthenticationHelper
{
internal static void Log... | namespace SIM.Tool.Base
{
using System;
using System.Threading;
using System.Web;
using System.Windows;
using SIM.Instances;
using Sitecore.Diagnostics.Base;
using JetBrains.Annotations;
using SIM.Core;
using SIM.Extensions;
public static class AuthenticationHelper
{
internal static void Log... | mit | C# |
814cafb7eb541a4080d6ac9e521f8ba2f39bf35b | Fix possible cause of null bytes in config file | canton7/SyncTrayzor,canton7/SyncTrayzor,canton7/SyncTrayzor | src/SyncTrayzor/Utils/AtomicFileStream.cs | src/SyncTrayzor/Utils/AtomicFileStream.cs | using System;
using System.IO;
using System.Runtime.InteropServices;
namespace SyncTrayzor.Utils
{
public class AtomicFileStream : FileStream
{
private const string DefaultTempFileSuffix = ".tmp";
private readonly string path;
private readonly string tempPath;
public AtomicFi... | using System;
using System.IO;
using System.Runtime.InteropServices;
namespace SyncTrayzor.Utils
{
public class AtomicFileStream : FileStream
{
private const string DefaultTempFileSuffix = ".tmp";
private readonly string path;
private readonly string tempPath;
public AtomicFi... | mit | C# |
2e5832e01273499099bba3890f3f30fb613ae950 | update version number | AMVSoftware/NSaga | SolutionInfo.cs | SolutionInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("1.1.1.0")]
[assembly: AssemblyFileVersion("1.1.1.0")]
[assembly: AssemblyInformationalVersion("1.1.1+2.Branch.master.Sha.25d0abd7591766e152a1b7c418fb8e9a395eea03")] | using System.Reflection;
[assembly: AssemblyVersion("1.1.1.0")]
[assembly: AssemblyFileVersion("1.1.1.0")]
[assembly: AssemblyInformationalVersion("1.1.1-DotnetVersion.1+1.Branch.DotnetVersion.Sha.fba8c84a3df1c7f3007b43101b7d646630e866c2")] | mit | C# |
6cc486a2e935ba8beabda7c528eb7b9369d00859 | Switch to version 1.2.2-new-subs01 | AtwooTM/Zebus,biarne-a/Zebus,Abc-Arbitrage/Zebus,rbouallou/Zebus | src/SharedVersionInfo.cs | src/SharedVersionInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("1.2.2")]
[assembly: AssemblyFileVersion("1.2.2")]
[assembly: AssemblyInformationalVersion("1.2.2-new-subs01")]
| using System.Reflection;
[assembly: AssemblyVersion("1.2.13")]
[assembly: AssemblyFileVersion("1.2.13")]
[assembly: AssemblyInformationalVersion("1.2.13")]
| mit | C# |
db7123bbb24afe84e32baf5e408c0afe01ab87fd | Update DownloadTest.cs | gregyjames/OctaneDownloader | OctaneTestProject/DownloadTest.cs | OctaneTestProject/DownloadTest.cs | using System.IO;
using NUnit.Framework;
using OctaneEngine;
namespace OctaneTestProject
{
[TestFixture]
public class DownloadTest
{
[SetUp]
public void Init()
{
}
[TearDown]
public void CleanUp()
{
File.Del... | using System.IO;
using NUnit.Framework;
using OctaneEngine;
namespace OctaneTestProject
{
[TestFixture]
public class DownloadTest
{
[SetUp]
public void Init()
{
}
[TearDown]
public void CleanUp()
{
File.Del... | mit | C# |
b21eaad1fb5cf45705d4f6c4f7ff10528110a403 | Test erroroutput tweak | stilldesign/PhysX.Net,stilldesign/PhysX.Net,danteinforno/PhysX.Net,stilldesign/PhysX.Net,danteinforno/PhysX.Net,danteinforno/PhysX.Net | PhysX.Net-3.0/Test/ErrorOutput.cs | PhysX.Net-3.0/Test/ErrorOutput.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace PhysX.Test
{
public class ErrorLog : PhysX.ErrorCallback
{
private List<string> _errors;
public ErrorLog()
{
_errors = new List<string>();
}
public override void ReportError(ErrorCode errorCode, string message... | using System;
using System.Collections.Generic;
using System.Linq;
namespace PhysX.Test
{
public class ErrorLog : PhysX.ErrorCallback
{
private List<string> _errors;
public ErrorLog()
{
_errors = new List<string>();
}
public override void ReportError(ErrorCode errorCode, string message... | mit | C# |
c90a246e6b0bab1d4190cd3ab11601f36b6f633b | Update Win32 Console Blink | treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk | NET/Demos/Console/Blink/Program.cs | NET/Demos/Console/Blink/Program.cs | using System;
using Treehopper;
using System.Threading.Tasks;
using Treehopper.Libraries;
using System.Diagnostics;
using System.Collections.Generic;
namespace Blink
{
/// <summary>
/// This demo blinks the built-in LED using basic procedural programming.
/// </summary>
/// <remarks>
/// <para>
... | using System;
using Treehopper;
using System.Threading.Tasks;
using Treehopper.Libraries;
using System.Diagnostics;
using System.Collections.Generic;
namespace Blink
{
/// <summary>
/// This demo blinks an LED attached to pin 1, using basic procedural programming.
/// </summary>
/// <remarks>
/// ... | mit | C# |
a8f67e58088e06be3df6df51f35551d85db1f7f9 | Apply policy when loading reflection only assemblys | PMudra/ApiCheck | ApiCheck/Loader/AssemblyLoader.cs | ApiCheck/Loader/AssemblyLoader.cs | using System;
using System.IO;
using System.Reflection;
namespace ApiCheck.Loader
{
public sealed class AssemblyLoader : IDisposable
{
public AssemblyLoader()
{
AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve += CurrentDomainOnReflectionOnlyAssemblyResolve;
}
public void Dispose()
... | using System;
using System.IO;
using System.Reflection;
namespace ApiCheck.Loader
{
public sealed class AssemblyLoader : IDisposable
{
public AssemblyLoader()
{
AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve += CurrentDomainOnReflectionOnlyAssemblyResolve;
}
public void Dispose()
... | mit | C# |
1dea048ed692994d4a3c40e9b6d8b99b48da350f | Add NotNull attributes | IronLanguages/ironpython3,IronLanguages/ironpython3,IronLanguages/ironpython3,IronLanguages/ironpython3,IronLanguages/ironpython3,IronLanguages/ironpython3 | Src/IronPython.Modules/audioop.cs | Src/IronPython.Modules/audioop.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
#nullable enable
using System.Runtime.CompilerServices;
using IronPython.Runtime;
using IronPython.Runtime... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
#nullable enable
using System.Runtime.CompilerServices;
using IronPython.Runtime;
using IronPython.Runtime... | apache-2.0 | C# |
eb829a9276058401ab6dbc2b27aa2afcf10be1b1 | Use single arrow character for backspace. | mrward/xamarin-calculator | Calculator.Droid/ButtonAdapter.cs | Calculator.Droid/ButtonAdapter.cs |
using Android.Content;
using Android.Views;
using Android.Widget;
namespace Calculator.Droid
{
public class ButtonAdapter : BaseAdapter
{
Context context;
string[] buttons = new string[] {
"←", "C", "±", "/",
"7", "8", "9", "*",
"4", "5", "6", "-",
"1", "2", "3", "+",
"0", ".", null, "="
};
... |
using Android.Content;
using Android.Views;
using Android.Widget;
namespace Calculator.Droid
{
public class ButtonAdapter : BaseAdapter
{
Context context;
string[] buttons = new string[] {
"<-", "C", "±", "/",
"7", "8", "9", "*",
"4", "5", "6", "-",
"1", "2", "3", "+",
"0", ".", null, "="
};
... | mit | C# |
d586dc36d4b1a94fa3bd96f59b6aa4031e28d07f | change validation code a little, nothing major | ahives/HareDu,ahives/HareDu | src/HareDu/Arg.cs | src/HareDu/Arg.cs | // Copyright 2012-2013 Albert L. Hives, Chris Patterson, et al.
//
// 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 2012-2013 Albert L. Hives, Chris Patterson, et al.
//
// 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# |
29aecbda6043e9d8526c3f2e249efa6739f01c30 | Add threading to test server | mono/dbus-sharp,mono/dbus-sharp,Tragetaschen/dbus-sharp,openmedicus/dbus-sharp,openmedicus/dbus-sharp,arfbtwn/dbus-sharp,Tragetaschen/dbus-sharp,arfbtwn/dbus-sharp | src/TestServer.cs | src/TestServer.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using NDesk.DBus;
using org.freedesktop.DBus;
using System.IO;
using System.Net;
using System.Net.Sockets;
using Mono.Unix;
using System.Threading;
public class TestServer
{... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using NDesk.DBus;
using org.freedesktop.DBus;
using System.IO;
using System.Net;
using System.Net.Sockets;
using Mono.Unix;
public class TestServer
{
//TODO: complete this t... | mit | C# |
36305b7423f2d87cb65bd1cf16d13cc4eca1f25a | Bump Assembly version | msarchet/Imager | Imager/Properties/AssemblyInfo.cs | Imager/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("Im... | 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("Im... | mit | C# |
188474b6f9fc9398faa533ddaacbcaa3be43b571 | Update AndroidAttitudeProbe.cs | predictive-technology-laboratory/sensus,predictive-technology-laboratory/sensus,predictive-technology-laboratory/sensus,predictive-technology-laboratory/sensus,predictive-technology-laboratory/sensus,predictive-technology-laboratory/sensus | Sensus.Android.Shared/Probes/Movement/AndroidAttitudeProbe.cs | Sensus.Android.Shared/Probes/Movement/AndroidAttitudeProbe.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Android.Hardware;
using Sensus.Probes.Movement;
namespace Sensus.Android.Probes.Movement
{
class AndroidAttitudeProbe : AttitudeProbe
{
private AndroidSensorListener _attitudeListener;
publi... | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Android.Hardware;
using Sensus.Probes.Movement;
namespace Sensus.Android.Probes.Movement
{
class AndroidAttitudeProbe : AttitudeProbe
{
private AndroidSensorListener _attitudeListener;
publi... | apache-2.0 | C# |
5fc45187d20a47207ed3630587ec30526479a117 | Add default values to APP trending data folder paths | GridProtectionAlliance/openXDA,GridProtectionAlliance/openXDA,GridProtectionAlliance/openXDA,GridProtectionAlliance/openXDA | Source/Libraries/openXDA.Configuration/TrendingDataSection.cs | Source/Libraries/openXDA.Configuration/TrendingDataSection.cs | //******************************************************************************************************
// TrendingDataSection.cs - Gbtc
//
// Copyright © 2022, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See... | //******************************************************************************************************
// TrendingDataSection.cs - Gbtc
//
// Copyright © 2022, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See... | mit | C# |
a338d06aedb68f967b30dd54dea58e357c445bc7 | Update version number. | Damnae/storybrew | editor/Properties/AssemblyInfo.cs | editor/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("storybrew editor")]
[assembly: AssemblyDe... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("storybrew editor")]
[assembly: AssemblyDe... | mit | C# |
ff93de86929a0635a2b56af793d2776ce94871eb | apply ToStringMembers() | TakeAsh/cs-WpfUtility | WpfUtility/DataGridExAttribute.cs | WpfUtility/DataGridExAttribute.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TakeAshUtility;
namespace WpfUtility {
[AttributeUsage(AttributeTargets.Property)]
public class DataGridExAttribute :
Attribute {
public DataGridExAttribute() { }
public DataGri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WpfUtility {
[AttributeUsage(AttributeTargets.Property)]
public class DataGridExAttribute :
Attribute {
public DataGridExAttribute() { }
public DataGridExAttribute(string hea... | mit | C# |
85d4e91a70d08343e2b4fdd2828b987c1d2de55b | Update assembly info | Deadpikle/NetSparkle,Deadpikle/NetSparkle | AssemblyInfo.cs | AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | mit | C# |
a74f099203dd2670a167f17acf2aaabb32df56f9 | Reset score to 500 | sundbe10/GGJ17 | Assets/GameManager.cs | Assets/GameManager.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class GameManager : Singleton<GameManager> {
enum State{
ACTIVE,
ENDED
}
State _state = State.ACTIVE;
public static int score = 500;
public static bool gameActive ... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class GameManager : Singleton<GameManager> {
enum State{
ACTIVE,
ENDED
}
State _state = State.ACTIVE;
public static int score = 20;
public static bool gameActive =... | mit | C# |
0a09b70c9de3f2be6fca21d9cb97401e6efcee89 | Disable maximum request body size | FubarDevelopment/WebDavServer,FubarDevelopment/WebDavServer,FubarDevelopment/WebDavServer | sample/FubarDev.WebDavServer.Sample.AspNetCore/Program.cs | sample/FubarDev.WebDavServer.Sample.AspNetCore/Program.cs | using System;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Server.HttpSys;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace FubarDev.WebDavServer.Sample.AspNetCore
{
public class Program
{
public static b... | using System;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Server.HttpSys;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace FubarDev.WebDavServer.Sample.AspNetCore
{
public class Program
{
public static b... | mit | C# |
6d0e80254ea157732e40d66ed41d7f204c4cd26e | Add missing ArgumentNullException | tgstation/tgstation-server,Cyberboss/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server-tools | src/Tgstation.Server.Host/Security/IdentityCacheObject.cs | src/Tgstation.Server.Host/Security/IdentityCacheObject.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Host.Core;
namespace Tgstation.Server.Host.Security
{
/// <summary>
/// For keeping a specific <see cref="ISystemIdentity"/> alive for a period of time
/// </summary>
sealed class IdentityCacheObject : IDisposable
{
/// ... | using System;
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Host.Core;
namespace Tgstation.Server.Host.Security
{
/// <summary>
/// For keeping a specific <see cref="ISystemIdentity"/> alive for a period of time
/// </summary>
sealed class IdentityCacheObject : IDisposable
{
/// ... | agpl-3.0 | C# |
b430cf34e73760e136cebc4f87045826b76557be | remove unfnished comment. | smoogipoo/osu,2yangk23/osu,DrabWeb/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,smoogipooo/osu,EVAST9919/osu,naoey/osu,johnneijzen/osu,peppy/osu,naoey/osu,naoey/osu,UselessToucan/osu,EVAST9919/osu,UselessToucan/osu,johnneijzen/osu,peppy/osu-new,2yangk23/osu,NeoAdonis/osu,DrabWeb/osu,DrabWeb/osu,smoogipoo/osu,peppy/osu,p... | build.cake | build.cake | #addin "nuget:?package=CodeFileSanity"
#addin "nuget:?package=JetBrains.ReSharper.CommandLineTools"
#tool "nuget:?package=NVika.MSBuild"
#tool "nuget:?package=NuGet.CommandLine"
///////////////////////////////////////////////////////////////////////////////
// ARGUMENTS
////////////////////////////////////////////////... | #addin "nuget:?package=CodeFileSanity"
#addin "nuget:?package=JetBrains.ReSharper.CommandLineTools"
#tool "nuget:?package=NVika.MSBuild"
#tool "nuget:?package=NuGet.CommandLine"
///////////////////////////////////////////////////////////////////////////////
// ARGUMENTS
////////////////////////////////////////////////... | mit | C# |
796f9a400985c9ebcafd10fdf82fdd4ff71851f8 | Fix comment | Lombiq/Orchard-Training-Demo-Module,Lombiq/Orchard-Training-Demo-Module,Lombiq/Orchard-Training-Demo-Module | Drivers/ManagePersonsPermissionCheckerTaskDisplayDriver.cs | Drivers/ManagePersonsPermissionCheckerTaskDisplayDriver.cs | using Lombiq.TrainingDemo.Activities;
using Lombiq.TrainingDemo.ViewModels;
using OrchardCore.Workflows.Display;
using OrchardCore.Workflows.Models;
namespace Lombiq.TrainingDemo.Drivers;
// ActivityDisplayDriver is specifically for implementing Workflow Activity Tasks.
// Don't forget to register this class with the... | using Lombiq.TrainingDemo.Activities;
using Lombiq.TrainingDemo.ViewModels;
using OrchardCore.Workflows.Display;
using OrchardCore.Workflows.Models;
namespace Lombiq.TrainingDemo.Drivers;
// ActivityDisplayDrivers are specifically for implementing Workflow Activity Tasks.
// Don't forget to register this class with t... | bsd-3-clause | C# |
8824e0756465be09a594318a732f5f4e498d045d | Fix missing lines in WasapiRecorder | sndnv/noisecluster,sndnv/noisecluster,sndnv/noisecluster,sndnv/noisecluster | noisecluster-win/noisecluster/audio/capture/WasapiRecorder.cs | noisecluster-win/noisecluster/audio/capture/WasapiRecorder.cs | /**
* Copyright 2017 https://github.com/sndnv
*
* 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 applicab... | /**
* Copyright 2017 https://github.com/sndnv
*
* 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 applicab... | apache-2.0 | C# |
43332674268836363a173af43337f46e1a544db7 | Fix Prerendered test to actually dispose of AgateSetup when it exits. | eylvisaker/AgateLib | Tests/DisplayTests/Prerendered.cs | Tests/DisplayTests/Prerendered.cs | using System;
using System.Collections.Generic;
using AgateLib;
using AgateLib.DisplayLib;
using AgateLib.Geometry;
using AgateLib.InputLib;
namespace Tests.DisplayTests
{
class PrerenderedTest : IAgateTest
{
public string Name
{
get { return "Prerendering"; }
}
public string Category
... | using System;
using System.Collections.Generic;
using AgateLib;
using AgateLib.DisplayLib;
using AgateLib.Geometry;
using AgateLib.InputLib;
namespace Tests.DisplayTests
{
class PrerenderedTest : IAgateTest
{
public string Name
{
get { return "Prerendering"; }
}
public string Category
... | mit | C# |
da5f2113d8a6cf5d629461c15ac58457dcf1bc7d | use Require.NotNull in Base58Alphabet | ssg/SimpleBase,ssg/SimpleBase32,ssg/SimpleBase | src/Base58Alphabet.cs | src/Base58Alphabet.cs | /*
Copyright 2014-2016 Sedat Kapanoglu
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 agre... | using System;
namespace SimpleBase
{
public sealed class Base58Alphabet
{
public const int Length = 58;
public string Value { get; private set; }
public Base58Alphabet(string text)
{
if (text == null)
{
throw new ArgumentNullException("... | apache-2.0 | C# |
addb1d197a66e6839e2ee7a1c9813880793cacbc | Tweak Crc32 comments. | drebrez/DiscUtils,breezechen/DiscUtils,breezechen/DiscUtils,quamotion/discutils | src/Crc32Algorithm.cs | src/Crc32Algorithm.cs | //
// Copyright (c) 2008-2011, Kenneth Bell
//
// 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, ... | //
// Copyright (c) 2008-2011, Kenneth Bell
//
// 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# |
e9a36d6cbe8fda2a7b17b1410eac7a7b92537337 | change ip block to 4 hours | bitwarden/core,bitwarden/core,bitwarden/core,bitwarden/core | src/Core/Services/Implementations/AzureQueueBlockIpService.cs | src/Core/Services/Implementations/AzureQueueBlockIpService.cs | using System.Threading.Tasks;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Queue;
using System;
namespace Bit.Core.Services
{
public class AzureQueueBlockIpService : IBlockIpService
{
private readonly CloudQueue _blockIpQueue;
private readonly CloudQueue _unblockI... | using System.Threading.Tasks;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Queue;
using System;
namespace Bit.Core.Services
{
public class AzureQueueBlockIpService : IBlockIpService
{
private readonly CloudQueue _blockIpQueue;
private readonly CloudQueue _unblockI... | agpl-3.0 | C# |
5b24a580d65272e7e29723d1665eb608dc973e8e | Fix the GC total memory test. | ruben-ayrapetyan/coreclr,qiudesong/coreclr,wateret/coreclr,yeaicc/coreclr,AlexGhiondea/coreclr,cydhaselton/coreclr,James-Ko/coreclr,alexperovich/coreclr,krytarowski/coreclr,alexperovich/coreclr,cmckinsey/coreclr,pgavlin/coreclr,neurospeech/coreclr,yeaicc/coreclr,rartemev/coreclr,neurospeech/coreclr,pgavlin/coreclr,tijo... | tests/src/GC/API/GC/TotalMemory.cs | tests/src/GC/API/GC/TotalMemory.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.
// Tests GC.TotalMemory
using System;
public class Test {
public static int Main() {
GC.Collect();
... | // 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.
// Tests GC.TotalMemory
using System;
public class Test {
public static int Main() {
GC.Collect();
... | mit | C# |
7e61669f56ec3b7d80d4838fbf8f9b696ff3a5a8 | Add some Menu docs | mminns/xwt,sevoku/xwt,hwthomas/xwt,iainx/xwt,akrisiun/xwt,directhex/xwt,mono/xwt,TheBrainTech/xwt,antmicro/xwt,residuum/xwt,hamekoz/xwt,steffenWi/xwt,mminns/xwt,cra0zy/xwt,lytico/xwt | Xwt/Xwt/Menu.cs | Xwt/Xwt/Menu.cs | //
// Menu.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2011 Xamarin Inc
//
// 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, inc... | //
// Menu.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2011 Xamarin Inc
//
// 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, inc... | mit | C# |
daf57bdc31eaed586b153c3cb31f337b3f5407c4 | Fix ordering | Peter-Juhasz/PackageDiscovery | src/PackageDiscovery/Program.cs | src/PackageDiscovery/Program.cs | using PackageDiscovery.Finders;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace PackageDiscovery
{
public class Program
{
internal const string DefaultOutputFileName = "output.tsv";
internal const string DefaultFieldSeparator = "\t";
publi... | using PackageDiscovery.Finders;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace PackageDiscovery
{
public class Program
{
internal const string DefaultOutputFileName = "output.tsv";
internal const string DefaultFieldSeparator = "\t";
publi... | mit | C# |
c019cb97ae05a670615f68f6653f27b4a3b88e09 | Update Sensor.cs | Q42/Q42.HueApi,lbodtke/Q42.HueApi,jessejjohnson/Q42.HueApi | src/Q42.HueApi/Models/Sensor.cs | src/Q42.HueApi/Models/Sensor.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Q42.HueApi.Models
{
[DataContract]
public class Sensor
{
[IgnoreDataMember]
public string Id { get; set; }
[DataMember(Name = "state")]
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Q42.HueApi.Models
{
[DataContract]
public class Sensor
{
[IgnoreDataMember]
public string Id { get; set; }
[DataMember(Name = "state")]
... | mit | C# |
50724b2876dd3a39f1f3bc84422fc784c0b6232d | remove build number / warning | nerai/Nibbler,nerai/Nibbler | src/Nibbler.Run/Program.cs | src/Nibbler.Run/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Nibbler.Core.Simple;
using Unlog;
namespace Nibbler.Run
{
class Program
{
static Program ()
{
/*
* Set up logging
*/
Unlog.FileLogTarget.ConvertAllFilesToHTML ();
Log.A... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Nibbler.Core.Simple;
using Unlog;
namespace Nibbler.Run
{
class Program
{
public static readonly string Version;
static Program ()
{
/*
* Set up logging
*/
Unlog.FileL... | mpl-2.0 | C# |
1a996b54c8e69a51910531f6e45e2c84964e6a0f | Fix handle null check | mono/maccore,jorik041/maccore,cwensley/maccore | src/QuickLook/Thumbnail.cs | src/QuickLook/Thumbnail.cs | //
// MacOS Quicklook Thumbnail support
//
// Authors:
// Miguel de Icaza
//
// Copyright 2012, Xamarin Inc
//
// 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, includ... | //
// MacOS Quicklook Thumbnail support
//
// Authors:
// Miguel de Icaza
//
// Copyright 2012, Xamarin Inc
//
// 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, includ... | apache-2.0 | C# |
90fd702d8b4d04f640eaf18fd4ebb0803990b286 | Update Samples package 1.0.2.9000 | episerver/EPiServer.Forms.Samples,episerver/EPiServer.Forms.Samples,episerver/EPiServer.Forms.Samples,episerver/EPiServer.Forms.Samples | AssemblyVersion.cs | AssemblyVersion.cs | using System.Reflection;
[assembly: AssemblyCompany("EPiServer AB")]
[assembly: AssemblyCopyright(" 2015 by EPiServer AB - All rights reserved")]
[assembly: AssemblyTrademark("")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Buil... | using System.Reflection;
[assembly: AssemblyCompany("EPiServer AB")]
[assembly: AssemblyCopyright(" 2015 by EPiServer AB - All rights reserved")]
[assembly: AssemblyTrademark("")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Buil... | apache-2.0 | C# |
dd207af8f0449ce46af5260b7269b656f1ccd98f | make ctrl+L generally destructive | kbilsted/KeyboordUsage | code/Configuration/UserStates/UserStateStandardConfiguraion.cs | code/Configuration/UserStates/UserStateStandardConfiguraion.cs | using System;
using System.Collections.Generic;
using System.Windows.Forms;
using KeyboordUsage.Configuration.Keyboard;
namespace KeyboordUsage.Configuration.UserStates
{
class UserStateStandardConfiguraion
{
private readonly CommandLineArgs commandLineArgs;
public UserStateStandardConfiguraion(Comma... | using System;
using System.Collections.Generic;
using System.Windows.Forms;
using KeyboordUsage.Configuration.Keyboard;
namespace KeyboordUsage.Configuration.UserStates
{
class UserStateStandardConfiguraion
{
private readonly CommandLineArgs commandLineArgs;
public UserStateStandardConfiguraion(Comma... | apache-2.0 | C# |
b4145303cafe8775a213b5dd9217f93429b3ce45 | Update server side API for single multiple answer question | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api/question")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository ... | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api/question")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository ... | mit | C# |
9142565b86e33f558774f4b0d827091087e23f6e | Add support for CKAN 1.7 date format | opencolorado/.NET-Wrapper-for-CKAN-API,opencolorado/.NET-Wrapper-for-CKAN-API,DenverDev/.NET-Wrapper-for-CKAN-API,opencolorado/.NET-Wrapper-for-CKAN-API,DenverDev/.NET-Wrapper-for-CKAN-API | CkanDotNet.Api/Helper/DateHelper.cs | CkanDotNet.Api/Helper/DateHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;
namespace CkanDotNet.Api.Helper
{
public static class DateHelper
{
/// <summary>
/// Parse a date/time string.
/// </summary>
/// <param name="dateString"></param>
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;
namespace CkanDotNet.Api.Helper
{
public static class DateHelper
{
/// <summary>
/// Parse a date/time string.
/// </summary>
/// <param name="dateString"></param>
... | apache-2.0 | C# |
4bab901ba7288ab6e83c939297edcbe78674c0db | Update _TermsAndConditionBody.cshtml | SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers | src/SFA.DAS.EmployerUsers.Web/Views/TermsAndConditions/_TermsAndConditionBody.cshtml | src/SFA.DAS.EmployerUsers.Web/Views/TermsAndConditions/_TermsAndConditionBody.cshtml | <p>To use this service you agree to:</p>
<ul class="list list-bullet">
<li>sign out at the end of each session</li>
<li>input truthful and accurate information</li>
<li>adhere to the <a href="http://www.legislation.gov.uk/ukpga/1990/18/contents" target="_blank">Computer Misuse Act 1990</a></li>
<l... | <p>To use this service you agree to:</p>
<ul class="list list-bullet">
<li>Sign out at the end of each session</li>
<li>Input truthful and accurate information</li>
<li>Adhere to the <a href="http://www.legislation.gov.uk/ukpga/1990/18/contents" target="_blank">Computer Misuse Act 1990</a></li>
<l... | mit | C# |
da41af6c12a1d265b595e2288eda3cf7c971d27f | Update DamageFlag2 info | HelloKitty/Booma.Proxy | src/Booma.Proxy.Packets.BlockServer/Commands/Command60/Sub60ObjectDamageRecievedCommand.cs | src/Booma.Proxy.Packets.BlockServer/Commands/Command60/Sub60ObjectDamageRecievedCommand.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
//TODO: Finish reverse engineering what each flag means.
[Flags]
public enum DamageFlag2 : byte
{
//Maybe?
NormalSingleHit = 2,
//Seems... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
//TODO: Finish reverse engineering what each flag means.
[Flags]
public enum DamageFlag2 : byte
{
Unknown2 = 2,
NormalCreatureDeath = 10,
... | agpl-3.0 | C# |
969f7434e7743ed581b33d024f4bd8629589e15e | Fix Buffer Object | dimmpixeye/Unity3dTools | Runtime/LibEcs/BufferObject.cs | Runtime/LibEcs/BufferObject.cs | // Project : game.metro
// Contacts : Pix - ask@pixeye.games
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Pixeye.Framework
{
public sealed class BufferObject<T> where T : class
{
public static BufferObject<T> Instance = new BufferObject<T>();
public static Func<T> creator;
p... | // Project : game.metro
// Contacts : Pix - ask@pixeye.games
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Pixeye.Framework
{
public sealed class BufferObject<T> where T : class
{
public static BufferObject<T> Instance = new BufferObject<T>();
public static Func<T> creator;
p... | mit | C# |
74219fc286d5547410a3c05d3941f8feb1525eba | Bump version 1.0.5.0 | arbitertl/jsondiffpatch.net,wbish/jsondiffpatch.net | Src/Properties/AssemblyInfo.cs | Src/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("JsonDiffPatch.Net")]
[assembly: As... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("JsonDiffPatch.Net")]
[assembly: As... | mit | C# |
bd8c5e6a10cd13a37b4182cb4e4dcc7cdfbc79c4 | add telerik net35 check. | EPTamminga/Dnn.Platform,bdukes/Dnn.Platform,valadas/Dnn.Platform,EPTamminga/Dnn.Platform,robsiera/Dnn.Platform,bdukes/Dnn.Platform,RichardHowells/Dnn.Platform,RichardHowells/Dnn.Platform,dnnsoftware/Dnn.Platform,valadas/Dnn.Platform,dnnsoftware/Dnn.Platform,mitchelsellers/Dnn.Platform,mitchelsellers/Dnn.Platform,dnnsof... | src/Modules/Settings/Dnn.PersonaBar.Security/Components/Checks/CheckTelerikVulnerability.cs | src/Modules/Settings/Dnn.PersonaBar.Security/Components/Checks/CheckTelerikVulnerability.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Xml;
using DotNetNuke.Application;
using DotNetNuke.Common;
using DotNetNuke.Common.Utilities;
using Assembly = System.Reflection.Assembly;
namespace Dnn.PersonaBar.Security.Components.Checks
{
public class CheckTelerikVulnerability : I... | using System;
using System.Collections.Generic;
using System.IO;
using System.Xml;
using DotNetNuke.Application;
using DotNetNuke.Common;
using DotNetNuke.Common.Utilities;
using Assembly = System.Reflection.Assembly;
namespace Dnn.PersonaBar.Security.Components.Checks
{
public class CheckTelerikVulnerability : I... | mit | C# |
61dd33fe78742a72a574ffda69452a4384a28757 | Fix SQLite migration | tgstation/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server-tools | src/Tgstation.Server.Host/Database/Migrations/20201106082741_SLAddAdditionalDDParameters.cs | src/Tgstation.Server.Host/Database/Migrations/20201106082741_SLAddAdditionalDDParameters.cs | using Microsoft.EntityFrameworkCore.Migrations;
using System;
namespace Tgstation.Server.Host.Database.Migrations
{
/// <summary>
/// Adds columns for GitHub deployments for SQLite.
/// </summary>
public partial class SLAddAdditionalDDParameters : Migration
{
/// <inheritdoc />
protected override void Up(Migr... | using Microsoft.EntityFrameworkCore.Migrations;
using System;
namespace Tgstation.Server.Host.Database.Migrations
{
/// <summary>
/// Adds columns for GitHub deployments for SQLite.
/// </summary>
public partial class SLAddAdditionalDDParameters : Migration
{
/// <inheritdoc />
protected override void Up(Migr... | agpl-3.0 | C# |
a910d090cd92c2e487471f0997297d5ef162502c | Fix test | mattolenik/winston,mattolenik/winston,mattolenik/winston | Winston.Test/Cache/CacheFixture.cs | Winston.Test/Cache/CacheFixture.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using fastJSON;
using Winston.Cache;
using Winston.OS;
using Winston.Packaging;
namespace Winston.Test.Cache
{
public class CacheFixture : IDisposable
{
public SqliteCache Cache { get; private set; }
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using fastJSON;
using Winston.Cache;
using Winston.OS;
using Winston.Packaging;
namespace Winston.Test.Cache
{
public class CacheFixture : IDisposable
{
public SqliteCache Cache { get; private set; }
... | mit | C# |
b11b32984bd1a7db33eb3ef1bb9283a99d646fdf | increase version number | eugenpodaru/resume,eugenpodaru/resume,eugenpodaru/resume | Resume/Properties/AssemblyInfo.cs | Resume/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("Re... | 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("Re... | mit | C# |
69c39937b357d9fadd564ab77e798f98ef9ca890 | Update StandaloneApp's Program.cs to make it more obvious how to configure DI services | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | samples/StandaloneApp/Program.cs | samples/StandaloneApp/Program.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNetCore.Blazor.Browser.Rendering;
using Microsoft.AspNetCore.Blazor.Browser.Services;
namespace StandaloneApp
{
public class Pr... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNetCore.Blazor.Browser.Rendering;
namespace StandaloneApp
{
public class Program
{
public static void Main(string[]... | apache-2.0 | C# |
e1b04c9463ae632f65b164a1ab390f62099f8411 | Update param name to match IWebHookHandler | aspnet/WebHooks,PriyaChandak/DemoForProjectShare,garora/WebHooks,aspnet/WebHooks | samples/GenericReceivers/WebHooks/GenericJsonWebHookHandler.cs | samples/GenericReceivers/WebHooks/GenericJsonWebHookHandler.cs | using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.WebHooks;
using Newtonsoft.Json.Linq;
namespace GenericReceivers.WebHooks
{
public class GenericJsonWebHookHandler : WebHookHandler
{
public GenericJsonWebHookHandler()
{
this.Receiver = "genericjson";
... | using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.WebHooks;
using Newtonsoft.Json.Linq;
namespace GenericReceivers.WebHooks
{
public class GenericJsonWebHookHandler : WebHookHandler
{
public GenericJsonWebHookHandler()
{
this.Receiver = "genericjson";
... | apache-2.0 | C# |
8f3dd9e0c465269ec455ea580442fe765ab9d296 | Add trace information | Sphiecoh/aspnetwebhooks.bitbucket.demo,Sphiecoh/aspnetwebhooks.bitbucket.demo,Sphiecoh/aspnetwebhooks.bitbucket.demo | src/AspNet.Webhooks/WebHookHandlers/BitbucketWebHookHandler.cs | src/AspNet.Webhooks/WebHookHandlers/BitbucketWebHookHandler.cs | using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using AspNet.Webhooks.Demo.Data;
using AspNet.Webhooks.Demo.Models;
using Microsoft.AspNet.WebHooks;
using Newtonsoft.Json.Linq;
namespace AspNet.Webhooks.Demo.WebHookHandlers
{
public class BitbucketWebHookHandler : WebHookHandler
{
... | using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using AspNet.Webhooks.Demo.Data;
using AspNet.Webhooks.Demo.Models;
using Microsoft.AspNet.WebHooks;
using Newtonsoft.Json.Linq;
namespace AspNet.Webhooks.Demo.WebHookHandlers
{
public class BitbucketWebHookHandler : WebHookHandler
{
... | mit | C# |
d4ce8bbf35929796e48f4b6c17bf56f6483f69c0 | Fix compilation error induced due to rebase | gep13/GitVersion,ermshiperete/GitVersion,ParticularLabs/GitVersion,ermshiperete/GitVersion,gep13/GitVersion,asbjornu/GitVersion,GitTools/GitVersion,ParticularLabs/GitVersion,ermshiperete/GitVersion,GitTools/GitVersion,asbjornu/GitVersion,ermshiperete/GitVersion | src/GitVersionCore.Tests/Helpers/TestEffectiveConfiguration.cs | src/GitVersionCore.Tests/Helpers/TestEffectiveConfiguration.cs | using System.Collections.Generic;
using System.Linq;
using GitVersion;
using GitVersion.Extensions;
using GitVersion.Model.Configuration;
using GitVersion.VersionCalculation;
namespace GitVersionCore.Tests.Helpers
{
public class TestEffectiveConfiguration : EffectiveConfiguration
{
public TestEffective... | using System.Collections.Generic;
using System.Linq;
using GitVersion;
using GitVersion.Extensions;
using GitVersion.Model.Configuration;
using GitVersion.VersionCalculation;
namespace GitVersionCore.Tests.Helpers
{
public class TestEffectiveConfiguration : EffectiveConfiguration
{
public TestEffective... | mit | C# |
bc7e44713193ab66f8ed11d6a92b7daa925f7349 | Revert "remove a suppression no longer needed" | acple/ParsecSharp | ParsecSharp/GlobalSuppressions.cs | ParsecSharp/GlobalSuppressions.cs | using System.Diagnostics.CodeAnalysis;
[assembly: SuppressMessage("Style", "IDE0071:Simplify interpolation", Justification = "IDE0071 considerably decreases the performance of string construction")]
[assembly: SuppressMessage("Style", "IDE0071WithoutSuggestion")]
| using System.Diagnostics.CodeAnalysis;
[assembly: SuppressMessage("Style", "IDE0071:Simplify interpolation", Justification = "IDE0071 considerably decreases the performance of string construction")]
| mit | C# |
43d969bfecfe599df575612066a9352167c8583b | Fix GetUser call | TrueCar/AutomaticSharp,TrueCar/AutomaticSharp | src/AutomaticSharp/UserClient.cs | src/AutomaticSharp/UserClient.cs | using System.Threading.Tasks;
using AutomaticSharp.Models;
using AutomaticSharp.Requests;
namespace AutomaticSharp
{
public partial class Client
{
/// <summary>
/// Provides the basic account information about a user.
/// Dependent on scope:user:profile
/// </summary>
/... | using System.Threading.Tasks;
using AutomaticSharp.Models;
using AutomaticSharp.Requests;
namespace AutomaticSharp
{
public partial class Client
{
/// <summary>
/// Provides the basic account information about a user.
/// Dependent on scope:user:profile
/// </summary>
/... | mit | C# |
acd3307c550943f83592928fd79d1cc4411b1583 | Add missing CakeDataService docs | cake-build/cake,cake-build/cake,gep13/cake,patriksvensson/cake,gep13/cake,devlead/cake,patriksvensson/cake,devlead/cake | src/Cake.Core/CakeDataService.cs | src/Cake.Core/CakeDataService.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;
using System.Collections.Generic;
namespace Cake.Core
{
/// <summary>
/// Implementation of ... | // 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;
using System.Collections.Generic;
namespace Cake.Core
{
// ReSharper disable once ClassNeverInst... | mit | C# |
94a7d20cfccea581812aeaf38df3a0cdc4e7407f | Make NP file exception class public | icedream/NPSharp | src/client/NP/NPFileException.cs | src/client/NP/NPFileException.cs | using System;
namespace NPSharp.NP
{
public class NpFileException : Exception
{
internal NpFileException(int error)
: base(error == 1 ? @"File not found on NP server" : @"Internal error on NP server")
{
}
internal NpFileException()
: base(@"Could not fe... | using System;
namespace NPSharp.NP
{
internal class NpFileException : Exception
{
internal NpFileException(int error)
: base(error == 1 ? @"File not found on NP server" : @"Internal error on NP server")
{
}
internal NpFileException()
: base(@"Could not ... | mit | C# |
07cc1822c8c8e9a46997f926e86a3d53b3277710 | Make area name case insensitive, better error handling | CareerHub/.NET-CareerHub-API-Client,CareerHub/.NET-CareerHub-API-Client | Client/API/APIInfo.cs | Client/API/APIInfo.cs | using CareerHub.Client.API.Meta;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CareerHub.Client.API {
public class APIInfo {
public APIInfo() {
this.SupportedComponents = new List<string>();
}
publ... | using CareerHub.Client.API.Meta;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CareerHub.Client.API {
public class APIInfo {
public APIInfo() {
this.SupportedComponents = new List<string>();
}
publ... | mit | C# |
80beb6b7b4b7cf12dec0ecd74dfa40e485039935 | Add virtual property to album model | lukecahill/Bravo,lukecahill/Bravo,lukecahill/Bravo | Bravo/Models/Album.cs | Bravo/Models/Album.cs | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Bravo.Models {
public class Album {
[Required]
public int AlbumId { get; set; }
[Required, MaxLength(255), Display(Name = "Title")]
public string AlbumName { get; set; }
[Required]
public int GenreId { get; set; }
... | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Bravo.Models {
public class Album {
[Required]
public int AlbumId { get; set; }
[Required, MaxLength(255), Display(Name = "Title")]
public string AlbumName { get; set; }
[Required]
public int GenreId { get; set; }
... | mit | C# |
f047c7a8dea27884f515b7183a77c03be5fba59e | bump version | GeertvanHorrik/Fody,ColinDabritzViewpoint/Fody,distantcam/Fody,Fody/Fody | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Fody")]
[assembly: AssemblyProduct("Fody")]
[assembly: AssemblyVersion("2.0.5")]
[assembly: AssemblyFileVersion("2.0.5")] | using System.Reflection;
[assembly: AssemblyTitle("Fody")]
[assembly: AssemblyProduct("Fody")]
[assembly: AssemblyVersion("2.0.4")]
[assembly: AssemblyFileVersion("2.0.4")] | mit | C# |
21a4f099d647b78509fbf79733865ce3d15338b3 | bump version | Fody/Obsolete | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Obsolete")]
[assembly: AssemblyProduct("Obsolete")]
[assembly: AssemblyVersion("1.5.3.0")]
[assembly: AssemblyFileVersion("1.5.3.0")]
| using System.Reflection;
[assembly: AssemblyTitle("Obsolete")]
[assembly: AssemblyProduct("Obsolete")]
[assembly: AssemblyVersion("1.5.2.0")]
[assembly: AssemblyFileVersion("1.5.2.0")]
| mit | C# |
6e8998810cf44ce26405a4fde96f062361527382 | bump version | Fody/Fody,GeertvanHorrik/Fody | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Fody")]
[assembly: AssemblyProduct("Fody")]
[assembly: AssemblyVersion("2.2.0")]
[assembly: AssemblyFileVersion("2.2.0")] | using System.Reflection;
[assembly: AssemblyTitle("Fody")]
[assembly: AssemblyProduct("Fody")]
[assembly: AssemblyVersion("2.1.3")]
[assembly: AssemblyFileVersion("2.1.3")] | mit | C# |
488bea103bfacd8812949db3ab58839cf920da93 | Update Startup | stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity | C#Development/BashSoft/BashSoft/Startup.cs | C#Development/BashSoft/BashSoft/Startup.cs | namespace BashSoft
{
using BashSoft.IO;
public class Startup
{
public static void Main(string[] args)
{
OutputWriter.PrintLogo();
InputReader.StartReadingCommands();
}
}
}
| namespace BashSoft
{
using BashSoft.IO;
public class Startup
{
public static void Main(string[] args)
{
OutputWriter.PrintLogo();
InputReader.StartReadingCommands();
}
}
}
| mit | C# |
0d1a3d64bb07ed81ae78afafa9c38ae8e29cbbde | Fix crash on box spawn if reset during p2 | neowutran/TeraDamageMeter,radasuka/ShinraMeter,neowutran/ShinraMeter,Seyuna/ShinraMeter | DamageMeter.Core/Processing/S_SPAWN_NPC.cs | DamageMeter.Core/Processing/S_SPAWN_NPC.cs | using Data;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Tera.Game;
namespace DamageMeter.Processing
{
public static class S_SPAWN_NPC
{
public static void Process(Tera.Game.Mes... | using Data;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Tera.Game;
namespace DamageMeter.Processing
{
public static class S_SPAWN_NPC
{
public static void Process(Tera.Game.Mes... | mit | C# |
ad672f027d19d7da033614462e835cdeafd7188b | Adjust namespace | dirkrombauts/production-helper-for-ti3 | ProductionHelperForTI3.Domain/SpaceDock.cs | ProductionHelperForTI3.Domain/SpaceDock.cs | using System;
namespace ProductionHelperForTI3.Domain
{
public class SpaceDock
{
private readonly Planet planet;
private readonly Technology enviroCompensator;
public SpaceDock(Planet planet, Technology technology)
{
this.planet = planet;
this.enviroCo... | using System;
using ProductionHelperForTI3.Domain;
namespace ProductionHelperForTI3.Specification
{
public class SpaceDock
{
private readonly Planet planet;
private readonly Technology enviroCompensator;
public SpaceDock(Planet planet, Technology technology)
{
thi... | mit | C# |
020f24a9391170bd5aed414f931056a5ee79b6bd | Update SplitProgress.cs | wieslawsoltes/SimpleWavSplitter,wieslawsoltes/SimpleWavSplitter,wieslawsoltes/SimpleWavSplitter,wieslawsoltes/SimpleWavSplitter | SimpleWavSplitter.Console/SplitProgress.cs | SimpleWavSplitter.Console/SplitProgress.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace SimpleWavSplitter
{
#region References
using System;
using WavFile;
#endregion
#region SplitProgress
public class SplitProgr... | /*
* SimpleWavSplitter.Console
* Copyright © Wiesław Šoltés 2010-2012. All Rights Reserved
*/
namespace SimpleWavSplitter
{
#region References
using System;
using WavFile;
#endregion
#region SplitProgress
public class SplitProgress : IProgress
{
#region Constructor
... | mit | C# |
ba60969e85d8a81a3e7071b794231129194e0533 | Remove proxy method to SendLineToPrinterNow | mmoening/MatterControl,larsbrubaker/MatterControl,unlimitedbacon/MatterControl,larsbrubaker/MatterControl,unlimitedbacon/MatterControl,larsbrubaker/MatterControl,mmoening/MatterControl,jlewin/MatterControl,unlimitedbacon/MatterControl,larsbrubaker/MatterControl,unlimitedbacon/MatterControl,jlewin/MatterControl,jlewin/M... | SlicerConfiguration/Settings/GCodeMacro.cs | SlicerConfiguration/Settings/GCodeMacro.cs | /*
Copyright (c) 2017, Lars Brubaker, 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... | /*
Copyright (c) 2016, Lars Brubaker, 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... | bsd-2-clause | C# |
71cfac695c72a08d0c41eca11f50f9c15bf24bb8 | Remove unused method. | DanTup/DaNES | DaNES.Emulation/Memory.cs | DaNES.Emulation/Memory.cs | using System;
namespace DanTup.DaNES.Emulation
{
class Memory
{
byte[] memory;
public Memory(int size)
{
memory = new byte[size];
}
public byte Read(ushort address) => memory[address];
public byte Write(ushort address, byte value) => memory[address] = value;
public void Write(ushort address, by... | using System;
namespace DanTup.DaNES.Emulation
{
class Memory
{
byte[] memory;
public Memory(int size)
{
memory = new byte[size];
}
public byte Read(ushort address) => memory[address];
public byte Write(ushort address, byte value) => memory[address] = value;
public void Write(ushort address, by... | mit | C# |
8cf1e5accf740266e3dc04eded6ce4161f6a14db | Update Record.cs | wieslawsoltes/Core2D,Core2D/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D/ViewModels/Data/Record.cs | src/Core2D/ViewModels/Data/Record.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Collections.Immutable;
using Core2D.Attributes;
namespace Core2D.Data
{
/// <summary>
/// Database record.
... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using Core2D.Attributes;
namespace Core2D.Data
{
/// <summary>
/// Dat... | mit | C# |
5f0dca0b0e82ee10b18b5c455a2a0d4a63e2abf5 | Remove warning about FileVersion | Seddryck/Lookum | GlobalAssemblyInfo.cs | GlobalAssemblyInfo.cs | using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Lookum Team - Cédric L. Charlier")]
[assembly: AssemblyProduct("Lookum")]
[assembly: AssemblyCopyright("Copyright © 2014-2015 - Cédric L. Charlier")]
[assembly: As... | using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Lookum Team - Cédric L. Charlier")]
[assembly: AssemblyProduct("Lookum")]
[assembly: AssemblyCopyright("Copyright © 2014-2015 - Cédric L. Charlier")]
[assembly: As... | apache-2.0 | C# |
69ad9d712fcca5d15c2f450cf76e4706625b830c | Remove unused inject directive | martincostello/website,martincostello/website,martincostello/website,martincostello/website | src/Website/Views/Tools/Index.cshtml | src/Website/Views/Tools/Index.cshtml | @section meta {
<link rel="api-guid" href="@Url.RouteUrl(SiteRoutes.GenerateGuid)" />
<link rel="api-hash" href="@Url.RouteUrl(SiteRoutes.GenerateHash)" />
<link rel="api-machine-key" href="@Url.RouteUrl(SiteRoutes.GenerateMachineKey)" />
}
@section scripts {
<script src="https://cdnjs.cloudflare.com/ajax... | @inject SiteOptions Options
@section meta {
<link rel="api-guid" href="@Url.RouteUrl(SiteRoutes.GenerateGuid)" />
<link rel="api-hash" href="@Url.RouteUrl(SiteRoutes.GenerateHash)" />
<link rel="api-machine-key" href="@Url.RouteUrl(SiteRoutes.GenerateMachineKey)" />
}
@section scripts {
<script src="https... | apache-2.0 | C# |
383e95e9cca8da51409099a4f49bdae496ff07ca | save data to s3 | Ailuridaes/solid-doodle,djmlee013/solid-doodle,Ailuridaes/solid-doodle,onema/solid-doodle,onema/solid-doodle,djmlee013/solid-doodle | LogParser/Function.cs | LogParser/Function.cs | using System;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Text.RegularExpressions;
using Amazon.CloudWatchLogs;
using Amazon.Lambda.Core;
using Amazon.S3;
using Amazon.S3.Model;
using LogParser.Model;
using Newtonsoft.Json;
namespace LogParser {
public class Function {
... | using System;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Text.RegularExpressions;
using Amazon.CloudWatchLogs;
using Amazon.Lambda.Core;
using LogParser.Model;
using Newtonsoft.Json;
namespace LogParser {
public class Function {
//--- Fields ---
private read... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.