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 |
|---|---|---|---|---|---|---|---|---|
cb616d4fb0301706914a8511ccf95c79a698cfd8 | Create Create.cshtml | CarmelSoftware/Generic-Data-Repository-With-Caching | Views/Blogs/Create.cshtml | Views/Blogs/Create.cshtml | @model GenericRepositoryWithCatching.Models.Blog
@{
ViewBag.Title = "Create";
}
<div class="jumbotron">
<h2>Generic Repository With Memory Caching - @ViewBag.Title</h2>
<h4>By Carmel</h4>
</div>
<div class="jumbotron">
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
@Html.Valid... | mit | C# | |
a0138af362be2f4640ccb326f715dc1dd1ae3760 | Move a small part of current | dawoe/Umbraco-CMS,umbraco/Umbraco-CMS,KevinJump/Umbraco-CMS,dawoe/Umbraco-CMS,abjerner/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,arknu/Umbraco-CMS,abryukhov/Umbraco-CMS,umbraco/Umbraco-CMS,arknu/Umbraco-CMS,abjerner/Umbraco-CMS,KevinJump/Umbraco-CMS,marcemarc/Umbraco-CMS,abjerner/Umbraco-CMS,dawoe/Umbraco-CMS,arknu/Umb... | src/Umbraco.Abstractions/Composing/Current.cs | src/Umbraco.Abstractions/Composing/Current.cs | using System;
using Umbraco.Core.Logging;
namespace Umbraco.Core.Composing
{
/// <summary>
/// Provides a static service locator for most singletons.
/// </summary>
/// <remarks>
/// <para>This class is initialized with the container in UmbracoApplicationBase,
/// right after the container is ... | mit | C# | |
a41109055db0426b7569a4a3c91d70c83b4dbb2e | Fix Windows file format issues | lifebeyondfife/Decider | Csp/Integer/MetaExpressionInteger.cs | Csp/Integer/MetaExpressionInteger.cs | /*
Copyright © Iain McDonald 2010-2019
This file is part of Decider.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using Decider.Csp.BaseTypes;
namespace Decider.Csp.Integer
{
public class MetaExpressionInteger : ExpressionInteger, IMetaExpression<int>
{
private read... | mit | C# | |
c11af45a58b43dea4b97da947cff01cafcf0fa97 | Create Extensions.cs | Shuttle/Shuttle.Recall,Shuttle/shuttle-recall-core | Shuttle.Recall/EventProcessing/Extensions.cs | Shuttle.Recall/EventProcessing/Extensions.cs | using Shuttle.Core.Container;
using Shuttle.Core.Contract;
namespace Shuttle.Recall
{
public static class Extensions
{
public static IComponentResolver AddEventHandler<TEventHandler>(this IComponentResolver resolver, string name)
where TEventHandler : class
{
Guard.Agai... | bsd-3-clause | C# | |
6c18fa8bc517a3d2f30b62346289986cbd041cdc | add perf.cs | lesovsky/uber-scripts,lesovsky/uber-scripts,lesovsky/uber-scripts | cheatsheets/perf.cs | cheatsheets/perf.cs | # List events
perf list
perf list ext4:*
perf list syscalls:sys_enter_*
perf list *:*exec*
# Tracing
perf trace -a -- trace on all cpu's
perf trace -c 0-4 -- trace on provided cpu's list
perf trace -p 12345,... ... | mit | C# | |
9b6bfcb8b7f53a4086321e656cd72349cf21c975 | Update LoginForm.cs | parryjacob/DiscordSharp,uwx/DSharpPlus,uwx/DSharpPlus,parryjacob/DiscordSharp,Luigifan/DiscordSharp,Luigifan/DiscordSharp,Emzi0767/DSharpPlus | DiscordGUI/LoginForm.cs | DiscordGUI/LoginForm.cs | using DiscordSharp;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DiscordGUI
{
public partial class LoginForm : ... | using DiscordSharp;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DiscordGUI
{
public partial class LoginForm : ... | mit | C# |
3d71d737bda28b4f9fededd1647c0cbd6877e563 | Add unit tests for HtmlTemplatePrivider | samcragg/Crest,samcragg/Crest,samcragg/Crest | test/Host.UnitTests/Conversion/HtmlTemplateProviderTests.cs | test/Host.UnitTests/Conversion/HtmlTemplateProviderTests.cs | namespace Host.UnitTests.Conversion
{
using Crest.Host.Conversion;
using NUnit.Framework;
[TestFixture]
public sealed class HtmlTemplateProviderTests
{
[Test]
public void ContentLocationShouldReturnTheLocationAfterTheBodyTag()
{
var provider = new HtmlTemplatePr... | mit | C# | |
80262c7ab90d6639e57b5c0fa2f5d93f247092c3 | Rename WebApplication to WebApp. | evicertia/Katana,abrodersen/katana,abrodersen/katana,julianpaulozzi/katanaproject,eocampo/KatanaProject301,HongJunRen/katanaproject,HongJunRen/katanaproject,evicertia/Katana,julianpaulozzi/katanaproject,eocampo/KatanaProject301,PxAndy/Katana,monkeysquare/katana,eocampo/KatanaProject301,tomi85/Microsoft.Owin,abrodersen/... | templates/KatanaConsoleApplication/program.cs | templates/KatanaConsoleApplication/program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Owin.Hosting;
namespace $safeprojectname$
{
class Program
{
static void Main(string[] args)
{
using (WebApp.Start<Startup>("http://localhost:12345/"))... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Owin.Hosting;
namespace $safeprojectname$
{
class Program
{
static void Main(string[] args)
{
using (WebApplication.Start<Startup>("http://localhost:1... | apache-2.0 | C# |
7b4616c6c1799c339585fd84afcabf7c62a1c37d | Add circular button file | naoey/osu,DrabWeb/osu,peppy/osu,ZLima12/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,2yangk23/osu,johnneijzen/osu,NeoAdonis/osu,smoogipoo/osu,DrabWeb/osu,ppy/osu,2yangk23/osu,naoey/osu,UselessToucan/osu,ppy/osu,DrabWeb/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu,naoey/osu,EVAST9919/osu,peppy/osu-new,smoogipooo/osu,peppy/o... | osu.Game/Screens/Edit/Screens/Setup/Components/OsuSetupCircularButton.cs | osu.Game/Screens/Edit/Screens/Setup/Components/OsuSetupCircularButton.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 OpenTK;
using OpenTK.Graphics;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.F... | mit | C# | |
1dee32c03981c916aea7c2c37d056f7a3bc00d64 | Create NextLevel.cs | Tech-Curriculums/101-GameDesign-2D-GameDesign-With-Unity | AngryHipsters/NextLevel.cs | AngryHipsters/NextLevel.cs | using UnityEngine;
using System.Collections;
public class NextLevel : MonoBehaviour {
//this will be our global scorekeeper, the "ref" so to speak
public GLOBAL globalRef;
public Sounds soundFX;
public int moveOut = 0;
//movement scripts copypasta
public float speed = 1F;
Vector2 differenceVector, touchPositi... | mit | C# | |
e87c51016b439365fcbce63dd2b50903ea9d4c31 | Add initial DataService repository. | mdavid/nuget,mdavid/nuget | NuPack.Core/Repositories/DataServicePackageRepository.cs | NuPack.Core/Repositories/DataServicePackageRepository.cs | namespace NuPack.Repositories {
using System;
using System.Data.Services.Client;
using System.Linq;
using System.Net.Cache;
public class DataServicePackageRepository : PackageRepositoryBase {
private readonly DataServiceContext _context;
private readonly string _packagesEnt... | apache-2.0 | C# | |
8ce9d7b04fcdb31f8b5c82bb6c9d37223d337900 | Fix issues as result of bad merge | emashliles/SevenDigital.Api.Wrapper,actionshrimp/SevenDigital.Api.Wrapper,raoulmillais/SevenDigital.Api.Wrapper,bettiolo/SevenDigital.Api.Wrapper,gregsochanik/SevenDigital.Api.Wrapper,minkaotic/SevenDigital.Api.Wrapper,knocte/SevenDigital.Api.Wrapper,bnathyuw/SevenDigital.Api.Wrapper,danhaller/SevenDigital.Api.Wrapper,... | src/SevenDigital.Api.Wrapper/Extensions/HasBasketParametersExtensions.cs | src/SevenDigital.Api.Wrapper/Extensions/HasBasketParametersExtensions.cs | using System;
using SevenDigital.Api.Schema.ParameterDefinitions.Get;
namespace SevenDigital.Api.Wrapper
{
public static class HasBasketParametersExtensions
{
public static IFluentApi<T> Create<T>(this IFluentApi<T> api) where T : HasBasketParameter
{
api.ClearParamters();
api.WithEndpoint("baske... | using System;
using SevenDigital.Api.Schema.ParameterDefinitions.Get;
namespace SevenDigital.Api.Wrapper
{
public static class HasBasketParametersExtensions
{
public static IFluentApi<T> Create<T>(this IFluentApi<T> api) where T : HasBasketParameter
{
api.WithEndpoint("basket/create");
return api... | mit | C# |
a457054a9771e1ca736319f770baa6af9d4e030b | Add Microsoft Graph API calls | ThessalonikiNet-MeetUp/NoiseDetectionBot,ThessalonikiNet-MeetUp/NoiseDetectionBot | Bot/Helpers/GraphHelper.cs | Bot/Helpers/GraphHelper.cs | using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web;
namespace SampleAADV2Bot.Helpers
{
public class MeetingRoom
{
public string DisplayName { get; set; }
public string LocationEmai... | mit | C# | |
e975a5a11f01436133d3fc23a77c3bdf9fc24863 | Add StackOverflow InteractiveWindow test for .NET Core | wvdd007/roslyn,mgoertz-msft/roslyn,shyamnamboodiripad/roslyn,CyrusNajmabadi/roslyn,mavasani/roslyn,tmat/roslyn,diryboy/roslyn,panopticoncentral/roslyn,AmadeusW/roslyn,ErikSchierboom/roslyn,dotnet/roslyn,wvdd007/roslyn,jasonmalinowski/roslyn,tannergooding/roslyn,mavasani/roslyn,panopticoncentral/roslyn,wvdd007/roslyn,do... | src/Interactive/HostTest/InteractiveHostCoreTests.cs | src/Interactive/HostTest/InteractiveHostCoreTests.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
extern alias InteractiveHost;
using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;... | mit | C# | |
8edf873213bb74c19ff53c18d2a5ec0ef7b21b3f | Add missing interface | mikeminutillo/conventional,wolfbyte/conventional | Src/IHideObjectMembers.cs | Src/IHideObjectMembers.cs | using System;
using System.ComponentModel;
namespace Conventional
{
[EditorBrowsable(EditorBrowsableState.Never)]
public interface IHideObjectMembers
{
[EditorBrowsable(EditorBrowsableState.Never)]
Type GetType();
[EditorBrowsable(EditorBrowsableState.Never)]
int GetHashCod... | mit | C# | |
194f4624887c2bbdcf746d310258513f416f5e76 | Add VisibleCharacterParser | StevenLiekens/TextFx,StevenLiekens/Txt | src/Txt.ABNF/Core/VCHAR/VisibleCharacterParser.cs | src/Txt.ABNF/Core/VCHAR/VisibleCharacterParser.cs | using Txt.Core;
namespace Txt.ABNF.Core.VCHAR
{
public class VisibleCharacterParser : Parser<VisibleCharacter, char>
{
protected override char ParseImpl(VisibleCharacter value)
{
return value.Text[0];
}
}
}
| mit | C# | |
16af5b87f888821d60b8068dde4acac58a6066f7 | Add file missing from last commit 36651be | TomDataworks/opensim,TomDataworks/opensim,QuillLittlefeather/opensim-1,ft-/opensim-optimizations-wip,RavenB/opensim,ft-/opensim-optimizations-wip-extras,TomDataworks/opensim,TomDataworks/opensim,ft-/arribasim-dev-extras,bravelittlescientist/opensim-performance,justinccdev/opensim,bravelittlescientist/opensim-performanc... | OpenSim/Tests/Common/Helpers/EntityTransferHelpers.cs | OpenSim/Tests/Common/Helpers/EntityTransferHelpers.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# | |
7bbdb69089c9f58c04bdd2209a866bef634de011 | Add ObsCodeComponent | ADAPT/ADAPT | source/ADAPT/Documents/ObsCodeComponent.cs | source/ADAPT/Documents/ObsCodeComponent.cs | /*******************************************************************************
* Copyright (C) 2020 AgGateway; PAIL and ADAPT Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distrib... | epl-1.0 | C# | |
04b7e908a6a38dd4e2b2025827f9b2bded0504f1 | fix build by adding IRepositoryExceptionHandler | iQuarc/Code-Design-Training,iQuarc/Code-Design-Training | AppBoot/Infrastructure/DataAccess/EfRepositoryExceptionHandler/IRepositoryExceptionHandler.cs | AppBoot/Infrastructure/DataAccess/EfRepositoryExceptionHandler/IRepositoryExceptionHandler.cs | using System;
using DataAccess.Exceptions;
namespace DataAccess.EfRepositoryExceptionHandler
{
interface IRepositoryExceptionHandler
{
void Handle(Exception exception);
}
class RepositoryExceptionHandler : IRepositoryExceptionHandler
{
private readonly IRepositoryExceptionHandler ... | mit | C# | |
9cecf7ef734f50c9999c6493b3adcdefcbec7724 | Create ResetTransform.cs | UnityCommunity/UnityLibrary | Assets/Scripts/Editor/GameObject/ResetTransform.cs | Assets/Scripts/Editor/GameObject/ResetTransform.cs | using UnityEngine;
using UnityEditor;
// reset transform position, rotation and scale
namespace UnityLibrary
{
public class ResetTransform : ScriptableObject
{
[MenuItem("GameObject/Reset Transform #r")]
static public void MoveSceneViewCamera()
{
// TODO add multiple object... | mit | C# | |
cf028e851693bcda5f379f20a1795a1ca7b6442f | Create IniFile.cs | tuttomax/IniSharp | IniSharp/IniFile.cs | IniSharp/IniFile.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Text.RegularExpressions;
using IniSharp.Exceptions;
using IniSharp.Extension;
namespace IniSharp
{
internal class IniFile
{
[... | mit | C# | |
d76ef66814acdc35ce21a40e356d14bd26758ca4 | Create GlimpseRazorHost.cs | peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,zanetdev/Glimpse.Prototype,pranavkm/Glimpse.Prototype,Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Protot... | src/Glimpse.Host.Web.AspNet/GlimpseRazorHost.cs | src/Glimpse.Host.Web.AspNet/GlimpseRazorHost.cs | using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Mvc.Razor;
using Microsoft.AspNet.Mvc.Razor.Directives;
using Microsoft.AspNet.Razor.Generator.Compiler;
namespace Glimpse.Host.Web.AspNet
{
public class GlimpseRazorHost : MvcRazorHost
{
public GlimpseRazorHost(ICodeTreeCache ... | mit | C# | |
cf4ccdb54f5b9372d591d5d8007d0e0ac9a76ffa | Create info.cs | 2105/Cabron | info.cs | info.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace Bvx
{
public class Info
{
static public string GetVersion()
{
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
}
}
| mit | C# | |
8bea644ecca308e18221b97f01e07af05f5e162d | add missing Throttler.cs file | ArsenShnurkov/BitSharp | BitSharp.Common/Throttler.cs | BitSharp.Common/Throttler.cs | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace BitSharp.Common
{
public static class Throttler
{
private static readonly ConcurrentDict... | unlicense | C# | |
cb89ab8bc3ae3926042e548e673f9b5763b43026 | add variables/scoped | lvermeulen/BuildMaster.Net | src/BuildMaster.Net/Variables/Scoped/BuildMasterClient.cs | src/BuildMaster.Net/Variables/Scoped/BuildMasterClient.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using BuildMaster.Net.Common.Models;
using Flurl.Http;
// ReSharper disable CheckNamespace
namespace BuildMaster.Net
{
public partial class BuildMasterClient
{
public async Task<IEnumerable<ScopedVariable>> GetAllScopedConfigurationVaria... | mit | C# | |
55a214d7d254cf7cac0452a01551c9df91b835bd | Add class OptimizationProblem with its properties. | geoem/MSolve,geoem/MSolve | ISAAR.MSolve.Analyzers/Optimization/OptimizationProblem.cs | ISAAR.MSolve.Analyzers/Optimization/OptimizationProblem.cs | using System;
namespace ISAAR.MSolve.Analyzers.Optimization
{
public class OptimizationProblem
{
public int Dimension
{
get; set;
}
public double[] LowerBound
{
get; set;
}
public double[] UpperBound
{
get; s... | apache-2.0 | C# | |
62ef41cd2d0176d4c81a41337fadf0e82308d279 | Add IObjectWithSelection | dahall/vanara | PInvoke/Shell32/ShObjIdl.IObjectWithSelection.cs | PInvoke/Shell32/ShObjIdl.IObjectWithSelection.cs | using System;
using System.Runtime.InteropServices;
namespace Vanara.PInvoke
{
public static partial class Shell32
{
/// <summary>Exposes methods that get or set selected items represented by a Shell item array.</summary>
/// <remarks>
/// <para>When to Implement</para>
/// <para>
/// This interface is im... | mit | C# | |
6476533d76d754854265bb315ce4d415b945073c | Change prefab for different categories. | dimixar/audio-controller-unity | AudioController/Assets/Source/ObjectPool.cs | AudioController/Assets/Source/ObjectPool.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ObjectPool : MonoBehaviour
{
[SerializeField]
private GameObject _prefab;
private Stack<GameObject> _pool;
public GameObject prefab
{
set {
_prefab = value;
}
}
//TODO... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ObjectPool : MonoBehaviour
{
[SerializeField]
private GameObject _prefab;
private Stack<GameObject> _pool;
public GameObject GetGameObject()
{
if (_pool != null)
{
if (_pool.Co... | mit | C# |
83ea7406d561e3bb8249c11bb6451823fd001ffe | add byteorder swap sugar | m5knt/BrownSugar | Sources/BrownSugar/Byte/Swap.cs | Sources/BrownSugar/Byte/Swap.cs | /**
* @file
* @brief バイト・ビットに関係するシンタックスシュガーを纏めています
*/
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
/*
*
*/
namespace ThunderEgg.BrownSugar {
public static class SwapSugar {
// /// <summary>バイトオーダーを反転させた値を返す</summary>
// public static byte SwapByteOrder(thi... | mit | C# | |
63cacac904ff776c7d882c84ab2aeee35a8c3178 | Remove strong name left behind in [InternalsVisibleTo]. | centur/orleans,dVakulen/orleans,amccool/orleans,jkonecki/orleans,Liversage/orleans,bstauff/orleans,ashkan-saeedi-mazdeh/orleans,pherbel/orleans,brhinescot/orleans,LoveElectronics/orleans,shayhatsor/orleans,centur/orleans,ticup/orleans,jthelin/orleans,sergeybykov/orleans,jokin/orleans,dVakulen/orleans,brhinescot/orleans... | src/TestGrainInterfaces/Properties/AssemblyInfo.cs | src/TestGrainInterfaces/Properties/AssemblyInfo.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,
in... | /*
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,
in... | mit | C# |
523890d210e03be420235d3d2c9c47b61cc62838 | add missing file | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/Aspect/IFluentAspectBuilder.cs | src/WeihanLi.Common/Aspect/IFluentAspectBuilder.cs | using Microsoft.Extensions.DependencyInjection;
namespace WeihanLi.Common.Aspect
{
public interface IFluentAspectBuilder
{
IServiceCollection Services { get; }
}
internal class FluentAspectBuilder : IFluentAspectBuilder
{
public FluentAspectBuilder(IServiceCollection serviceCollec... | mit | C# | |
4ca44a018f309cde0bbd545b33906720b5f5f3d0 | add feed adapters tests | lvermeulen/ProGet.Net | test/ProGet.Net.Tests/Native/FeedAdapters/ProGetClientShould.cs | test/ProGet.Net.Tests/Native/FeedAdapters/ProGetClientShould.cs | using System.Threading.Tasks;
using Xunit;
// ReSharper disable CheckNamespace
namespace ProGet.Net.Tests
{
public partial class ProGetClientShould
{
[Fact]
public async Task FeedAdapters_GetFeedAdaptersAsync()
{
var results = await _client.FeedAdapters_GetFeedAdaptersAsyn... | mit | C# | |
22ed2103acec8a636a04821247b4172ac61fb255 | Add basic TileSet implementation. | clicketyclack/TileExchange | TileExchange/TileSet/TileSet.cs | TileExchange/TileSet/TileSet.cs | using System;
namespace TileExchange
{
public class TileSet
{
public TileSet()
{
}
}
}
| agpl-3.0 | C# | |
547d2c7d14aebf208e47be8bc39eba2a4c78b986 | Fix for LOG4NET-154. Added StackTracePatternConverter that outputs the methods called before the log message. | drunkirishcoder/monotouch-log4net,harold4/log4net,amtkmrsmn/log4net,harold4/log4net,StevenJiang2015/log4net,modulexcite/log4net,drunkirishcoder/monotouch-log4net,StevenJiang2015/log4net,Dagwaging/log4net,harold4/log4net,Dagwaging/log4net,drunkirishcoder/monotouch-log4net,amtkmrsmn/log4net,Dagwaging/log4net,drunkirishco... | src/Layout/Pattern/StackTracePatternConverter.cs | src/Layout/Pattern/StackTracePatternConverter.cs | #region Apache License
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0... | apache-2.0 | C# | |
96cafec33229ddb2ead5c48107bc9b11724b3582 | Create CanvasRenderMode.cs | UnityCommunity/UnityLibrary | Assets/Scripts/Docs/UnityEngine/CanvasRenderMode.cs | Assets/Scripts/Docs/UnityEngine/CanvasRenderMode.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// usage: Attach this script to gameobject with Canvas component
// click mouse button to switch modes *note: worldspace will not be visible without scaling it
// https://docs.unity3d.com/ScriptReference/Canvas-renderMode.html
namespace Un... | mit | C# | |
2d3470579fe4898ad07d7a646feea904f8d6fcd7 | add StoreService | vinhch/BizwebSharp | src/BizwebSharp/Services/Store/StoreService.cs | src/BizwebSharp/Services/Store/StoreService.cs | using System.Threading.Tasks;
using BizwebSharp.Entities;
using BizwebSharp.Infrastructure;
namespace BizwebSharp.Services
{
public class StoreService : BaseService
{
public StoreService(BizwebAuthorizationState authState) : base(authState)
{
}
public virtual async Task<Store>... | mit | C# | |
dec18ef826defe08cce89cc5b92b01b30c4fef81 | implement BeatmapBackgroundWithStoryboard | ppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,smoogipooo/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu-new,smoogipoo/osu,peppy/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu | osu.Game/Graphics/Backgrounds/BeatmapBackgroundWithStoryboard.cs | osu.Game/Graphics/Backgrounds/BeatmapBackgroundWithStoryboard.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.Timing;
using osu.Game.Beatmaps;
using osu.Game.Storyboards.Drawables;
namespace osu.Ga... | mit | C# | |
f9ca85d60b5428ad87251c909686e89b05d613ee | Create GroupObjects.cs | grreuze/Utils | Editor/GroupObjects.cs | Editor/GroupObjects.cs | using UnityEngine;
using UnityEditor;
public class GroupObjects : EditorWindow {
string GroupName = "Group";
[MenuItem("GameObject/Group Objects %G", false, -10)]
public static void ShowWindow() {
GetWindow(typeof(GroupObjects));
GetWindow<GroupObjects>().Show();
}
void OnGUI() {... | mit | C# | |
2795a966802143e9e3d612486f392c90838a5286 | Add test coverage | peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework | osu.Framework.Tests/Graphics/TestSceneDrawableScheduling.cs | osu.Framework.Tests/Graphics/TestSceneDrawableScheduling.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Testing;
using osu.Framework.Tests.Visual;... | mit | C# | |
a6ba7321676cf5afab9daed73e3a673e4353c71f | Create HaiTun.cs | empso/haoll | HaiTun.cs | HaiTun.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LeagueSharp;
using LeagueSharp.Common;
using SharpDX;
namespace LSharp海豚防封 {
class Program {
public static Menu Config;
static void Main(string[] args) {
Config = new Menu("海豚防封:防封状态启动中",... | apache-2.0 | C# | |
78b30a076f8a0a8e8cb6caba99f34c8f5e0d3579 | Add mania player test scene | UselessToucan/osu,EVAST9919/osu,ppy/osu,NeoAdonis/osu,EVAST9919/osu,peppy/osu,peppy/osu,peppy/osu,smoogipooo/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,2yangk23/osu,UselessToucan/osu,johnneijzen/osu,UselessToucan/osu,2yangk23/osu,ppy/osu,peppy/osu-new,smoogipoo/osu,NeoAdonis/osu,johnneijzen/osu,smoogipoo/osu | osu.Game.Rulesets.Mania.Tests/TestScenePlayer.cs | osu.Game.Rulesets.Mania.Tests/TestScenePlayer.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.Tests.Visual;
namespace osu.Game.Rulesets.Mania.Tests
{
public class TestScenePlayer : PlayerTestScene
{
public TestScenePlayer()
... | mit | C# | |
45dde4952b9c25c3be03c70104e7cd2211dddfe6 | Add unit tests for the PollingObservable class | openchain/openchain | test/Openchain.Ledger.Tests/PollingObservableTests.cs | test/Openchain.Ledger.Tests/PollingObservableTests.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# | |
cd15ce47965fcac031f7bdd5a1975f5392e3bb15 | Create EnumerableTests.cs | keith-hall/Extensions,keith-hall/Extensions | tests/EnumerableTests.cs | tests/EnumerableTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HallLibrary.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Tests
{
[TestClass]
public class EnumerableTests
{
[TestMethod]
public void TestCountExceeds()
{
var src = Enumerable.Range(1, 4)... | apache-2.0 | C# | |
554a6a070bd69cc38a59c0a58a75a50ec08e89cc | Create Problem10.cs | neilopet/projecteuler_cs | Problem10.cs | Problem10.cs | /*
* Problem10
* The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
* Find the sum of all the primes below two million.
*/
using System;
using System.Collections;
using System.Collections.Generic;
class Problem9
{
public static void Main ()
{
Console.WriteLine (SumSieveOfEratosthenes(2000000).ToString());
... | mit | C# | |
1c910401fe7fc6b0d4ebdab6e788aff3267045a1 | add base crud repo | JimbeanZN/hulkout-api,JimbeanZN/hulkout | src/HulkOut/Interfaces/IBaseApiCrudRepository.cs | src/HulkOut/Interfaces/IBaseApiCrudRepository.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Web.Http;
namespace HulkOut.Interfaces
{
/// <summary>
/// An interface that can be used to baseline API CRUD repositories.
/// </summary>
/// <typeparam name="T">The type of the model.</typeparam>
/// <typeparam name="TId">The type ... | mit | C# | |
06b61a488950e75e24014248e002800d4d08506b | Add some basic Tests | peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework | osu.Framework.Tests/Primitives/TriangleTest.cs | osu.Framework.Tests/Primitives/TriangleTest.cs | using NUnit.Framework;
using osu.Framework.Graphics.Primitives;
using osuTK;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace osu.Framework.Tests.Primitives
{
[TestFixture]
class TriangleTest
{
[TestCaseSource(typeof(AreaTestData), nameof(AreaT... | mit | C# | |
dab69d55170207f904b2b27725bf0666edb73950 | Add NodeJsObject to serve as base class for NodeJs/Electron objects. | xamarin/WebSharp,xamarin/WebSharp,xamarin/WebSharp,xamarin/WebSharp,xamarin/WebSharp,xamarin/WebSharp | electron-dotnet/src/websharpjs/WebSharp.js/dotnet/WebSharpJs.Browser/NodeJsObject.cs | electron-dotnet/src/websharpjs/WebSharp.js/dotnet/WebSharpJs.Browser/NodeJsObject.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WebSharpJs.Browser
{
public class NodeJsObject : WebSharpObject
{
protected NodeJsObject() : base() { }
protected NodeJsObject(dynamic obj) : base((object)obj)
... | mit | C# | |
a576fab47d49829377d23842cba78ec5b4ae5416 | Add missing | iamdavidfrancis/AFO2015,iamdavidfrancis/AFO2015 | Orlandia2015/Views/Achievements/Create.cshtml | Orlandia2015/Views/Achievements/Create.cshtml | @model Orlandia2015.Models.Achievement
@{
ViewBag.Title = "Add Achievement";
}
<h2>Add Achievement</h2>
<hr />
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<div class="form-group"... | apache-2.0 | C# | |
278d717e75c3cff5a94e89e3505db064b9e83c4c | Add Branding class to pull in branded strings | xenserver/win-xenguestagent,xenserver/win-xenguestagent | src/xenupdater/Branding.cs | src/xenupdater/Branding.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.IO;
using BrandSupport;
namespace XenUpdater
{
public class Branding
{
private static BrandingControl instance;
public static BrandingControl Instance
{
... | bsd-2-clause | C# | |
55458cdd0b602e4c40fc0a9d841e598744a4200c | add storcli cheatsheet draft | lesovsky/uber-scripts,lesovsky/uber-scripts,lesovsky/uber-scripts | cheatsheets/storcli.cs | cheatsheets/storcli.cs | StorCli is a RAID utility For LSI MegaRAID Controllers
cx - controller
vx - volumegroup (RAID)
dx - diskgroup
# storcli /cx/vx show all show volumegroup properties
# storcli /cx/vx set wrcache=WT|WB|AWB array cache policy
# storcli /cx/vx set rdcache=RA|NoRA readahead policy
#... | mit | C# | |
fc3d0715d8eddbdaef3f7d0d32f97fd7868af30b | Add code example for wiki. | KernelA/EOptimization-library | Docs/Code/Example_wiki.cs | Docs/Code/Example_wiki.cs | using System;
using EOpt.Math.Optimization;
using EOpt.Math;
namespace Test
{
class Program
{
static void Main(string[] args)
{
Func<double[], double> func = (x) => 20 + (x[0] * x[0] - 10 * Math.Cos(2 * Math.PI * x[0])) +
(x[1] * x[1] - 10 * Math.Cos(2 * Math.PI * ... | mit | C# | |
4b562a6b46f4b01748967b3e43bb7f2f9d58dec4 | Add FileVerifier test case. | ViveportSoftware/vita_core_csharp,ViveportSoftware/vita_core_csharp | source/Htc.Vita.Core.Tests/FileVerifierTest.cs | source/Htc.Vita.Core.Tests/FileVerifierTest.cs | using System;
using System.IO;
using System.Threading;
using Htc.Vita.Core.Crypto;
using Htc.Vita.Core.IO;
using Xunit;
using Xunit.Abstractions;
namespace Htc.Vita.Core.Tests
{
public class FileVerifierTest
{
private readonly ITestOutputHelper _output;
public FileVerifierTest(ITestOutputHelp... | mit | C# | |
166e61777babcff586a7798343b6b3edc1d5e7d6 | Implement the longest common pattern | cschen1205/cs-algorithms,cschen1205/cs-algorithms | Algorithms/Strings/Search/LongestCommonPattern.cs | Algorithms/Strings/Search/LongestCommonPattern.cs | using System;
using Algorithms.Sorting;
namespace Algorithms.Strings.Search
{
public class LongestCommonPattern
{
public String Find(String s1, String s2)
{
int N = s1.Length;
String[] a = new String[N];
for (var i = 0; i < N; ++i)
{
... | mit | C# | |
5c131bd77561fd31e2ac575a321de4757ec8c7ab | Add basic SQL Controller | techphernalia/MyPersonalAccounts | MyPersonalAccountsController/DAL/SQLController.cs | MyPersonalAccountsController/DAL/SQLController.cs | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
namespace com.techphernalia.MyPersonalAccounts.Controller.DAL
{
public class SQLController
{
private static SQLController _instance { get; set; }
private static... | mit | C# | |
67d08a3eeee036fc94fca611e4986efa3002c372 | Add test scene for previewing Torus alternates | NeoAdonis/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,smoogipooo/osu,ppy/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,peppy/osu,smoogipoo/osu,peppy/osu-new | osu.Game.Tests/Visual/UserInterface/TestSceneOsuFont.cs | osu.Game.Tests/Visual/UserInterface/TestSceneOsuFont.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 NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Game.G... | mit | C# | |
92a8ce114892b8e1c2b14afadd9e6beb5f6fbb5a | Add UpdateStatus equality test. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Tests/UnitTests/UpdateStatusTests.cs | WalletWasabi.Tests/UnitTests/UpdateStatusTests.cs | using System;
using System.Collections.Generic;
using System.Text;
using WalletWasabi.Models;
using Xunit;
namespace WalletWasabi.Tests.UnitTests
{
// IDEAS
// test currentbackendversion to only accept numbers
public class UpdateStatusTests
{
[Fact]
public void TestEquality()
{
var backendCompatible = fal... | mit | C# | |
2ae875e714538a7e3ea4098052944ff0687f92e6 | add EnumerableExtensions | NebulousConcept/b2-csharp-client | b2-csharp-client/B2.Client/EnumerableExtensions.cs | b2-csharp-client/B2.Client/EnumerableExtensions.cs | using System.Collections.Generic;
namespace B2.Client
{
/// <summary>
/// Extension methods for easily constructing <see cref="IEnumerable{T}"/> instances from individual items.
/// </summary>
public static class EnumerableExtensions
{
/// <summary>
/// Convert a single item into ... | mit | C# | |
ff7695829ff6249b6783bc7041a37b416a66e33d | Add .raw | tasty-stew/wormy,carriercomm/wormy,SirCmpwn/wormy,tasty-stew/wormy,carriercomm/wormy,SirCmpwn/wormy | wormy/Modules/ModulesModule.cs | wormy/Modules/ModulesModule.cs | using System;
using System.Linq;
namespace wormy.Modules
{
public class ModulesModlue : Module
{
public override string Name { get { return "modules"; } }
public override string Description { get { return "Meta module that does operations on other modules."; } }
public ModulesModlue(N... | using System;
using System.Linq;
namespace wormy.Modules
{
public class ModulesModlue : Module
{
public override string Name { get { return "modules"; } }
public override string Description { get { return "Meta module that does operations on other modules."; } }
public ModulesModlue(N... | mit | C# |
2914b32b20e9c1b9867cafac15d4118e014fc623 | Add checkpoints file. | CryptoManiac/NovacoinLibrary | Novacoin/Checkpoints.cs | Novacoin/Checkpoints.cs | using System;
namespace Novacoin
{
public class Checkpoints
{
private static Tuple<uint, uint256, uint>[] checkpoints = new Tuple<uint, uint256, uint>[]
{
new Tuple<uint, uint256, uint>(0, NetInfo.nHashGenesisBlock, 1360105017)
};
/// <summary>
/... | agpl-3.0 | C# | |
da8146bf9ee9b4c35aa434afb2548f0354678610 | Create Emotions.cs | akrischer/procjam-three-musketeers,akrischer/procjam-three-musketeers | MoodRingChatroom/Scripts/Emotions.cs | MoodRingChatroom/Scripts/Emotions.cs | using UnityEngine;
using System.Collections.Generic;
public class Emotions : MonoBehaviour {
//Create a list of active words
public static List<string> active = new List<string>()
{
"alarm", "anticipation", "assertive", "capricious","cautious", "collect",
"defiance", "dive", "drive", "eager", "excited", "ext... | artistic-2.0 | C# | |
c9a9d669c07088256c182168c6962aa447e22cfc | Load cadence constraint file to PCB-Investigator | sts-CAD-Software/PCB-Investigator-Scripts | Cadence/LoadCadenceNetGroups.cs | Cadence/LoadCadenceNetGroups.cs | //Synchronous template
//-----------------------------------------------------------------------------------
// PCB-Investigator Automation Script
// Created on 29.06.2016
// Autor Guenther
//
// Empty template to fill for synchronous script.
//-------------------------------------------------------------------... | bsd-3-clause | C# | |
a00203e7483d819b25f845b7a29b7d438283dbe5 | 添加APIMethod抽象类,抽得不好,不过先用着。 | Ronaltn/BAH.Solution | Code/BAH.BOS.WebAPI.ServiceStub/APIMethod.cs | Code/BAH.BOS.WebAPI.ServiceStub/APIMethod.cs | using Kingdee.BOS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BAH.BOS.WebAPI.ServiceStub
{
/// <summary>
/// 接口方法抽象类。
/// </summary>
public abstract class APIMethod<TParameter, TResult>
{
/// <summary>
/// 上下文对象。
/// </su... | mit | C# | |
8007e77f1b46bdd6f4d32bd5e2c7c6860aaaa18b | Create NullTracer.cs | revlucio/NullTracer.SpecflowPlugin | NullTracer.cs | NullTracer.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using TechTalk.SpecFlow;
using TechTalk.SpecFlow.Bindings;
using TechTalk.SpecFlow.Bindings.Reflection;
using TechTalk.SpecFlow.Tracing;
namespace CustomTracer.SpecflowPlugin
{
public class NullTracer : ITestTracer
{
public voi... | apache-2.0 | C# | |
e4ea42cd894967d4ab5f0229fb0f6ec2da537f5c | Add the first bash at a TorrentEditor | dipeshc/BTDeploy | src/MonoTorrent/MonoTorrent.Common/TorrentEditor.cs | src/MonoTorrent/MonoTorrent.Common/TorrentEditor.cs | using System;
using MonoTorrent.BEncoding;
using MonoTorrent.Common;
namespace MonoTorrent
{
public class TorrentEditor {
public bool CanEditSecureMetadata {
get; set;
}
BEncodedDictionary InfoDict {
get { return (BEncodedDictionary) Metadata ["info"]; }
}... | mit | C# | |
7aa9b84418509f8bceba5682beeccacb2c5459d0 | Create SurfaceCreatorInspector.cs | scmcom/unitycode | SurfaceCreatorInspector.cs | SurfaceCreatorInspector.cs | using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(SurfaceCreator))]
public class SurfaceCreatorInspector : Editor
{
private SurfaceCreator creator;
private void OnEnable()
{
creator = target as SurfaceCreator;
Undo.undoRedoPerformed += RefreshCreator;
}
private void OnDisable()
{
Undo.undoRedoP... | mit | C# | |
966ed74320849400fa403048e005f23094eb2be4 | Add tests For LocalFunctionSymbol.ISymbol.IsStatic | jasonmalinowski/roslyn,diryboy/roslyn,brettfo/roslyn,tmat/roslyn,brettfo/roslyn,jasonmalinowski/roslyn,panopticoncentral/roslyn,reaction1989/roslyn,sharwell/roslyn,stephentoub/roslyn,physhi/roslyn,diryboy/roslyn,bartdesmet/roslyn,AmadeusW/roslyn,genlu/roslyn,tmat/roslyn,ErikSchierboom/roslyn,nguerrera/roslyn,wvdd007/ro... | src/Compilers/CSharp/Test/Symbol/Symbols/LocalFunctionTests.cs | src/Compilers/CSharp/Test/Symbol/Symbols/LocalFunctionTests.cs | using System.Linq;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.CSharp.Test.Utilities;
using Roslyn.Test.Utilities;
using Xunit;
namespace Microsoft.CodeAnalysis.CSharp.UnitTests.Symbols
{
public class LocalFunctionTests : CSharpTestBase
{
[Fact, WorkItem(27719, "https://gi... | mit | C# | |
5b2dbc19334b94ed3f5e285d78b552cee30a54a3 | Add IFactory interfaces | stevenvolckaert/enterprise-library | src/StevenVolckaert.Core/IFactory.cs | src/StevenVolckaert.Core/IFactory.cs | namespace StevenVolckaert
{
/// <summary>
/// Represents a factory that requires no parameters to create instances of the specified type.
/// </summary>
/// <typeparam name="TResult">
/// The type of the instances that this factory creates.
/// </typeparam>
public interface IFactory... | mit | C# | |
0957e5bd38646d2ac1f634947ddc6c904bd73bf5 | add ProcessExecutor.cs | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/Helpers/ProcessExecutor.cs | src/WeihanLi.Common/Helpers/ProcessExecutor.cs | using System;
using System.Diagnostics;
using System.Threading.Tasks;
namespace WeihanLi.Common.Helpers
{
public class ProcessExecutor : IDisposable
{
public event EventHandler<int> OnExited;
public event EventHandler<string> OutputDataReceived;
public event EventHandler<string> Erro... | mit | C# | |
1286b41f2ff7a52f8b398bcb717266e24f270246 | Create DateTimeExtensions.cs | keith-hall/Extensions,keith-hall/Extensions | src/DateTimeExtensions.cs | src/DateTimeExtensions.cs | public static class DateTimeExtensions {
public static string ToISO8601String (this DateTime dt) { // ISO-8601 date format
return dt.ToString(@"yyyy-MM-ddTHH:mm:ss.fff", CultureInfo.InvariantCulture);
}
}
| apache-2.0 | C# | |
8c08173c76cbd75daf840246b7c69fdbdb7ff87a | Fix weaver project search path in Linux | jasonholloway/Fody,huoxudong125/Fody,furesoft/Fody,ColinDabritzViewpoint/Fody,distantcam/Fody,GeertvanHorrik/Fody,Fody/Fody | Fody/WeaverProjectFileFinder.cs | Fody/WeaverProjectFileFinder.cs | using System;
using System.IO;
using System.Linq;
public partial class Processor
{
public string WeaverAssemblyPath;
public bool FoundWeaverProjectFile;
public virtual void FindWeaverProjectFile()
{
GetValue();
if (WeaverAssemblyPath == null)
{
Logger.LogDebug("No W... | using System;
using System.IO;
using System.Linq;
public partial class Processor
{
public string WeaverAssemblyPath;
public bool FoundWeaverProjectFile;
public virtual void FindWeaverProjectFile()
{
GetValue();
if (WeaverAssemblyPath == null)
{
Logger.LogDebug("No W... | mit | C# |
0ae411220a722ed5ee8c23ef43f183267d6c15ed | add migrator for postgresql | litichevskiydv/Byndyusoft.Dotnet.Core.Infrastructure,Byndyusoft/Byndyusoft.Dotnet.Core.Infrastructure,Byndyusoft/Byndyusoft.Dotnet.Core.Infrastructure,litichevskiydv/Byndyusoft.Dotnet.Core.Infrastructure,litichevskiydv/Byndyusoft.Dotnet.Core.Infrastructure,Byndyusoft/Byndyusoft.Dotnet.Core.Infrastructure | src/Infrastructure/Migrations/NpgsqlMigrator.cs | src/Infrastructure/Migrations/NpgsqlMigrator.cs | namespace Byndyusoft.Dotnet.Core.Infrastructure.Migrations
{
using System;
using System.Collections.Generic;
using System.Linq;
using Dapper.SessionsFactory;
public class NpgsqlMigrator
{
private readonly ISessionsFactory _sessionsFactory;
private readonly IMigration[] _migrations;
public ... | mit | C# | |
19f9c07437fd94c2d750e17446afe0dcb1117663 | fix for rerunning in local db | HTBox/crisischeckin,HTBox/crisischeckin,RyanBetker/crisischeckin,brunck/crisischeckin,mjmilan/crisischeckin,brunck/crisischeckin,andrewhart098/crisischeckin,andrewhart098/crisischeckin,jsucupira/crisischeckin,mheggeseth/crisischeckin,jplwood/crisischeckin,jplwood/crisischeckin,brunck/crisischeckin,mjmilan/crisischeckin... | crisischeckin/crisicheckinweb/App_Start/DbConfig.cs | crisischeckin/crisicheckinweb/App_Start/DbConfig.cs | using System.Data.Entity;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace crisicheckinweb
{
public class DbConfig
{
public static void Initialize()
{
Database.SetInitializer<CrisisCheckin>(new MigrateDatabase... | using System.Data.Entity;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace crisicheckinweb
{
public class DbConfig
{
public static void Initialize()
{
Database.SetInitializer<CrisisCheckin>(new MigrateDatabase... | apache-2.0 | C# |
fdfff939d9a1420c7c578346db33c65e6a1bf6d5 | add VirtuositySample | Fody/FodyAddinSamples,Fody/FodyAddinSamples | Samples/VirtuositySample.cs | Samples/VirtuositySample.cs | using Xunit;
public class VirtuositySample
{
[Fact]
public void Run()
{
Assert.True(typeof(Target).GetProperty("Property").GetMethod.IsVirtual);
}
public class Target
{
public string Property { get; set; }
}
} | mit | C# | |
37d7a49fee2edfbf4ae3c12aa54d2643e0a7c33d | add some tests for Viewbox | akrisiun/Perspex,SuperJMN/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,Perspex/Perspex,jkoritzinsky/Avalonia,grokys/Perspex,AvaloniaUI/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,grokys/Perspex,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,wieslawsoltes/Perspex,wieslawso... | tests/Avalonia.Controls.UnitTests/ViewboxTests.cs | tests/Avalonia.Controls.UnitTests/ViewboxTests.cs | using Avalonia.Controls.Shapes;
using Avalonia.Media;
using Xunit;
namespace Avalonia.Controls.UnitTests
{
public class ViewboxTests
{
[Fact]
public void Viewbox_Stretch_Uniform_Child()
{
var target = new Viewbox() { Child = new Rectangle() { Width = 100, Height = 50 } };
... | mit | C# | |
472f86896e50d6e4d3e8c24ca7e21fce78afd53a | Add datasource | tobyclh/UnityCNTK,tobyclh/UnityCNTK | Assets/UnityCNTK/DataSource.cs | Assets/UnityCNTK/DataSource.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DataSource : MonoBehaviour {
public UnityEngine.Object source;
public enum PredefinedSource
{
none, position, rotation, quaternion
}
/// <summary>
///
/// </summary>
// Use ... | mit | C# | |
2784ba1423fa69bdaaa84989c459595c0ae1c7f4 | Add queueing modes | smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,ppy/osu,ppy/osu,smoogipooo/osu,peppy/osu | osu.Game/Online/Multiplayer/QueueingModes.cs | osu.Game/Online/Multiplayer/QueueingModes.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.
namespace osu.Game.Online.Multiplayer
{
public enum QueueingModes
{
Host,
Karaoke,
}
}
| mit | C# | |
ee6baeb57e0d51e8d65a3c8c70e25701cc58ada8 | Add "explicit" marker pill | ppy/osu,smoogipoo/osu,ppy/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu-new,smoogipoo/osu,peppy/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,peppy/osu,smoogipooo/osu,NeoAdonis/osu,UselessToucan/osu | osu.Game/Overlays/BeatmapSet/ExplicitBeatmapPill.cs | osu.Game/Overlays/BeatmapSet/ExplicitBeatmapPill.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Game.Graphics;
using... | mit | C# | |
9661538787aa57a6322a970fc3ee9cadb993fbb6 | Add interface for main character animations | cmilr/Unity2D-Components,jguarShark/Unity2D-Components | Interfaces/IPlayerAnimator.cs | Interfaces/IPlayerAnimator.cs |
public interface IPlayerAnimator
{
void PlayIdleAnimation();
void PlayRunAnimation();
void PlayJumpAnimation();
void PlayAttackAnimation();
void PlayRunAttackAnimation();
void PlayJumpAttackAnimation();
bool ExitTimeReached();
} | mit | C# | |
116fdabb8c43ea82e368e41753d2f89f68e38127 | refactor json serialize/deserialize | sitkoru/ModelSelector | Json/SelectorJsonConverter.cs | Json/SelectorJsonConverter.cs | using System;
using System.Collections.Generic;
using System.Reflection;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Sitko.ModelSelector.Base;
using Sitko.ModelSelector.Exceptions;
using Sitko.ModelSelector.Predicates;
namespace Sitko.ModelSelector.Json
{
public class SelectorJsonConverter : JsonConv... | mit | C# | |
949a7d312525c49c54d19e77548d4e1a9ed2d0fa | Test matching composite type handling | peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework | osu.Framework.Tests/Visual/Testing/TestSceneTestingExtensions.cs | osu.Framework.Tests/Visual/Testing/TestSceneTestingExtensions.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.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework... | mit | C# | |
e2f0f0083173f3f3bb47f294b94935621d3109c6 | Add `ConfigureNewLineExtension` markdown extension | lunet-io/markdig | src/Markdig/Extensions/TextRenderer/ConfigureNewLineExtension.cs | src/Markdig/Extensions/TextRenderer/ConfigureNewLineExtension.cs | using Markdig.Renderers;
namespace Markdig.Extensions.TextRenderer
{
/// <summary>
/// Extension that allows setting line-endings for any IMarkdownRenderer
/// that inherits from <see cref="Markdig.Renderers.TextRendererBase"/>
/// </summary>
/// <seealso cref="Markdig.IMarkdownExtension" />
pu... | bsd-2-clause | C# | |
6a66d0649a8fd765d5b19247ad34dbbf1f5103a8 | Add static class for Serialize | 23S163PR/system-programming | Novak.Andriy/parallel-extension-demo/XMLSerilizer.cs | Novak.Andriy/parallel-extension-demo/XMLSerilizer.cs | using System;
using System.IO;
using System.Runtime.Serialization;
using System.Xml.Serialization;
namespace parallel_extension_demo
{
public static class XSerializer
{
public static void XSerilizer<T>(T obj, string fileName)
{
try
{
if (obj == null) ret... | cc0-1.0 | C# | |
881af004b17b6a56164dc645d2285439d3028f5b | Define a slimmed-down version of 'System.Exception' | jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm | stdlib/corlib/Exception.cs | stdlib/corlib/Exception.cs | namespace System
{
/// <summary>
/// Represents errors that occur during program execution.
/// </summary>
public class Exception : Object
{
/// <summary>
/// Creates an exception.
/// </summary>
public Exception()
: this("An exception occurred.")
... | mit | C# | |
06ce02288b41087cf57c3693fcaba86be54ad958 | Create a case insensitive expando object | bosbec/gists | CSharp/Dynamic/DataReaderExtensions.cs | CSharp/Dynamic/DataReaderExtensions.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="DataReaderExtensions.cs" company="Bosbec AB">
// Copyright © Bosbec AB 2014
// </copyright>
// <summary>
// Defines extension methods for data readers.
// </summary>
// -------... | mit | C# | |
0ca7656eeed25c8cfd0179f5c45b1bd4ede1bda6 | Add ICell | odedw/karcero | DunGen.Engine/Contracts/ICell.cs | DunGen.Engine/Contracts/ICell.cs | using DunGen.Engine.Models;
namespace DunGen.Engine.Contracts
{
public interface ICell
{
int Row { get; set; }
int Column { get; set; }
TerrainType Terrain { get; set; }
}
} | mit | C# | |
16909a84ae53c49f7327bd1f757fbf7d4bd16a01 | Create Inheritance | neyogiry/Examples_Csharp | UnderstandingInheritance.cs | UnderstandingInheritance.cs | using System;
namespace UnderstandingInheritance
{
class Program
{
static void Main(string[] args)
{
Car myCar = new Car();
myCar.Make = "BMW";
myCar.Model = "745li";
myCar.Color = "Black";
myCar.Year = 2005;
PrintCarDetails(myCar);
Console.ReadLine();
}
private static void PrintCarD... | mpl-2.0 | C# | |
f4d462eb5d970ccfc6213a9b915dd6c8c518ca9c | Add a new baked texure module methid to support baked texturing mesh avatars | TomDataworks/opensim,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TomDataworks/opensim,RavenB/opensim,TomDataworks/opensim,TomDataworks/opensim,RavenB/opensim,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,RavenB/opensim,EriHoss/OpenSim_0... | OpenSim/Region/Framework/Interfaces/IBakedTextureModule.cs | OpenSim/Region/Framework/Interfaces/IBakedTextureModule.cs | ////////////////////////////////////////////////////////////////
//
// (c) 2009, 2010 Careminster Limited and Melanie Thielker
//
// All rights reserved
//
using System;
using Nini.Config;
using OpenSim.Framework;
using OpenMetaverse;
namespace OpenSim.Services.Interfaces
{
public interface IBakedTextureModule
... | ////////////////////////////////////////////////////////////////
//
// (c) 2009, 2010 Careminster Limited and Melanie Thielker
//
// All rights reserved
//
using System;
using Nini.Config;
using OpenSim.Framework;
using OpenMetaverse;
namespace OpenSim.Services.Interfaces
{
public interface IBakedTextureModule
... | bsd-3-clause | C# |
2937d7faf4dc2acbc5760902f3f5ce09f1f2d1aa | Add UserDbReader | bzshang/PIFitness.Main | PIFitness.AFSync/UserDbReader.cs | PIFitness.AFSync/UserDbReader.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PIFitness.Domain;
using PIFitness.Domain.Interfaces;
namespace PIFitness.AFSync
{
public class UserDbReader : IPIFitnessTableReader<UserEntry>
{
private UserRepository _userReposi... | apache-2.0 | C# | |
d54cf8946766c3fbf3902bb949eb0ef4f75707cc | Add message interface | Vtek/Bartender | src/Bartender/IMessage.cs | src/Bartender/IMessage.cs | namespace Bartender
{
/// <summary>
/// Define a message
/// </summary>
public interface IMessage
{
}
}
| mit | C# | |
d75864295123e8b3836a9610fab5bc9442c2b101 | Add Q154 | txchen/localleet | csharp/Q154_FindMinimumInRotatedSortedArrayII.cs | csharp/Q154_FindMinimumInRotatedSortedArrayII.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Xunit;
//
// Follow up for "Find Minimum in Rotated Sorted Array":
// What if duplicates are allowed?
//
// Would this affect the run-time complexity? How and why?
// Suppose a sorted array is rotated at some pivot unknown to you beforehand.
//
//... | mit | C# | |
216d2d1b34495f4f6649577977420ad059688ac4 | add partition extension | Kukkimonsuta/Odachi | src/Odachi.Extensions.Collections/EnumerableExtensions.cs | src/Odachi.Extensions.Collections/EnumerableExtensions.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Odachi.Extensions.Collections
{
public static class EnumerableExtensions
{
/// <summary>
/// Partitions into arrays of <paramref name="size" />
/// </summary>
public static IEnumerable<T[]> Partition<T>(this IEnumerable<T> enumerabl... | apache-2.0 | C# | |
ee4001dcd76d01b54a30dc90a75d3e3fa07555e8 | Create Read_Mutex.cs | alchemz/ARL_Training | CSharpDotNet_Programming/Thread/Read_Mutex.cs | CSharpDotNet_Programming/Thread/Read_Mutex.cs | using System;
using System.Threading;
namespace Thread_Mutext
{
public class Read_Mutex
{
static Mutex gM1;
static Mutex gM2;
const int ITERS =100;
static AutoResetEvent Event1= new AutoResetEvent(false);
static AutoResetEvent Event2= new AutoResetEvent(false);
static AutoResetEvent Event3= new AutoReset... | mit | C# | |
539eacd7d916b79efe5e5f5d7ea69e0a4c01e56e | add HasConstant | secana/PeNet | src/PeNet/Structures/MetaDataTables/Indices/HasConstant.cs | src/PeNet/Structures/MetaDataTables/Indices/HasConstant.cs | using System;
namespace PeNet.Structures.MetaDataTables.Indices
{
public class HasConstant : AbstractIndex
{
protected HasConstant(
byte[] buff,
uint offset,
params int[] numRowsTable)
: base(
buff,
offset,
... | apache-2.0 | C# | |
f63f68c7cd2c5f853b51a855146f606b31f96a79 | Add BackoffIdleStrategy | AdaptiveConsulting/Aeron.NET,AdaptiveConsulting/Aeron.NET | src/Adaptive.Agrona/Concurrent/BackoffIdleStrategy.cs | src/Adaptive.Agrona/Concurrent/BackoffIdleStrategy.cs | /*
* Copyright 2014 - 2017 Adaptive Financial Consulting Ltd
*
* 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 ap... | apache-2.0 | C# | |
935581fce2c84751b4050750cb4acb4011768f54 | Add first attempt of the Git unit tests | martinbuberl/VersionTasks,jshall/VersionTasks | src/MSBuild.Version.Tasks.Tests/GitVersionFileTest.cs | src/MSBuild.Version.Tasks.Tests/GitVersionFileTest.cs | using System;
using System.IO;
using Ionic.Zip;
using NUnit.Framework;
namespace MSBuild.Version.Tasks.Tests
{
[TestFixture]
public class GitVersionFileTest
{
[SetUp]
public void SetUp()
{
// extract the repositories in the 'Git.zip' file into the 'temp' folder
... | mit | C# | |
00747755a98831b4d06109c11d8d146b576da2f6 | Add Flex Message feature | pierre3/LineMessagingApi,pierre3/LineMessagingApi | FunctionAppSample/Samples/FlexMessageSampleApp.cs | FunctionAppSample/Samples/FlexMessageSampleApp.cs | using Line.Messaging;
using Line.Messaging.Webhooks;
using Microsoft.Azure.WebJobs.Host;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace FunctionAppSample
{
class FlexMessageSampleApp : WebhookApplication
{
private LineMessagingClient MessagingClient { get;... | mit | C# | |
1aa50361bb1a27821a407a26df8f4216cdad00c4 | add XmlnsPrefix which is in WPF | jkoritzinsky/Perspex,grokys/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,SuperJMN/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,grokys/Perspex,wieslawsoltes/Perspex,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,Perspex/Perspex,akrisiun/Perspex,... | src/Avalonia.Base/Metadata/XmlnsPrefixAttribute.cs | src/Avalonia.Base/Metadata/XmlnsPrefixAttribute.cs | using System;
namespace Avalonia.Metadata
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class XmlnsPrefixAttribute : Attribute
{
/// <summary>
/// Constructor
/// </summary>
/// <param name="xmlNamespace">XML namespce</param>
/// ... | mit | C# | |
274e5207523c83fef04e2629a20eb5fb8b16614b | update suppressions | maikebing/GitLab.VisualStudio | src/GitLab.TeamFoundation.14/GlobalSuppressions.cs | src/GitLab.TeamFoundation.14/GlobalSuppressions.cs |
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "... | mit | C# | |
5a6499996312c83163f19e2f0da904f712ccecea | add account controller for signout | yfann/AuthorizationServer,IdentityModel/AuthorizationServer,s093294/Thinktecture.AuthorizationServer,s093294/Thinktecture.AuthorizationServer,yfann/AuthorizationServer,IdentityModel/AuthorizationServer | source/WebHost/Controllers/AccountController.cs | source/WebHost/Controllers/AccountController.cs | using System;
using System.Collections.Generic;
using System.IdentityModel.Services;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Thinktecture.AuthorizationServer.WebHost.Controllers
{
public class AccountController : Controller
{
public ActionResult SignOut()
{
... | bsd-3-clause | C# | |
5ac3d0d82ef3857f9ea2d262362232d9c35eb5bf | Create DependencyPropertyExtensions.cs | jamesqo/typed-xaml | src/Typed.Xaml.Wpf/DependencyPropertyExtensions.cs | src/Typed.Xaml.Wpf/DependencyPropertyExtensions.cs | using System;
using System.Collections.Generic;
using System.Windows;
namespace Typed.Xaml
{
public static class DependencyPropertyExtensions
{
public static DependencyProperty AddOwner<T>(this DependencyProperty property)
where T : DependencyObject
{
return property.Add... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.