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 |
|---|---|---|---|---|---|---|---|---|
1fce999d3a6d8092442173ae6de978cb901ae788 | Remove Pop Start/Finish debug timing text... | roflkins/IdentityModel.OidcClient2,roflkins/IdentityModel.OidcClient2 | src/IdentityModel.OidcClient/PopTokenExtensions.cs | src/IdentityModel.OidcClient/PopTokenExtensions.cs | using System;
using Microsoft.IdentityModel.Tokens;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Cryptography;
using System.Threading.Tasks;
namespace IdentityModel.OidcClient
{
public static class PopTokenExtensions
{
/// <summary>
/// Outputs a signed B64 string for the token... | using System;
using Microsoft.IdentityModel.Tokens;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Cryptography;
using System.Threading.Tasks;
namespace IdentityModel.OidcClient
{
public static class PopTokenExtensions
{
/// <summary>
/// Outputs a signed B64 string for the token... | apache-2.0 | C# |
3a47243df6e4ffcc0c42f3a4621e47faf7969dc9 | Add Scale property | sakapon/KLibrary-Labs | UILab/UI/UI/Converters/ScaleConverter.cs | UILab/UI/UI/Converters/ScaleConverter.cs | using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
namespace KLibrary.Labs.UI.Converters
{
[ValueConversion(typeof(double), typeof(double))]
public class ScaleConverter : DependencyObject, IValueConverter
{
public static readonly DependencyProperty ScaleProp... | using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
namespace KLibrary.Labs.UI.Converters
{
// TODO: Add Scale property.
[ValueConversion(typeof(double), typeof(double))]
public class ScaleConverter : IValueConverter
{
public object Convert(object value, ... | mit | C# |
1829ece4bc8de79d0526590f7d9b0777dfdc7316 | Add copyright | moljac/Xamarin.Mobile,orand/Xamarin.Mobile,xamarin/Xamarin.Mobile,haithemaraissia/Xamarin.Mobile,nexussays/Xamarin.Mobile,xamarin/Xamarin.Mobile | WindowsRT/Xamarin.Mobile/Properties/AssemblyInfo.cs | WindowsRT/Xamarin.Mobile/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("Xa... | 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("Xa... | apache-2.0 | C# |
e767c405b46e3b8121864d193799466f912b303c | Fix bug: wrong test for cancellation | chromium/vs-chromium,chromium/vs-chromium,chromium/vs-chromium,chromium/vs-chromium | src/VsChromium/ServerProxy/FileSystemTreeSource.cs | src/VsChromium/ServerProxy/FileSystemTreeSource.cs | // Copyright 2015 The Chromium Authors. 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.ComponentModel.Composition;
using VsChromium.Core.Ipc;
using VsChromium.Core.Ipc.TypedMessages;
using VsChromium.Threa... | // Copyright 2015 The Chromium Authors. 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.ComponentModel.Composition;
using VsChromium.Core.Ipc;
using VsChromium.Core.Ipc.TypedMessages;
using VsChromium.Threa... | bsd-3-clause | C# |
4932948a4d17dbecf9c57f5f317c92d29c1b4fca | fix indent | sdcb/sdmap | sdmap/src/sdmap.vstool/Tagger/Antlr/SdmapLexer.cs | sdmap/src/sdmap.vstool/Tagger/Antlr/SdmapLexer.cs | using Antlr4.Runtime;
using Microsoft.VisualStudio.Text;
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace sdmap.Vstool.Tagger.Antlr
{
[Export(typeof(ISdmapLexerHelper))]
class Sdma... | using Antlr4.Runtime;
using Microsoft.VisualStudio.Text;
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace sdmap.Vstool.Tagger.Antlr
{
[Export(typeof(ISdmapLexerHelper))]
class Sdma... | mit | C# |
de399738ede64823bb8503a802d9108376c1fbe6 | fix update sdk version number | NIFTYCloud-mbaas/ncmb_unity,NIFTYCloud-mbaas/ncmb_unity,NIFTYCloud-mbaas/ncmb_unity | ncmb_unity/Assets/NCMB/Script/CommonConstant.cs | ncmb_unity/Assets/NCMB/Script/CommonConstant.cs | /*******
Copyright 2017 FUJITSU CLOUD TECHNOLOGIES LIMITED 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.apache.org/licenses/LICENSE-2.0
Unless required by... | /*******
Copyright 2017 FUJITSU CLOUD TECHNOLOGIES LIMITED 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.apache.org/licenses/LICENSE-2.0
Unless required by... | apache-2.0 | C# |
9963a8519f49453323769960d6bd2d99597010cc | Set version to 1.2 | ccellar/mite.net,ccellar/mite.net | trunk/CodeBase/mite.net/Properties/AssemblyInfo.cs | trunk/CodeBase/mite.net/Properties/AssemblyInfo.cs | //-----------------------------------------------------------------------
// <copyright>
// This software is licensed as Microsoft Public License (Ms-PL).
// </copyright>
//-----------------------------------------------------------------------
using System;
using System.Reflection;
using System.Runtime.Compile... | //-----------------------------------------------------------------------
// <copyright>
// This software is licensed as Microsoft Public License (Ms-PL).
// </copyright>
//-----------------------------------------------------------------------
using System;
using System.Reflection;
using System.Runtime.Compile... | bsd-3-clause | C# |
9b8184c7d90defef736e087a758b70be7fd65f52 | Fix assertion, need to check if it's not null first. | gael-ltd/NEventStore | src/NEventStore.Tests/DefaultSerializationWireupTests.cs | src/NEventStore.Tests/DefaultSerializationWireupTests.cs | namespace NEventStore
{
using FluentAssertions;
using NEventStore.Persistence.AcceptanceTests;
using NEventStore.Persistence.AcceptanceTests.BDD;
using System;
using Xunit;
public class DefaultSerializationWireupTests
{
public class when_building_an_event_store_without_an_explicit_... | namespace NEventStore
{
using FluentAssertions;
using NEventStore.Persistence.AcceptanceTests;
using NEventStore.Persistence.AcceptanceTests.BDD;
using System;
using Xunit;
public class DefaultSerializationWireupTests
{
public class when_building_an_event_store_without_an_explicit_... | mit | C# |
a0265b82a84105f1ed51fb04912f97392edaf1cd | Fix for bug #6: The SimpleBatch.TableAttribute should not have a public name setter | Azure/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,vasanthangel4/azure-webjobs-sdk,shrishrirang/azure-webjobs-sdk,brendankowitz/azure-webjobs-sdk,oliver-feng/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,brendankowitz/azure-webjobs-sdk,shrishrirang/azure-webjobs-sdk,oliver-feng/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,o... | src/Microsoft.WindowsAzure.Jobs/TableAttribute.cs | src/Microsoft.WindowsAzure.Jobs/TableAttribute.cs | using System;
using System.Globalization;
namespace Microsoft.WindowsAzure.Jobs
{
/// <summary>
/// Represents an attribute that is used to provide details about how a Windows Azure Table is
/// bound as a method parameter for input and output.
/// The method parameter type by default can be either an ... | using System;
using System.Globalization;
namespace Microsoft.WindowsAzure.Jobs
{
/// <summary>
/// Represents an attribute that is used to provide details about how a Windows Azure Table is
/// bound as a method parameter for input and output.
/// The method parameter type by default can be either an ... | mit | C# |
c6863cfbbb1ade642aca6962a94c795d15f14ede | Add back operator== and operator!= | peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework | osu.Framework/Localisation/LocalisableString.cs | osu.Framework/Localisation/LocalisableString.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;
#nullable enable
namespace osu.Framework.Localisation
{
/// <summary>
/// A descriptor representing text that can be localised and formatted.
... | // 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;
#nullable enable
namespace osu.Framework.Localisation
{
/// <summary>
/// A descriptor representing text that can be localised and formatted.
... | mit | C# |
9ce5d77a0d19787f1431eea0a66096ab597fd54b | fix in List view | sdl/dxa-web-application-dotnet,sdl/dxa-web-application-dotnet | Site/Views/List/Core/List.cshtml | Site/Views/List/Core/List.cshtml | @model Sdl.Web.Mvc.Models.ContentList<Teaser>
<div @Markup.Entity(Model)>
@if (Model.Headline!=null)
{
<h3 @Markup.Property(Model,"Headline")>@Model.Headline</h3>
}
<ul>
@foreach (var item in Model.ItemListElements)
{
<li>
@if (item.Link != null && item.Link.Url != null)... | @model Sdl.Web.Mvc.Models.ContentList<Teaser>
<div @Markup.Entity(Model)>
@if (Model.Headline!=null)
{
<h3 @Markup.Property(Model,"Headline")>@Model.Headline</h3>
}
<ul>
@foreach (var item in Model.ItemListElements)
{
<li>
@if (item.Link.Url!=null)
{
... | apache-2.0 | C# |
1fbc47f75857140072163b960ce0392d3f0e1910 | Change library command line option | MHeasell/SnappyMap,MHeasell/SnappyMap | SnappyMap/CommandLine/Options.cs | SnappyMap/CommandLine/Options.cs | namespace SnappyMap.CommandLine
{
using System.Collections.Generic;
using global::CommandLine;
using global::CommandLine.Text;
public class Options
{
[Option('s', "size", DefaultValue = "8x8", HelpText = "Set the size of the output map.")]
public string Size { get; set; ... | namespace SnappyMap.CommandLine
{
using System.Collections.Generic;
using global::CommandLine;
using global::CommandLine.Text;
public class Options
{
[Option('s', "size", DefaultValue = "8x8", HelpText = "Set the size of the output map.")]
public string Size { get; set; ... | mit | C# |
e8f9dccd2b7cd975a9b1dcb371a8bce860cb0732 | Add the RequiresSta property. | averrunci/Carna | Source/Carna/FixtureAttribute.cs | Source/Carna/FixtureAttribute.cs | // Copyright (C) 2017-2020 Fievus
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
using System;
namespace Carna
{
/// <summary>
/// A base attribute that is applied to a fixture used by Carna.
/// </summary>
public abstract ... | // Copyright (C) 2017 Fievus
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
using System;
namespace Carna
{
/// <summary>
/// A base attribute that is applied to a fixture used by Carna.
/// </summary>
public abstract class... | mit | C# |
def804300c4c961698b3f25cf2335b4d4a80b9b6 | Update assembly to version 0. | SeanKilleen/Sieve.NET | src/app/Sieve.NET.Core/Properties/AssemblyInfo.cs | src/app/Sieve.NET.Core/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Si... | 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("Si... | mit | C# |
cfa0657b491a3f8a68bccd5c432736465d456418 | Update index.cshtml (#411) | reactiveui/website,reactiveui/website,reactiveui/website,reactiveui/website | input/slack/index.cshtml | input/slack/index.cshtml | <meta http-equiv="refresh" content="1;url=https://join.slack.com/t/reactivex/shared_invite/enQtMzM2NzIxNTg0MTYxLTdiMzRhZGI3MDA4NWVkMzZiZTA3MGNhODQ4MDFjZGM2M2JiNmNkZTM2NzMyNDE3ZTIyZGJlMmU0OTVkOWJmYzU" />
Join by visiting <a href="https://join.slack.com/t/reactivex/shared_invite/enQtMzM2NzIxNTg0MTYxLTdiMzRhZGI3MDA4NWVkM... | <meta http-equiv="refresh" content="1;url=mailto:hello@reactiveui.net?subject%3D%22Howdy%2C%20can%20you%20send%20me%20an%20invite%20to%20Slack%3F%22" />
Send an email to <a href="mailto:hello@reactiveui.net?subject%3D%22Howdy%2C%20can%20you%20send%20me%20an%20invite%20to%20Slack%3F%22">hello@reactiveui.net</a> to obta... | mit | C# |
4b551b20e6952537f290273e06ff1f547a866ed5 | Load cadence constraint file to PCB-Investigator | sts-CAD-Software/PCB-Investigator-Scripts | Cadence/LoadCadenceNetGroups.cs | Cadence/LoadCadenceNetGroups.cs | //Synchronous template
//-----------------------------------------------------------------------------------
// PCB-Investigator Automation Script
// Created on 29.06.2016
// Autor Guenther
//
// Empty template to fill for synchronous script.
//-------------------------------------------------------------------... | //Synchronous template
//-----------------------------------------------------------------------------------
// PCB-Investigator Automation Script
// Created on 29.06.2016
// Autor Guenther
//
// Empty template to fill for synchronous script.
//-------------------------------------------------------------------... | bsd-3-clause | C# |
2ac90c2e9fc351b39691b6d1f96e4f7ccf9cf9b5 | Remove unused code. Improvements | sdglhm/C-Location-Fetching-from-google | tt/Program.cs | tt/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Web;
using System.Net;
using System.IO;
using RestSharp;
using tt;
namespace tt
{
class Program
{
static void Main(stri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Web;
using System.Net;
using System.IO;
using RestSharp;
using tt;
namespace tt
{
class Program
{
static void Main(stri... | apache-2.0 | C# |
120dffda5fb4ccc635a7ff0cb53e038f145a8bcb | Change parsing to only trigger on changed lines. | jcheng31/todoPad | TodoPad/Views/MainWindow.xaml.cs | TodoPad/Views/MainWindow.xaml.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using TodoPad.Models;
using TodoPad.Task_Parser;
namespace TodoPad.Views
{
/// <summary>
/// Interaction logic for MainWindow.xaml
///... | using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using TodoPad.Models;
using TodoPad.Task_Parser;
namespace TodoPad.Views
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public par... | mit | C# |
5fcc561f1c2abe024600bfc296d95fa4253157d7 | add code to log succeed of Caching.CleanCache() at CachingCleanCache() | NDark/ndinfrastructure,NDark/ndinfrastructure | Unity/EditorTools/EditorTools.cs | Unity/EditorTools/EditorTools.cs | /**
MIT License
Copyright (c) 2017 NDark
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... | /**
MIT License
Copyright (c) 2017 NDark
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... | mit | C# |
7f55524da579a496e0e8dda1284730d8f849dd24 | add directory search for ref assemblies | tziemek/WeeklyCurriculum | WeeklyCurriculum.Wpf/App.xaml.cs | WeeklyCurriculum.Wpf/App.xaml.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition.Hosting;
using System.Composition.Convention;
using System.Composition.Hosting;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Windows;
using log4net;
using WeeklyCurriculum.Components;
using WeeklyCurric... | using System.Collections.Generic;
using System.ComponentModel.Composition.Hosting;
using System.Composition.Convention;
using System.Composition.Hosting;
using System.Linq;
using System.Reflection;
using System.Windows;
using log4net;
using WeeklyCurriculum.Components;
using WeeklyCurriculum.Contracts;
namespace Week... | mit | C# |
55018579c3565e0c4abf8fce19e5a30c8577da29 | Add category to test run | mallibone/MvvmLightSamples | MvvmLightBindings/MvvmLightBindings.UITest/Tests.cs | MvvmLightBindings/MvvmLightBindings.UITest/Tests.cs | using System.Linq;
using NUnit.Framework;
using Xamarin.UITest;
namespace MvvmLightBindings.UITest
{
[TestFixture(Platform.Android)]
[TestFixture(Platform.iOS)]
public class Tests
{
IApp app;
Platform platform;
public Tests(Platform platform)
{
this.platfor... | using System.Linq;
using NUnit.Framework;
using Xamarin.UITest;
namespace MvvmLightBindings.UITest
{
[TestFixture(Platform.Android)]
[TestFixture(Platform.iOS)]
public class Tests
{
IApp app;
Platform platform;
public Tests(Platform platform)
{
this.platfor... | apache-2.0 | C# |
39649747aaad9092a32d2d97e1897ecaecded170 | Simplify and synchronise multiplayer screen transitions | NeoAdonis/osu,UselessToucan/osu,johnneijzen/osu,johnneijzen/osu,DrabWeb/osu,DrabWeb/osu,DrabWeb/osu,peppy/osu,peppy/osu,naoey/osu,NeoAdonis/osu,UselessToucan/osu,EVAST9919/osu,smoogipoo/osu,naoey/osu,EVAST9919/osu,ppy/osu,peppy/osu-new,smoogipoo/osu,ppy/osu,smoogipooo/osu,UselessToucan/osu,ZLima12/osu,ZLima12/osu,ppy/o... | osu.Game/Screens/Multi/Screens/MultiplayerScreen.cs | osu.Game/Screens/Multi/Screens/MultiplayerScreen.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.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Screens;
using osu.Game.Graphics.Containers;
namespace osu.Game.Screens.Mult... | // 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.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Screens;
using osu.Game.Graphics.Containers;
namespace osu.Game.Screens.Mult... | mit | C# |
027a110c614f08501ec1abf1e64ed259757bfe13 | Update Utils.cs | Facepunch/Facepunch.Steamworks,Facepunch/Facepunch.Steamworks,Facepunch/Facepunch.Steamworks | Facepunch.Steamworks/Redux/Utils.cs | Facepunch.Steamworks/Redux/Utils.cs | using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using SteamNative;
namespace Steamworks
{
/// <summary>
/// Interface which provides access to a range of miscellaneous utility functions
/// </summary>
public static class Utils
... | using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using SteamNative;
namespace Steamworks
{
/// <summary>
/// Interface which provides access to a range of miscellaneous utility functions
/// </summary>
public static class Utils
... | mit | C# |
fb69d085f6e2c437bdbacb71283ce9ad8e71926a | Add support for fixed structures | c0nnex/SPAD.neXt,c0nnex/SPAD.neXt | SPAD.Interfaces/SimConnect/DataItemAttributeBase.cs | SPAD.Interfaces/SimConnect/DataItemAttributeBase.cs | using System;
namespace SPAD.neXt.Interfaces.SimConnect
{
public interface IDataItemAttributeBase
{
int ItemIndex
{
get;
set;
}
int ItemSize
{
get;
set;
}
float ItemEpsilon
{
get;
... | using System;
namespace SPAD.neXt.Interfaces.SimConnect
{
public interface IDataItemAttributeBase
{
int ItemIndex
{
get;
set;
}
int ItemSize
{
get;
set;
}
float ItemEpsilon
{
get;
... | mit | C# |
8b4807cfc4b37b82932ea85a986307b4d7a3c82f | Add descriptor to IgnoreCase for parsing of enum | digipost/digipost-api-client-dotnet | Digipost.Api.Client.Domain/Identify/IdentificationById.cs | Digipost.Api.Client.Domain/Identify/IdentificationById.cs | using System;
using Digipost.Api.Client.Domain.Enums;
namespace Digipost.Api.Client.Domain.Identify
{
public class IdentificationById : IIdentification
{
public IdentificationById(IdentificationType identificationType, string value)
{
IdentificationType = identificationType;
... | using System;
using Digipost.Api.Client.Domain.Enums;
namespace Digipost.Api.Client.Domain.Identify
{
public class IdentificationById : IIdentification
{
public IdentificationById(IdentificationType identificationType, string value)
{
IdentificationType = identificationType;
... | apache-2.0 | C# |
eec30d4e1f52b139ec62f6af0b1baca23de20728 | Revert the title | rprouse/IdeaWeb,rprouse/IdeaWeb | IdeaWeb/Views/Home/Index.cshtml | IdeaWeb/Views/Home/Index.cshtml | @model IEnumerable<IdeaWeb.Models.Idea>
@{
ViewData["Title"] = "Home";
}
<h2>My Ideas</h2>
<ul class="idea">
@foreach (var item in Model)
{
<li>
<a asp-action="Details" asp-controller="Ideas" asp-route-id="@item.Id">
<span class="rating btn btn-default btn-sm">@item.Rating</span>
<s... | @model IEnumerable<IdeaWeb.Models.Idea>
@{
ViewData["Title"] = "Home";
}
<h2>My Many Ideas</h2>
<ul class="idea">
@foreach (var item in Model)
{
<li>
<a asp-action="Details" asp-controller="Ideas" asp-route-id="@item.Id">
<span class="rating btn btn-default btn-sm">@item.Rating</span>
... | mit | C# |
a59aee1bddaf78e232aba7a37867ef7efb20320b | Bump to version 2.5.2.0 | Silv3rPRO/proshine | PROShine/Properties/AssemblyInfo.cs | PROShine/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
using System.Windows;
// 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: As... | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
using System.Windows;
// 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: As... | mit | C# |
3c33f0cfa2c65748fc1e1f34251056c8fe7e8a5c | update version | IUMDPI/IUMediaHelperApps | Recorder/Properties/AssemblyInfo.cs | Recorder/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... | apache-2.0 | C# |
9326a1879031a7355dba37806ae62ebe84bb2ccd | use WinRT.Interop | tibel/Caliburn.Light | samples/Demo.HelloSpecialValues/DialogHelper.cs | samples/Demo.HelloSpecialValues/DialogHelper.cs | using Microsoft.UI.Xaml;
using Windows.Foundation;
using Windows.UI.Popups;
namespace Demo.HelloSpecialValues
{
//WORKAROUND https://github.com/microsoft/microsoft-ui-xaml/issues/4167
internal static class DialogHelper
{
public static IAsyncOperation<IUICommand> ShowAsyncEx(this MessageDialog dial... | using Microsoft.UI.Xaml;
using System;
using System.Runtime.InteropServices;
using Windows.Foundation;
using Windows.UI.Popups;
using WinRT;
namespace Demo.HelloSpecialValues
{
//WORKAROUND https://github.com/microsoft/microsoft-ui-xaml/issues/4167
internal static class DialogHelper
{
public stati... | mit | C# |
0f1473b49abcb349239f946b82952c7ae1d96738 | Implement FontsHandler.FontFamilyAvailable (missed this one) | bbqchickenrobot/Eto-1,l8s/Eto,PowerOfCode/Eto,PowerOfCode/Eto,l8s/Eto,l8s/Eto,bbqchickenrobot/Eto-1,bbqchickenrobot/Eto-1,PowerOfCode/Eto | Source/Eto.Platform.Windows/Drawing/FontsHandler.cs | Source/Eto.Platform.Windows/Drawing/FontsHandler.cs | using Eto.Drawing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sd = System.Drawing;
namespace Eto.Platform.Windows.Drawing
{
public class FontsHandler : WidgetHandler<Widget>, IFonts
{
HashSet<string> availableFontFamilies;
public IEnumerable<FontFamily> Available... | using Eto.Drawing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sd = System.Drawing;
namespace Eto.Platform.Windows.Drawing
{
public class FontsHandler : WidgetHandler<Widget>, IFonts
{
public IEnumerable<FontFamily> AvailableFontFamilies
{
get {
return sd.Fo... | bsd-3-clause | C# |
a9fbabebb6f4347312c23a10dd866b9060292fcb | Correct action for send log in link form | bradwestness/SecretSanta,bradwestness/SecretSanta | SecretSanta/Views/Home/Index.cshtml | SecretSanta/Views/Home/Index.cshtml | @model SendLogInLinkModel
@{
ViewBag.Title = "Send Log In Link";
}
<div class="jumbotron">
<div class="row">
<div class="col-lg-6">
<h1>Welcome to Secret Santa!</h1>
@using (Html.BeginForm("SendLogInLink", "Account", FormMethod.Post, new { role = "form", @class = "form-horizon... | @model SendLogInLinkModel
@{
ViewBag.Title = "Send Log In Link";
}
<div class="jumbotron">
<div class="row">
<div class="col-lg-6">
<h1>Welcome to Secret Santa!</h1>
@using (Html.BeginForm("LogIn", "Account", FormMethod.Post, new { role = "form", @class = "form-horizontal" }))... | apache-2.0 | C# |
eea1e415e3c989078130ce1134758359ed8d0569 | test fix | chrismckelt/WebMinder,chrismckelt/WebMinder,chrismckelt/WebMinder | Core.Tests/RuleSetRunnerFixture.cs | Core.Tests/RuleSetRunnerFixture.cs | using System;
using System.Linq;
using WebMinder.Core.Handlers;
using WebMinder.Core.Rules.IpBlocker;
using Xunit;
namespace WebMinder.Core.Tests
{
public class RuleSetRunnerFixture
{
private AggregateRuleSetHandler<TestObject> _ruleSetHandler;
private const string RuleSet = "RuleSetRunnerFixt... | using System;
using System.Linq;
using WebMinder.Core.Handlers;
using WebMinder.Core.Rules.IpBlocker;
using Xunit;
namespace WebMinder.Core.Tests
{
public class RuleSetRunnerFixture
{
private AggregateRuleSetHandler<TestObject> _ruleSetHandler;
private const string RuleSet = "RuleSetRunnerFixt... | apache-2.0 | C# |
1da6ae4b5d44cbd3be2ac505eecb1cebfb3f9789 | add to confirmation | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Mvc/Views/Lab/Confirmation.cshtml | Anlab.Mvc/Views/Lab/Confirmation.cshtml | @using Humanizer
@model AnlabMvc.Models.Order.OrderReviewModel
@{
ViewData["Title"] = "Confirmation";
}
<h3>This info is outdated and will be updated from the request number</h3>
@Html.Partial("_OrderDetails")
<form asp-controller="Lab" asp-action="Confirmation" asp-route-id="@Model.Order.Id" method="post">
... | @using Humanizer
@model AnlabMvc.Models.Order.OrderReviewModel
@{
ViewData["Title"] = "Confirmation";
}
<h3>This info is outdated and will be updated from the request number</h3>
@Html.Partial("_OrderDetails")
<form asp-controller="Lab" asp-action="Confirmation" asp-route-id="@Model.Order.Id" method="post">
... | mit | C# |
e746ff27fa423cdfb90dc869d56fcbcb425e894d | Revert "Don't force resolution aspect in WebGL" | NitorInc/NitoriWare,Barleytree/NitoriWare,Barleytree/NitoriWare,NitorInc/NitoriWare | Assets/Scripts/Global/GameController.cs | Assets/Scripts/Global/GameController.cs | using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.Events;
using System.Collections;
public class GameController : MonoBehaviour
{
public static GameController instance;
#pragma warning disable 0649
[SerializeField]
private bool disableCursor;
[SerializeField]
private MicrogameCol... | using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.Events;
using System.Collections;
public class GameController : MonoBehaviour
{
public static GameController instance;
#pragma warning disable 0649
[SerializeField]
private bool disableCursor;
[SerializeField]
private MicrogameCol... | mit | C# |
f44c89fb3cb8cca060b788467a61501fb2d77be3 | format script to adhere to coding conventions | mattboy64/SteamVR_Unity_Toolkit,adamjweaver/VRTK,Innoactive/IA-unity-VR-toolkit-VRTK,nmccarty/htvr,thestonefox/VRTK,Fulby/VRTK,red-horizon/VRTK,virror/VRTK,pargee/SteamVR_Unity_Toolkit,gpvigano/VRTK,gomez-addams/SteamVR_Unity_Toolkit,TMaloteaux/SteamVR_Unity_Toolkit,thestonefox/SteamVR_Unity_Toolkit,gpvigano/SteamVR_Un... | Assets/VRTK/Scripts/VRTK_HipTracking.cs | Assets/VRTK/Scripts/VRTK_HipTracking.cs | // Hip Tracking|Scripts|0135
namespace VRTK
{
using UnityEngine;
/// <summary>
/// Hip Tracking attempts to reasonably track hip position in the absence of a hip position sensor.
/// </summary>
/// <remarks>
/// The Hip Tracking script is placed on an empty GameObject which will be positioned ... | // Hip Tracking|Scripts|0135
namespace VRTK
{
using UnityEngine;
using System.Collections;
/// <summary>
/// Hip Tracking attempts to reasonably track hip position in the absence of a hip position sensor.
/// </summary>
/// <remarks>
/// The Hip Tracking script is placed on an empty GameObject which will be po... | mit | C# |
1f3235fb4fb5d472b601cc6908eb3761e326391b | Add two-way binding | sakapon/Samples-2016,sakapon/Samples-2016 | BindingSample/BindingConsole/Program.cs | BindingSample/BindingConsole/Program.cs | using System;
using System.Windows.Controls;
using System.Windows.Data;
namespace BindingConsole
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Bind_OneWay();
Bind_TwoWay();
}
static void Bind_OneWay()
{
... | using System;
using System.Windows.Controls;
using System.Windows.Data;
namespace BindingConsole
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Bind_OneWay();
}
static void Bind_OneWay()
{
// Binding Sour... | mit | C# |
7caafb00d85281b36f7f9a7d05894f6ce569bc87 | Set version v2.2.0.1 | devalkeralia/Lean,mabeale/Lean,squideyes/Lean,andrewhart098/Lean,tomhunter-gh/Lean,devalkeralia/Lean,JKarathiya/Lean,Jay-Jay-D/LeanSTP,Phoenix1271/Lean,AnshulYADAV007/Lean,tomhunter-gh/Lean,devalkeralia/Lean,mabeale/Lean,tomhunter-gh/Lean,kaffeebrauer/Lean,Jay-Jay-D/LeanSTP,kaffeebrauer/Lean,AnshulYADAV007/Lean,Phoenix... | Common/Properties/SharedAssemblyInfo.cs | Common/Properties/SharedAssemblyInfo.cs | using System.Reflection;
// common assembly attributes
[assembly: AssemblyDescription("Lean Algorithmic Trading Engine - QuantConnect.com")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyCompany("QuantConnect")]
[assembly: AssemblyTrademark("QuantConnect")]
[assembly: AssemblyVersion("2.2.0.1"... | using System.Reflection;
// common assembly attributes
[assembly: AssemblyDescription("Lean Algorithmic Trading Engine - QuantConnect.com")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyCompany("QuantConnect")]
[assembly: AssemblyTrademark("QuantConnect")]
[assembly: AssemblyVersion("2.2.0.0"... | apache-2.0 | C# |
aa9e6d62717e59a6ddc3d9b6747ba4c241e3c89a | Update KeyUsage.cs | KingpinBen/Public-Stuff | KeyUsage.cs | KeyUsage.cs | using System.Collections.Generic;
/// <summary>
/// A basic comparer to avoid Dictionary allocation during indexing.
///
/// Mono doesn't like having enum's as the key in a dictionary and allocates
/// memory that then needs to be cleared by the GC (damned DefaultComparer)
/// </summary>
public sealed class KeyUsageC... | public enum KeyUsage
{
Ability1,
Ability2,
Ability3,
Ability4,
Recall,
Inventory1,
Inventory2,
Inventory3,
Inventory4,
Inventory5,
Inventory6,
Inventory7,
Stop,
}
| mit | C# |
07f455f270fd117badda9dea2cb257bf6c4574b5 | sort like putty | dietsche/infinite-putty-tunnel | Infinite-PuTTY-Tunnel/SessionManager.cs | Infinite-PuTTY-Tunnel/SessionManager.cs | /**
* Copyright (c) 2016, Gregory L. Dietsche
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | /**
* Copyright (c) 2016, Gregory L. Dietsche
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | mit | C# |
89f3d72796563b5d905aaace69010e2b558b80d4 | Make build less complex | nikeee/HolzShots | src/HolzShots.Core.Tests/Properties/AssemblyInfo.cs | src/HolzShots.Core.Tests/Properties/AssemblyInfo.cs | using HolzShots.Common;
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("HolzShots.Core.Tests")]
[assembly: AssemblyProduct("HolzShots.Core.Tests")]
[assembly: AssemblyDescription("HolzShots Core Component Tests")]
[assembly:... | using HolzShots.Common;
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("HolzShots.Core.Tests")]
[assembly: AssemblyProduct("HolzShots.Core.Tests")]
[assembly: AssemblyDescription("HolzShots Core Component Tests")]
[assembly:... | agpl-3.0 | C# |
ed388731e429f526bfa37188505a2886eda01202 | Test not likely to pass most of the time | SanSYS/MassTransit,MassTransit/MassTransit,SanSYS/MassTransit,phatboyg/MassTransit,MassTransit/MassTransit,jacobpovar/MassTransit,jacobpovar/MassTransit,phatboyg/MassTransit | src/MassTransit.Tests/Transports/Multicast_Specs.cs | src/MassTransit.Tests/Transports/Multicast_Specs.cs | // Copyright 2007-2008 The Apache Software Foundation.
//
// 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 b... | // Copyright 2007-2008 The Apache Software Foundation.
//
// 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 re... | apache-2.0 | C# |
db02267cef4978b88af83f0f2e51733c89a64426 | bump the version number | ristogod/INotify | INotify/Properties/AssemblyInfo.cs | INotify/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("INotify")]
[assembly: AssemblyDescription("Inheritable classes that implement notifying interfaces for use with WPF.")]
#if DEBUG
[assembly: AssemblyConfiguration("Debug")]
#else
[assembly: AssemblyConfiguration("Release")]
#end... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("INotify")]
[assembly: AssemblyDescription("Inheritable classes that implement notifying interfaces for use with WPF.")]
#if DEBUG
[assembly: AssemblyConfiguration("Debug")]
#else
[assembly: AssemblyConfiguration("Release")]
#end... | mit | C# |
cb79c950d722c9785f46e3d58153f316cb44546f | add Left/Right properties | kato-im/MMDrawerController-Sharp | ApiDefinition.cs | ApiDefinition.cs | using System;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace MMDrawerControllerSharp
{
[BaseType (typeof(UIViewController))]
public interface MMDrawerController
{
[Export("initWithCenterViewController:leftDrawerViewController:rightDrawerViewController:")]
IntPtr Constructor(UIViewController center... | using System;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace MMDrawerControllerSharp
{
[BaseType (typeof(UIViewController))]
public interface MMDrawerController
{
[Export("initWithCenterViewController:leftDrawerViewController:")]
IntPtr Constructor(UIViewController centerViewController, UIViewCont... | mit | C# |
f31605d3218ce88b7368806892ec9d20a02d8440 | Update Program.cs | alokpro/GitTest1 | ConsoleApplication1/ConsoleApplication1/Program.cs | ConsoleApplication1/ConsoleApplication1/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
//Code just added in GitHub
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# |
7afed7da64f921ecc5b929441592215f72b6608b | print the absolute uri of the request | cloudfoundry/wats,cloudfoundry-incubator/wats,cloudfoundry-incubator/wats,cloudfoundry/wats,cloudfoundry-incubator/wats,cloudfoundry-incubator/wats,cloudfoundry/wats,cloudfoundry-incubator/wats,cloudfoundry/wats,cloudfoundry/wats | Nora/Controllers/InstancesController.cs | Nora/Controllers/InstancesController.cs | using System;
using System.Web.Http;
namespace nora.Controllers
{
public class InstancesController : ApiController
{
[Route("~/")]
[HttpGet]
public IHttpActionResult Root()
{
return Ok(String.Format("hello i am nora running on {0}", Request.RequestUri.Abs... | using System;
using System.Web.Http;
namespace nora.Controllers
{
public class InstancesController : ApiController
{
[Route("~/")]
[HttpGet]
public IHttpActionResult Root()
{
return Ok("hello i am nora");
}
[Route("~/id")]
[Ht... | apache-2.0 | C# |
622d4e078f47f8fc488163df059ec853967c3127 | handle language in 1.x and 2.x plugins | quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot | CactbotOverlay/FFXIVPlugin.cs | CactbotOverlay/FFXIVPlugin.cs | using Advanced_Combat_Tracker;
using System;
using System.Reflection;
namespace Cactbot {
public class FFXIVPlugin {
private ILogger logger_;
public FFXIVPlugin(ILogger logger) {
logger_ = logger;
}
public string GetLocaleString() {
switch (GetLanguageId()) {
case 1:
... | using Advanced_Combat_Tracker;
using System;
using System.Reflection;
namespace Cactbot {
public class FFXIVPlugin {
private ILogger logger_;
public FFXIVPlugin(ILogger logger) {
logger_ = logger;
}
public string GetLocaleString() {
switch (GetLanguageId()) {
case 1:
... | apache-2.0 | C# |
1037bf1f5e03ec44b3aaa4ab1c83c467b701e801 | Update version to 1.0.0-prerelease02 | affecto/dotnet-Middleware.Monitoring.Owin | Sources/Monitoring.Owin/Properties/AssemblyInfo.cs | Sources/Monitoring.Owin/Properties/AssemblyInfo.cs | using System.Reflection;
// 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("Affecto.Middleware.Monitoring.Owin")]
[assembly: AssemblyDescription("Monitoring... | using System.Reflection;
// 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("Affecto.Middleware.Monitoring.Owin")]
[assembly: AssemblyDescription("Monitoring... | mit | C# |
bd08ba56136963dab5283deabf67cfe3876bb8ac | Change ProductHeaderValue to be more sane | dampir/octokit.net,mminns/octokit.net,gabrielweyer/octokit.net,TattsGroup/octokit.net,alfhenrik/octokit.net,Sarmad93/octokit.net,gdziadkiewicz/octokit.net,SmithAndr/octokit.net,octokit-net-test-org/octokit.net,khellang/octokit.net,ivandrofly/octokit.net,michaKFromParis/octokit.net,forki/octokit.net,cH40z-Lord/octokit.n... | Octokit/Http/ProductHeaderValue.cs | Octokit/Http/ProductHeaderValue.cs | namespace Octokit
{
public class ProductHeaderValue
{
readonly System.Net.Http.Headers.ProductHeaderValue _productHeaderValue;
public ProductHeaderValue(string name)
: this(new System.Net.Http.Headers.ProductHeaderValue(name))
{
}
public ProductHeaderValue(... | namespace Octokit
{
public class ProductHeaderValue
{
ProductHeaderValue() { }
public ProductHeaderValue(string name)
{
_productHeaderValue = new System.Net.Http.Headers.ProductHeaderValue(name);
}
public ProductHeaderValue(string name, string value)
... | mit | C# |
b69d29e09df75169fe0f39942ca83101d9c98e3d | Fix smart string equals bug (not used anywhere) | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | MagicalCryptoWallet/Extensions/StringExtensions.cs | MagicalCryptoWallet/Extensions/StringExtensions.cs | namespace System
{
public static class StringExtensions
{
public static bool Equals(this string source, string value, StringComparison comparisonType, bool trimmed)
{
if(comparisonType == StringComparison.Ordinal)
{
if(trimmed)
{
return string.CompareOrdinal(source.Trim(), value.Trim()) ... | namespace System
{
public static class StringExtensions
{
public static bool Equals(this string source, string value, StringComparison comparisonType, bool trimmed)
{
return source.Trim().Equals(value.Trim(), comparisonType);
}
public static bool Contains(this string source, string toCheck, StringC... | mit | C# |
4a385dee81def307d340f14f5bb0a0249e509c77 | Add AIShip constructor | iridinite/shiftdrive | Client/AIShip.cs | Client/AIShip.cs | /*
** Project ShiftDrive
** (C) Mika Molenkamp, 2016.
*/
using Microsoft.Xna.Framework;
namespace ShiftDrive {
/// <summary>
/// Represents an AI-controlled ship.
/// </summary>
internal sealed class AIShip : Ship {
public AIShip() {
type = ObjectType.AIShip;
iconfil... | /*
** Project ShiftDrive
** (C) Mika Molenkamp, 2016.
*/
namespace ShiftDrive {
/// <summary>
/// Represents an AI-controlled ship.
/// </summary>
internal sealed class AIShip : Ship {
public override void Update(GameState world, float deltaTime) {
base.Update(world, deltaTime);
... | bsd-3-clause | C# |
7fe17391635b16f56b9a3b9660696eb994aa8411 | Rewrite Locale to use SettingsFile as backend | iridinite/shiftdrive | Client/Locale.cs | Client/Locale.cs | /*
** Project ShiftDrive
** (C) Mika Molenkamp, 2016-2017.
*/
using System.IO;
namespace ShiftDrive {
/// <summary>
/// A language string table system. Wraps around <seealso cref="SettingsFile"/>.
/// </summary>
internal static class Locale {
private static SettingsFile table;
/// ... | /*
** Project ShiftDrive
** (C) Mika Molenkamp, 2016-2017.
*/
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace ShiftDrive {
/// <summary>
/// A look-up system for key/value pairs with swappable value tables, allowing for
/// easy translation and localization ... | bsd-3-clause | C# |
8cc2db3904299402c2eaa6e410b83a7e0d577892 | address SutReferencesOnlySpecifiedAssemblies. | jwChung/Experimentalism,jwChung/Experimentalism | test/Experiment.IdiomsUnitTest/AssemblyLevelTest.cs | test/Experiment.IdiomsUnitTest/AssemblyLevelTest.cs | using System.Linq;
using System.Reflection;
using Xunit;
namespace Jwc.Experiment.Idioms
{
public class AssemblyLevelTest
{
[Fact]
public void SutReferencesOnlySpecifiedAssemblies()
{
var sut = typeof(IdiomaticTestCase).Assembly;
var specifiedAssemblies = new []... | using System.Linq;
using System.Reflection;
using Xunit;
namespace Jwc.Experiment.Idioms
{
public class AssemblyLevelTest
{
[Fact]
public void SutReferencesOnlySpecifiedAssemblies()
{
var sut = typeof(IdiomaticTestCase).Assembly;
var specifiedAssemblies = new []... | mit | C# |
2d4f858cc95e098912cc37548c4a8176cbcc6cca | Add Tests For DateTime Extensions | atbyrd/Withings.NET,atbyrd/Withings.NET | Withings.Specifications/DateTimeExtensionsTests.cs | Withings.Specifications/DateTimeExtensionsTests.cs | using System;
using FluentAssertions;
using NUnit.Framework;
using Withings.NET.Client;
namespace Withings.Specifications
{
[TestFixture]
public class DateTimeExtensionsTests
{
[Test]
public void DoubleFromUnixTimeTest()
{
((double)1491934309).FromUnixTime().Date.Should(... | using System;
using FluentAssertions;
using NUnit.Framework;
using Withings.NET.Client;
namespace Withings.Specifications
{
[TestFixture]
public class DateTimeExtensionsTests
{
[Test]
public void DoubleFromUnixTimeTest()
{
((double)1491934309).FromUnixTime().Date.Should(... | mit | C# |
a386ccce3f8b6683557850a9d5efc4a6aaf21691 | Revert sizing change for docked content. Caused performance and layout issues with TableLayout. | bbqchickenrobot/Eto-1,l8s/Eto,l8s/Eto,l8s/Eto,bbqchickenrobot/Eto-1,bbqchickenrobot/Eto-1,PowerOfCode/Eto,PowerOfCode/Eto,PowerOfCode/Eto | Source/Eto.WinForms/Forms/Controls/PanelHandler.cs | Source/Eto.WinForms/Forms/Controls/PanelHandler.cs | using swf = System.Windows.Forms;
using sd = System.Drawing;
using Eto.Forms;
using System;
namespace Eto.WinForms.Forms.Controls
{
public class PanelHandler : WindowsPanel<PanelHandler.EtoPanel, Panel, Panel.ICallback>, Panel.IHandler
{
public class EtoPanel : swf.Panel
{
// CWEN: Comment out for now, this c... | using swf = System.Windows.Forms;
using sd = System.Drawing;
using Eto.Forms;
using System;
namespace Eto.WinForms.Forms.Controls
{
public class PanelHandler : WindowsPanel<PanelHandler.EtoPanel, Panel, Panel.ICallback>, Panel.IHandler
{
public class EtoPanel : swf.Panel
{
public override sd.Size GetPreferred... | bsd-3-clause | C# |
afd389fa69777b5cdd0d88000501bd079b824f86 | Fix usage of deprecated Action.BeginInvoke() | smoogipooo/osu-framework,Tom94/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,Tom94/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-fram... | osu.Framework.Tests/Platform/HeadlessGameHostTest.cs | osu.Framework.Tests/Platform/HeadlessGameHostTest.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.Threading;
using System.Threading.Tasks;
using NUnit.Framework;
using osu.Framework.Platform;
namespace osu.Framework.Tests.Platfo... | // 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.Threading;
using NUnit.Framework;
using osu.Framework.Platform;
namespace osu.Framework.Tests.Platform
{
[TestFixture]
pub... | mit | C# |
4e839e4f1fb595740caa29f901f7072fc2858f23 | Fix "welcome" intro test failure due to no wait logic | peppy/osu,smoogipoo/osu,ppy/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,peppy/osu-new,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,smoogipooo/osu | osu.Game.Tests/Visual/Menus/TestSceneIntroWelcome.cs | osu.Game.Tests/Visual/Menus/TestSceneIntroWelcome.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.Audio.Track;
using osu.Framework.Screens;
using osu.Game.Screens.Menu;
namespace osu.Game.Tests.Visual.Menus
{
[TestFixtu... | // 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.Screens;
using osu.Game.Screens.Menu;
namespace osu.Game.Tests.Visual.Menus
{
[TestFixture]
public class TestSceneInt... | mit | C# |
be500070ad1620f5fc21b77ea94fb802b0c9b22c | Revert last commit since it is currently not possible. | samus/mongodb-csharp,mongodb-csharp/mongodb-csharp,zh-huan/mongodb | MongoDBDriver/AssemblyInfo.cs | MongoDBDriver/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security.Permissions;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("MongoDBDriver")]
[assembly: AssemblyDescripti... | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security.Permissions;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("MongoDBDriver")]
[assembly: AssemblyDescripti... | apache-2.0 | C# |
0bd9f68cbd6758faa79fbb8a3feac064edb2bdda | Refactor update stream colour mapping code | NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,peppy/osu,peppy/osu-new,ppy/osu,UselessToucan/osu,peppy/osu,ppy/osu,UselessToucan/osu,ppy/osu,smoogipooo/osu,NeoAdonis/osu | osu.Game/Online/API/Requests/Responses/APIUpdateStream.cs | osu.Game/Online/API/Requests/Responses/APIUpdateStream.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 Newtonsoft.Json;
using osu.Framework.Graphics.Colour;
using osuTK.Graphics;
namespace osu.Game.Online.API.Requests.... | // 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 Newtonsoft.Json;
using osu.Framework.Graphics.Colour;
using osuTK.Graphics;
namespace osu.Game.Online.API.Requests.Responses
{
public class APIUp... | mit | C# |
b76464da01b82ffaf4358494cb9e639db657682b | fix exif test params | fengyhack/csharp-sdk,qiniu/csharp-sdk | Qiniu.Test/FileOp/ExifTest.cs | Qiniu.Test/FileOp/ExifTest.cs | using Qiniu.FileOp;
using Qiniu.RS;
using NUnit.Framework;
using System;
namespace Qiniu.Test.FileOp
{
/// <summary>
///这是 ExifTest 的测试类,旨在
///包含所有 ExifTest 单元测试
///</summary>
[TestFixture]
public class ExifTest:QiniuTestBase
{
/// <summary>
///MakeRequest 的测试
... | using Qiniu.FileOp;
using Qiniu.RS;
using NUnit.Framework;
using System;
namespace Qiniu.Test.FileOp
{
/// <summary>
///这是 ExifTest 的测试类,旨在
///包含所有 ExifTest 单元测试
///</summary>
[TestFixture]
public class ExifTest:QiniuTestBase
{
/// <summary>
///MakeRequest 的测试
... | mit | C# |
595f2abaaaaa02e67df94c0be9f05b45f48817ed | Add method to parse ints and throw exception on failure. | jcheng31/SGEnviro | SGEnviro/Utilities/Parsing.cs | SGEnviro/Utilities/Parsing.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
namespace SGEnviro.Utilities
{
public class NumberParseException : Exception
{
public NumberParseException(string message) { }
}
public class Parsing
{
public static v... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
namespace SGEnviro.Utilities
{
public class NumberParseException : Exception
{
public NumberParseException(string message) { }
}
public class Parsing
{
public static v... | mit | C# |
bd9f575f6a5d65011b68c61ea6b3ab8b7dbf451e | Allow SectionLoader to read from streams | MHeasell/SnappyMap,MHeasell/SnappyMap | SnappyMap/IO/SectionLoader.cs | SnappyMap/IO/SectionLoader.cs | namespace SnappyMap.IO
{
using System.IO;
using System.Linq;
using TAUtil.Sct;
public class SectionLoader
{
private readonly ITileDatabase tileDatabase;
public SectionLoader(ITileDatabase tileDatabase)
{
this.tileDatabase = tileDatabase;
... | namespace SnappyMap.IO
{
using System.Linq;
using TAUtil.Sct;
public class SectionLoader
{
private readonly ITileDatabase tileDatabase;
public SectionLoader(ITileDatabase tileDatabase)
{
this.tileDatabase = tileDatabase;
}
public Se... | mit | C# |
2f83d973a279b6c998176a61fa391654b10451bb | Change HipChatNotifier to use configuration provider | timclipsham/tfs-hipchat | TfsHipChat/HipChatNotifier.cs | TfsHipChat/HipChatNotifier.cs | using HipChat;
using TfsHipChat.Configuration;
using TfsHipChat.Tfs.Events;
namespace TfsHipChat
{
public class HipChatNotifier : INotifier
{
private readonly IConfigurationProvider _configurationProvider;
private readonly HipChatClient _hipChatClient;
public HipChatNotifie... | using HipChat;
using TfsHipChat.Tfs.Events;
namespace TfsHipChat
{
public class HipChatNotifier : INotifier
{
private readonly HipChatClient _hipChatClient;
public HipChatNotifier()
{
_hipChatClient = new HipChatClient
{
Token = Pro... | mit | C# |
b91e34b00cfa25b60dd9434b24ab855022de212a | Update the Licensed of consumer file | 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... | rocketmq-client-donet/example/consumer.cs | rocketmq-client-donet/example/consumer.cs | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | using System;
using System.Runtime.InteropServices;
using System.Threading;
using RocketMQ.Interop;
namespace rocketmq_push_consumer_test
{
class Program
{
private static readonly PushConsumerWrap.MessageCallBack callback = new PushConsumerWrap.MessageCallBack(HandleMessageCallBack);
static v... | apache-2.0 | C# |
18b7cc81213b00362fcedbea2f8a181dac0dfe18 | Bump version | roend83/FluentValidation,olcayseker/FluentValidation,robv8r/FluentValidation,pacificIT/FluentValidation,deluxetiky/FluentValidation,mgmoody42/FluentValidation,GDoronin/FluentValidation,glorylee/FluentValidation,ruisebastiao/FluentValidation,IRlyDontKnow/FluentValidation,roend83/FluentValidation,regisbsb/FluentValidatio... | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | #region License
// Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk)
//
// 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... | #region License
// Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk)
//
// 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... | apache-2.0 | C# |
304f78bc090fb9e9408eb90eaadd8abd65b41fa2 | Update copyright | mgmoody42/FluentValidation,glorylee/FluentValidation,regisbsb/FluentValidation,ruisebastiao/FluentValidation,IRlyDontKnow/FluentValidation,roend83/FluentValidation,roend83/FluentValidation,deluxetiky/FluentValidation,GDoronin/FluentValidation,cecilphillip/FluentValidation,robv8r/FluentValidation,olcayseker/FluentValida... | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | #region License
// Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk)
//
// 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... | #region License
// Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk)
//
// 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... | apache-2.0 | C# |
51fe9bca9f22b986c17ff10321c1997527c3e410 | Update version for next release | lmagyar/Orleans.Activities,OrleansContrib/Orleans.Activities | src/GlobalAssemblyInfo.cs | src/GlobalAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyCompany("OrleansContrib")]
[assembly: AssemblyProduct("Orleans.Activities - https://github.com/OrleansContrib/Orleans.Activities")]
[assembly: AssemblyCopyright("Copyright OrleansContrib 2016")]
[assembly: AssemblyVersion("0.3.0")]
[assembly: AssemblyFileVersion("0.3.0")]
... | using System.Reflection;
[assembly: AssemblyCompany("OrleansContrib")]
[assembly: AssemblyProduct("Orleans.Activities - https://github.com/OrleansContrib/Orleans.Activities")]
[assembly: AssemblyCopyright("Copyright OrleansContrib 2016")]
[assembly: AssemblyVersion("0.2.0")]
[assembly: AssemblyFileVersion("0.2.0")]
... | apache-2.0 | C# |
e3872a17b14c2b4c59b2bd01304aa2cc68cf2ef6 | fix #260 non generic ProjectToType | eswann/Mapster | src/Mapster/Extensions.cs | src/Mapster/Extensions.cs | using System;
using System.Linq;
using System.Linq.Expressions;
using Mapster.Models;
namespace Mapster
{
public static class Extensions
{
public static IQueryable<TDestination> ProjectToType<TDestination>(this IQueryable source, TypeAdapterConfig? config = null)
{
config ??= TypeA... | using System;
using System.Linq;
using System.Linq.Expressions;
using Mapster.Models;
namespace Mapster
{
public static class Extensions
{
public static IQueryable<TDestination> ProjectToType<TDestination>(this IQueryable source, TypeAdapterConfig? config = null)
{
config ??= TypeA... | mit | C# |
7276059d806ac5998686a61f8cc9e220c17aef9d | Add max length to parrot | xPaw/WendySharp | WendySharp/Commands/Parrot.cs | WendySharp/Commands/Parrot.cs | using System;
using System.Collections.Generic;
namespace WendySharp
{
class Parrot : Command
{
public Parrot()
{
Match = new List<string>
{
"parrot"
};
Usage = "<text>";
ArgumentMatch = "(?<text>.+)$";
Hel... | using System;
using System.Collections.Generic;
namespace WendySharp
{
class Parrot : Command
{
public Parrot()
{
Match = new List<string>
{
"parrot"
};
Usage = "<text>";
ArgumentMatch = "(?<text>.+)$";
Hel... | mit | C# |
014afa5be74935e97d111efe16e4598eb007f6ff | Remove unused | skwasjer/SilentHunter | src/SilentHunter.Core/Controllers/StateMachineController.cs | src/SilentHunter.Core/Controllers/StateMachineController.cs | using System.Collections.Generic;
using System.ComponentModel;
namespace SilentHunter.Controllers
{
public class StateMachineController : Controller
{
// NOTE: some unknown fields, but they always seem to be the same. So mark them advanced, so they don't show up in simple editor views.
[EditorBrowsable(EditorB... | using System.Collections.Generic;
using System.ComponentModel;
namespace SilentHunter.Controllers
{
public class StateMachineController : Controller
{
private static class Magics
{
public const int Entry = 0x6cf46e74;
public const int Condition = 0x596344fb;
public const int Action = 0x7e03767b;
}
... | apache-2.0 | C# |
a67de3de47a199b633668dd43428db09b94f7686 | Fix bad conditional | tgstation/tgstation-server,tgstation/tgstation-server-tools,tgstation/tgstation-server | src/Tgstation.Server.Host/Database/SqliteDatabaseContext.cs | src/Tgstation.Server.Host/Database/SqliteDatabaseContext.cs | using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using System;
using System.Linq;
using Tgstation.Server.Host.Configuration;
namespace Tgstation.Server.Host.Database
{
/// <summary>
/// <see cref="DatabaseContext"/> for SQLite.
/// </summary>
sealed class SqliteDat... | using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using System;
using System.Linq;
using Tgstation.Server.Host.Configuration;
namespace Tgstation.Server.Host.Database
{
/// <summary>
/// <see cref="DatabaseContext"/> for SQLite.
/// </summary>
sealed class SqliteDat... | agpl-3.0 | C# |
2898e6e6572f2dc3d33fd9c6ec836f6985438cb3 | Increment version to 1.1.0.14 | jcvandan/XeroAPI.Net,XeroAPI/XeroAPI.Net,MatthewSteeples/XeroAPI.Net,TDaphneB/XeroAPI.Net | source/XeroApi/Properties/AssemblyInfo.cs | source/XeroApi/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("XeroApi")]
[assembly: AssemblyDescription... | 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("XeroApi")]
[assembly: AssemblyDescription... | mit | C# |
f685d0772da67bf5289b83f94be497d4c3c41baf | Disable Raven's Embedded HTTP server | alastairs/cgowebsite,alastairs/cgowebsite | src/CGO.Web/NinjectModules/RavenModule.cs | src/CGO.Web/NinjectModules/RavenModule.cs | using Ninject;
using Ninject.Modules;
using Ninject.Web.Common;
using Raven.Client;
using Raven.Client.Embedded;
namespace CGO.Web.NinjectModules
{
public class RavenModule : NinjectModule
{
public override void Load()
{
Kernel.Bind<IDocumentStore>().ToMethod(_ => InitialiseDocume... | using Ninject;
using Ninject.Modules;
using Ninject.Web.Common;
using Raven.Client;
using Raven.Client.Embedded;
namespace CGO.Web.NinjectModules
{
public class RavenModule : NinjectModule
{
public override void Load()
{
Kernel.Bind<IDocumentStore>().ToMethod(_ => InitialiseDocume... | mit | C# |
5caf31afcce4f93050f7c661c0c6b7c6c781794d | Add docs | imazen/imageflow-dotnet | src/Imageflow/Fluent/ConstraintGravity.cs | src/Imageflow/Fluent/ConstraintGravity.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Imageflow.Fluent
{
public class ConstraintGravity
{
/// <summary>
/// Centers the gravity (the default)
/// </summary>
public ConstraintGravity()
{
XPercent = 50;
YPerce... | using System;
using System.Collections.Generic;
using System.Text;
namespace Imageflow.Fluent
{
public class ConstraintGravity
{
/// <summary>
/// Centers the gravity (the default)
/// </summary>
public ConstraintGravity()
{
XPercent = 50;
YPerce... | agpl-3.0 | C# |
d94773da2affd9bffe11bfb4d03a196d6cd7e5b4 | Rename methods | Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum | src/Nethereum.KeyStore/KeyStoreService.cs | src/Nethereum.KeyStore/KeyStoreService.cs | using System;
using Newtonsoft.Json.Linq;
namespace Nethereum.KeyStore
{
public class KeyStoreService
{
private readonly KeyStoreKdfChecker _keyStoreKdfChecker;
private readonly KeyStoreScryptService _keyStoreScryptService;
private readonly KeyStorePbkdf2Service _keyStorePbkdf2Service;... | using System;
using Newtonsoft.Json.Linq;
namespace Nethereum.KeyStore
{
public class KeyStoreService
{
private readonly KeyStoreKdfChecker _keyStoreKdfChecker;
private readonly KeyStoreScryptService _keyStoreScryptService;
private readonly KeyStorePbkdf2Service _keyStorePbkdf2Service;... | mit | C# |
ca9f8fe76a78dfd7c2d1cb3b2d8b01c04b745207 | test warnings | elastacloud/parquet-dotnet | src/Parquet.Test/Xunit/RepeatAttribute.cs | src/Parquet.Test/Xunit/RepeatAttribute.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using Xunit.Sdk;
namespace Parquet.Test.Xunit
{
public class RepeatAttribute : DataAttribute
{
private readonly int _count;
public RepeatAttribute(int count)
{
if (count < 1... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using Xunit.Sdk;
namespace Parquet.Test.Xunit
{
public class RepeatAttribute : DataAttribute
{
private readonly int _count;
public RepeatAttribute(int count)
{
if (count < 1... | mit | C# |
734379af4722a831111375a490f6fff6309d57b2 | Use for loop to avoid nested unregister case | peppy/osu-framework,ZLima12/osu-framework,DrabWeb/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,DrabWeb/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framewor... | osu.Framework/Threading/AudioThread.cs | osu.Framework/Threading/AudioThread.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.Statistics;
using System;
using System.Collections.Generic;
using osu.Framework.Audio;
namespace osu.Framework.Threading
{
public class AudioThr... | // 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.Statistics;
using System;
using System.Collections.Generic;
using osu.Framework.Audio;
namespace osu.Framework.Threading
{
public class AudioThr... | mit | C# |
4aa8022afa59eb762fd07e4213837b7bb8c1d1c4 | update formatting | designsbyjuan/UnityLib | MusicManager.cs | MusicManager.cs | using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class MusicManager : MonoBehaviour {
private AudioSource audioSource;
public AudioClip[] levelMusicArray;
void Awake()
{
DontDestroyOnLoad(gameObject);
}
// Use this for initialization
void Start () {
audioSource = Get... | using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class MusicManager : MonoBehaviour {
private AudioSource audioSource;
public AudioClip[] levelMusicArray;
void Awake()
{
DontDestroyOnLoad(gameObject);
}
// Use this for initialization
void Start () {
audioSource = GetC... | mit | C# |
d61586c6a1b10583dd66e457a0484974963acfd0 | Use Jit recongised, standard loop construct | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNet.Hosting/Startup/ConfigureDelegate.cs | src/Microsoft.AspNet.Hosting/Startup/ConfigureDelegate.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;
using System.Reflection;
using Microsoft.AspNet.Builder;
using Microsoft.Framework.DependencyInjection;
namespace Microsoft.AspNet.Hostin... | // 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;
using System.Reflection;
using Microsoft.AspNet.Builder;
using Microsoft.Framework.DependencyInjection;
namespace Microsoft.AspNet.Hostin... | apache-2.0 | C# |
0fec24c844b9b0fed31569b03ee12fe89e3629e0 | Add BGP and BMP message lengths to JSON | mstrother/BmpListener | src/BmpListener/Serialization/Models/UpdateModel.cs | src/BmpListener/Serialization/Models/UpdateModel.cs | using System.Collections.Generic;
namespace BmpListener.Serialization.Models
{
public class UpdateModel
{
public int BmpMsgLength { get; set; }
public int BgpMsgLength { get; set; }
public PeerHeaderModel Peer { get; set; }
public string Origin { get; set; }
public ILis... | using System.Collections.Generic;
namespace BmpListener.Serialization.Models
{
public class UpdateModel
{
public PeerHeaderModel Peer { get; set; }
public string Origin { get; set; }
public IList<int> AsPath { get; set; }
public IList<AnnounceModel> Announce { get; set; }
... | mit | C# |
23dc3fad4b7da540b1756ba0e53d0962aeac8f3d | Fix issues with build for UWP | jamesmontemagno/InAppBillingPlugin | src/Plugin.InAppBilling.UWP/InAppBillingImplementation.cs | src/Plugin.InAppBilling.UWP/InAppBillingImplementation.cs | using Plugin.InAppBilling.Abstractions;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Plugin.InAppBilling
{
/// <summary>
/// Implementation for Feature
/// </summary>
public class InAppBillingImplementation : IInAppBilling
{
/// <summary>
/... | using Plugin.InAppBilling.Abstractions;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Plugin.InAppBilling
{
/// <summary>
/// Implementation for Feature
/// </summary>
public class InAppBillingImplementation : IInAppBilling
{
/// <summary>
/... | mit | C# |
4cfe064b63d300cd23ff4a409079a3da6a1bb6fa | Fix "double question mark" bug in UriBuilder | ravendb/ravendb.contrib | src/Raven.Contrib.AspNet.Demo/Extensions/UriExtensions.cs | src/Raven.Contrib.AspNet.Demo/Extensions/UriExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Raven.Contrib.AspNet.Demo.Extensions
{
public static class UriExtensions
{
public static Uri AddQueryParameter(this Uri uri, KeyValuePair<string, string> pair)
{
return uri.AddQueryParame... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Raven.Contrib.AspNet.Demo.Extensions
{
public static class UriExtensions
{
public static Uri AddQueryParameter(this Uri uri, KeyValuePair<string, string> pair)
{
return uri.AddQueryParame... | mit | C# |
42443b303c6e86b78a183f2b9044fa2cd0acbec8 | Increase length of benchmark algorithm | JKarathiya/Lean,FrancisGauthier/Lean,FrancisGauthier/Lean,mabeale/Lean,JKarathiya/Lean,Jay-Jay-D/LeanSTP,JKarathiya/Lean,squideyes/Lean,mabeale/Lean,AlexCatarino/Lean,kaffeebrauer/Lean,bdilber/Lean,AnshulYADAV007/Lean,QuantConnect/Lean,Obawoba/Lean,andrewhart098/Lean,devalkeralia/Lean,squideyes/Lean,mabeale/Lean,bizcad... | Algorithm.CSharp/Benchmarks/EmptyMinute400EquityAlgorithm.cs | Algorithm.CSharp/Benchmarks/EmptyMinute400EquityAlgorithm.cs | using System.Collections.Generic;
using System.Linq;
using QuantConnect.Data;
namespace QuantConnect.Algorithm.CSharp.Benchmarks
{
public class EmptyMinute400EquityAlgorithm : QCAlgorithm
{
public override void Initialize()
{
SetStartDate(2015, 09, 28);
SetEndDate(2015,... | using System.Collections.Generic;
using System.Linq;
using QuantConnect.Data;
namespace QuantConnect.Algorithm.CSharp.Benchmarks
{
public class EmptyMinute400EquityAlgorithm : QCAlgorithm
{
public override void Initialize()
{
SetStartDate(2015, 09, 28);
SetEndDate(2015,... | apache-2.0 | C# |
24c9cb1f950d3f3360d6b4ecd30e4afa90d520b0 | Change menu high score text with language | NitorInc/NitoriWare,NitorInc/NitoriWare,Barleytree/NitoriWare,plrusek/NitoriWare,Barleytree/NitoriWare | Assets/Scripts/Menu/MenuGameMode.cs | Assets/Scripts/Menu/MenuGameMode.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class MenuGameMode : MonoBehaviour
{
private const string KeyPrefix = "menu.gamemode.";
#pragma warning disable 0649 //Serialized Fields
[SerializeField]
private MenuButton menuButton;
[Seria... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class MenuGameMode : MonoBehaviour
{
private const string KeyPrefix = "menu.gamemode.";
#pragma warning disable 0649 //Serialized Fields
[SerializeField]
private MenuButton menuButton;
[Seria... | mit | C# |
b49e8c82e0962e032b1b2175b230ead1f13a5551 | reset y on update | subdigital/blades-edge | Assets/Scripts/Unit.cs | Assets/Scripts/Unit.cs | using System;
using UnityEngine;
public class Unit : WorldObject {
public float moveSpeed = 10;
public float rotationSpeed = 180;
public GameObject pathVisualPrefab;
bool moving;
Vector3 targetPosition;
Quaternion targetRotation;
GameObject pathVisual;
GameObject targetVisual;
void Update () {
if (movin... | using System;
using UnityEngine;
public class Unit : WorldObject {
public float moveSpeed = 10;
public float rotationSpeed = 180;
public GameObject pathVisualPrefab;
bool moving;
Vector3 targetPosition;
Quaternion targetRotation;
GameObject pathVisual;
GameObject targetVisual;
void Update () {
if (movin... | mit | C# |
eb878805719a5d1f4c9d6416a23819a4877e63a2 | Update copyright & bump version | tabrath/libsodium-core | libsodium-net/Properties/AssemblyInfo.cs | libsodium-net/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("li... | 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("li... | mit | C# |
bf198ebacf9b78f229cd5748e77ac1948702525e | Update AssemblyInfo | Vtek/Bartender | Cheers.ServiceLocator/Properties/AssemblyInfo.cs | Cheers.ServiceLocator/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Cheers.Locator")]
[assembly: AssemblyDescription("Cheers Locator contracts")]
[assembly: Assembly... | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Cheers.Locator")]
[assembly: AssemblyDescription("Cheers Locator contracts")]
[assembly: Assembly... | mit | C# |
54945415c01db172ce8dc4afe03ac43035487cc7 | Remove unnecessary usings. | johnneijzen/osu,EVAST9919/osu,NeoAdonis/osu,ppy/osu,RedNesto/osu,2yangk23/osu,Nabile-Rahmani/osu,NeoAdonis/osu,naoey/osu,ZLima12/osu,NeoAdonis/osu,ppy/osu,osu-RP/osu-RP,DrabWeb/osu,peppy/osu,smoogipoo/osu,EVAST9919/osu,naoey/osu,smoogipooo/osu,smoogipoo/osu,smoogipoo/osu,johnneijzen/osu,Drezi126/osu,UselessToucan/osu,t... | osu.Desktop.VisualTests/Tests/TestCaseReplay.cs | osu.Desktop.VisualTests/Tests/TestCaseReplay.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;
using System.IO;
using osu.Framework.Allocation;
using osu.Framework.Input.Handlers;
using osu.Framework.Platform;
using osu.Game.Beatmaps;
using... | // 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.Collections.Generic;
using System.IO;
using System.Text;
using osu.Framework.Allocation;
using osu.Framework.Screens.Testing;
using ... | mit | C# |
b4ef596b9db754158c0cb14883caac33e5224045 | Add some more commenting to the data-binder. | Amarcolina/LeapMotionCoreAssets,ryanwang/LeapMotionCoreAssets | Assets/LeapMotion/Widgets/Scripts/Interfaces/DataBinder.cs | Assets/LeapMotion/Widgets/Scripts/Interfaces/DataBinder.cs | using UnityEngine;
using System;
using System.Collections.Generic;
namespace LMWidgets {
// Interface to define an object that can be a data provider to a widget.
public abstract class DataBinder<WidgetType, PayloadType> : MonoBehaviour where WidgetType : IDataBoundWidget<WidgetType, PayloadType> {
[Serializ... | using UnityEngine;
using System;
using System.Collections.Generic;
namespace LMWidgets {
// Interface to define an object that can be a data provider to a widget.
public abstract class DataBinder<WidgetType, PayloadType> : MonoBehaviour where WidgetType : IDataBoundWidget<WidgetType, PayloadType> {
[Serializ... | apache-2.0 | C# |
f9363f078fc406315242b29a57e23e0f948a00f0 | Change access modifier for Not class | MhmmdAb/OBehave,MhmmdAb/OBehave | OBehave/Not.cs | OBehave/Not.cs | using System;
namespace OBehave
{
public class Not<TContext>
: Leaf<TContext>
{
private Node<TContext> node;
public Not(Node<TContext> node)
{
if (node == null)
throw new ArgumentNullException();
this.node = node;
}
prot... | using System;
namespace OBehave
{
class Not<TContext>
: Leaf<TContext>
{
private Node<TContext> node;
public Not(Node<TContext> node)
{
if (node == null)
throw new ArgumentNullException();
this.node = node;
}
protected o... | bsd-2-clause | C# |
4762b7da836b2161db81dcf5c00880bced00ba47 | Refresh playlist when any song property changes | GeorgeHahn/SOVND | SOVND.Lib/Handlers/ObservablePlaylistProvider.cs | SOVND.Lib/Handlers/ObservablePlaylistProvider.cs | using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using Anotar.NLog;
using SOVND.Lib.Models;
namespace SOVND.Lib.Handlers
{
public class ObservablePlaylistProvider : PlaylistProviderBase, IObservablePlaylistProvider
{
private readonly SyncHolder _sync;
privat... | using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using Anotar.NLog;
using SOVND.Lib.Models;
namespace SOVND.Lib.Handlers
{
public class ObservablePlaylistProvider : PlaylistProviderBase, IObservablePlaylistProvider
{
private readonly SyncHolder _sync;
privat... | epl-1.0 | C# |
bf39b949d1b4c114e64ee423f88af8a8a28afe9c | Fix enum numbering for starlight type | WolfspiritM/Colore,CoraleStudios/Colore | Corale.Colore/Razer/Keyboard/Effects/StarlightType.cs | Corale.Colore/Razer/Keyboard/Effects/StarlightType.cs | // <copyright file="StarlightType.cs" company="Corale">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without ... | // <copyright file="StarlightType.cs" company="Corale">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without ... | mit | C# |
bd70a51a97e13f8ff88907fc025470f4ab20677b | Add properties | Zalodu/Schedutalk,Zalodu/Schedutalk | Schedutalk/Schedutalk/Schedutalk/Model/MEvent.cs | Schedutalk/Schedutalk/Schedutalk/Model/MEvent.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Schedutalk.Model
{
public class MEvent : ViewModel.VMBase
{
public MDate StartDate
{
get;
set;
}
public MDate EndDate
{... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Schedutalk.Model
{
class MEvent : ViewModel.VMBase
{
}
}
| mit | C# |
7a01a3d78960d36e55d07d63d8c5812447d71320 | fix key | volkanceylan/Serenity,rolembergfilho/Serenity,WasimAhmad/Serenity,rolembergfilho/Serenity,WasimAhmad/Serenity,WasimAhmad/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,rolembergfilho/Serenity,WasimAhmad/Serenity,volkanceylan/Serenity,rolembergfilho/Serenity,volkanceylan/Serenity,rolembergfilho/Serenity,WasimAhmad... | Serenity.Web/Texts/Texts.Controls.ImageUpload.cs | Serenity.Web/Texts/Texts.Controls.ImageUpload.cs |
namespace Serenity.Web
{
internal static partial class Texts
{
public static partial class Controls
{
public static class ImageUpload
{
public static LocalText AddFileButton = "Select File";
public static LocalText DeleteButtonH... |
namespace Serenity.Web
{
internal static partial class Texts
{
public static partial class Controls
{
public static class ImageUpload
{
public static LocalText AddFileButton = "Select File";
public static LocalText DeleteButtonH... | mit | C# |
69f11b64831a6a74e326a22176afadf30ac5bf68 | Add operator overloads | EVAST9919/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ppy/osu-framework | osu.Framework/Graphics/Colour/Colour4.cs | osu.Framework/Graphics/Colour/Colour4.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.
namespace osu.Framework.Graphics.Colour
{
public readonly struct Colour4
{
/// <summary>
/// Represents the red component of the linear RGBA colou... | // 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.
namespace osu.Framework.Graphics.Colour
{
public readonly struct Colour4
{
/// <summary>
/// Represents the red component of the linear RGBA colou... | mit | C# |
30e12f55d311f169b541ca3ad720c6e37c4ccd0b | Revert previous commit | mdesalvo/RDFSharp | RDFSharp/Properties/AssemblyInfo.cs | RDFSharp/Properties/AssemblyInfo.cs | /*
Copyright 2012-2019 Marco De Salvo
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 ... | /*
Copyright 2012-2019 Marco De Salvo
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 ... | apache-2.0 | C# |
86ca74d1b47acbf1eacc92d833bbc9c203deb1da | Use new author var for posts too | bapt/cblog,bapt/cblog | samples/templates/atom.cs | samples/templates/atom.cs | <?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text"><?cs var:title ?></title>
<subtitle type="text"><?cs var:title ?></subtitle>
<id><?cs var:url ?>/</id>
<link rel="self" href="<?cs var:url ?><?cs var:CGI.RequestURI ?>" />
<link rel="alternate" type="text/html" hre... | <?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text"><?cs var:title ?></title>
<subtitle type="text"><?cs var:title ?></subtitle>
<id><?cs var:url ?>/</id>
<link rel="self" href="<?cs var:url ?><?cs var:CGI.RequestURI ?>" />
<link rel="alternate" type="text/html" hre... | bsd-2-clause | C# |
05bea9c01836948456d60692a679fe7660a11c18 | Switch back to using a List to hold Colorings | jamesqo/Repository,jamesqo/Repository,jamesqo/Repository | Repository/EditorServices/Highlighting/TextColorer.cs | Repository/EditorServices/Highlighting/TextColorer.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using Android.Graphics;
using Repository.Common;
using Coloring = System.Int64;
namespace Repository.EditorServices.Highlighting
{
public class TextColorer : ITextColorer<ColoredText>
{
private readonly string _text;
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using Android.Graphics;
using Repository.Common;
using Repository.Internal;
using Coloring = System.Int64;
namespace Repository.EditorServices.Highlighting
{
public class TextColorer : ITextColorer<ColoredText>
{
pri... | mit | C# |
b2acd51b9d172d87749b38b0f2dc55e30405de7c | Change to show alert if Secrets.cs is not edited | ProjectBlueMonkey/BlueMonkey,ProjectBlueMonkey/BlueMonkey | client/BlueMonkey/BlueMonkey/ViewModels/MainPageViewModel.cs | client/BlueMonkey/BlueMonkey/ViewModels/MainPageViewModel.cs | using System;
using Prism.Mvvm;
using Prism.Navigation;
using Prism.Services;
using Reactive.Bindings;
namespace BlueMonkey.ViewModels
{
/// <summary>
/// ViewModel for MainPage.
/// </summary>
public class MainPageViewModel : BindableBase
{
/// <summary>
/// NavigationService
... | using System;
using Prism.Mvvm;
using Prism.Navigation;
using Reactive.Bindings;
namespace BlueMonkey.ViewModels
{
/// <summary>
/// ViewModel for MainPage.
/// </summary>
public class MainPageViewModel : BindableBase
{
/// <summary>
/// NavigationService
/// </summary>
... | mit | C# |
9f361cc394434f5fc5924ea30321161fcf694461 | create base dir if doesn't exist | YetAnotherPomodoroApp/YAPA-2 | YAPA/WPF/Specifics/WpfEnviroment.cs | YAPA/WPF/Specifics/WpfEnviroment.cs | using System;
using System.IO;
using YAPA.Shared.Contracts;
namespace YAPA.WPF
{
public class WpfEnviroment : IEnviroment
{
static readonly string BaseDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"YAPA2");
readonly string _settingsFileLocation = Path.Co... | using System;
using System.IO;
using YAPA.Shared.Contracts;
namespace YAPA.WPF
{
public class WpfEnviroment : IEnviroment
{
static readonly string BaseDir = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
readonly string _settingsFileLocation = Path.Combine(BaseDir, @"YAPA2",... | mit | C# |
651546978a694d1b8f563fbd277da70d24ab0cec | Add namespace declaration | Archie-Yang/PcscDotNet | src/PcscDotNet/IPcscProvider.cs | src/PcscDotNet/IPcscProvider.cs | namespace PcscDotNet
{
public interface IPcscProvider
{
}
} | public interface IPcscProvider
{
} | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.