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 |
|---|---|---|---|---|---|---|---|---|
df659e32141c24a05bf80ffafaecb5dcdb4e11b3 | Add missing ArrayBuilder.cs file | schellap/corert,shrah/corert,schellap/corert,schellap/corert,krytarowski/corert,gregkalapos/corert,schellap/corert,sandreenko/corert,sandreenko/corert,mjp41/corert,kyulee1/corert,mjp41/corert,schellap/corert,shrah/corert,manu-silicon/corert,botaberg/corert,krytarowski/corert,gregkalapos/corert,botaberg/corert,mjp41/cor... | src/Common/src/System/Collections/Generic/ArrayBuilder.cs | src/Common/src/System/Collections/Generic/ArrayBuilder.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
namespace System.Collections.Generic
{
//
// Helper class for building lists that avoids unnecessary allocation
//
internal struct ArrayB... | mit | C# | |
92ececca9d3d74b686d292352998146a13731296 | Create ThreadedWorkerPool.cs | efruchter/UnityUtilities | ThreadedWorkerPool.cs | ThreadedWorkerPool.cs | using System.Collections.Generic;
using System.Threading;
using UnityEngine.Assertions;
namespace Kazoo.Threading {
/// <summary>
/// Threaded Worker pool that consumes inputs and produces outputs. Thread workers may share data
/// via an internal mutex.
/// </summary>
public class ThreadedWorkerPool<TI, TO> {
... | mit | C# | |
367069a1b10d75ed8baa6917fb273fcaaeb128fa | Add Collection Validation Tests | Secullum/Secullum.Validation | test/Secullum.Validation.Tests/CollectionTests.cs | test/Secullum.Validation.Tests/CollectionTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace Secullum.Validation.Tests
{
public class CollectionTests : BaseTest
{
[Fact]
public void IsRequired_GivenValidField_DontReturnErrors()
{
var people = new ... | mit | C# | |
84b09ae6dc3dd3cfff9bc81916935f3626568e06 | add a loader which can load an infinite number of the dumbest items ever. | wislon/xam-gridview-infinite-scroll | src/GridViewInfiniteScroll/GridViewInfiniteScroll/SimpleItemLoader.cs | src/GridViewInfiniteScroll/GridViewInfiniteScroll/SimpleItemLoader.cs | using System.Collections.Generic;
using System.Text;
namespace GridViewInfiniteScroll
{
public class SimpleItemLoader
{
public List<SimpleItem> SimpleItems { get; set; }
public bool CanLoadMoreItems { get; private set; }
public bool IsBusy { get; set; }
public int CurrentPageValue { get;... | mit | C# | |
2280762d1e8b2aa7a33736c47853e01947aa656e | update desc of AssemblyInfo inadvertently left as Hib 3 when copied initially | spring-projects/spring-net,yonglehou/spring-net,likesea/spring-net,zi1jing/spring-net,djechelon/spring-net,kvr000/spring-net,likesea/spring-net,zi1jing/spring-net,spring-projects/spring-net,spring-projects/spring-net,djechelon/spring-net,dreamofei/spring-net,likesea/spring-net,yonglehou/spring-net,kvr000/spring-net,yon... | test/Spring/Spring.Data.NHibernate4.Integration.Tests/AssemblyInfo.cs | test/Spring/Spring.Data.NHibernate4.Integration.Tests/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Spring.Data.NHibernate4 Integration Tests")]
[assembly: AssemblyDescription("Integration tests for Spring.Data.NHibernate4 assembly")]
| using System.Reflection;
[assembly: AssemblyTitle("Spring.Data.NHibernate3 Integration Tests")]
[assembly: AssemblyDescription("Integration tests for Spring.Data.NHibernate3 assembly")]
| apache-2.0 | C# |
9e5f0807da8fa83deec8ebb3a3bc2e148385a58f | Create a basic implementation of the ILoginModuleNodePair interface. | nohros/must,nohros/must,nohros/must | src/base/common/security/auth/LoginModuleNodePair.cs | src/base/common/security/auth/LoginModuleNodePair.cs | using System;
using Nohros.Configuration;
namespace Nohros.Security.Auth
{
/// <summary>
/// Provides a basic implementation od the <see cref="ILoginModuleNodePair"/>
/// interface.
/// </summary>
public class LoginModuleNodePair : ILoginModuleNodePair
{
readonly ILoginModule login_module_;... | mit | C# | |
450848220e804b21b953cc5fa5182c29cd98f8d2 | add operator for manage UserControls | 23S163PR/system-programming | Novak.Andriy/All_Projects/RegEditor/WindowOperator.cs | Novak.Andriy/All_Projects/RegEditor/WindowOperator.cs | using System.Linq;
using System.Windows;
using System.Windows.Controls;
namespace RegEditor
{
internal static class WindowOperator
{
public static void Create_Window(UserControl ctr, string title = "Window", bool isDialog = false)
{
var clone = Application.Current.Windows.OfType<Wi... | cc0-1.0 | C# | |
b0b1ae555886a79eec4e3325de1299484252a5a6 | Add arrow model | kennyvv/Alex,kennyvv/Alex,kennyvv/Alex,kennyvv/Alex | src/Alex/Entities/Models/ArrowModel.cs | src/Alex/Entities/Models/ArrowModel.cs |
using Alex.ResourcePackLib.Json.Models.Entities;
using Microsoft.Xna.Framework;
namespace Alex.Entities.Models
{
public partial class ArrowModel : EntityModel
{
public ArrowModel()
{
Name = "geometry.arrow";
VisibleBoundsWidth = 0;
VisibleBoundsHeight = 0;
VisibleBoundsOffset = new Vector3(0f, ... | mpl-2.0 | C# | |
df952e5bd0e62e37d7fd7b08f4653f6a9d7f6a78 | Create unblocking.cs | marios-tsiliakos/UnblockGHLibraries | src/unblocking.cs | src/unblocking.cs | //method to unblock all the files in the Grasshopper libraries directory
private static void UnblockGHLibraries(string path, out string return_gh_folder, out string return_user_objects, out List <string> dir_files, out int cnt, out List <string> bl_files)
{
string local_gh_dir = path + @"\AppData\Roaming\Gras... | mit | C# | |
3e07681583658ca8cd54c34749db17aa1887cd54 | Create Modulo.cs | SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming | Kattis-Solutions/Modulo.cs | Kattis-Solutions/Modulo.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace modulo
{
class Program
{
static void Main(string[] args)
{
List<int> mod = new List<int>();
int temp;
for(int i = 0; i < 10; i++)
... | mit | C# | |
d1b852bdf3a88ac9917a1e62cf59ce5060aa9237 | Add missing file. | antoniusriha/gtk-sharp,orion75/gtk-sharp,openmedicus/gtk-sharp,orion75/gtk-sharp,akrisiun/gtk-sharp,antoniusriha/gtk-sharp,sillsdev/gtk-sharp,sillsdev/gtk-sharp,sillsdev/gtk-sharp,Gankov/gtk-sharp,antoniusriha/gtk-sharp,openmedicus/gtk-sharp,orion75/gtk-sharp,orion75/gtk-sharp,akrisiun/gtk-sharp,Gankov/gtk-sharp,Gankov... | generator/LogWriter.cs | generator/LogWriter.cs | // Copyright (c) 2011 Novell Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
/... | lgpl-2.1 | C# | |
1ab3dc0e561d83b8f30832fd06151792e3fb20f0 | Add an instant progress bar extension method | ActuallyaDeviloper/DarkUI | DarkUI/Extensions/ProgressBarExtensions.cs | DarkUI/Extensions/ProgressBarExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace DarkUI.Extensions
{
// https://stackoverflow.com/questions/6071626/progressbar-is-slow-in-windows-forms
public static class ExtensionMethods
{
/// <summary>
/// Sets ... | mit | C# | |
b094120e4d0790e72394e474b15e8e78c5dfc879 | Update ProjectRootImageProjectTreeModifier's doc comment | xasx/roslyn,diryboy/roslyn,natidea/roslyn,cston/roslyn,leppie/roslyn,tannergooding/roslyn,jkotas/roslyn,KevinH-MS/roslyn,diryboy/roslyn,xoofx/roslyn,genlu/roslyn,KirillOsenkov/roslyn,MichalStrehovsky/roslyn,jaredpar/roslyn,jmarolf/roslyn,KirillOsenkov/roslyn,mmitche/roslyn,TyOverby/roslyn,AnthonyDGreen/roslyn,genlu/ros... | src/VisualStudio/ProjectSystem/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Designers/ProjectRootImageProjectTreeModifier.cs | src/VisualStudio/ProjectSystem/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Designers/ProjectRootImageProjectTreeModifier.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.VisualStudio.ProjectSystem.Utilities;
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.ProjectSystem.Designers.Imaging;
... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.VisualStudio.ProjectSystem.Utilities;
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.ProjectSystem.Designers.Imaging;
... | mit | C# |
d38670178ece2f312fe8c5f43c72687e3876c955 | Rework the test for HttpHandler from the ground up to take into account the new extension areas | ZocDoc/ZocMon,modulexcite/ZocMon,modulexcite/ZocMon,modulexcite/ZocMon,ZocDoc/ZocMon,ZocDoc/ZocMon | source/ZocMonLib.Web.AspNet.Test/TestForHttpHandler.cs | source/ZocMonLib.Web.AspNet.Test/TestForHttpHandler.cs | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Web;
using Moq;
using Xunit;
namespace ZocMonLib.Web.AspNet.Test
{
public class TestForHttpHandler
{
[Fact]
public void BeReusable()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using Moq;
using Xunit;
namespace ZocMonLib.Web.AspNet.Test
{
public class TestForHttpHandler : IDisposable
{
private HttpHandlerMock tester;
public HttpHandlerMock Handler
{
... | apache-2.0 | C# |
36637737f721862a30e283ec098499f0aa452ee5 | Add money order | 0culus/ElectronicCash | ElectronicCash/MoneyOrder.cs | ElectronicCash/MoneyOrder.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ElectronicCash
{
/// <summary>
/// holds the data for a money order
/// </summary>
public class MoneyOrder
{
public Byte[] UniquenessString { get; set; }
}
}
| mit | C# | |
5b47106c59c3383487a734824695ba58406effe4 | Add settings file storage | BrunoBrux/ArticulateDVS,Mpstark/articulate | Articulate/Settings/Settings.cs | Articulate/Settings/Settings.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Xml.Serialization;
using System.Diagnostics;
namespace Articulate
{
[Serializable]
public class Settings
{
public Settings()
{
// Initialize default settings
... | mit | C# | |
20b73f5ed2102384ceaf61d6cde134d3f8910702 | Add EmptyToVisibility. | cube-soft/Cube.Core,cube-soft/Cube.Core | Converters/EmptyToVisibility.cs | Converters/EmptyToVisibility.cs | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www... | apache-2.0 | C# | |
a1dace50bbfe37cae1a6365d907fcc0f48979f9a | Validate BST in C# | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | LeetCode/validate_bst.cs | LeetCode/validate_bst.cs | // Given a binary tree, determine if it is a valid binary search tree (BST).
using System;
using System.IO;
using System.Text;
class Node {
public int Value { get; set; }
public Node Left { get; private set; }
public Node Right { get; private set; }
public Node(int value, Node left, Node right) {
... | mit | C# | |
61f484ad72eebbd567ef096478c50936e6abd39c | add DNT.Diag.Data.LiveDataItemComparer | rockyx/dntdiag | DNT/Diag/Data/LiveDataItemComparer.cs | DNT/Diag/Data/LiveDataItemComparer.cs | using System;
using System.Collections.Generic;
namespace DNT.Diag.Data
{
public class LiveDataItemComparer : IComparer<LiveDataItem>
{
public int Compare(LiveDataItem x, LiveDataItem y)
{
if (x == null)
throw new ArgumentNullException ("x");
if (y == null)
throw new ArgumentNullExcept... | apache-2.0 | C# | |
89ddc85512922b6243b5add4e6a6af30fcb48654 | Create Program.cs | GetSomeBlocks/ServerStatus,GetSomeBlocks/Score_Soccer,GetSomeBlocks/Score_Soccer,GetSomeBlocks/Score_Soccer,GetSomeBlocks/Score_Soccer,GetSomeBlocks/ServerStatus,GetSomeBlocks/ServerStatus,GetSomeBlocks/ServerStatus,GetSomeBlocks/ServerStatus,GetSomeBlocks/Score_Soccer,GetSomeBlocks/ServerStatus,GetSomeBlocks/Score_Soc... | FCUI/FCMainVC/Program.cs | FCUI/FCMainVC/Program.cs | using System;
using System.IO;
using System.Threading;
using System.Windows.Forms;
using OpenHardwareMonitor.GUI;
namespace OpenHardwareMonitor {
public static class Program {
[STAThread]
public static void Main() {
#if !DEBUG
Application.ThreadException +=
new ThreadExceptionEventH... | mit | C# | |
7315aef4634cb4996fba6f21702abbf7d743d48c | Create ObjectComparator.cs | strvmarv/Extensions | ObjectComparator.cs | ObjectComparator.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Extensions
{
public static class ObjectComparator<T>
{
public static bool CompareProperties(T newObject, T oldObject)
{
if (Equals(newObject, oldObject)) return true;
var newP... | mit | C# | |
fd9dfde2465532145ccb70b8b78df7293aba417e | Add of the User32 utility class used by the OverlayWindow base class | kirkerafael/gw2pao,StevenLiekens/gw2pao,SamHurne/gw2pao | GW2PAO/Utility/User32.cs | GW2PAO/Utility/User32.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace GW2PAO.Utility
{
/// <summary>
/// User32 utility classes
/// </summary>
public static class User32
{
[DllImport... | mit | C# | |
fccdedacf8019302c20fc6227d10607c7dc7fb27 | Add common log options | ArtisanCode/Log4NetMessageEncryptor | LogManager/Options/CommmonLogManagerOptions.cs | LogManager/Options/CommmonLogManagerOptions.cs | using CommandLine;
using System.Security.Cryptography;
namespace ArtisanCode.LogManager.Options
{
/// <summary>
/// Defines all the common encryption options between the encrypt and decrypt operations
/// </summary>
public class CommmonLogManagerOptions
{
/// <summary>
/// Gets or ... | unlicense | C# | |
c9e4115e9c8947511e24d6b4226cb034026378fd | Add F.ForEach | farity/farity | Farity/ForEach.cs | Farity/ForEach.cs | using System;
using System.Collections.Generic;
namespace Farity
{
public static partial class F
{
/// <summary>
/// Iterates over an input enumerable, calling a provided function for each element in the enumerable.
/// </summary>
/// <typeparam name="T">The type of elements in... | mit | C# | |
8e5e5f103f6ebaa4140a5b0e71cadfedcbf70232 | Add unit tests for the SqliteAnchorBuilder class | openchain/openchain | test/Openchain.Sqlite.Tests/SqliteAnchorBuilderTests.cs | test/Openchain.Sqlite.Tests/SqliteAnchorBuilderTests.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# | |
71cbd740dac7c4b2f1c657837536a0f87ba8d756 | Add custome model inspector | tobyclh/UnityCNTK,tobyclh/UnityCNTK | Assets/UnityCNTK/Scripts/Models/GUI/ModelnspectorPlus.cs | Assets/UnityCNTK/Scripts/Models/GUI/ModelnspectorPlus.cs | using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine.Assertions;
using UnityEditor;
using System;
using CNTK;
namespace UnityCNTK
{
[CustomEditor(typeof(_Model), true)]
public class ModelnspectorPlus : Editor
{
private string path;
pr... | mit | C# | |
b420635303880b1b7a1877a0c1d68f4108ba7a9a | Add InputDateTime | meziantou/Meziantou.Framework,meziantou/Meziantou.Framework,meziantou/Meziantou.Framework,meziantou/Meziantou.Framework | src/Meziantou.AspNetCore.Components/InputDatetime.cs | src/Meziantou.AspNetCore.Components/InputDatetime.cs | using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Forms;
using Microsoft.AspNetCore.Components.Rendering;
namespace Meziantou.AspNetCore.Components
{
public class InputDateTime<TVa... | mit | C# | |
4e0745afb99795c9aee867ca47b7f5f043e276a2 | Create DestroyGameObjectClick.cs | MatrixNAN/Unity-Artist-Tools | DestroyGameObjectClick.cs | DestroyGameObjectClick.cs | using UnityEngine;
using System.Collections;
public class DestroyGameObjectClick : MonoBehaviour
{
public GameObject GameObjectToDestroy;
public void DestroyClick()
{
Destroy(GameObjectToDestroy);
}
}
| apache-2.0 | C# | |
8c309c3db59b129179becd4d8d03dc6f4a834eff | Add a factory interface for SOAP Client instances Closes #9 | gravity00/SimpleSOAPClient | src/SimpleSOAPClient/ISoapClientFactory.cs | src/SimpleSOAPClient/ISoapClientFactory.cs | #region License
// The MIT License (MIT)
//
// Copyright (c) 2016 João Simões
//
// 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 ri... | mit | C# | |
17851a9d8d9b76eb4d65efe83e2d903aadfd3d2f | add AfileInfo matcher | activelylazy/TestFirst.Net,activelylazy/TestFirst.Net,TestFirstNet/TestFirst.Net,TestFirstNet/TestFirst.Net | TestFirst.Net/Matcher/AFileInfo.cs | TestFirst.Net/Matcher/AFileInfo.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace TestFirst.Net.Matcher {
public class AFileInfo : PropertyMatcher<FileInfo>{
private static readonly FileInfo PropertyNames = null;
public static AFileInfo With() {
return ... | bsd-2-clause | C# | |
367b1ed94c3a66943a7aead431ce72030bfdf0b8 | Create Global.asax.cs | schungx/WebApi-OData | Global.asax.cs | Global.asax.cs | mit | C# | ||
3383851e44fda9248c4f1e474e5cbc55a87d274d | Add C# wrapper. | y2jinc/nvidia-texture-tools,Ghost-yc/nvidia-texture-tools,ycwn/nvidia-texture-tools,fshp/nvidia-texture-tools,sheuan/nvidia-texture-tools,y2jinc/nvidia-texture-tools,rabidflea/nvidia-texture-tools,joechenq/nvidia-texture-tools,timur-losev/nvidia-texture-tools,Ghost-yc/nvidia-texture-tools,dmsovetov/nvidia-texture-tools... | src/nvtt/nvtt.cs | src/nvtt/nvtt.cs |
namespace nvtt
{
#region Enums
#region enum Format
enum Format
{
// No compression.
RGB,
RGBA = RGB,
// DX9 formats.
DXT1,
DXT1a,
DXT3,
DXT5,
DXT5n,
// DX10 formats.
BC1 = DXT1,
BC1a = DXT1a,
BC2 = DXT3,
BC3 = DXT5,
BC3n = DXT5n,
BC4,
BC5,
}
#... | mit | C# | |
a7d4fa15463ec82beddab41e3d5c58fd000a9904 | Add bracket pair | xin9le/DeclarativeSql | src/DeclarativeSql/Sql/BracketPair.cs | src/DeclarativeSql/Sql/BracketPair.cs | namespace DeclarativeSql.Sql
{
/// <summary>
/// Represents a begin/end bracket pair.
/// </summary>
public readonly struct BracketPair
{
#region Properties
/// <summary>
/// Gets the begin bracket.
/// </summary>
public char Begin { get; }
/// <sum... | mit | C# | |
1db353558bf0b4f09a58e0079be1e0ee5a6839f3 | Add present beatmap tests | peppy/osu,UselessToucan/osu,peppy/osu,ppy/osu,peppy/osu-new,2yangk23/osu,UselessToucan/osu,EVAST9919/osu,EVAST9919/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,ppy/osu,smoogipooo/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,johnneijzen/osu,johnneijzen/osu,2yangk23/osu | osu.Game.Tests/Visual/Navigation/TestScenePresentBeatmap.cs | osu.Game.Tests/Visual/Navigation/TestScenePresentBeatmap.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using osu.Framework.Screens;
using osu.Game.Beatmaps;
using osu.Game.Rulesets;
u... | mit | C# | |
823abfbc80617cef24b8c180546ac1884c505126 | Add Progress utility | yfakariya/NLiblet,yfakariya/NLiblet | src/Async/Async/Progress.cs | src/Async/Async/Progress.cs | #region -- License Terms --
//
// NLiblet
//
// Copyright (C) 2011 FUJIWARA, Yusuke
//
// 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/L... | apache-2.0 | C# | |
41bee10aab8866225c3ef0eacbe3874b6dc12f12 | Revert AssemblyInfo version change. | dasha91/azure-sdk-for-net,felixcho-msft/azure-sdk-for-net,jtlibing/azure-sdk-for-net,felixcho-msft/azure-sdk-for-net,bgold09/azure-sdk-for-net,vladca/azure-sdk-for-net,MabOneSdk/azure-sdk-for-net,jasper-schneider/azure-sdk-for-net,pattipaka/azure-sdk-for-net,pattipaka/azure-sdk-for-net,nemanja88/azure-sdk-for-net,jtlib... | src/ResourceManagement/RedisCache/RedisCacheManagement/Properties/AssemblyInfo.cs | src/ResourceManagement/RedisCache/RedisCacheManagement/Properties/AssemblyInfo.cs | //
// Copyright (c) Microsoft. All rights reserved.
//
// 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 la... | //
// Copyright (c) Microsoft. All rights reserved.
//
// 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 la... | apache-2.0 | C# |
6bc3b82e752e7624bc709f96a00df5c08bc5d1ea | add loggin interface | tsolarin/dotnet-globals,tsolarin/dotnet-globals | src/DotNet.Globals.Core/Logging/ILogger.cs | src/DotNet.Globals.Core/Logging/ILogger.cs | namespace DotNet.Globals.Core.Logging
{
public interface ILogger
{
void LogSuccess(string data);
void LogVerbose(string data);
void LogInformation(string data);
void LogWarning(string data);
void LogError(string data);
}
} | mit | C# | |
f4d99b11a0db922e5c48dddaaccfbb7f9cffe42d | Add files via upload | rc7s/spacecadet | daniel/movingplatform.cs | daniel/movingplatform.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class movingplatform : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.position = new Vector3(transform.position.x, Mathf.PingPong(Time.time... | mit | C# | |
fa0a4a212494dcccd0b52529cec2d72c49f06064 | Create ChristianHoejsager.cs | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/ChristianHoejsager.cs | src/Firehose.Web/Authors/ChristianHoejsager.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class ChristianHoejsager : IFilterMyBlogPosts, IAmACommunityMember
{
public string FirstName => "Christi... | mit | C# | |
834ad3f09184611c5a65f95efb828204e920eed6 | Convert a binary to decimal value | DevGrl/Homework | ConvertBinaryToDecimal.cs | ConvertBinaryToDecimal.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BinaryToDecimal
{
class Program
{
static void Main(string[] args)
{
//Problem
//Convert a binary n to its decimal value
//Solution
... | mit | C# | |
e2b16375801d80c03db1b8eb1d0a68050060a181 | Fix test | AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderS... | src/R/Editor/Impl/Functions/PersistentFunctionInfo.cs | src/R/Editor/Impl/Functions/PersistentFunctionInfo.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.Common.Core.Diagnostics;
namespace Microsoft.R.Editor.Functions {
internal sealed class PersistentFunctionInfo : IPersistentFunctionInfo {
... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.Common.Core.Diagnostics;
namespace Microsoft.R.Editor.Functions {
internal sealed class PersistentFunctionInfo : IPersistentFunctionInfo {
... | mit | C# |
9b71a316cefddc46013c3a8c7d55c3aa6efe862c | Create number_07.cs | jesushilarioh/Questions-and-Exercises-in-C-Sharp | number_07.cs | number_07.cs | using System;
public class Program
{
public static void Main()
{
/********************************************************************
*
* 7. Write a program to print on screen the output of
* adding, subtractinhg, multiplying and dividing of two numbers
* which will be entered by the u... | mit | C# | |
3e019ff608a466ae04d03b3f3d75e7e625e622b6 | Create millipede.cs | getmillipede/millipede-csharp | millipede.cs | millipede.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace millipede
{
class Program
{
static void Main(string[] args)
{
int[] padding_offsets = new int[] { 2, 1, 0, 1, 2, 3, 4, 4, 3 };
int size = 20;
... | mit | C# | |
c74ed6ad81a0eaf5be10796b63736c85d766da04 | add response class | toofu37/twitter-for-unity | DataModels/Responses/TrendsPlaceResponse.cs | DataModels/Responses/TrendsPlaceResponse.cs | using System;
using Twity.DataModels.Trends;
namespace Twity.DataModels.Responses
{
[Serializable]
public class TrendsPlaceResponse
{
public TrendsPlace[] items;
}
}
| mit | C# | |
df8813ae096fcc7cec4d471a138489b3cacda2fe | add really basic logger | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Core/Log.cs | TCC.Core/Log.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TCC
{
public static class Log
{
public static void CW(string line)
{
Console.WriteLine(line);
}
}
}
| mit | C# | |
cad6f59118a87e1291caf264cf9b83d60a00e9b3 | Add ICascaraType | whampson/cascara,whampson/bft-spec | Src/WHampson.Cascara/Types/ICascaraType.cs | Src/WHampson.Cascara/Types/ICascaraType.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# | |
e7a2e95363b4fd9ec5cfbc85737e9025351b5f90 | Create MetroButton.xaml.cs | ercsoftworks/bracket_generator | MetroButton.xaml.cs | MetroButton.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
... | mit | C# | |
9b96438d4fc17f2fe65369368b2668f9a38f2802 | Add snippet for YearMonth type (#1368) | BenJenkinson/nodatime,malcolmr/nodatime,nodatime/nodatime,malcolmr/nodatime,BenJenkinson/nodatime,nodatime/nodatime,jskeet/nodatime,jskeet/nodatime,malcolmr/nodatime,malcolmr/nodatime | src/NodaTime.Demo/YearMonthDemo.cs | src/NodaTime.Demo/YearMonthDemo.cs | // Copyright 2019 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using NUnit.Framework;
using System;
namespace NodaTime.Demo
{
public class YearMonthDemo
{
[Test]
public void ConstructionWithE... | apache-2.0 | C# | |
a0984f89b1bce138e984ab3299e643eb34ae0f39 | Add tests for the ExceptionsAttribute | horia141/nvalidate,horia141/nvalidate | test/ExceptionsAttributeTest.cs | test/ExceptionsAttributeTest.cs | using NUnit.Framework;
using System;
namespace NValidate.Tests
{
[TestFixture]
public class ExceptionsAttributeTest
{
[Test]
public void GetExceptionsSetEmpty()
{
var attribute = new ExceptionsAttribute();
Assert.That(attribute.GetExceptionsSet... | mit | C# | |
0032501f20adb680738a9d3e28f7d3a91f342ccb | Add tests for Sha256 class | ektrah/nsec | tests/Algorithms/Sha256Tests.cs | tests/Algorithms/Sha256Tests.cs | using System;
using NSec.Cryptography;
using Xunit;
namespace NSec.Tests.Algorithms
{
public static class Sha256Tests
{
public static readonly string HashOfEmpty = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
[Fact]
public static void HashEmpty()
{
... | mit | C# | |
1077a8a3925a4fede6ee0d775550820ec4e541a2 | add stub media-on-a-prim (shared media) module | rryk/omp-server,allquixotic/opensim-autobackup,ft-/opensim-optimizations-wip-tests,QuillLittlefeather/opensim-1,OpenSimian/opensimulator,ft-/opensim-optimizations-wip-tests,TomDataworks/opensim,RavenB/opensim,ft-/arribasim-dev-extras,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,bravelittlescientist/opensim-performance,BogusCur... | OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs | OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | bsd-3-clause | C# | |
8b795cd52a2bbb7b955d73564c2c6d904505c11c | Add very simple stacking test | johnneijzen/osu,peppy/osu,UselessToucan/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,DrabWeb/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,naoey/osu,smoogipoo/osu,DrabWeb/osu,EVAST9919/osu,ZLima12/osu,naoey/osu,smoogipooo/osu,peppy/osu,johnneijzen/osu,2yangk23/osu,naoey/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,ppy/... | osu.Game.Rulesets.Osu.Tests/StackingTest.cs | osu.Game.Rulesets.Osu.Tests/StackingTest.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.IO;
using System.Linq;
using System.Text;
using NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Tests.Beatmaps... | mit | C# | |
6758ab45e4e556eafe5c21ce2b1ed0685de644d5 | Add event arguments | It423/tron,wrightg42/tron | Tron/Tron/EventArgs/TimerChangedEventArgs.cs | Tron/Tron/EventArgs/TimerChangedEventArgs.cs | // TimerChangedEventArgs.cs
// <copyright file="TimerChangedEventArgs.cs"> This code is protected under the MIT License. </copyright>
namespace Tron.EventArgs
{
/// <summary>
/// The event arguments for when the timer changes.
/// </summary>
public class TimerChangedEventArgs : System.EventArgs
{
... | mit | C# | |
858774326b416cac7f3fc1f84a1f588870fb1b2b | Add Hammock2 JSON tests | NServiceKit/NServiceKit,MindTouch/NServiceKit,MindTouch/NServiceKit,timba/NServiceKit,nataren/NServiceKit,ZocDoc/ServiceStack,NServiceKit/NServiceKit,ZocDoc/ServiceStack,timba/NServiceKit,ZocDoc/ServiceStack,MindTouch/NServiceKit,nataren/NServiceKit,timba/NServiceKit,MindTouch/NServiceKit,timba/NServiceKit,NServiceKit/... | tests/RazorRockstars.Console.Files/DynamicJsonTests.cs | tests/RazorRockstars.Console.Files/DynamicJsonTests.cs | using NUnit.Framework;
using ServiceStack.Razor;
using ServiceStack.Text;
namespace RazorRockstars.Console.Files
{
[TestFixture]
public class DynamicJsonTests
{
[Test]
public void Can_serialize_dynamic_instance()
{
var dog = new { Name = "Spot" };
... | bsd-3-clause | C# | |
94559a95e19515618186bf6fc103d059c44236a9 | Change wording on first shiney collect | harjup/ChillTreasureTime | src/ChillTeasureTime/Assets/src/scripts/Levels/ItemSpawn.cs | src/ChillTeasureTime/Assets/src/scripts/Levels/ItemSpawn.cs | using System;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class ItemSpawn : MonoBehaviour
{
public string Guid;
public static List<string> CollectedList = new List<string>();
public GameObject Shiney;
public CollectableType ShineyType;
private GuiCanvas... | using System;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class ItemSpawn : MonoBehaviour
{
public string Guid;
public static List<string> CollectedList = new List<string>();
public GameObject Shiney;
public CollectableType ShineyType;
private GuiCanvas... | mit | C# |
9a08cc8c04d8a45747736bcea22db930e53e3096 | Add test coverage of beat snapping hit circles | smoogipoo/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,peppy/osu-new,ppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipooo/osu,ppy/osu,smoogipoo/osu,ppy/osu | osu.Game.Rulesets.Osu.Tests/Editor/TestSceneBeatSnap.cs | osu.Game.Rulesets.Osu.Tests/Editor/TestSceneBeatSnap.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 NUnit.Framework;
using osu.Framework.Testing;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Osu.UI;
using osu.Game.Tests.Beatmaps;
using osuTK... | mit | C# | |
9363c71611b5186898695c8bdc6ea30f5c512a5c | Add camera control script | EquilibriumTechnologies/HackDay01,EquilibriumTechnologies/HackDay01 | HackDay1/Assets/scripts/CameraController.cs | HackDay1/Assets/scripts/CameraController.cs | using UnityEngine;
using System.Collections;
public class CameraController : MonoBehaviour {
public GameObject player;
private Vector3 offset;
private int zoom = 60;
public float smooth = 5;
// Use this for initialization
void Start () {
offset = transform.position - player.transform.position;
zoom = GetC... | mit | C# | |
64ae5cc2612114c0e1cf63025603ba16a4c26a01 | Create MiniKanren.cs | wallymathieu/csharp_ukanren,wallymathieu/csharp_ukanren | lib/MiniKanren.cs | lib/MiniKanren.cs | using System;
namespace MiniKanren{
}
| mit | C# | |
59c4dd6aba3a34c6e1ae0d325ee2ace4a899d16f | Add a test for projection collection | KodamaSakuno/Sakuno.Base | tests/Sakuno.Base.Tests/ProjectionCollectionTests.cs | tests/Sakuno.Base.Tests/ProjectionCollectionTests.cs | using Sakuno.Collections;
using System.Collections.ObjectModel;
using Xunit;
namespace Sakuno.Base.Tests
{
public static class ProjectionCollectionTests
{
[Fact]
public static void SimpleProjection()
{
var source = new ObservableCollection<int>();
var projection... | mit | C# | |
a0591fabba26a753d31801b9a278feba148664cc | Add the IOptionalFields interface | convertersystems/opc-ua-client | UaClient/ServiceModel/Ua/IOptionalFields.cs | UaClient/ServiceModel/Ua/IOptionalFields.cs | // Copyright (c) Converter Systems LLC. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Workstation.ServiceModel.Ua
{
/// <summary>
/// This interface should be implemented by every OPC Ua data type which is
/// derived f... | mit | C# | |
a2711bf1a851ae94164f3830b52f2a6632a17c3e | Add Client connection tests | Fredi/NetIRC | tests/NetIRC.Tests/ClientConnectionTests.cs | tests/NetIRC.Tests/ClientConnectionTests.cs | using NetIRC.Extensions;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Threading.Tasks;
using Xunit;
namespace NetIRC.Tests
{
public class ClientConnectionTests
{
private static User FakeUser = new User("test", "test");
[Fact]
public async Task WhenConnecti... | mit | C# | |
bc372d29de1a279c58297abfd8e7657bfdf83886 | Add OriginalMetadataTokenProvider. | Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver | src/AsmResolver.DotNet/Code/Cil/OriginalMetadataTokenProvider.cs | src/AsmResolver.DotNet/Code/Cil/OriginalMetadataTokenProvider.cs | using AsmResolver.DotNet.Builder.Metadata;
using AsmResolver.PE.DotNet.Metadata.Tables;
using AsmResolver.PE.DotNet.Metadata.UserStrings;
namespace AsmResolver.DotNet.Code.Cil
{
/// <summary>
/// Provides an implementation for the <see cref="IMetadataTokenProvider"/> interface that always returns the
/// o... | mit | C# | |
75f65c9f32543f0173383d79a9d1600e68256bd5 | Add hello controller | timmydo/gearup,timmydo/gearup,timmydo/gearup,timmydo/gearup | GearUp/src/GearUp/Controllers/HelloController.cs | GearUp/src/GearUp/Controllers/HelloController.cs |
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
using Microsoft.AspNet.Mvc;
using Microsoft.Framework.Logging;
using GearUp.Models;
using System.Threading.Tasks;
using GearUp.Services;
using System.Security.Claims;
using System;
using System.Collection... | mit | C# | |
d185c3b77cc87a07e335be6b6098992ce61c9c91 | add (empty) unit test for provider permissions | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EAS.Portal.UnitTests/Portal/Application/Commands/ProviderPermissions/UpdateProviderPermissionsCommandTests.cs | src/SFA.DAS.EAS.Portal.UnitTests/Portal/Application/Commands/ProviderPermissions/UpdateProviderPermissionsCommandTests.cs | using NUnit.Framework;
using SFA.DAS.Testing;
namespace SFA.DAS.EAS.Portal.UnitTests.Portal.Application.Commands.ProviderPermissions
{
[Parallelizable]
[TestFixture]
public class UpdateProviderPermissionsCommandTests : FluentTest<UpdateProviderPermissionsCommandTestsFixture>
{
}
public class U... | mit | C# | |
92cd7702206ea6382da47c3a3f7d291434b57fbb | Create MainWindow.cs | hallstromsimon/wearables | MainWindow.cs | MainWindow.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
... | apache-2.0 | C# | |
982a69d55d1494791eb6f9ed93cebc068274137c | Add Parser | StevenLiekens/Txt,StevenLiekens/TextFx | src/Txt.Core/Parser.cs | src/Txt.Core/Parser.cs | using System;
using JetBrains.Annotations;
namespace Txt.Core
{
public abstract class Parser<TElement, TResult> : IParser<TElement, TResult>
where TElement : Element
{
public TResult Parse(TElement value)
{
if (value == null)
{
throw new ArgumentN... | mit | C# | |
65c5c89bb01c7160ef518d6524224ae7c8039d57 | Define near-empty Table namespace and class | 12joan/hangman | table.cs | table.cs | using System;
namespace Table {
public class Table {
public int Width;
public int Spacing;
public static void Main(string[] args) {
}
}
}
| unlicense | C# | |
c8c46a8dbcadb5b0c845de7cd7ca6655e565c217 | Add thread culture tests | ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,EVAST9919/osu-framework | osu.Framework.Tests/Localisation/ThreadCultureTest.cs | osu.Framework.Tests/Localisation/ThreadCultureTest.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.Collections.Generic;
using System.Globalization;
using System.Threading;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Configura... | mit | C# | |
aa3aa91309af780ac7ec6e7e93dda41b7803268e | Test for #84 | z4kn4fein/stashbox | test/IssueTests/84_DefinesScope_does_not_work_correctly.cs | test/IssueTests/84_DefinesScope_does_not_work_correctly.cs | using Stashbox.Lifetime;
using Xunit;
namespace Stashbox.Tests.IssueTests
{
public class DefinesScopeSoesNotWorkCorrectly
{
[Fact]
public void DefinesScope_does_not_work_correctly()
{
using var container = new StashboxContainer()
.Register<ProductCache>(c =>... | mit | C# | |
d4eb0aced7526fc135ae640941eb601c7bf8fc85 | Add FFTF32 constructor that is marked as not introspectable | gstreamer-sharp/gstreamer-sharp,freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp,gstreamer-sharp/gstreamer-sharp,GStreamer/gstreamer-sharp,gstreamer-sharp/gstreamer-sharp,freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp,freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp,GStreamer/gstreamer-sharp,G... | sources/custom/FFTF32.cs | sources/custom/FFTF32.cs | // Copyright (C) 2013 Stephan Sundermann <stephansundermann@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any ... | lgpl-2.1 | C# | |
d2ca7609da3aed69be485b35afe08f41f172e828 | Add ApiRequestParams | YeastFx/Yeast | src/Yeast.WebApi/Data/ApiRequestParams.cs | src/Yeast.WebApi/Data/ApiRequestParams.cs | using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Linq;
namespace Yeast.WebApi.Data
{
/// <summary>
/// Base class for API request parameters
/// </summary>
public class ApiRequestParams
{
/// <summary>
/// List of navigation properties to include
... | mit | C# | |
b4c6894d13d96a9ba65162492459a2fe0a46de3e | Add test coverage for song select footer area | peppy/osu-new,peppy/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,smoogipooo/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,ppy/osu,UselessToucan/osu,ppy/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu | osu.Game.Tests/Visual/SongSelect/TestSceneSongSelectFooter.cs | osu.Game.Tests/Visual/SongSelect/TestSceneSongSelectFooter.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.Graphics;
using osu.Game.Screens.Select;
namespace osu.Game.Tests.Visual.SongSelect
{
public class TestSceneSongSelectFooter : OsuManualInputMana... | mit | C# | |
933f31c0570fa9ad4e9f3c9755e8a11897cc21a8 | Create ast.cs | EverGen1/Ever,EverGen1/Ever,EverGen1/Ever | ast.cs | ast.cs | public abstract class Stmt
{
}
| mit | C# | |
8f7041832e38dc7bd2be5994e8f855cc9bf8defe | Add EquipmentViewModel.cs | NinjaVault/NinjaHive,NinjaVault/NinjaHive | NinjaHive.WebApp/Models/EquipmentViewModel.cs | NinjaHive.WebApp/Models/EquipmentViewModel.cs | using System.Collections.Generic;
using System.Web.Mvc;
using System.ComponentModel;
using NinjaHive.Contract.Models;
namespace NinjaHive.WebApp.Models
{
[ValidateInput(false)]
public class EquipmentViewModel
{
public EquipmentModel EquipmentItem { get; set; }
public IEnumerable<TierModel... | apache-2.0 | C# | |
10a547bcf2132f20aeae96f9e379a638bae6b205 | add FilterListsDesignTimeDbContextFactory | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | src/FilterLists.Data/FilterListsDesignTimeDbContextFactory.cs | src/FilterLists.Data/FilterListsDesignTimeDbContextFactory.cs | using System;
using JetBrains.Annotations;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
namespace FilterLists.Data
{
[UsedImplicitly]
public class FilterListsDesignTimeDbContextFactory : IDesignTimeDbContextFactory<FilterListsDbContext>
{
private readonly int co... | mit | C# | |
ce1e93535c4d85c9acb6be4c867156fcc9b480d5 | Introduce Boxes class | AmadeusW/roslyn,marksantos/roslyn,natidea/roslyn,antonssonj/roslyn,paladique/roslyn,paulvanbrenk/roslyn,tsdl2013/roslyn,jmarolf/roslyn,tmeschter/roslyn,heejaechang/roslyn,kuhlenh/roslyn,sharadagrawal/Roslyn,michalhosala/roslyn,FICTURE7/roslyn,marksantos/roslyn,ErikSchierboom/roslyn,REALTOBIZ/roslyn,ljw1004/roslyn,james... | src/Compilers/Core/Portable/Collections/Boxes.cs | src/Compilers/Core/Portable/Collections/Boxes.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.CodeAnalysis.Collections
{
internal static class Boxes
{
public static readonly object BoxedTrue = true;
public s... | apache-2.0 | C# | |
2aa84eeb15935cb88cabda2658e48b243eb49825 | Add test | sakapon/KLibrary.Linq | KLibrary4/UnitTest/Linq/Lab/NumericsTest.cs | KLibrary4/UnitTest/Linq/Lab/NumericsTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using KLibrary.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using static KLibrary.Linq.Lab.Enumerable2;
namespace UnitTest.Linq.Lab
{
[TestClass]
public class NumericsTest
{
static void AssertNearlyEqual(do... | mit | C# | |
3b5d07868bf2e3f4431a3589330a1f9e7c8a3bca | Add IDateTrackable | uheerme/core,uheerme/core,uheerme/core | Samesound.Data/Interfaces/IDateTrackable.cs | Samesound.Data/Interfaces/IDateTrackable.cs | using System;
namespace Samesound.Data.Interfaces
{
public interface IDateTrackable
{
DateTime DateCreated { get; set; }
DateTime? DateUpdated { get; set; }
}
}
| mit | C# | |
a5bafa9f71fb756b1b6059761e9a898bf7e3d1e5 | Add KingOfTheHillChessGame class | ProgramFOX/Chess.NET | ChessDotNet.Variants/KingOfTheHill/KingOfTheHillChessGame.cs | ChessDotNet.Variants/KingOfTheHill/KingOfTheHillChessGame.cs | using ChessDotNet.Pieces;
using System.Collections.Generic;
namespace ChessDotNet.Variants.KingOfTheHill
{
public class KingOfTheHillChessGame : ChessGame
{
Position[] center = new Position[]
{
new Position(File.E, 4),
new Position(File.E, 5),
new Position(F... | mit | C# | |
4d4119218ae659a208de132210e1c73ef870e8a8 | Add Matt McNabb to authors | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/MattMcNabb.cs | src/Firehose.Web/Authors/MattMcNabb.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class MattMcNabb : IAmACommunityMember
{
public string FirstName => "Matt";
public string LastName =... | mit | C# | |
6986cdf999de051c7152087f1069733eea26421a | Create Quit.cs | MatrixNAN/Unity-Artist-Tools | Quit.cs | Quit.cs | using UnityEngine;
using System.Collections;
public class Quit : MonoBehaviour
{
public void Update()
{
if (Input.GetKeyDown(KeyCode.Escape))
{
Application.Quit();
}
}
}
| apache-2.0 | C# | |
b6d3010b03e08f10c6e77fc9521be081c11311f8 | Create BounceCamera.cs | romanlara/bounce-camera | BounceCamera.cs | BounceCamera.cs | // The MIT License (MIT)
//
// Copyright (c) 2014 Sergio Roman Lara Espinosa de los Monteros
// http://cocinemosvideojuegosenunity.blogspot.com/
//
// 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 t... | mit | C# | |
639d107cd2ff7fd73e4b1d20820ae7631737cf36 | Add Multisprites merger | IJEMIN/Unity3D-Kirino-Engine | Assets/KirinoEngine/Utils/SpriteMerger.cs | Assets/KirinoEngine/Utils/SpriteMerger.cs | using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
// Merge multiple Sprites as one sprite
public static class SpriteMerger
{
public static Sprite MergeSprite(Sprite[] sprites)
{
// 스프라이트 중 가장 큰 크기의 것으로 지정되야함
int width = 0;
int height = 0;
... | mit | C# | |
28c12c638aa59421e84b9057fcb78839dc0544cf | add SemVersionStyles enum (issue #38) | maxhauser/semver | Semver/SemVersionStyles.cs | Semver/SemVersionStyles.cs | using System;
namespace Semver
{
/// <summary>
/// Determines the styles that are allowed in version strings passed to the
/// <code>Parse</code> and <code>TryParse</code> methods of <see cref="SemVersion"/>.
/// </summary>
[Flags]
public enum SemVersionStyles
{
/// <sum... | mit | C# | |
be63533d017339d66baf98c91f94ea23ea13e558 | Create moveBoard.cs | softwarejimenez/funnyBall | Scripts/moveBoard.cs | Scripts/moveBoard.cs | using UnityEngine;
using System.Collections;
public class MoveBoard : MonoBehaviour {
public float speed;
private float rotX;
private float rotZ;
// Use this for initialization
void Start () {
//initialice rotation initial
rotX = 0;
rotZ = 0;
}
// Update is called once per frame
void FixedUpdat... | agpl-3.0 | C# | |
24d0411b85b03df4a6bcad5880f71e0d8b27a5f0 | Fix startup error - setup root view controller | albertoms/monotouch-samples,markradacz/monotouch-samples,kingyond/monotouch-samples,iFreedive/monotouch-samples,xamarin/monotouch-samples,W3SS/monotouch-samples,albertoms/monotouch-samples,albertoms/monotouch-samples,W3SS/monotouch-samples,xamarin/monotouch-samples,markradacz/monotouch-samples,markradacz/monotouch-samp... | MonoCatalog-MonoDevelop/AppDelegate.cs | MonoCatalog-MonoDevelop/AppDelegate.cs | using UIKit;
using Foundation;
namespace MonoCatalog
{
// The name AppDelegate is referenced in the MainWindow.xib file.
public partial class AppDelegate : UIApplicationDelegate
{
// This method is invoked when the application is ready to run
//
public override bool FinishedLaunching (UIApplication ... | using UIKit;
using Foundation;
namespace MonoCatalog
{
// The name AppDelegate is referenced in the MainWindow.xib file.
public partial class AppDelegate : UIApplicationDelegate
{
// This method is invoked when the application is ready to run
//
public override bool FinishedLaunching (UIApplication ... | mit | C# |
13f79cda93fc2f56f8a1b88b14791de979480aa0 | add missing file | NServiceBusSqlPersistence/NServiceBus.SqlPersistence | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("1.0.0")]
[assembly: AssemblyFileVersion("1.0.0")]
[assembly: AssemblyCopyright("Copyright NServiceBus. All rights reserved")]
[assembly: AssemblyCompany("NServiceBus Ltd.")]
| mit | C# | |
034b1cd13ffbf187079e45d504720d378c6ddd80 | Disable web request button until we will get result | iFreedive/monotouch-samples,albertoms/monotouch-samples,W3SS/monotouch-samples,albertoms/monotouch-samples,xamarin/monotouch-samples,xamarin/monotouch-samples,W3SS/monotouch-samples,markradacz/monotouch-samples,albertoms/monotouch-samples,xamarin/monotouch-samples,markradacz/monotouch-samples,kingyond/monotouch-samples... | HttpClient/AppDelegate.cs | HttpClient/AppDelegate.cs | using System;
using System.IO;
using CoreGraphics;
using Foundation;
using UIKit;
namespace HttpClient
{
// The name AppDelegate is referenced in the MainWindow.xib file.
public partial class AppDelegate : UIApplicationDelegate
{
// This method is invoked when the application has loaded its UI and its ready to r... | using System;
using System.IO;
using CoreGraphics;
using Foundation;
using UIKit;
namespace HttpClient
{
// The name AppDelegate is referenced in the MainWindow.xib file.
public partial class AppDelegate : UIApplicationDelegate
{
// This method is invoked when the application has loaded its UI and its ready to r... | mit | C# |
badcef9e6b32f78b54966e6d7a132085296bdb11 | Add file MainActivity.cs | ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate | userAuth.cpl/Droid/MainActivity.cs | userAuth.cpl/Droid/MainActivity.cs | using System;
using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace userAuth.cpl.Droid
{
[Activity (Label = "userAuth.cpl.Droid", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigCha... | mit | C# | |
2163a1375cc5d444c0a5403531746b880d875e73 | Add sample code in place of Hangman | 12joan/hangman | hangman.cs | hangman.cs | using System;
public class Hangman {
public static void Main(string[] args) {
Console.WriteLine("Hello, World!");
Console.WriteLine("You entered the following {0} command line arguments:",
args.Length );
for (int i=0; i < args.Length; i++) {
Console.WriteLine("{0}", args[i]);
}
}
}
| unlicense | C# | |
d91d6981987379e2ca8bf44bcc088ab86921e6e6 | Allow easy OrderBy custom Property | bussemac/n2cms,nicklv/n2cms,VoidPointerAB/n2cms,bussemac/n2cms,nimore/n2cms,DejanMilicic/n2cms,EzyWebwerkstaden/n2cms,VoidPointerAB/n2cms,EzyWebwerkstaden/n2cms,VoidPointerAB/n2cms,DejanMilicic/n2cms,bussemac/n2cms,nimore/n2cms,n2cms/n2cms,bussemac/n2cms,bussemac/n2cms,n2cms/n2cms,nicklv/n2cms,EzyWebwerkstaden/n2cms,Sn... | src/Framework/N2/Persistence/NH/Finder/OrderBy.cs | src/Framework/N2/Persistence/NH/Finder/OrderBy.cs | namespace N2.Persistence.NH.Finder
{
/// <summary>
/// Transition to the property to order by.
/// </summary>
public class OrderBy : N2.Persistence.Finder.IOrderBy
{
private QueryBuilder query;
public OrderBy(QueryBuilder query)
{
this.query = query;
}
#region IOrderBy Members
pub... | namespace N2.Persistence.NH.Finder
{
/// <summary>
/// Transition to the property to order by.
/// </summary>
public class OrderBy : N2.Persistence.Finder.IOrderBy
{
private QueryBuilder query;
public OrderBy(QueryBuilder query)
{
this.query = query;
}
#region IOrderBy Members
pub... | lgpl-2.1 | C# |
7407d4d88cf398a3d43a299fdb54d65b4ae4af5b | introduce HasExportsAttribute to support CodeEditor.Languages.CSharp.ContentType | Unity-Technologies/CodeEditor,Unity-Technologies/CodeEditor | src/CodeEditor.Composition/HasExportsAttribute.cs | src/CodeEditor.Composition/HasExportsAttribute.cs | using System;
namespace CodeEditor.Composition
{
/// <summary>
/// Marks an assembly as providing exports. The attribute provides a way
/// for clients to force a reference to the composition assembly and thus
/// take part in composition even when they only reference subclasses
/// of the <see cref="Expo... | mit | C# | |
251521efbd3c0db58a3380abfcc61c909ae29f01 | add JsonReader provider | olebg/Movie-Theater-Project | MovieTheater/MovieTheater.Framework/Core/Providers/JsonReader.cs | MovieTheater/MovieTheater.Framework/Core/Providers/JsonReader.cs | using MovieTheater.Framework.Core.Contracts;
using System.IO;
namespace MovieTheater.Framework.Core.Providers
{
public class JsonReader : IReader
{
public JsonReader(IReader reader, IWriter writer)
{
this.Reader = reader;
this.Writer = writer;
}
public ... | mit | C# | |
36fd5ead6dabfb1582b24bd81e179c2338bf1530 | split CsvConfig into a different class | gerryhigh/ServiceStack.Text,NServiceKit/NServiceKit.Text,meebey/ServiceStack.Text,mono/ServiceStack.Text,NServiceKit/NServiceKit.Text,mono/ServiceStack.Text,gerryhigh/ServiceStack.Text | src/ServiceStack.Text/CsvConfig.cs | src/ServiceStack.Text/CsvConfig.cs | using System;
using System.Collections.Generic;
namespace ServiceStack.Text
{
public static class CsvConfig<T>
{
private static Dictionary<string, string> customHeadersMap;
public static Dictionary<string, string> CustomHeadersMap
{
get
{
return customHeadersMap;
}
set
{
... | bsd-3-clause | C# | |
a9eb5c986f28223521ec85b3028ed96c32010b1c | Add build.cake | ericburcham/Reflections | build.cake | build.cake | var target = Argument("target", "Pack");
var configuration = Argument("configuration", "Release");
//////////////////////////////////////////////////////////////////////
// TASKS
//////////////////////////////////////////////////////////////////////
Task("Clean")
.WithCriteria(c => HasArgument("rebuild"))
.Do... | mit | C# | |
87b73da73edddc47f93d5c1a5edc6f8bae3ce6fa | Add failing test case | ppy/osu,NeoAdonis/osu,peppy/osu-new,UselessToucan/osu,peppy/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu,smoogipooo/osu,peppy/osu,NeoAdonis/osu | osu.Game.Tests/Mods/SettingsSourceAttributeTest.cs | osu.Game.Tests/Mods/SettingsSourceAttributeTest.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 NUnit.Framework;
using osu.Framework.Bindables;
using osu.Game.Configuration;
namespace osu.Game.Tests.Mods
{
[TestFixture]
public class... | mit | C# | |
ae8e6e73f8d0d225f626993a90b6e74c075d2a96 | add 2.cs | lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-e... | 01-50/02/2.cs | 01-50/02/2.cs | using System;
public class Euler {
static public void Main() {
int sum = 0;
int a = 0, b = 1;
while (b < 4000000) {
int tmp = b;
b = a + b;
a = tmp;
if (b % 2 == 0) {
sum += b;
}
}
Console.Out.Write... | mit | C# | |
d0f10efb214bd47b94abdc3eb4035ec20f55ab92 | Add ${aspnet-traceidentifier} (ASP.NET Core only) | 304NotModified/NLog.Web,NLog/NLog.Web | NLog.Web.AspNetCore/LayoutRenderers/Class.cs | NLog.Web.AspNetCore/LayoutRenderers/Class.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NLog.LayoutRenderers;
namespace NLog.Web.LayoutRenderers
{
/// <summary>
/// Print the TraceIdentifier
/// </summary>
/// <remarks>.NET Core Only</remarks>
[LayoutRenderer("asp... | bsd-3-clause | C# | |
9be78e73ece0a32b418d43eb12b90b6d3a3f030a | Create transfile.cs | martinWJ/filetrams_Test | transfile.cs | transfile.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace transferFile_test
{
class Program
{
static void Main(string[] args)
{
/////////////////////////////////////////////////... | apache-2.0 | C# | |
43c6ecfbbebe65b83f1f4a238cbc6d3d0be2edcd | Add HexadecimalDigitParser | StevenLiekens/Txt,StevenLiekens/TextFx | src/Txt.ABNF/Core/HEXDIG/HexadecimalDigitParser.cs | src/Txt.ABNF/Core/HEXDIG/HexadecimalDigitParser.cs | using System;
using JetBrains.Annotations;
using Txt.ABNF.Core.DIGIT;
using Txt.Core;
namespace Txt.ABNF.Core.HEXDIG
{
public class HexadecimalDigitParser : Parser<HexadecimalDigit, int>
{
private readonly IParser<Digit, int> digitParser;
public HexadecimalDigitParser([NotNull] IParser<Digit,... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.