commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
abf96db54535e8e24a818db00ee6d19e921217ce | osu.Game.Tests/Gameplay/TestSceneProxyContainer.cs | osu.Game.Tests/Gameplay/TestSceneProxyContainer.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 NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Testing;
using osu.Fra... | Add regression test for the pattern of using DHO proxy in `LifetimeManagementContainer` | Add regression test for the pattern of using DHO proxy in `LifetimeManagementContainer`
| C# | mit | peppy/osu,peppy/osu-new,peppy/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu | |
cb94366e5fd0346066a7aaed5682c3fbe8e296e5 | src/Common/src/Interop/Interop.PlatformDetection.cs | src/Common/src/Interop/Interop.PlatformDetection.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Runtime.InteropServices;
// TODO: This implementation is temporary until Environment.OSVersion is officially exposed,
// at which poin... | Add a platform detection mechanism to use in tests | Add a platform detection mechanism to use in tests
This should eventually be replaced with (or reimplemented based on) Environment.OSVersion, once it's available.
| C# | mit | shiftkey-tester/corefx,vs-team/corefx,Yanjing123/corefx,nchikanov/corefx,stormleoxia/corefx,the-dwyer/corefx,Chrisboh/corefx,jcme/corefx,dhoehna/corefx,misterzik/corefx,tstringer/corefx,Alcaro/corefx,seanshpark/corefx,alexandrnikitin/corefx,chenkennt/corefx,pallavit/corefx,Ermiar/corefx,jcme/corefx,shrutigarg/corefx,uh... | |
066ec81e2acb2f88811e87fa3122bd7d9263007f | src/GitHub.Logging/Logging/ILoggerExtensions.cs | src/GitHub.Logging/Logging/ILoggerExtensions.cs | using Serilog;
namespace GitHub.Logging
{
public static class ILoggerExtensions
{
public static void Assert(this ILogger logger, bool condition, string messageTemplate)
{
if (!condition)
{
messageTemplate = "Assertion Failed: " + messageTemplate;
#pragma ... | using System;
using System.Globalization;
using System.Threading.Tasks;
using Serilog;
namespace GitHub.Logging
{
public static class ILoggerExtensions
{
public static void Assert(this ILogger logger, bool condition, string messageTemplate)
{
if (!condition)
{
... | Add extension methods for logging timings | Add extension methods for logging timings
| C# | mit | github/VisualStudio,github/VisualStudio,github/VisualStudio |
7a78e45a4ee7ada6291c0f0d2e60b2c556fc77bd | src/CircuitBreaker.Net/TaskExtensions.cs | src/CircuitBreaker.Net/TaskExtensions.cs | using System;
using System.Threading;
using System.Threading.Tasks;
namespace CircuitBreaker.Net
{
// The following code is taken from "Crafting a Task.TimeoutAfter Method" post by Joe Hoag
// http://blogs.msdn.com/b/pfxteam/archive/2011/11/10/10235834.aspx
public static class TaskExtensions
{
... | Add a Task extension to handle timeouts | Add a Task extension to handle timeouts
| C# | mit | alexandrnikitin/CircuitBreaker.Net,alexandrnikitin/CircuitBreaker.Net | |
389920276e55c39432e97e5302d81014ddac8108 | CSharpRecipe/Recipe.ClassAndGeneric/ComparableImpl.cs | CSharpRecipe/Recipe.ClassAndGeneric/ComparableImpl.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Recipe.ClassAndGeneric
{
/// <summary>
/// Simple class that implements IComparable<>
/// </summary>
public class Square : IComparable<Square>
{
public Square()
... | Add sample class with implementation of IComparable<> | Add sample class with implementation of IComparable<>
| C# | mit | caronyan/CSharpRecipe | |
27f48dca99fe43ef513fc82e52300c125160aa09 | Camera/AutoEnableTouchControls.cs | Camera/AutoEnableTouchControls.cs | using UnityEngine;
using UnityEngine.Assertions;
[ExecuteInEditMode]
public class AutoEnableTouchControls : BaseBehaviour
{
private GameObject canvasGo;
private GameObject eventSystem;
void Start()
{
canvasGo = gameObject.transform.Find("Canvas").gameObject;
Assert.IsNotNull(canvasGo);
eventSystem = gameO... | Add class to auto-activate touch controls. | Add class to auto-activate touch controls.
| C# | mit | cmilr/Unity2D-Components,jguarShark/Unity2D-Components | |
85d38e8f4a8934aab03c2d6d97df0eec0f83fe54 | csharp/ScriptBuilder/WorksheetExtensions.cs | csharp/ScriptBuilder/WorksheetExtensions.cs | using OfficeOpenXml;
public static class WorksheetExtensions
{
public static string[,] ToStringArray(this ExcelWorksheet sheet)
{
string[,] answer = new string[sheet.Dimension.Rows, sheet.Dimension.Columns];
for (var rowNumber = 1; rowNumber <= sheet.Dimension.Rows; rowNumber++)
{
... | Add an extension method to the worksheet | Add an extension method to the worksheet
| C# | mit | jeffgbutler/delete_your_for_loops,jeffgbutler/delete_your_for_loops,jeffgbutler/delete_your_for_loops | |
c3c5a817ae5e0954cb82c0e711da5f399f8d9c42 | test/ReadLine.Tests/Abstractions/Console2.cs | test/ReadLine.Tests/Abstractions/Console2.cs | using Internal.ReadLine.Abstractions;
using System;
namespace ReadLine.Tests.Abstractions
{
internal class Console2 : IConsole
{
public int CursorLeft => _cursorLeft;
public int CursorTop => _cursorTop;
public int BufferWidth => _bufferWidth;
public int BufferHeight => _buff... | Add Console abstraction for test suites | Add Console abstraction for test suites
| C# | mit | tsolarin/readline,tsolarin/readline | |
121e10cbfc4e5af048c0f86475100f2dcee759c2 | ClosedXML_Tests/Excel/Cells/DataTypeTests.cs | ClosedXML_Tests/Excel/Cells/DataTypeTests.cs | using ClosedXML.Excel;
using NUnit.Framework;
using System;
namespace ClosedXML_Tests.Excel.Cells
{
[TestFixture]
public class DataTypeTests
{
[Test]
public void ConvertNonNumericTextToNumberThrowsException()
{
using (var wb = new XLWorkbook())
{
... | Add test for changing data type (Thanks @prankaty ) | Add test for changing data type (Thanks @prankaty )
| C# | mit | igitur/ClosedXML,b0bi79/ClosedXML,ClosedXML/ClosedXML | |
46781ad9082ccea3aab7950095238003269cbaad | tests/Avalonia.Benchmarks/Styling/SelectorBenchmark.cs | tests/Avalonia.Benchmarks/Styling/SelectorBenchmark.cs | using Avalonia.Controls;
using Avalonia.Styling;
using BenchmarkDotNet.Attributes;
namespace Avalonia.Benchmarks.Styling
{
[MemoryDiagnoser]
public class SelectorBenchmark
{
private readonly Control _notMatchingControl;
private readonly Calendar _matchingControl;
private readonly S... | Add basic benchmarks for Is and Class selectors. | Add basic benchmarks for Is and Class selectors.
| C# | mit | wieslawsoltes/Perspex,wieslawsoltes/Perspex,wieslawsoltes/Perspex,Perspex/Perspex,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,Perspex/Perspex,SuperJMN/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,grokys/Perspex,AvaloniaUI/Avalonia,A... | |
be1bb45811e06c28c1a9ec36e4679f745106fa31 | Engine/Range.cs | Engine/Range.cs | using System;
namespace Microsoft.Windows.PowerShell.ScriptAnalyzer
{
public class Range
{
public Position Start { get; }
public Position End { get; }
public Range(Position start, Position end)
{
if (start > end)
{
throw new ArgumentExcept... | Add type to represent range in a text file | Add type to represent range in a text file
| C# | mit | daviwil/PSScriptAnalyzer,dlwyatt/PSScriptAnalyzer,PowerShell/PSScriptAnalyzer | |
ba458ef13a388ec8cca7d4637944bee012eb6833 | AudioSourceController/AudioSourceController.cs | AudioSourceController/AudioSourceController.cs | using UnityEngine;
using System.Collections;
namespace ATP.AnimationPathTools.AudioSourceControllerComponent {
public class AudioSourceController : MonoBehaviour {
private void Start() {
}
private void Update() {
}
}
}
| Create audio source controller component | Create audio source controller component
| C# | mit | bartlomiejwolk/AnimationPathAnimator | |
d0efecfc9cff723d92a7e9289842737152e6dc61 | osu.Game/Rulesets/AssemblyRulesetStore.cs | osu.Game/Rulesets/AssemblyRulesetStore.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Linq;
using osu.Framework.Extensions.ObjectExtensions;
using osu.Framework.Platform;
#nullable enable
names... | Add `RulesetStore` for use where realm is not present (ie. other projects) | Add `RulesetStore` for use where realm is not present (ie. other projects)
| C# | mit | peppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,ppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu | |
20dda2ea4a70b3d63d960a037437ee67f95adb67 | Src/Simple.Data.Mysql/MysqlConnectorHelper.cs | Src/Simple.Data.Mysql/MysqlConnectorHelper.cs | using System;
using System.Data;
using System.Data.Common;
using System.IO;
using System.Reflection;
namespace Simple.Data.Mysql
{
public static class MysqlConnectorHelper
{
private static DbProviderFactory _dbFactory;
private static DbProviderFactory DbFactory
{
... | using System;
using System.Data;
using System.Data.Common;
using System.IO;
using System.Reflection;
namespace Simple.Data.Mysql
{
public static class MysqlConnectorHelper
{
private static DbProviderFactory _dbFactory;
private static DbProviderFactory DbFactory
{
... | Fix for partial trust environments Assembly.GetExecutingAssembly() cannot be used in Partial trust environments Also linux type paths report file:// and not file:/// so substring(8) should not be used | Fix for partial trust environments
Assembly.GetExecutingAssembly() cannot be used in Partial trust environments
Also linux type paths report file:// and not file:/// so substring(8) should not be used
| C# | mit | chenxizhang/Simple.Data.Mysql,Vidarls/Simple.Data.Mysql,Vidarls/Simple.Data.Mysql,chenxizhang/Simple.Data.Mysql |
916e442ee498ede35549e1a84646ca57caf8a24f | src/umbraco.editorControls/DefaultDataKeyValue.cs | src/umbraco.editorControls/DefaultDataKeyValue.cs | using System;
using umbraco.DataLayer;
namespace umbraco.editorControls
{
/// <summary>
/// Summary description for cms.businesslogic.datatype.DefaultDataKeyValue.
/// </summary>
public class DefaultDataKeyValue : cms.businesslogic.datatype.DefaultData
{
public DefaultDataKeyValue(cms.businesslogic... | using System;
using umbraco.DataLayer;
namespace umbraco.editorControls
{
/// <summary>
/// Summary description for cms.businesslogic.datatype.DefaultDataKeyValue.
/// </summary>
public class DefaultDataKeyValue : cms.businesslogic.datatype.DefaultData
{
public DefaultDataKeyValue(cms.businesslogic... | Fix errors in log caused by no prevalues beind selected. | Fix errors in log caused by no prevalues beind selected.
| C# | mit | Khamull/Umbraco-CMS,ehornbostel/Umbraco-CMS,base33/Umbraco-CMS,hfloyd/Umbraco-CMS,iahdevelop/Umbraco-CMS,qizhiyu/Umbraco-CMS,Nicholas-Westby/Umbraco-CMS,Tronhus/Umbraco-CMS,mattbrailsford/Umbraco-CMS,umbraco/Umbraco-CMS,gavinfaux/Umbraco-CMS,dawoe/Umbraco-CMS,gregoriusxu/Umbraco-CMS,NikRimington/Umbraco-CMS,mittonp/Umb... |
e9698fe62cae9b5b410085c6de9baa0c7383c1e6 | Nodes/VVVV.DX11.Nodes/Nodes/Geometry/AsIndexGeometryNode.cs | Nodes/VVVV.DX11.Nodes/Nodes/Geometry/AsIndexGeometryNode.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using SlimDX;
using SlimDX.Direct3D11;
using VVVV.PluginInterfaces.V2;
using VVVV.PluginInterfaces.V1;
using FeralTic.DX11;
using FeralTic.DX11.Resources;
namespace VVVV.DX11.Nodes
{
[... | Add index only drawer node | Add index only drawer node
| C# | bsd-3-clause | id144/dx11-vvvv,id144/dx11-vvvv,id144/dx11-vvvv | |
1be4b0cb339124e0dc1409caae9dcf3a899473f6 | TMDbLib/Objects/General/SingleResultContainer.cs | TMDbLib/Objects/General/SingleResultContainer.cs | using Newtonsoft.Json;
namespace TMDbLib.Objects.General
{
public class SingleResultContainer<T>
{
[JsonProperty("id")]
public int Id { get; set; }
[JsonProperty("results")]
public T Results { get; set; }
}
} | Add container for non-array results | Add container for non-array results
| C# | mit | LordMike/TMDbLib | |
55ed3a19206d62c0fe1570030f195de3330ca2ac | src/Pingu.Tests/FilterTests.cs | src/Pingu.Tests/FilterTests.cs | using System;
using Xunit;
using Pingu.Filters;
namespace Pingu.Tests
{
public class FilterTests
{
[Fact]
public void Get_filter_throws_for_invalid_filter_type()
{
var arex = Assert.Throws<ArgumentOutOfRangeException>(() => DefaultFilters.GetFilterForType((FilterType)11));... | Test invalid filter type handling. | Tests: Test invalid filter type handling.
| C# | mit | bojanrajkovic/pingu | |
c0879a04a97acd1bfa3f8705d8ffc582f09a6977 | tests/Okanshi.Tests/TagTest.cs | tests/Okanshi.Tests/TagTest.cs | using FluentAssertions;
using Xunit;
namespace Okanshi.Test
{
public class TagTest
{
[Fact]
public void Creating_a_new_tag_sets_the_correct_key()
{
var expectedKey = "key";
var tag = new Tag(expectedKey, "anything");
tag.Key.Should().Be(expectedKey)... | Add some basic tests for tags | Add some basic tests for tags
| C# | mit | mvno/Okanshi,mvno/Okanshi,mvno/Okanshi | |
2e07c83cfbbc0e762a6c875ee321be24d1a7bf2d | MarkHeightRegionTransgression.cs | MarkHeightRegionTransgression.cs | //-----------------------------------------------------------------------------------
// PCB-Investigator Automation Script
// Created on 16.06.2016
// Autor Fabio.Gruber
//
// Mark all components in max height regions of drc_comp layer.
// This checks each cmp over the surfaces on relevant layer with drc_max_he... | Mark Height Components with region transgression | Mark Height Components with region transgression
Mark all components in max height regions of "drc_comp" layer.
This checks each cmp over the surfaces on relevant layer with "drc_max_height" attribute. | C# | bsd-3-clause | sts-CAD-Software/PCB-Investigator-Scripts | |
d395b628382f847278ea574fde8d4e1dba34d74d | osu.Framework/Allocation/ObjectHandle.cs | osu.Framework/Allocation/ObjectHandle.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Runtime.InteropServices;
namespace osu.Framework.Allocation
{
/// <summary>
/// Wrapper on <see cref="GCHandle" /> that su... | Add IDisposable wrapper on GCHandle | Add IDisposable wrapper on GCHandle
| C# | mit | DrabWeb/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,Tom94/osu-framework,ppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,DrabWeb/osu-framewo... | |
9eaa6cf8ae0537a9c702e506601c44f19fa0d584 | WalletWasabi/Models/CoinsView.cs | WalletWasabi/Models/CoinsView.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using NBitcoin;
using WalletWasabi.Helpers;
using WalletWasabi.Models;
namespace WalletWasabi.Gui.Models
{
public class CoinsView : IEnumerable<SmartCoin>
{
private IEnumerable<SmartCoin> _coins;
public CoinsView(IEnume... | Add new CoinView class for query coins | Add new CoinView class for query coins
| C# | mit | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | |
2152bfb12817f5b4c29554a089b350f73d064bf8 | test/OpenChain.Ledger.Tests/StringPatternTests.cs | test/OpenChain.Ledger.Tests/StringPatternTests.cs | // Copyright 2015 Coinprism, Inc.
//
// 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 agree... | Implement unit tests for the StringPattern class | Implement unit tests for the StringPattern class
| C# | apache-2.0 | openchain/openchain | |
9a3d13d038d108c2df4426a21bb50a43470303f4 | SimControl.TestUtils.Tests/GlobalSuppressions.cs | SimControl.TestUtils.Tests/GlobalSuppressions.cs | // This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE... | Convert to new Visual Studio project types | Convert to new Visual Studio project types
| C# | mit | SimControl/SimControl.Reactive | |
740e16319c90a0409c8cadcd614825339ad45f7a | Testing/TestingDispatch.cs | Testing/TestingDispatch.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Diagnostics;
namespace MatterHackers.MatterControl.Testing
{
public class TestingDispatch
{
string errorLogFileName = null;
public TestingDispatch()
{
errorLo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Diagnostics;
namespace MatterHackers.MatterControl.Testing
{
public class TestingDispatch
{
string errorLogFileName = null;
public TestingDispatch()
{
string ... | Write the ErrorLog into the exe's directory. | Write the ErrorLog into the exe's directory.
| C# | bsd-2-clause | gregory-diaz/MatterControl,jlewin/MatterControl,unlimitedbacon/MatterControl,tellingmachine/MatterControl,ddpruitt/MatterControl,larsbrubaker/MatterControl,unlimitedbacon/MatterControl,CodeMangler/MatterControl,mmoening/MatterControl,jlewin/MatterControl,MatterHackers/MatterControl,rytz/MatterControl,ddpruitt/MatterCon... |
e500e35a320446738ef53a188409117218987aaf | jobs/api/QuickStart/QuickStart.cs | jobs/api/QuickStart/QuickStart.cs | /*
* Copyright (c) 2018 Google Inc.
*
* 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 to ... | Revert the Quickstart file which is deleted by mistake | Revert the Quickstart file which is deleted by mistake
| C# | apache-2.0 | jsimonweb/csharp-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,jsimonweb/csharp-docs-samples,jsimonweb/csharp-docs-samples,jsimonweb/csharp-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples | |
5f5fb3e47f69ac2923187a69ebf381fe0e3e1690 | Src/StackifyLib/Utils/AsyncTracer.cs | Src/StackifyLib/Utils/AsyncTracer.cs | #if NET45 || NET451
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text;
namespace StackifyLib.Utils
{
public class AsyncTracer
{
private static bool _AsyncTracerEnabled = false;
private static DateTime _LastEn... | Add code to allow azure functions to force async on | Add code to allow azure functions to force async on
| C# | apache-2.0 | stackify/stackify-api-dotnet,stackify/stackify-api-dotnet,stackify/stackify-api-dotnet | |
cf418a8097fc00b3068ef7f81b494580ecf3e9e8 | src/Umbraco.Web.UI/Views/Partials/BlockList/Default.cshtml | src/Umbraco.Web.UI/Views/Partials/BlockList/Default.cshtml | @inherits UmbracoViewPage<BlockListModel>
@using Umbraco.Core.Models.Blocks
@{
if (Model?.Layout == null || !Model.Layout.Any()) { return; }
}
<div class="umb-block-list">
@foreach (var layout in Model.Layout)
{
if (layout?.Udi == null) { continue; }
var data = layout.Data;
... | @inherits UmbracoViewPage<BlockListModel>
@using Umbraco.Core.Models.Blocks
@{
if (Model?.Layout == null || !Model.Layout.Any()) { return; }
}
<div class="umb-block-list">
@foreach (var layout in Model.Layout)
{
if (layout?.Udi == null) { continue; }
var data = layout.Data;
... | Add error handling to default template | Add error handling to default template
| C# | mit | JimBobSquarePants/Umbraco-CMS,hfloyd/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,bjarnef/Umbraco-CMS,NikRimington/Umbraco-CMS,tcmorris/Umbraco-CMS,NikRimington/Umbraco-CMS,abjerner/Umbraco-CMS,tcmorris/Umbraco-CMS,bjarnef/Umbraco-CMS,tcmorris/Umbraco-CMS,marcemarc/Umbraco-CMS,hfloyd/Umbraco-CMS,dawoe/Umbraco-CMS,mattbrai... |
d9e1e01df13bed68556bb7e5b62ad310c89778ea | src/DotvvmAcademy.CourseFormat/MarkdownStepInfo.cs | src/DotvvmAcademy.CourseFormat/MarkdownStepInfo.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace DotvvmAcademy.CourseFormat
{
public class MarkdownStepInfo
{
public string Path { get; }
public string Moniker { get; }
public string Name { get; }
public string CodeTaskPath { get; }
}
}
| Set the course directory as Content (for MSBuild) | Set the course directory as Content (for MSBuild)
| C# | apache-2.0 | riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy | |
2e1505c69f52045fb8800708726c24630feafaac | src/framework/Templates/Contains.template.cs | src/framework/Templates/Contains.template.cs | // ***********************************************************************
// Copyright (c) 2009 Charlie Poole
//
// 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,... | Add file missed in bug fix 440109 | Add file missed in bug fix 440109
--HG--
branch : bug-fix-440109
extra : convert_revision : charlie%40nunit.com-20091011205012-8qlpq4dtg1kdfyv9
| C# | mit | nunit/nunit-console,nunit/nunit-console,nunit/nunit-console | |
3babb41574ea13c469d9c453c98a34f1ab83bab8 | src/Snow/SnowViewLocationConventions.cs | src/Snow/SnowViewLocationConventions.cs | namespace Snow
{
using System;
using System.Collections.Generic;
using Nancy.Conventions;
using Nancy.ViewEngines;
public class SnowViewLocationConventions : IConvention
{
public static SnowSettings Settings { get; set; }
public void Initialise(NancyConventions conv... | namespace Snow
{
using System;
using System.Collections.Generic;
using Nancy.Conventions;
using Nancy.ViewEngines;
public class SnowViewLocationConventions : IConvention
{
public static SnowSettings Settings { get; set; }
public void Initialise(NancyConventions conv... | Allow overriding default static files in theme | Allow overriding default static files in theme
| C# | mit | MattHarrington/sample-sandra-snow-blog,Pxtl/Sandra.Snow,tareq-s/Sandra.Snow,fekberg/Sandra.Snow,darrelmiller/Sandra.Snow,MattHarrington/sample-sandra-snow-blog,tareq-s/Sandra.Snow,Sandra/Sandra.Snow,tareq-s/Sandra.Snow,amitapl/blogamitapple,Sandra/Sandra.Snow,Sandra/Sandra.Snow,darrelmiller/Sandra.Snow,fekberg/Sandra.S... |
0ed7722a575517e7e3e8437169a1b1d822adc923 | rocketmq-client-donet/src/PushConsumerWrap.cs | rocketmq-client-donet/src/PushConsumerWrap.cs | using System;
using System.Runtime.InteropServices;
namespace RocketMQ.Interop
{
public static class PushConsumerWrap
{
[DllImport(ConstValues.RocketMQDriverDllName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr CreatePushConsumer(string groupId);
[DllImpor... | Add pushconsumer wrap to donet | Add pushconsumer wrap to donet
| C# | apache-2.0 | StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTan... | |
f9e2e808743403cafd862f1fd1177a1bc0f8b4f1 | osu.Game.Tests/Visual/Mods/TestSceneModFailCondition.cs | osu.Game.Tests/Visual/Mods/TestSceneModFailCondition.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using NUnit.Framework;
using osu.Framework.Graphics.Containers;
using osu.Framework.Testing;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Osu;
usin... | Add testing for auto-restart behaviour | Add testing for auto-restart behaviour
| C# | mit | peppy/osu,peppy/osu-new,ppy/osu,smoogipooo/osu,ppy/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu | |
cf3bc2bb338d39c9f359d4326b9ddd2f8a76b917 | osu.Framework.Tests/Visual/Platform/TestSceneExecutionModes.cs | osu.Framework.Tests/Visual/Platform/TestSceneExecutionModes.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.Bindables;
using osu.Framework.Configuration;
using osu.Framework.Platform;
namespace osu.Fram... | Add visual-only execution mode toggle test scene | Add visual-only execution mode toggle test scene
| C# | mit | ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ZLima12/osu-framework | |
765421264b374014b59ddf7308099f0d6a5206bd | Examples/CSharp/ProgrammersGuide/Load-Save-Convert/CreateNewVisio.cs | Examples/CSharp/ProgrammersGuide/Load-Save-Convert/CreateNewVisio.cs | using Aspose.Diagram;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CSharp.ProgrammersGuide.Load_Save_Convert
{
public class CreateNewVisio
{
public static void Run()
{
//ExStart:CreateNewVisio
// The path... | Create a new diagram example | Create a new diagram example
| C# | mit | aspose-diagram/Aspose.Diagram-for-.NET,asposediagram/Aspose_Diagram_NET | |
239d468a66e3f37913f7944ee966384cbe975510 | Refit.Tests/IFooWithOtherAttribute.cs | Refit.Tests/IFooWithOtherAttribute.cs | using System.ComponentModel;
using System.Threading.Tasks;
using Refit;
interface IFooWithOtherAttribute
{
[Get("/")]
Task GetRoot();
[DisplayName("/")]
Task PostRoot();
}
| Add test class with other attribute on method | Add test class with other attribute on method
| C# | mit | PKRoma/refit | |
896601ccbcc1ae5a72ca96a769ce5cfbaef087fb | src/System.Data.SqlClient/tests/FunctionalTests/SqlConnectionTest.cs | src/System.Data.SqlClient/tests/FunctionalTests/SqlConnectionTest.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Xunit;
namespace System.Data.SqlClient.Tests
{
public class SqlConnectionBasicTests
{
[Fac... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Xunit;
namespace System.Data.SqlClient.Tests
{
public class SqlConnectionBasicTests
{
[Fac... | Annotate the test with ActiveIssue | Annotate the test with ActiveIssue
| C# | mit | nbarbettini/corefx,YoupHulsebos/corefx,weltkante/corefx,zhenlan/corefx,stephenmichaelf/corefx,mazong1123/corefx,gkhanna79/corefx,richlander/corefx,dotnet-bot/corefx,rjxby/corefx,fgreinacher/corefx,mmitche/corefx,weltkante/corefx,YoupHulsebos/corefx,tijoytom/corefx,YoupHulsebos/corefx,YoupHulsebos/corefx,jlin177/corefx,... |
c6a7f48382a07ea58af2349e7dc8f4d79dd91efd | PSql/_Utilities/PSqlClient.cs | PSql/_Utilities/PSqlClient.cs | /*
Copyright 2020 Jeffrey Sharp
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS A... | Add class to load client in private load context. | Add class to load client in private load context.
| C# | isc | sharpjs/PSql,sharpjs/PSql | |
05efba8b1ad84fe354bcba8b239e01f38459fac9 | VersionAssemblyInfo.cs | VersionAssemblyInfo.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.239
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.239
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
... | Set AssemblyConfiguration attribute to a simple/default value. | Set AssemblyConfiguration attribute to a simple/default value.
| C# | mit | hlltbrk/autofac,neoe1984/autofac,satish860/autofac,neoe1984/autofac,hlltbrk/autofac,hlltbrk/autofac,neoe1984/autofac,satish860/autofac,satish860/autofac,satish860/autofac,neoe1984/autofac,hlltbrk/autofac |
a2b9dc3aada6c45c9285ad9873b8494ccdc1fc7e | shared/JsonDotNetSerializer.cs | shared/JsonDotNetSerializer.cs | using System.IO;
using System.Text;
using log4net.ObjectRenderer;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace log4net.Util.Serializer
{
public class JsonDotNetSerializer : ISerializer
{
public RendererMap Map { get; set; }
public object Serialize(object obj)
{... | Add ISerializer impl. that uses JSON.NET | Add ISerializer impl. that uses JSON.NET
…instead of the default JSON serializer implementation in
log4net.Ext.Json
| C# | mit | smarts/log4net.Ext.Json.Serializers | |
63087379529da64b902dc139db8b9f80172a0a42 | src/PetAdoptionCRM/Models/EmployeeRole.cs | src/PetAdoptionCRM/Models/EmployeeRole.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace PetAdoptionCRM.Models
{
public class EmployeeRole : IdentityRole
{
}
}
| Add employee and manager as user roles | Add employee and manager as user roles
| C# | mit | alexandraholcombe/PetAdoptionCRM,alexandraholcombe/PetAdoptionCRM,alexandraholcombe/PetAdoptionCRM | |
37726f403a777e567f2f580ea3ed84ab19ffe787 | src/System.ServiceModel.Primitives/tests/IdentityModel/SymmetricSecurityKeyTest.cs | src/System.ServiceModel.Primitives/tests/IdentityModel/SymmetricSecurityKeyTest.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.IdentityModel.Tokens;
using System.Security.Cryptography;
using Infrastructure.Common;
using Xunit... | Add unit test for GetSymmetricAlgorithm. | Add unit test for GetSymmetricAlgorithm.
| C# | mit | StephenBonikowsky/wcf,mconnew/wcf,dotnet/wcf,mconnew/wcf,imcarolwang/wcf,StephenBonikowsky/wcf,dotnet/wcf,imcarolwang/wcf,dotnet/wcf,imcarolwang/wcf,mconnew/wcf | |
907d4cdab6eb9cdad7d27c3b110c84d27a18fb49 | SCPI/Commands.cs | SCPI/Commands.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
namespace SCPI
{
public class Commands
{
private Dictionary<string, ICommand> commands = new Dictionary<string, ICommand>();
/// <summary>
/// Creates a list of supported com... | Implement a class to query supported commands and get their instances. | Implement a class to query supported commands and get their instances.
| C# | mit | tparviainen/oscilloscope | |
b9e8494145caaf28f6642b54ffac44fa7f25270a | GeeksForGeeks/print_pattern_no_loop.cs | GeeksForGeeks/print_pattern_no_loop.cs | // http://www.geeksforgeeks.org/print-a-pattern-without-using-any-loop/
//
//
// Print a pattern without using any loop
//
// Given a number n, print following pattern without using any loop.
//
// Input: n = 16
// Output: 16, 11, 6, 1, -4, 1, 6, 11, 16
//
// Input: n = 10
// Output: 10, 5, 0, 5, 10
//
using System;
c... | Print pattern without a loop | Print pattern without a loop
| C# | mit | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | |
07a63d2dddb65e574c5646ccbc38de0a6d1f5805 | test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/RazorCompileIntegrationTest.cs | test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/RazorCompileIntegrationTest.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 System.Threading.Tasks;
using Xunit;
namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
{
public class RazorCompi... | Add tests for RazorCompile target | Add tests for RazorCompile target
This target should be callable on its own without using Build so it
deserves a few tests.
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | |
1de91191f1eb49f8c00fb7c73a9a02c1a66fdece | test/test-library/EnvironmentTests.cs | test/test-library/EnvironmentTests.cs | using Xunit;
using Squirrel;
using Squirrel.Nodes;
namespace Tests
{
public class EnvironmentTests
{
private static readonly string TestVariableName = "x";
private static readonly INode TestVariableValue = new IntegerNode(1);
[Fact]
public void TestGetValueFromCurrentEnvironmen... | Create positive tests for getting values from nested environments | Create positive tests for getting values from nested environments
| C# | mit | escamilla/squirrel | |
6bddd653c13fbd4aff6ccba9a9600319a3a0cbf9 | DotSpatial.Tools/ImportWhiteboxRaster.cs | DotSpatial.Tools/ImportWhiteboxRaster.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DotSpatial.Tools
{
class ImportWhiteboxRaster
{
}
}
| Create a tool for importing Whitebox *.dep files | Create a tool for importing Whitebox *.dep files | C# | mit | pergerch/DotSpatial,donogst/DotSpatial,DotSpatial/DotSpatial,DotSpatial/DotSpatial,JasminMarinelli/DotSpatial,bdgza/DotSpatial,CGX-GROUP/DotSpatial,bdgza/DotSpatial,swsglobal/DotSpatial,swsglobal/DotSpatial,pedwik/DotSpatial,donogst/DotSpatial,bdgza/DotSpatial,donogst/DotSpatial,pergerch/DotSpatial,CGX-GROUP/DotSpatial... | |
5330a8cf5be619c78f2bebd48327b18e786d1a96 | tests/Algorithms/Sha512Tests.cs | tests/Algorithms/Sha512Tests.cs | using System;
using NSec.Cryptography;
using Xunit;
namespace NSec.Tests.Algorithms
{
public static class Sha512Tests
{
public static readonly string HashOfEmpty = "cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e";
... | Add tests for Sha512 class | Add tests for Sha512 class
| C# | mit | ektrah/nsec | |
fd40c98b707d99741d574f436f075d930daec1dc | EOptimizationTests/Math/PointNDTests.cs | EOptimizationTests/Math/PointNDTests.cs | namespace EOpt.Math.Tests
{
using Microsoft.VisualStudio.TestTools.UnitTesting;
using EOpt.Math;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
[TestClass()]
public class PointNDTests
{
[TestMethod()]... | Add unit tests for PointND. | Add unit tests for PointND.
| C# | mit | KernelA/EOptimization-library | |
ce8ea1245b27795b20826ae61044b770c422c65f | source/Nuke.Common.Tests/SettingsTest.cs | source/Nuke.Common.Tests/SettingsTest.cs | // Copyright Matthias Koch 2017.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.IO;
using System.Linq;
using FluentAssertions;
using Nuke.Common.Tools.MSBuild;
using Nuke.Common.Tools.OpenCover;
using Nuke.Common.Tools.Xunit2;
using Nuke.Core.... | Add smoke tests for settings. | Add smoke tests for settings.
| C# | mit | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | |
94f43a4338b1b86d9a56893501548cee76ef4420 | ZocMon/ZocMon/ZocMonLib/Framework/StorageCommandsSetupSqlServer.cs | ZocMon/ZocMon/ZocMonLib/Framework/StorageCommandsSetupSqlServer.cs | using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using ZocMonLib;
namespace ZocMonLib
{
public class StorageCommandsSetupSqlServer : IStorageCommandsSetup
{
public virtual IEnumerable<ReduceLevel> SelectAllReduceLevels(IDbConnection conn)
{
retur... | using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using ZocMonLib;
namespace ZocMonLib
{
public class StorageCommandsSetupSqlServer : IStorageCommandsSetup
{
public virtual IEnumerable<ReduceLevel> SelectAllReduceLevels(IDbConnection conn)
{
const... | Switch over setup commands from using query class | Switch over setup commands from using query class
| C# | apache-2.0 | ZocDoc/ZocMon,modulexcite/ZocMon,ZocDoc/ZocMon,modulexcite/ZocMon,modulexcite/ZocMon,ZocDoc/ZocMon |
917dba7b4220965f5f05424a45b0d3916f3ce814 | tests/Twitch/PingCommandProcessorTest.cs | tests/Twitch/PingCommandProcessorTest.cs | using DiabloSpeech.Business.Twitch;
using DiabloSpeech.Business.Twitch.Processors;
using NUnit.Framework;
using tests.Twitch.Mocks;
namespace tests.Twitch
{
public class PingCommandProcessorTest
{
PingCommandProcessor processor;
TwitchConnectionMock connection;
TwitchMessageData Messa... | Add missing file for ping command test. | Add missing file for ping command test.
| C# | mit | qhris/DiabloSpeech,qhris/DiabloSpeech | |
02b79907a5cddf9ff9e4da72777392640b7a0f39 | osu.Framework.Tests/Threading/ThreadedTaskSchedulerTest.cs | osu.Framework.Tests/Threading/ThreadedTaskSchedulerTest.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.Threading;
using System.Threading.Tasks;
using NUnit.Framework;
using osu.Framework.Threading;
namespace osu.Framework.Tests.Threading
{
[TestFixture]
... | Add test covering ThreadedTaskScheduler shutdown | Add test covering ThreadedTaskScheduler shutdown
| C# | mit | EVAST9919/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,smoogipooo/osu-framework | |
07ebeeed66f1132907adc6840872d9d8ba9ee688 | Viewer/src/common/DebugUtilities.cs | Viewer/src/common/DebugUtilities.cs | using System.Diagnostics;
using System.Threading;
static class DebugUtilities {
public static void Burn(long ms) {
Stopwatch stopwatch = Stopwatch.StartNew();
while (stopwatch.ElapsedMilliseconds < ms) {
}
}
public static void Sleep(long ms) {
Stopwatch stopwatch = Stopwatch.StartNew();
while (stopwatch... | Add debug utilities to sleep-wait and busy-wait for a given duration | Add debug utilities to sleep-wait and busy-wait for a given duration | C# | mit | virtuallynaked/virtually-naked,virtuallynaked/virtually-naked | |
b97039970111ba4a5d6c6282525aa38255701fb0 | src/Microsoft.Azure.WebJobs.Host/Blobs/Listeners/BlobTriggerMessage.cs | src/Microsoft.Azure.WebJobs.Host/Blobs/Listeners/BlobTriggerMessage.cs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.WindowsAzure.Storage.Blob;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Microsoft.Azure.WebJobs... | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.WindowsAzure.Storage.Blob;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Microsoft.Azure.WebJobs... | Add message type to blob trigger. | Add message type to blob trigger.
| C# | mit | brendankowitz/azure-webjobs-sdk,vasanthangel4/azure-webjobs-sdk,shrishrirang/azure-webjobs-sdk,brendankowitz/azure-webjobs-sdk,Azure/azure-webjobs-sdk,shrishrirang/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,Azure/azure-webjobs-sdk,oliver-feng/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,gibwa... |
6715b81fd039e4c8d2b0f937b1383d16296f83ca | dotnet/test/common/ElementPropertyTest.cs | dotnet/test/common/ElementPropertyTest.cs | using System;
using System.Collections.Generic;
using NUnit.Framework;
using System.Collections.ObjectModel;
using OpenQA.Selenium.Environment;
namespace OpenQA.Selenium
{
[TestFixture]
public class ElementPropertyTest : DriverTestFixture
{
[Test]
[IgnoreBrowser(Browser.Edge)]
[Igno... | using System;
using System.Collections.Generic;
using NUnit.Framework;
using System.Collections.ObjectModel;
using OpenQA.Selenium.Environment;
namespace OpenQA.Selenium
{
[TestFixture]
public class ElementPropertyTest : DriverTestFixture
{
[Test]
[IgnoreBrowser(Browser.Chrome, "Chrome does... | Enable Get Element Property tests in Edge | Enable Get Element Property tests in Edge
Signed-off-by: Jim Evans <6d79d03c0573f3cb082d0037a63e1832cd69a278@gmail.com>
| C# | apache-2.0 | asashour/selenium,asolntsev/selenium,Ardesco/selenium,asashour/selenium,joshmgrant/selenium,valfirst/selenium,5hawnknight/selenium,joshbruning/selenium,chrisblock/selenium,joshbruning/selenium,SeleniumHQ/selenium,Dude-X/selenium,valfirst/selenium,lmtierney/selenium,SeleniumHQ/selenium,joshmgrant/selenium,SeleniumHQ/sel... |
f98e96e45b22b3b34e56543f2249d43e62585d5f | osu.Game/Input/OsuConfineMouseMode.cs | osu.Game/Input/OsuConfineMouseMode.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.ComponentModel;
using osu.Framework.Input;
namespace osu.Game.Input
{
/// <summary>
/// Determines the situations in which the mouse cursor should b... | Add osu!-specific enum for confine mouse mode | Add osu!-specific enum for confine mouse mode
| C# | mit | UselessToucan/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu-new,smoogipooo/osu,ppy/osu,peppy/osu,UselessToucan/osu,ppy/osu,ppy/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu | |
eb665426c9ee5ba1d844c872482690ffec27923c | src/Mobile/ContosoMoments/Helpers/Utils.cs | src/Mobile/ContosoMoments/Helpers/Utils.cs | using System.Threading.Tasks;
using ContosoMoments.Models;
using Xamarin.Forms;
using System;
namespace ContosoMoments
{
public class ResizeRequest
{
public string Id { get; set; }
public string BlobName { get; set; }
}
public class ActivityIndicatorScope : IDisposable
{
p... | using System.Threading.Tasks;
using ContosoMoments.Models;
using Xamarin.Forms;
using System;
namespace ContosoMoments
{
public class ResizeRequest
{
public string Id { get; set; }
public string BlobName { get; set; }
}
public class ActivityIndicatorScope : IDisposable
{
p... | Change mobile client to use DefaultsController instead of GetwayController | Change mobile client to use DefaultsController instead of GetwayController
| C# | mit | azure-appservice-samples/ContosoMoments,azure-appservice-samples/ContosoMoments,azure-appservice-samples/ContosoMoments,lindydonna/ContosoMoments,azure-appservice-samples/ContosoMoments,azure-appservice-samples/ContosoMoments,lindydonna/ContosoMoments,lindydonna/ContosoMoments,lindydonna/ContosoMoments,lindydonna/Conto... |
76d51b5f002bf7d7dbe3849a4807db6fa239b6eb | Custom/LogFieldRecordUpdater.cs | Custom/LogFieldRecordUpdater.cs | using Code.Records;
namespace Code.Custom
{
/// <summary>
/// Record Updater that will calculate the log of the source field.
/// </summary>
/// <example>
/// // handle the record changed event
/// new Code.Custom.LogFieldRecordUpdater("Source Field", "Log Field").HandleRecordChang... | Add example to get the Log of a source field. | Add example to get the Log of a source field.
| C# | mit | JoePlant/Ampla-Code-Items | |
0845069a2ccdcb66b3b6e35f8e6ef036e6a021ef | cs-algorithms/Strings/Search/BoyerMoore.cs | cs-algorithms/Strings/Search/BoyerMoore.cs | using System;
namespace Algorithms.Strings.Search
{
public class BoyerMoore
{
private int[] right;
private const int R = 256;
private int M;
private string pat;
public BoyerMoore(string pat)
{
this.pat = pat;
right = new int[R];
... | Implement unit test for boyer moore | Implement unit test for boyer moore
| C# | mit | cschen1205/cs-algorithms,cschen1205/cs-algorithms | |
bc177477cbb9f08a39481814339f09fbe0180a69 | Tests/SpecialTestCases/IndexBuiltinByName.cs | Tests/SpecialTestCases/IndexBuiltinByName.cs | using System;
using JSIL;
public static class Program {
public static void Main (string[] args) {
var print = Builtins.Global["pr" + "int"];
if (print != null)
print("printed");
if (Builtins.Local["print"] != null)
Builtins.Local["print"]("printed again");
... | using System;
using JSIL;
public static class Program {
public static void Main (string[] args) {
const string pri = "pri";
string nt = "nt";
var p = Builtins.Global[pri + nt];
if (p != null)
p("printed");
if (Builtins.Local["p"] != null)
Builtins... | Make the BuiltinThis test clearer | Make the BuiltinThis test clearer
| C# | mit | sander-git/JSIL,sq/JSIL,acourtney2015/JSIL,TukekeSoft/JSIL,Trattpingvin/JSIL,Trattpingvin/JSIL,hach-que/JSIL,FUSEEProjectTeam/JSIL,hach-que/JSIL,FUSEEProjectTeam/JSIL,sander-git/JSIL,mispy/JSIL,dmirmilshteyn/JSIL,acourtney2015/JSIL,volkd/JSIL,mispy/JSIL,antiufo/JSIL,dmirmilshteyn/JSIL,TukekeSoft/JSIL,acourtney2015/JSIL... |
2d4787f07aca3d0c7c2dd32571701d5edb403029 | Aurora/DataManager/Migration/Migrators/Generics/GenericsMigrator_4.cs | Aurora/DataManager/Migration/Migrators/Generics/GenericsMigrator_4.cs | /*
* Copyright (c) Contributors, http://aurora-sim.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* 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 mus... | Reduce the size of the keys in the generics migrator. This finally fixes the long standing issue of it failing to create the table on linux sometimes. Thanks go to Hippo_Finesmith for helping find the issue with this :). | Reduce the size of the keys in the generics migrator. This finally fixes the long standing issue of it failing to create the table on linux sometimes. Thanks go to Hippo_Finesmith for helping find the issue with this :).
| C# | bsd-3-clause | TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim | |
987924caab2d48cf07369439e3a61661c89ee2e8 | Classes/FtpProxy.cs | Classes/FtpProxy.cs | using System;
using System.Management.Automation;
namespace OPNsense.Ftpproxy {
public class Proxy {
#region Parameters
public uint debuglevel { get; set; }
public string description { get; set; }
public bool enabled { get; set; }
public uint idletimeout { get; set; }
public string listenaddress { get; s... | Add datatypes for OPNsense Objects | Add datatypes for OPNsense Objects
| C# | mit | fvanroie/PS_OPNsense | |
eec7996b3713dce42b456d53a39258662d5f3075 | test/WaveletCodesTools.Tests/StandardCodesFactoryTests.cs | test/WaveletCodesTools.Tests/StandardCodesFactoryTests.cs | namespace AppliedAlgebra.WaveletCodesTools.Tests
{
using CodesResearchTools.NoiseGenerator;
using Decoding.ListDecoderForFixedDistanceCodes;
using Decoding.StandartDecoderForFixedDistanceCodes;
using FixedDistanceCodesFactory;
using GeneratingPolynomialsBuilder;
using GfAlgorithms.CombinationsC... | Test for code creation from generating polynomial was added | Test for code creation from generating polynomial was added
| C# | mit | litichevskiydv/GfPolynoms,litichevskiydv/GfPolynoms | |
6fb0d9c51c939b59e6249c6caac8d488721b9e45 | src/LazyStorage/StorableConverter.cs | src/LazyStorage/StorableConverter.cs | using System;
using LazyStorage.Interfaces;
namespace LazyStorage.Xml
{
internal class StorableConverter<T> : IConverter<T> where T : IStorable<T>, IEquatable<T>, new()
{
public StorableObject GetStorableObject(T item)
{
return new StorableObject(item.GetStorageInfo());
}
... | Add converter for old storable objects | Add converter for old storable objects
| C# | mit | TheEadie/LazyLibrary,TheEadie/LazyStorage,TheEadie/LazyStorage | |
6e42a4db2bf063cc7f18bdf30fa2239d2700e027 | osu.Framework.Benchmarks/BenchmarkLogger.cs | osu.Framework.Benchmarks/BenchmarkLogger.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 BenchmarkDotNet.Attributes;
using osu.Framework.Logging;
using osu.Framework.Testing;
namespace osu.Framework.Benchmarks
{
[MemoryDiagnoser]
... | Add benchmark coverage of logger | Add benchmark coverage of logger
| C# | mit | smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework | |
541a093e6d55ead5906a07e2e31d7af8758e9622 | src/Microsoft.AspNet.StaticFiles/Properties/AssemblyInfo.cs | src/Microsoft.AspNet.StaticFiles/Properties/AssemblyInfo.cs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Reflection;
[assembly: AssemblyMetadata("Serviceable", "True")] | Add serviceable attribute to projects. | Add serviceable attribute to projects.
aspnet/DNX#1600
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | |
ffee3cddfd510b499b7c6f44b1993c21c7654df9 | src/CompetitionPlatform/Views/Project/CommentReplyFormPartial.cshtml | src/CompetitionPlatform/Views/Project/CommentReplyFormPartial.cshtml | @using System.Threading.Tasks
@using CompetitionPlatform.Helpers
@model CompetitionPlatform.Models.ProjectViewModels.ProjectCommentPartialViewModel
<form asp-controller="ProjectDetails" asp-action="AddComment" enctype="multipart/form-data">
@if (ClaimsHelper.GetUser(User.Identity).Email != null)
{
<div... | Add a partial view with form to reply to comments. | Add a partial view with form to reply to comments.
| C# | mit | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform | |
d0f1969322a62d949d9610fd5118d851c6758a74 | src/Exceptional.Web/CassetteConfiguration.cs | src/Exceptional.Web/CassetteConfiguration.cs | using Cassette;
using Cassette.Scripts;
using Cassette.Stylesheets;
namespace Exceptional.Web
{
/// <summary>
/// Configures the Cassette asset bundles for the web application.
/// </summary>
public class CassetteBundleConfiguration : IConfiguration<BundleCollection>
{
public voi... | Drop cassette config in for less integration | Drop cassette config in for less integration
| C# | mit | Mike737377/Exceptional,Mike737377/Exceptional,Mike737377/Exceptional,Mike737377/Exceptional | |
1b1303c8c2df60520eee8ffffca3cb37bc89750e | src/ILCompiler.Compiler/src/Compiler/INonEmittableType.cs | src/ILCompiler.Compiler/src/Compiler/INonEmittableType.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace ILCompiler
{
/// <summary>
/// Used to mark TypeDesc types that are not part of the core type sys... | Add file missed in build | Add file missed in build
[tfs-changeset: 1649988]
| C# | mit | yizhang82/corert,krytarowski/corert,shrah/corert,botaberg/corert,shrah/corert,yizhang82/corert,gregkalapos/corert,gregkalapos/corert,tijoytom/corert,shrah/corert,botaberg/corert,krytarowski/corert,tijoytom/corert,krytarowski/corert,tijoytom/corert,shrah/corert,yizhang82/corert,botaberg/corert,yizhang82/corert,tijoytom/... | |
e4a843f1fbbd6bd916f712806386f5f31dbd85a3 | src/System.Threading.Tasks.Channels/AssemblyAttributes.cs | src/System.Threading.Tasks.Channels/AssemblyAttributes.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Resources;
[assembly:NeutralResourcesLanguage("en")]
| Add NeutralResourcesLanguageAttribute to Channels lib | Add NeutralResourcesLanguageAttribute to Channels lib
| C# | mit | adamsitnik/corefxlab,tarekgh/corefxlab,whoisj/corefxlab,Vedin/corefxlab,dotnet/corefxlab,joshfree/corefxlab,VSadov/corefxlab,VSadov/corefxlab,dotnet/corefxlab,KrzysztofCwalina/corefxlab,benaadams/corefxlab,Vedin/corefxlab,benaadams/corefxlab,VSadov/corefxlab,whoisj/corefxlab,ericstj/corefxlab,ahsonkhan/corefxlab,ahsonk... | |
4476bd20637e4c16f3dd62601682061b1551a246 | src/Common/Utilities/ProtocolHelperExtensions.cs | src/Common/Utilities/ProtocolHelperExtensions.cs | #region Copyright
/* * * * * * * * * * * * * * * * * * * * * * * * * */
/* Carl Zeiss IMT (IZfM Dresden) */
/* Softwaresystem PiWeb */
/* (c) Carl Zeiss 2020 */
/* * * * * * * * * * * * * * * * * * * * * * * * * */
#endregion
namespace Zeiss.I... | Add code for creating challenge from IdentityModel | Add code for creating challenge from IdentityModel
| C# | bsd-3-clause | ZEISS-PiWeb/PiWeb-Api | |
423a836bad0454a226895533e894f98b56a995d7 | src/Xpdm.PurpleOnion/OnionGenerator.cs | src/Xpdm.PurpleOnion/OnionGenerator.cs | using System;
using System.ComponentModel;
namespace Xpdm.PurpleOnion
{
class OnionGenerator
{
private readonly BackgroundWorker worker = new BackgroundWorker();
public OnionGenerator()
{
worker.DoWork += GenerateOnion;
worker.RunWorkerCompleted += RunWorkerCompleted;
}
public event EventHandle... | Add new class to facilitate multi-threaded onion generation | Add new class to facilitate multi-threaded onion generation
| C# | bsd-3-clause | printerpam/purpleonion,printerpam/purpleonion,neoeinstein/purpleonion | |
402c2308a4b7c6d4eb8febedd874d52eb1f41249 | Source/csla.netcore.test/Serialization/ClaimsPrincipalTests.cs | Source/csla.netcore.test/Serialization/ClaimsPrincipalTests.cs | //-----------------------------------------------------------------------
// <copyright file="ClaimsPrincipalTests.cs" company="Marimer LLC">
// Copyright (c) Marimer LLC. All rights reserved.
// Website: https://cslanet.com
// </copyright>
// <summary>no summary</summary>
//-----------------------------------... | Add test to ensure ClaimsPrincipal serializes via MobileFormatter | Add test to ensure ClaimsPrincipal serializes via MobileFormatter
| C# | mit | MarimerLLC/csla,JasonBock/csla,MarimerLLC/csla,MarimerLLC/csla,rockfordlhotka/csla,JasonBock/csla,rockfordlhotka/csla,JasonBock/csla,rockfordlhotka/csla | |
b44db9f5e5036fd59cb4e62f2b2a40df56aaff14 | osu.Game.Tests/Visual/Beatmaps/TestSceneBeatmapCardThumbnail.cs | osu.Game.Tests/Visual/Beatmaps/TestSceneBeatmapCardThumbnail.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.Graphics;
using osu.Game.Beatmaps.Drawables.Cards;
using osu.Game.Overlays;
using osuTK;
names... | Add test scene for thumbnail component | Add test scene for thumbnail component
| C# | mit | peppy/osu,NeoAdonis/osu,peppy/osu,smoogipooo/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu,peppy/osu,ppy/osu | |
347eeec65fcbefea577cd2de488b6f1b0fafb7a4 | osu.Framework.Tests/Shaders/TestSceneShaderDisposal.cs | osu.Framework.Tests/Shaders/TestSceneShaderDisposal.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using NUnit.Framework;
using osu.Framework.Graphics.Shaders;
using osu.Framework.IO.Stores;
using osu.Framework.Testing;
u... | Add shader disposal test coverage | Add shader disposal test coverage
| C# | mit | ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework | |
6e797ddcac59f939f7fed68a9f0a91c1bf9a5143 | osu.Game.Tests/Visual/Editing/TestSceneEditorSaving.cs | osu.Game.Tests/Visual/Editing/TestSceneEditorSaving.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using NUnit.Framework;
using osu.Framework.Input;
using osu.Framework.Testing;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Rulesets.Edit;
usi... | Add test coverage of creating, saving and loading a new beatmap | Add test coverage of creating, saving and loading a new beatmap
| C# | mit | NeoAdonis/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu-new,peppy/osu,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,smoogipooo/osu,ppy/osu | |
b9ce54f3cabdede8f7d2092787ca55f7a7fefd43 | Managers/Watchdog.cs | Managers/Watchdog.cs | /*
* Copyright (c) 2013-2015, SteamDB. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
using System;
using System.Threading;
namespace SteamDatabaseBackend
{
public class Watchdog
{
public Watchdog()
{
... | /*
* Copyright (c) 2013-2015, SteamDB. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
using System;
using System.Threading;
namespace SteamDatabaseBackend
{
class Watchdog
{
public Watchdog()
{
new T... | Make sure changelist timer is enabled in watchdog, because Steamkit can get stuck between being connected and logging in | Make sure changelist timer is enabled in watchdog, because Steamkit can get stuck between being connected and logging in
| C# | bsd-3-clause | agarbuno/SteamDatabaseBackend,SGColdSun/SteamDatabaseBackend,SteamDatabase/SteamDatabaseBackend,GoeGaming/SteamDatabaseBackend,GoeGaming/SteamDatabaseBackend,SteamDatabase/SteamDatabaseBackend,thecocce/SteamDatabaseBackend,thecocce/SteamDatabaseBackend,SGColdSun/SteamDatabaseBackend |
21e20056adf05009833d39631dcb72480fda96ae | src/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Activity.Current.net45.cs | src/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Activity.Current.net45.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.Remoting.Messaging;
using System.Security;
using System.Threading;
namespace System.Diagnostic... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.Remoting.Messaging;
using System.Security;
using System.Threading;
namespace System.Diagnostic... | Make Activity Serializable on NET 4.5 since it's stored in CallContext | Make Activity Serializable on NET 4.5 since it's stored in CallContext
| C# | mit | YoupHulsebos/corefx,JosephTremoulet/corefx,alexperovich/corefx,rjxby/corefx,axelheer/corefx,seanshpark/corefx,wtgodbe/corefx,YoupHulsebos/corefx,Ermiar/corefx,JosephTremoulet/corefx,dhoehna/corefx,fgreinacher/corefx,stephenmichaelf/corefx,rubo/corefx,ravimeda/corefx,DnlHarvey/corefx,parjong/corefx,BrennanConroy/corefx,... |
566d7a360cc3ad88a1dbde328863351e4972e492 | Infusion.Desktop/App.xaml.cs | Infusion.Desktop/App.xaml.cs | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using Avalonia;
using Avalonia.Logging.Serilog;
namespace Infusion.Desktop
{
/// <summary>
/// Interaction logic for App... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using Avalonia;
using Avalonia.Logging.Serilog;
namespace Infusion.Desktop
{
/// <summary>
/// Interaction logic for App... | Set name for Avalonia thread to identify it more easily in debugger. | Set name for Avalonia thread to identify it more easily in debugger.
| C# | mit | uoinfusion/Infusion |
f4fdd0dbe19c27a06dd654b83e05570e4f957833 | src/SilDev/Desktop.cs | src/SilDev/Desktop.cs | #region auto-generated FILE INFORMATION
// ==============================================
// This file is distributed under the MIT License
// ==============================================
//
// Filename: Desktop.cs
// Version: 2017-10-31 08:39
//
// Copyright (c) 2017, Si13n7 Developments (r)
// All rights reser... | Add methods to refresh desktop and file explorer. | Add methods to refresh desktop and file explorer.
| C# | mit | Si13n7/SilDev.CSharpLib | |
f51b50117dc22b7bb42e5f9d00c2eb8d8e3cddc8 | src/Snowflake.Support.Remoting.GraphQl/Types/GuidGraphType.cs | src/Snowflake.Support.Remoting.GraphQl/Types/GuidGraphType.cs | using System;
using GraphQL.Language.AST;
using GraphQL.Types;
namespace GraphQL.Types
{
public class GuidGraphType : ScalarGraphType
{
public GuidGraphType()
{
Name = "Guid";
Description = "Globally Unique Identifier.";
}
public override object ParseVa... | Fix GUIDs not being parsed from Strings | GraphQL: Fix GUIDs not being parsed from Strings
| C# | mpl-2.0 | RonnChyran/snowflake,SnowflakePowered/snowflake,SnowflakePowered/snowflake,RonnChyran/snowflake,SnowflakePowered/snowflake,RonnChyran/snowflake | |
eafa764e6d5915461d71f4918268bd5f19d42c19 | Schedutalk/Schedutalk/Schedutalk/Logic/KTHPlaces/RoomDataContract.cs | Schedutalk/Schedutalk/Schedutalk/Logic/KTHPlaces/RoomDataContract.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Schedutalk.Logic.KTHPlaces
{
[DataContract]
public class RoomDataContract
{
[DataMember(Name = "floorUid")]
public string FloorU... | Implement room exists data contract | Implement room exists data contract
| C# | mit | Zalodu/Schedutalk,Zalodu/Schedutalk | |
4d67f2f9f63137218cdc9b20c293ae043751c866 | osu.Framework.Tests/Visual/Testing/TestSceneNestedGame.cs | osu.Framework.Tests/Visual/Testing/TestSceneNestedGame.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using NUnit.Framework;
using osu.Framework.Testing;
namespace osu.Framework.Tests.Visual.Testing
{
public class TestSceneNestedGame : FrameworkTestSce... | Add test coverage of nested game usage | Add test coverage of nested game usage
| C# | mit | ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,peppy/osu-framework,peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework | |
44ea48638c9be1beda270e12c7950e0c0c79dc5a | Assets/UnityUtilities/Scripts/Misc/ScrollRectByChildren.cs | Assets/UnityUtilities/Scripts/Misc/ScrollRectByChildren.cs | using System;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class ScrollRectByChildren : MonoBehaviour,
IBeginDragHandler,
IDragHandler,
IEndDragHandler,
IScrollHandler
{
public ScrollRect scrollRect;
private void Awake()
{
if (scrollRect == nu... | Add Scroll rect by children component | Add Scroll rect by children component
| C# | mit | insthync/unity-utilities | |
206fc94b8c9e71be4dc3049003f63147bf735a22 | osu.Game/Screens/Edit/Compose/Components/SelectionBoxRotationHandle.cs | osu.Game/Screens/Edit/Compose/Components/SelectionBoxRotationHandle.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.Allocation;
using osu.Framework.Extensions.EnumExtensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osuTK;
using osuT... | Add rotation drag handle component | Add rotation drag handle component
| C# | mit | UselessToucan/osu,smoogipooo/osu,ppy/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu-new,peppy/osu,UselessToucan/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,ppy/osu,peppy/osu,smoogipoo/osu | |
c1c2f79b550ece5086cc8d4d67ca160c6ea18278 | Tests/Mapsui.Tests/ViewportTests.cs | Tests/Mapsui.Tests/ViewportTests.cs | using NUnit.Framework;
namespace Mapsui.Tests
{
[TestFixture]
public class ViewportTests
{
[Test]
public void SetCenterTest()
{
// Arrange
var viewport = new Viewport();
// Act
viewport.SetCenter(10, 20);
// Assert
... | Add unit tests that that does not add much value yet | Add unit tests that that does not add much value yet
| C# | mit | charlenni/Mapsui,charlenni/Mapsui | |
f1b2d60812c7cece3f8fcea52160ffe6da058c2d | src/Marten.Testing/Bugs/Bug_784_Collection_Contains_within_compiled_query.cs | src/Marten.Testing/Bugs/Bug_784_Collection_Contains_within_compiled_query.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Marten.Linq;
using Marten.Testing.Documents;
using Marten.Testing.Harness;
using Shouldly;
using Xunit;
using Xunit.Abstractions;
namespace Marten.Testing.Bugs
{
public class Bug_784_Collection_Contains_within_c... | Test to verify compiled query error was addressed in v4 changes. Closes GH-784 | Test to verify compiled query error was addressed in v4 changes. Closes GH-784
| C# | mit | mysticmind/marten,JasperFx/Marten,mysticmind/marten,JasperFx/Marten,mysticmind/marten,ericgreenmix/marten,ericgreenmix/marten,mysticmind/marten,ericgreenmix/marten,ericgreenmix/marten,JasperFx/Marten | |
ee1e16d28767011aae20dae99f7a4b861d4b8681 | src/AppHarbor.Tests/TypeNameMatcherTest.cs | src/AppHarbor.Tests/TypeNameMatcherTest.cs | using System;
using System.Collections.Generic;
using Xunit;
using Xunit.Extensions;
namespace AppHarbor.Tests
{
public class TypeNameMatcherTest
{
interface IFoo
{
}
class Foo : IFoo { }
private static Type FooType = typeof(Foo);
[Fact]
public void ShouldThrowIfInitializedWithUnnasignableType()
... | using System;
using System.Collections.Generic;
using Xunit;
using Xunit.Extensions;
namespace AppHarbor.Tests
{
public class TypeNameMatcherTest
{
interface IFoo
{
}
class Foo : IFoo { }
private static Type FooType = typeof(Foo);
[Fact]
public void ShouldThrowIfInitializedWithUnnasignableType()
... | Verify that an exception is thrown when more than one type matches | Verify that an exception is thrown when more than one type matches
| C# | mit | appharbor/appharbor-cli |
4c9c65856ca117dd34122e4987c3c0570902d077 | osu.Game/Tests/Beatmaps/TestWorkingBeatmap.cs | osu.Game/Tests/Beatmaps/TestWorkingBeatmap.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.IO;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Graphics.Textures;
using osu.Game.Beatmaps;
using osu... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.IO;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Graphics.Textures;
using osu.Game.Beatmaps;
using osu.Game.Skinning;
usi... | Remove the nullable disable annotation in the testing beatmap and mark some of the properties as nullable. | Remove the nullable disable annotation in the testing beatmap and mark some of the properties as nullable.
This class will be used in some check test cases.
| C# | mit | peppy/osu,ppy/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu |
fc34e2ef7feca53a9cbc9f689e2181511742c512 | bees-in-the-trap/Assets/Scripts/BuilderLevel.cs | bees-in-the-trap/Assets/Scripts/BuilderLevel.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BuilderLevel : MonoBehaviour {
public CameraManager camera;
public void doTakeoff() {
double time = 1.5;
Vector3 pos = camera.transform.position;
pos.y += -10;
//camera.scootTo (pos, time);
camera.rotateTo (new V... | Add a level script that can trigger the ending cutscene | Add a level script that can trigger the ending cutscene
| C# | mit | makerslocal/LudumDare38 | |
5f5f0916a69eaa1162e55fabcb6e988948efc0c1 | src/DotNetCore.CAP/Diagnostics/TracingHeaders.cs | src/DotNetCore.CAP/Diagnostics/TracingHeaders.cs | // Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace DotNetCore.CAP.Diagnostics
{
public class TracingHeaders : IEnumerabl... | Add tracingheader for support Diagnostics | Add tracingheader for support Diagnostics
| C# | mit | dotnetcore/CAP,ouraspnet/cap,dotnetcore/CAP,dotnetcore/CAP | |
f28f5b6f27df2a1e4f3f3d6ff60dc85ecad4d455 | example/BasicExample/DisableJwtAuthentication.cs | example/BasicExample/DisableJwtAuthentication.cs | namespace BasicExample
{
using System;
using System.Collections.Generic;
using Crest.Abstractions;
/// <summary>
/// Shows an example of how to disable JWT authentication.
/// </summary>
public sealed class DisableJwtAuthentication : IJwtSettings
{
/// <inheritdoc />
pu... | Update the example to skip authentication | Update the example to skip authentication
| C# | mit | samcragg/Crest,samcragg/Crest,samcragg/Crest | |
de92d818a852266d28d090bb74c0adb7f6ef81f0 | src/Simplexcel/Cells/XlsxColumnAttribute.cs | src/Simplexcel/Cells/XlsxColumnAttribute.cs | using System;
namespace Simplexcel.Cells
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
internal class XlsxColumnAttribute : Attribute
{
/// <summary>
/// The name of the Column, used as the Header row
/// </summary>
... | Create initial attributes for attribute-driven Worksheet.FromData | Create initial attributes for attribute-driven Worksheet.FromData
| C# | mit | mstum/Simplexcel,mstum/Simplexcel | |
d63df0f271e87fa927416e900382ac8fceefcf90 | src/Firehose.Web/Authors/BrandonOlin.cs | src/Firehose.Web/Authors/BrandonOlin.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class BrandonOlin : IFilterMyBlogPosts, IAmACommunityMember
{
public string FirstName => "Brandon";
... | Add Brandon Olin as author | Add Brandon Olin as author
| C# | mit | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | |
a7bfae689f59b8f4a99535a5831ebb77d95a648b | osu.Framework.Benchmarks/BenchmarkScheduler.cs | osu.Framework.Benchmarks/BenchmarkScheduler.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 BenchmarkDotNet.Attributes;
using osu.Framework.Threading;
namespace osu.Framework.Benchmarks
{
public class BenchmarkScheduler : BenchmarkTest
{
p... | Add benchmark coverage of `Scheduler` | Add benchmark coverage of `Scheduler`
| C# | mit | peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework | |
180fe00fb9c85606f1900d434a45fa674f642b0f | resharper/resharper-unity/src/Internal/DumpPsiForFileAction.cs | resharper/resharper-unity/src/Internal/DumpPsiForFileAction.cs | using System.Diagnostics;
using System.IO;
using System.Text;
using JetBrains.Application.DataContext;
using JetBrains.Application.UI.Actions;
using JetBrains.Application.UI.ActionsRevised.Menu;
using JetBrains.Application.UI.ActionSystem.ActionsRevised.Menu;
using JetBrains.ProjectModel;
using JetBrains.ProjectModel.D... | Add dump PSI for file internal action | Add dump PSI for file internal action
| C# | apache-2.0 | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | |
e19e4557973b25f0e0e214d4498e2e022d0459c9 | Snowflake.API/Core/Server/BaseHttpServer.cs | Snowflake.API/Core/Server/BaseHttpServer.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.Threading;
namespace Snowflake.Core.Server
{
public abstract class BaseHttpServer
{
HttpListener serverListener;
Thread serverThread;
bool c... | Create abstract base class for a HttpServer | Create abstract base class for a HttpServer
| C# | mpl-2.0 | SnowflakePowered/snowflake,SnowflakePowered/snowflake,RonnChyran/snowflake,RonnChyran/snowflake,faint32/snowflake-1,RonnChyran/snowflake,SnowflakePowered/snowflake,faint32/snowflake-1,faint32/snowflake-1 | |
301d7f1123a323ab55a64cdc92344cd9d243168d | ncmb_unity/Assets/Editor/UpdateXcodeProject.cs | ncmb_unity/Assets/Editor/UpdateXcodeProject.cs | using System;
using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEditor.iOS.Xcode;
using UnityEditor.Callbacks;
using System.Collections;
public class UpdateXcodeProject
{
[PostProcessBuildAttribute (0)]
public static void OnPostprocessBuild (BuildTarget buildTarget, string pathToBuiltProject)
{
... | Fix build error for XCode | Fix build error for XCode
| C# | apache-2.0 | NIFTYCloud-mbaas/ncmb_unity,NIFTYCloud-mbaas/ncmb_unity,NIFTYCloud-mbaas/ncmb_unity | |
e51444a99d11291b35de48ad84501f8933777a76 | BrickPile.Core/Extensions/RouteDataExtensions.cs | BrickPile.Core/Extensions/RouteDataExtensions.cs | using System.Web;
using System.Web.Routing;
using BrickPile.Core.Routing;
namespace BrickPile.Core.Extensions
{
public static class RouteDataExtensions
{
public static T GetCurrentPage<T>(this RouteData data)
{
return (T)data.Values[PageRoute.CurrentPageKey];
}
pub... | Add helper extension methods for route data - Added RouteData.GetCurrentPage<T>() - Added RouteData.GetNavigationContext() | Add helper extension methods for route data
- Added RouteData.GetCurrentPage<T>()
- Added RouteData.GetNavigationContext()
| C# | mit | brickpile/brickpile,brickpile/brickpile,brickpile/brickpile |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.