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 |
|---|---|---|---|---|---|---|---|---|
869136b2fb25277c28ba6919ed4878db1a85da72 | Fix possible cross-thread config cache access (#4730) | smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,ZLima12/osu,ppy/osu,EVAST9919/osu,johnneijzen/osu,EVAST9919/osu,smoogipooo/osu,2yangk23/osu,peppy/osu,peppy/osu,ZLima12/osu,peppy/osu-new,NeoAdonis/osu,UselessToucan/osu,peppy/osu,ppy/osu,johnneijzen/osu,smoogipoo/osu,2yangk23/o... | osu.Game/Rulesets/RulesetConfigCache.cs | osu.Game/Rulesets/RulesetConfigCache.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Concurrent;
using osu.Framework.Graphics;
using osu.Game.Configuration;
using osu.Game.Rulesets.Configuration;
namespace osu.Game... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using osu.Framework.Graphics;
using osu.Game.Configuration;
using osu.Game.Rulesets.Configuration;
namespace osu.Game.Ru... | mit | C# |
b447880f40c9f9a26b53c6e0e49316a7fd79f0f4 | Install using the "LocalService" user account by default. | highlyunavailable/ncron,schourode/ncron | load/ProjectInstaller.cs | load/ProjectInstaller.cs | // Copyright (c) 2007-2008, Joern Schou-Rode <jsr@malamute.dk>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redistributions of source code must retain the above copyrig... | // Copyright (c) 2007-2008, Joern Schou-Rode <jsr@malamute.dk>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redistributions of source code must retain the above copyrig... | apache-2.0 | C# |
44a156f18c593908277c9b6f7426c3ef0c6e2349 | Bump 3.4.0 | criteo/RabbitMQHare | RabbitMQHare/Properties/AssemblyInfo.cs | RabbitMQHare/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... | apache-2.0 | C# |
d330b39db492a8b85b79a93e5ed1d6018db0b1bb | Remove max | smoogipooo/osu,ZLima12/osu,DrabWeb/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,EVAST9919/osu,NeoAdonis/osu,UselessToucan/osu,johnneijzen/osu,Nabile-Rahmani/osu,naoey/osu,ppy/osu,Frontear/osuKyzer,NeoAdonis/osu,2yangk23/osu,Drezi126/osu,ppy/osu,EVAST9919/osu,2yangk23/osu,naoey/osu,smoogipoo/osu,DrabWeb/osu,naoey/osu,Usele... | osu.Game/Screens/Play/SongProgressGraph.cs | osu.Game/Screens/Play/SongProgressGraph.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using osu.Game.Rulesets.Objects.Types;
using osu.Game.Rulesets.Objects;
namespa... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using osu.Game.Rulesets.Objects.Types;
using osu.Game.Rulesets.Obje... | mit | C# |
b76dc8150d63547991802da35dd7ed5698c7e8f9 | Use non-aggressive comparison for J2N collections | jeme/lucenenet,jeme/lucenenet,apache/lucenenet,sisve/lucenenet,NightOwl888/lucenenet,apache/lucenenet,apache/lucenenet,jeme/lucenenet,NightOwl888/lucenenet,apache/lucenenet,NightOwl888/lucenenet,jeme/lucenenet,NightOwl888/lucenenet,sisve/lucenenet | src/Lucene.Net.Tests/Util/TestIdentityHashSet.cs | src/Lucene.Net.Tests/Util/TestIdentityHashSet.cs | using J2N.Runtime.CompilerServices;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using JCG = J2N.Collections.Generic;
using Assert = Lucene.Net.TestFramework.Assert;
using System.Diagnostics.CodeAnalysis;
namespace Lucene.Net.Util
{
/*
* Licensed to the Apache Software Foundation (AS... | using J2N.Runtime.CompilerServices;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using JCG = J2N.Collections.Generic;
using Assert = Lucene.Net.TestFramework.Assert;
namespace Lucene.Net.Util
{
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor... | apache-2.0 | C# |
13dcb74d6732b99adc5b7bcb0b7c964490c5e7a5 | tidy only | SkillsFundingAgency/das-providerapprenticeshipsservice,SkillsFundingAgency/das-providerapprenticeshipsservice,SkillsFundingAgency/das-providerapprenticeshipsservice | src/SFA.DAS.PAS.ContractAgreements.WebJob/Program.cs | src/SFA.DAS.PAS.ContractAgreements.WebJob/Program.cs | using System;
using System.Diagnostics;
using SFA.DAS.NLog.Logger;
using SFA.DAS.PAS.ContractAgreements.WebJob.DependencyResolution;
namespace SFA.DAS.PAS.ContractAgreements.WebJob
{
// To learn more about Microsoft Azure WebJobs SDK, please see http://go.microsoft.com/fwlink/?LinkID=320976
class Program
... | using System;
using System.Diagnostics;
using SFA.DAS.NLog.Logger;
using SFA.DAS.PAS.ContractAgreements.WebJob.DependencyResolution;
namespace SFA.DAS.PAS.ContractAgreements.WebJob
{
// To learn more about Microsoft Azure WebJobs SDK, please see http://go.microsoft.com/fwlink/?LinkID=320976
class Program
... | mit | C# |
79b19b879fa88612d5cd15db9a75b7f01afc759a | fix #335 | AerysBat/slimCat,WreckedAvent/slimCat | slimCat/Commands/Character/LogInCommand.cs | slimCat/Commands/Character/LogInCommand.cs | #region Copyright
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="LogInCommand.cs">
// Copyright (c) 2013, Justin Kadrovach, All rights reserved.
//
// This source is subject to the Simplified BSD License.
// Ple... | #region Copyright
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="LogInCommand.cs">
// Copyright (c) 2013, Justin Kadrovach, All rights reserved.
//
// This source is subject to the Simplified BSD License.
// Ple... | bsd-2-clause | C# |
9626e562b3ce9ce5fcd6f57dbbfdc4f066413ee2 | Cut down 4 loc | akashkrishnan/CERN-Application-2014 | CERN-Application-2014/Program.cs | CERN-Application-2014/Program.cs | using System;
using System.Linq;
using System.Numerics;
namespace CERN_Application_2014
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(SumOfPrimes(4000000, 5000000));
Console.WriteLine(SumOfDigits(BigInteger.Pow(2, 3502)));
Console.Rea... | using System;
using System.Linq;
using System.Numerics;
namespace CERN_Application_2014
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(SumOfPrimes(4000000, 5000000));
Console.WriteLine(SumOfDigits(BigInteger.Pow(2, 3502)));
Console.Rea... | mit | C# |
32f56c8ca8c3f4d472aba252ecbdba1d41d48a54 | refactor Main to follow core 2.0 recommended pattern | alimon808/contoso-university,alimon808/contoso-university,alimon808/contoso-university | ContosoUniversity.Web/Program.cs | ContosoUniversity.Web/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace ContosoUniversity
{
public class Program
{
public static void Main(string[] args)
{
BuildWebHo... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
namespace ContosoUniversity
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
... | mit | C# |
4143d70e41bf6c04304bf7adf4a39752b05686f1 | Remove unresolvable seealso reference | BenJenkinson/nodatime,BenJenkinson/nodatime,nodatime/nodatime,nodatime/nodatime | src/NodaTime/IClock.cs | src/NodaTime/IClock.cs | // Copyright 2011 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;
namespace NodaTime
{
/// <summary>
/// Represents a clock which can return the current time as an <see cref="Instant" />.
/// <... | // Copyright 2011 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;
namespace NodaTime
{
/// <summary>
/// Represents a clock which can return the current time as an <see cref="Instant" />.
/// <... | apache-2.0 | C# |
57526ed4ff676a378cda31a20c9cd02d3601ea4f | Fix missing ErrorText | StevenLiekens/Txt,StevenLiekens/TextFx | src/TextFx/ReadResult.cs | src/TextFx/ReadResult.cs | namespace TextFx
{
using System;
using JetBrains.Annotations;
public sealed class ReadResult<T>
where T : Element
{
private ReadResult([NotNull] SyntaxError error)
{
if (error == null)
{
throw new ArgumentNullException(nameof(error));
... | namespace TextFx
{
using System;
using JetBrains.Annotations;
public sealed class ReadResult<T>
where T : Element
{
private ReadResult([NotNull] SyntaxError error)
{
if (error == null)
{
throw new ArgumentNullException(nameof(error));
... | mit | C# |
41a552f62c8c84937df3f38da410bce974c2a87d | Introduce variable for new count | rubberduck203/GitNStats,rubberduck203/GitNStats | src/gitnstats.core/Analysis.cs | src/gitnstats.core/Analysis.cs | using System;
using System.Collections.Generic;
using System.Linq;
using LibGit2Sharp;
namespace GitNStats.Core
{
public delegate bool DiffFilterPredicate((Commit Commit, TreeEntryChanges TreeEntryChanges) diff);
public static class Analysis
{
public static IEnumerable<PathCount> CountFileCha... | using System;
using System.Collections.Generic;
using System.Linq;
using LibGit2Sharp;
namespace GitNStats.Core
{
public delegate bool DiffFilterPredicate((Commit Commit, TreeEntryChanges TreeEntryChanges) diff);
public static class Analysis
{
public static IEnumerable<PathCount> CountFileCha... | mit | C# |
63bee72b92a529e9c2a22852b8183565bde039d6 | Update AssemblyInfo | airbreather/StepperUpper | StepperUpper/Properties/AssemblyInfo.cs | StepperUpper/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("StepperUpper")]
[assembly: AssemblyDescri... | 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("StepperUpper")]
[assembly: AssemblyDescri... | mit | C# |
d95b547d5a0736020ded198e87cb4cf877c482db | Simplify UnitTestStopwatch | MiniProfiler/dotnet,MiniProfiler/dotnet | tests/MiniProfiler.Tests/UnitTestStopwatch.cs | tests/MiniProfiler.Tests/UnitTestStopwatch.cs | using StackExchange.Profiling.Helpers;
using System;
namespace Tests
{
/// <summary>
/// The unit test stopwatch.
/// </summary>
public class UnitTestStopwatch : IStopwatch
{
private bool _isRunning = true;
/// <summary>
/// The ticks per second.
/// </summary>
... | using StackExchange.Profiling.Helpers;
using System;
namespace Tests
{
/// <summary>
/// The unit test stopwatch.
/// </summary>
public class UnitTestStopwatch : IStopwatch
{
private bool _isRunning = true;
/// <summary>
/// The ticks per second.
/// </summary>
... | mit | C# |
0531a8dfefd54c545cb8659a2f4cd356285f1d70 | initialize datarepository and previewgenerator | bradwestness/SecretSanta,bradwestness/SecretSanta | SecretSanta/Startup.cs | SecretSanta/Startup.cs | using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using SecretSanta.Utilities;
using System;
namespace SecretSanta
{
... | using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using SecretSanta.Utilities;
using System;
namespace SecretSanta
{
... | apache-2.0 | C# |
4737adb6e8d22c3773c77aa894f67898747e6d2d | Refactor Config class | atata-framework/atata-sample-app-tests | src/Atata.SampleApp.AutoTests/Config.cs | src/Atata.SampleApp.AutoTests/Config.cs | using System.Configuration;
namespace Atata.SampleApp.AutoTests
{
public static class Config
{
public static string Url { get; } = ConfigurationManager.AppSettings[nameof(Url)];
public static class Account
{
public static string Email { get; } = ConfigurationMana... | using System.Configuration;
namespace Atata.SampleApp.AutoTests
{
public static class Config
{
public static string Url { get; } = ConfigurationManager.AppSettings["Url"];
public static class Account
{
public static string Email { get; } = ConfigurationManager.Ap... | apache-2.0 | C# |
512c15fd6f96f52e12ddecd901d671b20371077e | add comment | luguandao/SSystem.Processors | implementation/src/SSystem.Processors/PerTimerType.cs | implementation/src/SSystem.Processors/PerTimerType.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SSystem.Processors
{
/// <summary>
/// type of timer
/// </summary>
public enum PerTimerType
{
Once,
Second,
Minitus,
Hour,
Day,
Week,
Month,
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SSystem.Processors
{
public enum PerTimerType
{
Once,
Second,
Minitus,
Hour,
Day,
Week,
Month,
Year
}
}
| mpl-2.0 | C# |
0c8dab99d96d9286ae0ee88e5cfe0e3f37369815 | remove unnessary ref | lukeschafer/HtmlCleanser | src/HtmlCleanser/Rules/StylesAttributesShouldHaveValue.cs | src/HtmlCleanser/Rules/StylesAttributesShouldHaveValue.cs | using System.Collections.Generic;
using HtmlAgilityPack;
namespace HtmlCleanser.Rules
{
/// <summary>
/// Remove all styles attributtes that don`t have a value. For ex. style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin: 0"
/// => style="font-family:Calibri,Arial,Helvetica,sans-seri... | using System;
using System.Collections.Generic;
using HtmlAgilityPack;
namespace HtmlCleanser.Rules
{
/// <summary>
/// Remove all styles attributtes that don`t have a value. For ex. style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin: 0"
/// => style="font-family:Calibri,Arial,Helve... | mit | C# |
288231d025ca4ac207979e3ea907535c7ca75e22 | Use ArgumentNullException.ThrowIfNull() | martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site | src/LondonTravel.Site/Extensions/IHtmlHelperExtensions.cs | src/LondonTravel.Site/Extensions/IHtmlHelperExtensions.cs | // Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
using Microsoft.AspNetCore.Mvc.Rendering;
namespace MartinCostello.LondonTravel.Site.Extensions;
/// <summary>
/// A class containing extension... | // Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
using Microsoft.AspNetCore.Mvc.Rendering;
namespace MartinCostello.LondonTravel.Site.Extensions;
/// <summary>
/// A class containing extension... | apache-2.0 | C# |
71e1eac9ab00b70ee0c86e9c329111a6a7e1de9e | Add UserIDFromDeployedItem and UserIDsFromBuildingPrivilege - Courtesy of @strykes aka Reneb | MSylvia/Oxide,bawNg/Oxide,Nogrod/Oxide-2,Visagalis/Oxide,Nogrod/Oxide-2,MSylvia/Oxide,LaserHydra/Oxide,LaserHydra/Oxide,Visagalis/Oxide,bawNg/Oxide,ApocDev/Oxide,ApocDev/Oxide | Oxide.Ext.Rust/Libraries/Rust.cs | Oxide.Ext.Rust/Libraries/Rust.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Oxide.Core.Libraries;
using Oxide.Core.Plugins;
namespace Oxide.Rust.Libraries
{
/// <summary>
/// A library containing utility shortcut functions for rust
/// </summary>
public class Rust : Library
{
/// <summary>
... | using System;
using System.Collections.Generic;
using System.Linq;
using Oxide.Core.Libraries;
using Oxide.Core.Plugins;
namespace Oxide.Rust.Libraries
{
/// <summary>
/// A library containing utility shortcut functions for rust
/// </summary>
public class Rust : Library
{
/// <summary>
... | mit | C# |
7bf177ad8ff871939906cc93a4737183276bc8f6 | Add shortcut of canvas width scaling by up/down arrow key | setchi/NotesEditor,setchi/NoteEditor | Assets/Scripts/UI/CanvasWidthScalePresenter.cs | Assets/Scripts/UI/CanvasWidthScalePresenter.cs | using UniRx;
using UniRx.Triggers;
using UnityEngine;
using UnityEngine.UI;
public class CanvasWidthScalePresenter : MonoBehaviour
{
[SerializeField]
CanvasEvents canvasEvents;
[SerializeField]
Slider canvasWidthScaleController;
NotesEditorModel model;
void Awake()
{
model = Note... | using UniRx;
using UnityEngine;
using UnityEngine.UI;
public class CanvasWidthScalePresenter : MonoBehaviour
{
[SerializeField]
CanvasEvents canvasEvents;
[SerializeField]
Slider canvasWidthScaleController;
NotesEditorModel model;
void Awake()
{
model = NotesEditorModel.Instance;... | mit | C# |
4b63a2cf1333386fe4fac385db4a550f2b2dcda1 | indent down | yurii-litvinov/Biblio2015,yurii-litvinov/Biblio2015,yurii-litvinov/Biblio2015 | BibliographicSystem/Views/Account/LogIn.cshtml | BibliographicSystem/Views/Account/LogIn.cshtml | @model BibliographicSystem.Models.LogOnModel
@{
ViewBag.Title = "LogIn";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<br>
<br>
<br>
<br>
<br>
<div class="container">
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-4">
<form class="form-horizontal" method="pos... | @model BibliographicSystem.Models.LogOnModel
@{
ViewBag.Title = "LogIn";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<br>
<br>
<div class="container">
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-4">
<form class="form-horizontal" method="post">
... | apache-2.0 | C# |
aa1b76fff612cb66e75a3c1013642d1eafc8a4c5 | Remove InternalsVisibleTo assembly attribute | discomurray/ZedGraph,ZedGraph/ZedGraph,DHMechatronicAG/ZedGraph | source/ZedGraph/Properties/AssemblyInfo.cs | source/ZedGraph/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security;
using System.Resources;
using System;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security;
using System.Resources;
using System;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information... | lgpl-2.1 | C# |
d69e58ae2ce4b874e679f0c5a5574535d5c856d4 | Update WhereBuilder.cs | loresoft/FluentCommand | src/FluentCommand/Query/WhereBuilder.cs | src/FluentCommand/Query/WhereBuilder.cs | using FluentCommand.Query.Generators;
namespace FluentCommand;
public abstract class WhereBuilder<TBuilder> : StatementBuilder<TBuilder>
where TBuilder : WhereBuilder<TBuilder>
{
protected WhereBuilder(IQueryGenerator queryGenerator, List<QueryParameter> parameters, LogicalOperators logicalOperator = Logical... | using FluentCommand.Query.Generators;
namespace FluentCommand;
public abstract class WhereBuilder<TBuilder> : StatementBuilder<TBuilder>
where TBuilder : WhereBuilder<TBuilder>
{
protected WhereBuilder(IQueryGenerator queryGenerator, List<QueryParameter> parameters, LogicalOperators logicalOperator = Logical... | mit | C# |
0e9ae93af1e528635294dcf5353c0854fb214431 | Fix unit tests | famoser/FexCompiler | Famoser.FexCompiler.Test/Helpers/TestHelper.cs | Famoser.FexCompiler.Test/Helpers/TestHelper.cs | using System.Collections.Generic;
using System.IO;
using System.Reflection;
using Famoser.FexCompiler.Models;
namespace Famoser.FexCompiler.Test.Helpers
{
class TestHelper
{
public static string GetInputFolderPath()
{
var basePath = Path.GetDirectoryName(Assembly.GetExecutingAssemb... | using System.IO;
using System.Reflection;
using Famoser.FexCompiler.Models;
namespace Famoser.FexCompiler.Test.Helpers
{
class TestHelper
{
public static string GetInputFolderPath()
{
var basePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
return... | mit | C# |
77e07e9b091448ce7540471f27a15d6b3af718de | Add IsSolid property for block | lupidan/Tetris | Assets/Scripts/Block.cs | Assets/Scripts/Block.cs | using UnityEngine;
namespace Tetris
{
public class Block : MonoBehaviour
{
public bool IsSolid = true;
public Color Color
{
get { return _spriteRenderer.color; }
set { _spriteRenderer.color = value; }
}
private SpriteRenderer _spriteRend... | using UnityEngine;
namespace Tetris
{
public class Block : MonoBehaviour
{
public Color Color
{
get { return _spriteRenderer.color; }
set { _spriteRenderer.color = value; }
}
private SpriteRenderer _spriteRenderer;
private void Awake()
{... | mit | C# |
cae1a3780239eeece87d858ce150431395abca5c | call feed url without params | jgraber/atom_exchange,jgraber/atom_exchange,jgraber/atom_exchange | AtomConsumer/Program.cs | AtomConsumer/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace AtomConsumer
{
class Program
{
static void Main(string[] args)
{
var feedUrl = "http://localhost:76... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace AtomConsumer
{
class Program
{
static void Main(string[] args)
{
var feedUrl = "http://localhost:76... | apache-2.0 | C# |
eba54cc40b242404a2c380dd9105922139f1b912 | Fix LSP client dispose bug in tests (#1212) | PowerShell/PowerShellEditorServices | test/PowerShellEditorServices.Test.E2E/LSPTestsFixures.cs | test/PowerShellEditorServices.Test.E2E/LSPTestsFixures.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json.Linq;
using OmniSharp.Extensions.LanguageServer.Client;
using OmniSharp.Extensions.LanguageServer.Client.Processes;
using OmniSharp.Extensions.Lang... | using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json.Linq;
using OmniSharp.Extensions.LanguageServer.Client;
using OmniSharp.Extensions.LanguageServer.Client.Processes;
using OmniSharp.Extensions.LanguageServer.Pro... | mit | C# |
859228a1d15a9cc2b62bab82ea9941ef3fa0a465 | Update WebGL AssemblyVersion | e-lefort/Frameworks,bridgedotnet/Frameworks,e-lefort/Frameworks,e-lefort/Frameworks | WebGL/Properties/AssemblyInfo.cs | WebGL/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Bridge.WebGL")]
[assembly: AssemblyProduct("Bridge.WebGL")]
[assembly: AssemblyDescription("WebGL (Web Graphics Library) version 1.x bindings for Bridge.NET.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Ob... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Bridge.WebGL")]
[assembly: AssemblyProduct("Bridge.WebGL")]
[assembly: AssemblyDescription("WebGL (Web Graphics Library) version 1.x bindings for Bridge.NET.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Ob... | apache-2.0 | C# |
28dfd90ad636a94147bd75559a5d75df0e66f968 | Add OldPassword property to the User entity in order to be able to change the password. | devicehive/devicehive-.net,devicehive/devicehive-.net,devicehive/devicehive-.net | src/Client/DeviceHive.Client/Model/User.cs | src/Client/DeviceHive.Client/Model/User.cs | using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
namespace DeviceHive.Client
{
/// <summary>
/// Represents enumeration of user roles.
/// </summary>
public enum UserRole
{
/// <summary>
/// Administrator role.
/// </summary>
Administrator... | using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
namespace DeviceHive.Client
{
/// <summary>
/// Represents enumeration of user roles.
/// </summary>
public enum UserRole
{
/// <summary>
/// Administrator role.
/// </summary>
Administrator... | mit | C# |
3e16f0b92d20bb979cdfb59865e3ac929aff8e79 | Update Program.cs | AlonAmsalem/NLoad | src/Examples/NLoad.Examples.ConsoleApplication/Program.cs | src/Examples/NLoad.Examples.ConsoleApplication/Program.cs | using System;
using System.Threading;
namespace NLoad.Examples.ConsoleApplication
{
class Program
{
static void Main()
{
var loadTest = NLoad.Test<MyTest>()
.WithNumberOfThreads(10)
.WithDurationOf(TimeSpan.Fro... | using System;
using System.Threading;
namespace NLoad.Examples.ConsoleApplication
{
class Program
{
static void Main()
{
var loadTest = NLoad.Test<MyTest>()
.WithNumberOfThreads(10)
.WithDurationOf(TimeSpan.Fro... | apache-2.0 | C# |
19bc458f43e1dba93461193b02adeec1045c0660 | Change DownloadDataFlow to support Files only. | ComputerWorkware/TeamCityApi | src/TeamCityConsole/DownloadDataFlow.cs | src/TeamCityConsole/DownloadDataFlow.cs | using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Threading.Tasks.Dataflow;
using NLog;
using TeamCityConsole.Commands;
using TeamCityConsole.Utils;
using File = TeamCityApi.Domain.File;
namespace TeamCityConsole
{
public interface IDownloadDataFlow
... | using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Threading.Tasks.Dataflow;
using NLog;
using TeamCityConsole.Commands;
using TeamCityConsole.Utils;
using File = TeamCityApi.Domain.File;
namespace TeamCityConsole
{
public interface IDownloadDataFlow
... | mit | C# |
6d8826dcc143c73d1d9cbb38c480a8b163b94e6b | Make MartenIgnore public | mysticmind/marten,mysticmind/marten,ericgreenmix/marten,ericgreenmix/marten,ericgreenmix/marten,mysticmind/marten,ericgreenmix/marten,mysticmind/marten | src/Marten/Events/CodeGeneration/MartenIgnoreAttribute.cs | src/Marten/Events/CodeGeneration/MartenIgnoreAttribute.cs | using System;
namespace Marten.Events.CodeGeneration
{
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Field | AttributeTargets.Property)]
public class MartenIgnoreAttribute: Attribute
{
}
}
| using System;
namespace Marten.Events.CodeGeneration
{
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Field | AttributeTargets.Property)]
internal class MartenIgnoreAttribute: Attribute
{
}
}
| mit | C# |
d2d3be78b614427c7c80f1426c5fceb8772025a5 | remove call out of collector ctor | mdsol/Medidata.ZipkinTracerModule | src/Medidata.ZipkinTracer.Core.Collector/SpanCollector.cs | src/Medidata.ZipkinTracer.Core.Collector/SpanCollector.cs | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Thrift;
namespace Medidata.ZipkinTracer.Core.Collector
{
public class SpanCollector
{
private const int MAX_QUEUE_SIZE = 100;
internal ... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Thrift;
namespace Medidata.ZipkinTracer.Core.Collector
{
public class SpanCollector
{
private const int MAX_QUEUE_SIZE = 100;
internal ... | mit | C# |
0f08fd3e728591edf3e1b248145366aefaf93515 | Make ApplicationNavigatorForm working. | maraf/Money,maraf/Money,maraf/Money | src/Money.UI/Views/Navigation/ApplicationNavigatorForm.cs | src/Money.UI/Views/Navigation/ApplicationNavigatorForm.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Controls;
namespace Money.Views.Navigation
{
internal class ApplicationNavigatorForm : PageNavigatorForm
{
private readonly Template template;
public Appli... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Controls;
namespace Money.Views.Navigation
{
internal class ApplicationNavigatorForm : PageNavigatorForm
{
private readonly Template template;
public Appli... | apache-2.0 | C# |
636fb96d013861c0cdc2e272f18b7467877e7cc9 | Add space for readability in the exception messages. | SQLStreamStore/SQLStreamStore,damianh/Cedar.EventStore,SQLStreamStore/SQLStreamStore | src/SqlStreamStore/Infrastructure/EnsureThatExtensions.cs | src/SqlStreamStore/Infrastructure/EnsureThatExtensions.cs | namespace SqlStreamStore.Infrastructure
{
using SqlStreamStore.Imports.Ensure.That;
internal static class EnsureThatExtensions
{
internal static Param<string> DoesNotStartWith(this Param<string> param, string s)
{
if (!Ensure.IsActive)
{
return param... | namespace SqlStreamStore.Infrastructure
{
using SqlStreamStore.Imports.Ensure.That;
internal static class EnsureThatExtensions
{
internal static Param<string> DoesNotStartWith(this Param<string> param, string s)
{
if (!Ensure.IsActive)
{
return param... | mit | C# |
44ddf7acef2a13d47b282f32a59b8a44d17eae13 | Add extra check (#12075) | robertjf/Umbraco-CMS,abryukhov/Umbraco-CMS,marcemarc/Umbraco-CMS,KevinJump/Umbraco-CMS,dawoe/Umbraco-CMS,robertjf/Umbraco-CMS,umbraco/Umbraco-CMS,KevinJump/Umbraco-CMS,marcemarc/Umbraco-CMS,umbraco/Umbraco-CMS,abryukhov/Umbraco-CMS,dawoe/Umbraco-CMS,robertjf/Umbraco-CMS,arknu/Umbraco-CMS,umbraco/Umbraco-CMS,abjerner/Um... | src/Umbraco.Web.Common/Extensions/ControllerExtensions.cs | src/Umbraco.Web.Common/Extensions/ControllerExtensions.cs | using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Mvc;
namespace Umbraco.Extensions
{
public static class ControllerExtensions
{
/// <summary>
/// Runs the authentication process
/// </summary>
/// <param name="con... | using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Mvc;
namespace Umbraco.Extensions
{
public static class ControllerExtensions
{
/// <summary>
/// Runs the authentication process
/// </summary>
/// <param name="con... | mit | C# |
7acdba4975f61b4cd82286da623fbf9b6b1a00ce | fix conventions | AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp | src/AngleSharp/Dom/Events/ErrorEvent.cs | src/AngleSharp/Dom/Events/ErrorEvent.cs | namespace AngleSharp.Dom.Events
{
using AngleSharp.Attributes;
using System;
/// <summary>
/// Represents the error event arguments.
/// </summary>
[DomName("ErrorEvent")]
public class ErrorEvent : Event
{
/// <summary>
/// Gets the message describing the error.
... | namespace AngleSharp.Dom.Events
{
using AngleSharp.Attributes;
using System;
/// <summary>
/// Represents the error event arguments.
/// </summary>
[DomName("ErrorEvent")]
public class ErrorEvent : Event
{
/// <summary>
/// Gets the message describing the error.
... | mit | C# |
7301a31737cc89ad7fb1cc5f7002d228c52459f6 | Handle null content | civicsource/http,civicsource/webapi-utils | http/GZipCompressingHandler.cs | http/GZipCompressingHandler.cs | using System;
using System.Collections.Immutable;
using System.IO;
using System.IO.Compression;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace Archon.Http
{
/// <summary>
/// GZip-compresses requests to save bytes over the wire.
/// </summary>
public seale... | using System;
using System.Collections.Immutable;
using System.IO;
using System.IO.Compression;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace Archon.Http
{
/// <summary>
/// GZip-compresses requests to save bytes over the wire.
/// </summary>
public seale... | mit | C# |
f6290f0b8acc14b3cc1fb2e5a3f0bef7b98d16a1 | Update assembly version | ironfede/openmcdf | sources/OpenMcdf/Properties/AssemblyInfo.cs | sources/OpenMcdf/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("Op... | 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("Op... | mpl-2.0 | C# |
2c04a2e0267c49c3d24c601c2064d036c9b30ed8 | Declare Parser as a delegate instead of an interface, temporarily causing many build errors. | plioi/parsley | src/Parsley/Parser.cs | src/Parsley/Parser.cs | namespace Parsley;
public delegate Reply<T> Parser<out T>(Text input);
| namespace Parsley;
public interface Parser<out T>
{
Reply<T> Parse(Text input);
}
| mit | C# |
e4d03eed39bcdf9b071ffaafba11e081be090548 | build fix | ElectronNET/Electron.NET,ElectronNET/Electron.NET,ElectronNET/Electron.NET,ElectronNET/Electron.NET,ElectronNET/Electron.NET | ElectronNET.WebApp/Controllers/ShortcutsController.cs | ElectronNET.WebApp/Controllers/ShortcutsController.cs | using ElectronNET.API;
using ElectronNET.API.Entities;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
namespace ElectronNET.WebApp.Controllers
{
public class ShortcutsController : Controller
{
public IActionResult Index()
{
if (HybridSupport.IsElectronActive)
... | using ElectronNET.API;
using ElectronNET.API.Entities;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
namespace ElectronNET.WebApp.Controllers
{
public class ShortcutsController : Controller
{
public IActionResult Index()
{
if (HybridSupport.IsElectronActive)
... | mit | C# |
6253b5529f2f0e60a4c6c3eb97b6b8ba770dc410 | Update API version response | archrival/Resonance | src/Resonance.Subsonic/SubsonicConstants.cs | src/Resonance.Subsonic/SubsonicConstants.cs | namespace Resonance.SubsonicCompat
{
public static class SubsonicConstants
{
public const string AlbumNotFound = "Album not found.";
public const string ArtistNotFound = "Artist not found.";
public const string AuthenticationContext = "AuthenticationContext";
public const string... | namespace Resonance.SubsonicCompat
{
public static class SubsonicConstants
{
public const string AlbumNotFound = "Album not found.";
public const string ArtistNotFound = "Artist not found.";
public const string AuthenticationContext = "AuthenticationContext";
public const string DirectoryNotFound = "Director... | apache-2.0 | C# |
039592a9e146f2f21b6f81cb27a2d6bf4362ad74 | Initialize AppCommand with an IAppHarborClient | appharbor/appharbor-cli | src/AppHarbor/Commands/AppCommand.cs | src/AppHarbor/Commands/AppCommand.cs | using System;
namespace AppHarbor.Commands
{
public class AppCommand : ICommand
{
private readonly IAppHarborClient _client;
public AppCommand(IAppHarborClient appharborClient)
{
_client = appharborClient;
}
public void Execute(string[] arguments)
{
throw new NotImplementedException();
}
}
}
| using System;
namespace AppHarbor.Commands
{
public class AppCommand : ICommand
{
public void Execute(string[] arguments)
{
throw new NotImplementedException();
}
}
}
| mit | C# |
b8cfbde619949d71f48eb4c7a2942ed6a2881259 | Make IStatefulJob compilee time error with Obsolete tag as it really isn't used anymore | AlonAmsalem/quartznet,quartznet/quartznet,sean-gilliam/quartznet,quartznet/quartznet,quartznet/quartznet,zhangjunhao/quartznet,quartznet/quartznet,xlgwr/quartznet,RafalSladek/quartznet,huoxudong125/quartznet,sean-gilliam/quartznet,AndreGleichner/quartznet,quartznet/quartznet,andyshao/quartznet,sean-gilliam/quartznet,se... | src/Quartz/IStatefulJob.cs | src/Quartz/IStatefulJob.cs | #region License
/*
* All content copyright Terracotta, Inc., unless otherwise indicated. 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 copy
* of the License at
*
* http://www.ap... | #region License
/*
* All content copyright Terracotta, Inc., unless otherwise indicated. 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 copy
* of the License at
*
* http://www.ap... | apache-2.0 | C# |
b14f2de281a208bf0b6d787fab4d9e12238fa96f | Enable logging | boumenot/Grobid.NET | test/Grobid.Test/GrobidTest.cs | test/Grobid.Test/GrobidTest.cs | using System;
using System.IO;
using ApprovalTests;
using ApprovalTests.Reporters;
using FluentAssertions;
using Xunit;
using Grobid.NET;
using org.apache.log4j;
using org.grobid.core;
namespace Grobid.Test
{
[UseReporter(typeof(DiffReporter))]
public class GrobidTest
{
static G... | using System;
using System.IO;
using ApprovalTests;
using ApprovalTests.Reporters;
using FluentAssertions;
using Xunit;
using Grobid.NET;
using org.apache.log4j;
using org.grobid.core;
namespace Grobid.Test
{
[UseReporter(typeof(DiffReporter))]
public class GrobidTest
{
static G... | apache-2.0 | C# |
425b8d5ba1e308da2714c133893d9433f42f1700 | Update test | sakapon/Samples-2017 | DrawingSample/BitmapScaleConsole/Program.cs | DrawingSample/BitmapScaleConsole/Program.cs | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.IO;
using System.Linq;
namespace BitmapScaleConsole
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Press [Enter] key to start.");
... | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
namespace BitmapScaleConsole
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("... | mit | C# |
87bc7d0a7a15cbd9808a35bebff1ffb494db1cbe | Reorder enum values | bartlomiejwolk/ActionTrigger | Enums/Mode.cs | Enums/Mode.cs | namespace ActionTrigger {
/// <summary>
/// A multi-purpose script which causes an action to occur on trigger enter.
/// </summary>
public enum Mode {
UnityEvent, // Invoke UnityAction
Message, // Just broadcast the action on to the target
Enable, // Enable a component
... | namespace ActionTrigger {
/// <summary>
/// A multi-purpose script which causes an action to occur on trigger enter.
/// </summary>
public enum Mode {
UnityEvent, // Invoke UnityAction
Replace, // replace target with source
Activate, // Activate the target GameObject
E... | mit | C# |
469b13441b70b408e03f8c372e9888794d436525 | Fix mistake | UselessToucan/osu,naoey/osu,UselessToucan/osu,EVAST9919/osu,peppy/osu-new,johnneijzen/osu,DrabWeb/osu,DrabWeb/osu,smoogipoo/osu,smoogipoo/osu,smoogipooo/osu,NeoAdonis/osu,Nabile-Rahmani/osu,Frontear/osuKyzer,ZLima12/osu,ppy/osu,peppy/osu,johnneijzen/osu,EVAST9919/osu,ppy/osu,2yangk23/osu,ppy/osu,DrabWeb/osu,UselessTouc... | osu.Game/Beatmaps/DifficultyCalculator.cs | osu.Game/Beatmaps/DifficultyCalculator.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 osu.Game.Rulesets.Objects;
using System.Collections.Generic;
using osu.Game.Rulesets.Mods;
using osu.Framework.Timing;
using System.Linq;
using osu.Framew... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Rulesets.Objects;
using System.Collections.Generic;
using osu.Game.Rulesets.Mods;
using osu.Framework.Timing;
using System.Linq;
using osu.Framew... | mit | C# |
ca08fce5b7438401f42623da86acae90c0ee09ea | Work around problem in casting int to double. | SuperJMN/Avalonia,grokys/Perspex,wieslawsoltes/Perspex,SuperJMN/Avalonia,OronDF343/Avalonia,jkoritzinsky/Avalonia,Perspex/Perspex,SuperJMN/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,wieslawsoltes/Perspex,OronDF343/Avalonia,jkoritzinsky/Avalonia,kekekeks/Perspex,wieslawsoltes/Perspex,bbqchickenrobot/Perspex,Aval... | Perspex.Themes.Default/GridSplitterStyle.cs | Perspex.Themes.Default/GridSplitterStyle.cs | // -----------------------------------------------------------------------
// <copyright file="GridSplitterStyle.cs" company="Steven Kirk">
// Copyright 2014 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.T... | // -----------------------------------------------------------------------
// <copyright file="GridSplitterStyle.cs" company="Steven Kirk">
// Copyright 2014 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.T... | mit | C# |
2b6caf9b650fd5cfc5af4e168d1d794322ceb4a8 | Fix duplicate code in setting default logic | ppy/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,ppy/osu,peppy/osu,UselessToucan/osu,peppy/osu-new,NeoAdonis/osu,peppy/osu,ppy/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu | osu.Game/Configuration/SessionStatics.cs | osu.Game/Configuration/SessionStatics.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Game.Graphics.UserInterface;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Overlays;
namespace osu.Game.Configur... | // 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.Graphics.UserInterface;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Overlays;
namespace osu.Game.Configuration
{
/// <summary>
/... | mit | C# |
b6b050d5e9662155924c3dfa5c41a22a7fbeb1cd | Add sample path to the lookup names | ZLima12/osu,peppy/osu,NeoAdonis/osu,johnneijzen/osu,johnneijzen/osu,ppy/osu,peppy/osu,2yangk23/osu,smoogipoo/osu,UselessToucan/osu,smoogipooo/osu,NeoAdonis/osu,UselessToucan/osu,EVAST9919/osu,2yangk23/osu,peppy/osu,NeoAdonis/osu,peppy/osu-new,EVAST9919/osu,ZLima12/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,ppy/osu,smo... | osu.Game/Storyboards/StoryboardSample.cs | osu.Game/Storyboards/StoryboardSample.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.Collections.Generic;
using osu.Framework.Graphics;
using osu.Game.Audio;
using osu.Game.Storyboards.Drawables;
namespace osu.Game.Storyboards
{
public ... | // 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.Collections.Generic;
using osu.Framework.Graphics;
using osu.Game.Audio;
using osu.Game.Storyboards.Drawables;
namespace osu.Game.Storyboards
{
public ... | mit | C# |
834e316f7a51971b87880a0b148c2f54f11f9706 | Correct the spelling of 'EnableEndpointRouting' (#13655) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Analyzers/Analyzers/src/StartupAnalyzer.Diagnostics.cs | src/Analyzers/Analyzers/src/StartupAnalyzer.Diagnostics.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.Collections.Immutable;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
namespace Microsoft.AspNetCore.Analyzers
{... | // 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.Collections.Immutable;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
namespace Microsoft.AspNetCore.Analyzers
{... | apache-2.0 | C# |
d60e2ae5d84ea8004e1adcd9a6dfc6d7008a2b46 | Update UaxEmailUrlTokenizer.cs | LeoYao/elasticsearch-net,mac2000/elasticsearch-net,junlapong/elasticsearch-net,KodrAus/elasticsearch-net,jonyadamit/elasticsearch-net,CSGOpenSource/elasticsearch-net,adam-mccoy/elasticsearch-net,mac2000/elasticsearch-net,adam-mccoy/elasticsearch-net,abibell/elasticsearch-net,TheFireCookie/elasticsearch-net,Grastveit/NE... | src/Nest/Domain/Analysis/Tokenizer/UaxEmailUrlTokenizer.cs | src/Nest/Domain/Analysis/Tokenizer/UaxEmailUrlTokenizer.cs | using System.Collections.Generic;
using Newtonsoft.Json;
namespace Nest
{
/// <summary>
/// A tokenizer of type uax_url_email which works exactly like the standard tokenizer, but tokenizes emails and urls as single tokens
/// </summary>
public class UaxEmailUrlTokenizer : TokenizerBase
{
public UaxEmailUrlT... | using System.Collections.Generic;
using Newtonsoft.Json;
namespace Nest
{
/// <summary>
/// A tokenizer of type uax_url_email which works exactly like the standard tokenizer, but tokenizes emails and urls as single tokens
/// </summary>
public class UaxEmailUrlTokenizer : TokenizerBase
{
public UaxEmailUrlT... | apache-2.0 | C# |
c3499d7faa75a5c266373a1f3290473d005e1acb | Remove irrelevant comment. | bardoloi/fixie,JakeGinnivan/fixie,EliotJones/fixie,bardoloi/fixie,Duohong/fixie,KevM/fixie,fixie/fixie | src/Fixie/Behaviors/CaseBehavior.cs | src/Fixie/Behaviors/CaseBehavior.cs | namespace Fixie.Behaviors
{
public interface CaseBehavior
{
void Execute(Case @case, object instance);
}
}
| namespace Fixie.Behaviors
{
public interface CaseBehavior
{
void Execute(Case @case, object instance); //comment to demo teamcity
}
}
| mit | C# |
0ddc0a7adb67db88a3fc3e978998f0dcf2f18619 | edit megacli cs | lesovsky/uber-scripts,lesovsky/uber-scripts,lesovsky/uber-scripts | cheatsheets/megacli.cs | cheatsheets/megacli.cs | MegaCli is a RAID utility For LSI MegaRAID Controllers
LD - LogicalDrive
PD - PhysicalDrive
BBU - Backup Battery Unit
# Get Info
megacli adpcount # get controllers count
megacli adpallinfo aall # get information about all adapters
megacli adpbbucmd aall # get BBU information
megacli ldi... | MegaCli is a RAID utility For LSI MegaRAID Controllers
LD - LogicalDrive
PD - PhysicalDrive
BBU - Backup Battery Unit
megacli adpcount # get controllers count
megacli adpallinfo aall # get information about all adapters
megacli adpbbucmd aall # get BBU information
megacli ldinfo lall aa... | mit | C# |
047eb76d43ffa0c9da45a1c66251b926ba97fa80 | convert datetime field values to utf | kreeben/resin,kreeben/resin | src/ResinCore/Field.cs | src/ResinCore/Field.cs | using System;
using System.Diagnostics;
namespace Resin
{
[DebuggerDisplay("{Value}")]
public struct Field
{
private readonly string _value;
public string Value { get { return _value; } }
public string Key { get; private set; }
public bool Store { get; private set... | using System;
using System.Diagnostics;
namespace Resin
{
[DebuggerDisplay("{Value}")]
public struct Field
{
private readonly string _value;
public string Value { get { return _value; } }
public string Key { get; private set; }
public bool Store { get; private set... | mit | C# |
75be2e0c9a19a1e7042c377391dfdae29863f6c0 | Add clear on mvbaction | markjackmilian/MVB | Mvb/Mvb/Mvb.Core/Components/BinderActions/IBinderActions.cs | Mvb/Mvb/Mvb.Core/Components/BinderActions/IBinderActions.cs | using System;
namespace Mvb.Core.Components.BinderActions
{
public interface IBinderActions
{
/// <summary>
/// Add Action
/// </summary>
/// <param name="subscriber"></param>
/// <param name="action"></param>
void AddAction(object subscriber,Action action);
... | using System;
namespace Mvb.Core.Components.BinderActions
{
public interface IBinderActions
{
/// <summary>
/// Add Action
/// </summary>
/// <param name="subscriber"></param>
/// <param name="action"></param>
void AddAction(object subscriber,Action action);
... | apache-2.0 | C# |
22147347b2751868660d5c95a6b5eec956283b9f | Use available ToString method | FlorianRappl/AngleSharp,FlorianRappl/AngleSharp,FlorianRappl/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,zedr0n/AngleSharp.Local,FlorianRappl/AngleSharp,zedr0n/AngleSharp.Local,Livven/AngleSharp,Livven/AngleSharp,zedr0n/AngleSharp.Local,AngleSharp/AngleSharp,Livven... | AngleSharp/Parser/ParseErrorEventArgs.cs | AngleSharp/Parser/ParseErrorEventArgs.cs | namespace AngleSharp.Parser
{
using System;
using System.Diagnostics;
/// <summary>
/// The ParseErrorEventArgs package.
/// </summary>
[DebuggerStepThrough]
public sealed class ParseErrorEventArgs : EventArgs
{
#region ctor
/// <summary>
/// Creates a new Erro... | namespace AngleSharp.Parser
{
using System;
using System.Diagnostics;
/// <summary>
/// The ParseErrorEventArgs package.
/// </summary>
[DebuggerStepThrough]
public sealed class ParseErrorEventArgs : EventArgs
{
#region ctor
/// <summary>
/// Creates a new Erro... | mit | C# |
b2f2c5b0272b1ba9779a8ff32cdd869422579f7b | Revert "Only test that the program compiles until we can parse top-level arrays" | quicktype/quicktype,quicktype/quicktype,quicktype/quicktype,quicktype/quicktype,quicktype/quicktype | test/csharp/Program.cs | test/csharp/Program.cs | using System;
using System.IO;
namespace test
{
class Program
{
static void Main(string[] args)
{
var path = args[0];
var json = File.ReadAllText(path);
var qt = QuickType.TopLevel.FromJson(json);
}
}
}
| using System;
using System.IO;
namespace test
{
class Program
{
static void Main(string[] args)
{
var path = args[0];
// var json = File.ReadAllText(path);
// var qt = QuickType.TopLevel.FromJson(json);
}
}
}
| apache-2.0 | C# |
b7dda3ab96e92175b4a304c528a18232aefa9ee7 | Remove typo | AArnott/pinvoke,vbfox/pinvoke,jmelosegui/pinvoke | src/User32.Tests/User32Facts.cs | src/User32.Tests/User32Facts.cs | // Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runti... | // Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runti... | mit | C# |
9478394bc69936ec12ddd7d71c1dc4e5543f1a76 | Change setup cameras config temporarily | intel-cornellcup/mini-modbot-simulation,intel-cornellcup/mini-modbot-simulation,intel-cornellcup/mini-modbot-simulation | ModbotSim/Assets/Scripts/SetupCameras.cs | ModbotSim/Assets/Scripts/SetupCameras.cs | using UnityEngine;
using System.Collections;
public class SetupCameras : MonoBehaviour {
public int numPlayers = 2;
// Use this for initialization
void Start () {
GameObject[] cameraObjects = GameObject.FindGameObjectsWithTag ("Camera");
GameObject[] karts = GameObject.FindGameObjectsWithTag ("kart");
Camera... | using UnityEngine;
using System.Collections;
public class SetupCameras : MonoBehaviour {
public int numPlayers = 2;
// Use this for initialization
void Start () {
GameObject[] cameraObjects = GameObject.FindGameObjectsWithTag ("Camera");
GameObject[] karts = GameObject.FindGameObjectsWithTag ("kart");
Camera... | mit | C# |
231e70163299e0b043e501e5a693a2f26a57ef55 | simplify the testapp | memleaks/SuperSocket,kerryjiang/SuperSocket,kerryjiang/SuperSocket | test/TestApp/Program.cs | test/TestApp/Program.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using SuperSocket;
using SuperSocket... | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using SuperSocket;
using SuperSocket... | apache-2.0 | C# |
7343b5b4c200c7f4e9cdbcbed38323132ffc3c2c | Rename <T> with <TValue> | tainicom/XNALibrary | Source/DataStructures/Collections/Set.cs | Source/DataStructures/Collections/Set.cs | #region License
// Copyright 2015 Kastellanos Nikolaos
//
// 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 requi... | #region License
// Copyright 2015 Kastellanos Nikolaos
//
// 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 requi... | apache-2.0 | C# |
a4877382ca62b09d421836f123955567c73f6988 | Change AssemblyCopyright from ACAXLabs to ACAExpress | acaxlabs/LibSlyBroadcast | LibSlyBroadcast/Properties/AssemblyInfo.cs | LibSlyBroadcast/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("LibSlyBroadcast")]
[assembly: AssemblyProduct("LibSlyBroadcast")]
[assembly: AssemblyCopyright("Copyright © ACAExpress.com, Inc 2016")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileV... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("LibSlyBroadcast")]
[assembly: AssemblyProduct("LibSlyBroadcast")]
[assembly: AssemblyCopyright("Copyright © ACAXLabs 2016")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0... | mit | C# |
10cde01e4342a6e4666ba843d3d2dfae4d587bda | Update LinkedListDictionary.cs | efruchter/UnityUtilities | MiscDataStructures/LinkedListDictionary.cs | MiscDataStructures/LinkedListDictionary.cs | using System.Collections;
using System.Collections.Generic;
/// <summary>
/// LinkedList/Dictionary combo for constant time add/remove/contains. Memory usage is higher as expected.
/// -kazoo
/// </summary>
/// <typeparam name="TK">key value type. It is recomended that this be "int", for speed purposes.</typeparam>
//... | using System.Collections;
using System.Collections.Generic;
namespace System.Collections.Generic
{
/// <summary>
/// LinkedList/Dictionary combo for constant time add/remove/contains. Memory usage is higher as expected.
/// -kazoo
/// </summary>
/// <typeparam name="TK">key value type. It is recomended that this ... | mit | C# |
cbeff2ad673c638c30571fdc137c3554aab2249c | Add hit count on Index page | KuduApps/Dev14_Net46_Mvc5,KuduApps/Dev14_Net46_Mvc5,KuduApps/Dev14_Net46_Mvc5 | Dev14_Net46_Mvc5/Views/Home/Index.cshtml | Dev14_Net46_Mvc5/Views/Home/Index.cshtml | @functions {
static int count;
}
@{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<h1>ASP.NET</h1>
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
<p><a href="http://asp.net" class="btn btn-primary btn-... | @{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<h1>ASP.NET</h1>
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
<p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more »</a></p>
</div>
... | apache-2.0 | C# |
57cdbaee7cf2c1cf23a10cb8094400a8de56d02a | Fix for script ordering being bust | mcintyre321/Noodles,mcintyre321/Noodles | Noodles.AspMvc/Helpers/IncludesHelper.cs | Noodles.AspMvc/Helpers/IncludesHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Noodles.AspMvc.Models.Layout;
namespace Noodles.AspMvc.Helpers
{
public static class IncludesHelper
{
public static void RegisterScripts(this LayoutVm layout)
{
layout.HeadBundle.ScriptInclud... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Noodles.AspMvc.Models.Layout;
namespace Noodles.AspMvc.Helpers
{
public static class IncludesHelper
{
public static void RegisterScripts(this LayoutVm layout)
{
layout.HeadBundle.ScriptInclud... | mit | C# |
4c79750a8fa805a73027fbe0cb0bdb7e621a8ca6 | Update to v0.1.1.0 | WatcherWhale/Netflix-Shakti.net | NetflixShakti/Properties/AssemblyInfo.cs | NetflixShakti/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("Net... | 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("Net... | mit | C# |
04be8a80dcfc394e44d3ea7eff2ec156642448e8 | Build and publish prerelease package | RockFramework/Rock.Encryption | Rock.Encryption/Properties/AssemblyInfo.cs | Rock.Encryption/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("Ro... | 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("Ro... | mit | C# |
b135bc94325d223bf717de3a7a5e008b32802b9d | Return the values of variables in the program as well as variables in the query | Logicalshift/Reason | LogicalShift.Reason/BasicUnification.cs | LogicalShift.Reason/BasicUnification.cs | using LogicalShift.Reason.Api;
using LogicalShift.Reason.Unification;
using System;
using System.Collections.Generic;
using System.Linq;
namespace LogicalShift.Reason
{
/// <summary>
/// Helper methods for performing unification
/// </summary>
public static class BasicUnification
{
/// <su... | using LogicalShift.Reason.Api;
using LogicalShift.Reason.Unification;
using System;
using System.Collections.Generic;
using System.Linq;
namespace LogicalShift.Reason
{
/// <summary>
/// Helper methods for performing unification
/// </summary>
public static class BasicUnification
{
/// <su... | apache-2.0 | C# |
de8961567afcbdf3254608edc9e3f50942e4036a | Order change | xonaki/NetCoreCMS,OnnoRokomSoftware/NetCoreCMS,xonaki/NetCoreCMS,xonaki/NetCoreCMS,xonaki/NetCoreCMS,OnnoRokomSoftware/NetCoreCMS,xonaki/NetCoreCMS,xonaki/NetCoreCMS,OnnoRokomSoftware/NetCoreCMS,OnnoRokomSoftware/NetCoreCMS,OnnoRokomSoftware/NetCoreCMS | NetCoreCMS.Web/Themes/Default/Shared/_ViewImports.cshtml | NetCoreCMS.Web/Themes/Default/Shared/_ViewImports.cshtml | @inherits NccRazorPage<TModel>
@using NetCoreCMS.Framework.Core
@using NetCoreCMS.Framework.Core.Models
@using NetCoreCMS.Framework.Core.Mvc.Views
@using NetCoreCMS.Framework.Core.Mvc.Views.Extensions
@using NetCoreCMS.Framework.Utility
@using NetCoreCMS.Framework.Modules
@using NetCoreCMS.Framework.Modules.Widgets
@... | @inherits NccRazorPage<TModel>
@using NetCoreCMS.Framework.Themes
@using NetCoreCMS.Framework.Core
@using Microsoft.AspNetCore.Identity
@using NetCoreCMS.Framework.Utility
@using NetCoreCMS.Framework.Modules
@using NetCoreCMS.Framework.Modules.Widgets
@using NetCoreCMS.Framework.Core.Models
@using NetCoreCMS.Framewor... | bsd-3-clause | C# |
eab466695fcaa52c59e2c1750b18a5ae787f4bb4 | Use JsonSerializer.SerializeToDocument | carbon/Amazon | src/Amazon.Sts/Helpers/RequestHelper.cs | src/Amazon.Sts/Helpers/RequestHelper.cs | using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;
namespace Amazon.Sts;
internal static class StsRequestHelper
{
private static readonly JsonSerializerOptions jso = new() { DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull };
public static D... | using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;
namespace Amazon.Sts;
internal static class StsRequestHelper
{
private static readonly JsonSerializerOptions jso = new() { DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull };
public static D... | mit | C# |
021c988e6008b1fca3cd828c4a2d9dac8c505d13 | fix RdnRmnSd Handler | PipatPosawad/nChronic | src/Chronic/Handlers/RdnRmnSdHandler.cs | src/Chronic/Handlers/RdnRmnSdHandler.cs | using System;
using System.Collections.Generic;
using Chronic.Tags.Repeaters;
using System.Linq;
namespace Chronic.Handlers
{
public class RdnRmnSdHandler : IHandler
{
public Span Handle(IList<Token> tokens, Options options)
{
var month = tokens[1].GetTag<RepeaterMonthNam... | using System;
using System.Collections.Generic;
using Chronic.Tags.Repeaters;
namespace Chronic.Handlers
{
public class RdnRmnSdHandler : IHandler
{
public Span Handle(IList<Token> tokens, Options options)
{
var month = tokens[1].GetTag<RepeaterMonthName>();
v... | mit | C# |
1498f2ddc57ea3546a370e7d26b06f5b9fe43328 | Fix warning | ermau/Gablarski,ermau/Gablarski | src/Gablarski.Tests/AudioFormatTests.cs | src/Gablarski.Tests/AudioFormatTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Gablarski.Audio;
using NUnit.Framework;
namespace Gablarski.Tests
{
[TestFixture]
public class AudioFormatTests
{
[Test]
public void Equals()
{
var one = new AudioFormat (WaveFormatEncoding.LPCM, 2, ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Gablarski.Audio;
using NUnit.Framework;
namespace Gablarski.Tests
{
[TestFixture]
public class AudioFormatTests
{
[Test]
public void Equals()
{
var one = new AudioFormat (WaveFormatEncoding.LPCM, 2, ... | bsd-3-clause | C# |
d2015b2a0df537ca2731b5e680e0a2d51ec8ce48 | Rename Float to FloatField | laicasaane/VFW | Assets/Plugins/Editor/Vexe/GUIs/BaseGUI/Controls/Floats.cs | Assets/Plugins/Editor/Vexe/GUIs/BaseGUI/Controls/Floats.cs | using UnityEngine;
namespace Vexe.Editor.GUIs
{
public abstract partial class BaseGUI
{
public float FloatField(float value)
{
return FloatField(string.Empty, value);
}
public float FloatField(string label, float value)
{
return FloatField(label, value, null);
}
public float FloatField(string l... | using UnityEngine;
namespace Vexe.Editor.GUIs
{
public abstract partial class BaseGUI
{
public float Float(float value)
{
return Float(string.Empty, value);
}
public float Float(string label, float value)
{
return Float(label, value, null);
}
public float Float(string label, string tooltip, fl... | mit | C# |
feba8fe9b391668bbc5b4002877a6bb320b8d9ad | Remove type limit from ReflectionViewModel | evandixon/SkyEditor.Core | SkyEditor.Core/UI/ReflectionViewModel.cs | SkyEditor.Core/UI/ReflectionViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
namespace SkyEditor.Core.UI
{
/// <summary>
/// A view model that can read all public properties
/// </summary>
public class ReflectionViewModel : GenericViewModel
{
public Refle... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
namespace SkyEditor.Core.UI
{
/// <summary>
/// A view model that can read all public properties
/// </summary>
public class ReflectionViewModel : GenericViewModel
{
public Refle... | mit | C# |
85b8981f9dbc7dc85126a7644bc90a3d5c6657eb | Rename the variable in SetActiveAction to something cleaner | mikelovesrobots/unity3d-trigger-action-pattern | TriggerAction/Actions/SetActiveAction.cs | TriggerAction/Actions/SetActiveAction.cs | using UnityEngine;
using System.Collections;
public class SetActiveAction : ActionBase {
public GameObject target;
public bool setToActive;
public override void Action() {
target.SetActive(setToActive);
}
}
| using UnityEngine;
using System.Collections;
public class SetActiveAction : ActionBase {
public GameObject target;
public bool isActive;
public override void Action() {
target.SetActive(isActive);
}
}
| mit | C# |
48ce88fe471b024be684e64f7be42b0c735c8307 | Add more visualisations | ruarai/Trigrad,ruarai/Trigrad | Trigrad/DataTypes/TrigradDecompressed.cs | Trigrad/DataTypes/TrigradDecompressed.cs | using System.Drawing;
using TriangleNet;
namespace Trigrad.DataTypes
{
/// <summary> The results of a TrigradDecompression, containing both the output and debug bitmaps. </summary>
public class TrigradDecompressed
{
/// <summary> Constructor for a TrigradDecompressed object, defining the width and... | using System.Drawing;
namespace Trigrad.DataTypes
{
/// <summary> The results of a TrigradDecompression, containing both the output and debug bitmaps. </summary>
public class TrigradDecompressed
{
/// <summary> Constructor for a TrigradDecompressed object, defining the width and height of output b... | mit | C# |
5870f04312c5ddf3a60403c3164b73e5fd1b1da5 | Fix silly mistake (improper ability granting) | csf-dev/agiil,csf-dev/agiil,csf-dev/agiil,csf-dev/agiil | Tests/Agiil.BDD/ScreenplayExtensions.cs | Tests/Agiil.BDD/ScreenplayExtensions.cs | using System;
using Agiil.BDD.Abilities;
using Agiil.BDD.Personas;
using CSF.Screenplay;
using CSF.Screenplay.Actors;
namespace Agiil.BDD
{
public static class ScreenplayExtensions
{
public static IActor GetApril(this IScreenplayScenario screenplay)
{
if(screenplay == null)
throw new Argumen... | using System;
using Agiil.BDD.Abilities;
using Agiil.BDD.Personas;
using CSF.Screenplay;
using CSF.Screenplay.Actors;
namespace Agiil.BDD
{
public static class ScreenplayExtensions
{
public static IActor GetApril(this IScreenplayScenario screenplay)
{
if(screenplay == null)
throw new Argumen... | mit | C# |
427e726eeb55f6f433b0e1e7f71418ed84f9a390 | fix datetime conversion for logs | ceee/UptimeSharp | UptimeSharp/Utilities/JsonExtensions.cs | UptimeSharp/Utilities/JsonExtensions.cs | using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Globalization;
namespace UptimeSharp
{
public class BoolConverter : JsonConverter
{
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
writer.WriteValue(((bool)value) ? 1 : ... | using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
namespace UptimeSharp
{
public class BoolConverter : JsonConverter
{
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
writer.WriteValue(((bool)value) ? 1 : 0);
}
public overri... | mit | C# |
bb64705698b127c882725849ebf6d246ce37e5e3 | add MultipartMediaTypeFormatter | IvanZheng/IFramework,IvanZheng/IFramework,IvanZheng/IFramework | Src/Sample/Sample.CommandService/App_Start/WebApiConfig.cs | Src/Sample/Sample.CommandService/App_Start/WebApiConfig.cs | using IFramework.Infrastructure.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Formatting;
using System.Web.Http;
namespace Sample.CommandService
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
... | using IFramework.Infrastructure.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Formatting;
using System.Web.Http;
namespace Sample.CommandService
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
... | mit | C# |
60ff1008d2d7517608fbb70279456e7715299054 | Add tests for different kinds of numbers. | izrik/FbxSharp,izrik/FbxSharp,izrik/FbxSharp,izrik/FbxSharp,izrik/FbxSharp | FbxSharpTests/NumberTest.cs | FbxSharpTests/NumberTest.cs | using System;
using NUnit.Framework;
using FbxSharp;
namespace FbxSharpTests
{
[TestFixture]
public class NumberTest : TestBase
{
[Test]
public void Create_ValuesAreNull()
{
// when:
var n = new Number();
// then:
Assert.IsNull(n.AsDouble);
As... | using System;
using NUnit.Framework;
using FbxSharp;
namespace FbxSharpTests
{
[TestFixture]
public class NumberTest : TestBase
{
[Test]
public void Create_ValuesAreNull()
{
// when:
var n = new Number();
// then:
Assert.IsNull(n.AsDouble);
As... | lgpl-2.1 | C# |
a95123a4fe00bf9e7e0b735af02de4178e3aa010 | Add isArchivized to class Request | BartoszBaczek/WorkshopRequestsManager | Project/WorkshopManager/WorkshopManager/Models/Request.cs | Project/WorkshopManager/WorkshopManager/Models/Request.cs | using System.Collections.Generic;
using System.Linq;
using WorkshopManager.Models.IRequest;
namespace WorkshopManager
{
public class Request : IRequestWithIdAcces
{
public int ID { get; private set; }
public string Model { get; set; }
public string Mark { get; set; }
public str... | using System.Collections.Generic;
using System.Linq;
using WorkshopManager.Models.IRequest;
namespace WorkshopManager
{
public class Request : IRequestWithIdAcces
{
public int ID { get; private set; }
public string Model { get; set; }
public string Mark { get; set; }
public str... | mit | C# |
13d8e8e15604701b32c4dac368c502c40f734e23 | Update CompositeTraceTelemeter.cs | tiksn/TIKSN-Framework | TIKSN.Core/Analytics/Telemetry/CompositeTraceTelemeter.cs | TIKSN.Core/Analytics/Telemetry/CompositeTraceTelemeter.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading.Tasks;
using TIKSN.Configuration;
namespace TIKSN.Analytics.Telemetry
{
public class CompositeTraceTelemeter : ITraceTelemeter
{
private readonly IPartialConfiguration<CommonTelemetryOptions> commonConfigu... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading.Tasks;
using TIKSN.Configuration;
namespace TIKSN.Analytics.Telemetry
{
public class CompositeTraceTelemeter : ITraceTelemeter
{
private readonly IPartialConfiguration<CommonTelemetryOptions> commonConfigu... | mit | C# |
02fd4bf452f13a929bbe81301ae8f0cdd5c801ef | Make the login button more noticeable | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Mvc/Views/Shared/_LoginPartial.cshtml | Anlab.Mvc/Views/Shared/_LoginPartial.cshtml | @using Anlab.Core.Domain
@using Microsoft.AspNetCore.Http
@inject SignInManager<User> SignInManager
@inject UserManager<User> UserManager
@if (User.Identity.IsAuthenticated)
{
var user = await UserManager.GetUserAsync(User);
<form class="flexer" asp-area="" asp-controller="Account" asp-action="Logout" method... | @using Anlab.Core.Domain
@using Microsoft.AspNetCore.Http
@inject SignInManager<User> SignInManager
@inject UserManager<User> UserManager
@if (User.Identity.IsAuthenticated)
{
var user = await UserManager.GetUserAsync(User);
<form class="flexer" asp-area="" asp-controller="Account" asp-action="Logout" metho... | mit | C# |
db241a8b1ccc5c2e6417d0750e4437950d00c8cb | add byte[] extension ToDosString() | martinlindhe/Punku | punku/Extensions/ByteArrayExtensions.cs | punku/Extensions/ByteArrayExtensions.cs | using System;
using System.Text;
// TODO: use this in metaemu & hexview. move their hex printing to helper extensions
// TODO: like ToCString but for $-terminated DOS strings
public static class ByteArrayExtensions
{
/**
* Returns a hex string representation of the content
*/
public static string ToHexString (t... | using System;
// TODO: use this in metaemu & hexview. move their hex printing to helper extensions
public static class ByteArrayExtensions
{
public static string ToHexString (this byte[] bytes)
{
byte b;
int cx = 0;
char[] c = new char[bytes.Length * 2];
for (int bx = 0; bx < bytes.Length; ++bx) {
b = ... | mit | C# |
7ee835358485b78cab17606f91be8479526aadb4 | add patch to RestSharp proxy | dkackman/DynamicRestProxy,jamesholcomb/DynamicRestProxy,jamesholcomb/DynamicRestProxy,dkackman/DynamicRestProxy | DynamicRestProxy.RestSharp/RestInvocation.cs | DynamicRestProxy.RestSharp/RestInvocation.cs | using System;
using System.Threading.Tasks;
using System.Diagnostics;
using RestSharp;
namespace DynamicRestProxy
{
class RestInvocation
{
private readonly IRestClient _client;
public RestInvocation(IRestClient client, string verb)
{
Debug.Assert(client != null);
... | using System;
using System.Threading.Tasks;
using System.Diagnostics;
using RestSharp;
namespace DynamicRestProxy
{
class RestInvocation
{
private IRestClient _client;
public RestInvocation(IRestClient client, string verb)
{
Debug.Assert(client != null);
_clie... | apache-2.0 | C# |
ec488572f888d60edc22e2424f8206d2d96ec77c | Update to 2.0.1 | kamsar/Kamsar.WebConsole,kamsar/Kamsar.WebConsole | Kamsar.WebConsole/Properties/AssemblyInfo.cs | Kamsar.WebConsole/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System.Web.UI;
[assembly: AssemblyTitle("Kamsar.WebConsole")]
[assembly: AssemblyProduct("Kamsar.WebConsole")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("2.0.1")]
[assembly: AssemblyFileVersion("2.0.1")]
[assembly: AssemblyInformation... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Web.UI;
[assembly: AssemblyTitle("Kamsar.WebConsole")]
[assembly: AssemblyProduct("Kamsar.WebConsole")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("2.0.0")]
[assembly: AssemblyFileVersion("2.0.0")]
[assembly: AssemblyInformation... | mit | C# |
f7552075934e21f7b8b334ae0e4dc878f327383a | Fix minor matching issue | portaljacker/portalbot | src/portalbot/Commands/WeatherModule.cs | src/portalbot/Commands/WeatherModule.cs | using System;
using DarkSky.Services;
using Discord.Commands;
using GoogleGeoCoderCore;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace portalbot.Commands
{
public class WeatherModule : ModuleBase
{
private static readonly Regex ValidCityState = new Regex(@"^[\p{L}\p{Mn}]... | using System;
using DarkSky.Services;
using Discord.Commands;
using GoogleGeoCoderCore;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace portalbot.Commands
{
public class WeatherModule : ModuleBase
{
private static readonly Regex ValidCityState = new Regex(@"^[\p{L}\p{Mn}]... | mit | C# |
db498ee56213ebf3671310503dfe1393637032d1 | Remove some using statements | cdhunt/NewRelicApiPoshProvider | NewRelicAPIPoshProvider/Items/Application.cs | NewRelicAPIPoshProvider/Items/Application.cs | using System;
using System.Collections.Generic;
namespace NewRelicAPIPoshProvider.Items
{
public class ListApplications
{
public List<Application> Applications { get; set; }
}
public class Application
{
public int Id { get; set; }
public string Name { get; set; }
pu... | using System;
using System.Collections.Generic;
using System.Linq;
namespace NewRelicAPIPoshProvider.Items
{
public class ListApplications
{
public List<Application> Applications { get; set; }
}
public class Application
{
public int Id { get; set; }
public string Name { g... | mit | C# |
9404096a28c49a2c9370d6dd2d07a893d86f82df | Update tests to match new constructor | NeoAdonis/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu,peppy/osu-new,peppy/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,ppy/osu | osu.Game.Tests/Visual/Ranking/TestSceneStarRatingDisplay.cs | osu.Game.Tests/Visual/Ranking/TestSceneStarRatingDisplay.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.Game.Screens.Ranking.Expanded;
namespace osu.Game.Tests.Visual.... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.Game.Screens.Ranking.Expanded;
namespace osu.Game.Tests.Visual.... | mit | C# |
0f382590e6caa7e58f85ac30840289ea9c4b93f2 | Remove unnecessary `#nullable disable` | peppy/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu,ppy/osu | osu.Game/Rulesets/UI/Scrolling/IDrawableScrollingRuleset.cs | osu.Game/Rulesets/UI/Scrolling/IDrawableScrollingRuleset.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;
namespace osu.Game.Rulesets.UI.Scrolling
{
/// <summary>
/// An interface for scrolling-based <see cref="DrawableRuleset{TObject}"/... | // 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 osu.Game.Configuration;
namespace osu.Game.Rulesets.UI.Scrolling
{
/// <summary>
/// An interface for scrolling-based <see cref="Drawable... | mit | C# |
e503407d2b2c2defd52a4c93637b28b7f883f8b0 | Remove ctor | khellang/Middleware,khellang/Middleware | src/SpaFallback/SpaFallbackException.cs | src/SpaFallback/SpaFallbackException.cs | using System;
using System.Text;
using Microsoft.AspNetCore.Http;
namespace Hellang.Middleware.SpaFallback
{
public class SpaFallbackException : Exception
{
private const string Fallback = nameof(SpaFallbackExtensions.UseSpaFallback);
private const string StaticFiles = "UseStaticFiles";
... | using System;
using System.Text;
using Microsoft.AspNetCore.Http;
namespace Hellang.Middleware.SpaFallback
{
public class SpaFallbackException : Exception
{
private const string Fallback = nameof(SpaFallbackExtensions.UseSpaFallback);
private const string StaticFiles = "UseStaticFiles";
... | mit | C# |
e0b921952848e87cabe2bdd55b05b7a8bb709891 | Update MacroContent.cs to use `is` operator for comparison to null | abryukhov/Umbraco-CMS,KevinJump/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,dawoe/Umbraco-CMS,dawoe/Umbraco-CMS,marcemarc/Umbraco-CMS,abjerner/Umbraco-CMS,marcemarc/Umbraco-CMS,robertjf/Umbraco-CMS,KevinJump/Umbraco-CMS,arknu/Umbraco-CMS,marcemarc/Umbraco-CMS,abryukhov/Umbraco-CMS,arknu/Umbraco-CMS,robertjf/Umbraco-CMS,K... | src/Umbraco.Core/Macros/MacroContent.cs | src/Umbraco.Core/Macros/MacroContent.cs | using System;
namespace Umbraco.Web.Macros
{
// represents the content of a macro
public class MacroContent
{
// gets or sets the text content
public string Text { get; set; }
// gets or sets the date the content was generated
public DateTime Date { get; set; } = DateTime.... | using System;
namespace Umbraco.Web.Macros
{
// represents the content of a macro
public class MacroContent
{
// gets or sets the text content
public string Text { get; set; }
// gets or sets the date the content was generated
public DateTime Date { get; set; } = DateTime.... | mit | C# |
0ac7672b0a4ec4467972c5939208585420159020 | Add binom command | ForNeVeR/wpf-math | src/WpfMath/Parsers/StandardCommands.cs | src/WpfMath/Parsers/StandardCommands.cs | using System.Collections.Generic;
using WpfMath.Atoms;
using WpfMath.Parsers.Matrices;
namespace WpfMath.Parsers
{
internal static class StandardCommands
{
private class UnderlineCommand : ICommandParser
{
public CommandProcessingResult ProcessCommand(CommandContext context)
... | using System.Collections.Generic;
using WpfMath.Atoms;
using WpfMath.Parsers.Matrices;
namespace WpfMath.Parsers
{
internal static class StandardCommands
{
private class UnderlineCommand : ICommandParser
{
public CommandProcessingResult ProcessCommand(CommandContext context)
... | mit | C# |
9e03f78d472dba54e257aed8564a00581a1ca3c9 | update assembly info | hylasoft-usa/h-dependency,hylasoft-usa/h-dependency | h-dependency/Properties/AssemblyInfo.cs | h-dependency/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("h-... | 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("h-... | mit | C# |
c25c626caeee72bf43823e7eff35ad457dab0435 | Make open file also work at runtime | accu-rate/SumoVizUnity,accu-rate/SumoVizUnity | Assets/FileChooser.cs | Assets/FileChooser.cs | using UnityEngine;
using System.Collections;
public class FileChooser : MonoBehaviour {
FileBrowser fb = new FileBrowser();
FileLoaderXML fl = new FileLoaderXML();
// Use this for initialization
void Start () {
fb.searchPattern = "*.xml";
}
void OnGUI(){
if (fb.draw()) {
if (fb.outputFile == null){
... | using UnityEngine;
using System.Collections;
public class FileChooser : MonoBehaviour {
FileBrowser fb = new FileBrowser();
void OnGUI(){
fb.searchPattern = "*.xml";
FileLoaderXML fl = new FileLoaderXML();
if(fb.draw()){
if(fb.outputFile == null){
Debug.Log("Cancel hit");
}else{
Debug.Log("... | mit | C# |
92d4aa0d8b5f17e41b2bdf594da6f6d28f22d28d | Fix typo in TransactionManager | Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum | src/Nethereum.RPC/TransactionManagers/TransactionManager.cs | src/Nethereum.RPC/TransactionManagers/TransactionManager.cs | using System;
using System.Threading.Tasks;
using Nethereum.JsonRpc.Client;
using Nethereum.RPC.Eth.Transactions;
using Nethereum.RPC.Eth.DTOs;
using System.Numerics;
namespace Nethereum.RPC.TransactionManagers
{
public class TransactionManager : TransactionManagerBase
{
public override BigInteger Def... | using System;
using System.Threading.Tasks;
using Nethereum.JsonRpc.Client;
using Nethereum.RPC.Eth.Transactions;
using Nethereum.RPC.Eth.DTOs;
using System.Numerics;
namespace Nethereum.RPC.TransactionManagers
{
public class TransactionManager : TransactionManagerBase
{
public override BigInteger Def... | mit | C# |
04974714bc392db74873a2711a376159bc98d5db | Divide weapon arc by half | iridinite/shiftdrive | Client/WeaponMount.cs | Client/WeaponMount.cs | /*
** Project ShiftDrive
** (C) Mika Molenkamp, 2016.
*/
using System;
using Microsoft.Xna.Framework;
namespace ShiftDrive {
/// <summary>
/// Represents the maximum weapon size that a mount can hold.
/// </summary>
internal enum MountSize {
Small = 1,
Medium = 2,
Large = 3
... | /*
** Project ShiftDrive
** (C) Mika Molenkamp, 2016.
*/
using System;
using Microsoft.Xna.Framework;
namespace ShiftDrive {
/// <summary>
/// Represents the maximum weapon size that a mount can hold.
/// </summary>
internal enum MountSize {
Small = 1,
Medium = 2,
Large = 3
... | bsd-3-clause | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.