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 |
|---|---|---|---|---|---|---|---|---|
5a49ac32056be2019655dcce03b122624a75b19f | Add the id generator | Mattias1/builderbuilder | IdGenerator.cs | IdGenerator.cs | using System;
using System.Collections.Generic;
namespace Something.Something.TestHelpers
{
public class IdGenerator
{
public enum Type { Unspecified };
private static IdGenerator idGenerator;
private Dictionary<Type, int> currentIds;
private object lockObj = new object();
... | mit | C# | |
2324131f1979f36ca889376ab8ed245ccbbc8dec | Create PlayerPrefs.cs | carcarc/unity3d | PlayerPrefs.cs | PlayerPrefs.cs | //Save
PlayerPrefs.SetInt ("儲存名稱I", 整數變數);
PlayerPrefs.SetFloat ("儲存名稱F", 浮點數變數);
PlayerPrefs.SetString ("儲存名稱S", 字串變數);
//Get
整數變數 = PlayerPrefs.GetInt ("儲存名稱I");
浮點數變數 = PlayerPrefs.GetFloat ("儲存名稱F");
字串變數 = PlayerPrefs.GetString ("儲存名稱S");
//Delete
PlayerPrefs.DeleteAll();
PlayerPrefs.DeleteKey("儲存名稱I");
| mit | C# | |
16ab06af1cbe1209bb9080b40e30df03fe67160b | Create Base.cs | jon-lad/Battlefleet-Gothic | Ships/Base.cs | Ships/Base.cs | using UnityEngine;
using System.Collections;
public class Base : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnColisionEnter(Collision col){
if (col.gameObject.name == "Blast Marker") {
transform.parent.SendMessage("Bla... | mit | C# | |
a4bd5c2a483b0b8f4e3d28075e469e96dd30923b | fix analyzer warnings in test | AerisG222/mikeandwan.us,AerisG222/mikeandwan.us,AerisG222/mikeandwan.us,AerisG222/mikeandwan.us,AerisG222/mikeandwan.us | tests/Maw.Data.Tests/GlobalSuppressions.cs | tests/Maw.Data.Tests/GlobalSuppressions.cs | [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("", "CA1303")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("", "CA1707")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("", "CA1822")]
| mit | C# | |
2d66869234e659f2e96d6a4b7cb289f7d4c8c6a2 | Make class public so it can be used by consumers of CSLA .NET. | ronnymgm/csla-light,BrettJaner/csla,rockfordlhotka/csla,ronnymgm/csla-light,MarimerLLC/csla,rockfordlhotka/csla,jonnybee/csla,BrettJaner/csla,BrettJaner/csla,JasonBock/csla,jonnybee/csla,JasonBock/csla,MarimerLLC/csla,jonnybee/csla,ronnymgm/csla-light,JasonBock/csla,MarimerLLC/csla,rockfordlhotka/csla | cslacs/Csla/Core/ObjectCloner.cs | cslacs/Csla/Core/ObjectCloner.cs | using System;
using System.IO;
using Csla.Serialization;
namespace Csla.Core
{
/// <summary>
/// This class provides an implementation of a deep
/// clone of a complete object graph. Objects are
/// copied at the field level.
/// </summary>
public static class ObjectCloner
{
#if NET20
/// <summary>
... | using System;
using System.IO;
using Csla.Serialization;
namespace Csla.Core
{
internal static class ObjectCloner
{
#if NET20
/// <summary>
/// Clones an object.
/// </summary>
/// <param name="obj">The object to clone.</param>
/// <remarks>
/// <para>The object to be cloned must be seriali... | mit | C# |
099685e6baf344be7ede4fe5056786844a12850e | Add Serializable to LimitManager. | cbredlow/orleans,centur/orleans,jthelin/orleans,SoftWar1923/orleans,dotnet/orleans,zhangf911/orleans,hoopsomuah/orleans,Liversage/orleans,NaseUkolyCZ/orleans,Carlm-MS/orleans,dVakulen/orleans,kucheruk/orleans,ElanHasson/orleans,kowalot/orleans,jdom/orleans,ibondy/orleans,kucheruk/orleans,skalpin/orleans,garbervetsky/or... | src/Orleans/Configuration/LimitManager.cs | src/Orleans/Configuration/LimitManager.cs | /*
Project Orleans Cloud Service SDK ver. 1.0
Copyright (c) Microsoft Corporation
All rights reserved.
MIT License
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,
inc... | /*
Project Orleans Cloud Service SDK ver. 1.0
Copyright (c) Microsoft Corporation
All rights reserved.
MIT License
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,
inc... | mit | C# |
ff410638dba353ade55334274ff041eb53aebd89 | Add product component entity | jontansey/.Net-Core-Ecommerce-Base,jontansey/.Net-Core-Ecommerce-Base | src/Shop.Core/Entites/ProductComponent.cs | src/Shop.Core/Entites/ProductComponent.cs | using System.ComponentModel.DataAnnotations;
using Shop.Core.BaseObjects;
using Shop.Core.Interfaces;
namespace Shop.Core.Entites
{
public class ProductComponent : LifetimeBase, IReferenceable<ProductComponent>
{
[Key]
public int ProductComponentId { get; set; }
public string ProductCo... | mit | C# | |
2077527906e851b56f117a4ec92779396d2ee019 | Add RepositoryAddOnBuilder class | rpaschoal/DynamicRepository | DynamicRepository/RepositoryAddOnBuilder.cs | DynamicRepository/RepositoryAddOnBuilder.cs | using DynamicRepository.Resiliency;
using System;
using System.Collections.Generic;
using System.Text;
namespace DynamicRepository
{
public class RepositoryAddOnBuilder<Key, Entity> where Entity : class
{
private IRepository<Key, Entity> _repositoryBuild;
public RepositoryAddOnBuilder(IReposi... | mit | C# | |
a1c5d28068a888ae3ea713362fb819ccda3ba7b4 | Set up results output interface | MelHarbour/timenet-sync | TimeNetSync/TimeNetSync/Services/IResultsOutput.cs | TimeNetSync/TimeNetSync/Services/IResultsOutput.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TimeNetSync.Services
{
public interface IResultsOutput
{
}
}
| mit | C# | |
67b3e934b2653d4e9e34c18d66ed07a8a007b99c | Add clipboard monitor | Schlechtwetterfront/snipp | Clipboard/ClipboardManager.cs | Clipboard/ClipboardManager.cs | using System;
using System.Runtime.InteropServices;
using System.Windows.Interop;
namespace clipman.Clipboard
{
public sealed class ClipboardMonitor : IDisposable
{
private bool disposed = false;
private static class NativeMethods
{
/// <summary>
/// Places the... | apache-2.0 | C# | |
310e1ce5995e56e6be34ef144f50a1d11f385c49 | Add basic event setup | Vultour/music-tracker | MusicTracker/MusicTracker/GUI/EventHelpers.cs | MusicTracker/MusicTracker/GUI/EventHelpers.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MusicTracker.Core;
namespace MusicTracker.GUI
{
internal class AddTrackEventArgs : EventArgs
{
public string Title { get; private set; }
public string Artist { get; priv... | apache-2.0 | C# | |
987c8483fcbe8753b503146bbc1e8b5ac4977a11 | Add BasePlugin | KpdApps/KpdApps.Common.MsCrm2015 | BasePlugin.cs | BasePlugin.cs | using System;
using Microsoft.Xrm.Sdk;
namespace KpdApps.Common.MsCrm2015
{
public abstract class BasePlugin : IPlugin
{
public readonly string UnsecureConfiguration;
public readonly string SecureConfiguration;
/// <summary>
/// Constructor
/// </summary>
/// <param name="unsecureConfiguration"></para... | mit | C# | |
f8f4271227aa5991b51bb16cc0c790fe584eff9d | Bump version | robv8r/FluentValidation,GDoronin/FluentValidation | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | using System.Reflection;
[assembly : AssemblyVersion("6.2.1.0")]
[assembly : AssemblyFileVersion("6.2.1.0")] | using System.Reflection;
[assembly : AssemblyVersion("6.2.0.0")]
[assembly : AssemblyFileVersion("6.2.0.0")] | apache-2.0 | C# |
43568be035a4c41b92fd9c6b7aea07f2415c9ae8 | Fix compression tests | NickCraver/dotless,rytmis/dotless,modulexcite/dotless,modulexcite/dotless,rytmis/dotless,dotless/dotless,rytmis/dotless,r2i-sitecore/dotless,rytmis/dotless,r2i-sitecore/dotless,r2i-sitecore/dotless,modulexcite/dotless,r2i-sitecore/dotless,dotless/dotless,modulexcite/dotless,NickCraver/dotless,r2i-sitecore/dotless,NickC... | src/dotless.Test/CompressedSpecFixtureBase.cs | src/dotless.Test/CompressedSpecFixtureBase.cs | namespace dotless.Test.Specs.Compression
{
using Core.Parser.Infrastructure;
using NUnit.Framework;
public class CompressedSpecFixtureBase : SpecFixtureBase
{
[SetUp]
public void Setup()
{
DefaultEnv = () => new Env { Compress = true };
}
}
} | namespace dotless.Test.Specs.Compression
{
using Core.Parser.Infrastructure;
public class CompressedSpecFixtureBase : SpecFixtureBase
{
public CompressedSpecFixtureBase()
{
DefaultEnv = () => new Env { Compress = true };
}
}
} | apache-2.0 | C# |
9a34a5dfc93c635ddd8eae3f78aa7602e7c6c7dc | Fix autosave and refresh on shared projects | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | resharper/resharper-unity/src/Rider/RiderUnityDocumentOperationsImpl.cs | resharper/resharper-unity/src/Rider/RiderUnityDocumentOperationsImpl.cs | using JetBrains.Annotations;
using JetBrains.Application.changes;
using JetBrains.Application.FileSystemTracker;
using JetBrains.Application.Threading;
using JetBrains.DocumentManagers;
using JetBrains.DocumentModel;
using JetBrains.Lifetimes;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Host.Features.Docume... | apache-2.0 | C# | |
5f238dfaf21b6c1fc600c6add2cf6fd18387c30e | create text stream stat test. | AxeDotNet/AxePractice.CSharpViaTest | src/CSharpViaTest.IOs/10_HandleText/CreateStatisticsOnCharacterUsage.cs | src/CSharpViaTest.IOs/10_HandleText/CreateStatisticsOnCharacterUsage.cs | using System.Collections.Generic;
using System.IO;
using System.Text;
using Xunit;
namespace CSharpViaTest.IOs._10_HandleText
{
/*
* Description
* ===========
*
* This test will show the basic usage of text stream.
*
* Difficulty: Super Easy
*/
public class CreateStatisti... | mit | C# | |
977a1b80faac49b1facef5da30197ed8dc6085b6 | Revert change to CustomDataRegressionAlgorithm | AnshulYADAV007/Lean,StefanoRaggi/Lean,AnshulYADAV007/Lean,kaffeebrauer/Lean,Jay-Jay-D/LeanSTP,AnshulYADAV007/Lean,kaffeebrauer/Lean,QuantConnect/Lean,JKarathiya/Lean,Mendelone/forex_trading,JKarathiya/Lean,jameschch/Lean,AlexCatarino/Lean,redmeros/Lean,AlexCatarino/Lean,Jay-Jay-D/LeanSTP,kaffeebrauer/Lean,Mendelone/for... | Algorithm.CSharp/CustomDataRegressionAlgorithm.cs | Algorithm.CSharp/CustomDataRegressionAlgorithm.cs | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* 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 ... | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* 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 ... | apache-2.0 | C# |
09a28d1efd4c14f90711008d995a8ead016319d9 | add XMLParseUtility.cs | NDark/ndinfrastructure,NDark/ndinfrastructure | Unity/ConversationManager/DataIO/XMLParseUtility.cs | Unity/ConversationManager/DataIO/XMLParseUtility.cs | /*
@file XMLParseUtility.cs
@author NDark
@date 20170401 file started.
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Xml;
public static partial class XMLParseUtility
{
/*
<Take TakeUID="2" PotraitLeft="Orc" PotraitRight="" ContentString="Cowbay" />
*/
public sta... | mit | C# | |
0de27a1570820f377b3d168c3a8975d81d4d73f1 | Fix issue #563 | hoffmann4/MetaMorpheus,zrolfs/MetaMorpheus,rmillikin/MetaMorpheus,XRSHEERAN/MetaMorpheus,lschaffer2/MetaMorpheus,smith-chem-wisc/MetaMorpheus,lonelu/MetaMorpheus | enginelayer/localization/localizationengine.cs | enginelayer/localization/localizationengine.cs | using MassSpectrometry;
using MzLibUtil;
using System;
using System.Collections.Generic;
using System.Linq;
namespace EngineLayer
{
public class LocalizationEngine : MetaMorpheusEngine
{
#region Private Fields
private readonly IEnumerable<Psm> allResultingIdentifications;
private read... | mit | C# | |
92f0af7fe67f5c19833497d977d15beacf83e65d | Make skeleton Implementation of WalletService | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | MagicalCryptoWallet/Services/WalletService.cs | MagicalCryptoWallet/Services/WalletService.cs | using MagicalCryptoWallet.Helpers;
using MagicalCryptoWallet.KeyManagement;
using MagicalCryptoWallet.Logging;
using NBitcoin;
using NBitcoin.Protocol;
using NBitcoin.Protocol.Behaviors;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
namespace Magical... | mit | C# | |
114a6354836a3b8010092e301c714b5e4ce01318 | Create Tool.cs | BorisMilkman/PathFinding3D | Unity3d/Scripts/Tool.cs | Unity3d/Scripts/Tool.cs | using UnityEngine;
public class Tool {
public static Vector3 getSceneCoordinates(Vector3 gridCoordinates) {
return new Vector3(
gridCoordinates.x * Grid.tileSize + Grid.tileSize / 2,
gridCoordinates.y * Grid.tileSize + Grid.tileSize / 2,
gridCoordinates.z * Grid.tileSize +... | mit | C# | |
4865b5262c7ce628f07ce815df6a554b279a1e33 | Create Grid.cshtml | CarmelSchvartzman/MVC_WebGrid,CarmelSoftware/MVC_WebGrid | Views/Posts/Grid.cshtml | Views/Posts/Grid.cshtml | @model IEnumerable<AdvancedMVC.Models.Blog>
@{
ViewBag.Title = "Grid";
}
<h2>Grid</h2>
<p>
@Html.ActionLink("Create New", "Create")
</p>
@{ var grid = new WebGrid(Model, new []{ "Title", "MainPicture"},rowsPerPage: 2, ajaxUpdateContainerId:"gridDIV"); }
<link href="~/Content/index.css" rel="stylesheet" />
... | mit | C# | |
3a766c2210a5614cd3a8e3971ec0697b5b384963 | Create Staircase.cs | costincaraivan/hackerrank,costincaraivan/hackerrank | algorithms/warmup/Staircase.cs | algorithms/warmup/Staircase.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Solution {
static void Main(String[] args) {
int n = Convert.ToInt32(Console.ReadLine());
for(int i = 0; i < n; i++)
{
var line = "";
for (int j = 0; j < n; j++)
{
... | mit | C# | |
8b5250df19c0d28b56f46916532e84d1f303e8d0 | Add InternalsVisibleTo attribute | xin9le/DeclarativeSql | src/DeclarativeSql/Internals/InternalsVisibleTo.cs | src/DeclarativeSql/Internals/InternalsVisibleTo.cs | using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("DeclarativeSql.Dapper")]
[assembly: InternalsVisibleTo("DeclarativeSql.Tests")]
| mit | C# | |
0b33a714e3710c243f879e728bfcaad617ce5286 | Add DefaultConverters static class | NFig/NFig | NFig/Converters/DefaultConverters.cs | NFig/Converters/DefaultConverters.cs | using System;
using System.Collections.Generic;
using JetBrains.Annotations;
namespace NFig.Converters
{
static class DefaultConverters
{
static readonly Dictionary<Type, ISettingConverter> s_defaultConverters = new Dictionary<Type, ISettingConverter>
{
[typeof(bool)] = new Boolean... | mit | C# | |
90dc0cee6bd1cb54b2c1f0c35bcfc418b384d02d | use https in web view in launcher window | flibitijibibo/TrueCraft,illblew/TrueCraft,illblew/TrueCraft,illblew/TrueCraft,SirCmpwn/TrueCraft,SirCmpwn/TrueCraft,SirCmpwn/TrueCraft,flibitijibibo/TrueCraft,flibitijibibo/TrueCraft | TrueCraft.Launcher/LauncherWindow.cs | TrueCraft.Launcher/LauncherWindow.cs | using System;
using Xwt;
using System.Diagnostics;
using Xwt.Drawing;
using TrueCraft.Launcher.Views;
using TrueCraft.Core;
using System.Reflection;
namespace TrueCraft.Launcher
{
public class LauncherWindow : Window
{
public TrueCraftUser User { get; set; }
public HBox MainContainer { get; s... | using System;
using Xwt;
using System.Diagnostics;
using Xwt.Drawing;
using TrueCraft.Launcher.Views;
using TrueCraft.Core;
using System.Reflection;
namespace TrueCraft.Launcher
{
public class LauncherWindow : Window
{
public TrueCraftUser User { get; set; }
public HBox MainContainer { get; s... | mit | C# |
b54257acf635ea8c8c11bd72e8c81a9a9eca7b7c | Add missing file for named tabs | jcmoyer/Yeena | Yeena/PathOfExile/PoEStashTabInfo.cs | Yeena/PathOfExile/PoEStashTabInfo.cs | // Copyright 2013 J.C. Moyer
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | apache-2.0 | C# | |
5fbe811ec317b335ddc729cf7cd6663e183775fe | add C# 7.0 Tuple example. | devlights/try-csharp | TryCSharp.Samples/Basic/BuiltinTupleSamples01.cs | TryCSharp.Samples/Basic/BuiltinTupleSamples01.cs | using TryCSharp.Common;
namespace TryCSharp.Samples.Basic
{
/// <summary>
/// C# 7.0 の組み込みタプル型のサンプルです。
/// </summary>
[Sample]
public class BuiltinTupleSamples01 : IExecutable
{
public void Execute()
{
//
// C# 7.0 からサポートされた 組み込みタプル型のサンプル
// ... | mit | C# | |
84554bcc87550734f269383d821c754e8d3204fc | Add StudentsController | denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs | src/Diploms.WebUI/Controllers/StudentsController.cs | src/Diploms.WebUI/Controllers/StudentsController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Diploms.Core;
using Diploms.Dto;
using Diploms.Services.Students;
namespace Diploms.WebUI.Controllers
{
[Route("api/[controller]")]
public class StudentsController : Controller... | mit | C# | |
ae607eff9bec71990dfd233b3fa30bf798954439 | Set WebApiConfig to use attribute routing | SkeptiForum/facebook-archive,SkeptiForum/facebook-archive,SkeptiForum/facebook-archive | Website/App_Start/WebApiConfig.cs | Website/App_Start/WebApiConfig.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Headers;
using System.Web.Http;
namespace SkeptiForum.Archive {
public static class WebApiConfig {
public static void Register(HttpConfiguration config) {
// Web API configuration and services
config.Formatte... | mit | C# | |
c1db4f27d1c67fb5bb90f9661298ff589360a3f8 | Add DotNet default settings. | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.Common/Tools/DotNet/DotNetTasks.cs | source/Nuke.Common/Tools/DotNet/DotNetTasks.cs | // Copyright Matthias Koch 2017.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using Nuke.Common.Tools.GitVersion;
using Nuke.Core;
using Nuke.Core.Tooling;
namespace Nuke.Common.Tools.DotNet
{
public static partial class DotNetTas... | mit | C# | |
65fde1cf7a9744d68d479ae8cd3162d068fd71d0 | Fix line endings | paparony03/osu-framework,ZLima12/osu-framework,peppy/osu-framework,Nabile-Rahmani/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,Nabile-Rahmani/osu-framework,paparony03/osu-framework,naoey/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,default0/osu-framework,DrabWeb/osu-f... | osu.Framework/Threading/AudioThread.cs | osu.Framework/Threading/AudioThread.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 System;
namespace osu.Framework.Threading
{
public class AudioThread : GameThread
{
public AudioThread(Action onNewFrame, stri... | // 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 System;
namespace osu.Framework.Threading
{
public class AudioThread : GameThread
{
public AudioThread(Action onNewFrame, string thread... | mit | C# |
5ce4b3899408fd56a475f7df16437817ae27365e | Add PreservedMemory | Spreads/Spreads | src/Spreads.Core/Buffers/PreservedMemory.cs | src/Spreads.Core/Buffers/PreservedMemory.cs | using System;
using System.Buffers;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace Spreads.Buffers {
// NB this pattern will soon be added to CoreFxLab upstream, but for now
// imitate the API with *Pr*eserved instead of *R*eserved names.
// We achieve safe dispos... | mpl-2.0 | C# | |
df533ff28822a223aec8fc88e4253d8d3f7ab873 | Add IJsonStream extensions | sonvister/Binance | src/Binance/Extensions/JsonStreamExtensions.cs | src/Binance/Extensions/JsonStreamExtensions.cs | using System;
using System.Linq;
// ReSharper disable once CheckNamespace
namespace Binance.Stream
{
public static class JsonStreamExtensions
{
/// <summary>
///
/// </summary>
/// <param name="jsonStream"></param>
/// <param name="observer"></param>
public sta... | mit | C# | |
1227267447f002042dd25a5e619c97014ba4608f | Create MaskAttribute.cs | estebanmurchio/MaskAttribute,estebanmurchio/MaskAttribute | src/MaskAttribute.cs | src/MaskAttribute.cs | using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Mvc;
namespace Infrastructure.Attributes
{
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class MaskAttribute : Attribute, IMetadataAware
{
public string Selector { get; private set; }
... | mit | C# | |
26df2be5823c1e1ec770d7937cbe86c6294cdcab | add Natrij | SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming | Kattis-Solutions/Natrij.cs | Kattis-Solutions/Natrij.cs | using System;
public class Test
{
public static void Main()
{
string[] aw=Console.ReadLine().Split(':');
string[] ak=Console.ReadLine().Split(':');
int[] naw = new int[3];
int[] nak = new int[3];
int j, m, d;
for (int i = 0; i < 3; i++)
{
... | mit | C# | |
b798454c1179d8ec303b7eade746af46ad2a768b | Verify NotifyFault called will properly fail a filter execution | phatboyg/MassTransit,MassTransit/MassTransit,MassTransit/MassTransit,phatboyg/MassTransit | tests/MassTransit.Tests/RequestFilter_Specs.cs | tests/MassTransit.Tests/RequestFilter_Specs.cs | namespace MassTransit.Tests
{
using System;
using System.Threading.Tasks;
using MassTransit.Testing;
using Microsoft.Extensions.DependencyInjection;
using Middleware;
using NUnit.Framework;
using TestFramework.Messages;
[TestFixture]
public class Using_a_request_filter_with_request... | apache-2.0 | C# | |
84e1bacf09a723e18750f4f2c422ff49b79d6374 | Create GlobalSuppressions.cs | hprose/hprose-dotnet | proj/Hprose.RPC.Owin/GlobalSuppressions.cs | proj/Hprose.RPC.Owin/GlobalSuppressions.cs |
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Globaliza... | mit | C# | |
564556b0d03867d6a498aa7dff0cba2e4e16ab6f | Update assembly info to version 3.5.0 | RedX2501/Bonobo-Git-Server,yonglehou/Bonobo-Git-Server,crowar/Bonobo-Git-Server,yonglehou/Bonobo-Git-Server,forgetz/Bonobo-Git-Server,anyeloamt1/Bonobo-Git-Server,PGM-NipponSysits/IIS.Git-Connector,RedX2501/Bonobo-Git-Server,willdean/Bonobo-Git-Server,PGM-NipponSysits/IIS.Git-Connector,forgetz/Bonobo-Git-Server,PGM-Nip... | Bonobo.Git.Server/Properties/AssemblyInfo.cs | Bonobo.Git.Server/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Web;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly:... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Web;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly:... | mit | C# |
ca8d33e11ad6001644b285fb25ded60d0a456a21 | add signup query check user | ravjotsingh9/DBLike | DBLike/Server/DatabaseAccess/Query.SignUp.cs | DBLike/Server/DatabaseAccess/Query.SignUp.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Server.DatabaseAccess
{
public partial class Query
{
... | apache-2.0 | C# | |
4f5722da825e08df63957aee835b3dad15a849d3 | Add c# sourcecode to The Descent | joand/codingame,joand/codingame,joand/codingame,joand/codingame,joand/codingame,joand/codingame | easy/onboarding/src/main/java/6nguyen/App.cs | easy/onboarding/src/main/java/6nguyen/App.cs | using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
/**
* The while loop represents the game.
* Each iteration represents a turn of the game
* where you are given inputs (the heights of the mountains)
* and where you have to print an outp... | mit | C# | |
d5cac9639dae9bc0be3a17f3a4cf086dbcff0009 | Create ToggleIsExpandedOnDoubleTappedBehavior.cs | wieslawsoltes/AvaloniaBehaviors,XamlBehaviors/XamlBehaviors,XamlBehaviors/XamlBehaviors,wieslawsoltes/AvaloniaBehaviors | src/Avalonia.Xaml.Interactions/Core/ToggleIsExpandedOnDoubleTappedBehavior.cs | src/Avalonia.Xaml.Interactions/Core/ToggleIsExpandedOnDoubleTappedBehavior.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Xaml.Interactivity;
namespace Avalonia.Xaml.Interactions.Core
{
/// <summary>
/// T... | mit | C# | |
0241148385c3687e28c717bdc13b772e787e2223 | Add extensive tests | peppy/osu-new,EVAST9919/osu,ppy/osu,2yangk23/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,peppy/osu,smoogipooo/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,johnneijzen/osu,smoogipoo/osu,NeoAdonis/osu,ZLima12/osu,peppy/osu,ppy/osu,DrabWeb/osu,NeoAdonis/osu,DrabWeb/osu,smoogipoo/osu,UselessToucan/osu,johnneijzen/osu,EVAS... | osu.Game.Tests/Beatmaps/Formats/ParsingTest.cs | osu.Game.Tests/Beatmaps/Formats/ParsingTest.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.Globalization;
using NUnit.Framework;
using osu.Game.Beatmaps.Formats;
namespace osu.Game.Tests.Beatmaps.Formats
{
[TestFixture]
publi... | mit | C# | |
b18a2374f94e67a3e2a24aaedcc32a2363faf35f | Add models for notification emails. | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform | src/CompetitionPlatform/Models/NotificationModels.cs | src/CompetitionPlatform/Models/NotificationModels.cs | using System;
namespace CompetitionPlatform.Models
{
public class Initiative
{
public string FirstName { get; set; }
public string ProjectId { get; set; }
public DateTime ProjectCreatedDate { get; set; }
public string ProjectAuthorName { get; set; }
public string Projec... | mit | C# | |
f252873c5e1c96874a69b5ef7a5204d1e87df963 | Create GroupLibraryView.xaml.cs | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/Draw2D/Views/Containers/GroupLibraryView.xaml.cs | src/Draw2D/Views/Containers/GroupLibraryView.xaml.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
namespace Draw2D.Views.Containers
{
public class GroupLibraryView : UserControl
{
public Grou... | mit | C# | |
6e12586e7604c6f3e5a26356933f4ab15fa295c5 | Add csharp | sargeant45/firstprogram,soops/firstprogram,sargeant45/firstprogram,sargeant45/firstprogram,soops/firstprogram,soops/firstprogram,soops/firstprogram,sargeant45/firstprogram,sargeant45/firstprogram,soops/firstprogram | csharp/barnacules.cs | csharp/barnacules.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// Namespace
namespace EthansCoolAppCode
{
// Class (contains functionality)
class Program
{
// Function (entry point)
static void Main(string[] args)
{
Pr... | unlicense | C# | |
c7ff596aa72d2f2a5930e6d0bcc7b45837e8bdba | Remove Impl from namespace (make the solution more solid) | WaltChen/NDatabase,WaltChen/NDatabase | src/Odb/DefaultCoreProvider.cs | src/Odb/DefaultCoreProvider.cs | using System.Collections.Generic;
using NDatabase.Odb.Core;
using NDatabase.Odb.Core.Layers.Layer1.Introspector;
using NDatabase.Odb.Core.Layers.Layer2.Instance;
using NDatabase.Odb.Core.Layers.Layer3;
using NDatabase.Odb.Core.Layers.Layer3.Engine;
using NDatabase.Odb.Core.Layers.Layer3.Oid;
using NDatabase.Odb.... | apache-2.0 | C# | |
49bf5d2a430e20d352bb4673d5d026c19deefe70 | Create RendererBoundsGizmo.cs | UnityCommunity/UnityLibrary | Assets/Scripts/Editor/Gizmos/RendererBoundsGizmo.cs | Assets/Scripts/Editor/Gizmos/RendererBoundsGizmo.cs | // attach this to mesh, draws renderer bounds when gameobject is selected
// original source: http://answers.unity.com/answers/137475/view.html
using UnityEngine;
namespace UnityLibrary
{
public class RendererBoundsGizmo : MonoBehaviour
{
void OnDrawGizmos()
{
OnDrawGizmosSelected(... | mit | C# | |
c826c1518a267eeeca3b3607ca6165a7f06539ed | Add typeDefinition file to slnFilterWithCsproj test project | OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode | test/integrationTests/testAssets/slnFilterWithCsproj/src/app/typeDefinition.cs | test/integrationTests/testAssets/slnFilterWithCsproj/src/app/typeDefinition.cs |
using System;
namespace Test
{
public class LinkedList
{
public void MyMethod()
{
var linked = new LinkedList();
var str = "test string";
var part = new PartialClass();
Console.WriteLine(str);
}
}
public partial class PartialCla... | mit | C# | |
77cfe6ea8b5f0cfc437fb80bb6bf7eb41a7ddd20 | Make coding style consistent | aspnet/live.asp.net,rmarinho/live.asp.net,hanu412/live.asp.net,jmatthiesen/VSTACOLive,rmarinho/live.asp.net,matsprea/live.asp.net,aspnet/live.asp.net,M-Zuber/live.asp.net,dotnetdude/live.asp.net,jmatthiesen/VSTACOLive,Janisku7/live.asp.net,Janisku7/live.asp.net,SaarCohen/live.asp.net,reactiveui/website,reactiveui/websi... | src/live.asp.net/ViewModels/HomeViewModel.cs | src/live.asp.net/ViewModels/HomeViewModel.cs | // Copyright (c) .NET Foundation. 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;
using live.asp.net.Models;
namespace live.asp.net.ViewModels
{
public class HomeViewModel
{
... | // Copyright (c) .NET Foundation. 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;
using live.asp.net.Models;
namespace live.asp.net.ViewModels
{
public class HomeViewModel
{
... | mit | C# |
70c9d7105feb5162661379f427562de6cba17f91 | Add a function to compute hit object position in catch editor | peppy/osu-new,peppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu | osu.Game.Rulesets.Catch/Edit/CatchHitObjectUtils.cs | osu.Game.Rulesets.Catch/Edit/CatchHitObjectUtils.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.Rulesets.Catch.Objects;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.UI.Scrolling;
using osuTK;
namespace osu.Game.Rulesets.Catch.Edit
{
/... | mit | C# | |
980bac0d245f1381034ae21e35c750d89f432d1e | rename module | lurch83/RfsForChromeService | src/RfsForChrome.Service/FireSearchModule.cs | src/RfsForChrome.Service/FireSearchModule.cs | using Ninject.Modules;
namespace RfsForChrome.Service
{
public class MyModule : NinjectModule
{
public override void Load()
{
Bind<IFetchMajorIncidents>().To<FetchMajorIncidents>().InSingletonScope();
}
}
} | mit | C# | |
a59ce0e03060c147bb13aa1891cca02108d8fc9b | Add Mp3 MetaData Manage CoreFile. | Legato-Dev/Legato | Legato.AlbumArtExtraction/Mp3/MetaDataType.cs | Legato.AlbumArtExtraction/Mp3/MetaDataType.cs | namespace Legato.AlbumArtExtraction.Mp3
{
/// <summary>
/// ID3 v1, v2 タグに埋め込まれているメタデータを管理します。
/// </summary>
public class MetaDataType
{
/// <summary>
/// ID3 v1, v2 タグに埋め込まれているファイル名。
/// </summary>
public string FileName { get; set; }
/// <summary>
/// ID3 v1, v2 タグに埋め込まれている曲の長さ(ms)。
... | mit | C# | |
64ba90d92b09f4f9fb1fcbbd3bfa2a18219b0ab7 | Add missing files | Mozu/mozu-dotnet,rocky0904/mozu-dotnet,ezekielthao/mozu-dotnet,sanjaymandadi/mozu-dotnet | Mozu.Api.Test/Factories/FraudScreenFactory.cs | Mozu.Api.Test/Factories/FraudScreenFactory.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//-------------------------------------... | mit | C# | |
b596f129675170cfdf4b5bf5d3fd003af55a02c3 | Remove animation done | TheFabFab/ObservableLinq,TheFabFab/ObservableLinq | ObservableLinq.Demo.Wpf/RemovedItemAdorner.cs | ObservableLinq.Demo.Wpf/RemovedItemAdorner.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.Media;
using System.Windows.Media.Animation;
using System.Windows.Medi... | apache-2.0 | C# | |
72c763cd11d1c5bb24c8ca2e25fc5e86fabc1a8d | Add storage fill test (#3352) | space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 | Content.IntegrationTests/Tests/StorageFillTest.cs | Content.IntegrationTests/Tests/StorageFillTest.cs | #nullable enable
using System.Threading.Tasks;
using NUnit.Framework;
using Robust.Shared.Prototypes;
using Robust.Shared.Utility;
using YamlDotNet.RepresentationModel;
namespace Content.IntegrationTests.Tests
{
[TestFixture]
public sealed class StorageFillTest : ContentIntegrationTest
{
[Test]
... | mit | C# | |
5b62a8a22fc2bbd1f21f57c3d2a7b15c6dc35175 | Create JSIHUDVariables.cs | DracheTek/RPMOverhaul | JSIHUDVariables.cs | JSIHUDVariables.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace JSI
{
public class InfoGauge: InternalModule
{
[KSPField] // 贴图
public string Texture = string.Empty;
[KSPField] // 绘图区的位置(从左上角开始),绘图区的大小(横,纵)
public Vector4 Pos... | cc0-1.0 | C# | |
86a9ce910aa86c67543de47e3061ce2fe0d6a3a2 | Test list extensions | another-guy/Peppermint | Peppermint.Tests/Lists/ListExtensionsTests.cs | Peppermint.Tests/Lists/ListExtensionsTests.cs | using System.Collections.Generic;
using System.Linq;
using Peppermint.Lists;
using Xunit;
namespace Peppermint.Tests.Lists
{
public class ListExtensionsTests
{
[Fact]
public void SwapWorks()
{
// Arrange
var list = new[] {1, 2};
// Act
l... | mit | C# | |
48927f46421fede6c2afbb2dda3e1c7644b8c1d0 | Create CollisionSet.cs | efruchter/UnityUtilities | CollisionSet.cs | CollisionSet.cs | using UnityEngine;
using System.Collections.Generic;
/**
* Keep track of what we have already hit.
*
* -Eric
*/
public class CollisionSet
{
private HashSet<int> set = new HashSet<int>();
public bool CollideCheck(GameObject go)
{
var id = go.GetInstanceID();
if (set.Contains(id))
return false;
set.Add... | mit | C# | |
2d92a5938ce255e6d47487cc9688c96e0dc05468 | Create RuleUpdater.cs | win120a/ACClassRoomUtil,win120a/ACClassRoomUtil | ProcessBlockUtil/RuleUpdater.cs | ProcessBlockUtil/RuleUpdater.cs | apache-2.0 | C# | ||
5100d04b5133b558644c8eb7444ad5e7fe564e79 | Create CompressUtil.cs | drawcode/labs-csharp | utilities/CompressUtil.cs | utilities/CompressUtil.cs | using System;
using System.IO;
using System.IO.Compression;
using System.Text;
namespace Labs.Utility {
public static class CompressUtil {
public static string ToCompressed(this string val) {
if (!IsStringCompressed(val)) {
return CompressString(val);
}
... | mit | C# | |
c0745f9c170a7f5cd84ad0d8647d5ef4c8de661d | Create Program.cs | vinayakg/PMailSend | Program.cs | Program.cs | using log4net;
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Net.Mail;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Security.Policy;
using System.Web;
namespace ConsoleApplication1
{
internal class Prog... | apache-2.0 | C# | |
f5dacb0852efd7a61abeacbded4c01a1e5810023 | Create Program.cs | dabest1111/ursa | Program.cs | Program.cs | namespace UrsaRage
{
internal class Program
{
#region Methods
private static void Main(string[] args)
{
UrsaRage.Init();
}
#endregion
}
}
| apache-2.0 | C# | |
24e32aa900e8dd50a6465141f4e23f3ff8312f7d | add ValidateResultModel.cs | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/Models/ValidateResultModel.cs | src/WeihanLi.Common/Models/ValidateResultModel.cs | using System.Collections.Generic;
namespace WeihanLi.Common.Models
{
public class ValidateResultModel
{
/// <summary>
/// Valid
/// </summary>
public bool Valid { get; set; }
/// <summary>
/// ErrorMessages
/// Key: memberName
/// Value: errorMe... | mit | C# | |
f02aba81b29c146d0c8b55a6024befa646046726 | Create CameraMovement.cs | highnet/Java-101,highnet/Java-101 | Unity/RocketGame/CameraMovement.cs | Unity/RocketGame/CameraMovement.cs | using UnityEngine;
using System.Collections;
public class CameraMovement : MonoBehaviour
{
public GameObject player; //Public variable to store a reference to the player game object
private Vector3 offset; //Private variable to store the offset distance between the player and camera
// Us... | mit | C# | |
1a81b272844d172654ea6ef4418fb07b8d6f6118 | Add a new datatype for skeletons | ethanlim/MinorityViewportClient | MultipleKinectsPlatform/Data/Skeleton.cs | MultipleKinectsPlatform/Data/Skeleton.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;
using Microsoft.Kinect;
using System.IO;
namespace MultipleKinectsPlatform.MultipleKinectsPlatform... | agpl-3.0 | C# | |
b03905afda2dde2be88013c3b026dcb8c0dd5c84 | Add SharedEventService | Noikoio/RegexBot | Services/SharedEventService/SharedEventService.cs | Services/SharedEventService/SharedEventService.cs | using System.Threading.Channels;
namespace RegexBot.Services.SharedEventService;
/// <summary>
/// Implements a queue which any service or module may send objects into,
/// which are then sent to subscribing services and/or modules. Allows for simple,
/// basic sharing of information between separate parts of the prog... | mit | C# | |
59ef2874f434c5517121dea20643b9ac0a917a86 | Add multimap test | henkmollema/Dommel | test/Dommel.IntegrationTests/MultiMapTests.cs | test/Dommel.IntegrationTests/MultiMapTests.cs | using System.Threading.Tasks;
using Xunit;
namespace Dommel.IntegrationTests
{
[Collection("Database")]
public class MultiMapTests
{
[Theory]
[ClassData(typeof(DatabaseTestData))]
public async Task GetAsync(DatabaseDriver database)
{
using (var con = database.Ge... | mit | C# | |
10de9b2b3c2db9fe747a5de582267cccca25102c | Create class InputReader | stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity | C#Development/BashSoft/BashSoft/IO/InputReader.cs | C#Development/BashSoft/BashSoft/IO/InputReader.cs | namespace BashSoft.IO
{
using BashSoft.Exceptions;
using BashSoft.Repositories;
using System;
using System.IO;
using System.Linq;
public static class InputReader
{
public static bool wrontPath = true;
private static string newLine = Environment.NewLine;
... | mit | C# | |
5942c4ab98056faccbb2aef551d3c40beb928736 | Add [using] range control | caronyan/CSharpRecipe | CSharpRecipe/Recipe.ClassAndGeneric/UsingRange.cs | CSharpRecipe/Recipe.ClassAndGeneric/UsingRange.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Recipe.ClassAndGeneric
{
/// <summary>
/// Using [using] to dispose temp object automatically
/// </summary>
public class UsingRange
{
public void ... | mit | C# | |
69748f1fd0a19c72bfc08ad99ef1324cd06bec9e | Create CsvHelper util-class for writing csv-files | arkivverket/arkade5,arkivverket/arkade5,arkivverket/arkade5 | src/Arkivverket.Arkade.Core/Util/CsvHelper.cs | src/Arkivverket.Arkade.Core/Util/CsvHelper.cs | using System.Collections.Generic;
using System.Globalization;
using System.IO;
using CsvHelper;
using CsvHelper.Configuration;
namespace Arkivverket.Arkade.Core.Util
{
public static class CsvHelper
{
public static void WriteToFile<T, TMap>(string filePath, IEnumerable<T> records) where TMap : ClassMap... | agpl-3.0 | C# | |
2a7c4ec96268997ec2354ca32c0fc14539935160 | Use Markdownify | picklesdoc/pickles,magicmonty/pickles,picklesdoc/pickles,ludwigjossieaux/pickles,magicmonty/pickles,picklesdoc/pickles,ludwigjossieaux/pickles,magicmonty/pickles,dirkrombauts/pickles,dirkrombauts/pickles,dirkrombauts/pickles,magicmonty/pickles,ludwigjossieaux/pickles,dirkrombauts/pickles,picklesdoc/pickles | src/Pickles/Pickles/StrikeMarkdownProvider.cs | src/Pickles/Pickles/StrikeMarkdownProvider.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="StrikeMarkdownProvider.cs" company="PicklesDoc">
// Copyright 2011 Jeffrey Cameron
// Copyright 2012-present PicklesDoc team and community contributors
//
//
// Licensed unde... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="StrikeMarkdownProvider.cs" company="PicklesDoc">
// Copyright 2011 Jeffrey Cameron
// Copyright 2012-present PicklesDoc team and community contributors
//
//
// Licensed unde... | apache-2.0 | C# |
13cbbda8753f91f119f9ed453451b475846c96fe | Add "BasePage" class | Mimalef/repop | src/App_Code/BasePage.cs | src/App_Code/BasePage.cs | using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
... | mit | C# | |
f0a3ee16e9cec29408c8d572cf11c3d8eebea226 | Add a test to assert public types so I remember when I add one... | joelverhagen/TorSharp | TorSharp.Tests/PublicTypesTests.cs | TorSharp.Tests/PublicTypesTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Knapcode.TorSharp.Tools;
using Knapcode.TorSharp.Tools.Privoxy;
using Knapcode.TorSharp.Tools.Tor;
using Xunit;
namespace Knapcode.TorSharp.Tests
{
public class PublicTypesTests
{
[Fact]
public void TheSetOfPublicTypesIsE... | mit | C# | |
0c4ad824d21e14eb2f973ac02c47ffbc387a64f7 | Create task_1.3.5.1.cs | AndrewTurlanov/ANdrew | task_1.3.5.1.cs | task_1.3.5.1.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lesson1
{
class Program
{
static int f = 80;
static void Main(string[] args)
{
int a = 10; //10
int b = 15 + 25; ... | apache-2.0 | C# | |
06cab162e84716e91afafbd717fb0d0092c498a3 | Add MEvent | Zalodu/Schedutalk,Zalodu/Schedutalk | Schedutalk/Schedutalk/Schedutalk/Model/MEvent.cs | Schedutalk/Schedutalk/Schedutalk/Model/MEvent.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Schedutalk.Model
{
class MEvent : ViewModel.VMBase
{
}
}
| mit | C# | |
f76c6fd715ecf57a27af8503088e8e37a4695f5c | Create IModelDocumentationProvider.cs | MingLu8/Nancy.WebApi.HelpPages | src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/IModelDocumentationProvider.cs | src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/IModelDocumentationProvider.cs | using System;
using System.Reflection;
namespace WebApplication1.Areas.HelpPage.ModelDescriptions
{
public interface IModelDocumentationProvider
{
string GetDocumentation(MemberInfo member);
string GetDocumentation(Type type);
}
}
| mit | C# | |
460e739f09170737fae0b2424723ec1901d571de | Create foodservices.cs | RobinsonMann/UWaterlooApi | foodservices/foodservices.cs | foodservices/foodservices.cs | /*....By : Robinson Mann
*..Date : 2/3/2015
*.About : Contians all the classes need for any of the foodserivces
* API calls, aswell as associated factory methods.
**********************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
usi... | mit | C# | |
abfe153414642e6fda723a52ae956bb311a4dc44 | Add some simple test cases for SetProperty. | GalaxiaGuy/MobileLibraries | Tests/NotifyPropertyChangedBase.cs | Tests/NotifyPropertyChangedBase.cs | using System;
using GamesWithGravitas.Extensions;
using Xunit;
namespace GamesWithGravitas
{
public class NotifyPropertyChangedBaseTests
{
[Theory]
[InlineData("Foo")]
[InlineData("Bar")]
public void SettingAPropertyWorks(string propertyValue)
{
var notifier... | mit | C# | |
dea2acaea3f24b6fb33cf7f1746002e7151941f7 | Add new interface that allows restarts | NeoAdonis/osu,peppy/osu,peppy/osu,NeoAdonis/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,2yangk23/osu,UselessToucan/osu,ppy/osu,johnneijzen/osu,peppy/osu,ZLima12/osu,ppy/osu,smoogipoo/osu,EVAST9919/osu,ZLima12/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,peppy/osu-new,2yangk23/osu,smoogipoo/osu,EVAST9919/osu,johnn... | osu.Game/Rulesets/Mods/IApplicableForceRestart.cs | osu.Game/Rulesets/Mods/IApplicableForceRestart.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
namespace osu.Game.Rulesets.Mods
{
/// <summary>
/// Represents a mod which can override (and block) a fail.
/// </summary>
public interface IApplicableR... | mit | C# | |
6f153ddbf618e2340bcf22bac831b70a373b5bc0 | Add tests for losing audio devices | smoogipooo/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,peppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework | osu.Framework.Tests/Audio/DeviceLosingAudioTest.cs | osu.Framework.Tests/Audio/DeviceLosingAudioTest.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.Threading;
using NUnit.Framework;
using osu.Framework.IO.Stores;
using osu.Framework.Threading;
namespace osu.Framework.Tests.Audio
{
///... | mit | C# | |
d398a1efa2a3dc8971dfcab5f31d3b67101be2d4 | Update unit test | WaltChen/NDatabase,WaltChen/NDatabase | test/NDatabase/Odb/Test/VO/ClassWithArrayOfBoolean.cs | test/NDatabase/Odb/Test/VO/ClassWithArrayOfBoolean.cs | namespace Test.Odb.Test.VO
{
/// <author>olivier</author>
public class ClassWithArrayOfBoolean
{
private bool[] bools1;
private bool[] bools2;
private string name;
public ClassWithArrayOfBoolean(string name, bool[] bools1, bool[] bools2)
{
th... | apache-2.0 | C# | |
72f9cce387afa72f4932970985cf2736f5e0285a | Create Operators_Expressions | neyogiry/Examples_Csharp | Operators_Expressions.cs | Operators_Expressions.cs | using System;
public class Hello_Neyo{
static void Main(string[] args){
int x, y, a, b;
// Assigment operator
x = 3;
y = 2;
a = 1;
b = 0;
// There are many mathematical operators
// Addittion operator
x = 3 + 4;
// Subtraction operator
x = 4 -3;
// Multiplication operator
x = 10 * 5;... | mpl-2.0 | C# | |
7ae7bec38cec47e4d49f40c9a431ed44cec742f5 | Add FFTF32 constructor that is marked as not introspectable | mono-soc-2013/gstreamer-sharp,mono-soc-2013/gstreamer-sharp,mono-soc-2013/gstreamer-sharp | 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 ... | agpl-3.0 | C# | |
b455c2b2f474e9e91fc95a3a62a69f6d8e24467e | Create component.cs | QetriX/CS | QetriX/libs/component.cs | QetriX/libs/component.cs | namespace com.qetrix.libs
{
/* Copyright (c) QetriX.com. Licensed under MIT License, see /LICENSE.txt file.
* 16.09.13 | QetriX Component PHP class
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class Component
{
protected Dat... | mit | C# | |
a957b2b874cddc03c96c1d6bf4177d6d3f846f3c | Add sample | wqweto/UcsFiscalPrinters | Samples/Demo1/Program.cs | Samples/Demo1/Program.cs | using System.Globalization;
using UcsFiscalPrinters;
namespace Demo1
{
class Program
{
static void Main(string[] args)
{
// will use Datecs fiscal printer
var prot = new cICLProtocol();
// setup localized commands for Serbia
if (CultureInfo.Curr... | mit | C# | |
0967cd659d1465bff8e5642d6795bfcabcd6c87e | Add DataValue tests | convertersystems/opc-ua-client | UaClient.UnitTests/UnitTests/DataValueTests.cs | UaClient.UnitTests/UnitTests/DataValueTests.cs | using FluentAssertions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Workstation.ServiceModel.Ua;
using Xunit;
namespace Workstation.UaClient.UnitTests
{
public class DataValueTests
{
[Fact]
public void CreateFromNull... | mit | C# | |
c35742ae0fd64124fe6abd59fe4c0a4d67f38ad1 | Create Arrow.cs | hpcslag/unity_accelerometer_cursor,hpcslag/unity_accelerometer_cursor | Unity/Arrow.cs | Unity/Arrow.cs | using UnityEngine;
using System.Collections;
using System.IO.Ports;
using System;
public class Arrow : MonoBehaviour {
Vector2 point;
Rect rect;
GUIStyle style = new GUIStyle();
public int width, height;
public float xSpeed = 1F;
public float ySpeed = 1F;
public float zSpeed = 1F;
... | mit | C# | |
c2792457cd06b4fc9af6d8c90cf58822c1ad9c0f | Add new file userAuth.cpl/Droid/Resources/Resource.designer.cs | ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl | userAuth.cpl/Droid/Resources/Resource.designer.cs | userAuth.cpl/Droid/Resources/Resource.designer.cs | #pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerate... | mit | C# | |
1d3400a22d33b4a48a4fbef3a8efd59729d2eda5 | add math sugar | m5knt/BrownSugar | Sources/BrownSugar/Math/Math.cs | Sources/BrownSugar/Math/Math.cs | using System;
//
//
//
namespace ThunderEgg.BrownSugar {
public static partial class Sugar {
/// <summary>無限大であるかを返す</summary>
public static bool IsInfinity(this float value) { return float.IsInfinity(value); }
/// <summary>無限大であるかを返す</summary>
public static bool IsInfinity(this... | mit | C# | |
d4c64848c3c068f13c50fdf9c91440c47544ad3d | Add OutputWriter | stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity | C#Development/BashSoft/BashSoft/IO/OutputWriter.cs | C#Development/BashSoft/BashSoft/IO/OutputWriter.cs | namespace BashSoft.IO
{
using System;
public static class OutputWriter
{
public static void WriteMessage(string message) => Console.Write(message);
public static void WriteMessageOnNewLine(string message) => Console.WriteLine(message);
public static void WriteEmptyLine(... | mit | C# | |
8f50f54fb1258eee1bdbf54d57dbc8157d0e29ed | Add test that asserts records don't have RecordAttribute in reflection | amis92/RecordGenerator | test/Amadevus.RecordGenerator.Test/RecordClassTests.cs | test/Amadevus.RecordGenerator.Test/RecordClassTests.cs | using Amadevus.RecordGenerator.TestsBase;
using Xunit;
namespace Amadevus.RecordGenerator.Test
{
public class RecordClassTests : RecordTestsBase
{
[Fact]
public void ReflectedClass_HasNo_RecordAttribute()
{
var recordType = typeof(Item);
var recordAttributes = ... | mit | C# | |
4ac8150031adef326dcf944c3984a2a37913c4d7 | Add transform benchmark | peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,peppy/osu-framework | osu.Framework.Benchmarks/BenchmarkTransform.cs | osu.Framework.Benchmarks/BenchmarkTransform.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 BenchmarkDotNet.Attributes;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Transforms;
using osu.Framework.Timing;
... | mit | C# | |
9d5cb8d1192e2af7b4e9da4ae955e5451973139f | Add GZip Reader tests | adamhathcock/sharpcompress,adamhathcock/sharpcompress,adamhathcock/sharpcompress | tests/SharpCompress.Test/GZip/GZipReaderTests.cs | tests/SharpCompress.Test/GZip/GZipReaderTests.cs | using System.IO;
using SharpCompress.Common;
using Xunit;
namespace SharpCompress.Test.GZip
{
public class GZipReaderTests : ReaderTests
{
public GZipReaderTests()
{
UseExtensionInsteadOfNameToVerify = true;
}
[Fact]
public void GZip_Reader_Generic()
... | mit | C# | |
5a97704fe2a32ae89ca5cba3ba7ce0f06fdb3daf | Update to use EventKit messaging | jguarShark/Unity2D-Components,cmilr/Unity2D-Components | Game/DifficultyHandler.cs | Game/DifficultyHandler.cs |
public class DifficultyHandler : BaseBehaviour {
private int difficultyLevel;
void OnSetDifficulty(int difficulty)
{
switch (difficulty)
{
case NORMAL:
EventKit.Broadcast("set difficulty damage modifier", 1);
break;
case HARD:
EventKit.Broadcast("set difficulty damage modifier", 2);
brea... | mit | C# | |
3828a3da91864b5a1a3fdda2e159333a76625405 | Create NewPostRequest class | dncuug/dot-net.in.ua,dncuug/dot-net.in.ua,dncuug/dot-net.in.ua | src/Core/VIewModels/NewPostRequest.cs | src/Core/VIewModels/NewPostRequest.cs | using System;
namespace Core.VIewModels
{
public class NewPostRequest
{
public string Link { get; set; }
public Guid Key { get; set; }
public int CategoryId { get; set; }
public string Comment { get; set; }
}
} | mit | C# | |
aafd94bf753ef7391c00afdfd2c090563aea1e7a | Move connection strings to separate file | derekameer/samples,paulmon/samples,jayhopeter/samples,bfjelds/samples,tjaffri/msiot-samples,ms-iot/samples,ms-iot/samples,tjaffri/msiot-samples,MasayukiNagase/samples,sewong/samples,sewong/samples,derekameer/samples,ms-iot/samples,zhuridartem/samples,Sumahitha/samples,dotMorten/samples,paulmon/samples,bfjelds/samples,j... | Azure/WeatherStation/ConnectionStrings.cs | Azure/WeatherStation/ConnectionStrings.cs | using Windows.UI.Xaml.Controls;
namespace WeatherDataReporter
{
public sealed partial class MainPage : Page
{
static string iotHubUri = "{replace}";
static string deviceKey = "{replace}";
static string deviceId = "{replace}";
}
}
| mit | C# | |
a58fa143b189061997f87c77dd5f44bdc1f9d655 | Add AsyncDelayer | tgstation/tgstation-server-tools,tgstation/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server,Cyberboss/tgstation-server | src/Tgstation.Server.Host/Core/AsyncDelayer.cs | src/Tgstation.Server.Host/Core/AsyncDelayer.cs | using System;
using System.Threading;
using System.Threading.Tasks;
namespace Tgstation.Server.Host.Core
{
/// <inheritdoc />
sealed class AsyncDelayer : IAsyncDelayer
{
/// <inheritdoc />
public Task Delay(TimeSpan timeSpan, CancellationToken cancellationToken) => Task.Delay(timeSpan, cancellationToken);
}
}... | agpl-3.0 | C# | |
7495cfa0a95dc4e8e54af3b11c9d299422114d7f | Add a test scene | UselessToucan/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,EVAST9919/osu,smoogipooo/osu,johnneijzen/osu,EVAST9919/osu,2yangk23/osu,ppy/osu,peppy/osu,peppy/osu,UselessToucan/osu,johnneijzen/osu,2yangk23/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu-new,NeoAdonis/osu,ppy/osu,ppy/osu | osu.Game.Tests/Visual/Menus/TestSceneSongTicker.cs | osu.Game.Tests/Visual/Menus/TestSceneSongTicker.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.Game.Overlays;
using osu.Game.Screens.Menu;
namespace os... | mit | C# | |
434c053ce0e03087ee9ea88acb3214dda5821847 | Add Vector4.cs | dbartolini/crown,galek/crown,galek/crown,taylor001/crown,dbartolini/crown,dbartolini/crown,mikymod/crown,taylor001/crown,dbartolini/crown,mikymod/crown,mikymod/crown,galek/crown,mikymod/crown,galek/crown,taylor001/crown,taylor001/crown | tools/core/math/Vector4.cs | tools/core/math/Vector4.cs | /*
* Copyright (c) 2012-2016 Daniele Bartolini and individual contributors.
* License: https://github.com/taylor001/crown/blob/master/LICENSE
*/
using System.Collections;
using System;
namespace Crown
{
public struct Vector4
{
public float x, y, z, w;
public Vector4(float x, float y, float z, float w)
{
... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.