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 |
|---|---|---|---|---|---|---|---|---|
f13d221acd8304396742e08a07c1eaaf26704eac | Create ConsoleTestAssemblyInfo.cs | codecore/Functional,codecore/Functional | ConsoleTestAssemblyInfo.cs | ConsoleTestAssemblyInfo.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("Don... | apache-2.0 | C# | |
c0879a04a97acd1bfa3f8705d8ffc582f09a6977 | Add some basic tests for tags | mvno/Okanshi,mvno/Okanshi,mvno/Okanshi | tests/Okanshi.Tests/TagTest.cs | tests/Okanshi.Tests/TagTest.cs | using FluentAssertions;
using Xunit;
namespace Okanshi.Test
{
public class TagTest
{
[Fact]
public void Creating_a_new_tag_sets_the_correct_key()
{
var expectedKey = "key";
var tag = new Tag(expectedKey, "anything");
tag.Key.Should().Be(expectedKey)... | mit | C# | |
4d1b3735fa23f7a31001c159a25c8dd1e1683931 | Add weaklist benchmarks | smoogipooo/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,EVAST9919/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# | |
20f6ff769c07dfdb81dab3dd1aa4b3a1be8558de | Add tests | peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ppy/osu-framework | osu.Framework.Tests/Localisation/LocalisableEnumAttributeTest.cs | osu.Framework.Tests/Localisation/LocalisableEnumAttributeTest.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 NUnit.Framework;
using osu.Framework.Extensions;
using osu.Framework.Localisation;
namespace osu.Framework.Tests.Localisation
{
[TestFixture]
... | mit | C# | |
f1c7191cf96e3221d041c4c470679a5ac10a5088 | Create SaveFileInExcel97-2003format.cs | asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecel... | Examples/CSharp/Files/Handling/SaveFileInExcel97-2003format.cs | Examples/CSharp/Files/Handling/SaveFileInExcel97-2003format.cs | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Files.Handling
{
public class SavingFiles
{
public static void Main(string[] args)
{
//ExStart:1
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.GetData... | mit | C# | |
a94fe786fb932019cfc1c5478b48de3b47d3429c | add test about yaml comments. | aaubry/YamlDotNet,aaubry/YamlDotNet,aaubry/YamlDotNet | YamlDotNet.Test/Serialization/YamlCommentTests.cs | YamlDotNet.Test/Serialization/YamlCommentTests.cs | using Xunit;
using Xunit.Abstractions;
using YamlDotNet.Serialization;
namespace YamlDotNet.Test.Serialization
{
public class YamlCommentTests
{
protected readonly ITestOutputHelper Output;
public YamlCommentTests(ITestOutputHelper helper)
{
Output = helper;
... | mit | C# | |
bb3703808dcf7671bc58546a1d75fc52939a0709 | Create AssemblyInfo.cs | APEdevelopment/APE,APEdevelopment/APE | APE.Bridge/APE.Bridge/Properties/AssemblyInfo.cs | APE.Bridge/APE.Bridge/Properties/AssemblyInfo.cs | apache-2.0 | C# | ||
ac0d6c83728687624fa9b88529318138170cf42d | Create AssemblyInfo.cs | MazyModz/CSharp-WebSocket-Server,MazyModz/CSharp-WebSocket-Server | Example/Server/Server/Properties/AssemblyInfo.cs | Example/Server/Server/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("Ser... | mit | C# | |
b282621cf144cda6b3ac1bbe9f11c46b698bd5bc | Create pingt.cs | imba-tjd/CSharp-Code-Repository | 单个文件的程序/pingt.cs | 单个文件的程序/pingt.cs | using System;
using System.Diagnostics;
// 对tcping的简单封装,自动使用443
class PingT
{
static void Main(string[] args)
{
if (args.Length != 1)
{
Console.WriteLine("参数不正确");
Environment.Exit(1);
}
// 无论输入主机还是网址都能运行,后者会自动提取出主机,;但为了使用Uri,又要当输入前者时加上协议
string ... | mit | C# | |
9dca0aa5956b15337dd16bb624dfc06dcdf32ccb | Create Default.aspx.cs | lerwine/JSCookbook,lerwine/JSCookbook,lerwine/JSCookbook | JSCookbook/Default.aspx.cs | JSCookbook/Default.aspx.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace JSCookbook
{
public partial class Default_Page : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
| apache-2.0 | C# | |
36bfe637c0786353981d5f34acee6fff1eb89761 | Create PhotosAreaRegistration.cs | fatmagazaile/Projet | PhotosAreaRegistration.cs | PhotosAreaRegistration.cs | using System.Web.Mvc;
namespace MvcMeublatexApp.Areas.Photos
{
public class PhotosAreaRegistration : AreaRegistration
{
public override string AreaName
{
get
{
return "Photos";
}
}
public override void RegisterArea(AreaRegistr... | apache-2.0 | C# | |
1fc100aaabcdb11f145a11d6115e865a007541c3 | Create re.cs | sainand/test | re.cs | re.cs | asasd
| unlicense | C# | |
4f4c1481cb8a6f32e89fa0a9925c0aaf42e2f654 | Add SNOMED folder | HIISORG/CORE | SNOMED/org.hiis.snomed.cs | SNOMED/org.hiis.snomed.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace org.hiis {
class SNOMED {
}
}
| bsd-3-clause | C# | |
4d3ff6e5d63c98e7e8b687772735b9e4a86c8fe6 | Create temp.cs | StupidChris/LMC-Emulator,StupidChris/LMC-Emulator | Virtual-Machine/CSharp/temp.cs | Virtual-Machine/CSharp/temp.cs | mit | C# | ||
a63f3a8eeeabf1e96791afe4dc34743eb8667d0a | Add ModelState.TryAddModelError | tempusdigital/Tempus.Utils | Tempus.Utils.AspNetCore/ModelStateExtensions.cs | Tempus.Utils.AspNetCore/ModelStateExtensions.cs | using FluentValidation;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using System;
using System.Data.SqlClient;
namespace Tempus.Utils.AspNetCore
{
public static class ModelStateExtensions
{
public static bool TryAddModelError(this ModelStateDictionary source, Exception exception)
{
... | mit | C# | |
403dab39a2e3944ebebfc36d7719275951b7e821 | Add build.cake | CatenaLogic/JiraCli | build.cake | build.cake | //=======================================================
// DEFINE PARAMETERS
//=======================================================
// Define the required parameters
var Parameters = new Dictionary<string, object>();
Parameters["SolutionName"] = "JiraCli";
Parameters["Company"] = "CatenaLogic";
Parameters["Reposi... | mit | C# | |
1282a6352a65439e541f559f794685a21cee2d90 | add unit test to cover bitwise offsetting | SixLabors/Fonts | tests/SixLabors.Fonts.Tests/Issues/Issues_104.cs | tests/SixLabors.Fonts.Tests/Issues/Issues_104.cs | using SixLabors.Fonts.Exceptions;
using SixLabors.Fonts.Tables.General.CMap;
using Xunit;
using static SixLabors.Fonts.Tables.General.CMap.Format4SubTable;
namespace SixLabors.Fonts.Tests.Issues
{
public class Issues_104
{
[Fact]
public void Format4SubTableWithSegmentsHasOffByOneWhenOverflowing... | apache-2.0 | C# | |
54b66d7cf4fb214bdef3341e0d0645f19dd1f894 | Add files via upload | abhinavveenu/Algorithms | trie.cs | trie.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pract
{
class trie
{
trie[] children { get; set; }
bool isLeaf;
public trie()
{
children = new trie[26];
}
... | apache-2.0 | C# | |
07126f9bfb6cb1ab865a09aa4c2a4c41bef57f81 | Fix copyright in assemblyinfo | xamarin/XamarinComponents,topgenorth/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,topgenorth/XamarinComponents,bholmes/XamarinComponents,xamarin/XamarinComponents,bholmes/XamarinComponents,xamarin/XamarinComponents,topgenorth/XamarinComponents,bholmes/XamarinComponents,bholmes/XamarinComponents... | Android/Glide/source/Xamarin.Android.Glide/Properties/AssemblyInfo.cs | Android/Glide/source/Xamarin.Android.Glide/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using Android.App;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Xamarin.Android.Glide")]
[assembly: AssemblyDescription("")]
[assembly: Assem... | using System.Reflection;
using System.Runtime.CompilerServices;
using Android.App;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Xamarin.Android.Glide")]
[assembly: AssemblyDescription("")]
[assembly: Assem... | mit | C# |
2e07c83cfbbc0e762a6c875ee321be24d1a7bf2d | Mark Height Components with region transgression | sts-CAD-Software/PCB-Investigator-Scripts | MarkHeightRegionTransgression.cs | MarkHeightRegionTransgression.cs | //-----------------------------------------------------------------------------------
// PCB-Investigator Automation Script
// Created on 16.06.2016
// Autor Fabio.Gruber
//
// Mark all components in max height regions of drc_comp layer.
// This checks each cmp over the surfaces on relevant layer with drc_max_he... | bsd-3-clause | C# | |
d395b628382f847278ea574fde8d4e1dba34d74d | Add IDisposable wrapper on GCHandle | DrabWeb/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,Tom94/osu-framework,ppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,DrabWeb/osu-framewo... | osu.Framework/Allocation/ObjectHandle.cs | osu.Framework/Allocation/ObjectHandle.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Runtime.InteropServices;
namespace osu.Framework.Allocation
{
/// <summary>
/// Wrapper on <see cref="GCHandle" /> that su... | mit | C# | |
9afa34fc33727069ef6f82b1568acd041accc8a5 | Replace surfacs by pads | sts-CAD-Software/PCB-Investigator-Scripts | ReplaceSurfacesBySpecialPads.cs | ReplaceSurfacesBySpecialPads.cs | //-----------------------------------------------------------------------------------
// PCB-Investigator Automation Script
// Created on 25.04.2016
// Autor support@easylogix.de
// www.pcb-investigator.com
// SDK online reference http://www.pcb-investigator.com/sites/default/files/documents/InterfaceDocumentation... | bsd-3-clause | C# | |
159f31c4fbca15b92fbecf0b0b9e4ef227e44864 | Create diamond.cs | ashoktandan007/csharp,wchild30/asterisk | diamond.cs | diamond.cs | using System;
class prog
{
public static void Main()
{
for (int i = 0; i < 5; i++)
{
for (int j = 5; j > i; j--)
{
Console.Write(" ");
}
for (int k = 0; k < i; k++)
{
Console.Write("*");
}
... | apache-2.0 | C# | |
d02efa8d40844592bf8e84d88e8c91bf713ec9c7 | Create MonsterGirl.cs | TelerikAcademy2015/TelerikDefence | TowerDefense/Main/MonsterGirl.cs | TowerDefense/Main/MonsterGirl.cs | //Girl Monster - fast monster with low health.
namespace TowerDefense.Main
{
using System;
using System.Linq;
using TowerDefense.Interfaces;
using System.Windows.Media;
using TowerDefense.Utils;
class MonsterGirl : Monster//, IMonster, IGameObject, IMovable, ITarget - Commented because of team... | mit | C# | |
9eaa6cf8ae0537a9c702e506601c44f19fa0d584 | Add new CoinView class for query coins | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Models/CoinsView.cs | WalletWasabi/Models/CoinsView.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using NBitcoin;
using WalletWasabi.Helpers;
using WalletWasabi.Models;
namespace WalletWasabi.Gui.Models
{
public class CoinsView : IEnumerable<SmartCoin>
{
private IEnumerable<SmartCoin> _coins;
public CoinsView(IEnume... | mit | C# | |
88cc3562558cf129c2ede05f632c4c145d4730ad | Create ArrayElemSumEqualsK.cs | shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms | geeksforgeeks/ArrayElemSumEqualsK.cs | geeksforgeeks/ArrayElemSumEqualsK.cs | //Given an array A and a key x, print a pair of elements which sum to x
public struct ans{
public int num1, num2;
}
public class Program
{
public static void Main(string[] args)
{
int []A = {23,12,3,544,56,567,435234,63,6,569,567,84,6724,62345};
int x = 1136; // method must return 569 and 5... | mit | C# | |
86f28510b3f098dd114933be1a8e40d402948e94 | Set to version 2.5.0.0 | yonglehou/Thinktecture.IdentityModel.45,IdentityModel/Thinktecture.IdentityModel.45,shashwatchandra/Thinktecture.IdentityModel.45,jbn566/Thinktecture.IdentityModel.45,darraghoriordan/Thinktecture.IdentityModel.45,rmorris8812/Thinktecture.IdentityModel.45,nguyenbanguyen/Thinktecture.IdentityModel.45 | IdentityModel/Thinktecture.IdentityModel/Properties/AssemblyInfo.cs | IdentityModel/Thinktecture.IdentityModel/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Thinktecture.IdentityModel"... | using System;
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Thinktecture.IdentityModel"... | bsd-3-clause | C# |
6cee5819f7940d1f71ff91103160b26fc61f7fc4 | fix RIDER-47386 (right now we don't have settings to configure it) | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | resharper/resharper-unity/src/HlslSupport/HlslCodeStyleDefaultSettings.cs | resharper/resharper-unity/src/HlslSupport/HlslCodeStyleDefaultSettings.cs | using JetBrains.Application.Settings;
using JetBrains.Application.Settings.Implementation;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Feature.Services.Cpp.CodeStyle;
using JetBrains.ReSharper.Plugins.Unity.Settings;
using JetBrains.Util;
namespace JetBrains.ReSharper.Plugins.Unity.HlslSupport
{
[Solut... | apache-2.0 | C# | |
1f7c192344182779f0c02c87b5b3c3a308add58e | Add QueryParser skeleton class | TheBerkin/Rant | Rant/Core/Compiler/Parsing/QueryParser.cs | Rant/Core/Compiler/Parsing/QueryParser.cs | using System;
using System.Collections.Generic;
using Rant.Core.Compiler.Syntax;
namespace Rant.Core.Compiler.Parsing
{
internal class QueryParser : Parser
{
public override IEnumerator<Parser> Parse(RantCompiler compiler, CompileContext context, TokenReader reader, Action<RantAction> actionCallback)
{
thro... | mit | C# | |
2df10333ee07b5a1a1cbfe9e78e59638d9ceebc6 | Add LodViewProvider class | inohiro/LodViewProvider | LodViewProvider/LodViewProvider/LodViewProvider.cs | LodViewProvider/LodViewProvider/LodViewProvider.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LodViewProvider {
class LodViewProvider : QueryProvider {
public override string GetQueryText( System.Linq.Expressions.Expression expression ) {
return string.Empty;
}
public override object Execute( System.Linq... | mit | C# | |
2152bfb12817f5b4c29554a089b350f73d064bf8 | Implement unit tests for the StringPattern class | openchain/openchain | test/OpenChain.Ledger.Tests/StringPatternTests.cs | test/OpenChain.Ledger.Tests/StringPatternTests.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# | |
67a9ceff571335f993f29249b050302c97c9c4b4 | Create answer.cs | neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu... | POH6plus/answer.cs | POH6plus/answer.cs | using System;
using System.Linq;
public class Hello
{
public static void Main()
{
var n = int.Parse(Console.ReadLine());
var w = new string[n];
for (var i = 0; i < n; i++)
w[i] = Console.ReadLine();
Array.Sort(w);
string s = "", t = "", c = "";
for (va... | mit | C# | |
2330c1607a619610f3884ddb9d7c896189b3c350 | Create TestingUtility.cs | billsheh/thread-affiliated-method-test | TestingUtility.cs | TestingUtility.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Threading;
public static class TestingUtility
{
public static void RunThreadAffiniatedAction(Func<Task> taskFu... | mit | C# | |
cdc2d27a8a96c83475eec96913e88bde04d3037c | Add C# 7.0 Numeric Literal example | devlights/try-csharp | TryCSharp.Samples/CSharp7/NumericLiteralSamples01.cs | TryCSharp.Samples/CSharp7/NumericLiteralSamples01.cs | using TryCSharp.Common;
namespace TryCSharp.Samples.CSharp7
{
/// <summary>
/// C# 7.0 の新機能についてのサンプルです。
/// </summary>
/// <remarks>
/// Numeric Literal について
/// </remarks>
[Sample]
public class NumericLiteralSamples01 : IExecutable
{
public void Execute()
{
... | mit | C# | |
2dd6e044336f81b44ac23d2911486927dfd1592b | Solve Average 2 in c# | deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr... | solutions/uri/1006/1006.cs | solutions/uri/1006/1006.cs | using System;
using System.Collections.Generic;
class Solution {
static void Main() {
double a, b, c;
string val;
val = Console.ReadLine();
a = Convert.ToDouble(val);
val = Console.ReadLine();
b = Convert.ToDouble(val);
val = Console.ReadLine();
c = ... | mit | C# | |
afba7a4898427d8eaf00aadd990d7d7e6c461c3f | Add PinBox.cs | imazen/imageflow-dotnet | src/Imageflow/Bindings/PinBox.cs | src/Imageflow/Bindings/PinBox.cs | using System;
using System.Collections.Generic;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
using System.Text;
namespace Imageflow.Net.Bindings
{
internal class PinBox : CriticalFinalizerObject, IDisposable
{
private List<GCHandle> _pinned;
internal void Ad... | agpl-3.0 | C# | |
7876c6c4a48cd66a32fe7f52c6eae3edec176b83 | Create ItemId.cs | Pharap/SpengyUtils | Classes/ItemId.cs | Classes/ItemId.cs | // For getting a readable name from an IMyInventoryItem
// Use like:
// var item = entity.GetInventory().GetItems()[0];
// var itemId = new ItemId(item.Content);
public struct ItemId
{
private const string prefix = "MyObjectBuilder_";
private readonly string type;
private readonly string su... | apache-2.0 | C# | |
1d8c4dcd5c67aca4c8a1ef7667eb6c19536ab61a | Create TitleEstimateController.cs | bigfont/webapi-cors | CORS/Controllers/TitleEstimateController.cs | CORS/Controllers/TitleEstimateController.cs | public class TitleEstimateController : ApiController
{
public IHttpActionResult GetTitleEstimate([FromUri] EstimateQuery query)
{
// All the values in "query" are null or zero
// Do some stuff with query if there were anything to do
}
}
public class EstimateQuery
{
// Various fi... | mit | C# | |
eac7fee9bb006577394faab782b4f4359d58603f | Add BaseAspectAttribute | ziyasal/Aspector | src/Aspector/Attributes/BaseAspectAttribute.cs | src/Aspector/Attributes/BaseAspectAttribute.cs | using System;
namespace Aspector.Attributes
{
public class BaseAspectAttribute : Attribute
{
}
} | mit | C# | |
1e2fb196c31d552371fe8641417bc1dd4088d913 | Add AssumedRoleCredential | carbon/Amazon | src/Amazon.Sts/AssumedRoleCredential.cs | src/Amazon.Sts/AssumedRoleCredential.cs | using System.Threading.Tasks;
using Amazon.Sts;
namespace Amazon.Security;
public sealed class AssumedRoleCredential : IAwsCredential
{
private readonly string _roleArn;
private readonly string _roleSession;
private Credentials? _credentials = null;
private readonly StsClient _stsClient;
publ... | mit | C# | |
a23503adcb510578ba4b053a768e6c3f5f7ca32e | Bump version to 1.2.1 | yonglehou/BTDB,karasek/BTDB,Bobris/BTDB,klesta490/BTDB | BTDB/Properties/AssemblyInfo.cs | BTDB/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("BTD... | 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("BTD... | mit | C# |
5e6ac0e10376e1f615f3edff4555f714d2f3d3cd | Add Attribution Model | 3nGercog/InstaSharp,danielmundim/InstaSharp,theShiva/InstaSharp,theShiva/InstaSharp,crashdavis23/InstaSharp,danielmundim/InstaSharp,crashdavis23/InstaSharp,3nGercog/InstaSharp,InstaSharp/InstaSharp | src/InstaSharp/Models/Attribution.cs | src/InstaSharp/Models/Attribution.cs | using InstaSharp.Infrastructure;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace InstaSharp.Models
{
public class Attribution
{
/// <summary>
/// Gets or sets the website.
/// </summary>
/// <value>
/// The website.
/// </value>
... | apache-2.0 | C# | |
d843d2566250490ec4c1ca2354860c2a722e63fc | Add Category.cs | Ackara/Daterpillar | src/Tests/Tests.Daterpillar/Category.cs | src/Tests/Tests.Daterpillar/Category.cs | namespace Tests.Daterpillar
{
public class Category
{
public const string Integration = "Integration";
}
} | mit | C# | |
8e357e9dc2524813fc0e3098372c4cd2aae3102f | Add work/search object | windowsphonehacker/SparklrWP | SparklrLib/Objects/Responses/Work/Search.cs | SparklrLib/Objects/Responses/Work/Search.cs | using System.Collections.Generic;
namespace SparklrLib.Objects.Responses.Work
{
public class SearchUser
{
public string username { get; set; }
public int id { get; set; }
}
public class SearchPost
{
public int from { get; set; }
public int id { get; set; }
... | mit | C# | |
bce388ffb6e313f8bf29b4f15a217ba6ebb63684 | Add PatchRequest.cs | BYVoid/distribox | Distribox/Distribox.Network/Message/PatchRequest.cs | Distribox/Distribox.Network/Message/PatchRequest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Distribox.CommonLib;
using Distribox.FileSystem;
namespace Distribox.Network
{
class PatchRequest : ProtocolMessage
{
public List<AtomicPatch> Request { get; set; }
public Patch... | mit | C# | |
2a2bb7b036af4c8619f6c09858698e51fd999192 | Create ScaleCamera.cs | UnityCommunity/UnityLibrary | Scripts/2D/Camera/ScaleCamera.cs | Scripts/2D/Camera/ScaleCamera.cs | using UnityEngine;
// pixel perfect camera helpers, from old unity 2D tutorial videos
[ExecuteInEditMode]
public class ScaleCamera : MonoBehaviour
{
public int targetWidth = 640;
public float pixelsToUnits = 100;
void Start()
{
int height = Mathf.RoundToInt(targetWidth / (float)Screen.width * Screen.he... | mit | C# | |
c821ff2fb1a0c483a1cfbb0498c2badc92145f29 | Create CameraSwitcher.cs | UnityCommunity/UnityLibrary | Scripts/Camera/CameraSwitcher.cs | Scripts/Camera/CameraSwitcher.cs | // Camera switcher, https://forum.unity3d.com/threads/how-can-i-switch-between-multiple-cameras-using-one-key-click.472009/
// usage: Assign cameras into the array, press C to switch into next camera
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace UnityLibrary
{
public cla... | mit | C# | |
097e10e688ffb1f56aa7d761524ee15d44f0e844 | Add WinForms C# solution class | jketo/arcusysdevday2015,jketo/arcusysdevday2015,jketo/arcusysdevday2015,jketo/arcusysdevday2015,jketo/arcusysdevday2015,jketo/arcusysdevday2015,jketo/arcusysdevday2015,jketo/arcusysdevday2015,jketo/arcusysdevday2015,jketo/arcusysdevday2015 | backrow_baddies/csharp/Form1.cs | backrow_baddies/csharp/Form1.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form... | mit | C# | |
a433545cbae0471ee6b58618f79f7083a2229ca8 | Create DateTimeUtils.cs | ST-Software/Utils | src/DateTimeUtils.cs | src/DateTimeUtils.cs | using System;
namespace FinaDb.Common.Utils
{
public class DateTimeInterval
{
public DateTime? From { get; set; }
public DateTime? To { get; set; }
}
public static class DateTimeUtils
{
/// <summary>
/// Get the intersection between testInterval and allowedInterval.... | mit | C# | |
4e99b6778b8ee185e53263c366d1136f60728cb2 | Add a dynamic data loading sample | migueldeicaza/MonoTouch.Dialog,newky2k/MonoTouch.Dialog,benoitjadinon/MonoTouch.Dialog,hisystems/MonoTouch.Dialog,jstedfast/MonoTouch.Dialog,Milan1992/MonoTouch.Dialog,danmiser/MonoTouch.Dialog,ClusterReplyBUS/MonoTouch.Dialog | Sample/DemoDynamic.cs | Sample/DemoDynamic.cs | using System;
using System.Net;
using System.Linq;
using System.Xml;
using System.Xml.Linq;
using System.Xml.XPath;
using MonoTouch.UIKit;
using MonoTouch.Dialog;
namespace Sample
{
public partial class AppDelegate
{
DialogViewController dynamic;
AccountInfo account;
class AccountInfo {
[Section ("Twitt... | mit | C# | |
f2715249c5b7c06c5097d264dd3a3ec9ea49fe48 | Add function proxy delegates. | SaxxonPike/NextLevelSeven | NextLevelSeven/Core/ProxyDelegates.cs | NextLevelSeven/Core/ProxyDelegates.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NextLevelSeven.Core
{
/// <summary>
/// Represents a proxy that gets a property using an index.
/// </summary>
/// <typeparam name="TValue">Type of value.</typeparam>
/... | isc | C# | |
a3856c92fe8445e6fd54686b2b3e94567ea9fd85 | Add C# | alihesari/Happy-New-Year,alihesari/Happy-New-Year,alihesari/Happy-New-Year,alihesari/Happy-New-Year,alihesari/Happy-New-Year,alihesari/Happy-New-Year,alihesari/Happy-New-Year,alihesari/Happy-New-Year,alihesari/Happy-New-Year,alihesari/Happy-New-Year,alihesari/Happy-New-Year,alihesari/Happy-New-Year,alihesari/Happy-New-... | happy-new-year.cs | happy-new-year.cs | //Happy New Year in C#
class HappyNewYear
{
static void Main()
{
System.Console.WriteLine("Happy New Year");
}
} | mit | C# | |
88fb7af604eff9e701d1dfe08218ccea796d96a1 | Fix in CatalogStrategy | repometric/linterhub-cli,repometric/linterhub-cli,binore/linterhub-cli,binore/linterhub-cli,repometric/linterhub-cli,binore/linterhub-cli | src/cli/Strategy/CatalogStrategy.cs | src/cli/Strategy/CatalogStrategy.cs | namespace Linterhub.Cli.Strategy
{
using System;
using System.IO;
using System.Linq;
using Linterhub.Cli.Runtime;
using Linterhub.Engine;
using Linterhub.Engine.Exceptions;
using Linterhub.Engine.Extensions;
using Linterhub.Engine.Linters;
public class CatalogStrategy : IStrategy
... | namespace Linterhub.Cli.Strategy
{
using System;
using System.IO;
using System.Linq;
using Linterhub.Cli.Runtime;
using Linterhub.Engine;
using Linterhub.Engine.Exceptions;
using Linterhub.Engine.Extensions;
using Linterhub.Engine.Linters;
public class CatalogStrategy : IStrategy
... | mit | C# |
960f22d3cda859a286c170245cbacebc4b3710b8 | Add new service class | nqdien/littleaspnetcorebook,nqdien/littleaspnetcorebook | Services/TodoItemService.cs | Services/TodoItemService.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using AspNetCoreTodo.Data;
using AspNetCoreTodo.Models;
namespace AspNetCoreTodo.Services
{
public class TodoItemService : ITodoItemService
{
private readonly ApplicationDbContext _context;
public TodoItemService(Applicati... | apache-2.0 | C# | |
a6290af0371812adea6a7434962c0b0eb741f9e2 | Add type check tests | WorkMaze/JUST.net | UnitTests/TypeCheckTests.cs | UnitTests/TypeCheckTests.cs | using NUnit.Framework;
namespace JUST.UnitTests
{
[TestFixture, Category("Type"), Category("TypeCheck")]
public class TypeCheckTests
{
[TestCase("0", true)]
[TestCase("1.23", true)]
[TestCase("true", false)]
[TestCase("\"abc\"", false)]
[TestCase("[ \"abc\", \"xyz\"... | mit | C# | |
9a3d13d038d108c2df4426a21bb50a43470303f4 | Convert to new Visual Studio project types | SimControl/SimControl.Reactive | SimControl.TestUtils.Tests/GlobalSuppressions.cs | SimControl.TestUtils.Tests/GlobalSuppressions.cs | // This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE... | mit | C# | |
740e16319c90a0409c8cadcd614825339ad45f7a | Write the ErrorLog into the exe's directory. | gregory-diaz/MatterControl,jlewin/MatterControl,unlimitedbacon/MatterControl,tellingmachine/MatterControl,ddpruitt/MatterControl,larsbrubaker/MatterControl,unlimitedbacon/MatterControl,CodeMangler/MatterControl,mmoening/MatterControl,jlewin/MatterControl,MatterHackers/MatterControl,rytz/MatterControl,ddpruitt/MatterCon... | Testing/TestingDispatch.cs | Testing/TestingDispatch.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Diagnostics;
namespace MatterHackers.MatterControl.Testing
{
public class TestingDispatch
{
string errorLogFileName = null;
public TestingDispatch()
{
string ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Diagnostics;
namespace MatterHackers.MatterControl.Testing
{
public class TestingDispatch
{
string errorLogFileName = null;
public TestingDispatch()
{
errorLo... | bsd-2-clause | C# |
e500e35a320446738ef53a188409117218987aaf | Revert the Quickstart file which is deleted by mistake | jsimonweb/csharp-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,jsimonweb/csharp-docs-samples,jsimonweb/csharp-docs-samples,jsimonweb/csharp-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples | jobs/api/QuickStart/QuickStart.cs | jobs/api/QuickStart/QuickStart.cs | /*
* Copyright (c) 2018 Google 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 agreed to ... | apache-2.0 | C# | |
96fe2a60f4be85dbeb5e287944ece6be6c1ab03c | Add Paeth tests. Fixes #10. | bojanrajkovic/pingu | src/Pingu.Tests/PaethTests.cs | src/Pingu.Tests/PaethTests.cs | using System.Collections.Generic;
using Xunit;
using Pingu.Filters;
namespace Pingu.Tests
{
public class PaethFilterTests
{
public static IEnumerable<object[]> PaethFilterTestVectors()
{
unchecked {
yield return new object[] {
new byte [] { 10, ... | mit | C# | |
59e0c2775320a6fdebbc7af4c09d45ee32852931 | Add the EthernetFrame class missing from last commit | eyecreate/tapcfg,zhanleewo/tapcfg,zhanleewo/tapcfg,eyecreate/tapcfg,eyecreate/tapcfg,eyecreate/tapcfg,eyecreate/tapcfg,juhovh/tapcfg,juhovh/tapcfg,zhanleewo/tapcfg,zhanleewo/tapcfg,zhanleewo/tapcfg,juhovh/tapcfg,juhovh/tapcfg,juhovh/tapcfg,juhovh/tapcfg | src/bindings/EthernetFrame.cs | src/bindings/EthernetFrame.cs |
namespace TAPCfg {
public class EthernetFrame {
private byte[] data;
public EthernetFrame(byte[] data) {
this.data = data;
}
public byte[] Data {
get {
return data;
}
}
}
}
| lgpl-2.1 | C# | |
f470eeeb942fbe75b00f570552c2834e2b9556cb | Test for SetEnvelopeName extension | pharring/ApplicationInsights-dotnet,pharring/ApplicationInsights-dotnet,pharring/ApplicationInsights-dotnet,Microsoft/ApplicationInsights-dotnet | BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/Extensibility/Implementation/TelemetryExtensionsTests.cs | BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/Extensibility/Implementation/TelemetryExtensionsTests.cs | namespace Microsoft.ApplicationInsights.Extensibility.Implementation
{
using Microsoft.ApplicationInsights.Channel;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
[TestClass... | mit | C# | |
45d6b2f7835962a24d688efca81eb1dfec1398fe | Add ReflectionParameter class stub | peachpiecompiler/peachpie,peachpiecompiler/peachpie,iolevel/peachpie-concept,iolevel/peachpie,peachpiecompiler/peachpie,iolevel/peachpie-concept,iolevel/peachpie,iolevel/peachpie-concept,iolevel/peachpie | src/Peachpie.Library/Reflection/ReflectionParameter.cs | src/Peachpie.Library/Reflection/ReflectionParameter.cs | using System;
using System.Collections.Generic;
using System.Text;
using Pchp.Core;
namespace Pchp.Library.Reflection
{
[PhpType("[name]"), PhpExtension(ReflectionUtils.ExtensionName)]
public class ReflectionParameter : Reflector
{
public string __toString()
{
throw new NotImpl... | apache-2.0 | C# | |
2591b65a52dec18f8e97339145866622bf617ee6 | Create LeBlenderGriddEditorParser.cs | dawoe/umbraco-nexu,dawoe/umbraco-nexu,dawoe/umbraco-nexu | Source/Our.Umbraco.Nexu.Parsers/GridEditorParsers/Core/LeBlenderGriddEditorParser.cs | Source/Our.Umbraco.Nexu.Parsers/GridEditorParsers/Core/LeBlenderGriddEditorParser.cs | using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Our.Umbraco.Nexu.Core.Interfaces;
using Our.Umbraco.Nexu.Core.Models;
using System.Collections.Generic;
using System.Linq;
using global::Umbraco.Core;
using global::Umbraco.Web;
using log4net;
using System;
namespace Our.Umbraco.Nexu.Parsers.GridEditorParse... | mit | C# | |
1259389dda076aa150d4a9b17ff77cb4739db453 | add book test integration | hirohito-protagonist/dotnet-core-rest | test/BooksLibrary/Tests/Integration/BooksTest.cs | test/BooksLibrary/Tests/Integration/BooksTest.cs | using System;
using System.Collections.Generic;
using System.Net;
using System.Threading.Tasks;
using System.Net.Http;
using Newtonsoft.Json;
using System.Text;
using Xunit;
using BooksLibrary.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Builder;
using Microsoft... | unlicense | C# | |
0867b61e3858fbee3265e74a42e1ff11e3140de4 | Use correct base class. | eatskolnikov/mobile,masterrr/mobile,peeedge/mobile,eatskolnikov/mobile,masterrr/mobile,eatskolnikov/mobile,peeedge/mobile,ZhangLeiCharles/mobile,ZhangLeiCharles/mobile | Joey/UI/Fragments/EditCurrentTimeEntryFragment.cs | Joey/UI/Fragments/EditCurrentTimeEntryFragment.cs | using System;
using System.ComponentModel;
using Android.OS;
using Toggl.Phoebe.Data;
using Toggl.Phoebe.Data.Models;
using XPlatUtils;
using Fragment = Android.Support.V4.App.Fragment;
namespace Toggl.Joey.UI.Fragments
{
public class EditCurrentTimeEntryFragment : BaseEditTimeEntryFragment
{
private ... | using System;
using System.ComponentModel;
using Android.OS;
using Toggl.Phoebe.Data;
using Toggl.Phoebe.Data.Models;
using XPlatUtils;
using Fragment = Android.Support.V4.App.Fragment;
namespace Toggl.Joey.UI.Fragments
{
public class EditCurrentTimeEntryFragment : EditTimeEntryFragment
{
private Acti... | bsd-3-clause | C# |
5f5fb3e47f69ac2923187a69ebf381fe0e3e1690 | Add code to allow azure functions to force async on | stackify/stackify-api-dotnet,stackify/stackify-api-dotnet,stackify/stackify-api-dotnet | Src/StackifyLib/Utils/AsyncTracer.cs | Src/StackifyLib/Utils/AsyncTracer.cs | #if NET45 || NET451
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text;
namespace StackifyLib.Utils
{
public class AsyncTracer
{
private static bool _AsyncTracerEnabled = false;
private static DateTime _LastEn... | apache-2.0 | C# | |
66aac15f4ccb660e93d80628448bfe6eedf63d84 | add methods for add/get/delete favorites | lighthorseinnovation/TableauAPI | TableauAPI/RESTRequests/Favorites.cs | TableauAPI/RESTRequests/Favorites.cs | using System.Xml;
using TableauAPI.FilesLogging;
using TableauAPI.RESTHelpers;
using TableauAPI.ServerData;
namespace TableauAPI.RESTRequests
{
public class Favorites : TableauServerSignedInRequestBase
{
private readonly TableauServerUrls _onlineUrls;
/// <summary>
/// Work with a use... | mit | C# | |
4cefb059ac7fc7a368cce22ed6ce346b921e29f4 | Add ChaosMonkey util | Spreads/Spreads | src/Spreads.Core/ChaosMonkey.cs | src/Spreads.Core/ChaosMonkey.cs | using System;
using System.Diagnostics;
using System.Threading;
namespace Spreads {
/// <summary>
/// When CHAOS_MONKEY conditional-compilation directive is set,
/// calling the methods will raise an error with a given probability
/// </summary>
public static class ChaosMonkey {
[ThreadSt... | mpl-2.0 | C# | |
8e3f39c497bbde9c9c44c0e531ff42beb12f51c6 | Add gambling stump | Daniele122898/SoraBot-v2,Daniele122898/SoraBot-v2 | SoraBot/SoraBot.Bot/Modules/GamblingModule.cs | SoraBot/SoraBot.Bot/Modules/GamblingModule.cs | using Discord.Commands;
using SoraBot.Common.Extensions.Modules;
namespace SoraBot.Bot.Modules
{
[Name("Gambling")]
[Summary("All commands around gambling and loosing all your Sora Coins ;)")]
public class GamblingModule : SoraSocketCommandModule
{
}
} | agpl-3.0 | C# | |
420dd23218b5cb43c1e141a997a7ef0c88ac2991 | Create ReferencePointShapeView.xaml.cs | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/Draw2D/Views/Shapes/ReferencePointShapeView.xaml.cs | src/Draw2D/Views/Shapes/ReferencePointShapeView.xaml.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
namespace Draw2D.Views.Shapes
{
public class ReferencePointShapeView : UserControl
{
public R... | mit | C# | |
a92e5ec40d5b7f9e2dbdd6c44e836fd53fe41b9b | Create ZeroGRotation.cs | scmcom/unitycode | ZeroGRotation.cs | ZeroGRotation.cs | //==========================================================
// defines 3D zero gravity physics per MOUSE input
// MOUSE INPUTS - CHANGE SPIN / ROTATIONAL MOMENTUM VECTOR
//
// mouse around viewscreen || VR look input
// looking around via mouse
// OR
// VR HMD - oculus, carboard, etc
//======================... | mit | C# | |
b43bd868be40e535d001af5cab8838b362e2da68 | Delete comment TEEEEEEEEEEST | maxcriser/CSharpLanguage,maxcriser/CSharpLanguage | PLanguage/GameConsole/Program.cs | PLanguage/GameConsole/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Timers;
using System.Collections;
namespace GameConsole
{
public class Program
{
static int max;
static int min;
static int timerValue = 10... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Timers;
using System.Collections;
// TEEEEEEEEEEEEEEEEEEEEEEEEST
namespace GameConsole
{
public class Program
{
static int max;
static int min;
... | apache-2.0 | C# |
4ea697b4503e7de6ca0e66d5b3dbf8896d3ebaa8 | Add operator None. | chtoucas/Narvalo.NET,chtoucas/Narvalo.NET | src/Narvalo.Fx/Linq/None.cs | src/Narvalo.Fx/Linq/None.cs | // Copyright (c) Narvalo.Org. All rights reserved. See LICENSE.txt in the project root for license information.
namespace Narvalo.Linq
{
using System;
using System.Collections.Generic;
public static partial class Qperators
{
// Returns true if no element in the sequence satisfies the predicat... | bsd-2-clause | C# | |
4d50d0237a8d4e863828bd98ee24b456d6586be5 | add enumeration performance unittest | deiruch/SATInterface | Tests/DarkerPerformanceTest.cs | Tests/DarkerPerformanceTest.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using SATInterface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Tests
{
[TestClass]
public class DarkerPerformanceTest
{
[TestMethod]
public void DarkerPerformance()
{
... | mit | C# | |
b2c5fbc7fc65a0ee4a137e50a35bf874badbe8c8 | Undo unnecessary change | MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSh... | src/Host/Client/Impl/Session/RSessionRequestSource.cs | src/Host/Client/Impl/Session/RSessionRequestSource.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.R.Host.Client.Session {
internal seale... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.R.Host.Client.Session {
internal seale... | mit | C# |
426ca537b664e82550e6f0b6e296126e94766bfa | Add class Runner and methods for collision | STzvetkov/Troll-runner | test/test/Runner.cs | test/test/Runner.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace test
{
public class Runner
{
public int X { get; set; }
public int Y { get; set; }
}
}
| mit | C# | |
1c7daef6a1ad8c4f9560703be00fe36099199ac9 | Add UserFile class to be used with files needed to be uploaded for an application | CS297Sp16/LCC_Co-op_Site,CS297Sp16/LCC_Co-op_Site,CS297Sp16/LCC_Co-op_Site | Coop_Listing_Site/Coop_Listing_Site/Models/UserFile.cs | Coop_Listing_Site/Coop_Listing_Site/Models/UserFile.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Coop_Listing_Site.Models
{
public class UserFile
{
public int UserFileID { get; set; }
public string ContentType { get; set; }
public string FileName { get; set; }
public byte[] Fi... | mit | C# | |
7c265cb73c074e0ccc2341b625101c2921abef7e | Add NonDisposableStream | nitacore/NetStitch,nitacore/NetStitch,nitacore/NetStitch | src/NetStitch.Server/NonDisposableStream.cs | src/NetStitch.Server/NonDisposableStream.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace NetStitch.Server
{
public class NonDisposableStream : Stream
{
readonly Stream stream;
public NonDisposableStream(Stream stream)
{
... | mit | C# | |
6036660732811e69d9edfa251270380e721888ad | add test for #156 | esskar/Serialize.Linq | src/Serialize.Linq.Tests/Issues/Issue156.cs | src/Serialize.Linq.Tests/Issues/Issue156.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Serialize.Linq.Factories;
using Serialize.Linq.Serializers;
namespace Serialize.Linq.Tests.Issues
{
// https://github.com/esskar/Serialize.Linq/issues/156
... | mit | C# | |
13ced5659f3f423355596bfb05f8ec01fe2f3be0 | add S_SHOW_CANDIDATE_LIST parser | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Core/Parsing/Messages/S_SHOW_CANDIDATE_LIST.cs | TCC.Core/Parsing/Messages/S_SHOW_CANDIDATE_LIST.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TCC.Data;
using TCC.TeraCommon.Game.Messages;
using TCC.TeraCommon.Game.Services;
namespace TCC.Parsing.Messages
{
public class S_SHOW_CANDIDATE_LIST : ParsedMessage
{
public List... | mit | C# | |
f32008607ec0c32c56dee94f1a16dff390fa19b5 | Create EvenFibonacciNumbers.cs | DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges | Even_Fibonacci_Numbers/EvenFibonacciNumbers.cs | Even_Fibonacci_Numbers/EvenFibonacciNumbers.cs | namespace EvenFibonacciNumbers
{
class MainClass
{
public static void Main(string[] args)
{
if (args.Length != 3)
{
Console.WriteLine("This program requires 2 starting integers, and the max terms to count!\n");
Environment.Exit(0);
}
int start1 = Convert.ToInt32(args[0]);
int start2 = Conv... | unlicense | C# | |
142b0834090e14322f7558d71d1648d48d67b6d2 | Create Program.cs | TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets | quickstart/csharp/sms/send-sms/Program.cs | quickstart/csharp/sms/send-sms/Program.cs | // Download the twilio-csharp library from twilio.com/docs/libraries/csharp
using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account;
using Twilio.Types;
namespace YourNewConsoleApp
{
class Example
{
static void Main(string[] args)
{
// Find your Account Sid and Auth Token at... | mit | C# | |
6ff6e846c1efb1e67869499b39f00c4ac221a051 | Add TemporaryUrl class forgotten from earlier commit (for #22) | HelloFax/hellosign-dotnet-sdk | HelloSign/Models/TemporaryUrl.cs | HelloSign/Models/TemporaryUrl.cs | namespace HelloSign
{
/// <summary>
/// Information about a temporary URL (a public URL with an expiration date).
/// </summary>
public class TemporaryUrl
{
/// <summary>
/// Unix timestamp when this URL will expire (may become a DateTime in future releases).
/// </summary>
... | mit | C# | |
e74d27f198c370cea2010dda2b643a46e429c792 | Add b_tree implementation in C# | ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovs... | data_structures/b_tree/C#/btree.cs | data_structures/b_tree/C#/btree.cs | using System;
// A BTree
class Btree
{
public BTreeNode root; // Pointer to root node
public int t; // Minimum degree
// Constructor (Initializes tree as empty)
Btree(int t)
{
this.root = null;
this.t = t;
}
// function to traverse the tree
public void traverse()
{
if (this.root != null)
this.root.traverse();
C... | cc0-1.0 | C# | |
fbafb2f81fc75e0b97479690e25859264bc9a64d | Add ApplicationConfiguration class stub | appharbor/appharbor-cli | src/AppHarbor/ApplicationConfiguration.cs | src/AppHarbor/ApplicationConfiguration.cs | namespace AppHarbor
{
public class ApplicationConfiguration
{
}
}
| mit | C# | |
82bb7f163c08d888eb953ac825b29c2f1c6bb5ad | Add forgotten file. | jeongroseok/magecrawl,AndrewBaker/magecrawl | Trunk/GameEngine/MapObjects/TreasureChest.cs | Trunk/GameEngine/MapObjects/TreasureChest.cs | using System;
using System.Collections.Generic;
using System.Xml;
using System.Xml.Serialization;
using Magecrawl.GameEngine.Interfaces;
using Magecrawl.GameEngine.SaveLoad;
using Magecrawl.Utilities;
using Magecrawl.GameEngine.Items;
namespace Magecrawl.GameEngine.MapObjects
{
internal sealed class Tr... | bsd-2-clause | C# | |
11e1a79e717218a73ca9ad25a3b929d1efa1fbb3 | Create CutTheSticks.cs | costincaraivan/hackerrank,costincaraivan/hackerrank | algorithms/implementation/C#/CutTheSticks.cs | algorithms/implementation/C#/CutTheSticks.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Solution {
int positiveMin(int[] array)
{
if (array == null || array.Length == 0)
{
return Int32.MinValue;
}
var min = Int32.MaxValue;
foreach(var element in array)
... | mit | C# | |
9b2f9be43fb38308702eafcaea4f37b2aec2472a | add variables/global | lvermeulen/BuildMaster.Net | src/BuildMaster.Net/Variables/Global/BuildMasterClient.cs | src/BuildMaster.Net/Variables/Global/BuildMasterClient.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using BuildMaster.Net.Common.Models;
using Flurl.Http;
// ReSharper disable CheckNamespace
namespace BuildMaster.Net
{
public partial class BuildMasterClient
{
public async Task<IEnumerable<Variable>> GetAllGlobalConfigurationVariables()... | mit | C# | |
cf418a8097fc00b3068ef7f81b494580ecf3e9e8 | Add error handling to default template | JimBobSquarePants/Umbraco-CMS,hfloyd/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,bjarnef/Umbraco-CMS,NikRimington/Umbraco-CMS,tcmorris/Umbraco-CMS,NikRimington/Umbraco-CMS,abjerner/Umbraco-CMS,tcmorris/Umbraco-CMS,bjarnef/Umbraco-CMS,tcmorris/Umbraco-CMS,marcemarc/Umbraco-CMS,hfloyd/Umbraco-CMS,dawoe/Umbraco-CMS,mattbrai... | src/Umbraco.Web.UI/Views/Partials/BlockList/Default.cshtml | src/Umbraco.Web.UI/Views/Partials/BlockList/Default.cshtml | @inherits UmbracoViewPage<BlockListModel>
@using Umbraco.Core.Models.Blocks
@{
if (Model?.Layout == null || !Model.Layout.Any()) { return; }
}
<div class="umb-block-list">
@foreach (var layout in Model.Layout)
{
if (layout?.Udi == null) { continue; }
var data = layout.Data;
... | @inherits UmbracoViewPage<BlockListModel>
@using Umbraco.Core.Models.Blocks
@{
if (Model?.Layout == null || !Model.Layout.Any()) { return; }
}
<div class="umb-block-list">
@foreach (var layout in Model.Layout)
{
if (layout?.Udi == null) { continue; }
var data = layout.Data;
... | mit | C# |
98bb734522d28712045702ba124a614341049ded | Add class; unfinished | whampson/cascara,whampson/bft-spec | Cascara/Src/CascaraObject.cs | Cascara/Src/CascaraObject.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# | |
d9e1e01df13bed68556bb7e5b62ad310c89778ea | Set the course directory as Content (for MSBuild) | riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy | src/DotvvmAcademy.CourseFormat/MarkdownStepInfo.cs | src/DotvvmAcademy.CourseFormat/MarkdownStepInfo.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace DotvvmAcademy.CourseFormat
{
public class MarkdownStepInfo
{
public string Path { get; }
public string Moniker { get; }
public string Name { get; }
public string CodeTaskPath { get; }
}
}
| apache-2.0 | C# | |
e5e7a0755d000dd95f21a820c895c2be1aafdd29 | Create Program.cs | Zedohsix/SharpFind | SharpFind/Program.cs | SharpFind/Program.cs | using System;
using System.Windows.Forms;
namespace SharpFind
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Applicatio... | mit | C# | |
4d7e1263fc28ae5f1a1c48fdd636f65fcad3c847 | Add CounterWarpper to use in separate thread | witoong623/TirkxDownloader,witoong623/TirkxDownloader | Framework/CounterWarpper.cs | Framework/CounterWarpper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace TirkxDownloader.Framework
{
public class CounterWarpper
{
private int counter;
public int Counter { get { return counter; } }
public void Increase()
{
... | mit | C# | |
5466af5017a5cf2de5aba7ea403627cb44763e68 | remove whitespace from end of package descriptions, which added new lines when the summary includes a paragraph. Do not merge. | xorware/android_build,ND-3500/platform_manifest,RR-msm7x30/platform_manifest,xorware/android_build,pranav01/platform_manifest,xorware/android_build,knone1/platform_manifest,hagar006/platform_manifest,fallouttester/platform_manifest,see4ri/lolili,Hybrid-Power/startsync,xorware/android_build,xorware/android_build | tools/droiddoc/templates/packages.cs | tools/droiddoc/templates/packages.cs | <?cs include:"doctype.cs" ?>
<?cs include:"macros.cs" ?>
<html>
<?cs include:"head_tag.cs" ?>
<body class="gc-documentation">
<?cs include:"header.cs" ?>
<div class="g-unit" id="doc-content">
<div id="jd-header">
<h1><?cs var:page.title ?></h1>
</div>
<div id="jd-content">
<div class="jd-descr">
<p><?cs call:tag_li... | <?cs include:"doctype.cs" ?>
<?cs include:"macros.cs" ?>
<html>
<?cs include:"head_tag.cs" ?>
<body class="gc-documentation">
<?cs include:"header.cs" ?>
<div class="g-unit" id="doc-content">
<div id="jd-header">
<h1><?cs var:page.title ?></h1>
</div>
<div id="jd-content">
<div class="jd-descr">
<p><?cs call:tag_li... | apache-2.0 | C# |
440ccaeff14bc0a4a6152a0b8098afae76a78251 | Add internal key factory | dnauck/Portable.Licensing,dnauck/Portable.Licensing,dreamrain21/Portable.Licensing,dreamrain21/Portable.Licensing | src/Portable.Licensing/Security/Cryptography/KeyFactory.cs | src/Portable.Licensing/Security/Cryptography/KeyFactory.cs | //
// Copyright © 2012 - 2013 Nauck IT KG http://www.nauck-it.de
//
// Author:
// Daniel Nauck <d.nauck(at)nauck-it.de>
//
// 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 wit... | mit | C# | |
669a212c46184a4c5ce8be393d32e415acdb0bc9 | Remove unused method. | duplicati/duplicati,sitofabi/duplicati,sitofabi/duplicati,sitofabi/duplicati,mnaiman/duplicati,duplicati/duplicati,mnaiman/duplicati,mnaiman/duplicati,mnaiman/duplicati,duplicati/duplicati,duplicati/duplicati,sitofabi/duplicati,duplicati/duplicati,mnaiman/duplicati,sitofabi/duplicati | Duplicati/Library/Backend/HubiC/Strings.cs | Duplicati/Library/Backend/HubiC/Strings.cs | // Copyright (C) 2015, The Duplicati Team
// http://www.duplicati.com, info@duplicati.com
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// L... | // Copyright (C) 2015, The Duplicati Team
// http://www.duplicati.com, info@duplicati.com
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// L... | lgpl-2.1 | C# |
570abf97000a3df2ac6a0a14471b1feefb1d6ba8 | Add new custom property class UScriptMapProperty for Transformers. | EliotVU/Unreal-Library | src/Core/Classes/Props/Custom/UScriptMapProperty.cs | src/Core/Classes/Props/Custom/UScriptMapProperty.cs | #if TRANSFORMERS
namespace UELib.Core
{
/// <summary>
/// ScriptMap Property
/// </summary>
[UnrealRegisterClass]
public class UScriptMapProperty : UMapProperty
{
}
}
#endif | mit | C# | |
146452fb9dd34bc26e0a10bec510cfabcb26f759 | Add Script ClickToMove | TheNoobCompany/LevelingQuestsTNB,F0rTh3H0rd3/LevelingQuestsTNB | Profiles/Quester/Scripts/ClickToMove.cs | Profiles/Quester/Scripts/ClickToMove.cs | if(!MovementManager.InMovement)
{
if (questObjective.Position.IsValid && questObjective.Position.DistanceTo(ObjectManager.Me.Position) > 5f)
{
Logging.Write("enter objectif 1");
MountTask.Mount();
System.Threading.Thread.Sleep(2000);
var listP = new List<Point>();
listP.Add(ObjectManager.Me.Position);
li... | mit | C# | |
4cc262dbe1f8a7e2a72990501f2a6bad34fc094b | Add ViewModelBase class | rmc00/gsf,rmc00/gsf,GridProtectionAlliance/gsf,GridProtectionAlliance/gsf,rmc00/gsf,GridProtectionAlliance/gsf,GridProtectionAlliance/gsf,rmc00/gsf,GridProtectionAlliance/gsf,GridProtectionAlliance/gsf,GridProtectionAlliance/gsf,GridProtectionAlliance/gsf,rmc00/gsf,rmc00/gsf,rmc00/gsf | Source/Tools/COMTRADEConverter/ViewModelBase.cs | Source/Tools/COMTRADEConverter/ViewModelBase.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace COMTRADEConverter
{
class ViewModelBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler ... | mit | C# | |
4fa2e52b8b843e4fb3258c37a76fa3287f29e114 | fix silly bug. Kudu scenario now working! | brendankowitz/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,shrishrirang/azure-webjobs-sdk,brendankowitz/azure-webjobs-sdk,oliver-feng/azure-webjobs-sdk,shrishrirang/azure-webjobs-sdk,oliver-feng/azure-webjobs-sdk,Azure/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,gibwar... | WebFrontEnd/ControllersWebApi/KuduController.cs | WebFrontEnd/ControllersWebApi/KuduController.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using DaasEndpoints;
using DataAccess;
using Orchestrator;
using RunnerInterfaces;
using WebFrontEnd.Controllers;
namespace WebFrontEnd.ControllersWebApi
{
public cla... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using DaasEndpoints;
using DataAccess;
using Orchestrator;
using RunnerInterfaces;
using WebFrontEnd.Controllers;
namespace WebFrontEnd.ControllersWebApi
{
public cla... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.