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 |
|---|---|---|---|---|---|---|---|---|---|
b5e43144a9be23ee4f2435981ab7f25ea8fcdef0 | osu.Game.Rulesets.Catch.Tests/TestSceneCatchPlayerLegacySkin.cs | osu.Game.Rulesets.Catch.Tests/TestSceneCatchPlayerLegacySkin.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.Audio;
using osu.Framework.IO.Stores;
using osu.Game.Skinning;
using osu.Game.Tests.Visual;
na... | Add a Player test scene that uses a legacy skin | Add a Player test scene that uses a legacy skin
| C# | mit | smoogipooo/osu,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new,UselessToucan/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu | |
0d2a24cdabd6ba2cb95cb842001eafa79964ed51 | src/NodaTime.Demo/OffsetDemo.cs | src/NodaTime.Demo/OffsetDemo.cs | // Copyright 2018 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using NUnit.Framework;
using System;
namespace NodaTime.Demo
{
public class OffsetDemo
{
[Test]
public void ConstructionFromHour... | Add snippets for Offset type | Add snippets for Offset type
| C# | apache-2.0 | jskeet/nodatime,malcolmr/nodatime,nodatime/nodatime,BenJenkinson/nodatime,BenJenkinson/nodatime,malcolmr/nodatime,malcolmr/nodatime,malcolmr/nodatime,jskeet/nodatime,nodatime/nodatime | |
7ec5dc1e979bd55dded8f7295e0710345c69c92a | src/Firehose.Web/Authors/MaverickSevmont.cs | src/Firehose.Web/Authors/MaverickSevmont.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 MaverickSevmont : IAmACommunityMember
{
public string FirstName => "Maverick";
... | Add Maverick Sevmont as author | Add Maverick Sevmont as author | C# | mit | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | |
88c898e5a31f538baae128e405520c1dd17732f6 | tests/Rfc/Blake2Tests.cs | tests/Rfc/Blake2Tests.cs | using System;
using NSec.Cryptography;
using Xunit;
namespace NSec.Tests.Rfc
{
public static class Blake2Tests
{
public static readonly TheoryData<string, string> Rfc7693TestVectors = new TheoryData<string, string>
{
{ "616263", "ba80a53f981c4d0d6a2797b69f12f6e94c212f14685ac4b74b12b... | Add RFC 7693 test vectors | Add RFC 7693 test vectors
| C# | mit | ektrah/nsec | |
14dd2f67febe60f908335e447b77f13b37204bfd | tests/MassTransit.Tests/Serialization/TypeNameHandlingAuto_Specs.cs | tests/MassTransit.Tests/Serialization/TypeNameHandlingAuto_Specs.cs | namespace MassTransit.Tests.Serialization
{
using System;
using System.Linq;
using System.Threading.Tasks;
using MassTransit.Testing;
using Microsoft.Extensions.DependencyInjection;
using Newtonsoft.Json;
using NUnit.Framework;
[TestFixture]
public class When_using_type_name_handli... | Test to verify type name handling on newtonsoft using additional converter | Test to verify type name handling on newtonsoft using additional converter
| C# | apache-2.0 | phatboyg/MassTransit,MassTransit/MassTransit,phatboyg/MassTransit,MassTransit/MassTransit | |
7a66b9e75c2795e20ffa827a2e3fe1a63f7f0535 | CareerCup/Google/delete_duplicates_lexicographic.cs | CareerCup/Google/delete_duplicates_lexicographic.cs | // http://careercup.com/question?id=5758790009880576
//
// Given a string with lowercase chars, delete the repeated
// letters and only leave one but with the optimal
// lexicographic order
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
static class Program
{
static String D... | Remove dupes, keep lexicographic order, take 1 - wrong | Remove dupes, keep lexicographic order, take 1 - wrong
| C# | mit | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | |
f19954f18a21fd7e279181b9165a482d90d78a85 | NBi.Core/Members/Ranges/IRange.cs | NBi.Core/Members/Ranges/IRange.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NBi.Core.Members.Ranges
{
public interface IRange
{
}
}
| Define the contract to specify a range | Define the contract to specify a range
| C# | apache-2.0 | Seddryck/NBi,Seddryck/NBi | |
1a31c990c5303e306097ab5bc11bd1f89c729a70 | NudgeMe.cs | NudgeMe.cs | using UnityEngine;
public class NudgeMe : MonoBehaviour {
public float xDir = 1000;
public float yDir = 1000;
// Update is called once per frame
void Update () {
if(Input.GetKey (KeyCode.Space)){
this.gameObject.GetComponent<Rigidbody2D>().AddForce(new Vector2(xDir,yDir));
}
}
}
| Use this script to test the physics | Use this script to test the physics | C# | cc0-1.0 | Onastick/Unity2D | |
12b8e718e1fad0ce20aba3c61d1ce0c7b3f47fc3 | sample/gtk-html-sample.cs | sample/gtk-html-sample.cs | // mcs -pkg:gtkhtml-sharp -pkg:gtk-sharp gtk-html-sample.cs
using Gtk;
using System;
using System.IO;
class HTMLSample {
static int Main (string [] args)
{
HTML html;
Window win;
Application.Init ();
html = new HTML ();
win = new Window ("Test");
win.Add (html);
HTMLStream s = html.Begin ("text/html");... | // mcs -pkg:gtkhtml-sharp -pkg:gtk-sharp gtk-html-sample.cs
using Gtk;
using System;
using System.IO;
class HTMLSample {
static int Main (string [] args)
{
HTML html;
Window win;
Application.Init ();
html = new HTML ();
win = new Window ("Test");
win.Add (html);
HTMLStream s = html.Begin ("text/html");... | Make the sample have good coding :-) | Make the sample have good coding :-)
svn path=/trunk/gtk-sharp/; revision=36750
| C# | lgpl-2.1 | Gankov/gtk-sharp,akrisiun/gtk-sharp,Gankov/gtk-sharp,sillsdev/gtk-sharp,akrisiun/gtk-sharp,sillsdev/gtk-sharp,Gankov/gtk-sharp,sillsdev/gtk-sharp,Gankov/gtk-sharp,orion75/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,Gankov/gtk-sharp,sillsdev/gtk-sharp,openmedicus/gtk-sharp,antoniusriha/gt... |
d046920f86d0a6244f23bb77c0f4896ed38b0a74 | tests/Paramore.Brighter.Tests/MessagingGateway/kafka/When_posting_a_message_via_the_messaging_gateway.cs | tests/Paramore.Brighter.Tests/MessagingGateway/kafka/When_posting_a_message_via_the_messaging_gateway.cs | using System;
using FluentAssertions;
using Paramore.Brighter.MessagingGateway.Kafka;
using Xunit;
namespace Paramore.Brighter.Tests.MessagingGateway.Kafka
{
[Trait("Category", "KAFKA")]
public class KafkaMessageProducerSendTests : IDisposable
{
private const string QueueName = "test";
pri... | Call Dispose on the messageConsumer and add a Guid to the message payload. | Call Dispose on the messageConsumer and add a Guid to the message payload.
| C# | mit | BrighterCommand/Brighter,BrighterCommand/Brighter,BrighterCommand/Brighter,BrighterCommand/Paramore.Brighter,BrighterCommand/Paramore.Brighter | |
1f29c1826961855be523bffcabb80e04a8f8fd64 | A2BBAPI/Utils/ClaimsUtils.cs | A2BBAPI/Utils/ClaimsUtils.cs | using A2BBCommon;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
namespace A2BBAPI.Utils
{
public static class ClaimsUtils
{
#region Nested classes
/// <summary>
/// Holder for authorized user claims.
... | Add util classes to deal with specific claims. | Add util classes to deal with specific claims.
| C# | apache-2.0 | marcuson/A2BBServer,marcuson/A2BBServer,marcuson/A2BBServer | |
ac019a37c38ce713107d151b62ab11478dc94736 | src/RdbmsEventStore.Tests/WriteLockTests.cs | src/RdbmsEventStore.Tests/WriteLockTests.cs | using Xunit;
namespace RdbmsEventStore.Tests
{
public class WriteLockTests
{
[Fact]
public void SameIdCannotEnterLockSimultaneously()
{
var mutex = new WriteLock<int>();
var lock1 = mutex.Aquire(1);
var lock2 = mutex.Aquire(1);
Assert.T... | Add missing tests for write lock | Add missing tests for write lock
| C# | mit | tlycken/RdbmsEventStore | |
ff163922206ed2b1ebe670d21466c6d90a499ab6 | Global/GlobalEnums.cs | Global/GlobalEnums.cs | public enum Side : byte { Right, Left, Top, Bottom };
public enum Position : byte { TopLeft, TopCenter, TopRight, MiddleLeft, MiddleCenter, MiddleRight, BottomLeft, BottomCenter, BottomRight } | Move directions and orientations into global enums | Move directions and orientations into global enums
| C# | mit | cmilr/Unity2D-Components,jguarShark/Unity2D-Components | |
b6dbfa2df113bc3c1e475771f7df3ffa5945fa5f | apis/Google.Cloud.ApigeeConnect.V1/Google.Cloud.ApigeeConnect.V1.Tests/PlaceholderTest.cs | apis/Google.Cloud.ApigeeConnect.V1/Google.Cloud.ApigeeConnect.V1.Tests/PlaceholderTest.cs | // Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | Add placeholder test to avoid build warnings | Add placeholder test to avoid build warnings
| C# | apache-2.0 | jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/gcloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet | |
60ee9358aa130c13f0d68b6cccbcd0c6c3f44cc5 | MediaBrowser.Plugins.Trailers/Configuration/PluginConfiguration.cs | MediaBrowser.Plugins.Trailers/Configuration/PluginConfiguration.cs | using MediaBrowser.Model.Plugins;
namespace MediaBrowser.Plugins.Trailers.Configuration
{
/// <summary>
/// Class PluginConfiguration
/// </summary>
public class PluginConfiguration : BasePluginConfiguration
{
public bool EnableMovieArchive { get; set; }
public bool EnableNetflix {... | using MediaBrowser.Model.Plugins;
namespace MediaBrowser.Plugins.Trailers.Configuration
{
/// <summary>
/// Class PluginConfiguration
/// </summary>
public class PluginConfiguration : BasePluginConfiguration
{
public bool EnableMovieArchive { get; set; }
public bool Enabl... | Remove setting of Netflix twice | Remove setting of Netflix twice
| C# | mit | hamstercat/Emby.Channels,MediaBrowser/Emby.Channels,heksesang/Emby.Channels,MediaBrowser/Emby.Channels,heksesang/Emby.Channels,hamstercat/Emby.Channels |
f994efaf50fbb73b5358ec15667c630d650ff04c | StoryGenerator/Controllers/ServantController.cs | StoryGenerator/Controllers/ServantController.cs | using Microsoft.AspNetCore.Mvc;
using StoryGenerator.Domain;
using StoryGenerator.Persistance;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace StoryGenerator.Controllers
{
[Route("api/servants")]
public class ServantController : Controller
{
... | Add Servant Controller with retrieval and creation endpoints | Add Servant Controller with retrieval and creation endpoints
| C# | mit | bcreagh/story-generator | |
beda6961e433b7df28f69b898c975035e8ce24ee | osu.Game.Rulesets.Catch.Tests/TestSceneFruitRandomness.cs | osu.Game.Rulesets.Catch.Tests/TestSceneFruitRandomness.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.Bindables;
using osu.Game.Rulesets.Catch.Objects;
using osu.Game.Rulesets.Catch.Objects.Drawables;
using osu.Game.Tests.Visual;... | Add a test for fruit randomness | Add a test for fruit randomness
| C# | mit | ppy/osu,peppy/osu,smoogipooo/osu,UselessToucan/osu,ppy/osu,NeoAdonis/osu,peppy/osu-new,NeoAdonis/osu,ppy/osu,smoogipoo/osu,peppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu | |
4d1cf3fd74cbdfedceea8eca970dd321f9aa90e7 | ExpressionToCodeTest/EnumerableFormattingTest.cs | ExpressionToCodeTest/EnumerableFormattingTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExpressionToCodeLib;
using Xunit;
namespace ExpressionToCodeTest
{
public class EnumerableFormattingTest
{
[Fact]
public void ShortArraysRenderedCompletely() {... | Add tests for enumerable formatting ComplexObjectToPseudoCode | Add tests for enumerable formatting
ComplexObjectToPseudoCode
| C# | apache-2.0 | asd-and-Rizzo/ExpressionToCode,EamonNerbonne/ExpressionToCode | |
0ec47abfc206952645f4f80bf347d100c0de9e7b | Infusion.LegacyApi/GameObjectCollectionExtensions.cs | Infusion.LegacyApi/GameObjectCollectionExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Infusion.LegacyApi
{
public static class GameObjectCollectionExtensions
{
public static IEnumerable<GameObject> OfType(this IEnumerable<GameObject> objects, ModelId type)
=> objects.Where(o => o... | Add extension search method for game object collection. | Add extension search method for game object collection.
| C# | mit | uoinfusion/Infusion | |
5366c683747376a6e9e3ab9a24b11581fb9a64d0 | src/Bibliotheca.Server.Mvc.Middleware.Authorization/UserAuthorizeAttribute.cs | src/Bibliotheca.Server.Mvc.Middleware.Authorization/UserAuthorizeAttribute.cs | using System;
using Bibliotheca.Server.Mvc.Middleware.Authorization.SecureTokenAuthentication;
using Bibliotheca.Server.Mvc.Middleware.Authorization.UserTokenAuthentication;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Authorization;
namespace Bibliotheca.Server.Mvc.Middleware.Author... | Add new attribute for authorization. | Add new attribute for authorization.
| C# | mit | BibliothecaTeam/Bibliotheca.Server.Mvc.Middleware | |
4b5c717e3eda0f2d3e6cf48616caa6513ff12805 | food_tracker/FoodBoxItem.cs | food_tracker/FoodBoxItem.cs | using System.Windows.Controls;
using System.Windows.Forms;
namespace food_tracker {
public class FoodBoxItem : ListBoxItem {
public int calories { get; set; }
public int fats { get; set; }
public int saturatedFat { get; set; }
public int carbohydrates { get; set; }
public int sugar { get; set; }
public ... | Add custom listbox item class | Add custom listbox item class
| C# | mit | lukecahill/NutritionTracker | |
854e77438346b5b079a640e75dfa56a6cfbf8c33 | src/base/common/logging/LogLevel.cs | src/base/common/logging/LogLevel.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Nohros.Logging
{
/// <summary>
/// The supported logging levels. Not all loggin libraries support all the levels and when is
/// the case the related <see cref="ILogger"/> object will always return false for the
/// I... | Define the log levels supported by the abstract logging API. | Define the log levels supported by the abstract logging API.
| C# | mit | nohros/must,nohros/must,nohros/must | |
28037604eb2f08b9d66a517b8155d4cb9205ffa6 | ShopifySharp/Filters/ApplicationCreditListFilter.cs | ShopifySharp/Filters/ApplicationCreditListFilter.cs | using System.Collections.Generic;
namespace ShopifySharp.Filters
{
public class ApplicationCreditListFilter : ListFilter
{
public string Fields { get; set; }
public override IEnumerable<KeyValuePair<string, object>> ToQueryParameters()
{
return base.ToQueryParameters();
... | Add dedicated class for listing application credits | Add dedicated class for listing application credits
| C# | mit | nozzlegear/ShopifySharp,clement911/ShopifySharp | |
82146f65266a10d90cc0d0a85763e13987f95bb3 | osu.Framework/Graphics/UserInterface/HSVColourPicker.cs | osu.Framework/Graphics/UserInterface/HSVColourPicker.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
namespace osu.Framework.Graphics.UserInterface
{
/// <su... | Add basic structure for HSV colour picker part | Add basic structure for HSV colour picker part
| C# | mit | smoogipooo/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework | |
dc042f954c1ef957c880d7c34f1e6865668f87e0 | Tron/Tron/EventArgs/CarMovedEventArgs.cs | Tron/Tron/EventArgs/CarMovedEventArgs.cs | // CarMovedEventArgs.cs
// <copyright file="CarMovedEventArgs.cs"> This code is protected under the MIT License. </copyright>
namespace Tron.EventArgs
{
/// <summary>
/// The event arguments for when the timer changes.
/// </summary>
public class CarMovedEventArgs : System.EventArgs
{
/// <... | Add car move event arguments | Add car move event arguments | C# | mit | wrightg42/tron,It423/tron | |
63948831a9d37cc8888efb8ac254790cb00dd05f | Source/Web/SupportMe.Web.Infrastructure/HtmlHelpers/KendoHelpers.cs | Source/Web/SupportMe.Web.Infrastructure/HtmlHelpers/KendoHelpers.cs | namespace SupportMe.Web.Infrastructure.HtmlHelpers
{
using System;
using System.Linq.Expressions;
using System.Web.Mvc;
using Kendo.Mvc.UI;
using Kendo.Mvc.UI.Fluent;
public static class KendoHelpers
{
public static GridBuilder<T> FullFeaturedGrid<T>(
this HtmlHelper h... | Add Html extension method for Kendo grid. | Add Html extension method for Kendo grid.
| C# | mit | p0150n/SupportMe,p0150n/SupportMe | |
ef54882d5d8e5ed5ea0451c715fa9c23995b6e12 | Nancy.Rollbar/Api/IRollbarDataScrubber.cs | Nancy.Rollbar/Api/IRollbarDataScrubber.cs | using Valetude.Rollbar;
namespace Nancy.Rollbar.Api {
public interface IRollbarDataScrubber{
RollbarData ScrubRollbarData(RollbarData data);
}
}
| Add an interface for scrubbing rollbar data. | Add an interface for scrubbing rollbar data.
| C# | mit | Valetude/Nancy.Rollbar | |
02b6c2329b86da4e7e1da89b57237f80f620e049 | src/MusicBrainz/Utilities.cs | src/MusicBrainz/Utilities.cs | /* -*- Mode: csharp; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: t -*- */
/***************************************************************************
* Utilities.cs
*
* Copyright (C) 2005 Novell
* Written by Aaron Bockover (aaron@aaronbock.net)
***********************************************************... | Convert a MusicBrainz date into a DateTime object | Convert a MusicBrainz date into a DateTime object
* src/MusicBrainz/Utilities.cs (StringToDateTime): Convert a MusicBrainz
date into a DateTime object
| C# | mit | lamalex/Banshee,arfbtwn/banshee,dufoli/banshee,directhex/banshee-hacks,Carbenium/banshee,stsundermann/banshee,Dynalon/banshee-osx,petejohanson/banshee,stsundermann/banshee,stsundermann/banshee,GNOME/banshee,dufoli/banshee,dufoli/banshee,directhex/banshee-hacks,allquixotic/banshee-gst-sharp-work,mono-soc-2011/banshee,st... | |
0f31cbee48e396a86d9419d951a3cb710aa2b79d | MitternachtWeb/Models/PagePermissions.cs | MitternachtWeb/Models/PagePermissions.cs | using System;
namespace MitternachtWeb.Models {
[Flags]
public enum BotPagePermissions {
None = 0b00,
ReadBotConfig = 0b01,
WriteBotConfig = 0b11,
}
[Flags]
public enum GuildPagePermissions {
None = 0b_0000_0000,
ReadGuildConfig = 0b_0000_0001,
WriteGuildConfig = 0b_0000_0011... | Add initial page permission enums. | Add initial page permission enums.
| C# | mit | Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW | |
c10d4a9aa31c207ab000c0f57b1111501ff73933 | CSparse.Tests/Ordering/TestStronglyConnectedComponents.cs | CSparse.Tests/Ordering/TestStronglyConnectedComponents.cs |
namespace CSparse.Tests.Ordering
{
using CSparse.Double;
using CSparse.Ordering;
using NUnit.Framework;
using System;
public class TestStronglyConnectedComponents
{
[Test]
public void TestScc()
{
// https://en.wikipedia.org/wiki/Strongly_connected_component... | Add unit test for strongly connected components. | Add unit test for strongly connected components.
| C# | lgpl-2.1 | wo80/CSparse.NET | |
c2681868d1554fabbf0171238f0340361c98a11d | osu.Framework/Platform/Sdl2Functions.cs | osu.Framework/Platform/Sdl2Functions.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.Numerics;
using System.Runtime.InteropServices;
using osu.Framework.Graphics;
using Veldrid.Sdl2;
// ReSharper disable InconsistentNaming
namespace osu.Fra... | Add more SDL2 native functions | Add more SDL2 native functions
Veldrid does not expose all the functions we will need.
| C# | mit | peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework | |
2fed909bdbb9c43a99cd537446f5547b59f964af | ConfuserEx/MainWindow.xaml.cs | ConfuserEx/MainWindow.xaml.cs | using System;
using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using Confuser.Core.Project;
using ConfuserEx.ViewModel;
namespace ConfuserEx {
public partial class MainWindow : Window {
public MainWindow() {
InitializeComponent();
va... | using System;
using System.ComponentModel;
using System.IO;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Xml;
using Confuser.Core.Project;
using ConfuserEx.ViewModel;
namespace ConfuserEx {
public partial class MainWindow : Window {
public MainWindow()... | Add command line project loading | Add command line project loading
Fix #164
| C# | mit | JPVenson/ConfuserEx,Desolath/ConfuserEx3,fretelweb/ConfuserEx,modulexcite/ConfuserEx,mirbegtlax/ConfuserEx,yeaicc/ConfuserEx,apexrichard/ConfuserEx,KKKas/ConfuserEx,manojdjoshi/ConfuserEx,engdata/ConfuserEx,Desolath/Confuserex,mirbegtlax/ConfuserEx,AgileJoshua/ConfuserEx,Immortal-/ConfuserEx,JPVenson/ConfuserEx,timnboy... |
1f8160edbcfef7251c52dc5f2acce6ad9de273d0 | src/main/csharp/AssemblyInfo.cs | src/main/csharp/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("https://github.com/thekid/inotify-win")]
[assembly: AssemblyDescription("A port of the inotifywait tool for Windows")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Timm ... | Embed assembly info and version | Embed assembly info and version
| C# | bsd-3-clause | josevalim/inotify-win,josevalim/inotify-win,McBen/inotify-win,logonmy/inotify-win | |
7f577ce0df03b6d9d47c462e14eaf6b854789bc6 | Battery-Commander.Web/Models/Alert.cs | Battery-Commander.Web/Models/Alert.cs | namespace BatteryCommander.Web.Models
{
public class Alert
{
// Id
// SentAt
// Recipients - IDs? - Pull Phone, Email from Soldier entity
// Format - SMS? Email? Phone?
// Message / Content
// Status - Open, Closed -- Only one open at a time, all responses w... | Add notes on the alert model | Add notes on the alert model
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | |
c37f2f2e001241636e64f12baf4662b103fba919 | DigitalOcean.API.Tests/Clients/ProjectResourcesClientTest.cs | DigitalOcean.API.Tests/Clients/ProjectResourcesClientTest.cs | using System.Collections.Generic;
using DigitalOcean.API.Clients;
using DigitalOcean.API.Http;
using DigitalOcean.API.Models.Requests;
using DigitalOcean.API.Models.Responses;
using NSubstitute;
using RestSharp;
using Xunit;
namespace DigitalOcean.API.Tests.Clients {
public class ProjectResourcesClientTest {
... | Add tests for Project Resources. | Add tests for Project Resources.
| C# | mit | vevix/DigitalOcean.API | |
07c46ceacdb5c32949f0181b49fa73a008717617 | extras/ESEventStore.cs | extras/ESEventStore.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using EventStore.ClientAPI;
namespace Edument.CQRS
{
// An implementation of IEventStore in terms of EventStore, available from
// h... | Add EventStore implementation of IEventStore. | Add EventStore implementation of IEventStore.
Uses the EventStore from http://geteventstore.com/.
| C# | bsd-3-clause | GoodSoil/cqrs-starter-kit,edumentab/cqrs-starter-kit,GoodSoil/cqrs-starter-kit,csuffyy/cqrs-starter-kit,csuffyy/cqrs-starter-kit,edumentab/cqrs-starter-kit,rofr/origodb-ddd-demo,edumentab/cqrs-starter-kit,rofr/origodb-ddd-demo,rofr/origodb-ddd-demo,dagilleland/cqrs-starter-kit,dagilleland/cqrs-starter-kit | |
ad380ed863eb64a2c563a0ebe3a09cc37087fb03 | tests/Test.ADAL.NET.Unit/WsTrustTests.cs | tests/Test.ADAL.NET.Unit/WsTrustTests.cs | //----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation.
// All rights reserved.
//
// This code is licensed under the MIT License.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentat... | Add a unit test for the new reserve-whitespace behavior | Add a unit test for the new reserve-whitespace behavior
| C# | mit | AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/azure-activedirectory-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet | |
b84c15c8071eb098d295949a21262c425082e4d4 | samples/CM.HelloUniversal/CM.HelloUniversal/CM.HelloUniversal.Shared/App.xaml.cs | samples/CM.HelloUniversal/CM.HelloUniversal/CM.HelloUniversal.Shared/App.xaml.cs | using System;
using System.Collections.Generic;
using Caliburn.Micro;
using CM.HelloUniversal.Views;
using CM.HelloUniversal.ViewModels;
using Windows.ApplicationModel.Activation;
using Windows.UI.Xaml.Controls;
namespace CM.HelloUniversal
{
public sealed partial class App
{
private WinRTContainer con... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using Caliburn.Micro;
using CM.HelloUniversal.Views;
using CM.HelloUniversal.ViewModels;
using Windows.ApplicationModel.Activation;
using Windows.UI.Xaml.Controls;
namespace CM.HelloUniversal
{
public sealed partial class App
{
... | Fix for FAR in sample app | Fix for FAR in sample app
| C# | mit | TriadTom/Caliburn.Micro,dvdvorle/Caliburn.Micro,Bobdina/Caliburn.Micro,taori/Caliburn.Micro,vgrigoriu/Caliburn.Micro,serenabenny/Caliburn.Micro,dvdvorle/Caliburn.Micro,fmarrabal/Caliburn.Micro,TriadTom/Caliburn.Micro,bendetat/Caliburn.Micro,huoxudong125/Caliburn.Micro,suvjunmd/Caliburn.Micro,mbruckner/Caliburn.Micro,eh... |
050b2c5442267a56c4689a58f88013662eb10df0 | src/Common/src/System/Runtime/InteropServices/Marshal.Unix.cs | src/Common/src/System/Runtime/InteropServices/Marshal.Unix.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 System.Runtime.InteropServices
{
// Stand-in type for low-level assemblies to obtain Win32 errors
... | // 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 System.Runtime.InteropServices
{
// Stand-in type for low-level assemblies to obtain Win32 errors
... | Make Marshal.PtrToStringAnsi to use Utf8 on Linux | Make Marshal.PtrToStringAnsi to use Utf8 on Linux
https://github.com/dotnet/corefx/issues/6834
| C# | mit | dhoehna/corefx,nbarbettini/corefx,jlin177/corefx,rahku/corefx,elijah6/corefx,cydhaselton/corefx,ericstj/corefx,nbarbettini/corefx,rjxby/corefx,wtgodbe/corefx,tstringer/corefx,twsouthwick/corefx,mazong1123/corefx,richlander/corefx,iamjasonp/corefx,ericstj/corefx,tstringer/corefx,adamralph/corefx,manu-silicon/corefx,Jiay... |
4dc929e08402fa5bf80aaf71209e2b8fed892e4e | src/framework/GuiUnit/XmlTestListener.cs | src/framework/GuiUnit/XmlTestListener.cs | using System;
using NUnit.Framework.Api;
using System.Xml.Linq;
using System.IO;
namespace GuiUnit
{
public class XmlTestListener : ITestListener
{
TextWriter Writer {
get; set;
}
public XmlTestListener (TextWriter writer)
{
Writer = writer;
}
public void TestStarted (ITest test)
{
if (test.... | Add basic support for outputing on the fly updates | Add basic support for outputing on the fly updates
| C# | mit | mono/guiunit | |
aeffa1ef49e68d430857e08ea3c104b8acadca24 | src/Log4netAssemblyInfo.cs | src/Log4netAssemblyInfo.cs | #region Apache License
//
// 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
// (... | Make metadata accessible without reflection | Make metadata accessible without reflection
git-svn-id: 223c0ba935819ffdcafdc68147dc609b4e469b1e@1159843 13f79535-47bb-0310-9956-ffa450edef68
| C# | apache-2.0 | drunkirishcoder/monotouch-log4net,StevenJiang2015/log4net,harold4/log4net,amtkmrsmn/log4net,modulexcite/log4net,Dagwaging/log4net,drunkirishcoder/monotouch-log4net,amtkmrsmn/log4net,drunkirishcoder/monotouch-log4net,harold4/log4net,StevenJiang2015/log4net,harold4/log4net,amtkmrsmn/log4net,Dagwaging/log4net,StevenJiang2... | |
f14121232a837661d8b3ad109a1d67a11905f2ac | src/NCrawler/SimpleStep.cs | src/NCrawler/SimpleStep.cs | using System;
using System.Threading.Tasks;
using NCrawler.Interfaces;
namespace NCrawler
{
/// <summary>
/// Implementation of pipeline steps which allow steps definition using simple functions
/// </summary>
public class SimpleStep : IPipelineStep
{
private Func<ICrawler, PropertyBag, Ta... | Add simple step which allow using delegates for defining steps | Add simple step which allow using delegates for defining steps
| C# | lgpl-2.1 | kant2002/ncrawler | |
97af6f96633f8243ab1108e36b6ec6da12e11e3e | resharper/resharper-unity/src/Feature/Services/ExternalSources/ZoneMarker.cs | resharper/resharper-unity/src/Feature/Services/ExternalSources/ZoneMarker.cs | using JetBrains.Application.BuildScript.Application.Zones;
using JetBrains.ReSharper.Feature.Services.ExternalSources;
namespace JetBrains.ReSharper.Plugins.Unity.Feature.Services.ExternalSources
{
[ZoneMarker]
public class ZoneMarker : IRequire<ExternalSourcesZone>
{
}
} | Add zone marker to fix exceptions in inspectcode | Add zone marker to fix exceptions in inspectcode
| C# | apache-2.0 | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | |
606dea6ea6574936038089a287371e636958ce72 | SetIPCLI/EditProfile.cs | SetIPCLI/EditProfile.cs | using CLImber;
using SetIPLib;
using System;
using System.Linq;
using System.Net;
namespace SetIPCLI
{
[CommandClass("edit", ShortDescription = "Updates a profile with the specified information. Updated info is specified using options: --ip=xxx.xxx.xxx.xxx")]
class EditProfile
{
private Profile _e... | Add Command to Edit Profiles | Add Command to Edit Profiles
With CLImber's support for options, the Edit command can be implemented. Options are used to specify which part of the profile should be changed. | C# | mit | TheLoudestNinja/SetIP | |
656f1929cb799b4fae7d7c5c40fa703decbfe0c8 | src/Firehose.Web/Authors/DavidOBrien.cs | src/Firehose.Web/Authors/DavidOBrien.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 DavidOBrien : IFilterMyBlogPosts, IAmAMicrosoftMVP
{
public string FirstName => "David";
p... | Add class for David OBrien | Add class for David OBrien
| C# | mit | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | |
fa07615789206f560f4cd17936181284048129fd | NBi.Core/Members/Ranges/IntegerRangeBuilder.cs | NBi.Core/Members/Ranges/IntegerRangeBuilder.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NBi.Core.Members.Ranges
{
internal class IntegerRangeBuilder : BaseBuilder
{
protected new IntegerRange Range
{
get
{
return (IntegerRange)base.R... | Add the builder for an Integer range | Add the builder for an Integer range
| C# | apache-2.0 | Seddryck/NBi,Seddryck/NBi | |
cf040d9c2ae410e7ea65ab289416762301a89c13 | src/Generator/Passes/PassBuilder.cs | src/Generator/Passes/PassBuilder.cs | using System.Collections.Generic;
using System.Linq;
using CppSharp.Passes;
namespace CppSharp
{
/// <summary>
/// This class is used to build passes that will be run against the AST
/// that comes from C++.
/// </summary>
public class PassBuilder<T>
{
public List<T> Passes { get; priv... | using System.Collections.Generic;
using System.Linq;
using CppSharp.Passes;
namespace CppSharp
{
/// <summary>
/// This class is used to build passes that will be run against the AST
/// that comes from C++.
/// </summary>
public class PassBuilder<T>
{
public List<T> Passes { get; priv... | Use a different generic type variable name that does not conflict with the parent one. | Use a different generic type variable name that does not conflict with the parent one.
| C# | mit | imazen/CppSharp,mohtamohit/CppSharp,mono/CppSharp,inordertotest/CppSharp,nalkaro/CppSharp,ktopouzi/CppSharp,Samana/CppSharp,imazen/CppSharp,mydogisbox/CppSharp,KonajuGames/CppSharp,mono/CppSharp,nalkaro/CppSharp,xistoso/CppSharp,xistoso/CppSharp,zillemarco/CppSharp,ddobrev/CppSharp,zillemarco/CppSharp,ddobrev/CppSharp,... |
83235e69d301161858de1e729a74e57f71c37e00 | test/Infrastructure/Web.Tests/Conventions/Responses/ExceptionDescriptionTests.cs | test/Infrastructure/Web.Tests/Conventions/Responses/ExceptionDescriptionTests.cs | namespace Skeleton.Web.Tests.Conventions.Responses
{
using System;
using Web.Conventions.Responses;
using Xunit;
public class ExceptionDescriptionTests
{
[Fact]
public void ShouldCollectInformation()
{
// Given
const string message = "<Message>";
... | Test was added for ExceptionDescription | Test was added for ExceptionDescription
| C# | mit | litichevskiydv/WebInfrastructure,litichevskiydv/WebInfrastructure | |
2bc8e173b31366a85929b1dab48f26ef61496832 | TableEditing/TableEditing/AppDelegate.cs | TableEditing/TableEditing/AppDelegate.cs | using System;
using CoreGraphics;
using UIKit;
using Foundation;
namespace TableEditing
{
[Register ("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
#region -= main =-
public static void Main (string[] args)
{
try {
UIApplication.Main (args, null, "AppDelegate");
} catch (Excepti... | using System;
using CoreGraphics;
using UIKit;
using Foundation;
namespace TableEditing
{
[Register ("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
#region -= main =-
public static void Main (string[] args)
{
try {
UIApplication.Main (args, null, "AppDelegate");
} catch (Excepti... | Set root view controller for window | [TableEditing] Set root view controller for window | C# | mit | xamarin/monotouch-samples,markradacz/monotouch-samples,markradacz/monotouch-samples,iFreedive/monotouch-samples,W3SS/monotouch-samples,xamarin/monotouch-samples,albertoms/monotouch-samples,markradacz/monotouch-samples,albertoms/monotouch-samples,W3SS/monotouch-samples,kingyond/monotouch-samples,iFreedive/monotouch-samp... |
c46304c8cc957b6b2726a1ed94d3602ee9765d0c | src/Certify.UI/Utils/UpdateCheckUtils.cs | src/Certify.UI/Utils/UpdateCheckUtils.cs | using Certify.Locales;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
namespace Certify.UI.Utils
{
public class UpdateCheckUtils
{
public async Task<Models.UpdateCheck> UpdateWithDownload()
{
Mouse.OverrideCursor = Cursors.Wait;
var upda... | using Certify.Locales;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
namespace Certify.UI.Utils
{
public class UpdateCheckUtils
{
public async Task<Models.UpdateCheck> UpdateWithDownload()
{
Mouse.OverrideCursor = Cursors.Wait;
var upda... | Use "silent" install (no prompts) when running optional auto apply update | Use "silent" install (no prompts) when running optional auto apply update
| C# | mit | ndouthit/Certify,Prerequisite/Certify,webprofusion/Certify |
f481c88cd4431d698bd4fd4dddad2e789068f558 | apis/Google.Cloud.Speech.V1/Google.Cloud.Speech.V1/SpeechSettings.cs | apis/Google.Cloud.Speech.V1/Google.Cloud.Speech.V1/SpeechSettings.cs | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | Add partial class for retry settings (compatibility) | Add partial class for retry settings (compatibility)
| C# | apache-2.0 | jskeet/google-cloud-dotnet,jskeet/gcloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,googleapis/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet | |
d979bda05251cec51a3381e7d1e2d2c8da830cee | Src/VisualAssertions/Screenshots/Utils/DateTimeExtensions.cs | Src/VisualAssertions/Screenshots/Utils/DateTimeExtensions.cs | using System;
namespace Tellurium.VisualAssertions.Screenshots.Utils
{
static class DateTimeExtensions
{
public static DateTime TrimToMiliseconds(this DateTime dateTime)
{
return Trim(dateTime, TimeSpan.TicksPerMillisecond);
}
static DateTime Trim(DateTime date, lo... | Fix issue with persisting DateTime | Fix issue with persisting DateTime
| C# | mit | cezarypiatek/MaintainableSelenium,cezarypiatek/MaintainableSelenium,cezarypiatek/Tellurium,cezarypiatek/MaintainableSelenium,cezarypiatek/Tellurium,cezarypiatek/Tellurium | |
b8509c85e57e233ba908286899c8bb387862cb2f | Stranne.BooliLib.Tests/LibraryVisabilityTest.cs | Stranne.BooliLib.Tests/LibraryVisabilityTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Stranne.BooliLib.Models;
using Xunit;
namespace Stranne.BooliLib.Tests
{
public class LibraryVisabilityTest
{
private readonly IEnumerable<Type> _publicClasses = new List<Type>
{
typeo... | Add test to verify library class visability | Add test to verify library class visability
Ensure that no unintended classes are set to public, vice versa. | C# | mit | stranne/BooliLib | |
956595ca8c4ab8625ef2486d3b1e957f050cff0c | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api/question")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository ... | Update server side API for single multiple answer question | Update server side API for single multiple answer question
| C# | mit | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist | |
bbf0de2df775751043c1c2fe051ead91792b8022 | app/Assets/Scripts/AccelerometerReader.cs | app/Assets/Scripts/AccelerometerReader.cs | using UnityEngine;
using System.Collections;
public class AccelerometerReader : MonoBehaviour {
public float Filter = 5.0f;
public GUIText Label;
private Vector3 accel;
void Start() {
accel = Input.acceleration;
}
void Update() {
// filter the jerky acceleration in the variab... | Add accelerometer reader example script | Add accelerometer reader example script
| C# | mit | mikelovesrobots/unity3d-base,mikelovesrobots/throw-a-ball-tutorial,jshou/party-game | |
661a09903ea020a82fc604a94e4f46fd6317dd6e | CareerCup/Google/convert_number_to_column.cs | CareerCup/Google/convert_number_to_column.cs | // http://careercup.com/question?id=5690323227377664
//
// Write a function which takes an integer and convert to string as:
// 1 - A 0001
// 2 - B 0010
// 3 - AA 0011
// 4 - AB 0100
// 5 - BA 0101
// 6 - BB 0110
// 7 - AAA 0111
// 8 - AAB 1000
// 9 - ABA 10... | Convert int to string column | Convert int to string column
| C# | mit | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | |
4feb43ec8ec81deb9152f8c878f87ed3c4d30851 | open3mod/LinqZipNet4Backport.cs | open3mod/LinqZipNet4Backport.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace open3mod
{
// Zip() was added in .NET 4.0.
// http://blogs.msdn.com/b/ericlippert/archive/2009/05/07/zip-me-up.aspx
public static class LinqZipNet4Backport
{
public static IEnumerable<TResult> Zip<T... | Add Eric Lippert's backport of Zip() to .NET 3.5. | Add Eric Lippert's backport of Zip() to .NET 3.5.
| C# | bsd-3-clause | zhukaixy/open3mod,dayo7116/open3mod,dayo7116/open3mod,zhukaixy/open3mod,acgessler/open3mod,acgessler/open3mod | |
544117a49495a97c297f0253b0fcfa1725b9ce74 | osu.Game.Tests/NonVisual/FormatUtilsTest.cs | osu.Game.Tests/NonVisual/FormatUtilsTest.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.Game.Utils;
namespace osu.Game.Tests.NonVisual
{
[TestFixture]
public class FormatUtilsTest
{
[TestCase(0, "0.00%")]... | Add test coverage of accuracy formatting function | Add test coverage of accuracy formatting function
| C# | mit | peppy/osu-new,peppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu | |
91a738f3d70a66bc965370df83d3407ed1a8dca5 | CardGames/TooFewPlayersException.cs | CardGames/TooFewPlayersException.cs | // TooFewPlayersException.cs
// <copyright file="TooFewPlayersException.cs"> This code is protected under the MIT License. </copyright>
using System;
namespace CardGames
{
/// <summary>
/// An exception raised when TooFewPlayers are added to a game.
/// </summary>
[Serializable]
public c... | Add too few players exception | Add too few players exception | C# | mit | ashfordl/cards | |
a1c5d28068a888ae3ea713362fb819ccda3ba7b4 | TimeNetSync/TimeNetSync/Services/IResultsOutput.cs | TimeNetSync/TimeNetSync/Services/IResultsOutput.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TimeNetSync.Services
{
public interface IResultsOutput
{
}
}
| Set up results output interface | Set up results output interface
| C# | mit | MelHarbour/timenet-sync | |
9a34a5dfc93c635ddd8eae3f78aa7602e7c6c7dc | resharper/resharper-unity/src/Rider/RiderUnityDocumentOperationsImpl.cs | resharper/resharper-unity/src/Rider/RiderUnityDocumentOperationsImpl.cs | using JetBrains.Annotations;
using JetBrains.Application.changes;
using JetBrains.Application.FileSystemTracker;
using JetBrains.Application.Threading;
using JetBrains.DocumentManagers;
using JetBrains.DocumentModel;
using JetBrains.Lifetimes;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Host.Features.Docume... | Fix autosave and refresh on shared projects | Fix autosave and refresh on shared projects
| C# | apache-2.0 | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | |
b54257acf635ea8c8c11bd72e8c81a9a9eca7b7c | Yeena/PathOfExile/PoEStashTabInfo.cs | Yeena/PathOfExile/PoEStashTabInfo.cs | // Copyright 2013 J.C. Moyer
//
// 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 ... | Add missing file for named tabs | Add missing file for named tabs
| C# | apache-2.0 | jcmoyer/Yeena | |
b798454c1179d8ec303b7eade746af46ad2a768b | tests/MassTransit.Tests/RequestFilter_Specs.cs | tests/MassTransit.Tests/RequestFilter_Specs.cs | namespace MassTransit.Tests
{
using System;
using System.Threading.Tasks;
using MassTransit.Testing;
using Microsoft.Extensions.DependencyInjection;
using Middleware;
using NUnit.Framework;
using TestFramework.Messages;
[TestFixture]
public class Using_a_request_filter_with_request... | Verify NotifyFault called will properly fail a filter execution | Verify NotifyFault called will properly fail a filter execution
| C# | apache-2.0 | phatboyg/MassTransit,MassTransit/MassTransit,MassTransit/MassTransit,phatboyg/MassTransit | |
b18a2374f94e67a3e2a24aaedcc32a2363faf35f | src/CompetitionPlatform/Models/NotificationModels.cs | src/CompetitionPlatform/Models/NotificationModels.cs | using System;
namespace CompetitionPlatform.Models
{
public class Initiative
{
public string FirstName { get; set; }
public string ProjectId { get; set; }
public DateTime ProjectCreatedDate { get; set; }
public string ProjectAuthorName { get; set; }
public string Projec... | Add models for notification emails. | Add models for notification emails.
| C# | mit | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform | |
70c9d7105feb5162661379f427562de6cba17f91 | osu.Game.Rulesets.Catch/Edit/CatchHitObjectUtils.cs | osu.Game.Rulesets.Catch/Edit/CatchHitObjectUtils.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Rulesets.Catch.Objects;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.UI.Scrolling;
using osuTK;
namespace osu.Game.Rulesets.Catch.Edit
{
/... | Add a function to compute hit object position in catch editor | Add a function to compute hit object position in catch editor
| C# | mit | peppy/osu-new,peppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu | |
1a81b272844d172654ea6ef4418fb07b8d6f6118 | MultipleKinectsPlatform/Data/Skeleton.cs | MultipleKinectsPlatform/Data/Skeleton.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;
using Microsoft.Kinect;
using System.IO;
namespace MultipleKinectsPlatform.MultipleKinectsPlatform... | Add a new datatype for skeletons | Add a new datatype for skeletons
| C# | agpl-3.0 | ethanlim/MinorityViewportClient | |
abfe153414642e6fda723a52ae956bb311a4dc44 | Tests/NotifyPropertyChangedBase.cs | Tests/NotifyPropertyChangedBase.cs | using System;
using GamesWithGravitas.Extensions;
using Xunit;
namespace GamesWithGravitas
{
public class NotifyPropertyChangedBaseTests
{
[Theory]
[InlineData("Foo")]
[InlineData("Bar")]
public void SettingAPropertyWorks(string propertyValue)
{
var notifier... | Add some simple test cases for SetProperty. | Add some simple test cases for SetProperty.
| C# | mit | GalaxiaGuy/MobileLibraries | |
dea2acaea3f24b6fb33cf7f1746002e7151941f7 | osu.Game/Rulesets/Mods/IApplicableForceRestart.cs | osu.Game/Rulesets/Mods/IApplicableForceRestart.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
namespace osu.Game.Rulesets.Mods
{
/// <summary>
/// Represents a mod which can override (and block) a fail.
/// </summary>
public interface IApplicableR... | Add new interface that allows restarts | Add new interface that allows restarts
| C# | mit | NeoAdonis/osu,peppy/osu,peppy/osu,NeoAdonis/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,2yangk23/osu,UselessToucan/osu,ppy/osu,johnneijzen/osu,peppy/osu,ZLima12/osu,ppy/osu,smoogipoo/osu,EVAST9919/osu,ZLima12/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,peppy/osu-new,2yangk23/osu,smoogipoo/osu,EVAST9919/osu,johnn... | |
6f153ddbf618e2340bcf22bac831b70a373b5bc0 | osu.Framework.Tests/Audio/DeviceLosingAudioTest.cs | osu.Framework.Tests/Audio/DeviceLosingAudioTest.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.Threading;
using NUnit.Framework;
using osu.Framework.IO.Stores;
using osu.Framework.Threading;
namespace osu.Framework.Tests.Audio
{
///... | Add tests for losing audio devices | Add tests for losing audio devices
| C# | mit | smoogipooo/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,peppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework | |
8f50f54fb1258eee1bdbf54d57dbc8157d0e29ed | test/Amadevus.RecordGenerator.Test/RecordClassTests.cs | test/Amadevus.RecordGenerator.Test/RecordClassTests.cs | using Amadevus.RecordGenerator.TestsBase;
using Xunit;
namespace Amadevus.RecordGenerator.Test
{
public class RecordClassTests : RecordTestsBase
{
[Fact]
public void ReflectedClass_HasNo_RecordAttribute()
{
var recordType = typeof(Item);
var recordAttributes = ... | Add test that asserts records don't have RecordAttribute in reflection | Add test that asserts records don't have RecordAttribute in reflection
| C# | mit | amis92/RecordGenerator | |
5a97704fe2a32ae89ca5cba3ba7ce0f06fdb3daf | Game/DifficultyHandler.cs | Game/DifficultyHandler.cs |
public class DifficultyHandler : BaseBehaviour {
private int difficultyLevel;
void OnSetDifficulty(int difficulty)
{
switch (difficulty)
{
case NORMAL:
EventKit.Broadcast("set difficulty damage modifier", 1);
break;
case HARD:
EventKit.Broadcast("set difficulty damage modifier", 2);
brea... | Update to use EventKit messaging | Update to use EventKit messaging
| C# | mit | jguarShark/Unity2D-Components,cmilr/Unity2D-Components | |
aafd94bf753ef7391c00afdfd2c090563aea1e7a | Azure/WeatherStation/ConnectionStrings.cs | Azure/WeatherStation/ConnectionStrings.cs | using Windows.UI.Xaml.Controls;
namespace WeatherDataReporter
{
public sealed partial class MainPage : Page
{
static string iotHubUri = "{replace}";
static string deviceKey = "{replace}";
static string deviceId = "{replace}";
}
}
| Move connection strings to separate file | Move connection strings to separate file
| C# | mit | derekameer/samples,paulmon/samples,jayhopeter/samples,bfjelds/samples,tjaffri/msiot-samples,ms-iot/samples,ms-iot/samples,tjaffri/msiot-samples,MasayukiNagase/samples,sewong/samples,sewong/samples,derekameer/samples,ms-iot/samples,zhuridartem/samples,Sumahitha/samples,dotMorten/samples,paulmon/samples,bfjelds/samples,j... | |
5bc97255883a048dbf29f101876936e7334461a6 | PepperSharp/src/pp_completion_callback_extensions.cs | PepperSharp/src/pp_completion_callback_extensions.cs | using System;
using System.Runtime.InteropServices;
namespace PepperSharp
{
public partial struct PPCompletionCallback
{
public PPCompletionCallback(PPCompletionCallbackFunc func)
{
this.func = func;
this.user_data = IntPtr.Zero;
this.flags = (int)PPComplet... | Add partial implementation to PPCompletionCallback | Add partial implementation to PPCompletionCallback
- Add constructors which make it easier to create callback functions to be used.
- Add static helper methods for working with user data that is passed around with the callback
+ public static object GetUserDataAsObject(IntPtr userData)
+ public static T GetUserData<T>... | C# | mit | xamarin/WebSharp,xamarin/WebSharp,xamarin/WebSharp,xamarin/WebSharp,xamarin/WebSharp,xamarin/WebSharp | |
de76662f479ead15fdf0f5a5720d1c13b5ff11c9 | DataCenterReader/DataCenterExtensions.cs | DataCenterReader/DataCenterExtensions.cs | using System.IO;
using System.Linq;
using System.Xml.Linq;
namespace Tera.Analytics
{
public static class DataCenterExtensions
{
private static XStreamingElement ToXStreamingElement(DataCenterElement element)
{
var xElement = new XStreamingElement(element.Name);
xElemen... | Add extension methods to export the Data Center's content. | Add extension methods to export the Data Center's content.
| C# | mit | Mirrawrs/Tera | |
8e4f5381e3cba926282ea72d52621cca6be6a52e | osu.Game.Tests/Visual/Editing/TestSceneEditorBindings.cs | osu.Game.Tests/Visual/Editing/TestSceneEditorBindings.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.Game.Rulesets;
using osu.Game.Rulesets.Osu;
using osuTK.Input;
namespace osu.Game.Tests.Visual.Editing
{
/// <summary>
/// Test ... | Add top level test coverage of editor shortcuts | Add top level test coverage of editor shortcuts
| C# | mit | ppy/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu,peppy/osu | |
137626c950c182b8fe149ebc3acdb410537ab798 | tests/Tgstation.Server.Host.Tests/Core/TestApplication.cs | tests/Tgstation.Server.Host.Tests/Core/TestApplication.cs | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using System;
namespace Tgstation.Server.Host.Core.Tests
{
[TestClass]
public sealed class TestApplicat... | Add a basic application test | Add a basic application test
| C# | agpl-3.0 | Cyberboss/tgstation-server,tgstation/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server-tools | |
6d108e903d323b36315e8b019bd59ac851770d6b | CareerCup/Google/rearrange_chars.cs | CareerCup/Google/rearrange_chars.cs | // http://careercup.com/question?id=5693863291256832
//
// Rearrange chars in a String so that no adjacent chars repeat
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
static class Program
{
static Random random = new Random();
static String Rearrange(this String s)
... | Rearrange chars - prep work | Rearrange chars - prep work
| C# | mit | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | |
b39f3bb9ecceb787c2b026a6a7162e38232f4d10 | src/Narvalo.Finance/Globalization/RegionInfo$.cs | src/Narvalo.Finance/Globalization/RegionInfo$.cs | // Copyright (c) Narvalo.Org. All rights reserved. See LICENSE.txt in the project root for license information.
namespace Narvalo.Finance
{
using System.Globalization;
public static class RegionInfoExtensions
{
public static bool IsUsing(this RegionInfo @this, Currency currency)
{
... | Add two extensions for RegionInfo. | Add two extensions for RegionInfo.
| C# | bsd-2-clause | chtoucas/Narvalo.NET,chtoucas/Narvalo.NET | |
dd165290da89b9a622b2b45cf27c441e8faa2f96 | src/CompetitionPlatform/Helpers/NotificationMessageHelper.cs | src/CompetitionPlatform/Helpers/NotificationMessageHelper.cs | using Newtonsoft.Json;
namespace CompetitionPlatform.Helpers
{
public static class NotificationMessageHelper
{
public static string ProjectCreatedMessage(string userEmail, string userName, string projectName)
{
var messageData = new MessageData
{
Subject... | Add a helper class to compose broadcasted messages. | Add a helper class to compose broadcasted messages.
| C# | mit | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform | |
07496d23acd4e6f4f30b343b8c9e172d71c9d562 | src/AngleSharp.Core.Tests/Io/MimeTypeNameTests.cs | src/AngleSharp.Core.Tests/Io/MimeTypeNameTests.cs | namespace AngleSharp.Core.Tests.Io
{
using AngleSharp.Io;
using NUnit.Framework;
[TestFixture]
public class MimeTypeNameTests
{
[Test]
public void CommonMimeTypesAreCorrectlyDefined()
{
Assert.AreEqual("image/avif", MimeTypeNames.FromExtension(".avif"));
... | Add test coverage for common mime types | Add test coverage for common mime types
| C# | mit | AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp | |
6ca93de7a1084e9a8e78c1a8814507c9e757ab4b | tests/LondonTravel.Site.Tests/Models/MetaModelTests.cs | tests/LondonTravel.Site.Tests/Models/MetaModelTests.cs | // Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.LondonTravel.Site.Models
{
using MartinCostello.LondonTravel.Site.Options;
using Shouldly;
using Xunit;
... | Add unit tests for MetaModel | Add unit tests for MetaModel
Add very basic unit tests for null handling in MetaModel.Create().
| C# | apache-2.0 | martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site | |
f2c9f6e2e8781800508b639e8fb5cbeeb1d60ef1 | src/Diploms.Services/Departments/DepartmentsMappings.cs | src/Diploms.Services/Departments/DepartmentsMappings.cs | using AutoMapper;
using Diploms.Core;
using Diploms.Dto.Departments;
namespace Diploms.Services.Departments
{
public class DepartmentsMappings : Profile
{
public DepartmentsMappings()
{
CreateMap<DepartmentEditDto, Department>();
}
}
} | Add mapping profile for departments | Add mapping profile for departments
| C# | mit | denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs | |
1a9a93542ffd90af0e63f67f174572e9faf133d8 | BitCommitment/BitCommitmentEngine.cs | BitCommitment/BitCommitmentEngine.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BitCommitment
{
/// <summary>
/// A class to perform bit commitment. It does not care what the input is; it's just a
/// facility for exchanging bit commitment messages.
/// <... | Add separate facility for bit commitment | Add separate facility for bit commitment
| C# | mit | 0culus/ElectronicCash | |
ee36968092e5ee6706a69028521c37eec451faec | src/Jasper.ConfluentKafka/Serialization/DefaultJsonSerializer.cs | src/Jasper.ConfluentKafka/Serialization/DefaultJsonSerializer.cs | using System;
using System.Text;
using System.Threading.Tasks;
using Confluent.Kafka;
using Confluent.Kafka.SyncOverAsync;
using Newtonsoft.Json;
namespace Jasper.ConfluentKafka.Serialization
{
internal class DefaultJsonSerializer<T> : IAsyncSerializer<T>
{
public Task<byte[]> SerializeAsync(T data, Se... | Add a basic kafka serilaizer | Add a basic kafka serilaizer
| C# | mit | JasperFx/jasper,JasperFx/jasper,JasperFx/jasper | |
293f4af0fba0cc0209e59a783dc3c159c01ba55a | test/Binance.Tests/WebSocket/DefaultWebSocketClientTest.cs | test/Binance.Tests/WebSocket/DefaultWebSocketClientTest.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using Binance.WebSocket;
using Xunit;
namespace Binance.Tests.WebSocket
{
public class DefaultWebSocketClientTest
{
[Fact]
public async Task Throws()
{
var uri = new Uri("wss://stream.binance.com:9443");
... | Add default web socket client unit tests | Add default web socket client unit tests
| C# | mit | sonvister/Binance | |
8ed48402115146a85a81ac0c4fed780befbdcced | rocketmq-client-donet/src/ProducerWrap.cs | rocketmq-client-donet/src/ProducerWrap.cs | using System;
using System.Runtime.InteropServices;
namespace RocketMQ.Interop
{
public static class ProducerWrap
{
// init
[DllImport(ConstValues.RocketMQDriverDllName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr CreateProducer(string groupId);
[... | Add the producer wrap to donet | Add the producer 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... | |
1e28fc4a9a1f3a745d37469ce48639c65dade4ac | src/NBench.VisualStudio.TestAdapter/NBenchTestDiscoverer.cs | src/NBench.VisualStudio.TestAdapter/NBenchTestDiscoverer.cs | namespace NBench.VisualStudio.TestAdapter
{
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging;
using System;
using System.Collections.Generic;
public class NBenchTestDiscoverer : ITestDiscoverer
{
public void Di... | Add the NBench visual studio test adapter project. | Add the NBench visual studio test adapter project.
| C# | apache-2.0 | SeanFarrow/NBench.VisualStudio | |
ff1a43f15b53de6d4cbb6df0185bdcdf16e0c1ea | Assets/Scripts/TextureTilingController.cs | Assets/Scripts/TextureTilingController.cs | using UnityEngine;
using System.Collections;
[ExecuteInEditMode]
public class TextureTilingController : MonoBehaviour {
// Give us the texture so that we can scale proportianally the width according to the height variable below
// We will grab it from the meshRenderer
//public Texture texture;
//public float te... | Add script for fixing tecture scaling | Add script for fixing tecture scaling
| C# | mit | ANamelessBand/pulse,ANamelessBand/pulse,ANamelessBand/pulse,ANamelessBand/pulse | |
59c8b2d8b9a6e3a531900307be2edb16fa0d83b3 | Phoebe/Data/DataObjects/CommonData.cs | Phoebe/Data/DataObjects/CommonData.cs | using System;
namespace Toggl.Phoebe.Data.DataObjects
{
public abstract class CommonData
{
protected CommonData ()
{
ModifiedAt = Time.UtcNow;
}
/// <summary>
/// Initializes a new instance of the <see cref="Toggl.Phoebe.Data.DataObjects.CommonData"/> class... | using System;
using SQLite;
namespace Toggl.Phoebe.Data.DataObjects
{
public abstract class CommonData
{
protected CommonData ()
{
ModifiedAt = Time.UtcNow;
}
/// <summary>
/// Initializes a new instance of the <see cref="Toggl.Phoebe.Data.DataObjects.Commo... | Make primary key auto increment. | Make primary key auto increment.
| C# | bsd-3-clause | eatskolnikov/mobile,masterrr/mobile,ZhangLeiCharles/mobile,peeedge/mobile,eatskolnikov/mobile,masterrr/mobile,peeedge/mobile,eatskolnikov/mobile,ZhangLeiCharles/mobile |
0418d70056c3211ff20b48293bf3e04de64fdafa | osu.Game.Tests/Rulesets/TestSceneBrokenRulesetHandling.cs | osu.Game.Tests/Rulesets/TestSceneBrokenRulesetHandling.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 enable
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Testing;
using osu.Game.... | Add test coverage for ignoring null mods returned by rulesets | Add test coverage for ignoring null mods returned by rulesets
| C# | mit | peppy/osu,peppy/osu,ppy/osu,peppy/osu,ppy/osu,ppy/osu | |
3b45360e35110c3084f5ec37ef0a959cd017e838 | src/System.Diagnostics.Process/tests/ProcessModuleTests.cs | src/System.Diagnostics.Process/tests/ProcessModuleTests.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.Linq;
using Xunit;
namespace System.Diagnostics.Tests
{
public class ProcessModuleTests : ProcessT... | // 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.Linq;
using Xunit;
namespace System.Diagnostics.Tests
{
public class ProcessModuleTests : ProcessT... | Change the check range for BaseAddress and EntryPointAddress | Change the check range for BaseAddress and EntryPointAddress
IntPtr::ToInt64() returns a signed value
so it should be checked btw long.MinValue and long.MaxValue.
Signed-off-by: Jiyoung Yun <888ab5aac88c5184952942ca1558a2962a0a2b47@samsung.com>
| C# | mit | rjxby/corefx,yizhang82/corefx,alphonsekurian/corefx,parjong/corefx,shimingsg/corefx,MaggieTsang/corefx,krk/corefx,elijah6/corefx,Jiayili1/corefx,billwert/corefx,Jiayili1/corefx,zhenlan/corefx,ravimeda/corefx,axelheer/corefx,cydhaselton/corefx,gkhanna79/corefx,lggomez/corefx,shimingsg/corefx,billwert/corefx,shmao/corefx... |
19bc313854389c3738cd25ff428bf6af4db117e2 | OpenGLESSample-GameView/AppDelegate.cs | OpenGLESSample-GameView/AppDelegate.cs | using UIKit;
using Foundation;
namespace OpenGLESSampleGameView
{
// The name AppDelegate is referenced in the MainWindow.xib file.
public partial class OpenGLESSampleAppDelegate : UIApplicationDelegate
{
// This method is invoked when the application has loaded its UI and its ready to run
public override bool... | using UIKit;
using Foundation;
namespace OpenGLESSampleGameView
{
// The name AppDelegate is referenced in the MainWindow.xib file.
public partial class OpenGLESSampleAppDelegate : UIApplicationDelegate
{
// This method is invoked when the application has loaded its UI and its ready to run
public override bool... | Fix startup error - setup root view controller | [OpenGLES-GameView] Fix startup error - setup root view controller | C# | mit | xamarin/monotouch-samples,albertoms/monotouch-samples,xamarin/monotouch-samples,kingyond/monotouch-samples,kingyond/monotouch-samples,markradacz/monotouch-samples,albertoms/monotouch-samples,kingyond/monotouch-samples,markradacz/monotouch-samples,W3SS/monotouch-samples,iFreedive/monotouch-samples,albertoms/monotouch-sa... |
36996c5ab543634ecf28e0befcab0af30d570b38 | test/Openchain.Ledger.Tests/P2pkhIssuanceImplicitLayoutTests.cs | test/Openchain.Ledger.Tests/P2pkhIssuanceImplicitLayoutTests.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... | Add unit tests for the P2pkhIssuanceImplicitLayout class | Add unit tests for the P2pkhIssuanceImplicitLayout class
| C# | apache-2.0 | openchain/openchain | |
9d7d7152bb5878785ed33e2a5fd9e6d61821af4e | src/Microsoft.TemplateEngine.Edge/AssemblyComponentCatalog.cs | src/Microsoft.TemplateEngine.Edge/AssemblyComponentCatalog.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Microsoft.TemplateEngine.Abstractions;
namespace Microsoft.TemplateEngine.Edge
{
public class AssemblyComponentCatalog : IReadOnlyList<KeyValuePair<Guid, Func<Type>>>
{
private r... | Enable scanning at the assembly level for components for the dotnet CLI | Enable scanning at the assembly level for components for the dotnet CLI
| C# | mit | seancpeters/templating,seancpeters/templating,seancpeters/templating,mlorbetske/templating,seancpeters/templating,mlorbetske/templating | |
5a0e52cee745875e26e922790790a538c59acde3 | test/ConsoleWriter.Tests.cs | test/ConsoleWriter.Tests.cs | using System;
using Xunit;
using OutputColorizer;
using System.IO;
namespace UnitTests
{
public partial class ConsoleWriterTests
{
[Fact]
public void TestGetForegroundColor()
{
ConsoleWriter cw = new ConsoleWriter();
Assert.Equal(Console.ForegroundColor, cw.Fore... | Add tests for the ConsoleWriter | Add tests for the ConsoleWriter
| C# | mit | AlexGhiondea/OutputColorizer,AlexGhiondea/OutputColorizer | |
e0beb9a401a7a964573e82e198035aad68cbc5a8 | Dasher.Tests/MethodsTests.cs | Dasher.Tests/MethodsTests.cs | #region License
//
// Dasher
//
// Copyright 2015-2016 Drew Noakes
//
// 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
//
// ... | Add test that validates all reflected methods are non-null. | Add test that validates all reflected methods are non-null.
| C# | apache-2.0 | drewnoakes/dasher | |
383bfdf670b5f011b16a28e0f51eccdd6632db5f | src/Generator/Passes/ObjectOverridesPass.cs | src/Generator/Passes/ObjectOverridesPass.cs | using System;
using System.Collections.Generic;
using CppSharp.AST;
using CppSharp.Generators;
using CppSharp.Generators.CLI;
using CppSharp.Passes;
namespace CppSharp
{
public class ObjectOverridesPass : TranslationUnitPass
{
void OnUnitGenerated(GeneratorOutput output)
{
foreach ... | Add work-in-progress ObjectOverrides pass that adds GetHashCode and Equals overrides. | Add work-in-progress ObjectOverrides pass that adds GetHashCode and Equals overrides.
| C# | mit | zillemarco/CppSharp,imazen/CppSharp,SonyaSa/CppSharp,SonyaSa/CppSharp,ktopouzi/CppSharp,mono/CppSharp,ddobrev/CppSharp,u255436/CppSharp,xistoso/CppSharp,mono/CppSharp,mydogisbox/CppSharp,mono/CppSharp,inordertotest/CppSharp,imazen/CppSharp,Samana/CppSharp,KonajuGames/CppSharp,imazen/CppSharp,nalkaro/CppSharp,genuineluc... | |
835e349e8d92c336f39e8b135a5677e3037af9fe | Samples/ProjectTracker/ProjectTracker.Ui.Xamarin/ProjectTracker.Ui.Xamarin/Xaml/BoolColorConverter.cs | Samples/ProjectTracker/ProjectTracker.Ui.Xamarin/ProjectTracker.Ui.Xamarin/Xaml/BoolColorConverter.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Xamarin.Forms;
namespace ProjectTracker.Ui.Xamarin.Xaml
{
public class BoolColorConverter : IValueConverter
{
public Color TrueColor { get; set; }
public Color FalseColor { get; set; }
public bool Inve... | Use PropertyInfo control in mobile apps | Use PropertyInfo control in mobile apps
| C# | mit | ronnymgm/csla-light,rockfordlhotka/csla,JasonBock/csla,MarimerLLC/csla,rockfordlhotka/csla,MarimerLLC/csla,jonnybee/csla,jonnybee/csla,MarimerLLC/csla,ronnymgm/csla-light,JasonBock/csla,ronnymgm/csla-light,rockfordlhotka/csla,jonnybee/csla,JasonBock/csla | |
e68c5282f6238aaf65ee849088bf68599be4df07 | slang/Lexing/Trees/Nodes/Transition.cs | slang/Lexing/Trees/Nodes/Transition.cs | using System;
using slang.Lexing.Tokens;
namespace slang.Lexing.Trees.Nodes
{
public class Transition
{
public Transition (Node target, Func<Token> tokenProducer = null)
{
Target = target;
TokenProducer = tokenProducer;
}
public Token GetToken()
... | Add a model for transitions | Add a model for transitions
Add the token producer function to transition so it can be triggered when the transition is executed.
| C# | mit | jagrem/slang,jagrem/slang,jagrem/slang | |
5b3eb2d6f443ea90322787f28033e77335648cbe | osu.Game/Online/Multiplayer/MultiplayerClientExtensions.cs | osu.Game/Online/Multiplayer/MultiplayerClientExtensions.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 enable
using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Microsoft.AspNetCore.SignalR;
using osu.Framework.Logging;
namespace osu.Gam... | Add helper class to handle firing async multiplayer methods | Add helper class to handle firing async multiplayer methods
| C# | mit | NeoAdonis/osu,NeoAdonis/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.