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 |
|---|---|---|---|---|---|---|---|---|
70d1644d78908f7265d546c00ba307565769140f | Implement unit of work | Branimir123/ZobShop,Branimir123/ZobShop,Branimir123/ZobShop | src/ZobShop.Data/EntityFrameworkUnitOfWork.cs | src/ZobShop.Data/EntityFrameworkUnitOfWork.cs | using System;
using System.Data.Entity;
using ZobShop.Data.Contracts;
namespace ZobShop.Data
{
public class EntityFrameworkUnitOfWork : IUnitOfWork
{
private readonly DbContext dbContext;
public EntityFrameworkUnitOfWork(DbContext context)
{
if (context == null)
... | mit | C# | |
efadd1c493393e7a679fc3401e3648d9e3ec38a9 | Bump version | james-andrewsmith/Streamstone,jkonecki/Streamstone | Source/Streamstone.Version.cs | Source/Streamstone.Version.cs | using System;
using System.Linq;
using System.Reflection;
[assembly: AssemblyVersion("0.7.1.0")]
[assembly: AssemblyFileVersion("0.7.1.0")] | using System;
using System.Linq;
using System.Reflection;
[assembly: AssemblyVersion("0.7.0.0")]
[assembly: AssemblyFileVersion("0.7.0.0")] | apache-2.0 | C# |
b50e65f8283db6ad8407968911a63a4ffa164022 | Create Exam.cs | mdlthree/uFLOPS | CS/Exam.cs | CS/Exam.cs | using System;
using System.Linq;
using System.Collections.Generic;
namespace uFLOPS_Desktop
{
public class Exam
{
private List<Question> _ExamQuestions = new List<Question>();
private Question.Operations _anOperation;
private int _NumberOfQuestions = 0;
private int _HighNumber ... | unlicense | C# | |
2cd012576ec348a2d6bc88c7df630fdd2dfefa08 | add tests | sqlkata/querybuilder | QueryBuilder.Tests/DeleteTests.cs | QueryBuilder.Tests/DeleteTests.cs | using SqlKata.Compilers;
using SqlKata.Extensions;
using SqlKata.Tests.Infrastructure;
using System;
using System.Linq;
using Xunit;
namespace SqlKata.Tests
{
public class DeleteTests : TestSupport
{
[Fact]
public void BasicDelete()
{
var q = new Query("Posts").AsDelete();
... | mit | C# | |
dbeaf64de7790a22450854d41bafb05e19881221 | Add HtmlContentJoinHelper to accomodate to IHtmlContent semantic changes in core (.ToString() no longer returns rendered content) | leotsarev/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net | Joinrpg.AspNetCore.Helpers/HtmlContentJoinHelper.cs | Joinrpg.AspNetCore.Helpers/HtmlContentJoinHelper.cs | using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Html;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace Joinrpg.AspNetCore.Helpers
{
/// <summary>
/// Helper to accomodate to IHtmlContent semantic changes in core (.ToString() no longer returns rendered content)
/// </summary>
... | mit | C# | |
5cb0ba077e356f8f58606bae044f007103a8f151 | Add the ability to add a set of gamecomponents to a game collection, rather than having to add each component individually. | dneelyep/MonoGameUtils | MonoGameUtils/Extensions/GameComponentCollection.cs | MonoGameUtils/Extensions/GameComponentCollection.cs | using System.Collections.Generic;
using System.Diagnostics.Contracts;
using Microsoft.Xna.Framework;
namespace MonoGameUtils.Extensions
{
public static class GameComponentCollectionExtensions
{
public static void AddRange(this GameComponentCollection gameComponents, IEnumerable<GameComponent> collecti... | mit | C# | |
794da120c9602c2835d4527caa57c7630d0191e9 | update cart with ajax | mariagnisa/e-commerce,mariagnisa/e-commerce,mariagnisa/e-commerce | e-commerce/Models/UpdateCartResponseModel.cs | e-commerce/Models/UpdateCartResponseModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace e_commerce.Models
{
public class UpdateCartResponseModel
{
public bool succes;
public string message;
}
} | mit | C# | |
1864da00e69806eefb389fd0a5742c0477eb419d | Add extension method to handle cases of fire-and-forget async usage | smoogipoo/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,peppy/osu-new,UselessToucan/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,smoogipooo/osu,UselessToucan/osu,ppy/osu,peppy/osu | osu.Game/Extensions/TaskExtensions.cs | osu.Game/Extensions/TaskExtensions.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Threading.Tasks;
using osu.Framework.Logging;
namespace osu.Game.Extensions
{
public static class TaskExtensions
{
/// <summary>
///... | mit | C# | |
58d5e4c460c68028cfbd87a64805fbcf509a823c | Create QetriX.cs | QetriX/CS | QetriX/QetriX.cs | QetriX/QetriX.cs | namespace com.qetrix
{
public class QetriX
{
}
}
| mit | C# | |
be81f7a8c1cfb664b860c30c4f2b38228171c8f2 | Add TusResumableUploadTicket model | mfilippov/vimeo-dot-net | src/VimeoDotNet/Models/TusResumableUploadTicket.cs | src/VimeoDotNet/Models/TusResumableUploadTicket.cs | using System.Collections.Generic;
using JetBrains.Annotations;
using Newtonsoft.Json;
namespace VimeoDotNet.Models
{
/// <summary>
/// Upload ticket
/// </summary>
public class TusResumableUploadTicket : Video
{
/// <summary>
/// Upload status
/// </summary>
... | mit | C# | |
2a3dfa52637fe16eba8ea066f0bd9675d6bc64ec | Address issue 736 - Add config option to block passing principal through SL data portal. Add test project as well bugid: 736 | MarimerLLC/csla,JasonBock/csla,jonnybee/csla,ronnymgm/csla-light,ronnymgm/csla-light,rockfordlhotka/csla,rockfordlhotka/csla,MarimerLLC/csla,BrettJaner/csla,ronnymgm/csla-light,jonnybee/csla,JasonBock/csla,BrettJaner/csla,BrettJaner/csla,jonnybee/csla,rockfordlhotka/csla,MarimerLLC/csla,JasonBock/csla | Samples/CslaLight/cs/WindowsAuthentication/SilverlightApplication/App.xaml.cs | Samples/CslaLight/cs/WindowsAuthentication/SilverlightApplication/App.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
namespace Sil... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
namespace Sil... | mit | C# |
74095323d5f1b9368dfecb2154d8e0a72e8b9c78 | add get all schools test | mzrimsek/resume-site-api | Test.Integration/ControllerTests/SchoolControllerTests/GetAllSchoolsShould.cs | Test.Integration/ControllerTests/SchoolControllerTests/GetAllSchoolsShould.cs | using Microsoft.AspNetCore.TestHost;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using Test.Integration.TestHelpers;
using Web.Models.SchoolModels;
namespace Test.Integration.ControllerTests.SchoolControllerTests
{
[TestClass]
p... | mit | C# | |
8e054580bb5153009901159aa26306e745c2cbb2 | Create GenericRevitElementsDropDown class | amcgoey/Synthetic | Synthetic.Pulldowns/GenericRevitElementsDropDown.cs | Synthetic.Pulldowns/GenericRevitElementsDropDown.cs | using System;
using System.Collections.Generic;
using System.Linq;
using DSRevitNodesUI;
using ProtoCore.AST.AssociativeAST;
using Dynamo.Utilities;
using Synthetic.Core;
using Synthetic.Revit;
using RevitServices.Persistence;
using revitDB = Autodesk.Revit.DB;
using revitDoc = Autodesk.Revit.DB.Document;
namespac... | mit | C# | |
3d01b41bb776d0605bfed7da4f116063cf3448df | Add newfile conig (configuration).cs | ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate | userAuth/userAuth/Configuration/config.cs | userAuth/userAuth/Configuration/config.cs |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Util;
using Android.Views;
using Android.Widget;
namespace userAuth.Droid
{
public class config : Fragment
{
public override void... | mit | C# | |
1525a5336bd4e4153f40800f825347f776c9ad16 | Create GenerateManifest.cs | Rohheit/RedRiver | GenerateManifest/Windows/GenerateManifest.cs | GenerateManifest/Windows/GenerateManifest.cs | using System;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
namespace GenerateManifest
{
class Program
{
static TextWriter manifestFile;
static string rootDir;
static void Main(string[] args)
{
if (args.Length != 2)
{
... | bsd-3-clause | C# | |
28b53e3a456fe809aff131e602eba9b1c147f47c | Support for calculating odd length Fletcher checksums. | Bobris/BTDB,karasek/BTDB,yonglehou/BTDB,klesta490/BTDB | BTDB/Buffer/Checksum.cs | BTDB/Buffer/Checksum.cs | using System.Diagnostics;
namespace BTDB.Buffer
{
public static class Checksum
{
public static uint CalcFletcher32(byte[] data, uint position, uint length)
{
var odd = (length & 1) != 0;
length >>= 1;
uint sum1 = 0xffff;
uint sum2 = 0xffff;
... | using System.Diagnostics;
namespace BTDB.Buffer
{
public static class Checksum
{
public static uint CalcFletcher32(byte[] data, uint position, uint length)
{
Debug.Assert((length & 1) == 0);
length >>= 1;
uint sum1 = 0xffff;
uint sum2 = 0xffff;
... | mit | C# |
54678d8d445e6744de1ab7e15ff4ee830aa10851 | Create OnlineChattingBot.cs | imba-tjd/CSharp-Code-Repository | 单个文件的程序/OnlineChattingBot.cs | 单个文件的程序/OnlineChattingBot.cs | using System;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
using System.Net;
class OnlineChattingBot
{
const string api = "http://api.qingyunke.com/api.php?key=free&appid=0&msg=";
static async Task Main()
{
Console.WriteLine("你好!");
string input;
while ((inp... | mit | C# | |
a551ab7dcb3f87e741ff9724ecb679d17a89bf6c | Add ContainerAnalysis smoke test | jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,googleapis/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/gcloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet | apis/Google.Cloud.DevTools.ContainerAnalysis.V1/Google.Cloud.DevTools.ContainerAnalysis.V1.SmokeTests/ContainerAnalysisSmokeTest.cs | apis/Google.Cloud.DevTools.ContainerAnalysis.V1/Google.Cloud.DevTools.ContainerAnalysis.V1.SmokeTests/ContainerAnalysisSmokeTest.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... | apache-2.0 | C# | |
72d8bbfc5e7356efbb6bafd0e9b6af115c6d6636 | Create red card by country method | mglodack/RedCard.API,mglodack/RedCard.API | src/RedCard.API/Controllers/StatsController.cs | src/RedCard.API/Controllers/StatsController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using RedCard.API.Contexts;
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
namespace RedCard.API.Controllers
{
[Route("... | mit | C# | |
466c2523d57f4d33f104d2ac6429a7da6a2a860e | Add partial classes for legacy retry filters. | jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/gcloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet | apis/Google.Cloud.PubSub.V1/Google.Cloud.PubSub.V1/ObsoleteRetryFilters.cs | apis/Google.Cloud.PubSub.V1/Google.Cloud.PubSub.V1/ObsoleteRetryFilters.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... | apache-2.0 | C# | |
a307f1f378d564058238361db64cce1717f5395e | Add test for DefaultApiConfig | justinzhong/npoint | test/NPoint.Tests/Config/DefaultApiConfigTest.cs | test/NPoint.Tests/Config/DefaultApiConfigTest.cs | using FluentAssertions;
using NPoint.Config;
using NPoint.Serialization;
using Xunit;
namespace NPoint.Tests.Config
{
public class DefaultApiConfigTest
{
[Fact]
public void ShouldReturnJsonResponseConverter()
{
// Arrange
var expected = typeof(JsonResponseConver... | apache-2.0 | C# | |
7b91cb0f2cc40a8f5282584d1342ca0bfb0434d8 | Add custom combo list item | lukecahill/NutritionTracker | food_tracker/FoodComboItem.cs | food_tracker/FoodComboItem.cs | using System.Windows.Controls;
namespace food_tracker {
public class FoodComboItem : ComboBoxItem {
public double calories { get; set; }
public double fats { get; set; }
public double saturatedFat { get; set; }
public double carbohydrates { get; set; }
public double sugar ... | mit | C# | |
a36e5a546988aacc58fbfd59ad831392f7ab8bb3 | Read config env | okaram/azure-website,okaram/azure-website | read-config.cshtml | read-config.cshtml | <!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>Salutation: @Environment.GetEnvironmentVariable('APPSETTINGS_Salutation')</p>
<p>Salutation: </p>
</body>
</html>
| unlicense | C# | |
54d970cde2653da7bc4632396c8cdddee090481a | Create TempRepoContext.cs | Particular/SyncOMatic | src/Tests/TempRepoContext.cs | src/Tests/TempRepoContext.cs | using System;
using System.Linq;
using System.Threading.Tasks;
using Octokit;
public class TempRepoContext :
IAsyncDisposable
{
Reference tempBranchReference;
public string TempBranchName;
string tempBranchRefName;
TempRepoContext(Reference tempBranchReference, string tempBranchName, string tempB... | mit | C# | |
a0dec38bea14b401139a8ed364845fe6d2d93869 | Add FromServiceFilter | neuecc/MagicOnion | src/MagicOnion/Server/FromServiceFilterAttribute.cs | src/MagicOnion/Server/FromServiceFilterAttribute.cs | using MagicOnion.Server.Hubs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace MagicOnion.Server
{
/// <summary>
/// A MagicOnion filter that provided another filter via <see cref="IServiceLocator"/>.
/// </summary>
[AttributeUsage(AttributeTargets.... | mit | C# | |
19a510ad2d2cb73b9030ad085c82e27a297b348a | Add Fixed Provider for RequestHandling | mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,... | src/Glimpse.Web.Common/Framework/FixedRequestHandlerProvider.cs | src/Glimpse.Web.Common/Framework/FixedRequestHandlerProvider.cs | using System.Collections.Generic;
using System.Linq;
namespace Glimpse.Web
{
public class FixedRequestHandlerProvider : IRequestHandlerProvider
{
public FixedRequestHandlerProvider()
: this(Enumerable.Empty<IRequestHandler>())
{
}
public FixedRequestHandlerProvider... | mit | C# | |
a3158af208c795f6c7ff595966663bf7fd9cdbfe | Create Program.cs | rus100/durak | Program.cs | Program.cs | using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace Durak
{
static class Program
{
/// <summary>
/// Главная точка входа для приложения.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles()... | unlicense | C# | |
137a9c43ac0c6d4824c0a5fb7dd036ca8fd8d6ed | Add too many players exception | It423/tron,wrightg42/tron | Tron/Tron/Exceptions/TooManyPlayersException.cs | Tron/Tron/Exceptions/TooManyPlayersException.cs | // TooManyPlayersException.cs
// <copyright file="TooManyPlayersException.cs"> This code is protected under the MIT License. </copyright>
using System;
namespace Tron.Exceptions
{
/// <summary>
/// An exception thrown when too many players are in the game.
/// </summary>
public class TooManyPlayersExc... | mit | C# | |
59b0df6b43053acbab934d18f6d0bd7919c38a8e | Create LisasWorkbook.cs | costincaraivan/hackerrank,costincaraivan/hackerrank | algorithms/implementation/C#/LisasWorkbook.cs | algorithms/implementation/C#/LisasWorkbook.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Collections;
class Solution {
static void Main(String[] args) {
string[] firstLine = Console.ReadLine().Split(' ');
int problemsPerPage = Convert.ToInt32(firstLine[1]);
int[] p... | mit | C# | |
41f51bfe1674452a18e1f96881b972dc2d9040d9 | Add hosting startup to SpaFallback | khellang/Middleware,khellang/Middleware | src/SpaFallback/SpaFallbackHostingStartup.cs | src/SpaFallback/SpaFallbackHostingStartup.cs | using Hellang.Middleware.SpaFallback;
using Microsoft.AspNetCore.Hosting;
[assembly: HostingStartup(typeof(SpaFallbackHostingStartup))]
namespace Hellang.Middleware.SpaFallback
{
public class SpaFallbackHostingStartup : IHostingStartup
{
public void Configure(IWebHostBuilder builder)
{
... | mit | C# | |
ae1bd336ebde9081f91b61717254a91619b2866c | Fix not saving from api | MediaBrowser/Emby.Channels,hamstercat/Emby.Channels,heksesang/Emby.Channels,heksesang/Emby.Channels,MediaBrowser/Emby.Channels,hamstercat/Emby.Channels | MediaBrowser.Channels.IPTV/Api/ServerApiEndpoints.cs | MediaBrowser.Channels.IPTV/Api/ServerApiEndpoints.cs | using MediaBrowser.Channels.IPTV.Configuration;
using MediaBrowser.Controller.Net;
using MediaBrowser.Model.MediaInfo;
using ServiceStack;
using System;
using System.Linq;
namespace MediaBrowser.Channels.IPTV.Api
{
[Route("/Iptv/Bookmarks", "POST", Summary = "Bookmarks a video")]
public class VideoSend : IRet... | using MediaBrowser.Channels.IPTV.Configuration;
using MediaBrowser.Controller.Net;
using MediaBrowser.Model.MediaInfo;
using ServiceStack;
using System;
using System.Linq;
namespace MediaBrowser.Channels.IPTV.Api
{
[Route("/Iptv/Bookmarks", "POST", Summary = "Bookmarks a video")]
public class VideoSend : IRet... | mit | C# |
5dcffe3f9112e2e002c75699747008b68ed126bf | Add service | CyrusNajmabadi/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,bartdesmet/roslyn,mavasani/roslyn,CyrusNajmabadi/roslyn,jasonmalinowski/roslyn,bartdesmet/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,bartdesmet/roslyn,mavasani/roslyn,jasonmalinowski/roslyn,dotnet/roslyn,mavasani/roslyn,shyamnamboodiripad/roslyn,jasonmal... | src/Features/Core/Portable/Navigation/ICrossLanguageSymbolNavigationService.cs | src/Features/Core/Portable/Navigation/ICrossLanguageSymbolNavigationService.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.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.FindUsages;
namespace Microsoft... | mit | C# | |
dc9b5b196bf66fb9254ee4121d94e1de049d4e08 | Add base interface for Chroma main class. | danpierce1/Colore,CoraleStudios/Colore,WolfspiritM/Colore,Sharparam/Colore | Corale.Colore/Core/IChroma.cs | Corale.Colore/Core/IChroma.cs | // ---------------------------------------------------------------------------------------
// <copyright file="IChroma.cs" company="Corale">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and as... | mit | C# | |
f1b29b30bcc72124540c490e1d433e1298cc7bb6 | Remove duplicates from sorted array II | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | LeetCode/remove_duplicates_sorted_array_2.cs | LeetCode/remove_duplicates_sorted_array_2.cs | using System;
static class Program {
static int RemoveDupes(this int[] a) {
int write = 1;
int read = 0;
bool same = false;
int count = 0;
for (int i = 1; i < a.Length; i++) {
read = i;
if (same && a[read] == a[write]) {
count... | mit | C# | |
023aa3af823fe0714df54c783f83e7fbf4fbdf36 | add model for register | 23S163PR/system-programming | Novak.Andriy/RegEditor/RegEditor/TreeItem.cs | Novak.Andriy/RegEditor/RegEditor/TreeItem.cs | using System.Collections.ObjectModel;
namespace RegEditor
{
class TreeItem
{
public string Title { get; set; }
public ObservableCollection<TreeItem> Items { get; set; }
public TreeItem()
{
Items = new ObservableCollection<TreeItem>();
}
}
}
| cc0-1.0 | C# | |
66fe286dd4838ca0a44409a518820c7f74f70456 | Revert "Revert "Implemented the provider UI slider to select its average cleaning time"" | loconomics/loconomics,samwa/loconomics,samwa/loconomics,samwa/loconomics,loconomics/loconomics,samwa/loconomics,loconomics/loconomics,loconomics/loconomics | web/en-US/Tests/TestHousekeeperSlider.cshtml | web/en-US/Tests/TestHousekeeperSlider.cshtml | @{
LcHelpers.TestArea();
Layout = "_TestLayout.cshtml";
}
<div>
<style>
.provider-average-time {
position: relative;
padding-bottom: 1em;
}
.provider-average-time > label { }
.provider-average-time .average-label {
position:absolute;
left:36%;
right:36%;
text-align:center
}
.prov... | mpl-2.0 | C# | |
73262bc7979c0e1cb7ad504c97d3105aa91ad365 | Add unit tests for RefundClient to make sure the query parameter works as expected | Viincenttt/MollieApi,Viincenttt/MollieApi | Mollie.Tests.Unit/Client/RefundClientTests.cs | Mollie.Tests.Unit/Client/RefundClientTests.cs | using Mollie.Api.Client;
using NUnit.Framework;
using System.Net.Http;
using System.Threading.Tasks;
namespace Mollie.Tests.Unit.Client {
[TestFixture]
public class RefundClientTests : BaseClientTests {
public const string defaultGetRefundResponse = @"{
""resource"": ""refund"",
""id"": ""re_4... | mit | C# | |
e9e80db458da75ed61539ee1d298922f7385d04d | add examples of bad commented out code | jgraber/Blog_Snippets,jgraber/Blog_Snippets,jgraber/Blog_Snippets,jgraber/Blog_Snippets | DeadCode/DeadCode/Demo.cs | DeadCode/DeadCode/Demo.cs | namespace DeadCode
{
/// <summary>
/// Sample class to explain the problem
/// <see cref="http://programmers.stackexchange.com/questions/45378/is-commented-out-code-really-always-bad"/>
/// </summary>
public class Demo
{
/// <summary>
/// Field to store postal codes like SW1A 2A... | apache-2.0 | C# | |
89ea139ae574ace323da3291a82e4ba19ad00116 | Add known runtime names for .NET core. | Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver | src/AsmResolver.DotNet/KnownRuntimeNames.cs | src/AsmResolver.DotNet/KnownRuntimeNames.cs | namespace AsmResolver.DotNet
{
/// <summary>
/// Provides strings of known runtime names used in .NET Core, .NET 5.0 and later.
/// </summary>
public static class KnownRuntimeNames
{
/// <summary>
/// Indicates an application targeting the default .NET Core runtime.
/// </sum... | mit | C# | |
bb0e87ebf05fd3950f7a4c1b8eafdec2f6b5f66f | Add missing bindings file | bordoley/RxApp | RxApp.Android/Bindings.cs | RxApp.Android/Bindings.cs | using System;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using Android.Widget;
using Android.Support.V4.Widget;
namespace RxApp
{
public static class Bindings
{
public static IDisposable BindTo(this IRxCommand This, Button button)
{
var subscription = new Compo... | apache-2.0 | C# | |
ac3f192f71063b1383088bf04493e9de94956972 | add generating 1 billion GUIDs in random | WindowsGeekPro/SleepyMeow,WindowsGeekPro/SleepyMeow,WindowsGeekPro/SleepyMeow,WindowsGeekPro/SleepyMeow,WindowsGeekPro/SleepyMeow,WindowsGeekPro/SleepyMeow | hacks/GenerateGuid.cs | hacks/GenerateGuid.cs | using System;
namespace GenerateGuid
{
class GenerateRandomGUIDs
{
private static void Main()
{
for (int n = 1; n < 100000000; n++)
{
Console.WriteLine(Guid.NewGuid());
}
}
}
}
// GUID - https://en.wikipedia.org/wiki/Globally_uniqu... | bsd-2-clause | C# | |
25e870547df7ff890cd6ca70aac3abc70672d8d7 | Create Program.cs | SMihand/Cache-GlobalsProxy-Framework | SpeedTest_Save/Program.cs | SpeedTest_Save/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace EXTREMECompairingTests
{
static class Program
{
/// <summary>
/// Главная точка входа для приложения.
/// </summary>
[STAThread]
static void Main()
{
... | mit | C# | |
017c3ecf45c3858155cda761293bf28623b5008c | Create StudentDetailViewModel. | Programazing/Open-School-Library,Programazing/Open-School-Library | src/Open-School-Library/Models/StudentViewModels/StudentDetailsViewModel.cs | src/Open-School-Library/Models/StudentViewModels/StudentDetailsViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Open_School_Library.Models.StudentViewModels
{
public class StudentDetailsViewModel
{
}
}
| mit | C# | |
c0d98d4b830e9850e60ab6286b4b674feb7d0557 | Add IPrintable Interface | Captain-Marvel/CSharp-Part2-Teamwork | SpaceGame/Game/IPrintable.cs | SpaceGame/Game/IPrintable.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SpaceGame
{
// All printable objects should implement this interface
public interface IPrintable
{
// X coordinate
int X { get; set; }
... | mit | C# | |
7a893ed3bb6e428db78678fa12b55b8621bb5767 | Add missing file | andyfmiller/LtiLibrary | src/LtiLibrary.NetCore/OAuth/SignatureMethod.cs | src/LtiLibrary.NetCore/OAuth/SignatureMethod.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace LtiLibrary.NetCore.OAuth
{
public enum SignatureMethod
{
HmacSha1,
HmacSha256,
HmacSha384,
HmacSha512,
}
}
| apache-2.0 | C# | |
c43259e2eee2f1bbefcf75956b58f5f6a6e3de08 | Add ControlCharacterParser | StevenLiekens/Txt,StevenLiekens/TextFx | src/Txt.ABNF/Core/CTL/ControlCharacterParser.cs | src/Txt.ABNF/Core/CTL/ControlCharacterParser.cs | using Txt.Core;
namespace Txt.ABNF.Core.CTL
{
public class ControlCharacterParser : Parser<ControlCharacter, char>
{
protected override char ParseImpl(ControlCharacter value)
{
return value.Text[0];
}
}
} | mit | C# | |
46c0e5768285dcd96577d83a30ec910f954e4800 | Create LoadXml.cs | alchemz/Unity_Read_XML_With_CSharp | LoadXml.cs | LoadXml.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Xml;
using System.Xml.Serialization;
using System.IO;
using System.Xml.Linq;
public class LoadXml:MonoBehavior{
XDocument xmlDoc;
IEnumerable<XElement> items;
List<XMLData> data= new List<XMLData>();
int iteration =0, pa... | mit | C# | |
82df6936ab2f6e1848984ad6b04f5edeb9c6d765 | Add missing file | michael-reichenauer/GitMind | GitMind/Git/BranchName.cs | GitMind/Git/BranchName.cs | using System;
using GitMind.Utils;
namespace GitMind.Git
{
/// <summary>
/// Branch name type, which handles branch names as case insensitive strings.
/// </summary>
public class BranchName : Equatable<BranchName>, IComparable
{
public static BranchName Master = new BranchName("master");
public static Branc... | mit | C# | |
9a01bbb18dfd3281dff06b42f47a05fc5ac625b4 | Create Program.cs | bkief/DNSFlusher | Program.cs | Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DNSFlusher
{
class Program
{
static void Main(string[] args)
{
DNSFlush.Flush();
}
}
}
| mit | C# | |
e420735953ebe60c5660d0870461a5e4e2665acd | Fix mistype | VSALM/CoreTweet,cannorin/CoreTweet,haripo/CoreTweet,VSALM/CoreTweet,chitoku-k/CoreTweet,azyobuzin/LibAzyotter | CoreTweet/Attribute.cs | CoreTweet/Attribute.cs | // The MIT License (MIT)
//
// CoreTweet - A .NET Twitter Library supporting Twitter API 1.1
// Copyright (c) 2014 lambdalice
//
// 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 res... | // The MIT License (MIT)
//
// CoreTweet - A .NET Twitter Library supporting Twitter API 1.1
// Copyright (c) 2014 lambdalice
//
// 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 res... | mit | C# |
ccd136860dcd0681da20c3a3ef6fac02067f8029 | create unit test to create a Stump with a Unique name | merchantwarehouse/stumps,merchantwarehouse/stumps | src/test/unit/Stumps.Tests/Proxy/ProxyStumpsTests.cs | src/test/unit/Stumps.Tests/Proxy/ProxyStumpsTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Stumps.Proxy
{
using System;
using NSubstitute;
using NUnit.Framework;
using Stumps.Data;
using Stumps.Logging;
using Nancy;
using Nancy.ModelBinding;
using St... | apache-2.0 | C# | |
cd231cfb6df9a3ab1cd4ae28d5b1f32ef5d93f56 | Revert to use of file writer UI for netcf | wooga/nunitlite,nunit/nunitlite,nunit/nunitlite | src/NUnitLiteTests/Program.cs | src/NUnitLiteTests/Program.cs | // *****************************************************
// Copyright 2007, Charlie Poole
//
// Licensed under the Open Software License version 3.0
// *****************************************************
using System;
using NUnitLite.Runner;
namespace NUnitLite.Tests
{
class Program
{
/... | // *****************************************************
// Copyright 2007, Charlie Poole
//
// Licensed under the Open Software License version 3.0
// *****************************************************
using System;
using NUnitLite.Runner;
namespace NUnitLite.Tests
{
class Program
{
/... | mit | C# |
f18ceb59af3a0f861ba1c3c5da470c815d020d5d | add missing file | tausten/zookeeper,tausten/zookeeper,mikeqian/zookeeper,tausten/zookeeper,ewhauser/zookeeper,pengweiqhca/zookeeper,mikeqian/zookeeper,crtynes/zookeeper,tausten/zookeeper,tausten/zookeeper,tausten/zookeeper,crtynes/zookeeper,ewhauser/zookeeper,crtynes/zookeeper,mikeqian/zookeeper,crtynes/zookeeper,ewhauser/zookeeper,mike... | src/dotnet/SolutionVersion.cs | src/dotnet/SolutionVersion.cs | using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Security;
[assembly: AssemblyDescription("ZooKeeper Client for .NET http://zookeeper.apache.org")]
[assembly: AssemblyProduct("ZooKeeperNet")]
[assembly: AssemblyCopyright("Copyright 2007-2012 ewhauser, omwok. - All rights reserv... | apache-2.0 | C# | |
6ac244cf6da2fbae9e5d26f62010f254e9d255ba | Update version numbers. bugid: 1029 | JasonBock/csla,BrettJaner/csla,rockfordlhotka/csla,BrettJaner/csla,rockfordlhotka/csla,jonnybee/csla,rockfordlhotka/csla,ronnymgm/csla-light,MarimerLLC/csla,JasonBock/csla,jonnybee/csla,ronnymgm/csla-light,MarimerLLC/csla,ronnymgm/csla-light,JasonBock/csla,jonnybee/csla,BrettJaner/csla,MarimerLLC/csla | Source/Csla.WinRT/Properties/AssemblyInfo.cs | Source/Csla.WinRT/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... | mit | C# |
5c7f2d5b3094c9a9b79e3e37a5213be755e4e023 | Set DisableTestParallelization to true | RehanSaeed/ASP.NET-MVC-Boilerplate,ASP-NET-Core-Boilerplate/Templates,RehanSaeed/ASP.NET-MVC-Boilerplate,RehanSaeed/ASP.NET-MVC-Boilerplate,ASP-NET-MVC-Boilerplate/Templates,ASP-NET-Core-Boilerplate/Templates,ASP-NET-Core-Boilerplate/Templates,ASP-NET-MVC-Boilerplate/Templates | Tests/Boxed.Templates.Test/Properties/AssemblyInfo.cs | Tests/Boxed.Templates.Test/Properties/AssemblyInfo.cs | using Xunit;
[assembly: CollectionBehavior(DisableTestParallelization = true)] | mit | C# | |
bce567b54879b8014bf92b57def6c2b17d5ebb72 | Add BatchCompleteEventArgs | SimpleScale/SimpleScale,SimpleScale/SimpleScale | HeadNode/BatchCompleteEventArgs.cs | HeadNode/BatchCompleteEventArgs.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SimpleScale.HeadNode
{
public class BatchCompleteEventArgs : EventArgs
{
public readonly Guid BatchID;
public BatchCompleteEventArgs(Guid batchId)
{
BatchID = batchId;
}
... | mit | C# | |
657f8306e5617cac095096f26652c82353ec2c34 | Add missing test for PG object metadata | jokokko/marten,jmbledsoe/marten,jokokko/marten,jokokko/marten,jmbledsoe/marten,mysticmind/marten,tim-cools/Marten,tim-cools/Marten,jokokko/marten,ericgreenmix/marten,jmbledsoe/marten,JasperFx/Marten,jamesfarrer/marten,mysticmind/marten,ericgreenmix/marten,jamesfarrer/marten,ericgreenmix/marten,tim-cools/Marten,ericgree... | src/Marten.Testing/Schema/add_origin_Tests.cs | src/Marten.Testing/Schema/add_origin_Tests.cs | using Marten.Testing.Documents;
using Marten.Util;
using Xunit;
namespace Marten.Testing.Schema
{
public class add_origin_Tests
{
[Fact]
public void origin_is_added_to_tables()
{
var user1 = new User { FirstName = "Jeremy" };
var user2 = new User { FirstNam... | mit | C# | |
4ae386f4cf75247f4514d8bc7806622c7214c038 | Create CampaignManager.cs | jon-lad/Battlefleet-Gothic | Campaign/CampaignManager.cs | Campaign/CampaignManager.cs | using UnityEngine;
using System.Collections;
public class CampaignManager : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
| mit | C# | |
d450d65bc20234fbfb36b2558664effdedc51e7d | Add the interface 'ITrilhaRepository' to Fatec.Treinamento.Data/Repositories/Interfaces folder | fmassaretto/formacao-talentos,fmassaretto/formacao-talentos,fmassaretto/formacao-talentos | Fatec.Treinamento.Data/Repositories/Interfaces/ITrilhaRepository.cs | Fatec.Treinamento.Data/Repositories/Interfaces/ITrilhaRepository.cs | using Fatec.Treinamento.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Fatec.Treinamento.Data.Repositories.Interfaces
{
public interface ITrilhaRepository : ICrudRepository<Trilha>
{
}
}
| apache-2.0 | C# | |
5ab98305d3456984ceca8b996c6aa8956cbc03e1 | add note viewmodel | pashchuk/Hospital-MVVM- | Hospital/DesktopApp/ViewModel/NoteViewModel.cs | Hospital/DesktopApp/ViewModel/NoteViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DesktopApp.Model;
namespace DesktopApp.ViewModel
{
public class NoteViewModel : ViewModelBase
{
private Note _note;
private bool _state;
public string NoteText
{
get { return _note.N... | mit | C# | |
4839a9d7981ffc3b513013828ca9186b90299d30 | Add weaklist benchmarks (#3166) | EVAST9919/osu-framework,ZLima12/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework | osu.Framework.Benchmarks/BenchmarkWeakList.cs | osu.Framework.Benchmarks/BenchmarkWeakList.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using BenchmarkDotNet.Attributes;
using NUnit.Framework;
using osu.Framework.Lists;
namespace osu.Framework.Benchmarks
{
public class BenchmarkWea... | mit | C# | |
b6cefd8f2042a9c0958554ccac27447dd3418b38 | Add animation state machine | cmilr/Unity2D-Components,jguarShark/Unity2D-Components | Player/AnimationState.cs | Player/AnimationState.cs | using UnityEngine;
using UnityEngine.Assertions;
public class AnimationState : BaseBehaviour
{
[HideInInspector]
public bool moving;
[HideInInspector]
public bool airborne;
[HideInInspector]
public bool attacking;
Animator_Base playerAnimator;
Animator_Weapon weaponAnimator;
void Start()
{
playerAnimator... | mit | C# | |
0b39a348a048f92e9f0e89ee5d4de5f925a0b5ef | Add Meteor class | Captain-Marvel/CSharp-Part2-Teamwork | SpaceGame/Game/Meteor.cs | SpaceGame/Game/Meteor.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SpaceGame
{
public class Meteor : IPrintable
{
// private fields
private int x;
private int y;
private char symbol;
private Consol... | mit | C# | |
4e6d42701f506d8034821d508fcf8838b720f52e | Add basic gameplay | KoltesDigital/Final-Countdown | Unity/Assets/Gameplay.cs | Unity/Assets/Gameplay.cs | using UnityEngine;
public class Gameplay : MonoBehaviour
{
[Tooltip("Initial time in seconds.")]
public float initialTime = 300.0f;
public string resetInputName = "Reset";
[Tooltip("Time when the alarm begins in seconds.")]
public float alarmTime = 10.0f;
public AudioSource alarmSource;
public Material bac... | mit | C# | |
90677b64afbd6839a6052dd966e222db30051c68 | Create UpdateTableBuilder.cs | PowerMogli/Rabbit.Db | src/RabbitDB/Expression/UpdateTableBuilder.cs | src/RabbitDB/Expression/UpdateTableBuilder.cs | using System;
using System.Linq.Expressions;
using RabbitDB.Mapping;
using RabbitDB.Storage;
namespace RabbitDB.Expressions
{
public interface IBuildUpdateTable<T>
{
IBuildUpdateTable<T> Set(Expression<Func<T, object>> column, Expression<Func<T, object>> statement);
IBuildUpdateTable<T> Set(Exp... | apache-2.0 | C# | |
18597003e5a0172a3a0b05a0d1bf5ead3f239d03 | Create _Layout.cshtml | CarmelSoftware/Generic-Data-Repository-for-ASP.NET-MVC | Views/Shared/_Layout.cshtml | Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://max... | mit | C# | |
be27ba2497f9b6d59036f5bbd41a528eaf459a1c | Add Thread Queue Size Setting | hudl/HudlFfmpeg | Hudl.Ffmpeg/Settings/ThreadQueueSize.cs | Hudl.Ffmpeg/Settings/ThreadQueueSize.cs | using Hudl.FFmpeg.Attributes;
using Hudl.FFmpeg.Enums;
using Hudl.FFmpeg.Resources.BaseTypes;
using Hudl.FFmpeg.Settings.Attributes;
using Hudl.FFmpeg.Settings.Interfaces;
namespace Hudl.FFmpeg.Settings
{
/// <summary>
/// This option sets the maximum number of queued packets when reading from the file or... | apache-2.0 | C# | |
10af676680a101bebae2b1b9786302efbdfdbfed | add test | m5knt/ThunderEgg.Extensions | test/ConcatTest.cs | test/ConcatTest.cs |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using ThunderEgg.Extentions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Runtime.InteropServices;
namespace test {
[TestClass]
public class ConcatTest {
IEnumerator Foo(List<int> a, int... | mit | C# | |
e6157c526645fd5e0dee8056e6fdb1c0e9e2bbf2 | Fix nullref in IPC test. | ppy/osu-framework,DrabWeb/osu-framework,smoogipooo/osu-framework,paparony03/osu-framework,peppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,default0/osu-framework,naoey/osu-framework,Tom94/osu-framework,peppy/osu-framework,default0/osu-framework,EVAST9919/osu-framework,ZLima12/osu-fram... | osu.Framework/Graphics/Shaders/ShadedDrawable.cs | osu.Framework/Graphics/Shaders/ShadedDrawable.cs | // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Graphics.OpenGL.Textures;
using osu.Framework.Graphics.Textures;
namespace osu.Framework.Graphics.Shaders
{
public class Shad... | // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Graphics.OpenGL.Textures;
using osu.Framework.Graphics.Textures;
namespace osu.Framework.Graphics.Shaders
{
public class Shad... | mit | C# |
02b2c8e816ae6afff3319d72a2382bbe488f3360 | Add MockRestClient | messagebird/csharp-rest-api | Tests/UnitTests/MessageBirdUnitTests/MockRestClient.cs | Tests/UnitTests/MessageBirdUnitTests/MockRestClient.cs | using System;
using MessageBird.Net;
using MessageBird.Net.ProxyConfigurationInjector;
using Moq;
namespace MessageBirdTests
{
/// <summary>
/// Helper that offers a convenient way to create and configure a RestClient mock with a fluent API.
///
/// <example>
/// The example below fails the test... | isc | C# | |
c53893334a0659da858df51ee8cbdc2105b5b712 | Move database interactions into repository. This contains the actions for both days and items. | lukecahill/NutritionTracker | food_tracker/Repository/NutritionRepository.cs | food_tracker/Repository/NutritionRepository.cs | using System.Collections.Generic;
using System.Linq;
namespace food_tracker.Repository {
public class NutritionRepository {
private readonly IMyEntitiesContext _db = null;
public NutritionRepository(IMyEntitiesContext db) {
_db = db;
}
public WholeDay GetDay(string i... | mit | C# | |
2941904c43666efb866b1fe7b169bf23494836a5 | add test for client info provider | aspnetboilerplate/aspnetboilerplate,luchaoshuai/aspnetboilerplate,carldai0106/aspnetboilerplate,carldai0106/aspnetboilerplate,ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,verdentk/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,ryancyq/aspnetboi... | test/Abp.Web.Tests/Auditing/Client_Info_Provider_Tests.cs | test/Abp.Web.Tests/Auditing/Client_Info_Provider_Tests.cs | using System.Collections.Specialized;
using System.Web;
using Abp.Auditing;
using Abp.TestBase;
using NSubstitute;
using NSubstitute.Extensions;
using Shouldly;
using Xunit;
namespace Abp.Web.Tests.Auditing
{
public class Client_Info_Provider_Tests : AbpIntegratedTestBase<AbpWebModule>
{
private reado... | mit | C# | |
ae4bba999b37ac4a57756d28b1eada8a34f64223 | Update ResizeRequestController to post to webjobs queue | lindydonna/ContosoMoments,lindydonna/ContosoMoments,azure-appservice-samples/ContosoMoments,lindydonna/ContosoMoments,lindydonna/ContosoMoments,azure-appservice-samples/ContosoMoments,azure-appservice-samples/ContosoMoments,azure-appservice-samples/ContosoMoments,azure-appservice-samples/ContosoMoments,lindydonna/Conto... | src/Cloud/ContosoMoments.API/Controllers/TableControllers/ResizeRequestController.cs | src/Cloud/ContosoMoments.API/Controllers/TableControllers/ResizeRequestController.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Controllers;
using ContosoMoments.Common;
using ContosoMoments.Common.Queue;
using Microsoft.Azure.Mobile.Serv... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Controllers;
using ContosoMoments.Common;
using ContosoMoments.Common.Queue;
using Microsoft.Azure.Mobile.Serv... | mit | C# |
7c08613731c0a44ca7740115ca3924fc6fe0fb2e | Add message validator interface | Vtek/Bartender | src/Bartender/IMessageValidator.cs | src/Bartender/IMessageValidator.cs | namespace Bartender
{
/// <summary>
/// Define a message validator
/// </summary>
public interface IMessageValidator<TMessage> where TMessage : IMessage
{
/// <summary>
/// Validate the specified message.
/// </summary>
/// <param name="message">Message.</param>
... | mit | C# | |
de6cc438844bdc8d17ef3ba0aa5200dbee1c4fe4 | add GetCommitDatesAsyncShould test (#582) | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | tests/FilterLists.Services.Tests/GitHub/GetCommitDatesAsyncShould.cs | tests/FilterLists.Services.Tests/GitHub/GetCommitDatesAsyncShould.cs | using System;
using System.Threading.Tasks;
using FilterLists.Services.GitHub;
using FilterLists.Services.GitHub.Models;
using Xunit;
namespace FilterLists.Services.Tests.GitHub
{
public class GetCommitDatesAsyncShould
{
[Fact]
public async Task ReturnCorrectCommitDatesForValidGitHubRawUrl()
... | mit | C# | |
c4045cfcce5c3a58fcd06cc2c8a24b849c7b434c | Create Marko.cs | SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming | Kattis-Solutions/Marko.cs | Kattis-Solutions/Marko.cs | using System;
using System.Collections.Generic;
using System.IO.Compression;
namespace Marko
{
class Program
{
static bool getAndCompareKey(string sub, string des)
{
string key = "";
switch (sub)
{
case "a":
case "b":
... | mit | C# | |
15bb5b328565d1307e97e8ab6524730577de4a5a | Add Q162 | txchen/localleet | csharp/Q162_FindPeakElement.cs | csharp/Q162_FindPeakElement.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Xunit;
// A peak element is an element that is greater than its neighbors.
//
// Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.
//
// The array may contain multiple peaks, in that case return the index to ... | mit | C# | |
cf3298c122e61ecccb0a5734aa4c68e0d11dc686 | Add Acceptor for single objects. | cbojar/acceptor-csharp | Acceptor.cs | Acceptor.cs | using System;
namespace CBojar.Acceptors
{
public class Acceptor<T> : IAcceptor<T>
{
protected T _value;
public Acceptor(T value) {
_value = value;
}
public IAcceptor<T> Accept(Action<T> visitor) {
visitor(_value);
return this;
}
public IAcceptor<T> Accept<U>(Action<U> visito... | mit | C# | |
c537697db4cc261ebb1b01a2f13057a982c8e1e1 | Add DateTag... | rggjan/Tomboy-Todo-List,rggjan/Tomboy-Todo-List | DateTag.cs | DateTag.cs | // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell... | lgpl-2.1 | C# | |
f393b2f3bd81932f4ff0c9f3f193136a5c5c9fd4 | Add code to flip text | ʇxǝʇ dıןɟ oʇ ǝpoɔ pp∀ | peterallenwebb/flip-sharp | TextFlip.cs | TextFlip.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace TextFlip
{
public class TextFlip
{
private static Dictionary<char, char> FlipDict =
new Dictionary<char, char> () {
{'a', '\u0250'},
{'b', 'q'},
{'c', '\u0254'},
{'d', 'p'},
{'e', '\u01DD'},
{'f', '\u025F'},
... | unlicense | C# | |
3309308ea1f8657cfa98b47bb3bab342765cb460 | Add ButtonExt | ronnelreposo/cardiotocography | cardio/cardio/Ext/ButtonExt.cs | cardio/cardio/Ext/ButtonExt.cs | using System.Windows.Controls;
namespace cardio.Ext
{
/// <summary>
/// Represents Button Extension
/// </summary>
static class ButtonExt
{
/// <summary>
/// Disables the button
/// </summary>
/// <param name="button">Given button to be disbaled</param>
/// ... | mit | C# | |
a3ded18eb66cb854ad55d53d3c4c233980214338 | Update ElementSessionState.cs | bedegaming-aleksej/Orchard,armanforghani/Orchard,gcsuk/Orchard,Dolphinsimon/Orchard,yersans/Orchard,planetClaire/Orchard-LETS,dmitry-urenev/extended-orchard-cms-v10.1,RoyalVeterinaryCollege/Orchard,RoyalVeterinaryCollege/Orchard,xkproject/Orchard,qt1/Orchard,ehe888/Orchard,Codinlab/Orchard,jchenga/Orchard,brownjordanin... | src/Orchard.Web/Modules/Orchard.Layouts/Models/ElementSessionState.cs | src/Orchard.Web/Modules/Orchard.Layouts/Models/ElementSessionState.cs | using System;
namespace Orchard.Layouts.Models {
[Serializable]
public class ElementSessionState {
public string TypeName { get; set; }
public string ElementData { get; set; }
public string ElementEditorData { get; set; }
public int? ContentId { get; set; }
pub... | namespace Orchard.Layouts.Models {
public class ElementSessionState {
public string TypeName { get; set; }
public string ElementData { get; set; }
public string ElementEditorData { get; set; }
public int? ContentId { get; set; }
public string ContentType { get; set; }
}
... | bsd-3-clause | C# |
054c28833f3b3dfc447e3009756081c2bc291dd8 | Create Movable.cs | xxmon/unity | Movable.cs | Movable.cs | using UnityEngine;
using System.Collections;
using UnityEngine.Events;
[System.Serializable]
public class Movable : MonoBehaviour
{
public GameObject objectToMove;
public bool moveRelativeToTransform;
public GameObject target;
public Vector3 start;
public Vector3 offset;
public bool updateOffset;
public bool is... | mit | C# | |
7df1d2ad4d07f30fe41aaf8e477c1be8832f7de4 | add test, thanks @donandren ! :D | jkoritzinsky/Avalonia,Perspex/Perspex,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Perspex,SuperJMN/Avalonia,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,grokys/Pe... | tests/Avalonia.Visuals.UnitTests/Media/PathSegmentTests.cs | tests/Avalonia.Visuals.UnitTests/Media/PathSegmentTests.cs | using Avalonia.Media;
using Xunit;
namespace Avalonia.Visuals.UnitTests.Media
{
public class PathSegmentTests
{
[Fact]
public void PathSegment_Triggers_Invalidation_On_Property_Change()
{
var targetSegment = new ArcSegment()
{
Size = new Size(10, ... | mit | C# | |
e287762dd8eda80e838c7ca9eba9d5c37d7d11d2 | Create Utilities class | bartlomiejwolk/FileLogger | Editor/Utilities.cs | Editor/Utilities.cs | using System;
using System.Diagnostics;
using System.Reflection;
using UnityEditor;
using UnityEngine;
// todo add namespace
public static class Utilities {
/// <summary>
/// </summary>
/// <remarks>http://forum.unity3d.com/threads/assert-class-for-debugging.59010/</remarks>
/// <param name="assertio... | mit | C# | |
f142339673b6c2d6d769af4652dd07caeec3fbef | Add missing file | larsbrubaker/MatterControl,unlimitedbacon/MatterControl,mmoening/MatterControl,larsbrubaker/MatterControl,jlewin/MatterControl,jlewin/MatterControl,jlewin/MatterControl,larsbrubaker/MatterControl,unlimitedbacon/MatterControl,mmoening/MatterControl,unlimitedbacon/MatterControl,unlimitedbacon/MatterControl,jlewin/MatterC... | ConfigurationPage/PrintLeveling/LevelingPlan.cs | ConfigurationPage/PrintLeveling/LevelingPlan.cs | /*
Copyright (c) 2018, Lars Brubaker, John Lewin
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and... | bsd-2-clause | C# | |
70731a7d8cae74a918ee5caceb98466e1870b01f | Add GetConfiguration command | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.GlobalTool/Program.GetConfiguration.cs | source/Nuke.GlobalTool/Program.GetConfiguration.cs | // Copyright 2021 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using JetBrains.Annotations;
using Nuke.Common;
using Nuke.Common.IO;
using Nuke.Common.Utilities;
... | mit | C# | |
69f6e59d4ef5574eecd9ba10b8423c61538a4fb8 | Change version number | OpenRA/tao,mono/tao,OpenRA/tao,mono/tao | Framework/Projects/Tao.Sdl/AssemblyInfo.cs | Framework/Projects/Tao.Sdl/AssemblyInfo.cs | #region License
/*
MIT License
Copyright 2003-2004 Tao Framework Team
http://www.taoframework.com
All rights reserved.
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, includin... | #region License
/*
MIT License
Copyright 2003-2004 Tao Framework Team
http://www.taoframework.com
All rights reserved.
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, includin... | mit | C# |
e62fad27dedaecbf9df29ae24fdcbe5245c6b10f | Remove TFM requirement from API | dotnet/roslyn,physhi/roslyn,wvdd007/roslyn,ErikSchierboom/roslyn,AlekseyTs/roslyn,shyamnamboodiripad/roslyn,AmadeusW/roslyn,sharwell/roslyn,tmat/roslyn,weltkante/roslyn,mgoertz-msft/roslyn,mgoertz-msft/roslyn,diryboy/roslyn,CyrusNajmabadi/roslyn,mavasani/roslyn,dotnet/roslyn,mgoertz-msft/roslyn,mavasani/roslyn,panoptic... | src/VisualStudio/Core/Def/ExternalAccess/ProjectSystem/Api/IProjectSystemReferenceCleanupService.cs | src/VisualStudio/Core/Def/ExternalAccess/ProjectSystem/Api/IProjectSystemReferenceCleanupService.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.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.Visu... | // 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.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.Visu... | mit | C# |
93907be3866e2c2f549482d0b20ac41bbb2b6737 | Create MapItem.cs | jon-lad/Battlefleet-Gothic | MapItem.cs | MapItem.cs | using UnityEngine;
using System.Collections;
public class MapItem : MonoBehaviour {
// Use this for initialization
void Start () {
GameObject mapBounds = GameObject.CreatePrimitive (PrimitiveType.Cube);
mapBounds.name = "MapBounds";
mapBounds.layer = 8;
Destroy(mapBounds.collider);
mapBounds.transform.pa... | mit | C# | |
ff5bd4e0cdd4f86b82d4b22c3553f620b26200f3 | Create Program.cs | qiankunpig/CalculateLongLat | Program.cs | Program.cs | class Program
{
static void Main(string[] args)
{
Print();
}
public static void Print()
{
Console.WriteLine("输入A点纬度:");
double lat1 = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("输入A点经度:");
double lng1 ... | unlicense | C# | |
848286d39a91dcf2f97a641721f50261c12eb1bb | Add files via upload (#873) | vknet/vk,vknet/vk | VkNet/Extensions.cs | VkNet/Extensions.cs | using System;
using System.Linq;
using System.Threading.Tasks;
using Flurl.Http;
using HtmlAgilityPack;
using VkNet.Model;
namespace VkNet
{
public static class Extensions
{
/// <summary>
/// return self registration date
/// </summary>
/// <param name="user"></param>
/// <returns></returns>... | mit | C# | |
5d1fea7b94224c3f37050c042c1e6104ce96ec4c | Add an implementation for IDocumentTabViewModel | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Gui/ViewModels/DocumentTabViewModel.cs | WalletWasabi.Gui/ViewModels/DocumentTabViewModel.cs | using AvalonStudio.Documents;
using AvalonStudio.Extensibility;
using AvalonStudio.Shell;
using Dock.Model;
namespace WalletWasabi.Gui.ViewModels
{
internal abstract class DocumentTabViewModel : ViewModelBase, IDocumentTabViewModel
{
public DocumentTabViewModel(string title)
{
Title = title;
}
public st... | mit | C# | |
d3987e4853bc6f1523224638f3f1ef170f052fa6 | Fix FindByAccessibilityId bug where you were not to find a subelement of an element in a dom | Astro03/appium-dotnet-driver,appium/appium-dotnet-driver,rajfidel/appium-dotnet-driver,rajfidel/appium-dotnet-driver,suryarend/appium-dotnet-driver,Brillio/appium-dotnet-driver | src/Appium/Interfaces/IFindByAccessibilityId.cs | src/Appium/Interfaces/IFindByAccessibilityId.cs | using System.Collections.ObjectModel;
namespace OpenQA.Selenium.Appium.Interfaces
{
internal interface IFindByAccessibilityId
{
/// <summary>
/// Finds the first of elements that match the Accessibility Id selector supplied
/// </summary>
/// <param name="selector">an Accessibi... | apache-2.0 | C# | |
0a7f14185b5fef239d564a762876cf31475eadd9 | Create UInt32ToColorConverter.cs | wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D/Converters/UInt32ToColorConverter.cs | src/Core2D/Converters/UInt32ToColorConverter.cs | using System;
using System.Globalization;
using Avalonia;
using Avalonia.Data.Converters;
using Avalonia.Media;
namespace Core2D.Converters;
public class UInt32ToColorConverter : IValueConverter
{
public static UInt32ToColorConverter Instance = new();
public object? Convert(object? value, Type targetType, o... | mit | C# | |
ba28d86ad154fa5e84b8d4aaf59476705eb1e0fb | Add DependencePluginGetter | fmwviormv/mygui,fmwviormv/mygui,scrawl/mygui,fmwviormv/mygui,al2950/mygui,scrawl/mygui,fmwviormv/mygui,al2950/mygui,Anomalous-Software/mygui,Anomalous-Software/mygui,scrawl/mygui,scrawl/mygui,al2950/mygui,al2950/mygui,Anomalous-Software/mygui,Anomalous-Software/mygui | MyGUI_Editor/Common/DependencePluginGetter.cs | MyGUI_Editor/Common/DependencePluginGetter.cs | using System;
using System.Xml;
using Core;
namespace Common
{
public static class DependencePluginGetter
{
public static Guid[] GetPlugins(Guid _project)
{
XmlNodeList list = CoreFacade.SettingsProvider.Root.SelectNodes(
string.Format("project[@ID=\"... | mit | C# | |
253a222932bf6d9a91e793da27f3990b3585b366 | Fix issue with DynamicRootList. bugid: 828 | jonnybee/csla,MarimerLLC/csla,MarimerLLC/csla,ronnymgm/csla-light,JasonBock/csla,JasonBock/csla,ronnymgm/csla-light,BrettJaner/csla,JasonBock/csla,rockfordlhotka/csla,rockfordlhotka/csla,MarimerLLC/csla,BrettJaner/csla,jonnybee/csla,rockfordlhotka/csla,BrettJaner/csla,jonnybee/csla,ronnymgm/csla-light | Support/Templates/cs/Files/DynamicRootList.cs | Support/Templates/cs/Files/DynamicRootList.cs | using System;
using System.Collections.Generic;
using Csla;
namespace Templates
{
[Serializable]
public class DynamicRootList :
DynamicListBase<DynamicRoot>
{
#region Business Methods
protected override DynamicRoot AddNewCore()
{
DynamicRoot item = DynamicRoot.NewDynamicRoot();
Add(i... | using System;
using System.Collections.Generic;
using Csla;
namespace Templates
{
[Serializable]
public class DynamicRootList :
EditableRootListBase<DynamicRoot>
{
#region Business Methods
protected override object AddNewCore()
{
DynamicRoot item = DynamicRoot.NewDynamicRoot();
Add(i... | mit | C# |
4c05b1da00750d8f0b720d236b9b5727cc84229f | Set a cross fiducial in PCB-Investigator | sts-CAD-Software/PCB-Investigator-Scripts | Editing/SetFiducials_cross.cs | Editing/SetFiducials_cross.cs | // Autor support@easylogix.de
// www.pcb-investigator.com
// SDK online reference http://www.pcb-investigator.com/sites/default/files/documents/InterfaceDocumentation/Index.html
// SDK http://www.pcb-investigator.com/en/sdk-participate
// Set fix fiducial markers on extra layer.
//--------------------------------... | bsd-3-clause | C# | |
f3965eb99c5bb97a12c21cd291654c63041355d9 | Add helper class | kangaroo/monomac,dlech/monomac,PlayScriptRedux/monomac | src/CoreImage/CIVector.cs | src/CoreImage/CIVector.cs | //
// CIVector.cs: Extra methods for CIVector
//
// Copyright 2010, Novell, Inc.
//
// Author:
// Miguel de Icaza
//
// 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, ... | apache-2.0 | C# | |
095cab466922e0f8f56b64f08fcb7797396fa06e | add PackageOperation class | tsolarin/dotnet-globals,tsolarin/dotnet-globals | src/DotNet.Executor.Core/PackageOperations.cs | src/DotNet.Executor.Core/PackageOperations.cs | using DotNet.Executor.Core.PackageResolvers;
using System.Reflection;
using System.IO;
namespace DotNet.Executor.Core
{
public class PackageOperations
{
public DirectoryInfo PackagesFolder { get; }
private PackageOperations(string packagesFolder)
{
Assembly asm = Assembly.G... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.