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
b73e8261932c6694760b442337b4a07b8486dd69
Add HTML control so you can add raw html to your layouts
kswoll/WootzJs,kswoll/WootzJs,kswoll/WootzJs,x335/WootzJs,x335/WootzJs,x335/WootzJs
WootzJs.Mvc/Mvc/Views/Html.cs
WootzJs.Mvc/Mvc/Views/Html.cs
using WootzJs.Web; namespace WootzJs.Mvc.Mvc.Views { public class Html : Control { private string html; public Html(string html) { this.html = html; } protected override Element CreateNode() { var result = Browser.Document.CreateElement...
mit
C#
0bc030e24f78ceba413e5b36da1e5d53c44ca36d
Add Hit.cs for tracking successful attacks
cmilr/Unity2D-Components,jguarShark/Unity2D-Components
Misc/Hit.cs
Misc/Hit.cs
using Matcha.Unity; using UnityEngine; using UnityEngine.Assertions; public class Hit { public Collider2D coll; public Weapon weapon; public Weapon.Type weaponType; public Side horizontalSide; public Side verticalSide; public object Create(GameObject objectThatWasHit, Collider2D wasHitBy) { weapon = wasHitBy...
mit
C#
d1d72e85ba74aff59718c864be7c3a75a30d71c2
Update version
cergis-robert/SagePayMvc,AdtecSoftware/SagePayMvc,JeremySkinner/SagePayMvc,AdtecSoftware/Adtec.SagePayMvc
src/SagePayMvc/Properties/AssemblyInfo.cs
src/SagePayMvc/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
apache-2.0
C#
e3347976a5e1a3dc638d49beb064aa839b1fdc0b
Add LogFilter tests
NickCraver/StackExchange.Exceptional,NickCraver/StackExchange.Exceptional
tests/StackExchange.Exceptional.Tests.AspNetCore/LogFilters.cs
tests/StackExchange.Exceptional.Tests.AspNetCore/LogFilters.cs
using System; using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Xunit; using Xunit.Abstractions; namespace StackExchange.Exceptional.Tests.AspNetCore { public class LogFilters : AspNetCoreTest { public LogFilters(ITestOutputHe...
apache-2.0
C#
9e810f7bc21d94f58478c4b28e82fa4518c5c45d
Test Code
Klackon/MMM
Assets/Scripts/PlayerTest.cs
Assets/Scripts/PlayerTest.cs
using UnityEngine; using System.Collections; public class PlayerTest : MonoBehaviour { // Use this for initialization void Start () { Player player1 = new Player ("Daniel Kuo"); player1.selectRace ("human"); player1.selectWizard ("Wizard1"); player1.selectBanner (1); player1.selectSpecialAbility ("Invins...
mpl-2.0
C#
edddbdb7845a250002ee5dd111750b3290a29401
Add tests for beatmap ruleset selector
ppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,EVAST9919/osu,ppy/osu,UselessToucan/osu,peppy/osu-new,johnneijzen/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,peppy/osu,UselessToucan/osu,peppy/osu,2yangk23/osu,2yangk23/osu,smoogipooo/osu,EVAST9919/osu,johnneijzen/osu
osu.Game.Tests/Visual/Online/TestSceneBeatmapRulesetSelector.cs
osu.Game.Tests/Visual/Online/TestSceneBeatmapRulesetSelector.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Graphics.UserInterface; using osu.Game.Beatmaps; using osu.Game.Overlays.BeatmapSet; using osu...
mit
C#
cca9f432498ae228c0dc14f1e7750723158944a6
Add GetSkillByIdQueryHandler.cs
NinjaVault/NinjaHive,NinjaVault/NinjaHive
NinjaHive.BusinessLayer/QueryHandlers/GetSkillByIdQueryHandler.cs
NinjaHive.BusinessLayer/QueryHandlers/GetSkillByIdQueryHandler.cs
using NinjaHive.Contract.DTOs; using NinjaHive.Contract.Queries; using NinjaHive.Core; using NinjaHive.Domain; namespace NinjaHive.BusinessLayer.QueryHandlers { public class GetSkillByIdQueryHandler : IQueryHandler<GetSkillByIdQuery, Skill> { private readonly NinjaHiveContext db; priva...
apache-2.0
C#
62980694f5e94c8590e32fa51bab85f628386503
Create ConnectionStringNames.cs
tiksn/TIKSN-Exchange
TIKSN.Exchange/ConnectionStringNames.cs
TIKSN.Exchange/ConnectionStringNames.cs
namespace TIKSN.Exchange { public static class ConnectionStringNames { public static readonly string MainConnectionString = "Main"; } }
mit
C#
a3b9cd257998d112ee8299200430c7ef13214329
Create IStreamRepository.cs
tiksn/TIKSN-Framework
TIKSN.Core/Data/IStreamRepository.cs
TIKSN.Core/Data/IStreamRepository.cs
using System.Collections.Generic; using System.Threading; namespace TIKSN.Data { public interface IStreamRepository<T> { IAsyncEnumerable<T> StreamAllAsync(CancellationToken cancellationToken); } }
mit
C#
a2fd1ead0fb77de0596c631bbaa32887e4b8adc8
Create Combinatorics.cs
burnsba/Toolbox,burnsba/Toolbox,burnsba/Toolbox
csharp/Combinatorics.cs
csharp/Combinatorics.cs
public static int GetMaxState(int[] arr, int upto) { int len = arr.Length; int max = 0; for (int i=0; i<len && i<upto; i++) { max = arr[i] > max ? arr[i] : max; } return max; } public static bool IncrementState(ref int[] arr) { int max; int maxNext; int len = arr.Length...
apache-2.0
C#
65aac9f95664411298712d8e2947afe3b1e85c4e
Create Issue56_AsyncEnumerable_Test.cs
bytefish/PostgreSQLCopyHelper
src/PostgreSQLCopyHelper.Test/Issues/Issue56_AsyncEnumerable_Test.cs
src/PostgreSQLCopyHelper.Test/Issues/Issue56_AsyncEnumerable_Test.cs
using System.Collections.Generic; using System.Threading.Tasks; using Npgsql; using NUnit.Framework; using PostgreSQLCopyHelper.Test.Extensions; namespace PostgreSQLCopyHelper.Test.Issues { [TestFixture] [Description("A Unit Test to see, if PostgreSQLCopyHelper works with AsyncEnumerable.")] public class ...
mit
C#
2a291f71a4f5ba622bea3e8515afe7c5e8a8502f
Create Dataset.cs
Quadrat1c/OpJinx
Epoch/Network/Dataset.cs
Epoch/Network/Dataset.cs
namespace Epoch.Network { public class DataSet { #region -- Properties -- public double[] Values { get; set; } public double[] Targets { get; set; } #endregion #region -- Constructor -- public DataSet(double[] values, double[] targets) { Value...
mit
C#
b17b1989986143e6ec5040da3bde493035f5f4ce
Add HelpCenter Categories requests
mwarger/ZendeskApi_v2,dcrowe/ZendeskApi_v2,CKCobra/ZendeskApi_v2,mattnis/ZendeskApi_v2
ZendeskApi_v2/Requests/HelpCenter/Categories.cs
ZendeskApi_v2/Requests/HelpCenter/Categories.cs
using ZendeskApi_v2.Models.HelpCenter.Categories; #if ASYNC using System.Threading.Tasks; #endif using ZendeskApi_v2.Models.Groups; namespace ZendeskApi_v2.Requests.HelpCenter { public interface ICategories : ICore { #if SYNC GroupCategoryResponse GetCategories(); IndividualCategoryResponse Ge...
apache-2.0
C#
6358447294ce555725d1617881df57dc507889e2
add moved class back
JetBrains/teamcity-nuget-support,JetBrains/teamcity-nuget-support,JetBrains/teamcity-nuget-support,stormleoxia/teamcity-nuget-support,JetBrains/teamcity-nuget-support,stormleoxia/teamcity-nuget-support,stormleoxia/teamcity-nuget-support
nuget-extensions/nuget-feed/Repo/LightPackageRepository.cs
nuget-extensions/nuget-feed/Repo/LightPackageRepository.cs
using System.IO; using System.Linq; using System.Web.Configuration; using System.Web.Hosting; using System.Xml.Serialization; using JetBrains.Annotations; namespace JetBrains.TeamCity.NuGet.Feed.Repo { public class LightPackageRepository { private readonly XmlSerializerFactory myXmlSerializerFactory...
apache-2.0
C#
76d9358bf81b6a631b9cc0d85d3c6bdb05c8d957
add feed package filter tests
lvermeulen/ProGet.Net
test/ProGet.Net.Tests/Native/FeedPackageFilters/ProGetClientShould.cs
test/ProGet.Net.Tests/Native/FeedPackageFilters/ProGetClientShould.cs
using System.Threading.Tasks; using Xunit; // ReSharper disable CheckNamespace namespace ProGet.Net.Tests { public partial class ProGetClientShould { [Fact] public async Task FeedPackageFilters_GetPackageFiltersAsync() { var results = await _client.FeedPackageFilters_GetPa...
mit
C#
59b2bfdc28ab814553601379392ebfe24eb610aa
Update root dir enum test (#27254)
Jiayili1/corefx,zhenlan/corefx,wtgodbe/corefx,BrennanConroy/corefx,mmitche/corefx,Jiayili1/corefx,ptoonen/corefx,ravimeda/corefx,shimingsg/corefx,ViktorHofer/corefx,ravimeda/corefx,mmitche/corefx,ViktorHofer/corefx,ptoonen/corefx,ViktorHofer/corefx,ericstj/corefx,wtgodbe/corefx,shimingsg/corefx,Jiayili1/corefx,zhenlan/...
src/System.IO.FileSystem/tests/Enumeration/RootTests.netcoreapp.cs
src/System.IO.FileSystem/tests/Enumeration/RootTests.netcoreapp.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.IO.Enumeration; using System.Linq; using Xunit; namespace System.IO.Tests.Enumeration { public cl...
// 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.IO.Enumeration; using System.Linq; using Xunit; namespace System.IO.Tests.Enumeration { public cl...
mit
C#
3016862a1554e022dea806515ecd43da7fb57a63
Create IRemovable.cs
TeamLockheed/LockheedTheGame
Lockheed_Inventory/Inventory/Interfaces/IRemovable.cs
Lockheed_Inventory/Inventory/Interfaces/IRemovable.cs
using System; namespace Lockheed_Inventory.Inventory.Interfaces { public interface IRemovable { void DropItem(Item item); } }
mit
C#
11c9c57110f236873e28905c2d83c540bc1cb3fa
Add a programming contest template for C#
koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate
CSharp/Procon.cs
CSharp/Procon.cs
using System; using System.IO; class MainClass { static void Main() { Console.SetOut(new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); string line; while ((line = Console.ReadLine()) != null) { string[] tokens = line.Split(' '); <+CURSOR+> } Console.Out.Flush(); } }
mit
C#
e06ef34a31ab7a18a5ff8d5879f369d06fc19aa6
update v0.3.00
linuxgurugamer/FMRS
Source/FMRS_PM.cs
Source/FMRS_PM.cs
/* * The MIT License (MIT) * * Copyright (c) 2014 SIT89 * * 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...
mit
C#
602bc6d0d78f96f8f8b7f36bbf0c790460f3773a
Create IsCurrentToolConverter.cs
wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D
src/Core2D/Converters/IsCurrentToolConverter.cs
src/Core2D/Converters/IsCurrentToolConverter.cs
using System; using System.Globalization; using Avalonia; using Avalonia.Data.Converters; using Core2D.Model.Editor; namespace Core2D.Converters { public class IsCurrentToolConverter : IValueConverter { public static IsCurrentToolConverter Instance = new(); public object? Convert(object? valu...
mit
C#
ed8ff9800d1f9b6f8a87e254d5818d7f6c9b28c5
Add tests for wrapping routine provider for Oracle.
sjp/Schematic,sjp/Schematic,sjp/Schematic,sjp/Schematic,sjp/SJP.Schema
src/SJP.Schematic.Oracle.Tests/OracleDatabaseRoutineProviderTests.cs
src/SJP.Schematic.Oracle.Tests/OracleDatabaseRoutineProviderTests.cs
using System; using NUnit.Framework; using Moq; using SJP.Schematic.Core; using System.Data; namespace SJP.Schematic.Oracle.Tests { [TestFixture] internal static class OracleDatabaseRoutineProviderTests { [Test] public static void Ctor_GivenNullConnection_ThrowsArgNullException() {...
mit
C#
03725e632b60a8e20914cae0f23a932f2f2a93e9
Add viewstart
StrixIT/StrixIT.Platform.Modules.Membership,StrixIT/StrixIT.Platform.Modules.Membership,StrixIT/StrixIT.Platform.Modules.Membership
StrixIT.Platform.Modules.Membership.WebClient/Views/_ViewStart.cshtml
StrixIT.Platform.Modules.Membership.WebClient/Views/_ViewStart.cshtml
@{ Layout = "~/Views/Shared/_Layout.cshtml"; }
apache-2.0
C#
a5157a48e53056a32cacce5cbd25df0de723758f
Create Index.cshtml
CarmelSoftware/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4,kelong/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4
Views/Comments/Index.cshtml
Views/Comments/Index.cshtml
@model IEnumerable<RepositoryWithCaching.Models.Comment> @{ ViewBag.Title = "Index"; } <h2>Index</h2> <p> @Html.ActionLink("Create New", "Create") </p> <table> <tr> <th> @Html.DisplayNameFor(model => model.Title) </th> <th> @Html.DisplayNameFor(model => mod...
mit
C#
bef7e1d4372f3cdb436758e8aa67e732349fe926
Create Day_19_Interfaces.cs
softctrl/hackerrank_codes,softctrl/hackerrank_codes,softctrl/hackerrank_codes,softctrl/hackerrank_codes
30_Days_of_Code/Day_19_Interfaces.cs
30_Days_of_Code/Day_19_Interfaces.cs
using System; public interface AdvancedArithmetic{ int divisorSum(int n); } //Write your code here class Calculator : AdvancedArithmetic { int AdvancedArithmetic.divisorSum(int n) { int s = n; for (int d=1; d < n; d++) { if (n % d == 0) s += d; } return s; } } ...
apache-2.0
C#
0484140ab90885092ed643f85b2b3a7edfa5597d
Disable security while performing implicit AutoPublish
bussemac/n2cms,VoidPointerAB/n2cms,n2cms/n2cms,SntsDev/n2cms,nimore/n2cms,EzyWebwerkstaden/n2cms,bussemac/n2cms,nicklv/n2cms,n2cms/n2cms,EzyWebwerkstaden/n2cms,bussemac/n2cms,nicklv/n2cms,VoidPointerAB/n2cms,VoidPointerAB/n2cms,nicklv/n2cms,nicklv/n2cms,EzyWebwerkstaden/n2cms,VoidPointerAB/n2cms,SntsDev/n2cms,bussemac/...
src/Mvc/MvcTemplates/N2/Content/AutoPublish/PublishScheduledAction.cs
src/Mvc/MvcTemplates/N2/Content/AutoPublish/PublishScheduledAction.cs
using System; using System.Diagnostics; using N2.Persistence; using N2.Persistence.Finder; using N2.Plugin.Scheduling; using N2.Security; namespace N2.Edit.AutoPublish { [ScheduleExecution(30, TimeUnit.Seconds)] public class PublishScheduledAction : ScheduledAction { IVersionManager Ver...
using System; using System.Diagnostics; using N2.Persistence; using N2.Persistence.Finder; using N2.Plugin.Scheduling; using N2.Security; namespace N2.Edit.AutoPublish { [ScheduleExecution(30, TimeUnit.Seconds)] public class PublishScheduledAction : ScheduledAction { IVersionManager Ver...
lgpl-2.1
C#
204a5af63da76e183ee5a574606f3f16c8601d8d
Create Chapter1.aspx.designer.cs
lerwine/JSCookbook,lerwine/JSCookbook,lerwine/JSCookbook
JSCookbook/Chapter1.aspx.designer.cs
JSCookbook/Chapter1.aspx.designer.cs
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //-----------------------------------------...
apache-2.0
C#
10a10538e44bf317602de956872533d4315be281
Add extra checks around the trusting of the value in the file. By default we wont pull over anything invalid and log out when something is wroung.
ZocDoc/ZocMon,modulexcite/ZocMon,ZocDoc/ZocMon,modulexcite/ZocMon,ZocDoc/ZocMon,modulexcite/ZocMon
ZocMon/ZocMon/ZocMonLib/Framework/RecordReduceStatusSourceProviderFile.cs
ZocMon/ZocMon/ZocMonLib/Framework/RecordReduceStatusSourceProviderFile.cs
using System; using System.Configuration; using System.IO; using ZocMonLib; namespace ZocMonLib { public class RecordReduceStatusSourceProviderFile : RecordReduceStatusSourceProvider { private readonly ISystemLogger _logger; private readonly string _reducingStatusTxt = ConfigurationManager.AppS...
using System; using System.Configuration; using System.IO; using ZocMonLib; namespace ZocMonLib { public class RecordReduceStatusSourceProviderFile : RecordReduceStatusSourceProvider { private readonly ISystemLogger _logger; private readonly string _reducingStatusTxt = ConfigurationManager.AppS...
apache-2.0
C#
c38989ffd2e2b790802b20cd673e252cd464a44e
add ServiceProviderExtensions
AspectCore/Abstractions,AspectCore/AspectCore-Framework,AspectCore/AspectCore-Framework,AspectCore/Lite
core/src/AspectCore.Abstractions/Injector/ServiceProviderExtensions.cs
core/src/AspectCore.Abstractions/Injector/ServiceProviderExtensions.cs
using System; using System.Collections.Generic; using System.Text; namespace AspectCore.Injector { public static class ServiceProviderExtensions { public static T Resolve<T>(this IServiceProvider serviceProvider) { if (serviceProvider == null) { throw ne...
mit
C#
20bd1d19df30964d0dfa85e1cbc0acba7e4f0a3d
Add class 'XmlSourceEntity'
whampson/bft-spec,whampson/cascara
Cascara/Src/Interpreter/Xml/XmlSourceEntity.cs
Cascara/Src/Interpreter/Xml/XmlSourceEntity.cs
using System; using System.Collections.Generic; using System.Text; using System.Xml.Linq; using WHampson.Cascara.Extensions; namespace WHampson.Cascara.Interpreter.Xml { /// <summary> /// Encapsulates an <see cref="XObject"/> as an <see cref="ISourceEntity"/>. /// </summary> internal sealed class XmlS...
mit
C#
eaea44ec94dbfcb40d6c7e66dbec7a0633079808
add christophekumor
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/ChristopheKumor.cs
src/Firehose.Web/Authors/ChristopheKumor.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 FrancoisxavierCat : IAmACommunityMember, IFilterMyBlogPosts { public string FirstName => "Christoph...
mit
C#
86b346d4d62fedcd4a575ab406d0d995b897073e
add lease
fs7744/etcdcsharp
etcd.v3/LeaseExtensions.cs
etcd.v3/LeaseExtensions.cs
using Etcdserverpb; using Grpc.Core; namespace ETCD.V3 { public static class LeaseExtensions { #region LeaseGrant public static LeaseGrantRequest CreateLeaseGrantRequest(this Client client, long ttl, long id) { return new LeaseGrantRequest() { T...
mit
C#
2222d93645b4eb10c36c80dba99ca8b85987da31
Add unit. Add GeometryUpdated method.
escape-llc/yet-another-chart-component
YetAnotherChartComponent/YetAnotherChartComponent/Support/ViewModels.cs
YetAnotherChartComponent/YetAnotherChartComponent/Support/ViewModels.cs
using System; using System.ComponentModel; using Windows.Foundation; using Windows.UI.Xaml; using Windows.UI.Xaml.Media; namespace eScapeLLC.UWP.Charts { #region ViewModelBase /// <summary> /// Very lightweight VM base class. /// </summary> public abstract class ViewModelBase : INotifyPropertyChanged { /// <su...
apache-2.0
C#
82043da8df445bb8029b1f5ac50c30f8130b83e0
Fix MessageBox behaviour
renzhn/Wox,vebin/Wox,JohnTheGr8/Wox,apprentice3d/Wox,Launchify/Launchify,apprentice3d/Wox,kdar/Wox,AlexCaranha/Wox,18098924759/Wox,jondaniels/Wox,AlexCaranha/Wox,mika76/Wox,kayone/Wox,medoni/Wox,yozora-hitagi/Saber,gnowxilef/Wox,zlphoenix/Wox,gnowxilef/Wox,18098924759/Wox,AlexCaranha/Wox,JohnTheGr8/Wox,sanbinabu/Wox,zl...
Wox.Plugin.SystemPlugins/WebSearch/WebSearchesSetting.xaml.cs
Wox.Plugin.SystemPlugins/WebSearch/WebSearchesSetting.xaml.cs
using System.Windows; using System.Windows.Controls; using Wox.Infrastructure.Storage.UserSettings; namespace Wox.Plugin.SystemPlugins { /// <summary> /// Interaction logic for WebSearchesSetting.xaml /// </summary> public partial class WebSearchesSetting : UserControl { public WebSearches...
using System.Windows; using System.Windows.Controls; using Wox.Infrastructure.Storage.UserSettings; namespace Wox.Plugin.SystemPlugins { /// <summary> /// Interaction logic for WebSearchesSetting.xaml /// </summary> public partial class WebSearchesSetting : UserControl { public WebSearches...
mit
C#
8d82cc03324e7503b2c0053d4315dd684c24a365
test commit
Payture/CSharp-Payture-official
test2.cs
test2.cs
namespace namespace { }
mit
C#
5def11bbba996c5ea2625fb1892393a37cdeff0c
add Base64Codec tests
lvermeulen/Nanophone
test/Nanophone.RegistryHost.InMemoryRegistry.Tests/Base64CodecShould.cs
test/Nanophone.RegistryHost.InMemoryRegistry.Tests/Base64CodecShould.cs
using System.Text; using Xunit; namespace Nanophone.RegistryHost.InMemoryRegistry.Tests { public class Base64CodecShould { private const string SOURCE = nameof(Base64CodecShould); private const string TARGET = "QmFzZTY0Q29kZWNTaG91bGQ="; private readonly Base64Codec _codec = new Base6...
mit
C#
552e2427adf3029ca98ce9c5d25c722167949530
send Messages
lakshmanpilaka/tds-socio,lakshmanpilaka/tds-socio,lakshmanpilaka/tds-socio
BeyondThemes.BeyondAdmin/Views/Home/sendMessages.cshtml
BeyondThemes.BeyondAdmin/Views/Home/sendMessages.cshtml
 @{ ViewBag.Title = "sendMessages"; } <h2>sendMessages</h2>
apache-2.0
C#
4000765566ab19a9cb7b7680369d21299a05d162
Add `SCardReaderStatesExtensions` class
Archie-Yang/PcscDotNet
src/PcscDotNet/SCardReaderStatesExtensions.cs
src/PcscDotNet/SCardReaderStatesExtensions.cs
namespace PcscDotNet { public static class SCardReaderStatesExtensions { public static bool IsSet(this SCardReaderStates src, SCardReaderStates states) { return (src & states) == states; } } }
mit
C#
0310f8633810c11c7974703f648907ceeced2b30
Create PartsTableAdapter
BartoszBaczek/WorkshopRequestsManager
Project/WorkshopManager/WorkshopManager/SqlDatabase/PartsTableAdapter.cs
Project/WorkshopManager/WorkshopManager/SqlDatabase/PartsTableAdapter.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WorkshopManager.SqlDatabase { using PartsTableAdapterExtension; class PartsTableAdapter { } } namespace PartsTableAdapterExtension { using WorkshopManager.SqlDatabase.MyS...
mit
C#
892e9f31df844126a979762474c246693fecf624
add DNT.Diag.Data.LiveDataList
rockyx/dntdiag
DNT/Diag/Data/LiveDataList.cs
DNT/Diag/Data/LiveDataList.cs
using System; using System.Collections; using System.Collections.Generic; namespace DNT.Diag.Data { public class LiveDataList : IEnumerable<LiveDataItem> { private List<LiveDataItem> items; private Dictionary<string, LiveDataItem> queryByShortName; private List<LiveDataItem> needs; private Dictio...
apache-2.0
C#
affec5497d334add2d08efbc15e9b8ee4e2fdd34
Include tests.
nyluntu/kata-primefactors,nyluntu/kata-primefactors
PrimeFactors.Tests/PrimeFactorsTest.cs
PrimeFactors.Tests/PrimeFactorsTest.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; using PrimeFactors; namespace PrimeFactors.Tests { [TestFixture] public class PrimeFactorsTest { [Test] public void TestPrimeFactors() { ...
mit
C#
e920c2016d22ee8d63ca137a99972e2ad6eb6198
add firewalld cheatsheet
lesovsky/uber-scripts,lesovsky/uber-scripts,lesovsky/uber-scripts
cheatsheets/firewalld.cs
cheatsheets/firewalld.cs
# Common syntax firewall-cmd [ action ] # Firewalld Service Management --state : get current state --reload : soft reload firewalld service --complete-reload : hard reload with interrupting connections --panic-on : enable panic mode ...
mit
C#
dad433ab992a7488374f4517eef484bb8d284b7f
Create IPoint.cs
wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D
src/Draw2D.Core/IPoint.cs
src/Draw2D.Core/IPoint.cs
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Draw2D.Core { public interface IPoint { double X { get; set; } double Y { get; set; } } }
mit
C#
cbd5422b60b16ec9b99c974ed9fe7ddda72ab2fa
Create Krizaljka.cs
SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming
Kattis-Solutions/Krizaljka.cs
Kattis-Solutions/Krizaljka.cs
using System; namespace Krizaljka { class Program { static void Main(string[] args) { string[] arr = Console.ReadLine().Split(" "); string a = arr[0]; string b = arr[1]; int pa = -1, pb = -1; //string samechar = ""; //int f...
mit
C#
c9e9ad3b9ee1f5e46bc62540cd16e2bf923cd934
Update tests.
cube-soft/Cube.Net,cube-soft/Cube.Net,cube-soft/Cube.Net
Applications/Rss/Tests/ViewModels/MainViewModelTest.cs
Applications/Rss/Tests/ViewModels/MainViewModelTest.cs
/* ------------------------------------------------------------------------- */ // // Copyright (c) 2010 CubeSoft, 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-2.0
C#
e2379e83ad12369dfaf6029e184d44645daaa45c
Test for fix #1107
linq2db/linq2db,MaceWindu/linq2db,linq2db/linq2db,MaceWindu/linq2db,LinqToDB4iSeries/linq2db,LinqToDB4iSeries/linq2db,ronnyek/linq2db
Tests/Linq/UserTests/Issue1107Tests.cs
Tests/Linq/UserTests/Issue1107Tests.cs
using System; using LinqToDB.Data; using NUnit.Framework; namespace Tests.UserTests { using LinqToDB; using LinqToDB.Mapping; public class Issue1107Tests : TestBase { [Table(Name = "Issue1107TB")] class Issue1107TestsClass { [Column(IsPrimaryKey = true)] public int Id { get; set; } ...
mit
C#
ee3d63aa9b3be4d5d971d4e1b87f17ecdf87bec5
Create SceneField.cs
grreuze/Utils
SceneField.cs
SceneField.cs
using UnityEngine; #if UNITY_EDITOR using UnityEditor; #endif [System.Serializable] public class SceneField { [SerializeField] Object m_SceneAsset; [SerializeField] string m_SceneName = ""; public string SceneName { get { return m_SceneName; } } // makes it work with the existing Uni...
mit
C#
ef437252108f338ef2458036ab82bac7f8d73a47
add missing file
mikebarker/Plethora.NET
src/Plethora.Common.Test/Linq/ListHelper_Test.cs
src/Plethora.Common.Test/Linq/ListHelper_Test.cs
using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; using Plethora.Linq; namespace Plethora.Test.Linq { [TestFixture] public class ListHelper_Test { private readonly IList<Tuple<int, string>> orderedList = new List<Tuple<int, string>> {...
mit
C#
501d5359db7ec5dd38d91bd63679e01cf00e437e
Create EventMap.cs
eventbeacon/eventmap.cs
EventMap.cs
EventMap.cs
using System; using System.Collections; using System.Collections.Generic; public class GenericEventMap<T> { public delegate void Event(params T[] data); protected Dictionary<String, ArrayList> beforeEvents; protected Dictionary<String, ArrayList> events; protected Dictionary<String, ArrayList> afterEvents; publ...
unlicense
C#
fc73e0d2fbae6a27c8942956c405c046f88ae4d9
Add orientation test
peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework
osu.Framework.Tests/Primitives/Vector2ExtensionsTest.cs
osu.Framework.Tests/Primitives/Vector2ExtensionsTest.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.Graphics; using osuTK; namespace osu.Framework.Tests.Primitives { [TestFixture] public class Vector2ExtensionsTest ...
mit
C#
3ec8c90677b94b026fe5961b4c4e11330f25a732
debug messages
ravalum/soomla-unity3d-core,noctorus/soomla-unity3d-core,vedi/soomla-unity3d-core,zentuit/soomla-unity3d-core,noctorus/soomla-unity3d-core,noctorus/soomla-unity3d-core,vedi/soomla-unity3d-core,ravalum/soomla-unity3d-core,zentuit/soomla-unity3d-core,noctorus/soomla-unity3d-core,zentuit/soomla-unity3d-core,ravalum/soomla...
Soomla/Assets/Plugins/Soomla/Core/CoreEvents.cs
Soomla/Assets/Plugins/Soomla/Core/CoreEvents.cs
/// Copyright (C) 2012-2014 Soomla 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 l...
/// Copyright (C) 2012-2014 Soomla 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 l...
apache-2.0
C#
8fb4ceab851b4c733148fe90cd1dd821f9703082
Create CameraFollow.cs
Irraquated/CrossyRoadScripts
CameraFollow.cs
CameraFollow.cs
using UnityEngine; using System.Collections; public class CameraFollow : MonoBehaviour { public GameObject chickenPlayer; Vector3 shouldPos; // Update is called once per frame void Update () { shouldPos = Vector3.Lerp (gameObject.transform.position, chickenPlayer.transform.position, Time.deltaTime); gameObje...
mit
C#
65b9a95a202283e6372fa7aa10be30cf937af062
add PropertyDisable.cs
KentaYanase/UnityCustomProperty
Disable/PropertyDisable.cs
Disable/PropertyDisable.cs
using UnityEngine; using System.Collections; #if UNITY_EDITOR using UnityEditor; #endif /// <summary> /// 表示するけど編集不可にする. /// </summary> public class DisableAttribute : PropertyAttribute { } /// <summary> /// [BeginDisable]から[EndDisable]までの変数を編集不可にする. /// </summary> public class BeginDisableAttribute : PropertyAttr...
mit
C#
73823b09b9254771a583a95854f5e92b51d866a5
Create PostBuildCopyEmptyFolders.cs
UnityCommunity/UnityLibrary
Assets/Scripts/Editor/BuildProcess/PostBuildCopyEmptyFolders.cs
Assets/Scripts/Editor/BuildProcess/PostBuildCopyEmptyFolders.cs
using System.IO; using UnityEditor; using UnityEditor.Callbacks; using UnityEngine; // copies empty StreamingAssets/ folders into build, as they are not automatically included namespace UnityLibrary { public class PostBuildCopyEmptyFolders : MonoBehaviour { [PostProcessBuildAttribute(1)] publi...
mit
C#
3f5a1788387c8dd9daa0679d501a1126c4cd0cc8
Test Items db reflection tests
ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab
Test/TestsDatabase/TestItemTests.cs
Test/TestsDatabase/TestItemTests.cs
using System; using System.Collections.Generic; using System.Text; using Anlab.Core.Domain; using Test.Helpers; using Xunit; namespace Test.TestsDatabase { [Trait("Category", "DatabaseTests")] public class TestItemTests { #region Reflection of Database. /// <summary> ...
mit
C#
1f5b2d43c02555b70eedc6bf59fc5ef5a3aab73f
Add MyHttpClient for frontend requests
axay/eigen,axay/eigen
kinect/BodyBasics-WPF/MyHttpClient.cs
kinect/BodyBasics-WPF/MyHttpClient.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net.Http; using System.Net; namespace Microsoft.Samples.Kinect.BodyBasics { class MyHttpClient { static String baseUrl = "http://127.0.0.1/"; static String volume =...
artistic-2.0
C#
fe120907bc3b9571b91153986cee118216b06e73
Create SherlockAndSquares.cs
costincaraivan/hackerrank,costincaraivan/hackerrank
algorithms/implementation/C#/SherlockAndSquares.cs
algorithms/implementation/C#/SherlockAndSquares.cs
using System; using System.Collections.Generic; using System.IO; class Solution { static void Main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */ int testCases = Convert.ToInt32(Console.ReadLine()); fo...
mit
C#
505449c94bc3467ef0f132538b31450b47236811
Create HideAtStart.cs
xxmon/unity
HideAtStart.cs
HideAtStart.cs
using UnityEngine; using System.Collections; [RequireComponent (typeof(MeshRenderer))] public class HideAtStart : MonoBehaviour { // Use this for initialization void Start () { if (Application.isPlaying) { GetComponent<MeshRenderer> ().enabled = false; } } // Update is called once per frame void Updat...
mit
C#
4bf6500e2da0ac11e8575cd1b6b4035c75c1d072
Add WorkspaceClientCapabilities type
PowerShell/PowerShellEditorServices
src/PowerShellEditorServices.Protocol/LanguageServer/WorkspaceClientCapabilities.cs
src/PowerShellEditorServices.Protocol/LanguageServer/WorkspaceClientCapabilities.cs
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer { public class WorkspaceClientCapabilities { /// <summary> /// The client supports applying batch edits to the workspace by /// by supporting the request `workspace/applyEdit' /// /// </summary> bool Ap...
mit
C#
01a6dc3fb22347bd4585facf57eedd8908cf793f
Create Murmur3hash.cs
sebas77/Murmur3.net
Murmur3hash.cs
Murmur3hash.cs
using System; using System.IO; /// <summary> /// Murmur hash. /// /// Creates an evenly destributed uint hash from a string. /// Very fast and fairly unique /// </summary> public class Murmur3 { static public uint MurmurHash3_x86_32(byte[] data, uint length, uint seed) { uint nblocks = length >> 2; ...
mit
C#
bbb1a4af5451bb6630d0fb6dffc91432a38c5522
Add missing project installer file
lakitrid/DomoSi,lakitrid/DomoSi,lakitrid/DomoSi,lakitrid/DomoSi,lakitrid/DomoSi
DomoCore/ProjectInstaller.Designer.cs
DomoCore/ProjectInstaller.Designer.cs
namespace Fr.Lakitrid.DomoCore { partial class ProjectInstaller { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary...
apache-2.0
C#
362a316cd628c4050850be4407a11c5d6b430e7a
Add a logout IT class
stormpath/stormpath-dotnet-owin-middleware
test/Stormpath.Owin.IntegrationTest/LogoutRouteShould.cs
test/Stormpath.Owin.IntegrationTest/LogoutRouteShould.cs
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading; using System.Threading.Tasks; using FluentAssertions; using Newtonsoft.Json; using Stormpath.SDK.Account; using Stormpath.SDK.Client; using Stormpath.SDK.Resource; using Xunit; namespac...
apache-2.0
C#
2a7c744bff7992f329d2aa8a02c8bfe5a30f9890
Add details view
tuelsch/schreinerei-gfeller,tuelsch/schreinerei-gfeller,tuelsch/schreinerei-gfeller
schreinerei-gfeller/Views/Home/Detail.cshtml
schreinerei-gfeller/Views/Home/Detail.cshtml
<p class="breadcrumbs"> <a href="" class="italic">Schreinerei</a> / <a href="" class="italic">Küchen</a> / </p> <h1>Liegende rote Kirsche &ndash; eine Herausforderung</h1> <p class="strong h4"> Für Sie erfüllen wir Küchenträume. Entwerfen Sie mit uns Ihre ganz persönlich und individuell gestaltete Küche. Ih...
mit
C#
27b5d5a5c5253d30b639734769e754f7975e99a9
Create SceneLoader.cs
scmcom/unitycode
SceneLoader.cs
SceneLoader.cs
using UnityEngine; using UnityEditor; using System.Collections; public class SceneLoader : Editor { [MenuItem( "Open Scene/ResolutionChanger" )] public static void OpenResolutionChanger() { OpenScene( "ResolutionChanger" ); } [MenuItem( "Open Scene/MainMenu" )] public static void OpenMainMenu() { OpenSce...
mit
C#
bad1096a7b65b163692351136f2fcdd07d6d3763
Create Exercise_10.cs
jesushilarioh/Questions-and-Exercises-in-C-Sharp
Exercise_10.cs
Exercise_10.cs
using System; public class Exercise_10 { public static void Main() { /******************************************************************** * * 10. Write a program that takes three numbers(x,y,z) * as input and print the output of (x+y)*z and x*y + y*z. * * * By: Jesus Hilario Hernand...
mit
C#
60a0f2da160a3902f13bce2130bb11c567481a43
Create ProductPriceDetail.cs
daniela1991/hack4europecontest
ProductPriceDetail.cs
ProductPriceDetail.cs
namespace Cdiscount.OpenApi.ProxyClient.Contract.Common { /// <summary> /// Product price detail /// </summary> public class ProductPriceDetail { /// <summary> /// Reference price /// </summary> public decimal ReferencePrice { get; set; } /// <summary> ...
mit
C#
9083b28114039b18078b0b0cc1402d15de88ed87
Add test coverage of seeking and pausing
NeoAdonis/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,ppy/osu,peppy/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu-new,smoogipooo/osu
osu.Game.Tests/Visual/Gameplay/TestSceneReplayPlayer.cs
osu.Game.Tests/Visual/Gameplay/TestSceneReplayPlayer.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.Gameplay { public class TestSceneRepl...
mit
C#
9f620b14a25462f0fc8aa6436695bf65c9131a89
Use correct assembly to retrieve ProdInfo
antonio-bakula/simpleDLNA,bra1nb3am3r/simpleDLNA,nmaier/simpleDLNA,itamar82/simpleDLNA
util/ProductInformation.cs
util/ProductInformation.cs
using System; using System.Reflection; namespace NMaier.SimpleDlna.Utilities { public static class ProductInformation { public static string Company { get { var attributes = Assembly.GetEntryAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false); if (attributes....
using System; using System.Reflection; namespace NMaier.SimpleDlna.Utilities { public static class ProductInformation { public static string Company { get { var attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false); if (attribu...
bsd-2-clause
C#
972966d60da85f4d9164b9748c92c840feb57c69
Create FocusControlAction.cs
wieslawsoltes/AvaloniaBehaviors,wieslawsoltes/AvaloniaBehaviors,XamlBehaviors/XamlBehaviors,XamlBehaviors/XamlBehaviors
src/Avalonia.Xaml.Interactions/Core/FocusControlAction.cs
src/Avalonia.Xaml.Interactions/Core/FocusControlAction.cs
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Avalonia; using Avalonia.Controls; using Avalonia.Xaml.Interactivity; namespace Avalonia.Xaml.Interactions.Core { /// <summary> /// Focuses the ass...
mit
C#
69bf74151b207ebaf2d30bd2557ced6cd9a6d326
Add OnlyVisibleOnTierAttribute
NFig/NFig
NFig/Attributes/OnlyVisibleOnTierAttribute.cs
NFig/Attributes/OnlyVisibleOnTierAttribute.cs
using System; namespace NFig { /// <summary> /// Allows you to mark certain enum values as only visible to a particular tier(s). The main use case is to annotate the DataCenter enum values since the /// list of data centers will likely vary per tier. /// </summary> [AttributeUsage(AttributeTargets...
mit
C#
84d34ae208efbfa848d7ba50c7850280baa5ab46
Make AspServerPathResolver a public class. Fixes #140
r2i-sitecore/dotless,r2i-sitecore/dotless,r2i-sitecore/dotless,modulexcite/dotless,r2i-sitecore/dotless,modulexcite/dotless,rytmis/dotless,rytmis/dotless,dotless/dotless,rytmis/dotless,modulexcite/dotless,rytmis/dotless,rytmis/dotless,r2i-sitecore/dotless,rytmis/dotless,modulexcite/dotless,modulexcite/dotless,rytmis/do...
src/dotless.Core/Input/AspServerPathResolver.cs
src/dotless.Core/Input/AspServerPathResolver.cs
namespace dotless.Core.Input { using System.Web; public class AspServerPathResolver : IPathResolver { public string GetFullPath(string path) { return HttpContext.Current.Server.MapPath(path); } } }
namespace dotless.Core.Input { using System.Web; class AspServerPathResolver : IPathResolver { public string GetFullPath(string path) { return HttpContext.Current.Server.MapPath(path); } } }
apache-2.0
C#
d2454d605fa2c6e105a71e66fbf66b451abed5db
Create IMongoClientProvider.cs
tiksn/TIKSN-Framework
TIKSN.Core/Data/Mongo/IMongoClientProvider.cs
TIKSN.Core/Data/Mongo/IMongoClientProvider.cs
using MongoDB.Driver; namespace TIKSN.Data.Mongo { public interface IMongoClientProvider { IMongoClient GetMongoClient(); } }
mit
C#
ed7ed13dbc28f6e96460689d8cf6a83ff4542a0b
Remove false contract on PropertyChangedEventArgs
SergeyTeplyakov/CodeContracts,huoxudong125/CodeContracts,huoxudong125/CodeContracts,hubuk/CodeContracts,danielcweber/CodeContracts,hubuk/CodeContracts,hubuk/CodeContracts,huoxudong125/CodeContracts,ndykman/CodeContracts,hubuk/CodeContracts,Microsoft/CodeContracts,huoxudong125/CodeContracts,danielcweber/CodeContracts,Mi...
Microsoft.Research/Contracts/System/System.ComponentModel.PropertyChangedEventArgs.cs
Microsoft.Research/Contracts/System/System.ComponentModel.PropertyChangedEventArgs.cs
namespace System.ComponentModel { using System; using System.Diagnostics.Contracts; public class PropertyChangedEventArgs : EventArgs { public PropertyChangedEventArgs(string propertyName) { Contract.Ensures(this.PropertyName == propertyName); } #if SILVERLIGHT publi...
namespace System.ComponentModel { using System; using System.Diagnostics.Contracts; public class PropertyChangedEventArgs : EventArgs { public PropertyChangedEventArgs(string propertyName) { Contract.Requires(!string.IsNullOrEmpty(Contract.Result<string>())); Contract.En...
mit
C#
8b2663c941ac8f54f7df7e8b623b9284236a76ea
Add cast member struct
jonstodle/MovieWatchlist
ImdbInterface/CastMember.cs
ImdbInterface/CastMember.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ImdbInterface { public struct CastMember { private readonly Person person; private readonly string role; public CastMember(Person person, string role) { ...
mit
C#
b8604a54dbb921c95a71a376b8d7b34db40ff010
Add missing file.
TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim
OpenSim/Framework/Services/IUserAgentService.cs
OpenSim/Framework/Services/IUserAgentService.cs
using System; using System.Collections.Generic; using System.Net; using System.Linq; using System.Text; using OpenSim.Framework; using OpenMetaverse; namespace OpenSim.Services.Interfaces { /// <summary> /// HG1.5 only /// </summary> public interface IUserAgentService { // c...
bsd-3-clause
C#
f5f3001c3a6e50f0054c5f95f381233a4ef69fa3
Add ChildWindowDriver.
nuitsjp/KAMISHIBAI
Source/Kamishibai.Test/Driver/Windows/ChildWindowDriver.cs
Source/Kamishibai.Test/Driver/Windows/ChildWindowDriver.cs
using Codeer.Friendly; using Codeer.Friendly.Dynamic; using Codeer.Friendly.Windows; using Codeer.Friendly.Windows.Grasp; using Codeer.TestAssistant.GeneratorToolKit; using RM.Friendly.WPFStandardControls; using System.Linq; namespace Driver.Windows { [WindowDriver(TypeFullName = "SampleBrowser.View.ChildWindow")...
mit
C#
a8b8b4d2fa8ac4d81527ebba261beea58e9204ba
add NGUIMessageQueueControllerBase.cs
NDark/ndinfrastructure,NDark/ndinfrastructure
Unity/NGUIUtil/NGUIMessageQueueControllerBase.cs
Unity/NGUIUtil/NGUIMessageQueueControllerBase.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; public class NGUIMessageQueueControllerBase : MonoBehaviour { public virtual string CurrentText { get{ return string.Empty;} set{ } } public virtual Vector3 CurrentTextPosition { get{ return Vector3.zero;} set{ } } publi...
mit
C#
537e1907319d93e8382c6468ffb8dbb938c8d3af
Delete single video
Ziggeo/ZiggeoCSharpSDK,Ziggeo/ZiggeoCSharpSDK
demos/Delete_Video.cs
demos/Delete_Video.cs
using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using Newtonsoft.Json.Linq; using Newtonsoft.Json; namespace Delete_Video { public class Delete_Video { public static void Main(string[] args) { Ziggeo ziggeo = new Ziggeo...
apache-2.0
C#
b436db94c21d6c31965dde4657ae88f54325986f
Create 18.cs
rikkus/adventofcode2016,rikkus/adventofcode2016
18.cs
18.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AoC2016_18 { class Program { static void Main() { var testInput = @".^^.^.^^^^"; var testCount = 10; var realInput = @"...^^^^^..^...^...^^^^^^......
mit
C#
84b0a53c8c5a631540dbc1a964ef2537edc95c5d
Add proper error handling for IO errors.
rytmis/dotless,modulexcite/dotless,rytmis/dotless,rytmis/dotless,r2i-sitecore/dotless,rytmis/dotless,rytmis/dotless,r2i-sitecore/dotless,modulexcite/dotless,r2i-sitecore/dotless,r2i-sitecore/dotless,dotless/dotless,r2i-sitecore/dotless,modulexcite/dotless,dotless/dotless,r2i-sitecore/dotless,r2i-sitecore/dotless,rytmis...
src/dotless.Core/LessCssHttpHandler.cs
src/dotless.Core/LessCssHttpHandler.cs
namespace dotless.Core { using System.IO.Compression; using System.Web; using configuration; using Microsoft.Practices.ServiceLocation; public class LessCssHttpHandler : IHttpHandler { public IServiceLocator Container { get; set; } public DotlessConfiguration Config { get; set;...
namespace dotless.Core { using System.IO.Compression; using System.Web; using configuration; using Microsoft.Practices.ServiceLocation; public class LessCssHttpHandler : IHttpHandler { public IServiceLocator Container { get; set; } public DotlessConfiguration Config { get; set;...
apache-2.0
C#
5055e327699829b820231598009be8b6e1433468
Add benchmark for `HitObject`
ppy/osu,peppy/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu
osu.Game.Benchmarks/BenchmarkHitObject.cs
osu.Game.Benchmarks/BenchmarkHitObject.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using BenchmarkDotNet.Attributes; using osu.Game.Rulesets.Catch.Objects; using osu.Game.Rulesets.Mania.Objects; using osu.Game.Rulesets.Osu.Objects; using osu.Game.Rulese...
mit
C#
8d7d42316af95290ee960cac079fc88ee0402e95
Create XORCaseToggler.cs
Zephyr-Koo/sololearn-challenge
XORCaseToggler.cs
XORCaseToggler.cs
using System; using System.Collections.Generic; using System.Linq; // https://www.sololearn.com/Discuss/691502/?ref=app namespace SoloLearn { class Program { static void Main(string[] zephyr_koo) { var upperCaseLetters = Enumerable.Range(0, 26).Select(n => (char)('A' + n)); ...
apache-2.0
C#
26eb5b2fc263b6730f41ac244cfdab36a528c556
Add missing file
EVAST9919/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework
osu.Framework/Platform/SDLWindow.cs
osu.Framework/Platform/SDLWindow.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.Platform { public class SDLWindow : Window { /// <summary> /// Convenience constructor that uses <see cref="Sdl2WindowBack...
mit
C#
4b7412bc90fe9976926aa86234cf44846aadad5c
Enhance TagFetchMode documentation
rcorre/libgit2sharp,GeertvanHorrik/libgit2sharp,jeffhostetler/public_libgit2sharp,OidaTiftla/libgit2sharp,red-gate/libgit2sharp,mono/libgit2sharp,vivekpradhanC/libgit2sharp,AMSadek/libgit2sharp,psawey/libgit2sharp,github/libgit2sharp,vivekpradhanC/libgit2sharp,dlsteuer/libgit2sharp,libgit2/libgit2sharp,shana/libgit2sha...
LibGit2Sharp/TagFetchMode.cs
LibGit2Sharp/TagFetchMode.cs
namespace LibGit2Sharp { /// <summary> /// Describe the expected tag retrieval behavior /// when a fetch operation is being performed. /// </summary> public enum TagFetchMode { /// <summary> /// No tag will be retrieved. /// </summary> None = 1, // GIT_REM...
using System; namespace LibGit2Sharp { /// <summary> /// Enum for TagOptions /// </summary> public enum TagFetchMode { /// <summary> /// None. /// </summary> None = 1, // GIT_REMOTE_DOWNLOAD_TAGS_NONE /// <summary> /// Auto. /// </sum...
mit
C#
7a76c09483f1ed2e501af29a531e70e423d1bfc9
Create AssemblyInfo.cs
MingLu8/Nancy.WebApi.HelpPages
src/Nancy.WebApi.HelpPages.Demo/Properties/AssemblyInfo.cs
src/Nancy.WebApi.HelpPages.Demo/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("Nan...
mit
C#
26e76e1198c1a113b6f6042b20e9340f2052848e
fix issue 99 (#146)
googleads/google-ads-dotnet,googleads/google-ads-dotnet,googleads/google-ads-dotnet,googleads/google-ads-dotnet
tests/Lib/CachedChannelFactoryTests.cs
tests/Lib/CachedChannelFactoryTests.cs
// Copyright 2020 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
apache-2.0
C#
211017274e298c9b74a75bcfe35a5980d62a2616
Add ConsoleHelper
eposgmbh/Epos.Foundation
src/Epos.Utilities/ConsoleHelper.cs
src/Epos.Utilities/ConsoleHelper.cs
using System; using System.Text; namespace Epos.Utilities { /// <summary> Provides Console helper methonds. </summary> public static class ConsoleHelper { /// <summary> Reads a password from Standard Input and displays an asterisk for each character. /// </summary> /// <returns>Pass...
mit
C#
ce4aac6e66a3733fb898863707aac952d8a7c77e
Fix property registration
wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D
src/Core2D.Avalonia/Views/MenuView.xaml.cs
src/Core2D.Avalonia/Views/MenuView.xaml.cs
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Avalonia; using Avalonia.Controls; using Avalonia.Interactivity; using Avalonia.Markup.Xaml; namespace Core2D.Avalonia.Views { public partial class Menu...
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Avalonia; using Avalonia.Controls; using Avalonia.Interactivity; using Avalonia.Markup.Xaml; namespace Core2D.Avalonia.Views { public partial class Menu...
mit
C#
b2bb40ad31279740cb8d21c909160f5ab661a763
exit the application with a code instead of an exception to prevent dialogs for debug builds
aarondandy/bau,bau-build/bau,aarondandy/bau,eatdrinksleepcode/bau,adamralph/bau,aarondandy/bau,eatdrinksleepcode/bau,modulexcite/bau,huoxudong125/bau,adamralph/bau,modulexcite/bau,adamralph/bau,aarondandy/bau,bau-build/bau,eatdrinksleepcode/bau,bau-build/bau,huoxudong125/bau,eatdrinksleepcode/bau,bau-build/bau,modulexc...
src/test/Bau.Test.Acceptance.CreateFile/Program.cs
src/test/Bau.Test.Acceptance.CreateFile/Program.cs
namespace Bau.Test.Acceptance.CreateFile { using System; using System.IO; class Program { static void Main(string[] args) { Console.WriteLine(typeof(Program).Assembly.GetName().Name); Console.WriteLine("Working directory is: {0}", Directory.GetCurrentD...
namespace Bau.Test.Acceptance.CreateFile { using System; using System.IO; class Program { static void Main(string[] args) { Console.WriteLine(typeof(Program).Assembly.GetName().Name); Console.WriteLine("Working directory is: {0}", Directory.GetCurrentD...
mit
C#
c5b0b67811a5dfe7251357a02cce60c24189bd73
Add SnowflakeId generator class.
dotnetcore/CAP,dotnetcore/CAP,dotnetcore/CAP,ouraspnet/cap
src/DotNetCore.CAP/Infrastructure/SnowflakeId.cs
src/DotNetCore.CAP/Infrastructure/SnowflakeId.cs
// Copyright 2010-2012 Twitter, Inc. // An object that generates IDs. This is broken into a separate class in case we ever want to support multiple worker threads per process using System; namespace DotNetCore.CAP.Infrastructure { public class SnowflakeId { public const long Twepoch = 1288834974657L;...
mit
C#
19d585dd0b99d83187e572ad84b4f0f35f482676
change parameter order
ClogenyTechnologies/azure-powershell,naveedaz/azure-powershell,devigned/azure-powershell,naveedaz/azure-powershell,AzureAutomationTeam/azure-powershell,naveedaz/azure-powershell,ClogenyTechnologies/azure-powershell,hungmai-msft/azure-powershell,naveedaz/azure-powershell,atpham256/azure-powershell,krkhan/azure-powershel...
src/ResourceManager/ServiceFabric/Commands.ServiceFabric/Commands/AddAzureRmServiceFabricNode.cs
src/ResourceManager/ServiceFabric/Commands.ServiceFabric/Commands/AddAzureRmServiceFabricNode.cs
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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.apa...
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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.apa...
apache-2.0
C#
50b793ee050abe39db91a6f30f6421cd9da7c7d7
add ApplicationSettings.cs
MachUpskillingFY17/JabbR-Core,MachUpskillingFY17/JabbR-Core,MachUpskillingFY17/JabbR-Core
src/JabbR-Core/Configuration/ApplicationSettings.cs
src/JabbR-Core/Configuration/ApplicationSettings.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace JabbR_Core.Configuration { public class ApplicationSettings { } }
mit
C#
3e9861d32e5292a2aea68e8d17bfdc5f9dc5d812
Add test coverage for `OccurrenceConstraint`
jnyrup/fluentassertions,dennisdoomen/fluentassertions,fluentassertions/fluentassertions,dennisdoomen/fluentassertions,fluentassertions/fluentassertions,jnyrup/fluentassertions
Tests/FluentAssertions.Specs/OccurrenceConstraintSpecs.cs
Tests/FluentAssertions.Specs/OccurrenceConstraintSpecs.cs
using System; using FluentAssertions.Execution; using Xunit; using Xunit.Sdk; namespace FluentAssertions.Specs { public class OccurrenceConstraintSpecs { public static object[][] PassingConstraints() => new object[][] { new object[] { AtLeast.Once(), 1 }, new object[] {...
apache-2.0
C#
16f1edd76b6d74922f0c568d91254a64c44b2a01
Add missing IDwellModule interface
TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim
OpenSim/Region/Framework/Interfaces/IDwellModule.cs
OpenSim/Region/Framework/Interfaces/IDwellModule.cs
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must r...
bsd-3-clause
C#
d934896e034068c92b1bc9545fadd76e67fe94b1
Create ArrayCircle.cs
xxmon/unity
ArrayCircle.cs
ArrayCircle.cs
using UnityEngine; using System.Collections; using UnityEditor; public class ArrayCircle : MonoBehaviour { public GameObject target; public int numberToSpawn = 9; public float radius = 2f; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public v...
mit
C#
049bdb31418b4504dd3f6f5575c392ca45c2792a
Create BatchRename.cs
scmcom/unitycode
BatchRename.cs
BatchRename.cs
//BatchRename.cs //select a bunch of GameObjects in heirarchy and rename them via // Edit > Batch Rename using EnityEngine; using UnityEditor; using System.Collections; public class BatchRename : ScriptableWizard { //base name public string BaseName = "MyObject_"; //start count public int StartNumber = 0; //...
mit
C#
afff74a8351586e0e7ecd7dd1cdfde1964830a6b
Add DwellModule interface
EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,RavenB/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TomDataworks/opensim,TomDataworks/opensim,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,RavenB/opensim,RavenB/opensim,RavenB/opensim,TomDataworks/opensim,RavenB/opensim,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_L...
OpenSim/Region/Framework/Interfaces/IDwellModule.cs
OpenSim/Region/Framework/Interfaces/IDwellModule.cs
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must r...
bsd-3-clause
C#
5a894edb4df3b41c78806a8108c4fd293aefaa43
Add missing project context handler for ts
jasonmalinowski/roslyn,jasonmalinowski/roslyn,mavasani/roslyn,mavasani/roslyn,bartdesmet/roslyn,bartdesmet/roslyn,CyrusNajmabadi/roslyn,shyamnamboodiripad/roslyn,CyrusNajmabadi/roslyn,mavasani/roslyn,bartdesmet/roslyn,shyamnamboodiripad/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,jasonmalinowski/roslyn,CyrusNajmabad...
src/EditorFeatures/Core/ExternalAccess/VSTypeScript/VSTypeScriptProjectContextHandler.cs
src/EditorFeatures/Core/ExternalAccess/VSTypeScript/VSTypeScriptProjectContextHandler.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; using System.Composition; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Languag...
mit
C#
c96950ad38a1bad21b6adc480381e9371af4492a
Add factory for analytics migrations
oliviak/nether,ankodu/nether,ankodu/nether,ankodu/nether,navalev/nether,MicrosoftDX/nether,navalev/nether,navalev/nether,navalev/nether,ankodu/nether,krist00fer/nether
src/Nether.Data.Sql/Analytics/SqlAnalyticsContextFactory.cs
src/Nether.Data.Sql/Analytics/SqlAnalyticsContextFactory.cs
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Nether.Data.Sql.Common; using S...
mit
C#
5b1273660cafbf28c5566243ef0feb2a53821b31
Add order controller for authentified users
aliziani/ELearning,aliziani/ELearning,aliziani/ELearning
TokenAuthentification/Controllers/OrderController.cs
TokenAuthentification/Controllers/OrderController.cs
using System; using System.Collections.Generic; using System.Web.Http; namespace TokenAuthentification.Controllers { [RoutePrefix("api/orders")] public class OrdersController : ApiController { [Authorize] [Route("")] public IHttpActionResult Get() { return Ok(Or...
mit
C#
1b29fafa7a2c4e2e4c0838af684acf31607766d6
Create SyncConflictPage.xaml.cs
DecaTec/windows-universal,scherke85/windows-universal,scherke85/windows-universal,SunboX/windows-universal,TheScientist/windows-universal,scherke85/windows-universal,altima/windows-universal,SunboX/windows-universal,TheScientist/windows-universal,altima/windows-universal,altima/windows-universal,scherke/windows-univers...
NextcloudApp/Views/SyncConflictPage.xaml.cs
NextcloudApp/Views/SyncConflictPage.xaml.cs
using System; using System.Collections.ObjectModel; using System.Diagnostics; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Media; using Prism.Windows.Mvvm; namespace NextcloudApp.Views { public sealed partial class SyncConflictPage : SessionStateAwarePage { public SyncConflictPage() { ...
mpl-2.0
C#