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 |
|---|---|---|---|---|---|---|---|---|
5f697740723a99e09ef81b18c0731c8615a6ca24 | Add manyVerticesSample | charlenni/Mapsui,pauldendulk/Mapsui,charlenni/Mapsui | Samples/Mapsui.Samples.Common/Maps/ManyVerticesSample.cs | Samples/Mapsui.Samples.Common/Maps/ManyVerticesSample.cs | using System.Collections.Generic;
using Mapsui.Geometries;
using Mapsui.Layers;
using Mapsui.Providers;
using Mapsui.Styles;
using Mapsui.UI;
using Mapsui.Utilities;
// ReSharper disable UnusedAutoPropertyAccessor.Local
namespace Mapsui.Samples.Common.Maps
{
public class ManyVerticesSample : ISample
{
... | mit | C# | |
cf9a7d1c2494b273e33141f314af027ea73139f7 | Create FileSystemWatch.cs | UnityCommunity/UnityLibrary | Scripts/Helpers/FileSystem/FileSystemWatch.cs | Scripts/Helpers/FileSystem/FileSystemWatch.cs | using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
// watches specified folder changes in the filesystem
// "Listens to the file system change notifications and raises events when a directory, or file in a directory, changes."
// references: http://stackoverflow.com/questio... | mit | C# | |
51a925efe135de034b387bd90ccfbdae26c29dff | Add AIWolf.Server.DataConverter to AIWolfServer. | AIWolfSharp/AIWolf_NET | AIWolfServer/DataConverter.cs | AIWolfServer/DataConverter.cs | //
// DataConverter.cs
//
// Copyright (c) 2016 Takashi OTSUKI
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
using System;
using System.Linq;
using System.Collect... | mit | C# | |
b568d6b627a3de5947e9c436c4aec0ef55cf57d7 | Fix possible infinite loop in ButtonToggleBase. | ryanwang/LeapMotionCoreAssets,Amarcolina/LeapMotionCoreAssets | Assets/LeapMotion/Widgets/Scripts/Button/ButtonToggleBase.cs | Assets/LeapMotion/Widgets/Scripts/Button/ButtonToggleBase.cs | using UnityEngine;
using System.Collections;
namespace LMWidgets
{
public abstract class ButtonToggleBase : ButtonBase, BinaryInteractionHandler<bool>, IDataBoundWidget<ButtonToggleBase, bool> {
protected DataBinderToggle m_dataBinder;
protected bool m_toggleState = true;
public abstract void ButtonTu... | using UnityEngine;
using System.Collections;
namespace LMWidgets
{
public abstract class ButtonToggleBase : ButtonBase, BinaryInteractionHandler<bool>, IDataBoundWidget<ButtonToggleBase, bool> {
protected DataBinderToggle m_dataBinder;
protected bool m_toggleState = true;
public abstract void ButtonTu... | apache-2.0 | C# |
557a566d6ab785d8813a1053fadf11c23b88b33d | Update ArkAccountTopList.cs | sharkdev-j/ark-net,kristjank/ark-net | ark-net/Model/Account/ArkAccountTopList.cs | ark-net/Model/Account/ArkAccountTopList.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ArkAccountTopList.cs" company="Ark">
// MIT License
// //
// // Copyright (c) 2017 Kristjan Košič
// //
// // Permission is hereby granted, free of charge, to an... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ArkAccountTopList.cs" company="Ark Labs">
// MIT License
// //
// // Copyright (c) 2017 Kristjan Košič
// //
// // Permission is hereby granted, free of charge, ... | mit | C# |
4df95c4e35010556e43b4fc57ade34cc2825a88b | fix version number | OpenRA/tao,mono/tao,mono/tao,OpenRA/tao | Framework/Projects/Tao.Sdl/AssemblyInfo.cs | Framework/Projects/Tao.Sdl/AssemblyInfo.cs | #region License
/*
MIT License
Copyright 2003-2005 Tao Framework Team
http://www.taoframework.com
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includin... | #region License
/*
MIT License
Copyright 2003-2005 Tao Framework Team
http://www.taoframework.com
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includin... | mit | C# |
be7f1f8dc16ffa52a7df4c231c82cd366e41839e | Create BotControlScript.cs | MesoamericaAppsHackatonPanama2013/SimulacionDesastres | BotControlScript.cs | BotControlScript.cs | using UnityEngine;
using System.Collections;
// Require these components when using this script
[RequireComponent(typeof (Animator))]
public class BotControlScript : MonoBehaviour
{
[System.NonSerialized]
public float lookWeight; // the amount to transition when using head look
public float animSpeed = 1... | mit | C# | |
b58084621e6757c2ccdb88fb0a42cdcab0faabf7 | Add unspecific IgnoreAttribute | rapidcore/rapidcore,rapidcore/rapidcore | src/core/main/IgnoreAttribute.cs | src/core/main/IgnoreAttribute.cs | using System;
namespace RapidCore
{
/// <summary>
/// Just a generic "ignore" something attribute
/// </summary>
[AttributeUsage(AttributeTargets.All)]
public class IgnoreAttribute : Attribute
{
}
} | mit | C# | |
d6981634e41926c801d00d4be426754e894b048e | implement ClickJacking Protection Module - This module checks to see if protection against click jacking attacks is disabled for any paths. If the appSettings section of web.config file contains an etry CMSXFrameOptionsExclude, that means that the protection is disabled for the paths specified in the result . https://d... | ChristopherJennings/KInspector,Kentico/KInspector,JosefDvorak/KInspector,ChristopherJennings/KInspector,JosefDvorak/KInspector,ChristopherJennings/KInspector,JosefDvorak/KInspector,ChristopherJennings/KInspector,Kentico/KInspector,Kentico/KInspector,Kentico/KInspector | KInspector.Modules/Modules/Security/ClickJackingModule.cs | KInspector.Modules/Modules/Security/ClickJackingModule.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Kentico.KInspector.Modules.Modules.Security
{
class ClickJackingModule
{
}
}
| mit | C# | |
95fd7c97c9d64fc611a09c55779dda596976a527 | Add in actual GitDescribeTest file | wrozmiarek/msbuildtasks,smallkid/msbuildtasks,arekbee/msbuildtasks,AArnott/msbuildtasks,jricke/msbuildtasks,loresoft/msbuildtasks,stimpy77/msbuildtasks | Source/MSBuild.Community.Tasks.Tests/Git/GitDescribeTest.cs | Source/MSBuild.Community.Tasks.Tests/Git/GitDescribeTest.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using MSBuild.Community.Tasks.Git;
using NUnit.Framework;
namespace MSBuild.Community.Tasks.Tests.Git
{
[TestFixture]
public class GitDescribeTest
{
[Test]
public void GitDescribeExecute()
{
... | bsd-2-clause | C# | |
4e7128d951fa844649cef35b791620e91432cde7 | Add GitHub build server | laedit/vika | src/NVika/BuildServers/GitHub.cs | src/NVika/BuildServers/GitHub.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.ComponentModel.Composition;
using System.Text;
using NVika.Abstractions;
using NVika.Parsers;
namespace NVika.BuildServers
{
internal seal... | apache-2.0 | C# | |
8453b4a79ac85fd338f23f1941005ac0ad788ae1 | Add AssemblyInfo for ColorPicker.csproj | AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,grokys/Perspex,AvaloniaUI/Avalonia,grokys/Perspex,SuperJMN/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia | src/Avalonia.Controls.ColorPicker/Properties/AssemblyInfo.cs | src/Avalonia.Controls.ColorPicker/Properties/AssemblyInfo.cs | using System.Runtime.CompilerServices;
using Avalonia.Metadata;
[assembly: InternalsVisibleTo("Avalonia.DesignerSupport, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c1bba1142285fe0419326fb25866ba62c47e6c2b5c1ab0c95b46413fad375471232cb81706932e1cef38781b9ebd39d5100401bacb651c6c5bbf59e571e8... | mit | C# | |
615bc2c75002eb6ad84d74fda89f24b7299698d8 | Add back-/forward compatibility tests | ZEISS-PiWeb/PiWeb-Api | src/Api.Rest.Dtos.Tests/Compatibility/CompatibilityTests.cs | src/Api.Rest.Dtos.Tests/Compatibility/CompatibilityTests.cs | #region copyright
/* * * * * * * * * * * * * * * * * * * * * * * * * */
/* Carl Zeiss Industrielle Messtechnik GmbH */
/* Softwaresystem PiWeb */
/* (c) Carl Zeiss 2022 */
/* * * * * * * * * * * * * * * * * * * * * * * * * */
#endregion
namespa... | bsd-3-clause | C# | |
4d30419249bd5a1802dcd7dd3025c3afde9cc9b7 | add NoProxyHttpClientHandler.cs | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/NoProxyHttpClientHandler.cs | src/WeihanLi.Common/NoProxyHttpClientHandler.cs | using System.Net.Http;
namespace WeihanLi.Common
{
public class NoProxyHttpClientHandler : HttpClientHandler
{
public NoProxyHttpClientHandler()
{
Proxy = null;
UseProxy = false;
}
}
}
| mit | C# | |
ec96963f45c4686f3ed8cc7ea52b786e0bf3cec2 | Create WarCardGame.cs | cwesnow/Net_Fiddle | 2017Aug/WarCardGame.cs | 2017Aug/WarCardGame.cs | using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
{
Console.WriteLine("A Game of War");
War.Start();
}
}
public class War {
public static void Start(){
Deck deck1 = new Deck();
Deck deck2 = new Deck();
deck1.Shuffle();
deck2.Shuffle();
int... | mit | C# | |
ee64d5356b0655f3512ed01962a99acd30662d1a | Add FileFinder to test suite to enable compilation | Zeugma440/atldotnet | ATL.test/FileFinder.cs | ATL.test/FileFinder.cs | using System;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace ATL.test
{
[TestClass]
public class FileFinder
{
[TestMethod]
public void FF_RecursiveExplore()
{
//String dirName = "E:/Music/Classique";
//String dirName = "E:/Mus... | mit | C# | |
8e6bb8ddb60f1a39358eb7b477d47b02a4e8f0f1 | Create Problem112.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem112.cs | Problems/Problem112.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler.Problems
{
class Problem112
{
private bool IsBouncy(int number)
{
if (number < 100) { return false; }
int a, b;
bool increasing = true;
bo... | mit | C# | |
dd69d142b3df64f166a9a064098eebac70628b0f | Create Problem357.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem357.cs | Problems/Problem357.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Numerics;
namespace ProjectEuler.Problems
{
class Problem357
{
private static Sieve s;
private static bool SumDivIsPrime(long num)
{
// divisor d of n, d+n/d is prime
long top = (long)... | mit | C# | |
4ed46c8dc0687fd7eac9fc6b2c66e78256a4a3ea | define IResourceService | json-api-dotnet/JsonApiDotNetCore,Research-Institute/json-api-dotnet-core,Research-Institute/json-api-dotnet-core | src/JsonApiDotNetCore/Services/IResourceService.cs | src/JsonApiDotNetCore/Services/IResourceService.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using JsonApiDotNetCore.Models;
namespace JsonApiDotNetCore.Services
{
public interface IResourceService<T> : IResourceService<T, int>
where T : class, IIdentifiable<int>
{ }
public interface IResourceService<T, TId>
where T... | mit | C# | |
3fac25db1c85bc3112b43332af3af10e411ad63d | Add DatabaseBuilder.cs | Ackara/Daterpillar | src/Tests.Daterpillar/Utilities/DatabaseBuilder.cs | src/Tests.Daterpillar/Utilities/DatabaseBuilder.cs | using Gigobyte.Daterpillar.Transformation;
using System.Data;
namespace Tests.Daterpillar.Utilities
{
public static class DatabaseBuilder
{
public static bool TryCreateDatabase(IDbConnection connection, Schema schema)
{
throw new System.NotImplementedException();
}
}
} | mit | C# | |
2d8ef6f541da7d0213e4f7416bdb0e539c259721 | Add interface for CDU access | c0nnex/SPAD.neXt,c0nnex/SPAD.neXt | SPAD.Interfaces/Gauges/ICDUScreen.cs | SPAD.Interfaces/Gauges/ICDUScreen.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SPAD.neXt.Interfaces.Gauges
{
/// <summary>
/// CDU cell color
/// </summary>
public enum CDU_COLOR
{
WHITE = 0,
CYAN = 1,
GREEN = 2,
MAGENT... | mit | C# | |
bfd908fc4752c7e5ec0e5c646d05d48487da2b26 | add Upgrade_20221006_DraftJS | signumsoftware/framework,signumsoftware/framework | Signum.Upgrade/Upgrades/Upgrade_20221006_DraftJS.cs | Signum.Upgrade/Upgrades/Upgrade_20221006_DraftJS.cs | using Signum.Utilities;
using System.Collections.Generic;
namespace Signum.Upgrade.Upgrades;
class Upgrade_20221006_DraftJS : CodeUpgradeBase
{
public override string Description => "Adds draftjs as a dependency for email templates";
public override void Execute(UpgradeContext uctx)
{
uctx.Foreac... | mit | C# | |
861d2651d1dbe458710db9ad7fc132e68f597bf8 | Update Path2DPathEffect.cs | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/Draw2D.ViewModels/Style/PathEffects/Path2DPathEffect.cs | src/Draw2D.ViewModels/Style/PathEffects/Path2DPathEffect.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 System.Collections.Generic;
using System.Runtime.Serialization;
using Spatial;
namespace Draw2D.ViewModels.Style.PathEffects
{
[DataContract(IsReference... | // 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 System.Collections.Generic;
using System.Runtime.Serialization;
namespace Draw2D.ViewModels.Style.PathEffects
{
[DataContract(IsReference = true)]
p... | mit | C# |
6a68c7e88b33a3591455c38e342e1f6114374450 | Add Controller for the xml sequential Operate | Andy-Sun/Unity3d-Sequential | scripts/Controller.cs | scripts/Controller.cs | /*
* Author: AndySun
* Date: 2015-07-20
* Description: 控制XML存储操作的顺序执行。
*/
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Controller : MonoBehaviour
{
/// <summary>
/// 所有操作的列表
/// </summary>
List<OperItem> list = new List<OperIte... | mit | C# | |
70eb2103e7765e0efd703e7a1ad3a350a83cd99d | Create SwitchObject.cs | xxmon/unity | SwitchObject.cs | SwitchObject.cs | using UnityEngine;
using System.Collections;
public class SwitchObject : MonoBehaviour
{
public bool on = false;
public GameObject objectOn;
public GameObject objectOff;
// Use this for initialization
void Start ()
{
updateObjects ();
}
// Update is called once per frame
void Update ()
{
}
void upd... | mit | C# | |
526dcf111f937e6337dd06ac8e48080183ad8f8b | add markdownValidatorContext data model (#2477) | superyyrrzz/docfx,superyyrrzz/docfx,dotnet/docfx,superyyrrzz/docfx,dotnet/docfx,dotnet/docfx | src/Microsoft.DocAsCode.Plugins/IMarkdownValidatorContext.cs | src/Microsoft.DocAsCode.Plugins/IMarkdownValidatorContext.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.Plugins
{
public interface IMarkdownValidatorContext
{
string GlobalRulesFilePath { get; }
string CustomRulesFil... | mit | C# | |
92428e230fd993188b84747755ef50333c26ddbe | Add texture cropping test case | ZLima12/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework | osu.Framework.Tests/Visual/Sprites/TestSceneTextureCropping.cs | osu.Framework.Tests/Visual/Sprites/TestSceneTextureCropping.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Primitives;
using osu.Framework.Graphi... | mit | C# | |
b68995af20a2da7f68f450524bdd5274f9249020 | Create Frag.cs | alchemz/ARL_Training | recursive/Frag.cs | recursive/Frag.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Frag : MonoBehaviour {
public Mesh mesh;
public Material material;
private int depth;
public int maxDepth;
public float childScale;
// Use this for initialization
void Start () {
gameObject.AddComponent<MeshFilter>... | mit | C# | |
17dbec8975a701d028425c0b9ac4cc8cc39702ac | Add missing test file from last commit | stephentoub/MidiSharp | MidiSharp.Tests/SequenceTests.cs | MidiSharp.Tests/SequenceTests.cs | //-----------------------------------------------------------------------
// <copyright file="SequenceTests.cs.cs" company="Stephen Toub">
// Copyright (c) Stephen Toub. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using Microsoft.VisualStudio... | mit | C# | |
e1eda89ea69234164ae055d1f129626d8fc970f7 | Implement OnlineContainer | ppy/osu,2yangk23/osu,smoogipoo/osu,johnneijzen/osu,smoogipoo/osu,2yangk23/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,peppy/osu,peppy/osu-new,EVAST9919/osu,EVAST9919/osu,smoogipooo/osu,johnneijzen/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu | osu.Game/Online/OnlineContainer.cs | osu.Game/Online/OnlineContainer.cs | using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Online.API;
using osu.Game.Online.Placeholders;
namespace osu.Game.Online
{
/// <summary>
/// A <see cref="Container"/> for dislaying online content who require a local user to be logged in.
... | mit | C# | |
cdb41ec0a370de4f3d9eccd254d3274235845031 | Put the Convert.ToDouble, which we need to make things generic in the Plot helpers... | gordonwatts/LINQtoROOT,gordonwatts/LINQtoROOT,gordonwatts/LINQtoROOT | LINQToTTree/LINQToTTreeLib/TypeHandlers/TypeHandlerConvert.cs | LINQToTTree/LINQToTTreeLib/TypeHandlers/TypeHandlerConvert.cs | using System;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.Linq.Expressions;
using LinqToTTreeInterfacesLib;
using LINQToTTreeLib.Expressions;
namespace LINQToTTreeLib.TypeHandlers
{
/// <summary>
/// The Convert.ToDouble is sometimes used in... | lgpl-2.1 | C# | |
35d68d7c0bd3ab1272ae22f65dd5264f2e7bf5b9 | Add a proof-of-concept test | EamonNerbonne/ExpressionToCode | ExpressionToCodeTest/TopLevelProgramTest.cs | ExpressionToCodeTest/TopLevelProgramTest.cs | using System;
using TopLevelProgramExample;
using Xunit;
namespace ExpressionToCodeTest
{
public class TopLevelProgramTest
{
[Fact]
public void CanRunTopLevelProgram()
{
var topLevelProgram = (Action<string[]>)Delegate.CreateDelegate(typeof(Action<string[]>), typ... | apache-2.0 | C# | |
cb629b83b98bdfe74dbb2ad9f620887578efb2c2 | Create IsItHalloween.cs | SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming | Kattis-Solutions/IsItHalloween.cs | Kattis-Solutions/IsItHalloween.cs | using System;
namespace Is_It_Halloween
{
class Program
{
static void Main(string[] args)
{
string s = Console.ReadLine();
if(s.Equals("OCT 31") || s.Equals("DEC 25"))
{
Console.WriteLine("yup");
}
else
{
... | mit | C# | |
1fccba152cb4c44ed631c137e08d924d49184176 | Create Palindrome-Checker.cs | DeanCabral/Code-Snippets | Palindrome-Checker.cs | Palindrome-Checker.cs | class Palindrome
{
static void Main(string[] args)
{
GetUserInput();
}
static void GetUserInput()
{
string input = "";
string output = "";
Console.Write("Enter a word: ");
input = Console.ReadLine();
o... | mit | C# | |
9feb6003a052367de5175f0b5831a48d2e7a9108 | Implement get solider query | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Queries/GetSoldier.cs | Battery-Commander.Web/Queries/GetSoldier.cs | using BatteryCommander.Web.Models;
using MediatR;
using Microsoft.EntityFrameworkCore;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace BatteryCommander.Web.Queries
{
public class GetSoldier : IRequest<Soldier>
{
public int Id { get; }
public GetSoldier(int id... | mit | C# | |
2bf968511290f0af037c3d607c7baad764928704 | Add comment for OSX specific FileSystem test | iamjasonp/corefx,krk/corefx,BrennanConroy/corefx,ravimeda/corefx,the-dwyer/corefx,twsouthwick/corefx,Chrisboh/corefx,cydhaselton/corefx,fgreinacher/corefx,ViktorHofer/corefx,krytarowski/corefx,krk/corefx,nchikanov/corefx,pallavit/corefx,tijoytom/corefx,lggomez/corefx,parjong/corefx,billwert/corefx,nbarbettini/corefx,Dn... | src/System.IO.FileSystem/tests/Directory/SetCurrentDirectory.cs | src/System.IO.FileSystem/tests/Directory/SetCurrentDirectory.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Diagnostics;
using System.Runtime.InteropServices;
using Xunit;
namespace System.IO.Tests
{
public... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Diagnostics;
using System.Runtime.InteropServices;
using Xunit;
namespace System.IO.Tests
{
public... | mit | C# |
6eb2be5818c4a36d5c62d04ebbe472145fe47ca8 | Create empty.cs | suppayami/unity2d-tmx | empty.cs | empty.cs | //empty
| mit | C# | |
374c3e3e8dafa28f7f81342782feeac8a675df20 | Add unit tests for the SqlServerStorageEngine class | openchain/openchain | test/Openchain.SqlServer.Tests/SqlServerStorageEngineTests.cs | test/Openchain.SqlServer.Tests/SqlServerStorageEngineTests.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# | |
703c8584c0d7f7fb3eaff6df74ebd1d5c5aa366c | Add Viewmodel base class | Zalodu/Schedutalk,Zalodu/Schedutalk | Schedutalk/Schedutalk/Schedutalk/ViewModel/VMBase.cs | Schedutalk/Schedutalk/Schedutalk/ViewModel/VMBase.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Schedutalk.ViewModel
{
abstract class VMBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
}
}
| mit | C# | |
b76d4f955bb55a8da29106a31471e3744006cfd8 | Change console URL for 1 code sample | teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snip... | lookups/lookup-get-basic-example-1/lookup-get-basic-example-1.cs | lookups/lookup-get-basic-example-1/lookup-get-basic-example-1.cs | // Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio.Lookups;
class Example
{
static void Main(string[] args)
{
// Find your Account Sid and Auth Token at twilio.com/console
const string accountSid = "{{ account_sid }}";
const string authToken = "{{ auth_... | // Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio.Lookups;
class Example
{
static void Main(string[] args)
{
// Find your Account Sid and Auth Token at twilio.com/user/account
const string accountSid = "{{ account_sid }}";
const string authToken = "{{ ... | mit | C# |
32fb8085fde0628907d8765d5f3c961dbf1c8043 | Create GroupIdToGroupConverter.cs | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/Draw2D/Converters/GroupIdToGroupConverter.cs | src/Draw2D/Converters/GroupIdToGroupConverter.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 System;
using System.Collections.Generic;
using System.Globalization;
using Avalonia;
using Avalonia.Data.Converters;
using Draw2D.ViewModels.Containers;
na... | mit | C# | |
17fc74cf8c620cf4745b03d5f4cea0592c194803 | Create SolutionAssemblyInfo.cs | csuffyy/Orc.FilterBuilder | src/SolutionAssemblyInfo.cs | src/SolutionAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| mit | C# | |
c621ae324a980c6b85b0373ffa685752282f5a18 | Add files via upload | AlexWan/OsEngine | project/OsEngine/bin/Debug/Custom/Indicators/Scripts/Volume.cs | project/OsEngine/bin/Debug/Custom/Indicators/Scripts/Volume.cs | using System.Collections.Generic;
using System.Drawing;
using OsEngine.Entity;
using OsEngine.Indicators;
namespace CustomIndicators.Scripts
{
public class Volume : Aindicator
{
private IndicatorDataSeries _series;
public override void OnStateChange(IndicatorState state)
... | apache-2.0 | C# | |
27562c6ff9a4751fcc5cabfdef41eb0fea21dcd0 | Create Problem32.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem32.cs | Problems/Problem32.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler.Problems
{
class Problem32
{
int[] numbers = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
private int NumberInArray(int start, int end)
{
int result = 0;
for (int i = ... | mit | C# | |
037de866fbf20cfca954912e2fe1a823c9affeb7 | Create Palindrome.cs | michaeljwebb/Algorithm-Practice | Other/Palindrome.cs | Other/Palindrome.cs | //Check to see if given string is a palindrome. Return true or false.
//Not completed
using System;
using System.Collections.Generic;
public class Test
{
public static void Main()
{
string testString = "racecar";
Palindrome(testString);
}
public static string Palindrome(string s){... | mit | C# | |
bd356e8c3ddfc99c4079226f9aba656c183a73b5 | fix HostIdFixer for v5 | eclaus/docs.particular.net,pashute/docs.particular.net,pedroreys/docs.particular.net,WojcikMike/docs.particular.net,yuxuac/docs.particular.net | Snippets/Snippets_5/HostIdentifier/HostIdFixer.cs | Snippets/Snippets_5/HostIdentifier/HostIdFixer.cs | using System;
using System.Collections.Generic;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
using NServiceBus;
using NServiceBus.Config;
using NServiceBus.Hosting;
using NServiceBus.Settings;
using NServiceBus.Unicast;
#pragma warning disable 618
#region HostIdFixer
public class Ho... | using System;
using System.Collections.Generic;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
using NServiceBus;
using NServiceBus.Hosting;
using NServiceBus.Settings;
using NServiceBus.Unicast;
#pragma warning disable 618
#region HostIdFixer
public class HostIdFixer : IWantToRunWhen... | apache-2.0 | C# |
98aa0bc6b0127530624e99f3530ad06afd0c20c6 | Create ComputationAssembly.cs | HelloKitty/DistributedComputationEngine | TerminalClient/Compilation/ComputationAssembly.cs | TerminalClient/Compilation/ComputationAssembly.cs | //
| mit | C# | |
30e07ddf6f4ffb80a608ed817b35b611ddcc8a77 | Disable threading on test | cetusfinance/qwack,cetusfinance/qwack,cetusfinance/qwack,cetusfinance/qwack | PnLAttributionFacts.cs | PnLAttributionFacts.cs | using System;
using System.Collections.Generic;
using System.Text;
using Qwack.Core.Instruments;
using Qwack.Core.Instruments.Funding;
using Qwack.Core.Models;
using Xunit;
using Qwack.Models.Tests;
using Qwack.Core.Curves;
using Qwack.Core.Basic;
using Qwack.Dates;
using System.Linq;
using Qwack.Models.Mod... | mit | C# | |
d6eac9c730cd88fc912c2b6943212e1b97d5bc85 | Create Problem125.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem125.cs | Problems/Problem125.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler.Problems
{
class Problem125
{
private bool Palindrome(int number)
{
bool is_palindrome = true;
string numberStr = number.ToString();
for (int i = 0; i... | mit | C# | |
93a7c123405e801bf2096518763185bb3c7c01d8 | Add order item delete support | peasy/Samples,peasy/Samples,peasy/Samples | Orders.com.Web.MVC/Views/OrderItems/Delete.cshtml | Orders.com.Web.MVC/Views/OrderItems/Delete.cshtml | @model Orders.com.Web.MVC.ViewModels.OrderItemViewModel
@{
ViewBag.Title = "Delete";
}
<h2>Delete Item</h2>
<h3>Are you sure you want to delete this?</h3>
<div class="form-horizontal">
<div class="form-group">
<label class="control-label col-md-1">Category</label>
<div class="col-md-10">
... | mit | C# | |
4315a433712aef6904d206db7a5f8df253264c39 | Add Server-Timing generation in | MiniProfiler/dotnet,MiniProfiler/dotnet | src/MiniProfiler.Shared/MiniProfiler.ServerTiming.cs | src/MiniProfiler.Shared/MiniProfiler.ServerTiming.cs | using System.Collections.Generic;
using System.Text;
namespace StackExchange.Profiling
{
public partial class MiniProfiler
{
/// <summary>
/// Gets the Server-Timing header for this profiler, summarizing where time was spent for the browser.
/// Example output: sql=0.009; "sql", redis=... | mit | C# | |
534300d3c22cf5cbf52cf048edd42151224a5f5b | Create IProtocol.cs | poostwoud/discovery | src/Library/Protocol/IProtocol.cs | src/Library/Protocol/IProtocol.cs | using System;
using System.Xml;
namespace Discovery.Library.Protocol
{
public interface IProtocol
{
void Append();
void Partial();
IProtocolResponse Read(Uri uri, string userName = "", string password = "");
void Remove();
void Replace();
}
}
| mit | C# | |
12fb472141a22e89129a448f7d73cd21b1e92d68 | Create Class1.cs | rus100/gomoku | Class1.cs | Class1.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace gomoku
{
class Class1
{
static public bool pc;
static public bool znak;
static public int time;
static public int kolvohod;
static public string imya;
static public bool tim... | unlicense | C# | |
9d87c69a71c110d7a1522933dcc70921edd6c0c6 | Add missing file | christophwille/wpaghapp | Source/WpaGhApp/Views/Main/OrgsListView.xaml.cs | Source/WpaGhApp/Views/Main/OrgsListView.xaml.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xam... | mit | C# | |
aaeaceea734caae77baca156126152b7e53eda90 | Create a class that acts as a configuration node for cache providers | nohros/must,nohros/must,nohros/must | src/base/common/configuration/common/provider/CacheProviderNode.cs | src/base/common/configuration/common/provider/CacheProviderNode.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.IO;
using System.Configuration;
using Nohros.Resources;
namespace Nohros.Configuration
{
/// <summary>
/// Contains configuration informations for cache providers.
/// ... | mit | C# | |
c09f59128ec199697980181b33c06e55a05910f8 | Create Problem206.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problem206.cs | Problem206.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
namespace ProjectEuler.Problems
{
class Problem206
{
// Find the unique positive integer whose square has the form 1_2_3_4_5_6_7_8_9_0,
// where each “_” is a single digit.
... | mit | C# | |
781bdce0eb3ce884817725f2b6d7082a80c32e64 | Add IServiceManifest | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNet.Mvc/IServiceManifest.cs | src/Microsoft.AspNet.Mvc/IServiceManifest.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 System.Collections.Generic;
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
{
#if ASPNET50 || ASPN... | apache-2.0 | C# | |
7644344d0f7d87a842a1721d5d49f008e4da1153 | add SnowflakeId unit tests | ouraspnet/cap,dotnetcore/CAP,dotnetcore/CAP,dotnetcore/CAP | test/DotNetCore.CAP.Test/SnowflakeIdTest.cs | test/DotNetCore.CAP.Test/SnowflakeIdTest.cs | using System.Linq;
using System.Threading.Tasks;
using DotNetCore.CAP.Infrastructure;
using Xunit;
namespace DotNetCore.CAP.Test
{
public class SnowflakeIdTest
{
[Fact]
public void NextIdTest()
{
var result = SnowflakeId.Default().NextId();
Assert.IsType<long>(... | mit | C# | |
f0317d0ef0ff732288cc4ceff378e6a81066bc28 | add a mixed memory/persisted storage context | ArsenShnurkov/BitSharp | BitSharp.Storage.Esent/MixedStorageContext.cs | BitSharp.Storage.Esent/MixedStorageContext.cs | using BitSharp.Common;
using BitSharp.Common.ExtensionMethods;
using BitSharp.Data;
using BitSharp.Storage.Esent;
using Microsoft.Isam.Esent.Collections.Generic;
using Microsoft.Isam.Esent.Interop;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using Sy... | unlicense | C# | |
eb20c4d0ef4da3bcc84140f820dc4b8fb8263f38 | add debug | PFC-acl-amg/GamaPFC,PFC-acl-amg/GamaPFC,PFC-acl-amg/GamaPFC | GamaPFC/Gama.Common/Debug/Debug.cs | GamaPFC/Gama.Common/Debug/Debug.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Gama.Common.Debug
{
public static class Debug
{
public static bool DEBUG = true;
private static System.Diagnostics.Stopwatch _Stopwatch;
public static void Sta... | mit | C# | |
bbd7d7b4284eb282eb35621c50845883fcea8181 | Add JObjectExtensions | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.Common/Utilities/JObjectExtensions.cs | source/Nuke.Common/Utilities/JObjectExtensions.cs | // Copyright 2021 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using JetBrains.Annotations;
using Newtonsoft.Json.Linq;
namespace Nuke.Common.Utilities
{
public static class JsonExtensions
{
[CanB... | mit | C# | |
b37e075fec5ecc9186e60df6f0384b73b91ffb4d | Add missing file. | SergeyTeplyakov/ErrorProne.NET | src/ErrorProne.NET/ErrorProne.NET.Test/OtherRules/ReadOnlyAttributeAnalyzerTests.cs | src/ErrorProne.NET/ErrorProne.NET.Test/OtherRules/ReadOnlyAttributeAnalyzerTests.cs | using System.Collections.Generic;
using ErrorProne.NET.Common;
using ErrorProne.NET.Rules.OtherRules;
using NUnit.Framework;
using RoslynNunitTestRunner;
namespace ErrorProne.NET.Test.OtherRules
{
[TestFixture]
public class ReadOnlyAttributeAnalyzerTests : CSharpAnalyzerTestFixture<ReadOnlyAttributeAnalyzer>
... | mit | C# | |
0f68bbd23c79a2c0c324db901a19f2653fd993ea | Add Isle of Man | tinohager/Nager.Date,tinohager/Nager.Date,tinohager/Nager.Date | Src/Nager.Date/PublicHolidays/IsleOfManProvider.cs | Src/Nager.Date/PublicHolidays/IsleOfManProvider.cs | using Nager.Date.Model;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Nager.Date.PublicHolidays
{
public class IsleOfManProvider : CatholicBaseProvider
{
public override IEnumerable<PublicHoliday> Get(int year)
{
//Isle of Man
//https://en... | mit | C# | |
551f5cd5417b1147edca0bf3417974c14b275c4f | add NamespaceList.cs | KennyCtrip/venus | Source/Venus/Utility/NamespaceList.cs | Source/Venus/Utility/NamespaceList.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Venus.Utility
{
internal class NamespaceList
{
private Dictionary<string, NamespaceList> index = new Dictionary<string, NamespaceList>();
private int level;
private NamespaceList(int level)... | apache-2.0 | C# | |
ee0b8df19e543e987281b689f6ec383e08f19b7b | Create OpeningMicrosoftExcel97-2003Files.cs | maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/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,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cell... | Examples/CSharp/Files/Handling/OpeningMicrosoftExcel97-2003Files.cs | Examples/CSharp/Files/Handling/OpeningMicrosoftExcel97-2003Files.cs | using System.IO;
using Aspose.Cells;
using System;
namespace Aspose.Cells.Examples.Files.Handling
{
public class OpeningMicrosoftExcel97-2003Files
{
public static void Main(string[] args)
{
//Exstart:1
// The path to the documents directory.
string dataDir = Asp... | mit | C# | |
5fa85f0eccd73f551d8c04c549c4523029490889 | Switch request tab over to use fluent api | codevlabs/Glimpse,dudzon/Glimpse,rho24/Glimpse,gabrielweyer/Glimpse,sorenhl/Glimpse,paynecrl97/Glimpse,flcdrg/Glimpse,flcdrg/Glimpse,sorenhl/Glimpse,SusanaL/Glimpse,gabrielweyer/Glimpse,elkingtonmcb/Glimpse,dudzon/Glimpse,Glimpse/Glimpse,sorenhl/Glimpse,flcdrg/Glimpse,paynecrl97/Glimpse,codevlabs/Glimpse,elkingtonmcb/G... | source/Glimpse.AspNet/SerializationConverter/RequestModelConverter.cs | source/Glimpse.AspNet/SerializationConverter/RequestModelConverter.cs | using System.Collections.Generic;
using Glimpse.AspNet.Extensions;
using Glimpse.AspNet.Model;
using Glimpse.Core.Extensibility;
using Glimpse.Core.Plugin.Assist;
namespace Glimpse.AspNet.SerializationConverter
{
public class RequestModelConverter : SerializationConverter<RequestModel>
{
public overri... | using System.Collections.Generic;
using Glimpse.AspNet.Extensions;
using Glimpse.AspNet.Model;
using Glimpse.Core.Extensibility;
namespace Glimpse.AspNet.SerializationConverter
{
public class RequestModelConverter : SerializationConverter<RequestModel>
{
public override object Convert(RequestModel req... | apache-2.0 | C# |
841b71ca13004634abd2d195e4f68ee80f243d34 | Document IHasLifetime | EVAST9919/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,Nabile-Rahmani/osu-framework,Tom94/osu-framework,paparony03/osu-framework,ppy/osu-framework,Nabile-Rahmani/osu-framework,ZLima12/osu-framework,default0/osu-framework,RedNesto/osu-framework,EVAST9919/osu-framework,... | osu.Framework/Lists/IHasLifetime.cs | osu.Framework/Lists/IHasLifetime.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Timing;
namespace osu.Framework.Lists
{
public interface IHasLifetime
{
/// <summary>
/// Updates the c... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Timing;
namespace osu.Framework.Lists
{
public interface IHasLifetime
{
double LifetimeStart { get; }
d... | mit | C# |
f0e719396b4113c29e7683fe8e1dd204b1e3c23b | Disable parallelization for OmniSharp.DotNet.Tests (increase stability) | DustinCampbell/omnisharp-roslyn,OmniSharp/omnisharp-roslyn,OmniSharp/omnisharp-roslyn,DustinCampbell/omnisharp-roslyn | tests/OmniSharp.DotNet.Tests/AssemblyInfo.cs | tests/OmniSharp.DotNet.Tests/AssemblyInfo.cs | [assembly: Xunit.CollectionBehavior(DisableTestParallelization = true)] | mit | C# | |
b9450b149b2c2b3d83209a1ed5fbfb39c02e738a | Test for Live | icarus-consulting/Yaapii.Atoms | tests/Yaapii.Atoms.Tests/Scalar/LiveTests.cs | tests/Yaapii.Atoms.Tests/Scalar/LiveTests.cs | using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace Yaapii.Atoms.Scalar.Tests
{
public sealed class LiveTests
{
[Fact]
public void ReloadsFunc()
{
var counts = 0;
var live = new Live<bool>(() =>
{
... | mit | C# | |
3b7469786e04f49480d337e55194a204aee6bfd0 | Add a more specific GenericListModel to reduce the amount of code | Xeeynamo/KingdomHearts | OpenKh.Tools.Common/Models/MyGenericListModel.cs | OpenKh.Tools.Common/Models/MyGenericListModel.cs | using System.Collections;
using System.Collections.Generic;
using Xe.Tools.Wpf.Models;
namespace OpenKh.Tools.Common.Models
{
public class MyGenericListModel<T> : GenericListModel<T>, IEnumerable<T>
{
public MyGenericListModel(IEnumerable<T> list) : base(list)
{
}
public IEnum... | mit | C# | |
e7d7c0f2b5f83387f7ea3d4473cee623670fd3ef | Add build config info for ArtifactDependencies | borismod/FluentTc,GibbOne/FluentTc,QualiSystems/FluentTc | FluentTc/Domain/SourceBuildType.cs | FluentTc/Domain/SourceBuildType.cs | namespace FluentTc.Domain
{
public class SourceBuildType
{
public override string ToString()
{
return "source-buildType";
}
public string Id { get; set; }
public string Name { get; set; }
public string ProjectName { get; set; }
public string ... | apache-2.0 | C# | |
a6db73a0d185fa9f221e54c785dcfc6e99544dc6 | Create Process.cs | webjug/vol | Process.cs | Process.cs | using System;
namespace Process
{
class MyClass()
{
}
}
| unlicense | C# | |
b13991c57ee41e04dd28a9e1fca98f00fd3d0d26 | Create scratch.cs | ariugwu/sharpbox,ariugwu/sharpbox,ariugwu/sharpbox,ariugwu/sharpbox | sharpbox.Io/scratch.cs | sharpbox.Io/scratch.cs | public class Client
{
/// <summary>
/// Used to read the contents of a file using the IFilters present on the machine.
/// </summary>
private TextReader _reader;
public Client() { }
#region CRUD
public Byte[] GetByFilename(string path)
{
return System.IO.File.ReadAllBytes(pa... | mit | C# | |
6ecc40a99d9cc3152a8be6a278f795b0cc10a009 | Create DebugHUD.cs | slek120/Unity-Framerate-HUD | DebugHUD.cs | DebugHUD.cs | using UnityEngine;
using System.Collections;
public class DebugHUD : MonoBehaviour
{
public static DebugHUD debugHUD;
public bool debugOn = true;
public float updateInterval = 0.5f;
private int frames = 0;
private float duration = 0;
// Singleton
void Awake ()
{
if (debugHUD == null) {
DontDestroyOnLoad... | mit | C# | |
1057cf8bcd4e323e0394e65932887ddb15f83273 | Create AnomalousCancellation.cs | burnsba/scratch,burnsba/scratch,burnsba/scratch | Math/AnomalousCancellation.cs | Math/AnomalousCancellation.cs | // 2017-11-09
//
// This works more or less, but the defintion is ambiguous.
// Are uncancelled duplicates allowed?
// Limit this to only one digit, or more?
// This only considers a single digit that may occur more than once. That means
// - There is no way to consider multiple cancellations at the same time.
// Fo... | apache-2.0 | C# | |
7b54f10a2e83e3752f4a27ca709e1ca73075108a | Add Game view model | Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training | src/ChessVariantsTraining/ViewModels/Game.cs | src/ChessVariantsTraining/ViewModels/Game.cs | namespace ChessVariantsTraining.ViewModels
{
public class Game
{
public string White
{
get;
private set;
}
public string Black
{
get;
private set;
}
public string WhiteUrl
{
get;
... | agpl-3.0 | C# | |
095a2cb3452dc918960039c5934e68f2363a6981 | add build.cake build file | CiBuildOrg/WebApi-Boilerplate,CiBuildOrg/WebApi-Boilerplate,CiBuildOrg/WebApi-Boilerplate | build.cake | build.cake | #tool nuget:?package=NUnit.ConsoleRunner&version=3.6.0
#tool "nuget:?package=ReportUnit"
#tool "docfx.console"
#addin "Cake.DocFx"
#addin "SharpZipLib"
#addin "Cake.FileHelpers"
#addin "Cake.Compression"
#addin "MagicChunks"
//#addin "nuget:?package=Cake.StyleCop&version=1.1.3"
//////////////////////////////////////... | mit | C# | |
e0f7f56512d249bdf639e43e200350286e880bed | refactor out a mechanism to iterate through commits and patches | ZanyGnu/GitRepoStats | RepoStats/CommitIterator.cs | RepoStats/CommitIterator.cs | using LibGit2Sharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RepoStats
{
public class CommitIterator
{
List<CommitAnalysis> commitAnalysis;
List<PatchAnalysis> patchAnalysis;
string repoRoot;
... | mit | C# | |
edc6e8ebe0129125f34c14ca52f76e8f7de5a034 | add unit test | CatLib/Framework,yb199478/catlib | CatLib.VS/CatLib.Tests/Translation/SelectorTests.cs | CatLib.VS/CatLib.Tests/Translation/SelectorTests.cs | /*
* This file is part of the CatLib package.
*
* (c) Yu Bin <support@catlib.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Document: http://catlib.io/
*/
using CatLib.API.Translation;
using CatLib.Translation;
#if UNITY... | unknown | C# | |
7cef859253fe855d3948cb97c56d578a8a57aa13 | Add sample code file that calls both supported and unsupported library code with respect to flow summaries. | github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql | csharp/ql/test/query-tests/Telemetry/LibraryUsage/ExternalLibraryUsage.cs | csharp/ql/test/query-tests/Telemetry/LibraryUsage/ExternalLibraryUsage.cs | using System;
using System.Collections.Generic;
public class LibraryUsage
{
public void M1()
{
var l = new List<object>(); // Uninteresting parameterless constructor
var o = new object(); // Uninteresting parameterless constructor
l.Add(o); // Has flow summary
l.Add(o); // Has f... | mit | C# | |
0c114acc473aeabaf99633c71aed71f5df87a926 | upgrade version to 2.0.1 | tangxuehua/equeue,tangxuehua/equeue,geffzhang/equeue,tangxuehua/equeue,Aaron-Liu/equeue,geffzhang/equeue,Aaron-Liu/equeue | src/EQueue/Properties/AssemblyInfo.cs | src/EQueue/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EQueue")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyPro... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EQueue")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyPro... | mit | C# |
ce969ed7371a731728276608569facee41d4b928 | add helper extension to normalize strings | Research-Institute/json-api-dotnet-core,Research-Institute/json-api-dotnet-core,json-api-dotnet/JsonApiDotNetCore | test/JsonApiDotNetCoreExampleTests/Helpers/Extensions/StringExtensions.cs | test/JsonApiDotNetCoreExampleTests/Helpers/Extensions/StringExtensions.cs | using System.Text.RegularExpressions;
namespace JsonApiDotNetCoreExampleTests.Helpers.Extensions
{
public static class StringExtensions
{
public static string Normalize(this string input)
{
return Regex.Replace(input, @"\s+", string.Empty)
.ToUpper()
... | mit | C# | |
56bd3d8a82230fd626fad39c23a40a3fd0729e1a | Add realtime multiplayer test scene | peppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu-new,ppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,UselessToucan/osu,smoogipooo/osu | osu.Game.Tests/Visual/RealtimeMultiplayer/TestSceneRealtimeMultiplayer.cs | osu.Game.Tests/Visual/RealtimeMultiplayer/TestSceneRealtimeMultiplayer.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Screens.Multi.Components;
namespace osu.Game.Tests.Visual.RealtimeMultiplayer
{
public class TestSceneRealtimeMultiplayer : RealtimeMultiplayerTestSce... | mit | C# | |
cb7341ca44ec8043ded2ada238f4e9f421ab26f9 | add pagination class. | dreign/ComBoost,dreign/ComBoost | Wodsoft.ComBoost/ComponentModel/Pagination.cs | Wodsoft.ComBoost/ComponentModel/Pagination.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace System.ComponentModel
{
public class Pagination : IPagination
{
public Pagination()
{
PageSizeOption = EntityViewModel.DefaultPageSizeOption;
}
... | mit | C# | |
ef6bde3459aaf1e8dbbbfb35ab85c75083d2d4d9 | Add stub for IndexResponse | InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET | IntegrationEngine.Core.Tests/StubIndexResponse.cs | IntegrationEngine.Core.Tests/StubIndexResponse.cs | using Elasticsearch.Net;
using Nest;
using System;
namespace IntegrationEngine.Core.Tests
{
public class StubIndexResponse : IIndexResponse
{
public StubIndexResponse()
{
}
#region IIndexResponse implementation
public string Id {
get {
thro... | mit | C# | |
4780ee9eb1af0b588a4cd407f4730a2a4bfcd788 | Create RobotsProblem.cs | gvaduha/homebrew,gvaduha/homebrew,gvaduha/homebrew,gvaduha/homebrew,gvaduha/homebrew,gvaduha/homebrew | CSharp/RobotsProblem.cs | CSharp/RobotsProblem.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace RobotsProblem
{
enum Containment
{
Robot,
Parachute
}
class Robot
{
int step;
IDictionary<int,Containment> v;
int pos;
bool moving;
public Robot(IDictionary<int, Co... | mit | C# | |
70f0c0a68ff230d91e98d5e6d6090c08de7e3084 | Add IntanceScanner for TypeScanner | CosmosProgramme/Cosmos.Core | Standard/src/Cosmos.Extensions/InstanceScanner.cs | Standard/src/Cosmos.Extensions/InstanceScanner.cs | using System;
using System.Collections.Generic;
namespace Cosmos
{
public abstract class InstanceScanner<TClass> : TypeScanner
{
protected InstanceScanner() : base() { }
protected InstanceScanner(string scannerName) : base(scannerName) { }
protected InstanceScanner(Type baseType) : ba... | mit | C# | |
f071de2ac92b83701498e606441441721771db4a | fix port-baud remember. add single application allawed | khaikin/GymMgr | GymMgr/SingleInstCode.cs | GymMgr/SingleInstCode.cs | using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Threading;
using System.ComponentModel;
using System.Runtime.InteropServices;
namespace SingleInstanceCode
{
static public class SingleInstanceClass
{
// Add "global\" in front of the EventName, then only one instance is ... | unlicense | C# | |
9ebde329048c8cf62549df625b9dc28f3c8afd76 | Test HttpResults behaviour | ZocDoc/ServiceStack,nataren/NServiceKit,meebey/ServiceStack,nataren/NServiceKit,timba/NServiceKit,timba/NServiceKit,meebey/ServiceStack,timba/NServiceKit,ZocDoc/ServiceStack,timba/NServiceKit,MindTouch/NServiceKit,NServiceKit/NServiceKit,NServiceKit/NServiceKit,ZocDoc/ServiceStack,NServiceKit/NServiceKit,nataren/NServi... | tests/ServiceStack.WebHost.IntegrationTests/Services/HttpResultsService.cs | tests/ServiceStack.WebHost.IntegrationTests/Services/HttpResultsService.cs | using System;
using System.Net;
using System.Runtime.Serialization;
using ServiceStack.Common.Web;
using ServiceStack.ServiceHost;
using ServiceStack.ServiceInterface;
using ServiceStack.ServiceInterface.ServiceModel;
namespace ServiceStack.WebHost.IntegrationTests.Services
{
[RestService("/httpresults")]
[DataCo... | bsd-3-clause | C# | |
c4584cd02c95edacfccec49c97f65d0cd34b9979 | Create teacherCreateViewModel | Programazing/Open-School-Library,Programazing/Open-School-Library | src/Open-School-Library/Models/TeacherViewModels/TeacherCreateViewModel.cs | src/Open-School-Library/Models/TeacherViewModels/TeacherCreateViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Open_School_Library.Models.TeacherViewModels
{
public class TeacherCreateViewModel
{
}
}
| mit | C# | |
302b06088fbd98248b35dd7d2bebec05cc6dfcca | Create sortedBitSearch.cs | michaeljwebb/Algorithm-Practice | Other/sortedBitSearch.cs | Other/sortedBitSearch.cs | //Given an array of sorted 0s and 1s, count how many 1st exist
//Space complexity: O(1)
//Time complexity: O(log(N)) where N is the number of digits
//Example: [0,0,0,0,0,1,1,1] -> 3
| mit | C# | |
4458377bf394588cc80aa70234451f63f4398086 | Fix for LOG4NET-154. Added StackTracePatternConverter that outputs the methods called before the log message. | freedomvoice/log4net,freedomvoice/log4net,twcclegg/log4net,freedomvoice/log4net,twcclegg/log4net,twcclegg/log4net,freedomvoice/log4net,twcclegg/log4net | src/Layout/Pattern/StackTracePatternConverter.cs | src/Layout/Pattern/StackTracePatternConverter.cs | #region Apache License
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0... | apache-2.0 | C# | |
08c4327d8d7fecf58265dec5023e626217959dee | Add tests for Get & AddToPayload | bugsnag/bugsnag-dotnet,bugsnag/bugsnag-dotnet | tests/Bugsnag.Tests/PayloadExtensionsTests.cs | tests/Bugsnag.Tests/PayloadExtensionsTests.cs | using Bugsnag.Payload;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace Bugsnag.Tests
{
public class PayloadExtensionsTests
{
[Theory]
[MemberData(nameof(PayloadTestData))]
public void AddToPayloadTests(Dictionary... | mit | C# | |
80faf48bfe375ab960fc66b7740ee180b6236e62 | add Althash, RPCVersion, Keypaths | dgarage/NBXplorer,dgarage/NBXplorer | NBXplorer.Client/NBXplorerNetworkProvider.Althash.cs | NBXplorer.Client/NBXplorerNetworkProvider.Althash.cs | using NBitcoin;
using System;
using System.Collections.Generic;
using System.Text;
namespace NBXplorer
{
public partial class NBXplorerNetworkProvider
{
private void InitAlthash(ChainName networkType)
{
Add(new NBXplorerNetwork(NBitcoin.Altcoins.Althash.Instance, networkType)
{
MinRPCVersion = 16... | mit | C# | |
694b9f9810f106801adcf4d05349e5850fb7b82d | Create SpectralPlot class | SICU-Stress-Measurement-System/frontend-cs | StressMeasurementSystem/Models/Plots/SpectralPlot.cs | StressMeasurementSystem/Models/Plots/SpectralPlot.cs | using OxyPlot;
namespace StressMeasurementSystem.Models.Plots
{
public class SpectralPlot : PlotModel
{
}
} | apache-2.0 | C# | |
b86f650a30c0526d86dc2b4854a7519b7952efd5 | Add test case for TypeRegistry | ViveportSoftware/vita_core_csharp,ViveportSoftware/vita_core_csharp | source/Htc.Vita.Core.Tests/TypeRegistryTest.cs | source/Htc.Vita.Core.Tests/TypeRegistryTest.cs | using Htc.Vita.Core.Util;
using Xunit;
namespace Htc.Vita.Core.Tests
{
public class TypeRegistryTest
{
[Fact]
public static void Default_0_RegisterDefault()
{
TypeRegistry.RegisterDefault<BaseClass, SubClass1>();
}
[Fact]
public static void Default_... | mit | C# | |
63eb9e60f3f509fd3d62d878a540cd5273c670eb | Add missing file | z4kn4fein/stashbox | test/DependencyBindingTests.cs | test/DependencyBindingTests.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Stashbox.Tests
{
[TestClass]
public class DependencyBindingTests
{
[TestMethod]
public void DependencyBindingTests_Bind_To_The_Same_Type()
{
var inst = new StashboxContainer()
.Register<ITest1... | mit | C# | |
cfa84826c3478e58b78b41ca98fb14d3272baef0 | Implement IDisposable for IpcChannel | DrabWeb/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ppy/osu-framework,ppy/osu-framework,naoey/osu-framework,NeoAdonis/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,RedNesto/osu-framework,naoey/osu-framework,Tom94/osu-framework,... | osu.Framework/Platform/IpcChannel.cs | osu.Framework/Platform/IpcChannel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace osu.Framework.Platform
{
public class IpcChannel<T> : IDisposable
{
private BasicGameHost host;
public event Action<T> MessageRece... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace osu.Framework.Platform
{
public class IpcChannel<T>
{
private BasicGameHost host;
public event Action<T> MessageReceived;
... | mit | C# |
52f4b18990a7e095bd1c2611967ccf66d83026db | Add Error description classes. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Helpers/ErrorDescriptor.cs | WalletWasabi/Helpers/ErrorDescriptor.cs | using System;
using System.Collections.Generic;
namespace WalletWasabi.Helpers
{
public class ErrorDescriptors : List<ErrorDescriptor>
{
public bool HasErrors => this.Count == 0;
}
public enum ErrorSeverity
{
Default,
Info,
Warning,
Error
}
public struct ErrorDescriptor : IEquatable<ErrorDescriptor... | mit | C# | |
672568d1f57a893785f9d13e6992217221e0dba0 | Add missing file | sargin48/Umbraco-CMS,madsoulswe/Umbraco-CMS,JeffreyPerplex/Umbraco-CMS,lars-erik/Umbraco-CMS,arknu/Umbraco-CMS,abjerner/Umbraco-CMS,hfloyd/Umbraco-CMS,tompipe/Umbraco-CMS,madsoulswe/Umbraco-CMS,abryukhov/Umbraco-CMS,robertjf/Umbraco-CMS,tcmorris/Umbraco-CMS,abjerner/Umbraco-CMS,WebCentrum/Umbraco-CMS,rustyswayne/Umbrac... | src/Umbraco.Core/ObjectResolution/WeightAttribute.cs | src/Umbraco.Core/ObjectResolution/WeightAttribute.cs | using System;
namespace Umbraco.Core.ObjectResolution
{
/// <summary>
/// Indicates the relative weight of a resolved object type.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class WeightAttribute : Attribute
{
/// <summary>
/// Initializes a new i... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.