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 |
|---|---|---|---|---|---|---|---|---|
08247e1b1f4c281152eba9a9d690c2b64db76edc | Increase version to 2.4.3 | Azure/amqpnetlite | src/Properties/Version.cs | src/Properties/Version.cs | // ------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the ""License""); you may not use this
// file except in compliance with the License. You may obtain a co... | // ------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the ""License""); you may not use this
// file except in compliance with the License. You may obtain a co... | apache-2.0 | C# |
6e379f0646cb531798fa24243dc3a5e273cfd72c | Fix FocusedTextBox in line with framework changes | EVAST9919/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,2yangk23/osu,johnneijzen/osu,smoogipooo/osu,Frontear/osuKyzer,johnneijzen/osu,naoey/osu,peppy/osu,DrabWeb/osu,UselessToucan/osu,smoogipoo/osu,ZLima12/osu,DrabWeb/osu,Nabile-Rahmani/osu,UselessToucan/osu,EVAST9919/osu,DrabWeb/osu,ppy/osu,peppy/osu,NeoAdonis/osu... | osu.Game/Graphics/UserInterface/FocusedTextBox.cs | osu.Game/Graphics/UserInterface/FocusedTextBox.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK.Graphics;
using OpenTK.Input;
using osu.Framework.Input;
using System;
namespace osu.Game.Graphics.UserInterface
{
/// <summary>
/// A ... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK.Graphics;
using OpenTK.Input;
using osu.Framework.Input;
using System;
namespace osu.Game.Graphics.UserInterface
{
/// <summary>
/// A ... | mit | C# |
2f2b0b3107898fe9a9927a6c00100580166804f5 | Add exceptions during parse failures | kelleyma49/fasdr | Fasdr.Backend/Provider.cs | Fasdr.Backend/Provider.cs | using System;
using System.Collections.Generic;
using System.IO.Abstractions;
using System.IO;
namespace Fasdr.Backend
{
public class Provider
{
public static readonly char Separator = '|';
public Provider(string name)
{
Name = name;
}
public void Load(StreamReader stream)
{
Entries.Clear ();
... | using System;
using System.Collections.Generic;
using System.IO.Abstractions;
using System.IO;
namespace Fasdr.Backend
{
public class Provider
{
public static readonly char Separator = '|';
public Provider(string name)
{
Name = name;
}
public void Load(StreamReader stream)
{
Entries.Clear ();
... | mit | C# |
76f764e650f2e69dd4a08e74fdd3fc001258db66 | Update Function.cs | gurmitteotia/guflow | Guflow.Lambda/Function.cs | Guflow.Lambda/Function.cs | using Amazon.Lambda.Core;
// Assembly attribute to enable the Lambda function's JSON input to be converted into a .NET class.
[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.Json.JsonSerializer))]
namespace Guflow.Lambda
{
public class Function
{
/// <summary>
/// A sim... | using Amazon.Lambda.Core;
// Assembly attribute to enable the Lambda function's JSON input to be converted into a .NET class.
[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.Json.JsonSerializer))]
namespace Guflow.Lambda
{
public class Function
{
/// <summary>
/// A sim... | apache-2.0 | C# |
6598c55f03189f1c06dbe2c5239e138a0a5cef0b | change a "should" phrase | ArcticEcho/Hatman | Hatman/Commands/Should.cs | Hatman/Commands/Should.cs | using System.Text.RegularExpressions;
using ChatExchangeDotNet;
namespace Hatman.Commands
{
class Should : ICommand
{
private readonly Regex ptn = new Regex(@"(?i)^((?<!why|how|wh(e(n|re)|at)).)*\?", Extensions.RegOpts);
private readonly string[] phrases = new[]
{
"No.",
... | using System.Text.RegularExpressions;
using ChatExchangeDotNet;
namespace Hatman.Commands
{
class Should : ICommand
{
private readonly Regex ptn = new Regex(@"(?i)^((?<!why|how|wh(e(n|re)|at)).)*\?", Extensions.RegOpts);
private readonly string[] phrases = new[]
{
"No.",
... | isc | C# |
26cc5624ae1afd68a8af6e46c906d9b7c5e4c6fa | convert build build list to generic as well & testing vs2015 CTP5! | ronin1/Demo.LinkedList.Reverse | LinkedListDemo/Program.cs | LinkedListDemo/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LinkedListDemo
{
class Program
{
static Node<T> BuildList<T>(T[] values)
{
if (values == null || values.Length == 0)
return null;
var last = new Node<T> { Value = values[0] };... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LinkedListDemo
{
class Program
{
static Node<string> BuildList(string[] values)
{
if (values == null || values.Length == 0)
return null;
var last = new Node<string> { Value = ... | unlicense | C# |
a155af14e2990661aeb1cd23923db053c0842c21 | Use throw expression to test C#7 | NFig/NFig | NFig/OverridesSnapshot.cs | NFig/OverridesSnapshot.cs | using System;
using System.Collections.Generic;
using JetBrains.Annotations;
namespace NFig
{
/// <summary>
/// Represents the state of all overrides, and the last event, for an application.
/// </summary>
public class OverridesSnapshot<TTier, TDataCenter>
where TTier : struct
where TD... | using System;
using System.Collections.Generic;
using JetBrains.Annotations;
namespace NFig
{
/// <summary>
/// Represents the state of all overrides, and the last event, for an application.
/// </summary>
public class OverridesSnapshot<TTier, TDataCenter>
where TTier : struct
where TD... | mit | C# |
202b7f9b29146312742f58b0efe2151ca617bbf5 | remove redundant ApplyTo property | NServiceKit/NServiceKit,ZocDoc/ServiceStack,MindTouch/NServiceKit,timba/NServiceKit,NServiceKit/NServiceKit,MindTouch/NServiceKit,nataren/NServiceKit,MindTouch/NServiceKit,ZocDoc/ServiceStack,timba/NServiceKit,meebey/ServiceStack,NServiceKit/NServiceKit,nataren/NServiceKit,NServiceKit/NServiceKit,ZocDoc/ServiceStack,na... | src/ServiceStack.ServiceInterface/RequiredPermissionAttribute.cs | src/ServiceStack.ServiceInterface/RequiredPermissionAttribute.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using ServiceStack.Common;
using ServiceStack.ServiceHost;
namespace ServiceStack.ServiceInterface
{
/// <summary>
/// Indicates that the request dto, which is associated with this attribute,
/// ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using ServiceStack.Common;
using ServiceStack.ServiceHost;
namespace ServiceStack.ServiceInterface
{
/// <summary>
/// Indicates that the request dto, which is associated with this attribute,
/// ... | bsd-3-clause | C# |
f1815b42bfdee9ac0a3d0e9f6b39ad1a674a3b9a | Add title/aria-label non-semantic global alert | smbc-digital/iag-webapp,smbc-digital/iag-webapp,smbc-digital/iag-webapp | src/StockportWebapp/Views/stockportgov/Shared/GlobalAlert.cshtml | src/StockportWebapp/Views/stockportgov/Shared/GlobalAlert.cshtml | @using StockportWebapp.Models
@using StockportWebapp.Utils
@inject ICookiesHelper CookiesHelper
@model Alert
@{
var alertCookies = CookiesHelper.GetCookies<Alert>("alerts");
var isDismissed = alertCookies != null && alertCookies.Contains(Model.Slug) && !Model.IsStatic;
}
@if (!isDismissed)
{
<div class="... | @using StockportWebapp.Models
@using StockportWebapp.Utils
@inject ICookiesHelper CookiesHelper
@model Alert
@{
var alertCookies = CookiesHelper.GetCookies<Alert>("alerts");
var isDismissed = alertCookies != null && alertCookies.Contains(Model.Slug) && !Model.IsStatic;
}
@if (!isDismissed)
{
<div class="... | mit | C# |
d5053c392cb2e24ecca0017a84453074da92a4a7 | Increase version | Tunous/EEPhysics,cap9/EEPhysics | EEPhysics/Properties/AssemblyInfo.cs | EEPhysics/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("EE... | 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("EE... | mit | C# |
07a3b6cdd74060e97f56f833423358ffed811c69 | allow single writer and multiple readers | davidfowl/XmlSettings | XmlSettings/XmlUtility.cs | XmlSettings/XmlUtility.cs | namespace XmlSettings
{
using System.IO;
using System.Xml.Linq;
internal static class XmlUtility
{
internal static XDocument GetDocument(XName rootName, string path, bool createIfNotExists)
{
if (File.Exists(path))
{
try
{
... | namespace XmlSettings
{
using System.IO;
using System.Xml.Linq;
internal static class XmlUtility
{
internal static XDocument GetDocument(XName rootName, string path, bool createIfNotExists)
{
if (File.Exists(path))
{
try
{
... | mit | C# |
c0b39b16af34498c57e5306e847e9097abad89d7 | add error logging to taskbarnotifer | Enigmatrix/Cobalt | Cobalt.TaskbarNotifier/App.xaml.cs | Cobalt.TaskbarNotifier/App.xaml.cs | using System.Windows.Threading;
using Cobalt.Common.UI;
using Serilog;
namespace Cobalt.TaskbarNotifier
{
/// <inheritdoc />
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App
{
}
public class AppBoostrapper : Bootstrapper<IMainViewModel>
... | using Cobalt.Common.UI;
namespace Cobalt.TaskbarNotifier
{
/// <inheritdoc />
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App
{
}
public class AppBoostrapper : Bootstrapper<IMainViewModel>
{
}
} | mit | C# |
e871c05fb0d5340cf40061e085466bc09b5bc388 | Update Notification class | one-signal/OneSignal-Xamarin-SDK,one-signal/OneSignal-Xamarin-SDK | Com.OneSignal.Core/Notification.cs | Com.OneSignal.Core/Notification.cs | using System;
using System.Collections.Generic;
namespace Com.OneSignal.Core {
public class Notification {
public string title;
public string body;
public string sound;
public string launchUrl;
public string rawPayload;
public List<ActionButton> actionButtons;
public Dict... | using System;
using System.Collections.Generic;
namespace Com.OneSignal.Core {
public class Notification {
public int androidNotificationId;
public List<Notification> groupedNotifications;
public string notificationId;
public string templateName;
public string templateId;
publi... | mit | C# |
052a76047d8a6a8a3faea003b77ea538ca71fe54 | Fix to reflect new layout settings | Geroshabu/MatchGenerator | Application/MatchGenerator/LayoutConfigureWindow.xaml.cs | Application/MatchGenerator/LayoutConfigureWindow.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
... | mit | C# |
7fc2ccea13db9b29be6599a35a4de7e5462a3c5f | Update GlobalVar.cs | IDEAL-Lab/CIM,IDEAL-Lab/CIM,IDEAL-Lab/CIM,IDEAL-Lab/CIM | InfluenceMaximization/InfluenceMaximization/GlobalVar.cs | InfluenceMaximization/InfluenceMaximization/GlobalVar.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace InfluenceMaximization
{
public static class GlobalVar
{
public static double epsilon = 1e-6;
public static int MC = 80000;
public static int mH = 5000000;
public static int batch_num = 100; // number ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace InfluenceMaximization
{
public static class GlobalVar
{
public static double epsilon = 1e-6;
public static int MC = 80000;
public static int mH = 5000000;
public static int batch_num = 100; // number ... | mit | C# |
f6024ca8c0657cab4eeda90ef9225f66654fd6be | disable automatic migration data loss | dpesheva/QuizFactory,dpesheva/QuizFactory | QuizFactory/QuizFactory.Data/Migrations/Configuration.cs | QuizFactory/QuizFactory.Data/Migrations/Configuration.cs | namespace QuizFactory.Data.Migrations
{
using System;
using System.Data.Entity.Migrations;
using System.Linq;
using QuizFactory.Data;
internal sealed class Configuration : DbMigrationsConfiguration<QuizFactoryDbContext>
{
public Configuration()
{
this.AutomaticMigrat... | namespace QuizFactory.Data.Migrations
{
using System;
using System.Data.Entity.Migrations;
using System.Linq;
using QuizFactory.Data;
internal sealed class Configuration : DbMigrationsConfiguration<QuizFactoryDbContext>
{
public Configuration()
{
this.AutomaticMigrat... | mit | C# |
14f6a615470f6733b544842d19ecf09b170d8ea0 | Copy to memory stream if the input stream does not support seek. | yufeih/Nine.Storage,studio-nine/Nine.Storage | src/Portable/Storage/ContentAddressableStorage.cs | src/Portable/Storage/ContentAddressableStorage.cs | namespace Nine.Storage
{
using System;
using System.IO;
using System.Security.Cryptography;
using System.Threading;
using System.Threading.Tasks;
public class ContentAddressableStorage : IContentAddressableStorage
{
private readonly IBlobStorage blob;
public IBlobStorage B... | namespace Nine.Storage
{
using System;
using System.IO;
using System.Security.Cryptography;
using System.Threading;
using System.Threading.Tasks;
public class ContentAddressableStorage : IContentAddressableStorage
{
private readonly IBlobStorage blob;
public IBlobStorage B... | mit | C# |
2981a5b030ba916a3bc6606093d70dbb254f758c | Fix token. | Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex | src/Squidex.Infrastructure/Security/Extensions.cs | src/Squidex.Infrastructure/Security/Extensions.cs | // ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschränkt)
// All rights reserved. Licensed under the MIT license.
// ============================... | // ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschränkt)
// All rights reserved. Licensed under the MIT license.
// ============================... | mit | C# |
b8149c6c1db2e4f07e828919bc25007c623198f9 | implement Repository.AddRange test | SorenZ/Alamut.DotNet | test/Alamut.Data.Sql.EF.Test/RepositoryTest.cs | test/Alamut.Data.Sql.EF.Test/RepositoryTest.cs | using Alamut.Data.Sql.EF.Repositories;
using Alamut.Data.Sql.EF.Test.Database;
using Alamut.Data.SSOT;
using Alamut.Data.Structure;
using Xunit;
namespace Alamut.Data.Sql.EF.Test
{
public class RepositoryTest
{
private readonly AppDbContext _context;
public RepositoryTest()
{
... | using Alamut.Data.Sql.EF.Repositories;
using Alamut.Data.Sql.EF.Test.Database;
using Alamut.Data.SSOT;
using Alamut.Data.Structure;
using Xunit;
namespace Alamut.Data.Sql.EF.Test
{
public class RepositoryTest
{
private readonly AppDbContext _context;
public RepositoryTest()
{
... | mit | C# |
2f27b1677223bf3dec6dadbcbff3417e7811d06a | Use ? instead of Nullable | wench/Ao3-Tracker,wench/Ao3-Tracker,wench/Ao3-Tracker,wench/Ao3-Tracker | Ao3tracksync/Models/Work.cs | Ao3tracksync/Models/Work.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.... | apache-2.0 | C# |
34db734d026fc018eccf2cfd51f0fe914082f66d | Update OAuthTokenResponse.cs | pdcdeveloper/QpGoogleApi | OAuth/Models/OAuthTokenResponse.cs | OAuth/Models/OAuthTokenResponse.cs | /*
Date : Monday, June 13, 2016
Author : pdcdeveloper (https://github.com/pdcdeveloper)
Objective :
Version : 1.0
*/
using Newtonsoft.Json;
///
/// <summary>
/// Model for the token response from Google after a successful authorization request.
/// </summary>
///
namespace... | /*
Date : Monday, June 13, 2016
Author : QualiP (https://github.com/QualiP)
Objective :
Version : 1.0
*/
using Newtonsoft.Json;
///
/// <summary>
/// Model for the token response from Google after a successful authorization request.
/// </summary>
///
namespace QPGoogleAPI... | mit | C# |
e6fd46051dcbd46a65aad33662ae98e28f7c8f2f | Update user model | Branimir123/PhotoLife,Branimir123/PhotoLife,Branimir123/PhotoLife | PhotoLife/PhotoLife.Models/User.cs | PhotoLife/PhotoLife.Models/User.cs | using System.ComponentModel.DataAnnotations;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
namespace PhotoLife.Models
{
public class User : IdentityUser
{
public User() : base(string.Empty)
{
... | using System.ComponentModel.DataAnnotations;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
namespace PhotoLife.Models
{
public class User : IdentityUser
{
public User() : base(string.Empty)
{
... | mit | C# |
6567f3a21c1c25636d119d8a01ef8a64aca7ebfc | Update AssemblyInfo | BluestoneEU/TypeGap,BluestoneEU/TypeGap,BluestoneEU/TypeGap,BluestoneEU/TypeGap | TypeGap/Properties/AssemblyInfo.cs | TypeGap/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("TypeGap")]
[assembly: AssemblyDescription("A library to bridge the gap between C# (specifically asp.net) and typescript.")]
[assembly: AssemblyCompany("Bluestone")]
[assembly: AssemblyProduc... | 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("Ty... | mit | C# |
d317852745548e35295177a8db708b20fee3ce64 | Fix canvas rendering issue | residuum/xwt,lytico/xwt,TheBrainTech/xwt,akrisiun/xwt,cra0zy/xwt,sevoku/xwt,antmicro/xwt,hwthomas/xwt,directhex/xwt,steffenWi/xwt,mminns/xwt,mono/xwt,iainx/xwt,hamekoz/xwt,mminns/xwt | Xwt.WPF/Xwt.WPFBackend/ExCanvas.cs | Xwt.WPF/Xwt.WPFBackend/ExCanvas.cs | //
// ExCanvas.cs
//
// Author:
// Eric Maupin <ermau@xamarin.com>
//
// Copyright (c) 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, inc... | //
// ExCanvas.cs
//
// Author:
// Eric Maupin <ermau@xamarin.com>
//
// Copyright (c) 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, inc... | mit | C# |
876fe10a8572b80a6d956fbb4f6547535f723083 | Update version to 1.0.3 | gpailler/MegaApiClient,wojciech-urbanowski/MegaApiClient,PNSolutions/MegaApiClient | MegaApiClient/Properties/AssemblyInfo.cs | MegaApiClient/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Me... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Me... | mit | C# |
115f5963a962104b4c3b9246cbaa08e504510434 | Fix issue with default image active behaviour | HelloKitty/317refactor | src/Rs317.Client.OpenTK/Rendering/OpenTKImageProducer.cs | src/Rs317.Client.OpenTK/Rendering/OpenTKImageProducer.cs | using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Runtime.CompilerServices;
namespace Rs317.Sharp
{
public sealed class OpenTKImageProducer : BaseRsImageProducer<OpenTKRsGraphicsContext>, IOpenTKImageRenderable
{
private Bitmap image { get; }
private FasterPixel FasterPixel { get; }... | using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Runtime.CompilerServices;
namespace Rs317.Sharp
{
public sealed class OpenTKImageProducer : BaseRsImageProducer<OpenTKRsGraphicsContext>, IOpenTKImageRenderable
{
private Bitmap image { get; }
private FasterPixel FasterPixel { get; }... | mit | C# |
fb98a70a89f9bb475bbce94ea8195f45feca95f3 | Remove unused lines | pardeike/Harmony | Harmony/Tools/PatchTools.cs | Harmony/Tools/PatchTools.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Harmony
{
public static class PatchTools
{
// this holds all the objects we want to keep alive so they don't get garbage-collected
static Dictionary<object, object> objectReferences = new Dictionary<object, obje... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Harmony
{
public static class PatchTools
{
// this holds all the objects we want to keep alive so they don't get garbage-collected
static Dictionary<object, object> objectReferences = new Dictionary<object, obj... | mit | C# |
485090b40409bde68c3fe8f26ca94d843916a0ac | Implement Bootstrap's collapsible navbar | ShamsulAmry/Malaysia-GST-Checker | Amry.Gst.Web/Views/Shared/_Master.cshtml | Amry.Gst.Web/Views/Shared/_Master.cshtml | @functions {
string BootstrapCssActive(PageTag current)
{
return current == ViewBag.PageTag ? "active" : null;
}
}
<!DOCTYPE html>
<html lang="en" ng-app="@ViewBag.AngularAppName">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" ... | @functions {
string BootstrapCssActive(PageTag current)
{
return current == ViewBag.PageTag ? "active" : null;
}
}
<!DOCTYPE html>
<html lang="en" ng-app="@ViewBag.AngularAppName">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" ... | mit | C# |
abaa9f66cc9e2df27d447f1f475ced2cdffda2fa | Check crew transfer status | DMagic1/KSP_Vessel_Manager | Source/NoteUIObjects/Notes_CrewButton.cs | Source/NoteUIObjects/Notes_CrewButton.cs | using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
using BetterNotes.NoteClasses;
namespace BetterNotes.NoteUIObjects
{
public class Notes_CrewButton : Notes_UIObjectBase
{
private Notes_CrewObject crewObject;
private bool highlight;
private void Start... | using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
using BetterNotes.NoteClasses;
namespace BetterNotes.NoteUIObjects
{
public class Notes_CrewButton : Notes_UIObjectBase
{
private Notes_CrewObject crewObject;
private bool highlight;
private void Start... | mit | C# |
ce4a5a84246250bee58fb428588c1f30ede188f4 | Fix PresentParameters to appear only in Win8 build | VirusFree/SharpDX,dazerdude/SharpDX,TigerKO/SharpDX,TigerKO/SharpDX,sharpdx/SharpDX,PavelBrokhman/SharpDX,PavelBrokhman/SharpDX,fmarrabal/SharpDX,RobyDX/SharpDX,TechPriest/SharpDX,weltkante/SharpDX,Ixonos-USA/SharpDX,VirusFree/SharpDX,RobyDX/SharpDX,sharpdx/SharpDX,fmarrabal/SharpDX,TigerKO/SharpDX,PavelBrokhman/SharpD... | Source/SharpDX.DXGI/PresentParameters.cs | Source/SharpDX.DXGI/PresentParameters.cs | // Copyright (c) 2010-2011 SharpDX - Alexandre Mutel
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modi... | using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace SharpDX.DXGI
{
public partial struct PresentParameters
{
/// <summary>
/// <para>A list of updated rectangles that you update in the back buffer for the presented frame. An appl... | mit | C# |
71e7533caf9c5f9edcb4ddcd193a3288c380c551 | Use string interpolation | bcemmett/SurveyMonkeyApi-v3 | SurveyMonkey/SurveyMonkeyApi.Webhooks.cs | SurveyMonkey/SurveyMonkeyApi.Webhooks.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json.Linq;
using SurveyMonkey.Containers;
using SurveyMonkey.RequestSettings;
namespace SurveyMonkey
{
public partial class SurveyMonkeyApi
{
public List<Webhook> GetWebhookList()
{
var settings = n... | using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json.Linq;
using SurveyMonkey.Containers;
using SurveyMonkey.RequestSettings;
namespace SurveyMonkey
{
public partial class SurveyMonkeyApi
{
public List<Webhook> GetWebhookList()
{
var settings = n... | mit | C# |
2fcf7cae8a06236532f4c176740e0bdf44d70ddc | remove unecessary interface on blueprintIngredient | msarilar/EDEngineer,Psieonic/EDEngineer,Psieonic/EDEngineer,msarilar/EDEngineer | EDEngineer/Models/BlueprintIngredient.cs | EDEngineer/Models/BlueprintIngredient.cs | namespace EDEngineer.Models
{
public class BlueprintIngredient
{
public Entry Entry { get; }
public BlueprintIngredient(Entry entry, int size)
{
Entry = entry;
Size = size;
}
public int Size { get; }
public override string... | using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace EDEngineer.Models
{
public class BlueprintIngredient : INotifyPropertyChanged
{
public Entry Entry { get; }
public BlueprintIngredient(Entry entry, int size)
{
Entry = entry;
... | mit | C# |
fd02b3181e0fcb4a758964c10192c81d2bd877d4 | Update comment. | CountrySideEngineer/Ev3Controller | dev/src/Ev3Controller/ViewModel/Ev3SafeStateViewModel.cs | dev/src/Ev3Controller/ViewModel/Ev3SafeStateViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ev3Controller.ViewModel
{
public class Ev3SafeStateViewModel : DeviceViewModelBase
{
#region Public Properties
/// <summary>
/// State that shows sa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ev3Controller.ViewModel
{
public class Ev3SafeStateViewModel : DeviceViewModelBase
{
#region Public Properties
/// <summary>
/// State that shows sa... | mit | C# |
0467760bd6611587680211da7b56e375b5aa29bc | fix hardcoded blog path | Wyamio/Wyam,Wyamio/Wyam,Wyamio/Wyam | themes/Docs/Samson/Shared/_BlogPostDetails.cshtml | themes/Docs/Samson/Shared/_BlogPostDetails.cshtml | @model IDocument
<dl class="dl-horizontal">
<dt><i class="fa fa-calendar"></i> Published</dt>
<dd>@(Model.Get<DateTime>(DocsKeys.Published).ToLongDateString(Context))</dd>
@if(Model.ContainsKey(DocsKeys.Category))
{
string link = Model.String(DocsKeys.Category).Replace(" ", "-").Replace(... | @model IDocument
<dl class="dl-horizontal">
<dt><i class="fa fa-calendar"></i> Published</dt>
<dd>@(Model.Get<DateTime>(DocsKeys.Published).ToLongDateString(Context))</dd>
@if(Model.ContainsKey(DocsKeys.Category))
{
string link = Model.String(DocsKeys.Category).Replace(" ", "-").Replace(... | mit | C# |
23e243a1647339dfa5dc1cf0e04347da9f471d7d | Revert "Increase the maximum time we wait for long running tests from 5 to 10." | eric-davis/JustSaying,Intelliflo/JustSaying,Intelliflo/JustSaying | JustSaying.TestingFramework/Patiently.cs | JustSaying.TestingFramework/Patiently.cs | using System;
using System.Threading;
using NUnit.Framework;
namespace JustSaying.TestingFramework
{
public static class Patiently
{
public static void VerifyExpectation(Action expression)
{
VerifyExpectation(expression, 5.Seconds());
}
public static v... | using System;
using System.Threading;
using NUnit.Framework;
namespace JustSaying.TestingFramework
{
public static class Patiently
{
public static void VerifyExpectation(Action expression)
{
VerifyExpectation(expression, 5.Seconds());
}
public static v... | apache-2.0 | C# |
4e7f28f365132c5db52e6ff32bf73c4cf34f6459 | Add parentheses within the conditional AND and OR expressions to declare the operator precedence | mike-rowley/XamarinMediaManager,martijn00/XamarinMediaManager,mike-rowley/XamarinMediaManager,martijn00/XamarinMediaManager | MediaManager/Media/MediaExtractorBase.cs | MediaManager/Media/MediaExtractorBase.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
namespace MediaManager.Media
{
public abstract class MediaExtractorBase : IMediaExtractor
{
public virtual async Task<IMediaItem> CreateMediaItem(string url)
{
var medi... | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
namespace MediaManager.Media
{
public abstract class MediaExtractorBase : IMediaExtractor
{
public virtual async Task<IMediaItem> CreateMediaItem(string url)
{
var medi... | mit | C# |
1d0fc419496d16307bda5a2ef40c93db0fdc8d16 | insert object sent from page | pako1337/Content_Man,pako1337/Content_Man | Content_Man.Web/api/ContentElementApiModule.cs | Content_Man.Web/api/ContentElementApiModule.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ContentDomain;
using ContentDomain.Dto;
using ContentDomain.Repositories;
using Nancy;
using Nancy.ModelBinding;
namespace Content_Man.Web.api
{
public class ContentElementApiModule : Nancy.NancyModule
{
public ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ContentDomain;
using ContentDomain.Dto;
using ContentDomain.Repositories;
using Nancy;
using Nancy.ModelBinding;
namespace Content_Man.Web.api
{
public class ContentElementApiModule : Nancy.NancyModule
{
public ... | mit | C# |
b2f4a05c8665eb79e037a0a78a025847263559c0 | Revert accidental commit | bratsche/monotouch-samples,a9upam/monotouch-samples,hongnguyenpro/monotouch-samples,robinlaide/monotouch-samples,kingyond/monotouch-samples,nervevau2/monotouch-samples,albertoms/monotouch-samples,albertoms/monotouch-samples,W3SS/monotouch-samples,W3SS/monotouch-samples,markradacz/monotouch-samples,peteryule/monotouch-s... | BubbleCell/BubbleCell/AppDelegate.cs | BubbleCell/BubbleCell/AppDelegate.cs | //
// Sample shows how to use MonoTouch.Dialog to create an iPhone SMS-like
// display of conversations
//
// Author:
// Miguel de Icaza
//
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Dialog;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace BubbleCell
{
[Register... | //
// Sample shows how to use MonoTouch.Dialog to create an iPhone SMS-like
// display of conversations
//
// Author:
// Miguel de Icaza
//
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Dialog;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace BubbleCell
{
[Register... | mit | C# |
b24b7b15d41918aec2943322787b5737786dafcf | Update ValuesController.cs | bigfont/webapi-cors | CORS/Controllers/ValuesController.cs | CORS/Controllers/ValuesController.cs | using System.Collections.Generic;
using System.Web.Http;
using System.Web.Http.Cors;
namespace CORS.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable<string> Get()
{
return new string[] {
"This is... | using System.Collections.Generic;
using System.Web.Http;
using System.Web.Http.Cors;
namespace CORS.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable<string> Get()
{
return new string[] {
"This is... | mit | C# |
bf04ebd3f795ac8528d18dffed932e4e27d9184b | Use fieldset instead of div | mattgwagner/alert-roster | alert-roster.web/Views/Home/Index.cshtml | alert-roster.web/Views/Home/Index.cshtml | @model IEnumerable<alert_roster.web.Models.Message>
@{
ViewBag.Title = "Messages";
}
<div class="jumbotron">
<h1>@ViewBag.Title</h1>
</div>
@foreach (var message in Model)
{
<div class="row">
<div class="col-md-4">
<fieldset>
<legend>
<script>var d... | @model IEnumerable<alert_roster.web.Models.Message>
@{
ViewBag.Title = "Messages";
}
<div class="jumbotron">
<h1>@ViewBag.Title</h1>
</div>
@foreach (var message in Model)
{
<div class="row">
<div class="col-md-4">
<h2>
<script>var d = moment.utc('@message.PostedDate').lo... | mit | C# |
83f0d611e0e667bdac743ad211ca311df12b1704 | Add spacing | fredatgithub/UsefulFunctions | ConsoleAppPrimesByHundred/Program.cs | ConsoleAppPrimesByHundred/Program.cs | using System;
using FonctionsUtiles.Fred.Csharp;
namespace ConsoleAppPrimesByHundred
{
internal class Program
{
private static void Main()
{
Action<string> display = Console.WriteLine;
display("Prime numbers by hundred:");
foreach (var kvp in FunctionsPrimes.NumberOfPrimesByHundred(1000)... | using System;
using FonctionsUtiles.Fred.Csharp;
namespace ConsoleAppPrimesByHundred
{
internal class Program
{
private static void Main()
{
Action<string> display = Console.WriteLine;
display("Prime numbers by hundred:");
foreach (var kvp in FunctionsPrimes.NumberOfPrimesByHundred(1000)... | mit | C# |
c1d68bb66f8da7b0fcdb96970848ee0e501d785e | Add DoAsync method | sakapon/KLibrary-Labs | CoreLab/Core/Reactive/Observable2.cs | CoreLab/Core/Reactive/Observable2.cs | using KLibrary.Labs.Mathematics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace KLibrary.Labs.Reactive
{
public static class Observable2
{
public static IObservable<long> Interval(TimeSpan interval)
{
return new TimeTicker... | using KLibrary.Labs.Mathematics;
using System;
using System.Collections.Generic;
using System.Linq;
namespace KLibrary.Labs.Reactive
{
public static class Observable2
{
public static IObservable<long> Interval(TimeSpan interval)
{
return new TimeTicker(interval);
}
... | mit | C# |
549367727f0955674791285099b6eee0e36a08b4 | fix compile error | guibec/rpgcraft,guibec/rpgcraft,guibec/rpgcraft,guibec/rpgcraft | unity/Assets/Scripts/Game/Player/Experience.cs | unity/Assets/Scripts/Game/Player/Experience.cs | using UnityEngine;
using System.Collections;
using UnityEngine.Assertions;
public class Experience
{
public Experience()
{
XP = 0;
}
public int Level
{
get
{
for (int i = MaxLevel-1; i >= 0; --i)
{
if (XP >= NextLevels[i])
... | using UnityEngine;
using System.Collections;
using UnityEngine.Assertions;
public class Experience
{
public int Level
{
get
{
for (int i = MaxLevel-1; i >= 0; --i)
{
if (XP >= NextLevels[i])
return i + 1;
}
As... | mit | C# |
4fc89ea30e25fb7def853c0aa1ab770781a28ebe | Trim un-necessarry char from aggregation variable | inohiro/LodViewProvider | LodViewProvider/LodViewProvider/Aggregation.cs | LodViewProvider/LodViewProvider/Aggregation.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LodViewProvider {
public enum AggregationType {
Min = 0,
Max = 1,
Sum = 2,
Count = 3,
Average = 4,
// group by
// order by
}
public class Aggregation : ICondition {
public string Variable { get; priva... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LodViewProvider {
public enum AggregationType {
Min = 0,
Max = 1,
Sum = 2,
Count = 3,
Average = 4,
// group by
// order by
}
public class Aggregation : ICondition {
public string Variable { get; priva... | mit | C# |
d7219e321707ed71e07f990bde08c0205abbbeb0 | clean up | RogerKratz/mbcache | MbCache/Logic/LogAndStatisticCacheDecorator.cs | MbCache/Logic/LogAndStatisticCacheDecorator.cs | using log4net;
using MbCache.Core;
namespace MbCache.Logic
{
public class LogAndStatisticCacheDecorator : ICache, IStatistics
{
private ILog log;
private readonly ICache _cache;
public LogAndStatisticCacheDecorator(ICache cache)
{
_cache = cache;
... | using System;
using log4net;
using MbCache.Core;
namespace MbCache.Logic
{
public class LogAndStatisticCacheDecorator : ICache, IStatistics
{
private ILog log;
private readonly ICache _cache;
private long _cacheHits;
private long _cacheMisses;
public LogAnd... | mit | C# |
72c6d69789b80c3f729f2a5b4b17318572758b9a | Switch to v1.0.3 | Abc-Arbitrage/Zebus,Abc-Arbitrage/Zebus.Persistence | src/SharedVersionInfo.cs | src/SharedVersionInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("1.0.3")]
[assembly: AssemblyFileVersion("1.0.3")]
[assembly: AssemblyInformationalVersion("1.0.3")] | using System.Reflection;
[assembly: AssemblyVersion("1.0.2")]
[assembly: AssemblyFileVersion("1.0.2")]
[assembly: AssemblyInformationalVersion("1.0.2")] | mit | C# |
714dd7486e52e36e657e2ebbf4c4359586ae8f47 | Fix creation date | kcotugno/OpenARLog | OpenARLog.Data/TypeData.cs | OpenARLog.Data/TypeData.cs | /*
* Copyright (C) 2015-2016 kcotugno
* All rights reserved
*
* Distributed under the terms of the BSD 2 Clause software license. See the
* accompanying LICENSE file or http://www.opensource.org/licenses/BSD-2-Clause.
*
* Author: kcotugno
* Date: 4/8/2016
*/
using System.Data;
namespace OpenARLo... | /*
* Copyright (C) 2015-2016 kcotugno
* All rights reserved
*
* Distributed under the terms of the BSD 2 Clause software license. See the
* accompanying LICENSE file or http://www.opensource.org/licenses/BSD-2-Clause.
*
* Author: kcotugno
* Date: 4/6/2016
*/
using System.Data;
namespace OpenARLo... | mit | C# |
41afe14be7f21ead740e59849760faaedb2513f5 | Fix incorrect usage of Sldr API by SldrWritingSystemFactory | gmartin7/libpalaso,ddaspit/libpalaso,gtryus/libpalaso,mccarthyrb/libpalaso,gtryus/libpalaso,ermshiperete/libpalaso,ermshiperete/libpalaso,ermshiperete/libpalaso,gmartin7/libpalaso,mccarthyrb/libpalaso,sillsdev/libpalaso,tombogle/libpalaso,sillsdev/libpalaso,glasseyes/libpalaso,gtryus/libpalaso,andrew-polk/libpalaso,gla... | SIL.WritingSystems/SldrWritingSystemFactory.cs | SIL.WritingSystems/SldrWritingSystemFactory.cs | using System.IO;
namespace SIL.WritingSystems
{
public class SldrWritingSystemFactory : SldrWritingSystemFactory<WritingSystemDefinition>
{
protected override WritingSystemDefinition ConstructDefinition()
{
return new WritingSystemDefinition();
}
protected override WritingSystemDefinition ConstructDefin... | using System.IO;
using System.Net;
namespace SIL.WritingSystems
{
public class SldrWritingSystemFactory : SldrWritingSystemFactory<WritingSystemDefinition>
{
protected override WritingSystemDefinition ConstructDefinition()
{
return new WritingSystemDefinition();
}
protected override WritingSystemDefinit... | mit | C# |
2384c4fa70235a1b8bc661d239028d5af4c40bf6 | Update IUserSessionScopeStorage.cs | tiksn/TIKSN-Framework | TIKSN.Core/Session/IUserSessionScopeStorage.cs | TIKSN.Core/Session/IUserSessionScopeStorage.cs | using System;
namespace TIKSN.Session
{
public interface IUserSessionScopeStorage<TIdentity> where TIdentity : IEquatable<TIdentity>
{
IServiceProvider GetOrAddServiceProvider(TIdentity id);
bool TryRemoveServiceProvider(TIdentity id);
}
}
| using System;
namespace TIKSN.Session
{
public interface IUserSessionScopeStorage<TIdentity> where TIdentity : IEquatable<TIdentity>
{
IServiceProvider GetOrAddServiceProvider(TIdentity id);
bool TryRemoveServiceProvider(TIdentity id);
}
} | mit | C# |
558ce640c805a4f5016223d67770409cee74e60e | Sort out assembly metadata. | CamTechConsultants/CvsntGitImporter | Properties/AssemblyInfo.cs | 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: 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# |
332aba5b558b70b6595f46d8d1b67bbd83ba93fe | Add SongInfo.WebUrl | gyrosworkshop/Wukong,gyrosworkshop/Wukong | src/Wukong/Models/Song.cs | src/Wukong/Models/Song.cs | using System;
using System.Reflection;
namespace Wukong.Models
{
public class ClientSong
{
public string SiteId { get; set; }
public string SongId { get; set; }
// override object.Equals
public override bool Equals(object obj)
{
var song = obj as ClientSong;... | using System;
using System.Reflection;
namespace Wukong.Models
{
public class ClientSong
{
public string SiteId { get; set; }
public string SongId { get; set; }
// override object.Equals
public override bool Equals(object obj)
{
var song = obj as ClientSong;... | mit | C# |
113f90e92e341f826926a1a3d2f4dcd9387df952 | add back schedule is CurrentPath setter | UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,peppy/osu-new,smoogipooo/osu | osu.Game/Overlays/Wiki/Markdown/WikiMarkdownContainer.cs | osu.Game/Overlays/Wiki/Markdown/WikiMarkdownContainer.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using Markdig.Extensions.Yaml;
using Markdig.Syntax;
using Markdig.Syntax.Inlines;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphic... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using Markdig.Extensions.Yaml;
using Markdig.Syntax;
using Markdig.Syntax.Inlines;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphic... | mit | C# |
3efd8b68e81ccffa2ccc3d67e3ac17773f4a2bc0 | add support for zoom level based cache folders | brnkhy/MapzenGo,brnkhy/MapzenGo | Assets/MapzenGo/Models/CachedDynamicTileManager.cs | Assets/MapzenGo/Models/CachedDynamicTileManager.cs | using System.IO;
using System.Text;
using MapzenGo.Helpers;
using UniRx;
using UnityEngine;
namespace MapzenGo.Models
{
public class CachedDynamicTileManager : DynamicTileManager
{
public string RelativeCachePath = "../MapzenGo/CachedTileData/{0}/";
protected string CacheFolderPath;
p... | using System.IO;
using System.Text;
using UniRx;
using UnityEngine;
namespace MapzenGo.Models
{
public class CachedDynamicTileManager : DynamicTileManager
{
public string RelativeCachePath = "../MapzenGo/CachedTileData/";
protected string CacheFolderPath;
public override void Start()
... | mit | C# |
4e944de0ca1170755b4d0ca09fda4a797402bb15 | Fix for SSD rank filtering | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Controllers/SSDController.cs | Battery-Commander.Web/Controllers/SSDController.cs | using BatteryCommander.Web.Models;
using BatteryCommander.Web.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Linq;
using System.Threading.Tasks;
namespace BatteryCommander.Web.Controllers
{
[Authorize, ApiExplorerSettings(IgnoreApi = true)]
public class SSDCon... | using BatteryCommander.Web.Models;
using BatteryCommander.Web.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Threading.Tasks;
namespace BatteryCommander.Web.Controllers
{
[Authorize, ApiExplorerSettings(IgnoreApi = true)]
public class SSDControll... | mit | C# |
7c4ff956e6844d1f58f450038bf32882347964c5 | Make test functions static, add new test and optimize old tests. | Xevle/Tests | Tests.Xevle.Math/Tuples/Tuple3dcTests.cs | Tests.Xevle.Math/Tuples/Tuple3dcTests.cs | using NUnit.Framework;
using System;
using Xevle.Math.Tuples;
namespace Tests.Xevle.Math
{
[TestFixture()]
public static class Test
{
static double delta=0.0001;
[Test()]
public static void TestConstructor()
{
// Prepare test
Tuple3dc tuple = new Tuple3dc(1, 2, 3);
// Execute test
Assert.Ar... | using NUnit.Framework;
using System;
using Xevle.Math.Tuples;
namespace Tests.Xevle.Math
{
[TestFixture()]
public class Test
{
[Test()]
public void TestConstructor()
{
// Prepare test
Tuple3dc tuple = new Tuple3dc(1, 2, 3);
// Execute test
Assert.AreEqual(1, tuple.x);
Assert.AreEqual(2, tuple... | mit | C# |
b6a458a07ec9518fb011782f2cceb8560f82a273 | Cover seasonal backgrounds not resetting on inactivity in test | ppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu,ppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu | osu.Game.Tests/NonVisual/SessionStaticsTest.cs | osu.Game.Tests/NonVisual/SessionStaticsTest.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 NUnit.Framework;
using osu.Game.Configuration;
using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Tests.NonVisual
{
[TestFixture]
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Game.Configuration;
namespace osu.Game.Tests.NonVisual
{
[TestFixture]
public class SessionStaticsTest
{
private Ses... | mit | C# |
c9d33122a2141976c9c5cdf99345687e9e78f591 | Rewrite BaseViewModel's property resolution to keep dependency map in a static field and only resolve the dependencies once during the lifetime of an application. | Misza13/StarsReloaded | StarsReloaded.Client.ViewModel/BaseViewModel.cs | StarsReloaded.Client.ViewModel/BaseViewModel.cs | namespace StarsReloaded.Client.ViewModel
{
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.CompilerServices;
using GalaSoft.MvvmLight;
using StarsReloaded.Client.ViewModel.Attributes;
public class BaseViewModel : ViewModelBase
{
p... | namespace StarsReloaded.Client.ViewModel
{
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using GalaSoft.MvvmLight;
using StarsReloaded.Client.ViewModel.Attributes;
public class BaseViewModel : ViewModelBase
{
public override void RaisePropertyChang... | mit | C# |
8ce9edaf8f9fa661669a846fe36df3701fdb217c | Initialize claims collection in InMemoryUser | IdentityServer/IdentityServer3,paulofoliveira/IdentityServer3,tonyeung/IdentityServer3,olohmann/IdentityServer3,johnkors/Thinktecture.IdentityServer.v3,buddhike/IdentityServer3,jonathankarsh/IdentityServer3,angelapper/IdentityServer3,remunda/IdentityServer3,delRyan/IdentityServer3,18098924759/IdentityServer3,wondertrap... | source/Core/Services/InMemory/InMemoryUser.cs | source/Core/Services/InMemory/InMemoryUser.cs | /*
* Copyright 2014 Dominick Baier, Brock Allen
*
* 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 la... | /*
* Copyright 2014 Dominick Baier, Brock Allen
*
* 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 la... | apache-2.0 | C# |
ed0d29db3dfef54146e4e6dfe03f601b454df26f | remove comments | stanac/LiteApi,stanac/LiteApi,stanac/LiteApi | LiteApi/LiteApi.Demo/Controllers/TestController.cs | LiteApi/LiteApi.Demo/Controllers/TestController.cs | using System.Collections.Generic;
using System.Linq;
namespace LiteApi.Demo.Controllers
{
public class TestController : LiteController
{
readonly IDemoService _service;
public TestController(IDemoService service)
{
_service = service;
}
public int Add(int ... | using System.Collections.Generic;
using System.Linq;
namespace LiteApi.Demo.Controllers
{
public class TestController : LiteController
{
readonly IDemoService _service;
public TestController(IDemoService service)
{
_service = service;
}
public int Add(int ... | mit | C# |
cefbba1930aa85d129113374bedb4ccedc414cec | add trigger attribute to Routine | myxini/block-program | block-program/Detection/Routine.cs | block-program/Detection/Routine.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myxini.Recognition
{
public class Routine
{
private IList<Instruction> list_instruction = new List<Instruction>();
public Routine(ControlBlock trigger)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myxini.Recognition
{
public class Routine
{
private IList<Instruction> list_instruction = new List<Instruction>();
public Routine()
{
Instructions ... | mit | C# |
45b7bcf1f97091fd764d43eccf0072e69135f178 | Add check is transport work with webGL or not at transport factory | insthync/LiteNetLibManager,insthync/LiteNetLibManager | Scripts/Transports/WebSocket/WebSocketTransportFactory.cs | Scripts/Transports/WebSocket/WebSocketTransportFactory.cs | namespace LiteNetLibManager
{
public class WebSocketTransportFactory : BaseTransportFactory
{
public override bool CanUseWithWebGL { get { return true; } }
public override ITransport Build()
{
return new WebSocketTransport();
}
}
}
| namespace LiteNetLibManager
{
public class WebSocketTransportFactory : BaseTransportFactory
{
public override bool CanUseWithWebGL { get { return false; } }
public override ITransport Build()
{
return new WebSocketTransport();
}
}
}
| mit | C# |
55df1f469e11e5fdba1304654e26b0833af46e5f | Fix the null reference exception coming from AutomaticPackageCurator when curatedFeed has been loaded without including Packages. | KuduApps/NuGetGallery,KuduApps/NuGetGallery,KuduApps/NuGetGallery,ScottShingler/NuGetGallery,skbkontur/NuGetGallery,projectkudu/SiteExtensionGallery,projectkudu/SiteExtensionGallery,skbkontur/NuGetGallery,KuduApps/NuGetGallery,JetBrains/ReSharperGallery,mtian/SiteExtensionGallery,grenade/NuGetGallery_download-count-pat... | Website/PackageCurators/WebMatrixPackageCurator.cs | Website/PackageCurators/WebMatrixPackageCurator.cs | using System.IO;
using System.Linq;
using NuGet;
namespace NuGetGallery
{
public class WebMatrixPackageCurator : AutomaticPackageCurator
{
public override void Curate(
Package galleryPackage,
IPackage nugetPackage)
{
var curatedFeed = GetService<ICuratedFeed... | using System.IO;
using System.Linq;
using NuGet;
namespace NuGetGallery
{
public class WebMatrixPackageCurator : AutomaticPackageCurator
{
public override void Curate(
Package galleryPackage,
IPackage nugetPackage)
{
var curatedFeed = GetService<ICuratedFeed... | apache-2.0 | C# |
4e38d043b810c98b1f99768a330f06b695a2d3af | add tool method for DictionaryExtension | yuanrui/Examples,yuanrui/Examples,yuanrui/Examples,yuanrui/Examples,yuanrui/Examples | Simple.Common/Extensions/DictionaryExtension.cs | Simple.Common/Extensions/DictionaryExtension.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Simple.Common.Extensions
{
public static class DictionaryExtension
{
/// <summary>
/// try add key value for dictionary, if key not exists then add key value, else do nothing.
/// Thread uns... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Simple.Common.Extensions
{
public static class DictionaryExtension
{
/// <summary>
/// try add key value for dictionary, if key not exists then add key value, else do nothing.
/// Thread uns... | apache-2.0 | C# |
26adb3642b7ee6b6a0c2f50bcf0c6e7cedb285b7 | Increment AssemblyInfo version number. | fox091/TournamentTeamMaker | TeamMaker/Properties/AssemblyInfo.cs | TeamMaker/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("TeamMaker")]
[assembly: AssemblyDescripti... | 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("Te... | mit | C# |
0420a64b6b39e70d7d538ac655a16a1cb6675309 | Bump version to 0.6.6 | ar3cka/Journalist | src/SolutionInfo.cs | src/SolutionInfo.cs | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyProductAttribute("Journalist")]
[assembly: AssemblyVersionAttribute("0.6.6")]
[assembly: AssemblyInformationalVersionAttribute("0.6.6")]
[assembly: AssemblyFileVersionAttribute("0.6.6")]
[assembly: AssemblyCompanyAttribute("Anton Mednonogov")]
namespace... | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyProductAttribute("Journalist")]
[assembly: AssemblyVersionAttribute("0.6.5")]
[assembly: AssemblyInformationalVersionAttribute("0.6.5")]
[assembly: AssemblyFileVersionAttribute("0.6.5")]
[assembly: AssemblyCompanyAttribute("Anton Mednonogov")]
namespace... | apache-2.0 | C# |
e93fef3c3dfded6bebc773537c01ad0a490cef6a | Test for NH-2559 (does not fail) | fredericDelaporte/nhibernate-core,nhibernate/nhibernate-core,lnu/nhibernate-core,fredericDelaporte/nhibernate-core,alobakov/nhibernate-core,fredericDelaporte/nhibernate-core,RogerKratz/nhibernate-core,nhibernate/nhibernate-core,gliljas/nhibernate-core,lnu/nhibernate-core,ngbrown/nhibernate-core,nkreipke/nhibernate-core... | src/NHibernate.Test/Linq/ByMethod/AnyTests.cs | src/NHibernate.Test/Linq/ByMethod/AnyTests.cs | using System.Linq;
using NUnit.Framework;
namespace NHibernate.Test.Linq.ByMethod
{
[TestFixture]
public class AnyTests : LinqTestCase
{
[Test]
public void AnySublist()
{
var orders = db.Orders.Where(o => o.OrderLines.Any(ol => ol.Quantity == 5)).ToList();
Assert.AreEqual(61, orders.Count);... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
namespace NHibernate.Test.Linq.ByMethod
{
[TestFixture]
public class AnyTests : LinqTestCase
{
[Test]
public void AnySublist()
{
var orders = db.Orders.Wher... | lgpl-2.1 | C# |
c2e526400ff8282fbb5f17f332f1b6f1603b517b | Use IActor instead of Actor in UsingIFrame action | Galad/tranquire,Galad/tranquire,Galad/tranquire | src/Tranquire.Selenium/Actions/UsingIFrame.cs | src/Tranquire.Selenium/Actions/UsingIFrame.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Tranquire.Selenium.Actions
{
/// <summary>
/// Allow to switch to a frame and go back to the parent frame
/// </summary>
public class UsingIFrame
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Tranquire.Selenium.Actions
{
/// <summary>
/// Allow to switch to a frame and go back to the parent frame
/// </summary>
public class UsingIFrame
{
... | mit | C# |
599b96bc524e791e2ba6b212ec4b922c583426d9 | bump version | northwoodspd/UIA.Extensions,northwoodspd/UIA.Extensions | src/UIA.Extensions/Properties/AssemblyInfo.cs | src/UIA.Extensions/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("UI... | 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("UI... | mit | C# |
7b72c0635cb2cdcf4410b8e2a087e1125b001a1b | Allow getting UpgradeConfiguration from UpgradeEngineBuilder | DbUp/DbUp | src/dbup-core/Builder/UpgradeEngineBuilder.cs | src/dbup-core/Builder/UpgradeEngineBuilder.cs | using System;
using System.Collections.Generic;
using DbUp.Engine;
namespace DbUp.Builder
{
/// <summary>
/// Builds a UpgradeEngine by accepting a list of callbacks to execute. For custom configuration, you should
/// implement extension methods on top of this class.
/// </summary>
public class ... | using System;
using System.Collections.Generic;
using DbUp.Engine;
namespace DbUp.Builder
{
/// <summary>
/// Builds a UpgradeEngine by accepting a list of callbacks to execute. For custom configuration, you should
/// implement extension methods on top of this class.
/// </summary>
public class ... | mit | C# |
26b54fab3d60805d8ba682e26412df18b80a0d10 | update removed | murst/Blogifier.Core,murst/Blogifier.Core,blogifierdotnet/Blogifier.Core,murst/Blogifier.Core,blogifierdotnet/Blogifier.Core | samples/WebApp/Views/Blogifier/Admin/Custom/_Shared/_about.cshtml | samples/WebApp/Views/Blogifier/Admin/Custom/_Shared/_about.cshtml | <div class="modal modal-sm" id="aboutBlogifier">
<div class="modal-overlay modal-close"></div>
<div class="modal-body">
<div class="bf-about">
<img class="item-logo" src="/embedded/lib/img/logo.png" alt="Blogifier" />
<h2 class="item-title">Blogifier @Blogifier.Core.Common.Applic... | <div class="modal modal-sm" id="aboutBlogifier">
<div class="modal-overlay modal-close"></div>
<div class="modal-body">
<div class="bf-about">
<img class="item-logo" src="/embedded/lib/img/logo.png" alt="Blogifier" />
<h2 class="item-title">Blogifier @Blogifier.Core.Common.Applic... | mit | C# |
c7ef248a5ba8e6076a7c2412860edfa4d2b0221a | Update IArgbColor.cs | Core2D/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D/Model/Style/IArgbColor.cs | src/Core2D/Model/Style/IArgbColor.cs |
namespace Core2D.Style
{
/// <summary>
/// Defines ARGB color contract.
/// </summary>
public interface IArgbColor : IColor, IStringExporter
{
/// <summary>
/// Alpha color channel.
/// </summary>
byte A { get; set; }
/// <summary>
/// Red color cha... |
namespace Core2D.Style
{
/// <summary>
/// Defines ARGB color contract.
/// </summary>
public interface IArgbColor : IColor
{
/// <summary>
/// Alpha color channel.
/// </summary>
byte A { get; set; }
/// <summary>
/// Red color channel.
///... | mit | C# |
25ed491f8a37dad3dcfcc7484414276d4e7521a5 | Add broken test to testproj | JetBrains/teamcity-dotmemory,JetBrains/teamcity-dotmemory | testproj/UnitTest1.cs | testproj/UnitTest1.cs | namespace testproj
{
using System;
using System.Collections.Generic;
using JetBrains.dotMemoryUnit;
using NUnit.Framework;
[TestFixture]
public class UnitTest1
{
[Test]
public void TestMethod1()
{
var strs = new List<string>();
var memoryCh... | namespace testproj
{
using System;
using JetBrains.dotMemoryUnit;
using NUnit.Framework;
[TestFixture]
public class UnitTest1
{
[Test]
public void TestMethod1()
{
dotMemory.Check(
memory =>
{
var str1 = "... | apache-2.0 | C# |
3fde470e6ed03afa24414cf053479030035626a7 | Remove steps from part 1 that have been moved to part 2. | JohnRush/File-Encryption-Tutorial | source/Tutorial01/Tutorial01.cs | source/Tutorial01/Tutorial01.cs | using System;
using System.IO;
using System.Security.Cryptography;
namespace Tutorial
{
class Program
{
static void Main(string[] args)
{
if (args.Length != 2)
{
Console.WriteLine("You must provide the name of a file to read and the name of a... | using System;
using System.IO;
using System.Security.Cryptography;
namespace Tutorial
{
class Program
{
static void Main(string[] args)
{
if (args.Length != 2)
{
Console.WriteLine("You must provide the name of a file to read and the name of a... | mit | C# |
d535f5e06c4569027929d30a66674c6ecfd92b35 | Remove a non-test 'test' accidentally added in revision 16233f163778. | BenJenkinson/nodatime,malcolmr/nodatime,jskeet/nodatime,zaccharles/nodatime,zaccharles/nodatime,zaccharles/nodatime,malcolmr/nodatime,malcolmr/nodatime,jskeet/nodatime,zaccharles/nodatime,nodatime/nodatime,malcolmr/nodatime,BenJenkinson/nodatime,nodatime/nodatime,zaccharles/nodatime,zaccharles/nodatime | src/NodaTime.Test/Calendars/HebrewEcclesiasticalCalculatorTest.cs | src/NodaTime.Test/Calendars/HebrewEcclesiasticalCalculatorTest.cs | // Copyright 2014 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using NodaTime.Calendars;
usi... | // Copyright 2014 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using NodaTime.Calendars;
usi... | apache-2.0 | C# |
2508a910ab24fa303f992089b7ea467a41a174fe | Update MultipleRequest tests | pardahlman/RawRabbit,northspb/RawRabbit | src/RawRabbit.IntegrationTests/SimpleUse/MultipleRequestsTests.cs | src/RawRabbit.IntegrationTests/SimpleUse/MultipleRequestsTests.cs | using System;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using RawRabbit.Common;
using RawRabbit.IntegrationTests.TestMessages;
using RawRabbit.vNext;
using Xunit;
namespace RawRabbit.IntegrationTests.SimpleUse
{
public clas... | using System;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using RawRabbit.Common;
using RawRabbit.IntegrationTests.TestMessages;
using RawRabbit.vNext;
using Xunit;
namespace RawRabbit.IntegrationTests.SimpleUse
{
public class MultipleRequestsT... | mit | C# |
d8bd2f0a7d6e3fd1895beb14f820ce43aa83689d | Fix the called parameter being incorrect | ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework | osu.Framework.Tests/Primitives/TriangleTest.cs | osu.Framework.Tests/Primitives/TriangleTest.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Graphics.Primitives;
using osuTK;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Graphics.Primitives;
using osuTK;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;... | mit | C# |
329fae6450e772c1d36d4a248ccf0ecd1062d55c | Add marquee, logo and adjustments to IVideoManagement | xue-blood/wpfVlc,RickyGAkl/Vlc.DotNet,marcomeyer/Vlc.DotNet,someonehan/Vlc.DotNet,raydtang/Vlc.DotNet,RickyGAkl/Vlc.DotNet,briancowan/Vlc.DotNet,someonehan/Vlc.DotNet,thephez/Vlc.DotNet,agherardi/Vlc.DotNet,jeremyVignelles/Vlc.DotNet,agherardi/Vlc.DotNet,briancowan/Vlc.DotNet,marcomeyer/Vlc.DotNet,xue-blood/wpfVlc,thep... | src/Vlc.DotNet.Core/IVideoManagement.cs | src/Vlc.DotNet.Core/IVideoManagement.cs | namespace Vlc.DotNet.Core
{
public interface IVideoManagement
{
string CropGeometry { get; set; }
int Teletext { get; set; }
ITracksManagement Tracks { get; }
string Deinterlace { set; }
IMarqueeManagement Marquee { get; }
ILogoManagement Logo { get; }
IA... | namespace Vlc.DotNet.Core
{
public interface IVideoManagement
{
string CropGeometry { get; set; }
int Teletext { get; set; }
ITracksManagement Tracks { get; }
string Deinterlace { set; }
}
} | mit | C# |
2f61d93ea479ee09fb91c1ff2d899f2ffdcd5303 | correct method name to "Recognition()" | myxini/block-program | block-program/Execution/BlockProgramExecuter.cs | block-program/Execution/BlockProgramExecuter.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myxini.Execution
{
class BlockProgramExecuter : IBlockProgramExecuter
{
/// <summary>
/// 通信するやつ
/// </summary>
private Communication.CommunicationServi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myxini.Execution
{
class BlockProgramExecuter : IBlockProgramExecuter
{
/// <summary>
/// 通信するやつ
/// </summary>
private Communication.CommunicationServi... | mit | C# |
645f9d529c2451211ec14260c518b9f32fb8adec | Make AddClasses() only include public classes | khellang/Scrutor | src/Scrutor/ImplementationTypeSelector.cs | src/Scrutor/ImplementationTypeSelector.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.DependencyInjection;
namespace Scrutor
{
internal class ImplementationTypeSelector : TypeSourceSelector, IImplementationTypeSelector, ISelector
{
protected ImplementationTypeSelector(IEnumerable<Type> types)
... | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.DependencyInjection;
namespace Scrutor
{
internal class ImplementationTypeSelector : TypeSourceSelector, IImplementationTypeSelector, ISelector
{
protected ImplementationTypeSelector(IEnumerable<Type> types)
... | mit | C# |
edccdfe968ca83e9c41ad44e2c78415137632589 | add IsWindowsRuntimeType() | tibel/Weakly,huoxudong125/Weakly | src/Weakly/Reflection/ReflectionHelper.cs | src/Weakly/Reflection/ReflectionHelper.cs | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
namespace Weakly
{
/// <summary>
/// Some useful helpers for <see cref="System.Reflection"/>.
/// </summary>
public static class ReflectionHelper
{
/// <summary>
/// Determines whether the specified metho... | using System.Reflection;
using System.Runtime.CompilerServices;
namespace Weakly
{
/// <summary>
/// Some useful helpers for <see cref="System.Reflection"/>.
/// </summary>
public static class ReflectionHelper
{
/// <summary>
/// Determines whether the specified method is a lambda.... | mit | C# |
d918446c8a0e9964286cda45ce77f912c7259838 | add static factory method | kreeben/resin,kreeben/resin | src/Sir.Store/AnalyzedString.cs | src/Sir.Store/AnalyzedString.cs | using System.Collections.Generic;
namespace Sir
{
/// <summary>
/// An analyzed (tokenized) string.
/// </summary>
public class AnalyzedString
{
public IList<(int offset, int length)> Tokens { get; private set; }
public IList<SortedList<long, int>> Embeddings { get; private set; }
... | using System.Collections.Generic;
namespace Sir
{
/// <summary>
/// An analyzed (tokenized) string.
/// </summary>
public class AnalyzedString
{
public IList<(int offset, int length)> Tokens { get; private set; }
public IList<SortedList<long, int>> Embeddings { get; private set; }
... | mit | C# |
e0abd0b2c19d198b250c0c86a5003c5ceaaca1fe | fix comment | peppy/osu,ppy/osu,johnneijzen/osu,peppy/osu-new,ppy/osu,smoogipooo/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,EVAST9919/osu,NeoAdonis/osu,ZLima12/osu,NeoAdonis/osu,peppy/osu,ZLima12/osu,2yangk23/osu,UselessToucan/osu,johnneijzen/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,EVAST9919/osu,smoogipoo/osu,peppy/osu,2y... | osu.Game/Rulesets/Mods/ModHidden.cs | osu.Game/Rulesets/Mods/ModHidden.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Configuration;
using osu.Game.Graphics;
using osu.Game.Rulesets.Objects.Drawables;
using System.Collections.Generic;
using System.Linq;
using osu.Framework... | // 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.Configuration;
using osu.Game.Graphics;
using osu.Game.Rulesets.Objects.Drawables;
using System.Collections.Generic;
using System.Linq;
using osu.Framework... | mit | C# |
089736a01378dff4d5251aafa4fcd7104fa52f6b | Update Trooper.cs (#29) | BosslandGmbH/BuddyWing.DefaultCombat | trunk/DefaultCombat/Routines/Basic/Trooper.cs | trunk/DefaultCombat/Routines/Basic/Trooper.cs | // Copyright (C) 2011-2016 Bossland GmbH
// See the file LICENSE for the source code's detailed license
using Buddy.BehaviorTree;
using DefaultCombat.Core;
using DefaultCombat.Helpers;
namespace DefaultCombat.Routines
{
public class Trooper : RotationBase
{
public override string Name
{
get { r... | // Copyright (C) 2011-2016 Bossland GmbH
// See the file LICENSE for the source code's detailed license
using Buddy.BehaviorTree;
using DefaultCombat.Core;
using DefaultCombat.Helpers;
namespace DefaultCombat.Routines
{
public class Trooper : RotationBase
{
public override string Name
{
get { r... | apache-2.0 | C# |
cd13787bd95654f227218e1a53789d099b3bde56 | implement IsDirty interface (unused) for shell document tabs. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Gui/ViewModels/WasabiDocumentTabViewModel.cs | WalletWasabi.Gui/ViewModels/WasabiDocumentTabViewModel.cs | using AvalonStudio.Documents;
using AvalonStudio.Extensibility;
using AvalonStudio.Shell;
using Dock.Model;
using ReactiveUI;
namespace WalletWasabi.Gui.ViewModels
{
public abstract class WasabiDocumentTabViewModel : ViewModelBase, IDocumentTabViewModel
{
public WasabiDocumentTabViewModel(string title)
{
Tit... | using AvalonStudio.Documents;
using AvalonStudio.Extensibility;
using AvalonStudio.Shell;
using Dock.Model;
using ReactiveUI;
namespace WalletWasabi.Gui.ViewModels
{
public abstract class WasabiDocumentTabViewModel : ViewModelBase, IDocumentTabViewModel
{
public WasabiDocumentTabViewModel(string title)
{
Tit... | mit | C# |
4ad8664d13d7c7bcf91d6bd9b3d121ce09414a2b | Fix code to return LanguageCode not CountryCode | AlexStefan/template-app | Internationalization/Internationalization.Touch/Helpers/AppInfo.cs | Internationalization/Internationalization.Touch/Helpers/AppInfo.cs | using Foundation;
using Internationalization.Core.Helpers;
namespace Internationalization.Touch.Helpers
{
public class AppInfo : IAppInfo
{
public string CurrentLanguage
{
get
{
return NSLocale.CurrentLocale.LanguageCode.ToLower();
}
}
}
} | using Foundation;
using Internationalization.Core.Helpers;
namespace Internationalization.Touch.Helpers
{
public class AppInfo : IAppInfo
{
public string CurrentLanguage => NSLocale.CurrentLocale.CountryCode.ToLower();
}
} | mit | C# |
90bb401978d4d3ae0dc9a149361d2d82a0f195ad | Update SqlExpressionBuilder.cs | PowerMogli/Rabbit.Db | src/RabbitDB/Expression/SqlExpressionBuilder.cs | src/RabbitDB/Expression/SqlExpressionBuilder.cs | using System;
using System.Data.SqlClient;
using System.Linq.Expressions;
using System.Text;
using RabbitDB.Mapping;
using RabbitDB.Storage;
namespace RabbitDB.Expressions
{
internal class SqlExpressionBuilder<T>
{
private readonly IDbProvider _dbProvider;
private readonly TableInfo _tableInfo... | using System;
using System.Linq.Expressions;
using System.Text;
using RabbitDB.Mapping;
namespace RabbitDB.Expressions
{
internal class ExpressionSqlBuilder<T>
{
}
}
| apache-2.0 | C# |
bdd2753fb11cc7472f60ff6b97b30401a6919d53 | Bump webapi from 5.2.0 to 5.2.1 | Brightspace/D2L.Security.OAuth2 | src/D2L.Security.OAuth2.WebApi/Properties/AssemblyInfo.cs | src/D2L.Security.OAuth2.WebApi/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle( "D2L.Security.WebApi" )]
[assembly: AssemblyDescription( "A library that implements Web API components for authenticating D2L services." )]
[assembly: AssemblyCompany( "Desire2Learn" )]
[assembly: AssemblyProduct( "Brights... | using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle( "D2L.Security.WebApi" )]
[assembly: AssemblyDescription( "A library that implements Web API components for authenticating D2L services." )]
[assembly: AssemblyCompany( "Desire2Learn" )]
[assembly: AssemblyProduct( "Brights... | apache-2.0 | C# |
2a0cd5785e7ae9318f39ade9a86bcfadfde9782f | Add missing documentation for CloudEventAdapter | GoogleCloudPlatform/functions-framework-dotnet,GoogleCloudPlatform/functions-framework-dotnet | src/Google.Cloud.Functions.Framework/CloudEventAdapter.cs | src/Google.Cloud.Functions.Framework/CloudEventAdapter.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 i... | // 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 i... | apache-2.0 | C# |
fa3f6bb52f4f780b6f4db5e70f423790c4cce5e7 | Send SSDP UDP Packets out on all external IPs explicitly | itamar82/simpleDLNA,antonio-bakula/simpleDLNA,bra1nb3am3r/simpleDLNA,nmaier/simpleDLNA | server/Ssdp/Datagram.cs | server/Ssdp/Datagram.cs | using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
using NMaier.SimpleDlna.Utilities;
namespace NMaier.SimpleDlna.Server.Ssdp
{
internal sealed class Datagram : Logging
{
public readonly IPEndPoint EndPoint;
public readonly string Message;
public readonly bool Sticky;
... | using System.Net;
using System.Net.Sockets;
using System.Text;
namespace NMaier.SimpleDlna.Server.Ssdp
{
internal sealed class Datagram
{
public readonly IPEndPoint EndPoint;
public readonly string Message;
public readonly bool Sticky;
public Datagram(IPEndPoint aEndPoint, string aMessage, boo... | bsd-2-clause | C# |
78a2c86f8258d31e501d623cf16c1ee09e5deb62 | 설정 변경시 기존 스크린샷 폴더 경로를 반영하여 보여줌 | FreyYa/GranBlueHelper | GranBlueHelper/ViewModels/SettingsViewModel.cs | GranBlueHelper/ViewModels/SettingsViewModel.cs | using Grandcypher;
using Livet;
using Livet.Messaging;
using GranBlueHelper.Models;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Threading;
using System.Windows;
namespace GranBlueHelper.V... | using Grandcypher;
using Livet;
using Livet.Messaging;
using GranBlueHelper.Models;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Threading;
using System.Windows;
namespace GranBlueHelper.V... | mit | C# |
b9628dffcf7001f47970fa17621937ee565f0960 | Bump version | o11c/WebMConverter,nixxquality/WebMConverter,Yuisbean/WebMConverter | Properties/AssemblyInfo.cs | 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("We... | 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("We... | mit | C# |
b055f32e075e05919a614b4b13d84a9ba4b47d6b | Fix test | Cyberboss/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server-tools,tgstation/tgstation-server | tests/Tgstation.Server.Host.Tests/Core/TestApplication.cs | tests/Tgstation.Server.Host.Tests/Core/TestApplication.cs | using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Host.IO;
namespace Tgstation.Server.Host.Core.... | using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Host.IO;
namespace Tgstation.Server.Host.Core.... | agpl-3.0 | C# |
17d0839620fe5d6dc412339be3517e2e77395a83 | Fix for Issue #1562 (#1563) | exercism/xcsharp,exercism/xcsharp | exercises/practice/robot-name/RobotNameTests.cs | exercises/practice/robot-name/RobotNameTests.cs | using System.Collections.Generic;
using Xunit;
public class RobotNameTests
{
private readonly Robot robot = new Robot();
[Fact]
public void Robot_has_a_name()
{
Assert.Matches(@"^[A-Z]{2}\d{3}$", robot.Name);
}
[Fact(Skip = "Remove this Skip property to run this test")]
public voi... | using System.Collections.Generic;
using Xunit;
public class RobotNameTests
{
private readonly Robot robot = new Robot();
[Fact]
public void Robot_has_a_name()
{
Assert.Matches(@"^[A-Z]{2}\d{3}$", robot.Name);
}
[Fact(Skip = "Remove this Skip property to run this test")]
public voi... | mit | C# |
545697031f285fc6f54f39d59fdccea0d4907397 | Update ShoppingList.cs | SW3-P3/ProjectFood,SW3-P3/ProjectFood | ProjectFood/ProjectFood/Models/ShoppingList.cs | ProjectFood/ProjectFood/Models/ShoppingList.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
namespace ProjectFood.Models
{
public class ShoppingList
{
public int ID { get; set; }
public string Title { get; set; }
public ICollection<Item> Items { get; s... | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
namespace ProjectFood.Models
{
public class ShoppingList
{
public int ID { get; set; }
public string Title { get; set; }
public ICollection<Item> Items { get; s... | mit | C# |
3ca96d21756543eebe285e4a8ef1ecc5da84fbf5 | Fix Environment class logic | escamilla/squirrel | squirrel/Environment.cs | squirrel/Environment.cs | using System.Collections.Generic;
namespace squirrel
{
public class Environment
{
private readonly Environment _parent;
private readonly Dictionary<string, AstNode> _definitions = new Dictionary<string, AstNode>();
public Environment(Environment parent)
{
_parent =... | using System.Collections.Generic;
namespace squirrel
{
public class Environment
{
private readonly Environment _parent;
private readonly Dictionary<string, AstNode> _definitions = new Dictionary<string, AstNode>();
public Environment(Environment parent)
{
_parent =... | mit | C# |
49e92b6747260346ca79890c7a722c08124c17eb | Update WalletWasabi/Services/SingleInstanceChecker.cs | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Services/SingleInstanceChecker.cs | WalletWasabi/Services/SingleInstanceChecker.cs | using NBitcoin;
using Nito.AsyncEx;
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace WalletWasabi.Services
{
public class SingleInstanceChecker : IDisposable
{
/// <summary>Unique prefix for global mutex name.</summary>
private const string MutexString = "WalletWasab... | using NBitcoin;
using Nito.AsyncEx;
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace WalletWasabi.Services
{
public class SingleInstanceChecker : IDisposable
{
/// <summary>Unique prefix for global mutex name.</summary>
private const string MutexString = "WalletWasab... | mit | C# |
bf595df0ebd756e1c7d4619f23853d501ee491ec | Bump version | Fody/Costura,Fody/Costura | src/MethodTimeLogger.cs | src/MethodTimeLogger.cs | using System.Reflection;
using System;
using System.Globalization;
/// <summary>
/// Note: do not rename this class or put it inside a namespace.
/// </summary>
internal static class MethodTimeLogger
{
#region Methods
public static void Log(MethodBase methodBase, long milliseconds, string message)
{
... | using System.Reflection;
using System;
using System.Globalization;
/// <summary>
/// Note: do not rename this class or put it inside a namespace.
/// </summary>
internal static class MethodTimeLogger
{
#region Methods
public static void Log(MethodBase methodBase, long milliseconds, string message)
{
... | mit | C# |
1b25f2385536f2ae5a9ced00632c29c9ad2386d7 | Add docs | CyrusNajmabadi/roslyn,jasonmalinowski/roslyn,dotnet/roslyn,mavasani/roslyn,mavasani/roslyn,bartdesmet/roslyn,jasonmalinowski/roslyn,CyrusNajmabadi/roslyn,dotnet/roslyn,mavasani/roslyn,CyrusNajmabadi/roslyn,shyamnamboodiripad/roslyn,shyamnamboodiripad/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,bartdesmet/roslyn,bart... | src/Workspaces/Core/Portable/Workspace/Host/HostProjectServices.cs | src/Workspaces/Core/Portable/Workspace/Host/HostProjectServices.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;
namespace Microsoft.CodeAnalysis.Host
{
/// <summary>
/// Per language services provided by ... | // 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;
namespace Microsoft.CodeAnalysis.Host
{
// TODO(cyrusn): Make public. Tracked through https://g... | mit | C# |
44d054ada634e0128d2a629222ecf003782ae6c0 | Add 'getAppInfo' and 'getIdentifier' to WP8 as well | danmichaelo/cordova-plugin-appinfo,vash15/cordova-plugin-appinfo,danmichaelo/cordova-plugin-appinfo,vash15/cordova-plugin-appinfo,vash15/cordova-plugin-appinfo,danmichaelo/cordova-plugin-appinfo | src/wp8/AppInfo.cs | src/wp8/AppInfo.cs | using System;
using System.Xml.Linq;
using WPCordovaClassLib.Cordova;
using WPCordovaClassLib.Cordova.Commands;
using WPCordovaClassLib.Cordova.JSON;
namespace Cordova.Extension.Commands
{
public class AppInfo : BaseCommand
{
public void getAppInfo(string options)
{
Dictionary<str... | using System;
using System.Xml.Linq;
using WPCordovaClassLib.Cordova;
using WPCordovaClassLib.Cordova.Commands;
using WPCordovaClassLib.Cordova.JSON;
namespace Cordova.Extension.Commands
{
public class AppInfo : BaseCommand
{
public void getVersion(string options)
{
string version ... | mit | C# |
524c6b7eaff2cee0246b20a943ff318bf5e5777e | Remove name limit test | bugsnag/bugsnag-dotnet,bugsnag/bugsnag-dotnet | tests/Bugsnag.Tests/Payload/BreadcrumbTests.cs | tests/Bugsnag.Tests/Payload/BreadcrumbTests.cs | using System;
using System.Collections.Generic;
using Bugsnag.Payload;
using Xunit;
namespace Bugsnag.Tests.Payload
{
public class BreadcrumbTests
{
[Fact]
public void BreadcrumbIncludesTimestamp()
{
var breadcrumb = new Breadcrumb("test", BreadcrumbType.Manual);
Assert.IsType<DateTime>(br... | using System;
using System.Collections.Generic;
using Bugsnag.Payload;
using Xunit;
namespace Bugsnag.Tests.Payload
{
public class BreadcrumbTests
{
[Fact]
public void BreadcrumbIncludesTimestamp()
{
var breadcrumb = new Breadcrumb("test", BreadcrumbType.Manual);
Assert.IsType<DateTime>(br... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.