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 |
|---|---|---|---|---|---|---|---|---|
7df1e911696261639e4ca19fb14770c0dd23c16f | Change forums schema | drasticactions/AwfulForumsLibrary | AwfulForumsLibrary/Entity/ForumEntity.cs | AwfulForumsLibrary/Entity/ForumEntity.cs | using PropertyChanged;
using SQLite.Net.Attributes;
using SQLiteNetExtensions.Attributes;
namespace AwfulForumsLibrary.Entity
{
[ImplementPropertyChanged]
public class ForumEntity
{
public string Name { get; set; }
public string Location { get; set; }
public string Description { ... | using PropertyChanged;
using SQLite.Net.Attributes;
using SQLiteNetExtensions.Attributes;
namespace AwfulForumsLibrary.Entity
{
[ImplementPropertyChanged]
public class ForumEntity
{
public string Name { get; set; }
public string Location { get; set; }
public string Description { ... | mit | C# |
5d0e4f5bafa2f8a2746cc469b04a0ca57d5d1aab | Add the binary logger | xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents | Android/Kotlin/build.cake | Android/Kotlin/build.cake |
var TARGET = Argument("t", Argument("target", "ci"));
Task("binderate")
.Does(() =>
{
var configFile = MakeAbsolute(new FilePath("./config.json")).FullPath;
var basePath = MakeAbsolute(new DirectoryPath("./")).FullPath;
var exit = StartProcess("xamarin-android-binderator",
$"--config=\"{configFile}\" --basepat... |
var TARGET = Argument("t", Argument("target", "ci"));
Task("binderate")
.Does(() =>
{
var configFile = MakeAbsolute(new FilePath("./config.json")).FullPath;
var basePath = MakeAbsolute(new DirectoryPath("./")).FullPath;
var exit = StartProcess("xamarin-android-binderator",
$"--config=\"{configFile}\" --basepat... | mit | C# |
a4cd04f69f53757e41d1e70d37dc83b8773bf4a5 | Add EnumerableUtility.Enumerate | SaberSnail/GoldenAnvil.Utility | GoldenAnvil.Utility/EnumerableUtility.cs | GoldenAnvil.Utility/EnumerableUtility.cs | using System.Collections.Generic;
using System.Linq;
namespace GoldenAnvil.Utility
{
public static class EnumerableUtility
{
public static HashSet<T> ToHashSet<T>(this IEnumerable<T> items)
{
return new HashSet<T>(items);
}
public static IEnumerable<T> Append<T>(this IEnumerable<T> items, T value)
{
... | using System.Collections.Generic;
using System.Linq;
namespace GoldenAnvil.Utility
{
public static class EnumerableUtility
{
public static HashSet<T> ToHashSet<T>(this IEnumerable<T> items)
{
return new HashSet<T>(items);
}
public static IEnumerable<T> Append<T>(this IEnumerable<T> items, T value)
{
... | mit | C# |
a9a525c56b173971a96815f8c60847fc5c07547b | make command a bit more concise. | bennidhamma/EmergeTk,bennidhamma/EmergeTk | tools/emergecli/AddColCommand.cs | tools/emergecli/AddColCommand.cs | using System;
using Mono.Options;
using System.IO;
namespace emergecli
{
[Command(Name="addcol")]
public class AddColCommand : ICommand
{
public const string template = @"
DROP PROCEDURE IF EXISTS addcol;
delimiter //
CREATE PROCEDURE addcol() BEGIN
IF NOT EXISTS (
SELECT * FROM information_schema.COLUMNS
... | using System;
using Mono.Options;
using System.IO;
namespace emergecli
{
[Command(Name="addcol")]
public class AddColCommand : ICommand
{
public const string template = @"
DROP PROCEDURE IF EXISTS addcol;
delimiter //
CREATE PROCEDURE addcol() BEGIN
IF NOT EXISTS (
SELECT * FROM information_schema.COLUMNS
... | mit | C# |
57ed91d86fcc45a0ac1aadd646d8311de5195dc3 | Update metadata resource to use callback instead of console.log | dudzon/Glimpse,flcdrg/Glimpse,gabrielweyer/Glimpse,sorenhl/Glimpse,dudzon/Glimpse,SusanaL/Glimpse,sorenhl/Glimpse,codevlabs/Glimpse,elkingtonmcb/Glimpse,gabrielweyer/Glimpse,rho24/Glimpse,rho24/Glimpse,paynecrl97/Glimpse,flcdrg/Glimpse,Glimpse/Glimpse,paynecrl97/Glimpse,SusanaL/Glimpse,Glimpse/Glimpse,elkingtonmcb/Glim... | source/Glimpse.Core2/Resource/MetadataResource.cs | source/Glimpse.Core2/Resource/MetadataResource.cs | using System.Collections.Generic;
using System.Linq;
using Glimpse.Core2.Extensibility;
using Glimpse.Core2.Framework;
using Glimpse.Core2.ResourceResult;
namespace Glimpse.Core2.Resource
{
public class Metadata : IResource
{
internal const string InternalName = "metadata.js";
private const int... | using System.Collections.Generic;
using System.Linq;
using Glimpse.Core2.Extensibility;
using Glimpse.Core2.Framework;
using Glimpse.Core2.ResourceResult;
namespace Glimpse.Core2.Resource
{
public class Metadata : IResource
{
internal const string InternalName = "metadata.js";
private const int... | apache-2.0 | C# |
379dc2c0da1c4f2edf32087e3a6c23b43fe3af65 | bump version to 2.0.2 | piwik/piwik-dotnet-tracker,piwik/piwik-dotnet-tracker,piwik/piwik-dotnet-tracker | Piwik.Tracker/Properties/AssemblyInfo.cs | Piwik.Tracker/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("PiwikTracker")]
[assembly: Assembl... | 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("PiwikTracker")]
[assembly: Assembl... | bsd-3-clause | C# |
03c988874d265f92994194a4e290c8c22cf4cf93 | Allow sequence ID to wrap around. | mysql-net/MySqlConnector,gitsno/MySqlConnector,gitsno/MySqlConnector,mysql-net/MySqlConnector | src/MySql.Data/Serialization/PacketTransmitter.cs | src/MySql.Data/Serialization/PacketTransmitter.cs | using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace MySql.Data.Serialization
{
internal sealed class PacketTransmitter
{
public PacketTransmitter(Stream stream)
{
m_stream = stream;
m_buffer = new byte[256];
}
// Starts a new conversation with the server by s... | using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace MySql.Data.Serialization
{
internal sealed class PacketTransmitter
{
public PacketTransmitter(Stream stream)
{
m_stream = stream;
m_buffer = new byte[256];
}
// Starts a new conversation with the server by s... | mit | C# |
78b663d0f2ab6f21704f64de0d641c1d6e1ba14e | Move none generic generator to top of file | inputfalken/Sharpy | GeneratorAPI/Generator.cs | GeneratorAPI/Generator.cs | using System;
using System.Collections.Generic;
namespace GeneratorAPI {
public static class Generator {
/// <summary>
/// <para>
/// Contains methods for creating Generators with various Providers.
/// </para>
/// </summary>
public static GeneratorF... | using System;
using System.Collections.Generic;
namespace GeneratorAPI {
/// <summary>
/// </summary>
/// <typeparam name="TProvider"></typeparam>
public class Generator<TProvider> {
private readonly TProvider _provider;
public Generator(TProvider provider) => _provider = provider;
... | mit | C# |
159efe394f24a5935fce623a4f7be6c9a18d26bf | Fix "Countdown" widget "EndDateTime" read only | danielchalmers/DesktopWidgets | DesktopWidgets/Widgets/CountdownClock/Settings.cs | DesktopWidgets/Widgets/CountdownClock/Settings.cs | using System;
using DesktopWidgets.Classes;
namespace DesktopWidgets.Widgets.CountdownClock
{
public class Settings : WidgetClockSettingsBase
{
public DateTime EndDateTime { get; set; } = DateTime.Now;
}
} | using System;
using DesktopWidgets.Classes;
namespace DesktopWidgets.Widgets.CountdownClock
{
public class Settings : WidgetClockSettingsBase
{
public DateTime EndDateTime { get; } = DateTime.Now;
}
} | apache-2.0 | C# |
e96c52cc9bd4c7f4fe408c1bf5d145f337eab339 | Add default database names to connectionfactory.cs | Ackara/Daterpillar | src/Tests.Daterpillar/Helper/ConnectionFactory.cs | src/Tests.Daterpillar/Helper/ConnectionFactory.cs | using System;
using System.Data;
using System.IO;
namespace Tests.Daterpillar.Helper
{
public static class ConnectionFactory
{
public static IDbConnection CreateSQLiteConnection(string filePath = "")
{
if (!File.Exists(filePath))
{
filePath = Path.Combin... | using System;
using System.Data;
using System.IO;
namespace Tests.Daterpillar.Helper
{
public static class ConnectionFactory
{
public static IDbConnection CreateMySQLConnection(string database = null)
{
var connStr = new MySql.Data.MySqlClient.MySqlConnectionStringBuilder("");
... | mit | C# |
1ec046af74d054ffd55240cfc249b8f561d7122c | Add missing flags attribute. | mono/mono-addins,mono/mono-addins | Mono.Addins/Mono.Addins.Description/AddinFlags.cs | Mono.Addins/Mono.Addins.Description/AddinFlags.cs | // AddinFlags.cs
//
// Author:
// Lluis Sanchez Gual <lluis@novell.com>
//
// Copyright (c) 2008 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software wi... | // AddinFlags.cs
//
// Author:
// Lluis Sanchez Gual <lluis@novell.com>
//
// Copyright (c) 2008 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software wi... | mit | C# |
85a4c4fb4319b96e8d730b1f15f3140f71599f5f | Remove GC debug setting (#5175) | NeoAdonis/osu,2yangk23/osu,ppy/osu,smoogipoo/osu,smoogipooo/osu,johnneijzen/osu,peppy/osu,ZLima12/osu,smoogipoo/osu,peppy/osu,johnneijzen/osu,UselessToucan/osu,ZLima12/osu,peppy/osu-new,smoogipoo/osu,ppy/osu,EVAST9919/osu,ppy/osu,UselessToucan/osu,2yangk23/osu,NeoAdonis/osu,EVAST9919/osu,NeoAdonis/osu,peppy/osu,Useless... | osu.Game/Overlays/Settings/Sections/Debug/GCSettings.cs | osu.Game/Overlays/Settings/Sections/Debug/GCSettings.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Allocation;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
namespace osu.Game.Overlays.Settings.Sections.Debug
{
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Runtime;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
name... | mit | C# |
dc904411c1f0b602265e0d92fdad7092bf860d26 | comment out remaining explicit test | dupdob/NFluent,dupdob/NFluent,dupdob/NFluent,NFluent/NFluent,tpierrain/NFluent,tpierrain/NFluent,tpierrain/NFluent,NFluent/NFluent | tests/NFluent.Tests.Internals/NotRelatedTests.cs | tests/NFluent.Tests.Internals/NotRelatedTests.cs | // // --------------------------------------------------------------------------------------------------------------------
// // <copyright file="NotRelatedTests.cs" company="">
// // Copyright 2013 Thomas PIERRAIN
// // Licensed under the Apache License, Version 2.0 (the "License");
// // you may not use this f... | // // --------------------------------------------------------------------------------------------------------------------
// // <copyright file="NotRelatedTests.cs" company="">
// // Copyright 2013 Thomas PIERRAIN
// // Licensed under the Apache License, Version 2.0 (the "License");
// // you may not use this f... | apache-2.0 | C# |
028040344a9c2bfcc1cd25d3efad2e8dcf651207 | Fix test scene using local beatmap | smoogipoo/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu-new,NeoAdonis/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu | osu.Game.Tests/Skins/TestSceneBeatmapSkinResources.cs | osu.Game.Tests/Skins/TestSceneBeatmapSkinResources.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.Allocation;
using osu.Framework.Testing;
using osu.Game.Audio;
using osu.Game.Beatmaps;
using osu.Game.IO.Archives;
using osu.G... | // 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.Allocation;
using osu.Framework.Testing;
using osu.Game.Audio;
using osu.Game.Beatmaps;
using osu.Game.IO.Archives;
using osu.G... | mit | C# |
8115a4bb8fd9e2d53c40b8607c7ad99f0f62e9a0 | Fix potential crash in tests when attempting to lookup key bindings in cases the lookup is not available | NeoAdonis/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu | osu.Game/Configuration/DevelopmentOsuConfigManager.cs | osu.Game/Configuration/DevelopmentOsuConfigManager.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Platform;
using osu.Framework.Testing;
namespace osu.Game.Configuration
{
[ExcludeFromDynamicCompile]
public class DevelopmentOsuConfigManage... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Platform;
using osu.Framework.Testing;
namespace osu.Game.Configuration
{
[ExcludeFromDynamicCompile]
public class DevelopmentOsuConfigManage... | mit | C# |
a01e9aea7be60f7eb916c396ee183f8c86546ba6 | add missing dependency to bootstrapper | jorik041/ReactiveTrader,jorik041/ReactiveTrader,abbasmhd/ReactiveTrader,jorik041/ReactiveTrader,abbasmhd/ReactiveTrader,singhdev/ReactiveTrader,AdaptiveConsulting/ReactiveTrader,LeeCampbell/ReactiveTrader,rikoe/ReactiveTrader,HalidCisse/ReactiveTrader,LeeCampbell/ReactiveTrader,AdaptiveConsulting/ReactiveTrader,singhde... | src/Adaptive.ReactiveTrader.Web/Bootstrapper.cs | src/Adaptive.ReactiveTrader.Web/Bootstrapper.cs | using Adaptive.ReactiveTrader.Server.Blotter;
using Adaptive.ReactiveTrader.Server.Control;
using Adaptive.ReactiveTrader.Server.Execution;
using Adaptive.ReactiveTrader.Server.Pricing;
using Adaptive.ReactiveTrader.Server.ReferenceData;
using Adaptive.ReactiveTrader.Server.Transport;
using Autofac;
namespace Adaptiv... | using Adaptive.ReactiveTrader.Server.Blotter;
using Adaptive.ReactiveTrader.Server.Execution;
using Adaptive.ReactiveTrader.Server.Pricing;
using Adaptive.ReactiveTrader.Server.ReferenceData;
using Adaptive.ReactiveTrader.Server.Transport;
using Autofac;
namespace Adaptive.ReactiveTrader.Web
{
public class Bootst... | apache-2.0 | C# |
8f51fae0d93a2a345f68528462435d6b55b7d994 | update comment for ResolveByName attribute. | jkoritzinsky/Avalonia,grokys/Perspex,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,Perspex/Perspex,wieslawsoltes/Perspex,grokys/Perspex,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,SuperJMN/Avalonia,wieslawsoltes/Perspex,Perspex/Perspex,jkoritzi... | src/Avalonia.Controls/ResolveByNameAttribute.cs | src/Avalonia.Controls/ResolveByNameAttribute.cs | using System;
namespace Avalonia.Controls
{
/// <summary>
/// Indicates that the property resolves an element by Name or x:Name.
/// When applying this to attached properties, ensure to put on both
/// the Getter and Setter methods.
/// </summary>
public class ResolveByNameAttribute : Attribut... | using System;
namespace Avalonia.Controls
{
public class ResolveByNameAttribute : Attribute
{
}
}
| mit | C# |
8023161945bcf7d8dfb2604b6d0c72a9e8f14a73 | add meta descr | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | src/FilterLists.Web/Views/Shared/_Layout.cshtml | src/FilterLists.Web/Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>@ViewData["Title"] - FilterLists</title>
<base href="~/"/>
<meta name="description" content="FilterLists is the independent and comprehensive directory of all public ... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>@ViewData["Title"] - FilterLists</title>
<base href="~/"/>
<link rel="stylesheet" href="~/dist/vendor.css" asp-append-version="true"/>
<environment exclude="Deve... | mit | C# |
35d147f46bbec5ceeb0941711ff5e3457a2b6e45 | Fix incorrect namespace name. | github/VisualStudio,github/VisualStudio,github/VisualStudio | src/GitHub.App/Infrastructure/ExportWrappers.cs | src/GitHub.App/Infrastructure/ExportWrappers.cs | using System.ComponentModel.Composition;
using Octokit.Internal;
using System;
using System.Net.Http;
namespace GitHub.Infrastructure
{
/// <summary>
/// Since VS doesn't support dynamic component registration, we have to implement wrappers
/// for types we don't control in order to export them.
/// <... | using System.ComponentModel.Composition;
using Octokit.Internal;
using System;
using System.Net.Http;
namespace GitHub.Logging
{
/// <summary>
/// Since VS doesn't support dynamic component registration, we have to implement wrappers
/// for types we don't control in order to export them.
/// </summar... | mit | C# |
1e28cb9ac2707f554e3d7e961335ba9ef8ba15f0 | Change StatusUpdater job to run every hour. | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform | src/CompetitionPlatform/ScheduledJobs/JobScheduler.cs | src/CompetitionPlatform/ScheduledJobs/JobScheduler.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Common.Log;
using CompetitionPlatform.Data.AzureRepositories.Log;
using Quartz;
using Quartz.Impl;
namespace CompetitionPlatform.ScheduledJobs
{
public static class JobScheduler
{
public static async... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Common.Log;
using CompetitionPlatform.Data.AzureRepositories.Log;
using Quartz;
using Quartz.Impl;
namespace CompetitionPlatform.ScheduledJobs
{
public static class JobScheduler
{
public static async... | mit | C# |
b18633f85ee169203e980827d2d5fd972a8220b3 | Add pickable flag to the SimplePlaneAnnotation. | stevefsp/Lizitt-Unity3D-Utilities | Source/Lizitt/Utils/Core/Editor/SimplePlaneAnnotationEditor.cs | Source/Lizitt/Utils/Core/Editor/SimplePlaneAnnotationEditor.cs | /*
* Copyright (c) 2015 Stephen A. Pratt
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... | /*
* Copyright (c) 2015 Stephen A. Pratt
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... | mit | C# |
6a50c7bde5843d5f0ee625259b9d87c1cd902e86 | Fix new office name clearing after adding | aregaz/starcounterdemo,aregaz/starcounterdemo | src/RealEstateAgencyFranchise/CorporationJson.json.cs | src/RealEstateAgencyFranchise/CorporationJson.json.cs | using RealEstateAgencyFranchise.Database;
using Starcounter;
namespace RealEstateAgencyFranchise
{
partial class CorporationJson : Json
{
static CorporationJson()
{
DefaultTemplate.Offices.ElementType.InstanceType = typeof(AgencyOfficeJson);
}
void Handle(Input.Save... | using RealEstateAgencyFranchise.Database;
using Starcounter;
namespace RealEstateAgencyFranchise
{
partial class CorporationJson : Json
{
static CorporationJson()
{
DefaultTemplate.Offices.ElementType.InstanceType = typeof(AgencyOfficeJson);
}
void Handle(Input.Save... | mit | C# |
5e7c91cb36e843edb2880963334e6f2ab1ddb735 | Apply SerializableAttribute to custom exception | ritterim/silverpop-dotnet-api,kendaleiv/silverpop-dotnet-api,billboga/silverpop-dotnet-api,kendaleiv/silverpop-dotnet-api | src/Silverpop.Client/TransactClientException.cs | src/Silverpop.Client/TransactClientException.cs | using System;
namespace Silverpop.Client
{
[Serializable]
public class TransactClientException : Exception
{
public TransactClientException()
{
}
public TransactClientException(string message)
: base(message)
{
}
public TransactClientEx... | using System;
namespace Silverpop.Client
{
public class TransactClientException : Exception
{
public TransactClientException()
{
}
public TransactClientException(string message)
: base(message)
{
}
public TransactClientException(string mess... | mit | C# |
51ded03151085f1f3a609108697c1f3b44f11451 | fix echant channel resources | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Core/TemplateSelectors/ChannelLabelDataTemplateSelector.cs | TCC.Core/TemplateSelectors/ChannelLabelDataTemplateSelector.cs | using System.Windows;
using System.Windows.Controls;
using TCC.Data;
namespace TCC.TemplateSelectors
{
public class ChannelLabelDataTemplateSelector : DataTemplateSelector
{
public DataTemplate NormalChannelDataTemplate { get; set; }
public DataTemplate WhisperChannelDataTemplate { get; set; }... | using System.Windows;
using System.Windows.Controls;
using TCC.Data;
namespace TCC.TemplateSelectors
{
public class ChannelLabelDataTemplateSelector : DataTemplateSelector
{
public DataTemplate NormalChannelDataTemplate { get; set; }
public DataTemplate WhisperChannelDataTemplate { get; set; }... | mit | C# |
13d05d3f665d6039f4ccbb2c0a9653123909d97b | add Scope.HasVariable() | maul-esel/CobaltAHK,maul-esel/CobaltAHK | CobaltAHK/ExpressionTree/Scope.cs | CobaltAHK/ExpressionTree/Scope.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace CobaltAHK.ExpressionTree
{
public class Scope
{
public Scope() : this(null)
{
LoadBuiltinFunctions();
}
public Scope(Scope parentScope)
{
parent = parentScope;
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace CobaltAHK.ExpressionTree
{
public class Scope
{
public Scope() : this(null)
{
LoadBuiltinFunctions();
}
public Scope(Scope parentScope)
{
parent = parentScope;
}
... | mit | C# |
fca5ae088e2c3864cc1e728fba8cfbc7b434bf95 | Use NDes.options for binarycache test executable | lucasg/Dependencies,lucasg/Dependencies,lucasg/Dependencies | test/binarycache-test/Program.cs | test/binarycache-test/Program.cs | using System;
using System.Diagnostics;
using System.Collections.Generic;
using Dependencies.ClrPh;
using NDesk.Options;
namespace Dependencies
{
namespace Test
{
class Program
{
static void ShowHelp(OptionSet p)
{
Console.WriteLine("Usage: binarycache ... | using System;
using System.Diagnostics;
using Dependencies.ClrPh;
namespace Dependencies
{
namespace Test
{
class Program
{
static void Main(string[] args)
{
// always the first call to make
Phlib.InitializePhLib();
// Re... | mit | C# |
3bcef6c182601f3c6ea7f556b3d1091f62e5d0c3 | Update Program.cs | Metapyziks/Ziks.WebServer | Examples/SimpleExample/Program.cs | Examples/SimpleExample/Program.cs | using System;
using System.Reflection;
using System.Threading.Tasks;
using Ziks.WebServer;
namespace SimpleExample
{
public class Program : IProgram
{
[STAThread]
static void Main( string[] args )
{
var server = new Server();
server.AddPrefix( "http://+:8080/" ... | using System;
using System.Reflection;
using System.Threading.Tasks;
using Ziks.WebServer;
namespace SimpleExample
{
public interface IProgram
{
void WriteLine( string message );
}
public class Program : IProgram
{
[STAThread]
static void Main( string[] args )
{
... | mit | C# |
fe1e451812fc298a0d591ed374dc03f1cd0f3341 | Fix wrong dirtyness propagation | cbovar/ConvNetSharp | src/ConvNetSharp.Flow/Ops/Assign.cs | src/ConvNetSharp.Flow/Ops/Assign.cs | using System;
using ConvNetSharp.Volume;
namespace ConvNetSharp.Flow.Ops
{
/// <summary>
/// Assignment: valueOp = op
/// </summary>
/// <typeparam name="T"></typeparam>
public class Assign<T> : Op<T> where T : struct, IEquatable<T>, IFormattable
{
private long _lastComputeStep;
... | using System;
using ConvNetSharp.Volume;
namespace ConvNetSharp.Flow.Ops
{
/// <summary>
/// Assignment: valueOp = op
/// </summary>
/// <typeparam name="T"></typeparam>
public class Assign<T> : Op<T> where T : struct, IEquatable<T>, IFormattable
{
private long _lastComputeStep;
... | mit | C# |
a77306567b8ae26bafced6d2b32b9a73c2c42e6c | Swap Dictionary with ConcurrentDictionary in InMemoryBackgroundJobStore | zclmoon/aspnetboilerplate,virtualcca/aspnetboilerplate,andmattia/aspnetboilerplate,verdentk/aspnetboilerplate,verdentk/aspnetboilerplate,AlexGeller/aspnetboilerplate,carldai0106/aspnetboilerplate,carldai0106/aspnetboilerplate,carldai0106/aspnetboilerplate,ilyhacker/aspnetboilerplate,AlexGeller/aspnetboilerplate,beratca... | src/Abp/BackgroundJobs/InMemoryBackgroundJobStore.cs | src/Abp/BackgroundJobs/InMemoryBackgroundJobStore.cs | using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Abp.Timing;
namespace Abp.BackgroundJobs
{
/// <summary>
/// In memory implementation of <see cref="IBackgroundJobStore"/>.
/// It's used if <see cref="IBack... | using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Abp.Timing;
namespace Abp.BackgroundJobs
{
/// <summary>
/// In memory implementation of <see cref="IBackgroundJobStore"/>.
/// It's used if <see cref="IBackgroundJobStore"/> is not implemented ... | mit | C# |
4883acbef61dd86afff2b3e1ab486a2943a4fcf0 | Update src/Abp/Configuration/Startup/IMultiTenancyConfig.cs | beratcarsi/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,verdentk/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,luchaoshuai/aspnetboilerplate,carldai0106/aspnetboilerplate,ryancyq/aspnetboilerplate,ilyhacker/aspnetboilerplate,ryancyq/aspnetboilerplate,carldai0106/aspn... | src/Abp/Configuration/Startup/IMultiTenancyConfig.cs | src/Abp/Configuration/Startup/IMultiTenancyConfig.cs | using System.Collections;
using Abp.Collections;
using Abp.MultiTenancy;
namespace Abp.Configuration.Startup
{
/// <summary>
/// Used to configure multi-tenancy.
/// </summary>
public interface IMultiTenancyConfig
{
/// <summary>
/// Is multi-tenancy enabled?
/// Default va... | using System.Collections;
using Abp.Collections;
using Abp.MultiTenancy;
namespace Abp.Configuration.Startup
{
/// <summary>
/// Used to configure multi-tenancy.
/// </summary>
public interface IMultiTenancyConfig
{
/// <summary>
/// Is multi-tenancy enabled?
/// Default va... | mit | C# |
2cc9326f0b657fb0383633739f98c2dfd1fcd699 | Add Clock.SecondsLeftAfterLatestMove | Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training | src/ChessVariantsTraining/Models/Variant960/Clock.cs | src/ChessVariantsTraining/Models/Variant960/Clock.cs | using MongoDB.Bson.Serialization.Attributes;
using System.Diagnostics;
namespace ChessVariantsTraining.Models.Variant960
{
public class Clock
{
double secondsLimit;
Stopwatch stopwatch;
TimeControl timeControl;
[BsonElement("secondsLeftAfterLatestMove")]
public double ... | using System.Diagnostics;
namespace ChessVariantsTraining.Models.Variant960
{
public class Clock
{
double secondsLimit;
Stopwatch stopwatch;
TimeControl timeControl;
public Clock(TimeControl tc)
{
timeControl = tc;
secondsLimit = tc.InitialSecon... | agpl-3.0 | C# |
4102b5857d71cabae340c069d09cb96e2cfe59e4 | Make sure multi-line output works when invoked with <<...>> output templates. | JornWildt/ZimmerBot | ZimmerBot.Core/Request.cs | ZimmerBot.Core/Request.cs | using System.Collections.Generic;
using CuttingEdge.Conditions;
namespace ZimmerBot.Core
{
public class Request
{
public enum EventEnum { Welcome }
public string Input { get; set; }
public Dictionary<string, string> State { get; set; }
public string SessionId { get; set; }
p... | using System.Collections.Generic;
using CuttingEdge.Conditions;
namespace ZimmerBot.Core
{
public class Request
{
public enum EventEnum { Welcome }
public string Input { get; set; }
public Dictionary<string, string> State { get; set; }
public string SessionId { get; set; }
p... | mit | C# |
fc9aa4cd88eacd1f3f40c7029be79d0a9232c2fa | Make ConsoleHost internals visible to powershell-tests | JamesWTruher/PowerShell-1,PaulHigin/PowerShell,PaulHigin/PowerShell,bingbing8/PowerShell,PaulHigin/PowerShell,KarolKaczmarek/PowerShell,jsoref/PowerShell,kmosher/PowerShell,PaulHigin/PowerShell,bingbing8/PowerShell,kmosher/PowerShell,kmosher/PowerShell,jsoref/PowerShell,kmosher/PowerShell,TravisEz13/PowerShell,daxian-d... | src/Microsoft.PowerShell.ConsoleHost/AssemblyInfo.cs | src/Microsoft.PowerShell.ConsoleHost/AssemblyInfo.cs | using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
#if !CORECLR
using System.Runtime.ConstrainedExecution;
using System.Security.Permissions;
#endif
[assembly:InternalsVisibleTo("powershell-tests")]
[assembly:AssemblyCulture("")]
[assembly:Ne... | using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
#if !CORECLR
using System.Runtime.ConstrainedExecution;
using System.Security.Permissions;
#endif
[assembly:AssemblyCulture("")]
[assembly:NeutralResourcesLanguage("en-US")]
#if !CORECLR
[ass... | mit | C# |
f1192418c70c1bd8db6a8d05b23f6bf7645f5d5e | remove unused dependency on System.Threading.Tasks | biboudis/LambdaMicrobenchmarking | LambdaMicrobenchmarking/Script.cs | LambdaMicrobenchmarking/Script.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LambdaMicrobenchmarking
{
public static class Script
{
public static Script<T> Of<T>(params Tuple<String, Func<T>>[] actions)
{
return Script<T>.Of(actions);
}
public s... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LambdaMicrobenchmarking
{
public static class Script
{
public static Script<T> Of<T>(params Tuple<String, Func<T>>[] actions)
{
return Script<T>.Of(actions... | apache-2.0 | C# |
168baae3d25bf647a61056aa762e6b3c581869b6 | update storage size and limit peck | ASOS/woodpecker | src/Woodpecker.Core/Sql/AzureSqlStorageSizePecker.cs | src/Woodpecker.Core/Sql/AzureSqlStorageSizePecker.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Woodpecker.Core.Sql
{
public class AzureSqlStorageSizePecker : AzureSqlDmvPeckerBase
{
private const string _query = @"
select @@servername [collection_server_name] ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Woodpecker.Core.Sql
{
public class AzureSqlStorageSizePecker : AzureSqlDmvPeckerBase
{
private const string DatabaseWaitInlineSqlNotSoBad = @"select @@servername [ser... | mit | C# |
d87c31ee01abb55c97a043c43d95a81f7d5f4368 | Use PredefinedErrorTypeNames instead of literals | modulexcite/DartVS,DartVS/DartVS,DartVS/DartVS,modulexcite/DartVS,DartVS/DartVS,modulexcite/DartVS | DanTup.DartVS.Vsix/Taggers/ErrorSquiggleTagger.cs | DanTup.DartVS.Vsix/Taggers/ErrorSquiggleTagger.cs | using System;
using System.ComponentModel.Composition;
using System.Linq;
using System.Reactive.Linq;
using DanTup.DartAnalysis;
using DanTup.DartAnalysis.Json;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Adornments;
using Microsoft.VisualStudio.Text.Tagging;
using Microsoft.VisualStudio.Utili... | using System;
using System.ComponentModel.Composition;
using System.Linq;
using System.Reactive.Linq;
using DanTup.DartAnalysis;
using DanTup.DartAnalysis.Json;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Tagging;
using Microsoft.VisualStudio.Utilities;
namespace DanTup.DartVS
{
[Export(type... | mit | C# |
aef22f3fd61183a5b7c270d631b204a737965dda | Make minor version a constant | paladique/nodejstools,lukedgr/nodejstools,kant2002/nodejstools,paladique/nodejstools,munyirik/nodejstools,paulvanbrenk/nodejstools,mjbvz/nodejstools,paladique/nodejstools,AustinHull/nodejstools,lukedgr/nodejstools,munyirik/nodejstools,Microsoft/nodejstools,munyirik/nodejstools,mjbvz/nodejstools,paulvanbrenk/nodejstools... | Nodejs/Product/AssemblyVersion.cs | Nodejs/Product/AssemblyVersion.cs | //*********************************************************//
// Copyright (c) Microsoft. All rights reserved.
//
// Apache 2.0 License
//
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// ... | //*********************************************************//
// Copyright (c) Microsoft. All rights reserved.
//
// Apache 2.0 License
//
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// ... | apache-2.0 | C# |
9bf9c6b2871d7ff710063d4056d6da5563c4117b | Fix : Un-Stealth rogues for this quest otherwise the mobs arent aggroed. | TheNoobCompany/LevelingQuestsTNB | Profiles/Quester/Scripts/11661.cs | Profiles/Quester/Scripts/11661.cs | WoWUnit unit = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(questObjective.Entry, questObjective.IsDead), questObjective.IgnoreNotSelectable, questObjective.IgnoreBlackList,
questObjective.AllowPlayerControlled);
ObjectManager.Me.UnitAura(115191).TryCancel(); //Remove Stealth from rogue
if (unit.... | WoWUnit unit = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(questObjective.Entry, questObjective.IsDead), questObjective.IgnoreNotSelectable, questObjective.IgnoreBlackList,
questObjective.AllowPlayerControlled);
if (unit.IsValid && unit.Position.DistanceTo(questObjective.Position) <=8)
{
Movemen... | mit | C# |
6b3c88e1488e28255890ef6eb488deb85586c5f2 | change measuring method. | Codeer-Software/LambdicSql | Project/Performance/SelectTime.cs | Project/Performance/SelectTime.cs | using Dapper;
using LambdicSql;
using LambdicSql.SqlServer;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Diagnostics;
using System.Linq;
using System.Windows.Forms;
namespace Performance
{
class TableValues
{
... | using Dapper;
using LambdicSql;
using LambdicSql.SqlServer;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Diagnostics;
using System.Linq;
using System.Windows.Forms;
namespace Performance
{
class TableValues
{
... | mit | C# |
bfe837d00f70c2787e42318b712a16e546aba9c5 | Build script now creates individual zip file packages to align with the NuGet packages and semantic versioning. | autofac/Autofac.Extras.AttributeMetadata | Properties/VersionAssemblyInfo.cs | Properties/VersionAssemblyInfo.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18033
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18033
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | mit | C# |
71ef2ebd4f155cace5712b1f2e6d527142706145 | Refactor KeyHelper | danielchalmers/SteamAccountSwitcher | SteamAccountSwitcher/KeyHelper.cs | SteamAccountSwitcher/KeyHelper.cs | using System.Windows.Input;
namespace SteamAccountSwitcher
{
internal static class KeyHelper
{
public static int KeyToInt(Key key)
{
switch (key)
{
case Key.D1:
return 1;
case Key.D2:
return 2;
... | using System.Windows.Input;
namespace SteamAccountSwitcher
{
internal static class KeyHelper
{
public static int KeyToInt(Key key)
{
var num = 0;
switch (key)
{
case Key.D1:
num = 1;
break;
... | mit | C# |
fdb7d6e5f40b5c86d6e3b597132663f27fdedbd7 | bump version | RainwayApp/warden | Warden/Properties/AssemblyInfo.cs | Warden/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("Warden.NET")]
[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("Warden.NET")]
[assembly: AssemblyDe... | apache-2.0 | C# |
2517146d62b1e6cea55d5ac83b84cd14d2a9710e | Correct home member | alvachien/achihapi | src/hihapi/Controllers/Home/HomeMembersController.cs | src/hihapi/Controllers/Home/HomeMembersController.cs | using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Microsoft.AspNetCore.OData.Routing.Controllers;
using Microsoft.AspNetCore.OData.Query;
using Microsoft.AspNetCore.OData.Results;
using Microsoft.AspNetCore.OData.Formatter;
using Microsoft.EntityFrameworkCore;
using System.Thread... | using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Microsoft.AspNetCore.OData.Routing.Controllers;
using Microsoft.AspNetCore.OData.Query;
using Microsoft.AspNetCore.OData.Results;
using Microsoft.AspNetCore.OData.Formatter;
using Microsoft.EntityFrameworkCore;
using System.Thread... | mit | C# |
1b0b0e01cf2e5c1f3751fb6b19be7f2808bf1e69 | Change indent to 2 spaces | 12joan/hangman | hangman.cs | hangman.cs | using System;
namespace Hangman {
public class Hangman {
public static void Main(string[] args) {
// char key = Console.ReadKey(true).KeyChar;
// var game = new Game("HANG THE MAN");
// bool wasCorrect = game.GuessLetter(key);
// Console.WriteLine(wasCorrect.ToString());
// var ou... | using System;
namespace Hangman {
public class Hangman {
public static void Main(string[] args) {
// char key = Console.ReadKey(true).KeyChar;
// var game = new Game("HANG THE MAN");
// bool wasCorrect = game.GuessLetter(key);
// Console.WriteLine(wasCorrect.ToString());
// var ou... | unlicense | C# |
c8beb9a949e44304afcb1c5a0332cd9bc0cc76a4 | Fix Russian comment | IEVin/PropertyChangedNotificator | src/Core/Properties/AssemblyInfo.cs | src/Core/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;
// Управление общими сведениями о сборке осуществляется с помощью
// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
// связанные со сборкой.
[assembly: AssemblyTitle("Core")]
[a... | mit | C# |
ecaf050b609a7dbf10d6b6c33ab9059a15384fdb | Modify translation instructions page per request | BloomBooks/PhotoStoryToBloomConverter,BloomBooks/PhotoStoryToBloomConverter | PhotoStoryToBloomConverter/SpAppMetadata.cs | PhotoStoryToBloomConverter/SpAppMetadata.cs | using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using PhotoStoryToBloomConverter.Utilities;
namespace PhotoStoryToBloomConverter
{
public enum SpAppMetadataGraphic
{
[Description("gray-background")]
GrayBackground,
[Description("front-cover-graphic")]
FrontCoverGraphic
}
... | using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using PhotoStoryToBloomConverter.Utilities;
namespace PhotoStoryToBloomConverter
{
public enum SpAppMetadataGraphic
{
[Description("gray-background")]
GrayBackground,
[Description("front-cover-graphic")]
FrontCoverGraphic
}
... | mit | C# |
fb65aa332bced912b27438d6e2677a52c06ec996 | use max camera positions instead of last character position | virtuoushub/game-off-2016,whoa-algebraic/game-off-2016,virtuoushub/game-off-2016,virtuoushub/game-off-2016,whoa-algebraic/game-off-2016,whoa-algebraic/game-off-2016 | Assets/Scripts/CameraFollowPlayer.cs | Assets/Scripts/CameraFollowPlayer.cs | using UnityEngine;
using System.Collections;
public class CameraFollowPlayer : MonoBehaviour {
public Transform PlayerCharacter;
public float horizontalEdgeBuffer;
public float verticalEdgeBuffer;
private int mapTileHorizontalUnits = 4;
private int mapTileVerticalUnits = 2;
private float uni... | using UnityEngine;
using System.Collections;
public class CameraFollowPlayer : MonoBehaviour {
public Transform PlayerCharacter;
public float horizontalEdgeBuffer;
public float verticalEdgeBuffer;
private int mapTileHorizontalUnits = 4;
private int mapTileVerticalUnits = 2;
private float uni... | mit | C# |
6d91c0f375369c182312bfde644cae26443339a9 | Resolve inspection issue | ppy/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu,peppy/osu | osu.Game.Rulesets.Osu/Difficulty/Skills/Speed.cs | osu.Game.Rulesets.Osu/Difficulty/Skills/Speed.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System;
using osu.Game.Rulesets.Difficulty.Preprocessing;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Osu.Difficulty.Evaluators;
using... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System;
using osu.Game.Rulesets.Difficulty.Preprocessing;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Osu.Difficulty.Evaluators;
using... | mit | C# |
7756e6a7591f2644ed91eca805d4dbb4efbcf31b | Update IEventTelemeter.cs | tiksn/TIKSN-Framework | TIKSN.Core/Analytics/Telemetry/IEventTelemeter.cs | TIKSN.Core/Analytics/Telemetry/IEventTelemeter.cs | using System.Collections.Generic;
using System.Threading.Tasks;
namespace TIKSN.Analytics.Telemetry
{
public interface IEventTelemeter
{
Task TrackEventAsync(string name);
Task TrackEventAsync(string name, IDictionary<string, string> properties);
}
}
| using System.Collections.Generic;
using System.Threading.Tasks;
namespace TIKSN.Analytics.Telemetry
{
public interface IEventTelemeter
{
Task TrackEvent(string name);
Task TrackEvent(string name, IDictionary<string, string> properties);
}
}
| mit | C# |
0ea6e3a9c2477ae09173202fb0e66f70d15cd232 | make the sequence add method null safe. | signumsoftware/framework,signumsoftware/framework,avifatal/framework,AlejandroCano/framework,AlejandroCano/framework,avifatal/framework | Signum.Utilities/DataStructures/Sequence.cs | Signum.Utilities/DataStructures/Sequence.cs | using System.Collections.Generic;
namespace Signum.Utilities.DataStructures
{
public class Sequence<T> : List<T>
{
public void Add(IEnumerable<T> collection)
{
if (collection != null)
{
AddRange(collection);
}
}
}
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Signum.Utilities.DataStructures
{
public class Sequence<T> : List<T>
{
public void Add(IEnumerable<T> collection)
{
AddRange(collection);
}
}
}
| mit | C# |
268d1461e786b7e5d5c05916ad4c315f9d71a4b7 | update version | prodot/ReCommended-Extension | Sources/ReCommendedExtension/Properties/AssemblyInfo.cs | Sources/ReCommendedExtension/Properties/AssemblyInfo.cs | using System.Reflection;
using ReCommendedExtension;
// 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(ZoneMarker.ExtensionName)]
[assembly: AssemblyDescript... | using System.Reflection;
using ReCommendedExtension;
// 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(ZoneMarker.ExtensionName)]
[assembly: AssemblyDescript... | apache-2.0 | C# |
a1d0a9c2b014d384543a9ec2db3de9568e25bfd4 | Add containing type names (for nested classes) | ulrichb/Roflcopter,ulrichb/Roflcopter | Src/Roflcopter.Plugin/ShortNameTypeMemberFqnProvider.cs | Src/Roflcopter.Plugin/ShortNameTypeMemberFqnProvider.cs | using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using JetBrains.Application.DataContext;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Features.Environment.CopyFqn;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.DataContext;
using JetBrains.UI.Avalon.TreeListVi... | using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using JetBrains.Application.DataContext;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Features.Environment.CopyFqn;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.DataContext;
namespace Roflcopter.Plugin
{
/... | mit | C# |
df29c9f2de8e6d94f4eef717a8e10e85e01b7dfa | Fix GostKeyValue name | AlexMAS/GostCryptography | Source/GostCryptography/Xml/GostKeyValue.cs | Source/GostCryptography/Xml/GostKeyValue.cs | using System;
using System.Security.Cryptography.Xml;
using System.Xml;
using GostCryptography.Base;
namespace GostCryptography.Xml
{
/// <summary>
/// Параметры открытого ключа цифровой подписи ГОСТ Р 34.10.
/// </summary>
public sealed class GostKeyValue : KeyInfoClause
{
/// <summary>
/// Наименование кл... | using System;
using System.Security.Cryptography.Xml;
using System.Xml;
using GostCryptography.Base;
namespace GostCryptography.Xml
{
/// <summary>
/// Параметры открытого ключа цифровой подписи ГОСТ Р 34.10.
/// </summary>
public sealed class GostKeyValue : KeyInfoClause
{
/// <summary>
/// Наименование кл... | mit | C# |
2050ffbadfdeb7e5fb9a460789a4708979a98aa1 | Tidy up with method sig overloads - reducing noise before the code gets too mad. | davidwhitney/XdtExtract,davidwhitney/XdtExtract | src/XdtExtract/AppConfigComparer.cs | src/XdtExtract/AppConfigComparer.cs | using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
namespace XdtExtract
{
public class AppConfigComparer
{
public IEnumerable<Diff> Compare(string @base, string comparison)
{
return Compare(XDocument.Parse(@base), XDocument.Parse(comparison));
}
... | using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
namespace XdtExtract
{
public class AppConfigComparer
{
public IEnumerable<Diff> Compare(string baseConfig, string comparisonConfig)
{
var baseDoc = XDocument.Parse(baseConfig);
var comparisonD... | mit | C# |
ef46b30ae2878c745246e71978f33232a9d6850a | Add conditional business rule execution based on successful validation rule execution | peasy/Samples,peasy/Samples,peasy/Samples | Orders.com.BLL/Services/OrdersDotComServiceBase.cs | Orders.com.BLL/Services/OrdersDotComServiceBase.cs | using Peasy;
using Peasy.Core;
using Orders.com.BLL.DataProxy;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace Orders.com.BLL.Services
{
public abstract class OrdersDotComServiceBase<T> : BusinessServiceBase<T, long> where T... | using Peasy;
using Peasy.Core;
using Orders.com.BLL.DataProxy;
namespace Orders.com.BLL.Services
{
public abstract class OrdersDotComServiceBase<T> : BusinessServiceBase<T, long> where T : IDomainObject<long>, new()
{
public OrdersDotComServiceBase(IOrdersDotComDataProxy<T> dataProxy) : base(dataProxy... | mit | C# |
da527aa9548e9eb2ac1174b9b6e74e69fe6accca | Change ConfigurationGenerationAttributeBase to invoke generation only on local build | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.Common/CI/ConfigurationGenerationAttributeBase.cs | source/Nuke.Common/CI/ConfigurationGenerationAttributeBase.cs | // Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Collections.Generic;
using System.Reflection;
using Nuke.Common.Execution;
using Nuke.Common.Tooling;
namespace Nuke.Common.CI
{
[AttributeUsage(Attribu... | // Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Collections.Generic;
using System.Reflection;
using Nuke.Common.Execution;
using Nuke.Common.Tooling;
namespace Nuke.Common.CI
{
public abstract class C... | mit | C# |
86f2f65af34065e2c9a10f81a931c4a9a0f0b8b1 | Use local datetime | drasticactions/WinMasto | WinMasto/Tools/Converters/CreatedTimeConverter.cs | WinMasto/Tools/Converters/CreatedTimeConverter.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Data;
using PrettyPrintNet;
namespace WinMasto.Tools.Converters
{
public class CreatedTimeConverter : IValueConverter
{
public object Convert(object value, Type tar... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Data;
using PrettyPrintNet;
namespace WinMasto.Tools.Converters
{
public class CreatedTimeConverter : IValueConverter
{
public object Convert(object value, Type tar... | mit | C# |
ac8569202f27518afc57c5a7f14c0ee433b6b6f8 | Update sys version to v2.0-a2 #259 | FanrayMedia/Fanray,FanrayMedia/Fanray,FanrayMedia/Fanray | src/Fan/Helpers/SysVersion.cs | src/Fan/Helpers/SysVersion.cs | namespace Fan.Helpers
{
public class SysVersion
{
public static string CurrentVersion = "v2.0-a2";
}
}
| namespace Fan.Helpers
{
public class SysVersion
{
public static string CurrentVersion = "v2.0-a1";
}
}
| apache-2.0 | C# |
00b6f898914f32fdf8026aff77f65db0744cddb6 | add missing using statement ref | manigandham/serilog-sinks-googlecloudlogging | src/TestWeb/HomeController.cs | src/TestWeb/HomeController.cs | using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Serilog;
namespace TestWeb
{
public class HomeController : Controller
{
private readonly ILogger<HomeController> _logger;
private readonly ILoggerFactory _loggerFactory;
... | using System;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Serilog;
namespace TestWeb
{
public class HomeController : Controller
{
private readonly ILogger<HomeController> _logger;
private readonly ILoggerFactory _loggerFactory;
public HomeController(ILogg... | mit | C# |
95d486c19b0064f653be1226e8bdc463efed4244 | Add Json Constructor for WebInput | LibertyLocked/webscripthook,LibertyLocked/webscripthook,LibertyLocked/webscripthook,LibertyLocked/webscripthook | webscripthook-plugin/WebInput.cs | webscripthook-plugin/WebInput.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GTA;
using GTA.Math;
using GTA.Native;
using Newtonsoft.Json;
namespace WebScriptHook
{
delegate object WebFunction(string arg, params object[] args);
class WebInput
{
public ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GTA;
using GTA.Math;
using GTA.Native;
namespace WebScriptHook
{
delegate object WebFunction(string arg, params object[] args);
class WebInput
{
public string Cmd { get; set; ... | mit | C# |
3ee36bb8221323c5e29f9f56f22c55593960c262 | Apply license terms uniformly | Lightstreamer/Lightstreamer-example-StockList-client-winphone,Weswit/Lightstreamer-example-StockList-client-winphone | WP7StockListDemo/Properties/AssemblyInfo.cs | WP7StockListDemo/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Lightstreamer Windows Phone Demo")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("Lightstream... | #region License
/*
* Copyright 2013 Weswit Srl
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | apache-2.0 | C# |
4b79613aa31a5a0da573f5b54a0ce55a35f199fd | Add missing Id | hishamco/WebForms,hishamco/WebForms | samples/WebFormsSample/Pages/Index.htm.cs | samples/WebFormsSample/Pages/Index.htm.cs | using My.AspNetCore.WebForms;
using My.AspNetCore.WebForms.Controls;
using System;
namespace WebFormsSample.Pages
{
public class Index : Page
{
private Literal litGreeting;
public Index()
{
litGreeting = new Literal()
{
Id = "litGreeting"
... | using My.AspNetCore.WebForms;
using My.AspNetCore.WebForms.Controls;
using System;
namespace WebFormsSample.Pages
{
public class Index : Page
{
private Literal litGreeting;
public Index()
{
litGreeting = new Literal();
this.Load += Page_Load;
this.... | mit | C# |
5931c7fb9a8884adaf3087fb831caa103e0cfb86 | Remove trailing slashes when creating LZMAs | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | build/tasks/CreateLzma.cs | build/tasks/CreateLzma.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 System.IO;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
using Microsoft.DotNet.Archive;
namespace RepoTasks
{
public cla... | // 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 System.IO;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
using Microsoft.DotNet.Archive;
namespace RepoTasks
{
public cla... | apache-2.0 | C# |
93cdc05ae158b3268f2812908e4b2fdfde08ff73 | improve NotifyObjectChange: only check binding for ObservableModel context | minhdu/UIMan | Assets/UnuGames/UIMan/Scripts/MVVM/Core/DataContext.cs | Assets/UnuGames/UIMan/Scripts/MVVM/Core/DataContext.cs | using System;
using System.Reflection;
using UnityEngine;
using System.Collections.Generic;
namespace UnuGames.MVVM {
/// <summary>
/// Data context.
/// </summary>
public class DataContext : MonoBehaviour {
#region DataContext Factory
static List<DataContext> contextsList = new List<DataContext> ();
static... | using System;
using System.Reflection;
using UnityEngine;
using System.Collections.Generic;
namespace UnuGames.MVVM {
/// <summary>
/// Data context.
/// </summary>
public class DataContext : MonoBehaviour {
#region DataContext Factory
static List<DataContext> contextsList = new List<DataContext> ();
static... | mit | C# |
21c7ea664a6c071716a69b2f7659a0aebfb80802 | Improve high-dpi. | yas-mnkornym/SylphyHorn,Grabacr07/SylphyHorn,mntone/SylphyHorn | source/SylphyHorn/Interop/IconHelper.cs | source/SylphyHorn/Interop/IconHelper.cs | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using MetroRadiance.Interop;
namespace SylphyHorn.Interop
{
public static class IconHelper
{
public static Icon GetIconFromResource(Uri uri)
{
var streamResourceInfo = System.Windows.Application.GetResourceStream(uri);
... | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
namespace SylphyHorn.Interop
{
public static class IconHelper
{
public static Icon GetIconFromResource(Uri uri)
{
var streamResourceInfo = System.Windows.Application.GetResourceStream(uri);
if (streamResourceInfo == n... | mit | C# |
77ec37d24ea3a6aca58761380c981952fa4ea784 | Refactor normalization tests | ermshiperete/icu-dotnet,ermshiperete/icu-dotnet,conniey/icu-dotnet,sillsdev/icu-dotnet,sillsdev/icu-dotnet,conniey/icu-dotnet | source/icu.net.tests/NormalizerTests.cs | source/icu.net.tests/NormalizerTests.cs | // Copyright (c) 2013 SIL International
// This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
using System;
using System.Text;
using Icu.Collation;
using NUnit.Framework;
namespace Icu.Tests
{
[TestFixture]
public class NormalizerTests
{
[TestCase("XA\u0308bc", Normalizer.UNormal... | // Copyright (c) 2013 SIL International
// This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
using System;
using System.Text;
using NUnit.Framework;
namespace Icu.Tests
{
[TestFixture]
public class NormalizerTests
{
[Test]
public void Normalize_NFC()
{
Assert.That(Normali... | mit | C# |
0a72d4024fc0cb0d1c063c077e86d3ab5edbce2e | Stop prior sounds | gadauto/OCDEscape | Assets/OCDRoomEscape/Scripts/Interaction/PuzzleMaster.cs | Assets/OCDRoomEscape/Scripts/Interaction/PuzzleMaster.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class PuzzleMaster : MonoBehaviour
{
public float timeBetweenSounds = 15f;
public WallManager wallMgr;
public List<Puzzle> puzzles;
float increment;
float weightedIncrementTotal;
bool isGameOver = false;
// Use this for i... | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class PuzzleMaster : MonoBehaviour
{
public float timeBetweenSounds = 15f;
public WallManager wallMgr;
public List<Puzzle> puzzles;
float increment;
float weightedIncrementTotal;
bool isGameOver = false;
// Use this for i... | apache-2.0 | C# |
01c15fe516e6fc599a12eef3936ed56aa4b8f1fc | Verify that region is set if specified | appharbor/appharbor-cli | src/AppHarbor.Tests/Commands/CreateAppCommandTest.cs | src/AppHarbor.Tests/Commands/CreateAppCommandTest.cs | using System.IO;
using System.Linq;
using AppHarbor.Commands;
using AppHarbor.Model;
using Moq;
using Ploeh.AutoFixture.Xunit;
using Xunit;
using Xunit.Extensions;
namespace AppHarbor.Tests.Commands
{
public class CreateAppCommandTest
{
[Theory, AutoCommandData]
public void ShouldThrowWhenNoArguments(CreateAppC... | using System.IO;
using System.Linq;
using AppHarbor.Commands;
using AppHarbor.Model;
using Moq;
using Ploeh.AutoFixture.Xunit;
using Xunit;
using Xunit.Extensions;
namespace AppHarbor.Tests.Commands
{
public class CreateAppCommandTest
{
[Theory, AutoCommandData]
public void ShouldThrowWhenNoArguments(CreateAppC... | mit | C# |
be20878184318342858b03d85b61ca1643c71906 | Update IndexModule.cs | LeedsSharp/AppVeyorDemo | src/AppVeyorDemo/AppVeyorDemo/Modules/IndexModule.cs | src/AppVeyorDemo/AppVeyorDemo/Modules/IndexModule.cs | namespace AppVeyorDemo.Modules
{
using System.Configuration;
using AppVeyorDemo.Models;
using Nancy;
public class IndexModule : NancyModule
{
public IndexModule()
{
Get["/"] = parameters =>
{
var model = new IndexViewModel
{
... | namespace AppVeyorDemo.Modules
{
using System.Configuration;
using AppVeyorDemo.Models;
using Nancy;
public class IndexModule : NancyModule
{
public IndexModule()
{
Get["/"] = parameters =>
{
var model = new IndexViewModel
{
... | apache-2.0 | C# |
b9df03da9d552c00887e209bba16e6cc33638a77 | Add public comments to login request handler classes and interfaces | ZEISS-PiWeb/PiWeb-Api | src/Common/Client/ICertificateLoginRequestHandler.cs | src/Common/Client/ICertificateLoginRequestHandler.cs | #region Copyright
/* * * * * * * * * * * * * * * * * * * * * * * * * */
/* Carl Zeiss IMT (IZfM Dresden) */
/* Softwaresystem PiWeb */
/* (c) Carl Zeiss 2016 */
/* * * * * * * * * * * * * * * * * * * * * * * * * */
#endregion
namespa... | #region Copyright
/* * * * * * * * * * * * * * * * * * * * * * * * * */
/* Carl Zeiss IMT (IZfM Dresden) */
/* Softwaresystem PiWeb */
/* (c) Carl Zeiss 2016 */
/* * * * * * * * * * * * * * * * * * * * * * * * * */
#endregion
namespa... | bsd-3-clause | C# |
41e45dbac4e5f6ba3a320b3eabd0ea2109ceb732 | Fix build warnings | Ninputer/VBF | src/Compilers/Compilers.Scanners/SymbolExpression.cs | src/Compilers/Compilers.Scanners/SymbolExpression.cs | // Copyright 2012 Fan Shi
//
// This file is part of the VBF project.
//
// 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
//
// Unles... | // Copyright 2012 Fan Shi
//
// This file is part of the VBF project.
//
// 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
//
// Unles... | apache-2.0 | C# |
aa44980ae9b37df4807e5ea7cfbe01309ea8a50c | fix small bug | mdavid626/artemis | src/Artemis.Data/DbContextRepository.cs | src/Artemis.Data/DbContextRepository.cs | using Artemis.Common;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Linq.Dynamic;
namespace Artemis.Data
{
public abstract class DbContextRepository<T> : IRepository<T> where T : c... | using Artemis.Common;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Linq.Dynamic;
namespace Artemis.Data
{
public abstract class DbContextRepository<T> : IRepository<T> where T : c... | mit | C# |
135cd2647a8aa8b4c342d132400f89f6632b9718 | update access modifiers from public -> internal | colinmxs/CodenameGenerator | src/CodenameGenerator/StringExtensions.cs | src/CodenameGenerator/StringExtensions.cs | using System;
namespace CodenameGenerator
{
internal static class StringExtensions
{
//http://stackoverflow.com/questions/4135317/make-first-letter-of-a-string-upper-case-for-maximum-performance
/// <summary>
/// Capitalize the first character of a string
/// </summary>
... | using System;
namespace CodenameGenerator
{
public static class StringExtensions
{
//http://stackoverflow.com/questions/4135317/make-first-letter-of-a-string-upper-case-for-maximum-performance
/// <summary>
/// Capitalize the first character of a string
/// </summary>
//... | mit | C# |
5b9b0c1a168203af0ef8d49ebe5a0bdc31f8da75 | Put custom uploaders in same dir as other plugins | nikeee/HolzShots | src/HolzShots.Core/IO/HolzShotsPaths.cs | src/HolzShots.Core/IO/HolzShotsPaths.cs | using System;
using System.Diagnostics;
using System.IO;
namespace HolzShots.IO
{
public static class HolzShotsPaths
{
private static readonly string SystemAppDataDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
private static readonly string UserPicturesDirecto... | using System;
using System.Diagnostics;
using System.IO;
namespace HolzShots.IO
{
public static class HolzShotsPaths
{
private static readonly string SystemAppDataDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
private static readonly string UserPicturesDirecto... | agpl-3.0 | C# |
bd27a87f634dd4e45220195d6d63cbfe72750e60 | Check isLocal using Uri.TryCreate. It is possible in case we have only absolute url. | jmptrader/Nancy,fly19890211/Nancy,hitesh97/Nancy,JoeStead/Nancy,SaveTrees/Nancy,SaveTrees/Nancy,AIexandr/Nancy,malikdiarra/Nancy,ccellar/Nancy,SaveTrees/Nancy,MetSystem/Nancy,anton-gogolev/Nancy,sloncho/Nancy,duszekmestre/Nancy,AIexandr/Nancy,dbolkensteyn/Nancy,EIrwin/Nancy,blairconrad/Nancy,EliotJones/NancyTest,ayoung... | src/Nancy/Extensions/RequestExtensions.cs | src/Nancy/Extensions/RequestExtensions.cs | namespace Nancy.Extensions
{
using System;
using System.Linq;
/// <summary>
/// Containing extensions for the <see cref="Request"/> object
/// </summary>
public static class RequestExtensions
{
/// <summary>
/// An extension method making it easy to check if the ... | namespace Nancy.Extensions
{
using System;
using System.Linq;
/// <summary>
/// Containing extensions for the <see cref="Request"/> object
/// </summary>
public static class RequestExtensions
{
/// <summary>
/// An extension method making it easy to check if the ... | mit | C# |
bf94d3ef0b52e9444df9e3e3cc6896cac5ec4f06 | Update Validator | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/Services/Validator.cs | src/WeihanLi.Common/Services/Validator.cs | using System.ComponentModel.DataAnnotations;
using WeihanLi.Extensions;
using AnnotationValidationResult = System.ComponentModel.DataAnnotations.ValidationResult;
using ValidationResult = WeihanLi.Common.Models.ValidationResult;
namespace WeihanLi.Common.Services;
public interface IValidator
{
ValidationResult V... | using System.ComponentModel.DataAnnotations;
using WeihanLi.Extensions;
using AnnotationValidationResult = System.ComponentModel.DataAnnotations.ValidationResult;
using ValidationResult = WeihanLi.Common.Models.ValidationResult;
namespace WeihanLi.Common.Services;
public interface IValidator
{
ValidationResult V... | mit | C# |
c3a7892d0f730e0446e18daceb46922759501638 | fix disposing on enable behavior. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/Behaviors/FocusOnEnableBehavior.cs | WalletWasabi.Fluent/Behaviors/FocusOnEnableBehavior.cs | using Avalonia;
using System;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using Avalonia.Controls;
using Avalonia.Input;
namespace WalletWasabi.Fluent.Behaviors
{
public class FocusOnEnableBehavior : DisposingBehavior<Control>
{
protected override void OnAttached(CompositeDisposable disposables)... | using Avalonia;
using Avalonia.Controls;
using Avalonia.Xaml.Interactivity;
using System;
using System.Reactive.Linq;
namespace WalletWasabi.Fluent.Behaviors
{
public class FocusOnEnableBehavior : Behavior<Control>
{
protected override void OnAttached()
{
base.OnAttached();
Observable.
FromEventPatter... | mit | C# |
565dcaa3bd5e65ad172962d463c4f92907327183 | Update version | masaedw/LineSharp | LineSharp/Properties/AssemblyInfo.cs | LineSharp/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("LineSharp")]
[assembly: AssemblyDescription("A LINE Messaging API binding library")]
[assembly: Assemb... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("LineSharp")]
[assembly: AssemblyDescription("A LINE Messaging API binding library")]
[assembly: Assemb... | mit | C# |
eb493ec4dcc730adc178c12855e4d557ddc07074 | Fix whitespace issue | petedavis/essential-templating | test/Essential.Templating.Razor.Tests/Templates/Test.ru.cshtml | test/Essential.Templating.Razor.Tests/Templates/Test.ru.cshtml | @using System
@inherits Essential.Templating.Razor.Template
Шаблон на русском языке. Выполненен @DateTime.Now | @using System
@inherits Essential.Templating.Razor.Template
Шаблон на русском языке. Выполненен @DateTime.Now | mit | C# |
92376f447a9956c2c221242011dee7bcaa1ddd95 | fix guard clause | xbehave/xbehave.net,hitesh97/xbehave.net,adamralph/xbehave.net,modulexcite/xbehave.net,mvalipour/xbehave.net,hitesh97/xbehave.net,modulexcite/xbehave.net,mvalipour/xbehave.net | src/Xbehave.2.Execution.desktop/Step.cs | src/Xbehave.2.Execution.desktop/Step.cs | // <copyright file="Step.cs" company="xBehave.net contributors">
// Copyright (c) xBehave.net contributors. All rights reserved.
// </copyright>
namespace Xbehave.Execution
{
using Xunit.Abstractions;
using Xunit.Sdk;
public class Step : LongLivedMarshalByRefObject, ITest
{
privat... | // <copyright file="Step.cs" company="xBehave.net contributors">
// Copyright (c) xBehave.net contributors. All rights reserved.
// </copyright>
namespace Xbehave.Execution
{
using Xunit.Abstractions;
using Xunit.Sdk;
public class Step : LongLivedMarshalByRefObject, ITest
{
privat... | mit | C# |
857af8ecd94a8172f2e7a332a0fda67a2dd41040 | Add session options | andrewlock/blog-examples,andrewlock/blog-examples,andrewlock/blog-examples,andrewlock/blog-examples | using-session-state/src/UsingSessionState/Startup.cs | using-session-state/src/UsingSessionState/Startup.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace UsingSessionS... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace UsingSessionS... | mit | C# |
9b34e20521e6de1b3a68c8466516184861dcf804 | update description | yb199478/catlib,CatLib/Framework | CatLib.VS/CatLib/API/Debugger/Internal/ILoggerAware.cs | CatLib.VS/CatLib/API/Debugger/Internal/ILoggerAware.cs | /*
* This file is part of the CatLib package.
*
* (c) Yu Bin <support@catlib.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Document: http://catlib.io/
*/
namespace CatLib.API.Debugger
{
/// <summary>
/// 设定记录器实例接... | /*
* This file is part of the CatLib package.
*
* (c) Yu Bin <support@catlib.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Document: http://catlib.io/
*/
namespace CatLib.API.Debugger
{
/// <summary>
/// 设定实例接口
... | unknown | C# |
9405d44a5b0f8dbfe5c6bdd094ced11e6efb621c | Fix build | pharring/ApplicationInsights-dotnet,Microsoft/ApplicationInsights-dotnet,pharring/ApplicationInsights-dotnet,pharring/ApplicationInsights-dotnet | Test/CoreSDK.Test/TestFramework/Shared/StubPlatform.cs | Test/CoreSDK.Test/TestFramework/Shared/StubPlatform.cs | namespace Microsoft.ApplicationInsights.TestFramework
{
using System;
using System.Collections.Generic;
using Microsoft.ApplicationInsights.Channel;
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.ApplicationInsights.Extensibility.Implementation;
using Microsoft.ApplicationIn... | namespace Microsoft.ApplicationInsights.TestFramework
{
using System;
using System.Collections.Generic;
using Microsoft.ApplicationInsights.Channel;
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.ApplicationInsights.Extensibility.Implementation;
using Microsoft.ApplicationIn... | mit | C# |
368fb1ed53ea1f7cf60070437dc162e53742ebd1 | Fix tests. | JohanLarsson/Gu.Units | Gu.Units.Tests/LengthUnitTests.cs | Gu.Units.Tests/LengthUnitTests.cs | namespace Gu.Units.Tests
{
using System;
using NUnit.Framework;
public class LengthUnitTests
{
public static string[] HappyPathSource { get; } = { "m", "mm", " cm", " m ", "ft", "yd" };
public static string[] ErrorSource { get; } = { "ssg", "mms" };
[TestCaseSource(nameof(Happy... | namespace Gu.Units.Tests
{
using System;
using System.Collections.Generic;
using NUnit.Framework;
public class LengthUnitTests
{
[TestCaseSource(nameof(HappyPathSource))]
public void ParseSuccess(string text)
{
var lengthUnit = LengthUnit.Parse(text);
... | mit | C# |
51510955c8a3dedc95f79d487b6963a75e3f4b8b | Fix a dumb bug in the interface generator | PKRoma/refit,ammachado/refit,jlucansky/refit,PureWeen/refit,mteper/refit,onovotny/refit,martijn00/refit,mteper/refit,jlucansky/refit,paulcbetts/refit,martijn00/refit,paulcbetts/refit,ammachado/refit,onovotny/refit,PureWeen/refit | InterfaceStubGenerator/Program.cs | InterfaceStubGenerator/Program.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Refit.Generator
{
class Program
{
static void Main(string[] args)
{
// NB: @Compile passes us a list of files rel... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Refit.Generator
{
class Program
{
static void Main(string[] args)
{
var generator = new InterfaceStubGenerator();... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.