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 |
|---|---|---|---|---|---|---|---|---|
50690013015f15f27bedb167891ccc38023ab49c | add extension | luchaoshuai/aspnetboilerplate,ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate,luchaoshuai/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate | src/Abp/ObjectComparators/ObjectComparatorExtensions.cs | src/Abp/ObjectComparators/ObjectComparatorExtensions.cs | using Abp.Extensions;
using System;
namespace Abp.ObjectComparators
{
public static class ObjectComparatorExtensions
{
public static bool IsNullOrEmpty<T1, T2>(this ObjectComparatorCondition<T1, T2> objectComparator) where T2 : Enum
{
return objectComparator == null;
}
... | mit | C# | |
20458d4b4636defc3e26ddbf66fcf31f90c1ea28 | Add InvalidDataException | killnine/s7netplus | S7.Net/InvalidDataException.cs | S7.Net/InvalidDataException.cs | using System;
namespace S7.Net
{
#if NET_FULL
[Serializable]
#endif
public class InvalidDataException : Exception
{
public byte[] ReceivedData { get; }
public int ErrorIndex { get; }
public byte ExpectedValue { get; }
public InvalidDataException(string message, byt... | mit | C# | |
0076dbc16a2cb30e4d5f1a96d3e139b5523f0ea4 | Add missing file | ilovepi/Compiler,ilovepi/Compiler | compiler/middleend/ir/SsaVariable.cs | compiler/middleend/ir/SsaVariable.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework.Internal;
namespace compiler.middleend.ir
{
class SsaVariable
{
public int UuId { get; set; }
public Instruction Location { get; set; }
/// <summa... | mit | C# | |
58e66cb1e27bd76fa56aa2507801b79df9ba7511 | Add CueTextBox Control | stefan-baumann/AeroSuite | AeroSuite/Controls/CueTextBox.cs | AeroSuite/Controls/CueTextBox.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace AeroSuite.Controls
{
/// <summary>
/// A TextBox with cue banner support.
/// </summary>
/// <remarks>
/// A cue banner is ... | mit | C# | |
502376f17e370e668acf52f751f9b6ef2f9b2b6d | Add missing file to repository | Therzok/nunit,Therzok/nunit,NikolayPianikov/nunit,jeremymeng/nunit,ArsenShnurkov/nunit,nunit/nunit,dicko2/nunit,ChrisMaddock/nunit,akoeplinger/nunit,akoeplinger/nunit,Suremaker/nunit,elbaloo/nunit,mikkelbu/nunit,passaro/nunit,Green-Bug/nunit,OmicronPersei/nunit,zmaruo/nunit,acco32/nunit,cPetru/nunit-params,jhamm/nunit,... | src/framework/Api/ISetRunState.cs | src/framework/Api/ISetRunState.cs | // ***********************************************************************
// Copyright (c) 2010 Charlie Poole
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, incl... | mit | C# | |
76bcfbc81987a5502797528e7080f283ba24bd02 | Fix missing files for release 3.7.4.2704 | Patagames/Pdf.Wpf | Print/PrintSizeMode.cs | Print/PrintSizeMode.cs | namespace Patagames.Pdf.Net.Controls.Wpf
{
/// <summary>
/// Represents the scaling options of the page for printing
/// </summary>
public enum PrintSizeMode
{
/// <summary>
/// Fit page
/// </summary>
Fit,
/// <summary>
/// Actual size
/// <... | apache-2.0 | C# | |
4dab3b6ce703052793d0b0c6c0abe4b2970f5670 | Create Problem123.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem123.cs | Problems/Problem123.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace ProjectEuler.Problems
{
class Problem123
{
Sieve s = new Sieve(10000000);
private BigInteger p(int n)
{
long pn = s.primeList[n-1];
BigInteger pn_sq = BigInteger... | mit | C# | |
a69df37b18e8809802f075d640f2d7f80ad999bc | add missing file. | venj/Clipy | Clipy/stringExtension.cs | Clipy/stringExtension.cs | using System;
namespace Clipy
{
public static class StringExtension
{
public static string FirstLine(this string self)
{
var lines = self.Split(new Char[]{'\n'});
return lines[0];
}
}
}
| mit | C# | |
475098109537000afd5fbb9505c35749b6eddfef | 添加rule 的单元测试的框架 | Sandwych/slipstream,Sandwych/slipstream,Sandwych/slipstream,Sandwych/slipstream | src/ObjectServer.Test/Core/RuleTest.cs | src/ObjectServer.Test/Core/RuleTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
namespace ObjectServer.Core.Test
{
[TestFixture]
public sealed class RuleTest : LocalTestCase
{
[Ignore]
public void Test_ComputeDomain()
{
}
}
}
| agpl-3.0 | C# | |
44d22390108a5f9c1f0e8449eeaea83bdfde52c4 | Add the new ILedgerIndexes interface | openchain/openchain | src/Openchain.Ledger/ILedgerIndexes.cs | src/Openchain.Ledger/ILedgerIndexes.cs | // Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | apache-2.0 | C# | |
a52d1b0f0ad42511c2c3f05689ffb165206a54d5 | Add RSA class for encryption | MihaelaNicoleta/compression-algorithms | RSAEncryption/RSA.cs | RSAEncryption/RSA.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RSAEncryption
{
class RSA
{
public Boolean encrypt(String fileToRead)
{
return true;
}
public Boolean decrypt(String fileToRead)
{... | mit | C# | |
817b4f25110e4d760406283a1f6ef5bc2b0840e5 | add method for update of the transaction | paymill/paymill-net,paymill/paymill-net | UnitTest/Net/TestTransactions.cs | UnitTest/Net/TestTransactions.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PaymillWrapper;
using PaymillWrapper.Service;
using System.Collections.Generic;
using PaymillWrapper.Models;
namespace UnitTest.Net
{
[TestClass]
public class TestTransactions
{
[TestInitialize]
public void Initialize(... | mit | C# | |
f3ca11d77f8af4e62f4a5436a95592dfec19a46f | Fix #425 | PoESkillTree/PoESkillTree,MLanghof/PoESkillTree,EmmittJ/PoESkillTree,mihailim/PoESkillTree,l0g0sys/PoESkillTree | WPFSKillTree/Utils/RegexTools.cs | WPFSKillTree/Utils/RegexTools.cs | using System;
using System.Text.RegularExpressions;
namespace POESKillTree.Utils
{
public static class RegexTools
{
public static bool IsValidRegex(string pattern)
{
if (pattern == null) return false;
try
{
Regex.Match("", pattern);
... | using System;
using System.Text.RegularExpressions;
namespace POESKillTree.Utils
{
public static class RegexTools
{
public static bool IsValidRegex(string pattern)
{
if (string.IsNullOrEmpty(pattern)) return false;
try
{
Regex.Match("", patt... | mit | C# |
3b5ab0da40058888802effb5f2577a98ade21982 | Create RemoveDuplicates.cs | michaeljwebb/Algorithm-Practice | Other/RemoveDuplicates.cs | Other/RemoveDuplicates.cs | //Remove duplicates from given string
using System;
public class Test
{
public static void Main()
{
string testValue = "Google";
Console.WriteLine(RemoveDuplicateChars(testValue));
}
public static string RemoveDuplicateChars(string key){
string table = "";
string result = "";
forea... | mit | C# | |
7b1d4f382954f40d77fffa5237d89a3f8e1a6191 | Add web request generator | caronyan/CSharpRecipe | CSharpRecipe/Recipe.Web/HttpWebRequest.cs | CSharpRecipe/Recipe.Web/HttpWebRequest.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace Recipe.Web
{
public class HttpWebRequestTest
{
public static HttpWebRequest GenerateHttpWebRequest(Uri uri)
{
HttpWebRequ... | mit | C# | |
701aa6478663a5e0460d15791a53991a2d68fd32 | Disable test parallelization in Marten.Testing | JasperFx/Marten,ericgreenmix/marten,JasperFx/Marten,mysticmind/marten,ericgreenmix/marten,mysticmind/marten,ericgreenmix/marten,ericgreenmix/marten,mysticmind/marten,JasperFx/Marten,mysticmind/marten | src/Marten.Testing/AssemblyInfo.cs | src/Marten.Testing/AssemblyInfo.cs | using Xunit;
// 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: CollectionBehavior(DisableTestParallelization = true)]
| mit | C# | |
53c7d3e5b035f6e6cd394e6d36f39a6034ed6a48 | Optimize coins management with CoinRegistry | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Models/CoinsRegistry.cs | WalletWasabi/Models/CoinsRegistry.cs | using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using NBitcoin;
using WalletWasabi.Models;
namespace WalletWasabi.Gui.Models
{
public class CoinsRegistry
{
private HashSet<SmartCoin> _coins;
private object _lock;
public event NotifyCollectionChangedEventHandler Collec... | mit | C# | |
185c4c644588f39881deba2fe16ae85450331212 | add MongoDb MessageStoreDaemon implementation | IvanZheng/IFramework,IvanZheng/IFramework,IvanZheng/IFramework | Src/iFramework.Plugins/IFramework.MessageStores.MongoDb/MessageStoreDaemon.cs | Src/iFramework.Plugins/IFramework.MessageStores.MongoDb/MessageStoreDaemon.cs | using System.Linq;
using IFramework.MessageStores.Abstracts;
using Microsoft.Extensions.Logging;
using MongoDB.Driver;
namespace IFramework.MessageStores.MongoDb
{
public class MessageStoreDaemon : Abstracts.MessageStoreDaemon
{
protected override void RemoveUnSentCommands(Abstracts.MessageStore messa... | mit | C# | |
9995b33cb9f4e551879c94a1061fd5325f8d99e7 | Simplify the handling of OperationCanceledException in net35-cf library | cocosli/antlr4,antlr/antlr4,antlr/antlr4,cocosli/antlr4,chienjchienj/antlr4,krzkaczor/antlr4,lncosie/antlr4,Distrotech/antlr4,parrt/antlr4,parrt/antlr4,lncosie/antlr4,chandler14362/antlr4,chienjchienj/antlr4,joshids/antlr4,supriyantomaftuh/antlr4,Distrotech/antlr4,ericvergnaud/antlr4,parrt/antlr4,parrt/antlr4,supriyant... | runtime/CSharp/Antlr4.Runtime/Misc/ParseCanceledException.cs | runtime/CSharp/Antlr4.Runtime/Misc/ParseCanceledException.cs | /*
* [The "BSD license"]
* Copyright (c) 2013 Terence Parr
* Copyright (c) 2013 Sam Harwell
* 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... | /*
* [The "BSD license"]
* Copyright (c) 2013 Terence Parr
* Copyright (c) 2013 Sam Harwell
* 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... | bsd-3-clause | C# |
13378c71b8424833a9c14c90d757ee61a3aaf488 | Add base class for DataPoints | CB17Echo/DroneSafety,CB17Echo/DroneSafety,CB17Echo/DroneSafety | AzureFunctions/Models/DataPoint.csx | AzureFunctions/Models/DataPoint.csx | using Microsoft.Azure.Documents.Spatial;
using System;
public abstract class DataPoint
{
public DateTime Time { get; set; }
public Point Location { get; set; }
}
| apache-2.0 | C# | |
0ce72f35b966bdec447cf31693ceae579e79ec3c | add IApplication interface | AspectCore/Mvvm | src/AspectCore.Extensions.Mvvm/IApplication.cs | src/AspectCore.Extensions.Mvvm/IApplication.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AspectCore.Extensions.Mvvm
{
public interface IApplication
{
void Run();
}
}
| mit | C# | |
80d5725e9b68026ae9fce2701ad95589fa9e1bb9 | Create Problem16.cs | neilopet/projecteuler_cs | Problem16.cs | Problem16.cs | /*
* Problem 16
2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
What is the sum of the digits of the number 2^1000?
*/
using System;
using System.Numerics;
public class Problem16
{
public static void Main()
{
/* Left bit shifting is the same as raising to power of 2 */
BigInteger n = new Big... | mit | C# | |
c3de71a69f22770303a1cf51eae448a5b36b07bb | Create Greetings.cs | SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming | Kattis-Solutions/Greetings.cs | Kattis-Solutions/Greetings.cs | using System;
namespace Greetings
{
class Program
{
static void Main(string[] args)
{
string g = Console.ReadLine();
int x = (g.Length - 2) * 2;
string n = "h";
for(int i = 0; i < x; i++) { n += "e"; }
n += "y";
Console.Wri... | mit | C# | |
97b8736245b9db477581715b2520bb0138455c4b | Create Details.cshtml | CarmelSoftware/Generic-Data-Repository-for-ASP.NET-MVC | Views/Blogs/Details.cshtml | Views/Blogs/Details.cshtml | @model GenericRepository.Models.Blog
@{
ViewBag.Title = "Details";
}
<div class="jumbotron">
<h2>Generic Data Repository - Details</h2><br /><h4>By Carmel Schvartzman</h4>
</div>
<div class="jumbotron">
<fieldset>
<legend>Blog</legend>
<div class="display-label">
@Html.DisplayNameFor(model => mod... | mit | C# | |
0ec149f067d0a930794e9ed2e6ca6bd9fefb0f47 | Create a CellFormatterFactory to select correct formatter | Seddryck/NBi,Seddryck/NBi | NBi.Framework/FailureMessage/Formatter/CellFormatterFactory.cs | NBi.Framework/FailureMessage/Formatter/CellFormatterFactory.cs | using NBi.Core.ResultSet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBi.Unit.Framework.FailureMessage.Formatter
{
public class CellFormatterFactory
{
public CellFormatter GetObject(ColumnType columnType)
... | apache-2.0 | C# | |
410fbf092cb74ae38e1d719f2efa6097613b532f | Add DotNetTestSettings.AddTeamCityLogger | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.Common/CI/TeamCity/DotNetTestSettingsExtensions.cs | source/Nuke.Common/CI/TeamCity/DotNetTestSettingsExtensions.cs | // Copyright 2021 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.IO;
using System.Linq;
using JetBrains.Annotations;
using Nuke.Common.Tooling;
using Nuke.Common.Tools.DotNet;
namespace Nuke.Common.CI.TeamCity
{
[Pub... | mit | C# | |
6cdae1a7d4daf09907daba16be45c42dcbbd2db2 | Create AddQuestion.cs | Si-143/Application-and-Web-Development | AddQuestion.cs | AddQuestion.cs | public partial class Add_Questions : System.Web.UI.Page
{
List<string> test = new List<string>() {"1","2","3","4","5",};
List<string> test2 = new List<string>() { "a", "b", "c", "d", "e" };
List<TextBox> answerBox;
List<RadioButton> buttons;
List<CheckBox> CBox;
protected void Page_Load(object sender, EventArgs... | mit | C# | |
02c86d62d575629156ecd78ad5c9555529e9ac82 | Create StubAction.cs | XamlBehaviors/XamlBehaviors,wieslawsoltes/AvaloniaBehaviors,wieslawsoltes/AvaloniaBehaviors,XamlBehaviors/XamlBehaviors | tests/Avalonia.Xaml.Interactivity.UnitTests/StubAction.cs | tests/Avalonia.Xaml.Interactivity.UnitTests/StubAction.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
namespace Avalonia.Xaml.Interactivity.UnitTests
{
public class StubAction : AvaloniaObject, IAction
{
private readonly object returnValue;
... | mit | C# | |
c7917ac2151677456d3adaab7d860071f8ba9ace | Add HardwareControllerSwitchChannel which abstracts several types of switched channel. Missing from a previous commit. | ColdMatter/EDMSuite,ColdMatter/EDMSuite,ColdMatter/EDMSuite,Stok/EDMSuite,Stok/EDMSuite,jstammers/EDMSuite,jstammers/EDMSuite,jstammers/EDMSuite,jstammers/EDMSuite,jstammers/EDMSuite,ColdMatter/EDMSuite | EDMBlockHead/HardwareControllerSwitchChannel.cs | EDMBlockHead/HardwareControllerSwitchChannel.cs | using System;
using System.Windows.Forms;
using NationalInstruments.DAQmx;
using DAQ.Environment;
using DAQ.HAL;
namespace EDMBlockHead.Acquire.Channels
{
/// <summary>
/// A channel to map a modulation to the E-field switches. This channel connects to the
/// hardware helper and uses it to switch the... | mit | C# | |
1c2a5ee1a3dad5bb7ca5463379666acbd1965765 | Fix compile errors in unity3d. | jbruening/lidgren-network-gen3,PowerOfCode/lidgren-network-gen3,SacWebDeveloper/lidgren-network-gen3,RainsSoft/lidgren-network-gen3,lidgren/lidgren-network-gen3,dragutux/lidgren-network-gen3,forestrf/lidgren-network-gen3 | Lidgren.Network/Platform/PlatformConstrained.cs | Lidgren.Network/Platform/PlatformConstrained.cs | #if __CONSTRAINED__ || UNITY_STANDALONE_LINUX
using System;
using System.Collections.Generic;
using System.Net;
using System.Security.Cryptography;
namespace Lidgren.Network
{
public static partial class NetUtility
{
private static byte[] s_randomMacBytes;
static NetUtility()
{
s_randomMacBytes = new by... | #if __CONSTRAINED__ || UNITY_STANDALONE_LINUX
using System;
using System.Collections.Generic;
using System.Net;
using System.Security.Cryptography;
namespace Lidgren.Network
{
public static partial class NetUtility
{
private static byte[] s_randomMacBytes;
static NetUtility()
{
s_randomMacBytes = new by... | mit | C# |
60f5fbddbcfb71779a755cf56705563eb13b14d3 | add IsolationLevelExtensions | IvanZheng/IFramework,IvanZheng/IFramework,IvanZheng/IFramework | Src/iFramework.Plugins/IFramework.EntityFrameworkCore/IsolationLevelExtensions.cs | Src/iFramework.Plugins/IFramework.EntityFrameworkCore/IsolationLevelExtensions.cs | using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using IsolationLevel = System.Transactions.IsolationLevel;
namespace IFramework.EntityFrameworkCore
{
public static class IsolationLevelExtensions
{
public static System.Data.IsolationLevel ToDataIsolationLevel(this ... | mit | C# | |
f6f20326808fad9d9a22c175932eb0bb2c48d1ec | check in MemoryPackagePartOutputStream.cs | tonyqus/npoi,akrisiun/npoi,stuartwmurray/npoi,antony-liu/npoi,tkalubi/npoi-1,Yijtx/npoi,JesseQin/npoi,vinod1988/npoi,xl1/npoi,jcridev/npoi | ooxml/openxml4Net/OPC/Internal/MemoryPackagePartOutputStream.cs | ooxml/openxml4Net/OPC/Internal/MemoryPackagePartOutputStream.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace NPOI.OpenXml4Net.OPC.Internal
{
public class MemoryPackagePartOutputStream : Stream
{
private MemoryPackagePart _part;
private MemoryStream _buff;
public MemoryPackagePartOutput... | apache-2.0 | C# | |
281e4d1710bbce216f37f3320a2a3719ff93472f | Update WhatsConstants.cs | rvriens/Chat-API-NET,andrebires/Chat-API-NET,rvriens/Chat-API-NET,andrebires/Chat-API-NET,mgp25/Chat-API-NET,rvriens/Chat-API-NET,mgp25/Chat-API-NET,andrebires/Chat-API-NET,mgp25/Chat-API-NET | WhatsAppApi/Settings/WhatsConstants.cs | WhatsAppApi/Settings/WhatsConstants.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
namespace WhatsAppApi.Settings
{
/// <summary>
/// Holds constant information used to connect to whatsapp server
/// </summary>
public class WhatsConstants
{
#region ServerCons... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
namespace WhatsAppApi.Settings
{
/// <summary>
/// Holds constant information used to connect to whatsapp server
/// </summary>
public class WhatsConstants
{
#region ServerCons... | mit | C# |
5541de5f95b5b6bf4a1906c48256488d8847228f | Add tests to cover TestSuite.Copy | mjedrzejek/nunit,nunit/nunit,mjedrzejek/nunit,nunit/nunit | src/NUnitFramework/tests/Internal/TestSuiteCopyTests.cs | src/NUnitFramework/tests/Internal/TestSuiteCopyTests.cs | using NUnit.Framework.Api;
using NUnit.TestData.OneTimeSetUpTearDownData;
using NUnit.TestData.TestFixtureSourceData;
using NUnit.TestUtilities;
namespace NUnit.Framework.Internal
{
// Tests that Copy is properly overridden for all types extending TestSuite - #3171
public class TestSuiteCopyTests
{
... | mit | C# | |
fcdbc8c57e9c1094a25683b8e78169861b14c863 | Create BoxColliderFitChildren.cs | UnityCommunity/UnityLibrary | Assets/Scripts/Editor/ContextMenu/BoxColliderFitChildren.cs | Assets/Scripts/Editor/ContextMenu/BoxColliderFitChildren.cs | // Adjust Box Collider to fit child meshes inside
// usage: You have empty parent transform, with child meshes inside, add box collider to parent then use this
using UnityEngine;
using UnityEditor;
namespace UnityLibrary
{
public class BoxColliderFitChildren : MonoBehaviour
{
[MenuItem("CONTEXT/BoxCol... | mit | C# | |
fdc9bc9a01fe5657e6b06c348c8f41097cdeedda | Create Test that dapper works wil Session | generik0/Smooth.IoC.Dapper.Repository.UnitOfWork,generik0/Smooth.IoC.Dapper.Repository.UnitOfWork | src/Smooth.IoC.Dapper.Repository.UnitOfWork.Tests/ExampleTests/RepositoryQueryTests.cs | src/Smooth.IoC.Dapper.Repository.UnitOfWork.Tests/ExampleTests/RepositoryQueryTests.cs | using System.Collections.Generic;
using System.Linq;
using Dapper;
using FakeItEasy;
using NUnit.Framework;
using Smooth.IoC.Dapper.FastCRUD.Repository.UnitOfWork.Tests.TestHelpers;
using Smooth.IoC.Dapper.Repository.UnitOfWork.Data;
namespace Smooth.IoC.Dapper.FastCRUD.Repository.UnitOfWork.Tests.ExampleTests
{
... | mit | C# | |
824f8dc44e9d47c11475dfee81494c07e9cce1d2 | Check in missing file | cjbhaines/MemBroker | src/MemBroker/WeakActionListDictionary.cs | src/MemBroker/WeakActionListDictionary.cs | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
namespace MemBroker
{
/// <summary>
/// The class is thread-safe insofar as it shouldn't throw exceptions if you're using it in a multi-threaded
/// environment, but its behaviour under various race c... | mit | C# | |
649e41240705ee79a21e166fe6067c11d5c26fbe | Create NumberRule.cs | shreeharshas/hackerrank,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/hackerrank | NumberRule.cs | NumberRule.cs | /*
Method to check if all the digits in a number are present in a non-descending order
Eg:
returns true for: 1, 123, 1357, 1112, 1233345
returns false for: 10, 1243, 192, 890, 543
*/
bool NumberRule(int n) {
while(n>0){
if(n%100/10>n%10) //check if last-1th digit is greater than the last digit
... | mit | C# | |
99309c64a36aba4588ef365c93ccf65f0c1544ac | Revert "Upgrade_20211111_ReplaceDefaultExecute" | signumsoftware/framework,signumsoftware/framework | Signum.Upgrade/Upgrades/Upgrade_20211111_ReplaceDefaultExecute.cs | Signum.Upgrade/Upgrades/Upgrade_20211111_ReplaceDefaultExecute.cs | namespace Signum.Upgrade.Upgrades;
class Upgrade_20211111_ReplaceDefaultExecute : CodeUpgradeBase
{
public override string Description => "Replace eoc.defaultClick( with return eoc.defaultClick(";
public override void Execute(UpgradeContext uctx)
{
uctx.ForeachCodeFile($@"*.tsx", uctx.Reac... | mit | C# | |
27b3e643c9d7636039689f7d8589a052ce56031d | Add Win32 functionality to get foreground process | BrunoBrux/ArticulateDVS,Mpstark/articulate | Articulate/Components/ForegroundProcess.cs | Articulate/Components/ForegroundProcess.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace Articulate
{
/// <summary>
/// Gets information about the currently active window
/// </summary>
public sta... | mit | C# | |
93bf191ba47b534551e3265cfc69c09378b97f1a | Add failing test | DixonD-git/structuremap,DixonD-git/structuremap,DixonD-git/structuremap,DixonDs/structuremap,DixonD-git/structuremap,DixonDs/structuremap | src/StructureMap.Testing/Bugs/Bug_557_unique_instances_when_using_with.cs | src/StructureMap.Testing/Bugs/Bug_557_unique_instances_when_using_with.cs | using Xunit;
namespace StructureMap.Testing.Bugs
{
public class Bug_557_unique_instances_when_using_with
{
[Fact]
public void should_return_unique_instances_when_using_With()
{
var root = new Container();
var nested1 = root.GetNestedContainer();
... | apache-2.0 | C# | |
241ad6a221ffb2e1f2ca612c170921bdafae6067 | Add a very simple Should implementation, adding some of the missing nunit features i need that arent available in MDs old version. | jacksonh/manos,jmptrader/manos,mdavid/manos-spdy,jacksonh/manos,jacksonh/manos,jacksonh/manos,jmptrader/manos,jacksonh/manos,mdavid/manos-spdy,jmptrader/manos,mdavid/manos-spdy,jacksonh/manos,jmptrader/manos,jacksonh/manos,mdavid/manos-spdy,jmptrader/manos,mdavid/manos-spdy,mdavid/manos-spdy,jacksonh/manos,jmptrader/ma... | src/Manos.Tests/Nunit-Extensions/Nunit_Extension_Methods.cs | src/Manos.Tests/Nunit-Extensions/Nunit_Extension_Methods.cs | using System;
using NUnit.Framework;
//
// Lets you use some of Nunits modern assert methods on monodevelops archaic nunit
//
namespace Manos.ShouldExt
{
public delegate void TestSnippet ();
public class Should {
public static void Throw<T> (TestSnippet snippet) where T : Exception
{
try {
snippet (... | mit | C# | |
be1239c81ee891d4a00ee669a82e25df78ba5f79 | Update DommelPropertyMap.cs | arumata/Dapper-FluentMap,thomasbargetz/Dapper-FluentMap,henkmollema/Dapper-FluentMap,bondarenkod/Dapper-FluentMap,henkmollema/Dapper-FluentMap | src/Dapper.FluentMap.Dommel/Mapping/DommelPropertyMap.cs | src/Dapper.FluentMap.Dommel/Mapping/DommelPropertyMap.cs | using System.Reflection;
using Dapper.FluentMap.Mapping;
namespace Dapper.FluentMap.Dommel.Mapping
{
/// <summary>
/// Represents mapping of a property for Dommel.
/// </summary>
public class DommelPropertyMap : PropertyMapBase<DommelPropertyMap>, IPropertyMap
{
/// <summary>
/// I... | using System.Reflection;
using Dapper.FluentMap.Mapping;
namespace Dapper.FluentMap.Dommel.Mapping
{
/// <summary>
/// Represents mapping of a property for Dommel.
/// </summary>
public class DommelPropertyMap : PropertyMapBase<DommelPropertyMap>, IPropertyMap
{
/// <summary>
/// I... | mit | C# |
11af33933330142234a441b677578a90aac1f2ed | Create StarTringle.cs | aAmitSengar/MyWorks | StarTringle.cs | StarTringle.cs | /*
* *
** **
*** ***
**** ****
***** *****
****** ******
******* *******
******** ********
********* *********
********************
*/
string aa = string.Empty;
for (int i = 0; i < 10; i++)
{
int... | mit | C# | |
6c2bfb9af67f43da1fad18a9306f225cf916a352 | Add PPPoE Support | danikf/tik4net | tik4net.objects/Interface/InterfacePppoeserverServer..cs | tik4net.objects/Interface/InterfacePppoeserverServer..cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace tik4net.Objects.Interface
{
/// <summary>
/// /interface
/// </summary>
[TikEntity("interface/pppoe-server/server", IncludeDetails = true)]
public class InterfacePppoeserverServer
{
/// <sum... | apache-2.0 | C# | |
1eefef008061c3b5445f417def7142f009b109e2 | Add True | farity/farity | Farity/True.cs | Farity/True.cs | namespace Farity
{
public static partial class F
{
public static readonly FuncAny<bool> True = args => true;
}
} | mit | C# | |
e2db845193b331a21b7878a5850205781cd3b1fa | Add LogField that regroup all constant for log field in Lucene. | ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton | src/CK.Glouton.Model/Logs/LogField.cs | src/CK.Glouton.Model/Logs/LogField.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace CK.Glouton.Model.Logs
{
public class LogField
{
public const string LOG_TYPE = "LogType";
public const string EXCEPTION = "Exception";
public const string LOG_TIME = "LogTime";
public const string LOG_... | mit | C# | |
f23f53babf948504065279017cea316eb88bebd1 | add captransaction interface. | dotnetcore/CAP,dotnetcore/CAP,ouraspnet/cap,dotnetcore/CAP | src/DotNetCore.CAP/ICapTransaction.cs | src/DotNetCore.CAP/ICapTransaction.cs | using System;
namespace DotNetCore.CAP
{
public interface ICapTransaction : IDisposable
{
bool AutoCommit { get; set; }
object DbTransaction { get; set; }
void Commit();
void Rollback();
}
}
| mit | C# | |
6cdae29a3b218948db1127678355ccc84ceed106 | Add an xUnit test discoverer that ignores tests when run on AppVeyor | jbogard/Respawn,jbogard/Respawn | Respawn.DatabaseTests/SkipOnAppVeyorAttribute.cs | Respawn.DatabaseTests/SkipOnAppVeyorAttribute.cs | namespace Respawn.DatabaseTests
{
using System;
using System.Collections.Generic;
using System.Linq;
using Xunit;
using Xunit.Abstractions;
using Xunit.Sdk;
public class SkipOnAppVeyorTestDiscoverer : IXunitTestCaseDiscoverer
{
private readonly IMessageSink _diagnosticMessageSi... | apache-2.0 | C# | |
644e01a0b771b51dfef768f312c79fa51136b0ee | Create DylanBerry.cs (#583) | planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin | src/Firehose.Web/Authors/DylanBerry.cs | src/Firehose.Web/Authors/DylanBerry.cs | using System;
using System.Collections.Generic;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class DylanBerry : IAmACommunityMember
{
public string FirstName => "Dylan";
public string LastName => "Berry";
public string ShortBioOrTagLine => "Genetically Predi... | mit | C# | |
1c066719c16f9dc9031413f33b466262b59f6395 | Change DropDownButton, Change Sepparotor name on Menu, Logout if unsuccessful ping Part VII | moscrif/ide,moscrif/ide | components/DropDownRadioButton.cs | components/DropDownRadioButton.cs | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Gtk;
namespace Moscrif.IDE.Components
{
class DropDownRadioButton: DropDownButton
{
public DropDownRadioButton()
{
}
protected override void OnPressed ()
{
//base.OnPressed ();
Gtk.Menu menu = new Gtk.Menu... | bsd-3-clause | C# | |
9c471f01a746b1ea38eccced248ec1e752ad0c29 | Enable use of C# 9 records. | sharpjs/PSql,sharpjs/PSql | PSql.Tests/Tests.Support/IsExternalInit.cs | PSql.Tests/Tests.Support/IsExternalInit.cs | /*
Copyright 2021 Jeffrey Sharp
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS A... | isc | C# | |
709f4889f7a3fa3ba923720db6846730a951295f | Create ext.cs | FrostCat/nefarious-octo-spork | ext.cs | ext.cs | using System.Reflection;
using System.Windows.Forms;
[assembly: AssemblyVersionAttribute("1.0.0.1")]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("keyfile.snk")]
namespace External
{
public class ext
{
public string thing()
{
return "External.ext.thing(): [" + Ass... | mit | C# | |
87c7987bcc3282803ff12363e7c7b85e11cba380 | Add IDuplexSocket interface. | jgoz/netzmq,jgoz/netzmq,jgoz/netzmq,jgoz/netzmq,jgoz/netzmq | src/proj/ZeroMQ/IDuplexSocket.cs | src/proj/ZeroMQ/IDuplexSocket.cs | namespace ZeroMQ
{
/// <summary>
/// A socket that is capable of both sending and receiving messages to and from remote endpoints.
/// </summary>
public interface IDuplexSocket
: ISendSocket, IReceiveSocket
{
}
}
| apache-2.0 | C# | |
aea2f7b45accfceb8e518f7c2ddb3cf7560706b6 | Allow running gzip-ped script from URL | filipw/dotnet-script,filipw/dotnet-script | src/Dotnet.Script.Core/ScriptDownloader.cs | src/Dotnet.Script.Core/ScriptDownloader.cs | using System;
using System.IO;
using System.IO.Compression;
using System.Net.Http;
using System.Threading.Tasks;
namespace Dotnet.Script.Core
{
public class ScriptDownloader
{
public async Task<string> Download(string uri)
{
using (HttpClient client = new HttpClient())
... | using System;
using System.IO;
using System.Net.Http;
using System.Net.Mime;
using System.Threading.Tasks;
namespace Dotnet.Script.Core
{
public class ScriptDownloader
{
public async Task<string> Download(string uri)
{
const string plainTextMediaType = "text/plain";
usi... | mit | C# |
9be21972113ed10a3a31c659575291fb9e0341cc | Add channel lists. | fuyuno/Norma | Norma/Models/AbemaChannels.cs | Norma/Models/AbemaChannels.cs | namespace Norma.Models
{
internal enum AbemaChannels
{
/// <summary>
/// 1ch - Abema news/
/// </summary>
AbemaNews,
/// <summary>
/// 2ch - Abema SPECIAL
/// </summary>
AbemaSpecial,
/// <summary>
/// 3ch - SPECIAL P... | mit | C# | |
1f781ef82088c69d0c76bec22d43c498f1e794bd | Add Q172 | txchen/localleet | csharp/Q172_FactorialTrailingZeroes.cs | csharp/Q172_FactorialTrailingZeroes.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
// Given an integer n, return the number of trailing zeroes in n!.
//
// Note: Your solution should be in logarithmic time complexity.
// https://leetcode.com/problems/factorial-trailing-zeroes/
namespace LocalLeet
{
... | mit | C# | |
9541dd559b85d1b86ea525d319afd45f1856536d | Use rtvs::send_message directly instead of rtvs::browser. | karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArk... | src/Package/Impl/Repl/Session/RSessionEvaluationCommands.cs | src/Package/Impl/Repl/Session/RSessionEvaluationCommands.cs | using System;
using System.IO;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.R.Host.Client;
using Microsoft.R.Support.Settings;
using Microsoft.VisualStudio.R.Package.RPackages.Mirrors;
namespace Microsoft.VisualStudio.R.Package.Repl.Session
{
public static class RSessionEvaluationCommands... | using System;
using System.IO;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.R.Host.Client;
using Microsoft.R.Support.Settings;
using Microsoft.VisualStudio.R.Package.RPackages.Mirrors;
namespace Microsoft.VisualStudio.R.Package.Repl.Session
{
public static class RSessionEvaluationCommands... | mit | C# |
5bf8363dd5b709c8e6cbc3b6688a4d37b655811d | Add missed paren in comment. | nbarbettini/corefx,gabrielPeart/corefx,parjong/corefx,larsbj1988/corefx,anjumrizwi/corefx,lggomez/corefx,comdiv/corefx,mafiya69/corefx,gabrielPeart/corefx,Alcaro/corefx,billwert/corefx,vrassouli/corefx,JosephTremoulet/corefx,zmaruo/corefx,destinyclown/corefx,rubo/corefx,richlander/corefx,Petermarcu/corefx,s0ne0me/coref... | src/System.Diagnostics.Process/tests/ProcessTest_ConsoleApp/ProcessTest_ConsoleApp.cs | src/System.Diagnostics.Process/tests/ProcessTest_ConsoleApp/ProcessTest_ConsoleApp.cs | using System;
using System.Threading;
namespace ProcessTest_ConsoleApp
{
class Program
{
static int Main(string[] args)
{
try
{
if (args.Length > 0)
{
if (args[0].Equals("infinite"))
{
... | using System;
using System.Threading;
namespace ProcessTest_ConsoleApp
{
class Program
{
static int Main(string[] args)
{
try
{
if (args.Length > 0)
{
if (args[0].Equals("infinite"))
{
... | mit | C# |
2c6d4329f33a7a52264ad43cfba1adf0c14d47f2 | Create AboutBox.cs | GetSomeBlocks/ServerStatus,GetSomeBlocks/Score_Soccer,GetSomeBlocks/ServerStatus,GetSomeBlocks/ServerStatus,GetSomeBlocks/ServerStatus,GetSomeBlocks/ServerStatus,GetSomeBlocks/Score_Soccer,GetSomeBlocks/ServerStatus,GetSomeBlocks/ServerStatus,GetSomeBlocks/Score_Soccer,GetSomeBlocks/Score_Soccer,GetSomeBlocks/Score_Soc... | GUI/AboutBox.cs | GUI/AboutBox.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
namespace OpenHardwareMonitor.GUI {
public partial class AboutBox : Form {
public AboutBox() {
InitializeComponent();
this.Font = SystemFonts.Messag... | mit | C# | |
2a90e500d407f5454771e5c2b02a0bdd58f40fca | add first test for bulk | msbahrul/EventStore,msbahrul/EventStore,ianbattersby/EventStore,msbahrul/EventStore,ianbattersby/EventStore,msbahrul/EventStore,ianbattersby/EventStore,ianbattersby/EventStore,ianbattersby/EventStore,msbahrul/EventStore,msbahrul/EventStore | src/EventStore/EventStore.Core.Tests/TransactionLog/Chunks/when_reading_bulk_a_chunk.cs | src/EventStore/EventStore.Core.Tests/TransactionLog/Chunks/when_reading_bulk_a_chunk.cs | using EventStore.Core.TransactionLog.Chunks;
using NUnit.Framework;
namespace EventStore.Core.Tests.TransactionLog.Chunks
{
[TestFixture]
public class when_reading_bulk_a_chunk : SpecificationWithDirectory
{
[Test]
public void a_read_on_new_file_can_be_performed()
{
... | bsd-3-clause | C# | |
ae83f9d1f3a9aa50191c3cf9d3ef951d196e8999 | Set specs on all tiles at Awake() | jguarShark/Unity2D-Components,cmilr/Unity2D-Components | Tiles/TileSystemManager.cs | Tiles/TileSystemManager.cs | using UnityEngine;
using UnityEngine.Assertions;
public class TileSystemManager : BaseBehaviour
{
private Shader shader;
void Start()
{
shader = Shader.Find("Sprites/Diffuse");
Assert.IsNotNull(shader);
SetChunksToStatic();
DisableShadows();
}
void SetChunksToStatic()
{
foreach (Transform child in t... | mit | C# | |
10243e28fe87de261aeb7e30e9168ccdb3993298 | Create StopJoin.cs | alchemz/ARL_Training | CSharpDotNet_Programming/Thread/StopJoin.cs | CSharpDotNet_Programming/Thread/StopJoin.cs | using System;
using System.Threading;
namespace ThreadTutorial
{
public class StopJoin
{
public void Beta()
{
while (true) {
Console.WriteLine ("Beta is running in its own thread");
}
}
};
public class Simple
{
public static int Main()
{
Console.WriteLine ("Thread Start/Stop/Join Sample");... | mit | C# | |
0f373acacb55be124e573144a8b112291ea82fdd | Add test scene | UselessToucan/osu,peppy/osu,peppy/osu-new,peppy/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipooo/osu,ppy/osu | osu.Game.Tests/Visual/Multiplayer/TestSceneTimeshiftResultsScreen.cs | osu.Game.Tests/Visual/Multiplayer/TestSceneTimeshiftResultsScreen.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using NUnit.Framework;
using osu.Game.Online.API;
using osu.Game.Online.API.Requests;
using osu.Game.Online.Multiplayer;
u... | mit | C# | |
1daacec6a2e275aa2a93c9635c9bd628d8826a1c | Add server modules phrases class | RapidScada/scada,RapidScada/scada,RapidScada/scada,RapidScada/scada | ScadaServer/ScadaServerCommon/ModPhrases.cs | ScadaServer/ScadaServerCommon/ModPhrases.cs | /*
* Copyright 2015 Mikhail Shiryaev
*
* 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 a... | apache-2.0 | C# | |
0b0c83b1c0add640878e80fd74e6666da3b8c2a6 | add custom deserializer | ceee/PocketSharp | PocketSharp/JsonDeserializer.cs | PocketSharp/JsonDeserializer.cs | using RestSharp;
using RestSharp.Deserializers;
using ServiceStack.Text;
namespace PocketSharp
{
public class JsonDeserializer : IDeserializer
{
public const string JsonContentType = "application/json";
/// <summary>
/// Deserializes the specified response.
/// </summary>
/// <typeparam name=... | mit | C# | |
b55a04ee92a21704a0d7a1cfe53bb8ab6a8d2f87 | Create Problem40.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem40.cs | Problems/Problem40.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler
{
class Problem40
{
private int upper = -1;
public Problem40(int u)
{
upper = u;
}
public int Run()
{
int res = 1;
in... | mit | C# | |
d0bde4a3619a6b6f3fa698f9ee9ab6b9e386728d | Copy CriticalFinalizerSources from CoreCLR | botaberg/corert,krytarowski/corert,botaberg/corert,shrah/corert,shrah/corert,tijoytom/corert,sandreenko/corert,botaberg/corert,sandreenko/corert,gregkalapos/corert,krytarowski/corert,tijoytom/corert,tijoytom/corert,gregkalapos/corert,yizhang82/corert,shrah/corert,shrah/corert,gregkalapos/corert,krytarowski/corert,kryta... | src/System.Private.CoreLib/src/System/Runtime/ConstrainedExecution/CriticalFinalizerObject.cs | src/System.Private.CoreLib/src/System/Runtime/ConstrainedExecution/CriticalFinalizerObject.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.
//
/*============================================================
**
**
**
** Deriving from this class will cause an... | mit | C# | |
7875300fce4d1cde5600c07ccfbc041ef1419859 | Add missing view file | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EmployerApprenticeshipsService.Web/Views/EmployerCommitments/Acknowlegement.cshtml | src/SFA.DAS.EmployerApprenticeshipsService.Web/Views/EmployerCommitments/Acknowlegement.cshtml |
<div class="grid-row">
<div class="column-two-thirds">
<div class="govuk-box-highlight">
<h1 class="heading-xlarge" id="changeHeadline">
Sent to provider
</h1>
<p id="changeRefNumber">
Your reference number is <br>
<stro... | mit | C# | |
e5799a215d1ee66a049ed9ede7f7b280853e55cf | Add CasBool32 | whampson/bft-spec,whampson/cascara | Src/WHampson.Cascara/Types/CasBool32.cs | Src/WHampson.Cascara/Types/CasBool32.cs | #region License
/* Copyright (c) 2017 Wes Hampson
*
* 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, ... | mit | C# | |
15f3438231853f3702ea23732497fefe27558e93 | Create HtmlSanitizerOptions.cs | mganss/HtmlSanitizer | src/HtmlSanitizer/HtmlSanitizerOptions.cs | src/HtmlSanitizer/HtmlSanitizerOptions.cs | using System;
using System.Collections.Generic;
namespace Ganss.XSS
{
public class HtmlSanitizerOptions
{
public ICollection<string> AllowedTags { get; set; } = new HashSet<string>();
public ICollection<string> AllowedAttributes { get; set; } = new HashSet<string>();
public ICollection<... | mit | C# | |
5da70cbf9d763c8fa361ef5d3e93604a4f503bba | Add MetaConverter | riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy | src/DotvvmAcademy.Meta/MetaConverter.cs | src/DotvvmAcademy.Meta/MetaConverter.cs | using DotvvmAcademy.Meta.Syntax;
using Microsoft.CodeAnalysis;
using System.Collections.Generic;
using System.Reflection;
namespace DotvvmAcademy.Meta
{
public class MetaConverter
{
public NameNode ToMeta(ISymbol symbol)
{
var visitor = new MetaSymbolVisitor();
return v... | apache-2.0 | C# | |
a50e9a0270045384fff07123ddf34a330597c685 | Create ChallengeResponseFailedEvent.cs | skrusty/AsterNET,AsterNET/AsterNET | Asterisk.2013/Asterisk.NET/Manager/Event/ChallengeResponseFailedEvent.cs | Asterisk.2013/Asterisk.NET/Manager/Event/ChallengeResponseFailedEvent.cs | namespace AsterNET.Manager.Event
{
/// <summary>
/// Raised when a request's attempt to authenticate has been challenged, and the request failed the authentication challenge.<br />
/// </summary>
public class ChallengeResponseFailedEvent : ManagerEvent
{
public ChallengeResponseFailedEvent(Mana... | mit | C# | |
869ac24ae8e29cf4a101e68c798fdc636fe1b656 | Add test for F.Last | farity/farity | Farity.Tests/LastTests.cs | Farity.Tests/LastTests.cs | using Xunit;
using System.Linq;
namespace Farity.Tests
{
public class LastTests
{
[Fact]
public void LastReturnsLastElement()
{
var data = new[] { 1, 2, 3, 4, 5 };
var expected = 5;
var actual = F.Last(data);
Assert.Equal(expected, actual... | mit | C# | |
b242f89bc0ba8e4752aeeeadb95eab64d6295183 | Create RequestHeaderTests.cs | PKRoma/RestSharp,restsharp/RestSharp | RestSharp.Tests/RequestHeaderTests.cs | RestSharp.Tests/RequestHeaderTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace RestSharp.Tests
{
public class RequestHeaderTests
{
[Test]
public void AddHeaders_SameCaseDuplicatesExist_ThrowsException()
{
... | apache-2.0 | C# | |
eeb5f3d5191f87f20e9582caabab5792ab69bf2e | Add basic test scene | peppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,peppy/osu,smoogipoo/osu,ppy/osu,peppy/osu-new,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,smoogipooo/osu,ppy/osu,ppy/osu | osu.Game.Tests/Visual/Gameplay/TestScenePerformancePointsCounter.cs | osu.Game.Tests/Visual/Gameplay/TestScenePerformancePointsCounter.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.Diagnostics;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Testing;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Judg... | mit | C# | |
02c2c72c0d91b14ccc0a157c313a3dd4349a7809 | add a defaultprogram | jmrnilsson/efpad,jmrnilsson/efpad,jmrnilsson/efpad,jmrnilsson/efpad | c_scaffold/Program.cs | c_scaffold/Program.cs | using System;
using System.Linq;
using System.Collections.Generic;
using Microsoft.Data.Entity;
namespace c_scaffold
{
public class Program
{
public static void Main()
{
using (var db = new blogContext())
{
var start = DateTime.UtcNow;
var... | mit | C# | |
8e8c9886836b6307860badbbbd7fd9493d073634 | Add Activation class | kawatan/Milk | Megalopolis/Layers/Activation.cs | Megalopolis/Layers/Activation.cs | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Megalopolis.ActivationFunctions;
namespace Megalopolis
{
namespace Layers
{
public class Activation : Layer
{
private double[][] internalOutputs = null;
private IActivationFunction activ... | apache-2.0 | C# | |
a1fcf4869bfdc1fd4f0b535f2da12a5c145e4cb9 | Create AssemblyInfo.cs | daniela1991/hack4europecontest | AssemblyInfo.cs | AssemblyInfo.cs | using System.Resources;
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.
[asse... | mit | C# | |
2d6528960b57047f77cd6e4c1fdb0064beac8f9a | add mapnote class | kidchenko/windows-phone | MapNotesApp/MapNotesApp/DataModel/MapNote.cs | MapNotesApp/MapNotesApp/DataModel/MapNote.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MapNotesApp.DataModel
{
public class MapNote
{
public string Title { get; set; }
public string Note { get; set; }
public DateTime Created { get; set; }
... | mit | C# | |
0ca7ed8bd797f646b836fba7dc1e1dd9553a3776 | Fix BugsnagUserManager typo. | eatskolnikov/mobile,peeedge/mobile,masterrr/mobile,eatskolnikov/mobile,peeedge/mobile,eatskolnikov/mobile,masterrr/mobile,ZhangLeiCharles/mobile,ZhangLeiCharles/mobile | Phoebe/Net/BugsnagUserManager.cs | Phoebe/Net/BugsnagUserManager.cs | using System;
using Toggl.Phoebe;
using Toggl.Phoebe.Bugsnag;
using Toggl.Phoebe.Data;
using Toggl.Phoebe.Data.Models;
using Toggl.Phoebe.Net;
using XPlatUtils;
namespace Toggl.Joey.Net
{
public class BugsnagUserManager
{
#pragma warning disable 0414
private readonly Subscription<AuthChangedMes... | using System;
using Toggl.Phoebe;
using Toggl.Phoebe.Bugsnag;
using Toggl.Phoebe.Data;
using Toggl.Phoebe.Data.Models;
using Toggl.Phoebe.Net;
using XPlatUtils;
namespace Toggl.Joey.Net
{
public class BugsnagUserManager
{
#pragma warning disable 0414
private readonly Subscription<AuthChangedMes... | bsd-3-clause | C# |
12656f3057834db1edfa206cbfbd2e7f8fc6bc25 | Add MapTile object mockup | freemanovec/Hexy | Scripts/MapGenerating/MapTile.cs | Scripts/MapGenerating/MapTile.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MapTile {
public Vector2 positionGrid;
public Vector2 positionWorld;
public GameObject associatedGOBase;
public GameObject associatedGOLogic;
public GameObject associatedGOOverlay;
public float tileValu... | mit | C# | |
59f27ccd5c0d8d378c97ce76f79840ce5cc737ac | Add Q226 | txchen/localleet | csharp/Q226_InvertBinaryTree.cs | csharp/Q226_InvertBinaryTree.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
// Invert a binary tree.
//
// 4
// / \
// 2 7
// / \ / \
// 1 3 6 9
// to
// 4
// / \
// 7 2
// / \ / \
// 9 6 3 1
// https://leetcode.com/problem... | mit | C# | |
fc7ed3a9cd570d6829991f2e812dbe2bd4f64471 | Add TLS token binding feature | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNet.Http.Interfaces/ITlsTokenBindingFeature.cs | src/Microsoft.AspNet.Http.Interfaces/ITlsTokenBindingFeature.cs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces
{
/// <summary>
/// Provides infor... | apache-2.0 | C# | |
00721d799c415f9caf6e78f49b291ae2a490c511 | Add missing file 1/2 | Albeoris/Memoria,Albeoris/Memoria,Albeoris/Memoria,Albeoris/Memoria | Assembly-CSharp/Memoria/Configuration/Access/Mod.cs | Assembly-CSharp/Memoria/Configuration/Access/Mod.cs | using System;
namespace Memoria
{
public sealed partial class Configuration
{
public static class Mod
{
public static String[] FolderNames => Instance._mod.FolderNames;
}
}
} | mit | C# | |
3fb5c2a35a77af6c4e232ee342cd716b0170648a | Add 'ThrowsWithMessage' | whampson/cascara,whampson/bft-spec | Cascara.Tests/Src/AssertExtension.cs | Cascara.Tests/Src/AssertExtension.cs | using System;
using Xunit;
namespace Cascara.Tests
{
public class AssertExtension : Assert
{
public static T ThrowsWithMessage<T>(Func<object> testCode, string message)
where T : Exception
{
var ex = Assert.Throws<T>(testCode);
Assert.Equal(ex.Message, messa... | mit | C# | |
4a47f8c4d97753e71d58db3db7642492bd59ea41 | Create skeleton for Evaluator class with visit methods | escamilla/squirrel | squirrel/Evaluator.cs | squirrel/Evaluator.cs | using System;
using System.Collections.Generic;
using System.Reflection;
namespace squirrel
{
public class Evaluator : Visitor
{
private readonly AstNode _root;
public Evaluator(AstNode root)
{
_root = root;
}
public AstNode Evaluate()
{
... | mit | C# | |
7cc8564123a0e6626c42d958f3960978d467c560 | Create GetAllStatsQueryHandler.cs | NinjaVault/NinjaHive,NinjaVault/NinjaHive | NinjaHive.BusinessLayer/QueryHandlers/GetAllStatsQueryHandler.cs | NinjaHive.BusinessLayer/QueryHandlers/GetAllStatsQueryHandler.cs | using System.Linq;
using NinjaHive.Contract.DTOs;
using NinjaHive.Contract.Queries;
using NinjaHive.Core;
using NinjaHive.Domain;
namespace NinjaHive.BusinessLayer.QueryHandlers
{
public class GetAllStatsQueryHandler
: IQueryHandler<GetAllStatsQuery, StatInfo[]>
{
private readonly IRepository<... | apache-2.0 | C# | |
487a9ac41ba73e90af5bb80dfbc663e7ae177198 | Add Q229 | txchen/localleet | csharp/Q229_MajorityElementII.cs | csharp/Q229_MajorityElementII.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
// Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. The algorithm should run in linear time and in O(1) space.
// https://leetcode.com/problems/majority-... | mit | C# | |
aaccc876d468106b30d985b3f22a71bde0a15d0f | add ISqlExceptionHumanizer interface abstraction for producing user friendly exceptions from sql exceptions like FK, PK etc. | volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity | src/Serenity.Net.Services/RequestHandlers/Helpers/ISqlExceptionHumanizer.cs | src/Serenity.Net.Services/RequestHandlers/Helpers/ISqlExceptionHumanizer.cs | using System;
namespace Serenity.Data
{
public interface ISqlExceptionHumanizer
{
void Humanize(Exception exception, IRow row);
}
} | mit | C# | |
c38189b1e3c3141ae257f1c4fd69f127646f7348 | Add AddWebForms service | hishamco/WebForms,hishamco/WebForms | src/My.AspNetCore.WebForms/WebFormsServiceCollectionExtensions.cs | src/My.AspNetCore.WebForms/WebFormsServiceCollectionExtensions.cs | using My.AspNetCore.WebForms.Infrastructure;
using System;
namespace Microsoft.Extensions.DependencyInjection
{
public static class WebFormsServiceCollectionExtensions
{
public static IServiceCollection AddWebForms(this IServiceCollection services)
{
if (services == null)
... | mit | C# | |
cbfb670fedf899009a4538730dda3d1d9424a4cd | Update for version 0.9.0 | deckar01/libsodium-net,bitbeans/libsodium-net,adamcaudill/libsodium-net,bitbeans/libsodium-net,adamcaudill/libsodium-net,BurningEnlightenment/libsodium-net,deckar01/libsodium-net,BurningEnlightenment/libsodium-net,tabrath/libsodium-core,fraga/libsodium-net,fraga/libsodium-net | libsodium-net/Properties/AssemblyInfo.cs | libsodium-net/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("li... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("li... | mit | C# |
aa72ca7af5e1cafb209b051723c28678fddc8943 | Prepare JetBrains.Annotations samples #16 - added sample of [SourceTemplate] | synergy-software/synergy.contracts,synergy-software/synergy.contracts | Synergy.Contracts.Samples/Annotations/SourceTemplateAttributeSample.cs | Synergy.Contracts.Samples/Annotations/SourceTemplateAttributeSample.cs | using System;
using System.Collections.Generic;
using JetBrains.Annotations;
namespace Synergy.Contracts.Samples.Annotations
{
public static class SourceTemplateAttributeSample
{
[SourceTemplate]
public static void forEach<T>(this IEnumerable<T> xs)
{
foreach (T x in xs)
... | mit | C# | |
4183905054850bfadd79665f67c44ea4fb8e6c32 | Create GameManager.cs | Moci1/ColorBox | GameManager.cs | GameManager.cs | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
namespace ColorBox
{
public class GameManager
{
public List<SpriteBase> Sprites { get; private set; }
public SpriteBase Current { get; private set; }
public event EventHandler ValidTransf... | mit | C# | |
ab46fe0e9ee0f384baf61865305f3686db9e0e5c | Fix test on mono | satsuper/FAKE,ArturDorochowicz/FAKE,ArturDorochowicz/FAKE,modulexcite/FAKE,tpetricek/FAKE,neoeinstein/FAKE,satsuper/FAKE,MichalDepta/FAKE,NaseUkolyCZ/FAKE,Kazark/FAKE,beeker/FAKE,RMCKirby/FAKE,daniel-chambers/FAKE,RMCKirby/FAKE,molinch/FAKE,rflechner/FAKE,ovu/FAKE,pacificIT/FAKE,pacificIT/FAKE,yonglehou/FAKE,featuresna... | src/test/Test.FAKECore/Globbing/TestSample7/CountersRegressionSpecs.cs | src/test/Test.FAKECore/Globbing/TestSample7/CountersRegressionSpecs.cs | using System.IO;
using System.Linq;
using Fake;
using Machine.Specifications;
using Test.FAKECore.FileHandling;
namespace Test.FAKECore.Globbing.TestSample7
{
public class when_extracting_zip : BaseFunctions
{
protected static readonly string TempDir = FileSystemHelper.FullName("temptest");
pr... | using System.IO;
using System.Linq;
using Fake;
using Machine.Specifications;
using Test.FAKECore.FileHandling;
namespace Test.FAKECore.Globbing.TestSample7
{
public class when_extracting_zip : BaseFunctions
{
protected static readonly string TempDir = FileSystemHelper.FullName("temptest");
pr... | apache-2.0 | C# |
41e76fce5533346b59809a20c2088d96943b0210 | Create LiveQueueService.cs | siuccwd/IOER,siuccwd/IOER,siuccwd/IOER | Services/Isle.BizServices/LiveQueueService.cs | Services/Isle.BizServices/LiveQueueService.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Caching;
using System.Collections.Concurrent;
namespace Isle.BizServices
{
public class LiveQueueService
{
/// <summary>
/// Get the cache's global LiveQueueItems, or if they have expired, create a new one... | apache-2.0 | C# | |
b6dc620dd9835fddeff924f2ca5ba025c824f156 | Create SwitchGroup.cs | xxmon/unity | SwitchGroup.cs | SwitchGroup.cs | using UnityEngine;
using System.Collections;
public class SwitchGroup : MonoBehaviour {
public GameObject[] switches;
public GameObject triggerTarget;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnValidate()
{
for(int i=0; i < switches... | mit | C# | |
74d6e2e115d120f9f0972e0d503b05984b05f11a | Add items for database persistence | lukecahill/NutritionTracker | food_tracker/NutritionItem.cs | food_tracker/NutritionItem.cs | namespace food_tracker {
public class NutritionItem {
public string name { get; set; }
public double calories { get; set; }
public double carbohydrates { get; set; }
public double sugars { get; set; }
public double fats { get; set; }
public double saturatedFats { get... | mit | C# | |
501f6cc02f84706e48b568d8f3d415b50587f644 | split key utile to own file | jsturtevant/ace-jump,mgutekunst/ace-jump | AceJump/KeyUtility.cs | AceJump/KeyUtility.cs | namespace AceJump
{
using System.Windows.Input;
public class KeyUtility
{
private static bool IsShiftKey()
{
return Keyboard.IsKeyDown(Key.LeftShift) || Keyboard.IsKeyDown(Key.RightShift);
}
public static string GetKey(Key key)
{
var keyConve... | mit | C# | |
afde405bb98bfa5630ca6a5f745b9f579a3d144b | Add a abstract server class. Watch out for the todos. | 0x2aff/WoWCore | Common/Network/Server.cs | Common/Network/Server.cs | /*
* WoWCore - World of Warcraft 1.12 Server
* Copyright (C) 2017 exceptionptr
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.