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 |
|---|---|---|---|---|---|---|---|---|
79e9239eee8a958021ce1025cc0310db38b86100 | Add areFinesEnabled method to FineCalculations class. | Programazing/Open-School-Library,Programazing/Open-School-Library | src/Open-School-Library/Helpers/FineCalculations.cs | src/Open-School-Library/Helpers/FineCalculations.cs | using Open_School_Library.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Open_School_Library.Helpers
{
public class FineCalculations
{
private static LibraryContext _context;
public FineCalculations(LibraryContext context)
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Open_School_Library.Helpers
{
public class FineCalculations
{
public static double CalculateFine(DateTime CheckedOutOn, DateTime ReturnedOn)
{
return 90;
}
}
}
| mit | C# |
43640002f54064acbc75820edc5ba6ab1ab31e2b | update PipelineBuilder add empty complete delegate as default | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/Helpers/PipelineBuilder.cs | src/WeihanLi.Common/Helpers/PipelineBuilder.cs | using System;
using System.Threading.Tasks;
namespace WeihanLi.Common.Helpers
{
public static class PipelineBuilder
{
public static IPipelineBuilder<TContext> Create<TContext>()
{
return new PipelineBuilder<TContext>(c => { });
}
public static IPipelineBuilder<TCon... | using System;
using System.Threading.Tasks;
namespace WeihanLi.Common.Helpers
{
public static class PipelineBuilder
{
public static IPipelineBuilder<TContext> Create<TContext>(Action<TContext> completeAction)
{
return new PipelineBuilder<TContext>(completeAction);
}
... | mit | C# |
1efbcfa881284c710cd06b06a3683ce863ab1d6b | Fix typo | cucumber-ltd/shouty.net | Shouty/Coordinate.cs | Shouty/Coordinate.cs | namespace Shouty
{
public class Coordinate
{
private readonly int xCoord;
private readonly int yCoord;
public Coordinate(int xCoord, int yCoord)
{
this.xCoord = xCoord;
this.yCoord = yCoord;
}
public int DistanceFrom(Coordinate coordinate... | namespace Shouty
{
public class Coordinate
{
private readonly int xCoord;
private readonly int yCoord;
public Coordinate(int xCoord, int yCoord)
{
this.xCoord = xCoord;
this.yCoord = yCoord;
}
public int DistanceFrom(Coordinate coordinate... | mit | C# |
68dba2b45fa50cb9fbaf79261e110e1e0c3b4ff3 | Fix viewer crash when GameView doesn't have enough space | feliwir/openSage,feliwir/openSage | src/OpenSage.Viewer/UI/Views/GameView.cs | src/OpenSage.Viewer/UI/Views/GameView.cs | using System.Numerics;
using ImGuiNET;
using Veldrid;
namespace OpenSage.Viewer.UI.Views
{
internal abstract class GameView : AssetView
{
private readonly AssetViewContext _context;
protected GameView(AssetViewContext context)
{
_context = context;
}
priva... | using System.Numerics;
using ImGuiNET;
using Veldrid;
namespace OpenSage.Viewer.UI.Views
{
internal abstract class GameView : AssetView
{
private readonly AssetViewContext _context;
protected GameView(AssetViewContext context)
{
_context = context;
}
priva... | mit | C# |
4b35fb0200249a1bc068d8218df309b4963c6d8b | Make nonfatalerrorhandler work with old libpalaso for 3.5 | JohnThomson/BloomDesktop,andrew-polk/BloomDesktop,StephenMcConnel/BloomDesktop,gmartin7/myBloomFork,JohnThomson/BloomDesktop,gmartin7/myBloomFork,JohnThomson/BloomDesktop,gmartin7/myBloomFork,BloomBooks/BloomDesktop,BloomBooks/BloomDesktop,BloomBooks/BloomDesktop,andrew-polk/BloomDesktop,BloomBooks/BloomDesktop,andrew-... | src/BloomExe/NonFatalProblem.cs | src/BloomExe/NonFatalProblem.cs | using System;
using System.Collections.Generic;
using System.Linq;
using SIL.Reporting;
namespace Bloom
{
public enum ThrowIf { Alpha, Beta, Release }
public enum InformIf { Alpha, Beta, Release }
/// <summary>
/// Provides a way to note a problem in the log and, depending on channel, notify the user.
/// Enhan... | using System;
using System.Collections.Generic;
using System.Linq;
using SIL.Reporting;
namespace Bloom
{
public enum ThrowIf { Alpha, Beta, Release }
public enum InformIf { Alpha, Beta, Release }
/// <summary>
/// Provides a way to note a problem in the log and, depending on channel, notify the user.
/// Enhan... | mit | C# |
f2ed67f4ea3af1cd1694298b04d982eadc437a56 | Update version to 1.0.4 - Protocol version: 102 | InPvP/MiNET,yungtechboy1/MiNET | src/MiNET/MiNET/MotdProvider.cs | src/MiNET/MiNET/MotdProvider.cs | using System;
using System.Net;
using MiNET.Utils;
namespace MiNET
{
public class MotdProvider
{
public string Motd { get; set; }
public string SecondLine { get; set; }
public int MaxNumberOfPlayers { get; set; }
public int NumberOfPlayers { get; set; }
public MotdProvider()
{
Motd = Config.GetPro... | using System;
using System.Net;
using MiNET.Utils;
namespace MiNET
{
public class MotdProvider
{
public string Motd { get; set; }
public string SecondLine { get; set; }
public int MaxNumberOfPlayers { get; set; }
public int NumberOfPlayers { get; set; }
public MotdProvider()
{
Motd = Config.GetPro... | mpl-2.0 | C# |
a326f1d40d3a3cb333cdf05fd91ae89a3a579871 | make tests more compact | icarus-consulting/Yaapii.Atoms | tests/Yaapii.Atoms.Tests/IO/MemoryInputTest.cs | tests/Yaapii.Atoms.Tests/IO/MemoryInputTest.cs | // MIT License
//
// Copyright(c) 2020 ICARUS Consulting GmbH
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, co... | // MIT License
//
// Copyright(c) 2020 ICARUS Consulting GmbH
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, co... | mit | C# |
6084491c692b5ca7108885e9bab3e86715227d03 | Update index.cshtml | reactiveui/website,reactiveui/website,reactiveui/website,reactiveui/website | input/slack/index.cshtml | input/slack/index.cshtml | <meta http-equiv="refresh" content="1;url=https://join.slack.com/t/reactivex/shared_invite/zt-lt48skpz-G5WDYOAuzA80_MByZrLT0g" />
Join by visiting <a href="https://join.slack.com/t/reactivex/shared_invite/zt-lt48skpz-G5WDYOAuzA80_MByZrLT0g">Slack</a>
| <meta http-equiv="refresh" content="1;url=https://join.slack.com/t/reactivex/shared_invite/enQtMzM2NzIxNTg0MTYxLTdiMzRhZGI3MDA4NWVkMzZiZTA3MGNhODQ4MDFjZGM2M2JiNmNkZTM2NzMyNDE3ZTIyZGJlMmU0OTVkOWJmYzU" />
Join by visiting <a href="https://join.slack.com/t/reactivex/shared_invite/enQtMzM2NzIxNTg0MTYxLTdiMzRhZGI3MDA4NWVkM... | mit | C# |
6d889c8a37b3f83978fc5020c59857608ff5f5d2 | Revert unintended change | UselessToucan/osu,smoogipooo/osu,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,EVAST9919/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,2yangk23/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ZLima12/osu,ZLima12/osu,johnneijzen/osu,peppy/osu,UselessToucan/osu,EVAST9919/osu,ppy/osu,2yangk23/osu,johnneijzen/osu,peppy/osu-new,Neo... | osu.Game.Rulesets.Osu/Objects/Drawables/Pieces/RingPiece.cs | osu.Game.Rulesets.Osu/Objects/Drawables/Pieces/RingPiece.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osuTK;
using osuTK.Graphics;
using osu.Framework.Graphics.Shapes;
using osu.Game.Skinning;
n... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osuTK;
using osuTK.Graphics;
using osu.Framework.Graphics.Shapes;
using osu.Game.Skinning;
... | mit | C# |
d66a26cd116bc45f9fd240cefbfd0acfc7f727b8 | Add JsonProperty hinting | ZLima12/osu,EVAST9919/osu,peppy/osu-new,smoogipooo/osu,peppy/osu,2yangk23/osu,ppy/osu,smoogipoo/osu,johnneijzen/osu,peppy/osu,EVAST9919/osu,UselessToucan/osu,UselessToucan/osu,2yangk23/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,johnneijzen/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,ZLima12/osu,ppy/osu... | osu.Game/Online/API/Requests/Responses/APIChangelogIndex.cs | osu.Game/Online/API/Requests/Responses/APIChangelogIndex.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using Newtonsoft.Json;
namespace osu.Game.Online.API.Requests.Responses
{
public class APIChangelogIndex
{
[JsonPropert... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
namespace osu.Game.Online.API.Requests.Responses
{
public class APIChangelogIndex
{
public List<APIChangelogBuild> Buil... | mit | C# |
6cd306813de03f8b6d47e38381a1276111434121 | check for null capability | rit-sse-mycroft/core | Mycroft/Cmd/Msg/UndirectedQuery.cs | Mycroft/Cmd/Msg/UndirectedQuery.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Mycroft.Messages.Msg;
using Mycroft.App;
using System.Diagnostics;
namespace Mycroft.Cmd.Msg
{
class UndirectedQuery : Query
{
public UndirectedQuery(MsgQuery query, AppInstance i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Mycroft.Messages.Msg;
using Mycroft.App;
using System.Diagnostics;
namespace Mycroft.Cmd.Msg
{
class UndirectedQuery : Query
{
public UndirectedQuery(MsgQuery query, AppInstance i... | bsd-3-clause | C# |
092a408911f53dab80a55b3e810b69fe8cb12221 | Update the version number to 1.4.0 | tpierrain/NFluent,NFluent/NFluent,dupdob/NFluent,tpierrain/NFluent,NFluent/NFluent,dupdob/NFluent,tpierrain/NFluent,dupdob/NFluent | Version.cs | Version.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Version.cs" company="">
// Copyright 2013 Thomas PIERRAIN
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complianc... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Version.cs" company="">
// Copyright 2013 Thomas PIERRAIN
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complianc... | apache-2.0 | C# |
c3b3ebc40a47b3daa1151e06d82247d87585037c | Check background job worker before using that in jobs info controller | bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework | src/Server/Bit.OData/ODataControllers/JobsInfoController.cs | src/Server/Bit.OData/ODataControllers/JobsInfoController.cs | using Bit.Core.Contracts;
using Bit.Core.Models;
using Bit.Model.Dtos;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Bit.OData.ODataControllers
{
public class JobsInfoController : DtoController<JobInfoDto>
{
public virtual IBackgroundJobWorker BackgroundJobWorker { get;... | using System;
using System.Threading;
using System.Threading.Tasks;
using Bit.Core.Contracts;
using Bit.Core.Models;
using Bit.Model.Dtos;
namespace Bit.OData.ODataControllers
{
public class JobsInfoController : DtoController<JobInfoDto>
{
public virtual IBackgroundJobWorker BackgroundJobWorker { get;... | mit | C# |
25dc37cc5a7702ee7db07c19c2087bed0956b985 | Add using | marihachi/MSharp | src/MSharpSample/SampleForm.cs | src/MSharpSample/SampleForm.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MSharp;
namespace MSharpSample
{
public partial class SampleForm : Form
{
public SampleForm()... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSharpSample
{
public partial class SampleForm : Form
{
public SampleForm()
{
Initial... | mit | C# |
0ddb4dc9014906db27a3d9616fc9db5993266726 | Fix missing reward bug | ywcui1990/htmresearch,BoltzmannBrain/nupic.research,numenta/htmresearch,ThomasMiconi/htmresearch,mrcslws/htmresearch,ThomasMiconi/htmresearch,cogmission/nupic.research,BoltzmannBrain/nupic.research,ThomasMiconi/htmresearch,neuroidss/nupic.research,numenta/htmresearch,cogmission/nupic.research,ThomasMiconi/nupic.researc... | vehicle-control/simulation/Assets/Scripts/Reward.cs | vehicle-control/simulation/Assets/Scripts/Reward.cs | using UnityEngine;
using System.Collections;
public class Reward : MonoBehaviour {
public float reward = 100f;
private bool collided = false;
IEnumerator ResetLevel() {
float lastSyncTime = API.instance.LastSyncTime();
while (lastSyncTime == API.instance.LastSyncTime()) {
yield return null;
}
Applic... | using UnityEngine;
using System.Collections;
public class Reward : MonoBehaviour {
public float reward = 100f;
private bool collided = false;
IEnumerator ResetLevel() {
yield return new WaitForSeconds(1.0f);
Application.LoadLevel(Application.loadedLevel);
}
void OnCollisionEnter(Collision collision) {
... | agpl-3.0 | C# |
dd512d1b619888ef0171ba2f75420dfb6462f615 | fix compile error | guibec/rpgcraft,guibec/rpgcraft,guibec/rpgcraft,guibec/rpgcraft | unity/Assets/Scripts/Game/Player/Experience.cs | unity/Assets/Scripts/Game/Player/Experience.cs | using UnityEngine;
using System.Collections;
using UnityEngine.Assertions;
public class Experience
{
public Experience()
{
XP = 0;
}
public int Level
{
get
{
for (int i = MaxLevel-1; i >= 0; --i)
{
if (XP >= NextLevels[i])
... | using UnityEngine;
using System.Collections;
using UnityEngine.Assertions;
public class Experience
{
public int Level
{
get
{
for (int i = MaxLevel-1; i >= 0; --i)
{
if (XP >= NextLevels[i])
return i + 1;
}
As... | mit | C# |
9a3f9adfa218a67956afe2986ed34fe2d3944d18 | Add xml comment on namespace. | YoshinoriN/Kinugasa | Source/Kinugasa.UI/BindingProxy.cs | Source/Kinugasa.UI/BindingProxy.cs | using System.Windows;
/// <summary>
/// Provide userinterface components.
/// </summary>
namespace Kinugasa.UI
{
/// <summary>
/// Proxy class for binding sorce.
/// </summary>
public class BindingProxy : Freezable
{
/// <summary>
/// Define dependencyProperty.
/// </summar... | using System.Windows;
namespace Kinugasa.UI
{
/// <summary>
/// Proxy class for binding sorce.
/// </summary>
public class BindingProxy : Freezable
{
/// <summary>
/// Define dependencyProperty.
/// </summary>
public static readonly DependencyProperty DataProperty =... | mit | C# |
866fc9fc6ae6367a70e3c2dd4a819213bfaf214e | Fix GitHub_3449 test (#12683) | botaberg/coreclr,kyulee1/coreclr,kyulee1/coreclr,mmitche/coreclr,cshung/coreclr,dpodder/coreclr,russellhadley/coreclr,dpodder/coreclr,wtgodbe/coreclr,mmitche/coreclr,botaberg/coreclr,botaberg/coreclr,botaberg/coreclr,rartemev/coreclr,wateret/coreclr,gkhanna79/coreclr,cydhaselton/coreclr,poizan42/coreclr,wateret/coreclr... | tests/src/JIT/Regression/JitBlue/GitHub_3449/GitHub_3449.cs | tests/src/JIT/Regression/JitBlue/GitHub_3449/GitHub_3449.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
using System;
public class Program
{
// RyuJIT codegen, VC++, clang and gcc may produce different results for ca... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
using System;
public class Program
{
// RyuJIT codegen and clang (or gcc) may produce different results for cast... | mit | C# |
29ff7bc34014a80df54ce9598570d89d58e50d0a | Handle checkbox value conversion from Nested Content | marcemarc/Umbraco-CMS,dawoe/Umbraco-CMS,robertjf/Umbraco-CMS,marcemarc/Umbraco-CMS,NikRimington/Umbraco-CMS,tcmorris/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,hfloyd/Umbraco-CMS,hfloyd/Umbraco-CMS,bjarnef/Umbraco-CMS,abryukhov/Umbraco-CMS,leekelleher/Umbraco-CMS,dawoe/Umbraco-CMS,leekelleher/Umbraco-CMS,tcmorris/Umbrac... | src/Umbraco.Core/PropertyEditors/ValueConverters/YesNoValueConverter.cs | src/Umbraco.Core/PropertyEditors/ValueConverters/YesNoValueConverter.cs | using System;
using Umbraco.Core.Models.PublishedContent;
namespace Umbraco.Core.PropertyEditors.ValueConverters
{
[DefaultPropertyValueConverter]
public class YesNoValueConverter : PropertyValueConverterBase
{
public override bool IsConverter(PublishedPropertyType propertyType)
=> pro... | using System;
using Umbraco.Core.Models.PublishedContent;
namespace Umbraco.Core.PropertyEditors.ValueConverters
{
[DefaultPropertyValueConverter]
public class YesNoValueConverter : PropertyValueConverterBase
{
public override bool IsConverter(PublishedPropertyType propertyType)
=> pro... | mit | C# |
d3615d7deea12f8b2a8d863c6959003b624b5c72 | Check IsTogglePatternAvailable insted of using ControlType | jorik041/Winium.Desktop,2gis/Winium.Desktop,zebraxxl/Winium.Desktop | src/Winium.Desktop.Driver/CommandExecutors/IsElementSelectedExecutor.cs | src/Winium.Desktop.Driver/CommandExecutors/IsElementSelectedExecutor.cs | namespace Winium.Desktop.Driver.CommandExecutors
{
#region using
using System.Windows.Automation;
using Winium.Cruciatus.Exceptions;
using Winium.Cruciatus.Extensions;
using Winium.StoreApps.Common;
#endregion
internal class IsElementSelectedExecutor : CommandExecutorBase
{
... | namespace Winium.Desktop.Driver.CommandExecutors
{
#region using
using System.Windows.Automation;
using Winium.Cruciatus.Extensions;
using Winium.StoreApps.Common;
#endregion
internal class IsElementSelectedExecutor : CommandExecutorBase
{
#region Methods
protected over... | mpl-2.0 | C# |
030e7a1178cf93dd94176e54c94a4bfd15b0b0ac | address issue #100 | fandrei/AppMetrics,fandrei/AppMetrics | AppMetrics/Config.aspx.cs | AppMetrics/Config.aspx.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AppMetrics.WebUtils;
namespace AppMetrics
{
public partial class Config : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
try
{
WebUtil.CheckIpAddress();
LogEven... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AppMetrics.WebUtils;
namespace AppMetrics
{
public partial class Config : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
try
{
WebUtil.CheckIpAddress();
LogEven... | apache-2.0 | C# |
1d094f5ef612ab98a104394946e5629a1002248c | hide in inspector | sapphiredev/mutsuki | Assets/Scripts/MObject.cs | Assets/Scripts/MObject.cs | using UnityEngine;
using Mutsuki;
public class MObject : MonoBehaviour {
[HideInInspector]
public Category category;
[HideInInspector]
public int id;
[HideInInspector]
public Vector3 pos;
[HideInInspector]
public int hp;
private float cooltime;
[HideInInspector]
public Vector3 targetPos;
[HideInIns... | using UnityEngine;
using Mutsuki;
public class MObject : MonoBehaviour {
public Category category;
public int id;
public Vector3 pos;
public int hp;
private float cooltime;
public Vector3 targetPos;
public enum Status {
Stop,
Move,
}
public Status status;
public void SetUp(NewObjectPacket packet) {... | mit | C# |
0aa198d1b0b1df5e590f0dc4ee349673157739ca | Bump version to 5.6 | glorylee/FluentValidation,deluxetiky/FluentValidation,GDoronin/FluentValidation,mgmoody42/FluentValidation,robv8r/FluentValidation,IRlyDontKnow/FluentValidation,cecilphillip/FluentValidation,olcayseker/FluentValidation,regisbsb/FluentValidation,ruisebastiao/FluentValidation | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | using System.Reflection;
[assembly : AssemblyVersion("5.6.0.0")]
[assembly : AssemblyFileVersion("5.6.0.0")] | using System.Reflection;
[assembly : AssemblyVersion("5.5.0.0")]
[assembly : AssemblyFileVersion("5.5.0.0")] | apache-2.0 | C# |
049500633e9e22c9530f8cc2ccaea2da6e177861 | Update ViewLocator.cs | wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D/ViewLocator.cs | src/Core2D/ViewLocator.cs | #nullable disable
using System;
using Avalonia.Controls;
using Avalonia.Controls.Templates;
using Core2D.ViewModels;
using Dock.Model.ReactiveUI.Core;
namespace Core2D
{
[StaticViewLocator]
public partial class ViewLocator : IDataTemplate
{
public IControl Build(object data)
{
v... | #nullable disable
using System;
using Avalonia.Controls;
using Avalonia.Controls.Templates;
using Core2D.ViewModels;
using Dock.Model.ReactiveUI.Core;
namespace Core2D
{
[StaticViewLocator]
public partial class ViewLocator : IDataTemplate
{
public IControl Build(object data)
{
v... | mit | C# |
13b3931d92ff2871eefe85ba9e5899acad95c48f | Update tests | LinqToDB4iSeries/linq2db,MaceWindu/linq2db,genusP/linq2db,lvaleriu/linq2db,linq2db/linq2db,lvaleriu/linq2db,MaceWindu/linq2db,ronnyek/linq2db,LinqToDB4iSeries/linq2db,genusP/linq2db,linq2db/linq2db,enginekit/linq2db | Tests/Linq/Data/RetryPolicyTest.cs | Tests/Linq/Data/RetryPolicyTest.cs | using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using LinqToDB;
using LinqToDB.Data;
using NUnit.Framework;
namespace Tests.Data
{
[TestFixture]
public class RetryPolicyTest : TestBase
{
class Retry : IRetryPolicy
{
public int Count { get; private set; }
public T... | using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using LinqToDB;
using LinqToDB.Data;
using NUnit.Framework;
namespace Tests.Data
{
[TestFixture]
public class RetryPolicyTest : TestBase
{
class Retry : IRetryPolicy
{
public int Count { get; private set; }
public T... | mit | C# |
34840513a1986efe28ff1bbca0a5e3560c1ce064 | Add VariantEnd to GameStatus | ProgramFOX/Chess.NET | ChessDotNet/GameStatus.cs | ChessDotNet/GameStatus.cs | namespace ChessDotNet
{
public class GameStatus
{
public enum Events
{
Check,
Checkmate,
Stalemate,
Draw,
Custom,
VariantEnd, // to be used for chess variants, which can be derived from ChessBoard
None
}... | namespace ChessDotNet
{
public class GameStatus
{
public enum Events
{
Check,
Checkmate,
Stalemate,
Draw,
Custom,
None
}
public Events Event
{
get;
private set;
... | mit | C# |
4002f3e98b27d1a3c6af390b219ab13899e9eb54 | make WpfFileStoreConfig as implementation of IMvxPluginConfiguration | Didux/MvvmCross-Plugins,lothrop/MvvmCross-Plugins,martijn00/MvvmCross-Plugins | File/MvvmCross.Plugins.File.Wpf/WpfFileStoreConfiguration.cs | File/MvvmCross.Plugins.File.Wpf/WpfFileStoreConfiguration.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cirrious.CrossCore.Plugins;
namespace MvvmCross.Plugins.File.Wpf
{
public class WpfFileStoreConfiguration: IMvxPluginConfiguration
{
public string RootFolder { get; set; }
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MvvmCross.Plugins.File.Wpf
{
public class WpfFileStoreConfiguration
{
public string RootFolder { get; set; }
}
}
| mit | C# |
68b599fc96a4cf3b62b48abcc4708021767953cd | Update AssemblyInfo to reference Couchbase as owner / copyright | couchbaselabs/meep-meep | src/SharedAssemblyInfo.cs | src/SharedAssemblyInfo.cs | using System.Reflection;
#if DEBUG
[assembly: AssemblyProduct("MeepMeep (Debug)")]
[assembly: AssemblyConfiguration("Debug")]
#else
[assembly: AssemblyProduct("MeepMeep (Release)")]
[assembly: AssemblyConfiguration("Release")]
#endif
[assembly: AssemblyDescription("MeepMeep - A super simple workload utility for the ... | using System.Runtime.InteropServices;
using System.Reflection;
#if DEBUG
[assembly: AssemblyProduct("MeepMeep (Debug)")]
[assembly: AssemblyConfiguration("Debug")]
#else
[assembly: AssemblyProduct("MeepMeep (Release)")]
[assembly: AssemblyConfiguration("Release")]
#endif
[assembly: AssemblyDescription("MeepMeep - A ... | apache-2.0 | C# |
1791a853068fff01adff5cc448b19a5e1b6aef6e | Fix accidently pushed bug | feliwir/openSage,feliwir/openSage | src/OpenSage.Game/Network/Packets/SkirmishOrderPacket.cs | src/OpenSage.Game/Network/Packets/SkirmishOrderPacket.cs | using System.Collections.Generic;
using OpenSage.Logic.Orders;
namespace OpenSage.Network.Packets
{
public class SkirmishOrderPacket
{
public uint Frame { get; set; }
public Order[] Orders { get; set; }
}
}
| using System.Collections.Generic;
using OpenSage.Logic.Orders;
namespace OpenSage.Network.Packets
{
public class SkirmishOrderPacket
{
public uint Frame { get; set; }
public List<Order> Orders { get; set; }
}
}
| mit | C# |
0867be327c2a2500e7f30f6c34eb2a96be414a7b | remove spaces | smbc-digital/iag-webapp,smbc-digital/iag-webapp,smbc-digital/iag-webapp | src/StockportWebapp/Views/Shared/SocialMediaLinks.cshtml | src/StockportWebapp/Views/Shared/SocialMediaLinks.cshtml | @model IEnumerable<StockportWebapp.Models.SocialMediaLink>
@inject StockportWebapp.Config.BusinessId BusinessId
<div class="footer-social-links">
@{ var nameOfSite = ""; }
@if (BusinessId.ToString() == "stockportgov")
{
nameOfSite = "stockport council";
}
else if (BusinessId.ToString() ==... | @model IEnumerable<StockportWebapp.Models.SocialMediaLink>
@inject StockportWebapp.Config.BusinessId BusinessId
<div class="footer-social-links">
@{ var nameOfSite = ""; }
@if (BusinessId.ToString() == "stockportgov")
{
nameOfSite = "stockport council";
}
else if (BusinessId.ToString() ==... | mit | C# |
17283a0844515e045329cf48b025aab5c4ab5059 | Update catalog list item style | Jeffiy/ZBlog-Net,Jeffiy/ZBlog-Net,Jeffiy/ZBlog-Net | src/ZBlog/Views/Shared/Components/Catalog/Default.cshtml | src/ZBlog/Views/Shared/Components/Catalog/Default.cshtml | @model List<Catalog>
<div class="am-panel-hd">Catalog</div>
<div class="am-panel-bd">
@foreach (var catalog in Model)
{
<a asp-controller="Home" asp-action="Catalog" asp-route-title="@catalog.Url">
@catalog.Title
<span class="am-badge am-badge-success am-round">@catalog.Posts.C... | @model List<Catalog>
<div class="am-panel-hd">Catalog</div>
<div class="am-panel-bd">
@foreach (var catalog in Model)
{
<a asp-controller="Home" asp-action="Catalog" asp-route-title="@catalog.Url">
@catalog.Title
<span class="am-badge am-badge-secondary am-round">@catalog.Posts... | mit | C# |
a9afade3770d57ab9b7dc75b3a73a30ecc10a3a8 | Update StringIsNotEmptyAttribute.cs | Gibe/Gibe.DittoProcessors | Gibe.DittoProcessors/Processors/StringIsNotEmptyAttribute.cs | Gibe.DittoProcessors/Processors/StringIsNotEmptyAttribute.cs | using System;
namespace Gibe.DittoProcessors.Processors
{
public class StringIsNotNullOrEmptyAttribute : TestableDittoProcessorAttribute
{
public override object ProcessValue()
{
if (Value == null) throw new NullReferenceException();
var stringValue = Value as string;
return !String.IsNullOrEmpty(str... | using System;
namespace Gibe.DittoProcessors.Processors
{
public class StringIsNotEmptyAttribute : TestableDittoProcessorAttribute
{
public override object ProcessValue()
{
if (Value == null) throw new NullReferenceException();
var stringValue = Value as string;
return !String.IsNullOrEmpty(stringVal... | mit | C# |
39663ea43c1f58808b90119e3f1ed8df806bc8ff | Support for custom watch expressions | tmds/Tmds.DBus | Monitor.cs | Monitor.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using System.Collections.Generic;
using NDesk.DBus;
using org.freedesktop.DBus;
public class ManagedDBusTest
{
public static void Main (string[] args)
{
string addr = Addr... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using System.Collections.Generic;
using NDesk.DBus;
using org.freedesktop.DBus;
public class ManagedDBusTest
{
public static void Main (string[] args)
{
string addr = Addr... | mit | C# |
d8c7a16aa1e40bea247787ec8dc943449cc395bc | Return whether the target has any dispellable debuff | BosslandGmbH/BuddyWing.DefaultCombat | trunk/DefaultCombat/Extensions/TorCharacterExtensions.cs | trunk/DefaultCombat/Extensions/TorCharacterExtensions.cs | using System.Collections.Generic;
using System.Linq;
using Buddy.Swtor.Objects;
namespace DefaultCombat.Extensions
{
public static class TorCharacterExtensions
{
private static readonly IReadOnlyList<string> _dispellableDebuffs = new List<string>
{
"Hunting Trap",
"Burn... | using Buddy.Swtor.Objects;
namespace DefaultCombat.Extensions
{
public static class TorCharacterExtensions
{
public static bool ShouldDispel(this TorCharacter target, string debuffName)
{
if (target == null)
return false;
return target.HasDebuff(debuffN... | apache-2.0 | C# |
3705dae4ea3df67300e9605661b1b391561683ec | simplify Console Trace Listener | lontivero/DreamBot,lontivero/vinchuca | ColorConsoleTraceListener.cs | ColorConsoleTraceListener.cs | using System;
using System.Diagnostics;
using System.Collections.Generic;
namespace DreamBot
{
public class ColorConsoleTraceListener : ConsoleTraceListener
{
private static readonly Dictionary<TraceEventType, ConsoleColor> EventColor = new Dictionary<TraceEventType, ConsoleColor>();
static ... | using System;
using System.Diagnostics;
using System.Collections.Generic;
namespace DreamBot
{
public class ColorConsoleTraceListener : ConsoleTraceListener
{
private static readonly Dictionary<TraceEventType, ConsoleColor> EventColor = new Dictionary<TraceEventType, ConsoleColor>();
static ... | mit | C# |
d161a21265346b34a7949a79710e6676b5566c9c | Add link to game | TeamLeoTolstoy/Leo | Game/tempor/GameObject.cs | Game/tempor/GameObject.cs | //http://www.flasharcade.com/tower-defence-games/play/stalingrad-tower-defence.html
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace tempor
{
public abstract class GameObject
{
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace tempor
{
public abstract class GameObject
{
}
}
| mit | C# |
efdba516da6d515897929a64c345fbcecffadcae | Fix for QueueStart | Thundernerd/Unity3D-Automatron | Automatron/Assets/Automatron/Editor/Automations/System.cs | Automatron/Assets/Automatron/Editor/Automations/System.cs | using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace TNRD.Automatron.Automations {
#pragma warning disable 0649
[Automation( "System/Start" )]
class QueueStart : Automation {
private GUIStyle textStyle;
public bool IsInitial { get; set;... | using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace TNRD.Automatron.Automations {
#pragma warning disable 0649
[Automation( "System/Start" )]
class QueueStart : Automation {
private GUIStyle textStyle;
public QueueStart() : this( true ... | mit | C# |
a16ce73c3708ce32d26c6c96db18c386ae39735b | Fix typos in TagJsonConverter. | peeedge/mobile,masterrr/mobile,ZhangLeiCharles/mobile,ZhangLeiCharles/mobile,masterrr/mobile,eatskolnikov/mobile,peeedge/mobile,eatskolnikov/mobile,eatskolnikov/mobile | Phoebe/Data/Json/Converters/TagJsonConverter.cs | Phoebe/Data/Json/Converters/TagJsonConverter.cs | using System;
using System.Threading.Tasks;
using Toggl.Phoebe.Data.DataObjects;
namespace Toggl.Phoebe.Data.Json.Converters
{
public sealed class TagJsonConverter : BaseJsonConverter
{
public async Task<TagJson> Export (TagData data)
{
var workspaceIdTask = GetRemoteId<WorkspaceDa... | using System;
using System.Threading.Tasks;
using Toggl.Phoebe.Data.DataObjects;
namespace Toggl.Phoebe.Data.Json.Converters
{
public sealed class TagJsonConverter : BaseJsonConverter
{
public async Task<TagJson> ToJsonAsync (TagData data)
{
var workspaceIdTask = GetRemoteId<Worksp... | bsd-3-clause | C# |
fe041ae55f1dff70995f725ce22347cf8c47b707 | Fix borked rejex | ArcticEcho/Hatman | Hatman/Commands/Should.cs | Hatman/Commands/Should.cs | using System.Text.RegularExpressions;
using ChatExchangeDotNet;
namespace Hatman.Commands
{
class Should : ICommand
{
private readonly Regex ptn = new Regex(@"(?i)^((sh|[cw])ould|can|are|did|will|is|has|does|do).*\?", Extensions.RegOpts);
private readonly string[] phrases = new[]
{
... | using System.Text.RegularExpressions;
using ChatExchangeDotNet;
namespace Hatman.Commands
{
class Should : ICommand
{
private readonly Regex ptn = new Regex(@"(?i)^(sh|[cw])ould|can|are|did|will|is|has|does|do).*\?", Extensions.RegOpts);
private readonly string[] phrases = new[]
{
... | isc | C# |
20c4a6ffcc734f8be8d7596c11cb35735c5767c5 | Allow empty enumerables in MinBy/MaxBy | ygra/Diablo3ItemCollage,ygra/Diablo3ItemCollage | ItemCollage/Extensions.cs | ItemCollage/Extensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace ItemCollage
{
public static class Extensions
{
private static IEnumerable<KeyValuePair<TVal, TMapped>> MapSortBy<TVal, TMapped>(
this IEnumerable<TVal> source, Func<TVal, T... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace ItemCollage
{
public static class Extensions
{
private static IEnumerable<KeyValuePair<TVal, TMapped>> MapSortBy<TVal, TMapped>(
this IEnumerable<TVal> source, Func<TVal, T... | mit | C# |
4362752ad8e976bb4e3e4c7304655b07466935e7 | Prepare for release 1.0.0. | SolinkCorp/Solink.AddIn.Helpers | Solink.AddIn.Helpers/Properties/AssemblyInfo.cs | Solink.AddIn.Helpers/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | mit | C# |
767668711b7c1344d6b2e35ba78b841bd418c535 | Fix integration tests | ASP-NET-MVC-Boilerplate/Templates,ASP-NET-MVC-Boilerplate/Templates | Source/GraphQLTemplate/Tests/GraphQLTemplate.IntegrationTest/QueryTest.cs | Source/GraphQLTemplate/Tests/GraphQLTemplate.IntegrationTest/QueryTest.cs | namespace GraphQLTemplate.IntegrationTest.Controllers
{
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using GraphQLTemplate.IntegrationTest.Constants;
using GraphQLTemplate.IntegrationTest.Models;
using Xunit;
using Xunit.Abstractions;
public class QueryTest : C... | namespace GraphQLTemplate.IntegrationTest.Controllers
{
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using GraphQLTemplate.IntegrationTest.Constants;
using GraphQLTemplate.IntegrationTest.Models;
using Xunit;
using Xunit.Abstractions;
public class QueryTest : C... | mit | C# |
76129871147d2471d1c76f687b7486fd84ae93e1 | add submite to ijourneyclient | MiXTelematics/MiX.Integrate.Api.Client | MiX.Integrate.API.Client/Journeys/IJourneysClient.cs | MiX.Integrate.API.Client/Journeys/IJourneysClient.cs | using System.Threading.Tasks;
using System.Collections.Generic;
using MiX.Integrate.Shared.Entities.Journeys;
using MiX.Integrate.Api.Client.Base;
namespace MiX.Integrate.Api.Client.Journeys
{
public interface IJourneysClient : IBaseClient
{
Journey GetJourney(long journeyId);
Task<Journey> GetJourneyAsync(long... | using System.Threading.Tasks;
using System.Collections.Generic;
using MiX.Integrate.Shared.Entities.Journeys;
using MiX.Integrate.Api.Client.Base;
namespace MiX.Integrate.Api.Client.Journeys
{
public interface IJourneysClient : IBaseClient
{
Journey GetJourney(long journeyId);
Task<Journey> GetJourneyAsync(long... | mit | C# |
bc1fed2dbd569237546d7cdd599d10545eaa18c3 | clean up random seed generation | bpowers/Raft.NET | Program.cs | Program.cs | // Copyright 2017 Bobby Powers. All rights reserved.
// Use of this source code is governed by the ISC
// license that can be found in the LICENSE file.
namespace Raft
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Threading;
... | // Copyright 2017 Bobby Powers. All rights reserved.
// Use of this source code is governed by the ISC
// license that can be found in the LICENSE file.
namespace Raft
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Threading;
... | isc | C# |
086810a701f97ef95fb88055e8bb4e3afe13cadd | Document some offsets in 0x67 | HelloKitty/Booma.Proxy | src/Booma.Packet.Game/Block/Payloads/Server/BlockLobbyJoinEventPayload.cs | src/Booma.Packet.Game/Block/Payloads/Server/BlockLobbyJoinEventPayload.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
/// <summary>
/// Packet sent to the client telling it to join a lobby.
/// </summary>
[WireDataContract]
[GameServerPacketPayload(GameNetwor... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
/// <summary>
/// Packet sent to the client telling it to join a lobby.
/// </summary>
[WireDataContract]
[GameServerPacketPayload(GameNetwor... | agpl-3.0 | C# |
894e90f485bd7c024e19152154d75e51c8883c83 | Use new ActionLink extension method. | fortunearterial/Orchard,huoxudong125/Orchard,JRKelso/Orchard,li0803/Orchard,qt1/Orchard,qt1/Orchard,brownjordaninternational/OrchardCMS,Serlead/Orchard,SeyDutch/Airbrush,dmitry-urenev/extended-orchard-cms-v10.1,sfmskywalker/Orchard,alejandroaldana/Orchard,Fogolan/OrchardForWork,cooclsee/Orchard,aaronamm/Orchard,dcinzon... | src/Orchard.Web/Modules/Orchard.Lists/Views/Parts.Container.Manage.cshtml | src/Orchard.Web/Modules/Orchard.Lists/Views/Parts.Container.Manage.cshtml | @using Orchard.ContentManagement.MetaData.Models
@{
var containerId = (int) Model.ContainerId;
var itemContentTypes = (IList<ContentTypeDefinition>)Model.ItemContentTypes;
}
<div class="item-properties actions">
<p>
@Html.ActionLink(T("{0} Properties", (string)Model.ContainerDisplayName), "E... | @using Orchard.ContentManagement.MetaData.Models
@{
var containerId = (int) Model.ContainerId;
var itemContentTypes = (IList<ContentTypeDefinition>)Model.ItemContentTypes;
}
<div class="item-properties actions">
<p>
@Html.ActionLink(T("{0} Properties", Html.Raw((string)Model.ContainerDisplay... | bsd-3-clause | C# |
2628ecf9e85c8122042d1d7726d034220d29d9bf | Fix exclusiveTrack threading and disposal issues | ppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,Tom94/osu-framework,DrabWeb/osu-framework,peppy/osu-framework,naoey/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ZLima12/osu-framework,RedNesto/osu-framework,smoogipooo/osu-framework,RedNesto/osu-framework,Nabile-Rahmani/osu... | osu.Framework/Audio/Track/TrackManager.cs | osu.Framework/Audio/Track/TrackManager.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.Linq;
using osu.Framework.IO.Stores;
using System;
namespace osu.Framework.Audio.Track
{
public class TrackManager : AudioCollectio... | // 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.Linq;
using osu.Framework.IO.Stores;
using System;
namespace osu.Framework.Audio.Track
{
public class TrackManager : AudioCollectio... | mit | C# |
2b89993a031d5d8e8d262ed4b994b06e9c67c0ab | Change accessibility levels of science container object | Kerbas-ad-astra/Orbital-Science,DMagic1/Orbital-Science | Source/DMScienceContainer.cs | Source/DMScienceContainer.cs | #region license
/* DMagic Orbital Science - DMScienceContainer
* Object to store experiment properties
*
* Copyright (c) 2014, David Grandy <david.grandy@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the fol... | #region license
/* DMagic Orbital Science - DMScienceContainer
* Object to store experiment properties
*
* Copyright (c) 2014, David Grandy <david.grandy@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the fol... | bsd-3-clause | C# |
5425b9777fe4f71e47eec04d909d2e83f9eeb496 | Change ChildOrder Side property to Enum type | kiyoaki/bitflyer-api-dotnet-client | src/BitFlyer.Apis/ResponseData/ChildOrder.cs | src/BitFlyer.Apis/ResponseData/ChildOrder.cs | using Newtonsoft.Json;
namespace BitFlyer.Apis
{
public class ChildOrder
{
[JsonProperty("id")]
public int Id { get; set; }
[JsonProperty("child_order_id")]
public string ChildOrderId { get; set; }
[JsonProperty("product_code")]
public ProductCode ProductCode ... | using Newtonsoft.Json;
namespace BitFlyer.Apis
{
public class ChildOrder
{
[JsonProperty("id")]
public int Id { get; set; }
[JsonProperty("child_order_id")]
public string ChildOrderId { get; set; }
[JsonProperty("product_code")]
public ProductCode ProductCode ... | mit | C# |
80ee6b3a69613ba2f5f9c832e6e18c28860154cd | Update Assembly Info | SneakyPeet/Dirtybase | src/Dirtybase.App/Properties/AssemblyInfo.cs | src/Dirtybase.App/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Di... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Di... | mit | C# |
f4d7ba226d545b346d98054c87aa3e64bd8f5f02 | Update package version to 0.1.1 | vadimzozulya/FakeHttpContext | src/FakeHttpContext/Properties/AssemblyInfo.cs | src/FakeHttpContext/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: InternalsVisibleTo("FakeHttpContext.Tests")]
[assembly: AssemblyTitle("FakeHttpContext")]
[assembly: AssemblyDescription("Unit testing utilite for simulate HttpContext.Current.")]
[assembly: AssemblyConfi... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: InternalsVisibleTo("FakeHttpContext.Tests")]
[assembly: AssemblyTitle("FakeHttpContext")]
[assembly: AssemblyDescription("Unit testing utilite for simulate HttpContext.Current.")]
[assembly: AssemblyConfi... | mit | C# |
1f984e3dfd4c8109e0de20ef437c2115a50c1327 | Update feed path | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/ChristianHoejsager.cs | src/Firehose.Web/Authors/ChristianHoejsager.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class ChristianHoejsager : IAmACommunityMember
{
public string FirstName => "Christian";
public ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class ChristianHoejsager : IAmACommunityMember
{
public string FirstName => "Christian";
public ... | mit | C# |
05bcde73d58f1396447ed9ecd09e81744c673cbd | Fix create smtpclient with UseDefaultCredentials | hermanho/postal | src/Postal.AspNetCore/EmailServiceOptions.cs | src/Postal.AspNetCore/EmailServiceOptions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Threading.Tasks;
namespace Postal.AspNetCore
{
public class EmailServiceOptions
{
public EmailServiceOptions()
{
CreateSmtpClient = () => new SmtpClient(Host, Po... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Threading.Tasks;
namespace Postal.AspNetCore
{
public class EmailServiceOptions
{
public EmailServiceOptions()
{
CreateSmtpClient = () => new SmtpClient(Host, Po... | mit | C# |
1d4e589ad7ed4d42d088a4cd2a41465ecda48105 | normalize file line ending | zhaoboqiang/FileFormat | Program.cs | Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FileFormat
{
class Program
{
private static string[] GetFiles(string sourceFolder, string filters, System.IO.SearchOption searchOption)
{
return filters.Spl... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FileFormat
{
class Program
{
private static string[] GetFiles(string sourceFolder, string filters, System.IO.SearchOption searchOption)
{
return filters.Spl... | mit | C# |
f90359dbf44519aeb69125e212c9f1061a37b5cc | remove readline | kreuzhofer/AzureLargeFileUploader | Program.cs | Program.cs | using System;
using System.IO;
namespace AzureLargeFileUploader
{
class Program
{
static int Main(string[] args)
{
if (args.Length != 4)
{
Help();
return -1;
}
var fileToUpload = args[0];
if (!File.Exi... | using System;
using System.IO;
namespace AzureLargeFileUploader
{
class Program
{
static int Main(string[] args)
{
if (args.Length != 4)
{
Help();
return -1;
}
var fileToUpload = args[0];
if (!File.Exi... | mit | C# |
6bb0506f8bc927b88961b31d82a7fa80913fe31a | Fix allocator handling | jorik041/maccore,cwensley/maccore,mono/maccore | src/CoreMedia/CMMemoryPool.cs | src/CoreMedia/CMMemoryPool.cs | //
// CMMemoryPool.cs: Implements the managed CMMemoryPool
//
// Authors: Marek Safar (marek.safar@gmail.com)
//
// Copyright 2012 Xamarin Inc
//
using System;
using System.Runtime.InteropServices;
using MonoMac;
using MonoMac.Foundation;
using MonoMac.CoreFoundation;
using MonoMac.ObjCRuntime;
namespace MonoM... | //
// CMMemoryPool.cs: Implements the managed CMMemoryPool
//
// Authors: Marek Safar (marek.safar@gmail.com)
//
// Copyright 2012 Xamarin Inc
//
using System;
using System.Runtime.InteropServices;
using MonoMac;
using MonoMac.Foundation;
using MonoMac.CoreFoundation;
using MonoMac.ObjCRuntime;
namespace MonoM... | apache-2.0 | C# |
0f2c49445bb42e16bd5d2569cd8754c31946e854 | Add helper functions for ApiKind | ericstj/buildtools,crummel/dotnet_buildtools,AlexGhiondea/buildtools,ChadNedzlek/buildtools,mmitche/buildtools,jthelin/dotnet-buildtools,crummel/dotnet_buildtools,JeremyKuhne/buildtools,alexperovich/buildtools,joperezr/buildtools,tarekgh/buildtools,karajas/buildtools,nguerrera/buildtools,weshaggard/buildtools,tarekgh/b... | src/Microsoft.Cci.Extensions/Extensions/ApiKindExtensions.cs | src/Microsoft.Cci.Extensions/Extensions/ApiKindExtensions.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
namespace Microsoft.Cci.Extensions
{
public static class ApiKindExtensions
{
public s... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
namespace Microsoft.Cci.Extensions
{
public static class ApiKindExtensions
{
public s... | mit | C# |
510ac35fc8133551fb80d3dd6df7298639aa4c87 | Remove usage of StartingGuildsService. | Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW | src/MitternachtBot/Modules/Utility/Services/RemindService.cs | src/MitternachtBot/Modules/Utility/Services/RemindService.cs | using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Discord;
using Discord.WebSocket;
using Mitternacht.Common.Replacements;
using Mitternacht.Extensions;
using Mitternacht.Services;
using Mitternacht.Services.Database;
using Mitternacht.Services.Database.Models;
using Mitternac... | using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Discord;
using Discord.WebSocket;
using Mitternacht.Common.Replacements;
using Mitternacht.Extensions;
using Mitternacht.Services;
using Mitternacht.Services.Database;
using Mitternacht.Services.Database.Models;
using Mitternac... | mit | C# |
634235af9871efd8a62b05f8d0cb1a1fcbbc3213 | Add under load sample module | DSaunders/Nancy.JohnnyFive | src/Nancy.JohnnyFive/Nancy.JohnnyFive.Sample/SampleModule.cs | src/Nancy.JohnnyFive/Nancy.JohnnyFive.Sample/SampleModule.cs | namespace Nancy.JohnnyFive.Sample
{
using System;
using System.Collections.Generic;
using System.IO;
using Circuits;
public class SampleModule : NancyModule
{
public SampleModule()
{
Get["/"] = _ =>
{
this.CanShortCircuit(new NoContentOnE... | namespace Nancy.JohnnyFive.Sample
{
using System.Collections.Generic;
using System.IO;
using Circuits;
public class SampleModule : NancyModule
{
public SampleModule()
{
Get["/"] = _ =>
{
this.CanShortCircuit(new NoContentOnErrorCircuit()
... | mit | C# |
52698a82452e4fe6ab0a948d212c0ee279c4e9a4 | Fix null-reference exception on null Tags list inside LogglyConfigAdapter.cs. | serilog/serilog-sinks-loggly | src/Serilog.Sinks.Loggly/Sinks/Loggly/LogglyConfigAdapter.cs | src/Serilog.Sinks.Loggly/Sinks/Loggly/LogglyConfigAdapter.cs | using System;
using Loggly.Config;
namespace Serilog.Sinks.Loggly
{
class LogglyConfigAdapter
{
public void ConfigureLogglyClient(LogglyConfiguration logglyConfiguration)
{
var config = LogglyConfig.Instance;
if (!string.IsNullOrWhiteSpace(logglyConfiguration.Applicati... | using System;
using Loggly.Config;
namespace Serilog.Sinks.Loggly
{
class LogglyConfigAdapter
{
public void ConfigureLogglyClient(LogglyConfiguration logglyConfiguration)
{
var config = LogglyConfig.Instance;
if (!string.IsNullOrWhiteSpace(logglyConfiguration.Applicati... | apache-2.0 | C# |
b08c6a4f9ac7a48ac9def4832af4745646304622 | Remove Assert.True(weakSwitch.IsAlive); from PruneTest() in SwitchClassTests.cs under System.Diagnostics.TraceSourceTests (#17424) | seanshpark/corefx,cydhaselton/corefx,DnlHarvey/corefx,krytarowski/corefx,Jiayili1/corefx,DnlHarvey/corefx,MaggieTsang/corefx,rahku/corefx,ViktorHofer/corefx,alexperovich/corefx,richlander/corefx,tijoytom/corefx,Jiayili1/corefx,billwert/corefx,ravimeda/corefx,marksmeltzer/corefx,yizhang82/corefx,ViktorHofer/corefx,shimi... | src/System.Diagnostics.TraceSource/tests/SwitchClassTests.cs | src/System.Diagnostics.TraceSource/tests/SwitchClassTests.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Xunit;
namespace System.Diagnostics.TraceSourceTests
{
public class SwitchClassTests
{
class ... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Xunit;
namespace System.Diagnostics.TraceSourceTests
{
public class SwitchClassTests
{
class ... | mit | C# |
2eafceb9bb3b2f94366e1bac589a9a2d920c5963 | Add batch client to IViagogoClient | viagogo/gogokit.net | src/GogoKit/IViagogoClient.cs | src/GogoKit/IViagogoClient.cs | using GogoKit.Clients;
using GogoKit.Services;
using HalKit;
namespace GogoKit
{
public interface IViagogoClient
{
IGogoKitConfiguration Configuration { get; }
IHalClient Hypermedia { get; }
IOAuth2TokenStore TokenStore { get; }
IOAuth2Client OAuth2 { get; }
IUserClient... | using GogoKit.Clients;
using GogoKit.Services;
using HalKit;
namespace GogoKit
{
public interface IViagogoClient
{
IGogoKitConfiguration Configuration { get; }
IHalClient Hypermedia { get; }
IOAuth2TokenStore TokenStore { get; }
IOAuth2Client OAuth2 { get; }
IUserClient... | mit | C# |
89afbe0362f3629ac200ffac51083c2fcc301b9c | Refactor Resolver to use path element factories | Domysee/Pather.CSharp | src/Pather.CSharp/Resolver.cs | src/Pather.CSharp/Resolver.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Reflection;
using Pather.CSharp.PathElements;
namespace Pather.CSharp
{
public class Resolver
{
private IList<IPathElementFactory> pathElementTypes;
public Resolver()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Reflection;
using Pather.CSharp.PathElements;
namespace Pather.CSharp
{
public class Resolver
{
private IList<Type> pathElementTypes;
public Resolver()
{
pathEleme... | mit | C# |
6cb8fb37b0b3372fbdbee689d1cce58f2dcd07e5 | swap image url | wharri220/OrchardDoc,MetSystem/OrchardDoc,MetSystem/OrchardDoc,MetSystem/OrchardDoc,armanforghani/OrchardDoc,abhishekluv/OrchardDoc,rtpHarry/OrchardDoc,OrchardCMS/OrchardDoc,SzymonSel/OrchardDoc,armanforghani/OrchardDoc,rtpHarry/OrchardDoc,phillipsj/OrchardDoc,abhishekluv/OrchardDoc,phillipsj/OrchardDoc,dcinzona/Orchar... | Contributors.cshtml | Contributors.cshtml | <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.js"></script>
<script src="/contributor.js"></script>
<div ng-controller="OrchardContributor">
<ul>
<li ng-repeat = "contributor in totalContribtors">
<a href="https://www.github.com/{{ contributor.login }}" target="_blank... | <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.js"></script>
<script src="/contributor.js"></script>
<div ng-controller="OrchardContributor">
<ul>
<li ng-repeat = "contributor in totalContribtors">
<a href="https://www.github.com/{{ contributor.login }}" target="_blank... | bsd-3-clause | C# |
daf0ec2b54d494ac01686dc1d7d1ec4824e30c06 | use static singletons in demo app | Insire/MvvmScarletToolkit,Insire/MvvmScarletToolkit | DemoApp/App.xaml.cs | DemoApp/App.xaml.cs | using MvvmScarletToolkit;
using MvvmScarletToolkit.Commands;
using MvvmScarletToolkit.Observables;
using System.Windows;
namespace DemoApp
{
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
var commandBu... | using MvvmScarletToolkit;
using MvvmScarletToolkit.Commands;
using MvvmScarletToolkit.Observables;
using System.Windows;
namespace DemoApp
{
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
var commandMa... | mit | C# |
ca2e097685a3cce1fe6365094ad43e28b01844ce | Test to ensure TearDown run when test fails | yawaramin/TDDUnit | Program.cs | Program.cs | using System;
namespace TDDUnit {
class TestTestCase : TestCase {
public TestTestCase(string name) : base(name) {
}
public override void SetUp() {
base.SetUp();
m_result = new TestResult();
}
public void TestTemplateMethod() {
WasRunObj test = new WasRunObj("TestMethod");
... | using System;
namespace TDDUnit {
class TestTestCase : TestCase {
public TestTestCase(string name) : base(name) {
}
public override void SetUp() {
base.SetUp();
m_result = new TestResult();
}
public void TestTemplateMethod() {
WasRunObj test = new WasRunObj("TestMethod");
... | apache-2.0 | C# |
bab2459ee8e37bbc93be3f377d8c67f81216fbf6 | Fix displaying talk time | DotNetRu/App,DotNetRu/App | DotNetRu.Clients.UI/Converters/SessionTimeDisplayConverter.cs | DotNetRu.Clients.UI/Converters/SessionTimeDisplayConverter.cs | namespace DotNetRu.Clients.UI.Converters
{
using System;
using System.Diagnostics;
using System.Globalization;
using DotNetRu.DataStore.Audit.Models;
using Xamarin.Forms;
public class SessionTimeDisplayConverter : IValueConverter
{
public object Convert(object value, Type targetTyp... | namespace DotNetRu.Clients.UI.Converters
{
using System;
using System.Diagnostics;
using System.Globalization;
using DotNetRu.DataStore.Audit.Models;
using Xamarin.Forms;
public class SessionTimeDisplayConverter : IValueConverter
{
public object Convert(object value, Type targetTyp... | mit | C# |
c710a00c577234fb4c90f1ac70644bb5f0fe13f4 | Mark sample UI tests as Explicit | cezarypiatek/MaintainableSelenium,cezarypiatek/MaintainableSelenium,cezarypiatek/Tellurium,cezarypiatek/Tellurium,cezarypiatek/Tellurium,cezarypiatek/MaintainableSelenium | Src/MaintainableSelenium/Sample.UITests/SampleFormTest.cs | Src/MaintainableSelenium/Sample.UITests/SampleFormTest.cs | using System.Collections.Generic;
using System.IO;
using MaintainableSelenium.Sample.Website.Mvc;
using MaintainableSelenium.Toolbox;
using MaintainableSelenium.Toolbox.Drivers;
using MaintainableSelenium.Toolbox.Screenshots;
using MaintainableSelenium.Toolbox.WebPages;
using MaintainableSelenium.Toolbox.WebPages.WebF... | using System.Collections.Generic;
using System.IO;
using MaintainableSelenium.Sample.Website.Mvc;
using MaintainableSelenium.Toolbox;
using MaintainableSelenium.Toolbox.Drivers;
using MaintainableSelenium.Toolbox.Screenshots;
using MaintainableSelenium.Toolbox.WebPages;
using MaintainableSelenium.Toolbox.WebPages.WebF... | mit | C# |
fb5580db666fa00b8ac85be68daffffa286e01ff | rectify the assembly name. | jwChung/Experimentalism,jwChung/Experimentalism | test/ExperimentalUnitTest/AssemblyLevelTest.cs | test/ExperimentalUnitTest/AssemblyLevelTest.cs | using System.Linq;
using System.Reflection;
using Xunit;
namespace Jwc.Experiment
{
public class AssemblyLevelTest
{
[Fact]
public void SutOnlyReferencesSpecifiedAssemblies()
{
var sut = Assembly.LoadFrom("Jwc.Experiment.dll");
Assert.NotNull(sut);
v... | using System.Linq;
using System.Reflection;
using Xunit;
namespace Jwc.Experiment
{
public class AssemblyLevelTest
{
[Fact]
public void SutOnlyReferencesSpecifiedAssemblies()
{
var sut = Assembly.LoadFrom("Jwc.Experimental.dll");
Assert.NotNull(sut);
... | mit | C# |
d6a8ca15e2880edbaf9a4d3b66d8b5ee25e753b0 | Revert "Try bumping up the test timeout" | danbarua/NEventSocket,pragmatrix/NEventSocket,pragmatrix/NEventSocket,danbarua/NEventSocket | test/NEventSocket.Tests/TestSupport/TimeOut.cs | test/NEventSocket.Tests/TestSupport/TimeOut.cs | namespace NEventSocket.Tests.TestSupport
{
public class TimeOut
{
public const int TestTimeOutMs = 10000;
}
} | namespace NEventSocket.Tests.TestSupport
{
public class TimeOut
{
public const int TestTimeOutMs = 30 * 1000;
}
} | mpl-2.0 | C# |
742e208316fab4c35da7505410dd6e620fa4ff0d | Fix SRLRaceViewer link format | LiveSplit/LiveSplit | LiveSplit/LiveSplit.Core/Web/SRL/RaceViewers/SRLRaceViewer.cs | LiveSplit/LiveSplit.Core/Web/SRL/RaceViewers/SRLRaceViewer.cs | using LiveSplit.Model;
using System.Diagnostics;
namespace LiveSplit.Web.SRL.RaceViewers
{
public class SRLRaceViewer : IRaceViewer
{
public void ShowRace(IRaceInfo race)
{
var url = string.Format("http://speedrunslive.com/race/{0}", race.Id);
Process.Start(url);
... | using LiveSplit.Model;
using System.Diagnostics;
namespace LiveSplit.Web.SRL.RaceViewers
{
public class SRLRaceViewer : IRaceViewer
{
public void ShowRace(IRaceInfo race)
{
var url = string.Format("http://speedrunslive.com/race/?id={0}", race.Id);
Process.Start(url);
... | mit | C# |
98feaa1f9dcdada1d0fc6d35b847d52335db7a18 | Update scripts for WP | jamesmontemagno/Xamarin.Plugins,monostefan/Xamarin.Plugins,predictive-technology-laboratory/Xamarin.Plugins | Settings/build.cake | Settings/build.cake | #addin "Cake.FileHelpers"
var TARGET = Argument ("target", Argument ("t", "Build"));
var version = EnvironmentVariable ("APPVEYOR_BUILD_VERSION") ?? Argument("version", "0.0.9999");
Task ("Build").Does (() =>
{
const string sln = "./Refractored.XamPlugins.Settings.sln";
const string cfg = "Release";
NuGetRes... | #addin "Cake.FileHelpers"
var TARGET = Argument ("target", Argument ("t", "Default"));
var version = EnvironmentVariable ("APPVEYOR_BUILD_VERSION") ?? Argument("version", "0.0.9999");
Task ("Default").Does (() =>
{
NuGetRestore ("./Refractored.XamPlugins.Settings.sln");
DotNetBuild ("./Refractored.XamPlugins.Sett... | mit | C# |
ad024ad9be2e2d3b889251e543d8b8bfb4eaffbf | Add helper methods for XORing byte arrays | 0culus/ElectronicCash | ElectronicCash/SecretSplittingProvider.cs | ElectronicCash/SecretSplittingProvider.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ElectronicCash
{
/// <summary>
/// This portion of the protocol is critical...Alice splits her bit committed packets so that
/// they are not accessible except when the bank requir... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ElectronicCash
{
/// <summary>
/// This portion of the protocol is critical...Alice splits her bit committed packets so that
/// they are not accessible except when the bank requir... | mit | C# |
3fc62f760f8ab6cb76ec0f48187854c0c8856d5f | UPDATE Renames IOperationObject to IDynamic | rickyah/DynoBind,rickyah/DynoBind | projects/Core/IDynamic.cs | projects/Core/IDynamic.cs | using System;
namespace LateBindingHelper
{
/// <summary>
/// Implements an interface to perform operations over a type using
/// late binding calls
/// </summary>
public interface IDynamic :
IPropertyCall,
IMethodCall,
IIndexerCall,
IFieldCall,
... | namespace LateBindingHelper
{
/// <summary>
/// Implements an interface to perform operations over a type using
/// late binding calls
/// </summary>
public interface IDynamic :
IPropertyCall,
IMethodCall,
IIndexerCall,
IFieldCall,
IOperationLastCal... | mit | C# |
b0aca027558bf8c84f57a381b92468550880171e | Update logic that keeps a fixed FPS | RagingBool/RagingBool.Carcosa | projects/RagingBool.Carcosa.Core_cs/Stage/Controller/ControllerModeBase.cs | projects/RagingBool.Carcosa.Core_cs/Stage/Controller/ControllerModeBase.cs | // [[[[INFO>
// Copyright 2015 Raging Bool (http://ragingbool.org, https://github.com/RagingBool)
//
// 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/licens... | // [[[[INFO>
// Copyright 2015 Raging Bool (http://ragingbool.org, https://github.com/RagingBool)
//
// 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/licens... | apache-2.0 | C# |
8395d5199487c79864bccf79fe8a1d739d22fb80 | Use uppercase letters ONLY | 12joan/hangman | hangman.cs | hangman.cs | using System;
namespace Hangman {
public class Hangman {
public static void Main(string[] args) {
var game = new Game("HANG THE MAN");
game.GuessLetter('H');
var output = game.ShownWord();
Console.WriteLine(output);
// Table table = new Table(2, 3);
// string output = table.... | using System;
namespace Hangman {
public class Hangman {
public static void Main(string[] args) {
var game = new Game("hang the man");
game.GuessLetter('h');
var output = game.ShownWord();
Console.WriteLine(output);
// Table table = new Table(2, 3);
// string output = table.... | unlicense | C# |
6f83719c50450dd7b047ef91822a9fb2470f4b8a | use NetworkService account (minimal rights) | fandrei/CiapiLatencyCollector,fandrei/CiapiLatencyCollector | LatencyCollectorService/ProjectInstaller.Designer.cs | LatencyCollectorService/ProjectInstaller.Designer.cs | namespace CiapiLatencyCollector
{
partial class ProjectInstaller
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">tru... | namespace CiapiLatencyCollector
{
partial class ProjectInstaller
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">tru... | apache-2.0 | C# |
cfae91ef56708baa22601989382abf66bd80d38f | Fix whitespace | Logicalshift/Reason | LogicalShift.Reason/Literals/BasicAtom.cs | LogicalShift.Reason/Literals/BasicAtom.cs | using LogicalShift.Reason.Api;
using System;
using System.Collections.Generic;
using System.Threading;
namespace LogicalShift.Reason.Literals
{
/// <summary>
/// Represents a basic atomic literal
/// </summary>
public class BasicAtom : ILiteral, IEquatable<BasicAtom>
{
/// <summary>
... | using LogicalShift.Reason.Api;
using System;
using System.Collections.Generic;
using System.Threading;
namespace LogicalShift.Reason.Literals
{
/// <summary>
/// Represents a basic atomic literal
/// </summary>
public class BasicAtom : ILiteral, IEquatable<BasicAtom>
{
/// <summary>
... | apache-2.0 | C# |
085dbe9afc2a0b65a2dbe1d87d383cafd4477c27 | Add legacy exchange-rate API | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Backend/Controllers/LegacyController.cs | WalletWasabi.Backend/Controllers/LegacyController.cs | using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace WalletWasabi.Backend.Controllers
{
/// <summary>
/// Provides legacy, never changing API for legacy applications.
/// </summary>
[P... | using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace WalletWasabi.Backend.Controllers
{
/// <summary>
/// Provides legacy, never changing API for legacy applications.
/// </summary>
[P... | mit | C# |
366dae22365f2c68771b22666274e03ac9adfaf9 | Remove ResourceManager | thomaslevesque/NString | NString/Properties/Resources.cs | NString/Properties/Resources.cs | namespace NString.Properties
{
internal static class Resources
{
public static string TemplateKeyNotFound(string key) =>
$"No value found for key '{key}'.";
public static string SubstringCountOutOfRange =>
"The number of characters must be greater than or equal to zero,... | using System.Resources;
using System.Reflection;
namespace NString.Properties
{
internal static class Resources
{
public static ResourceManager ResourceManager { get; } = new ResourceManager("NString.Properties.Resources", typeof(Resources).GetTypeInfo().Assembly);
public static string Templa... | apache-2.0 | C# |
886886aa17a771e57b6542153b2b9f5f520e7aee | Update parameters usage | wbsimms/GitStats | src/GitStats/Program.cs | src/GitStats/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GitStats.Lib;
using Microsoft.Practices.Unity;
namespace GitStats
{
class Program
{
static int Main(string[] args)
{
if (args.Length != 3)
{
Usage... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GitStats.Lib;
using Microsoft.Practices.Unity;
namespace GitStats
{
class Program
{
static int Main(string[] args)
{
if (args.Length != 3)
{
Usage... | mit | C# |
1a0dfb7b8030da36152751c79dee006c74842f41 | update message | Appleseed/base,Appleseed/base | Applications/Appleseed.Base.Alerts.Console/Appleseed.Base.Alerts/Program.cs | Applications/Appleseed.Base.Alerts.Console/Appleseed.Base.Alerts/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SendGrid;
using SendGrid.Helpers.Mail;
using System.Net;
using System.IO;
using Newtonsoft.Json;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
using Dapper;
using App... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SendGrid;
using SendGrid.Helpers.Mail;
using System.Net;
using System.IO;
using Newtonsoft.Json;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
using Dapper;
using App... | apache-2.0 | C# |
8ed9062d00843ab06f868bd6a885e6c1704dbcd6 | Allow mirror to accept parameters to specify what to mount and where | TrabacchinLuigi/dokan-dotnet,TrabacchinLuigi/dokan-dotnet,dokan-dev/dokan-dotnet,dokan-dev/dokan-dotnet,TrabacchinLuigi/dokan-dotnet,dokan-dev/dokan-dotnet | sample/DokanNetMirror/Program.cs | sample/DokanNetMirror/Program.cs | using System;
using System.Linq;
using DokanNet;
namespace DokanNetMirror
{
internal class Program
{
private const string MirrorKey = "-what";
private const string MountKey = "-where";
private const string UseUnsafeKey = "-unsafe";
private static void Main(string[] args)
... | using System;
using DokanNet;
namespace DokanNetMirror
{
internal class Program
{
private static void Main(string[] args)
{
try
{
bool unsafeReadWrite = args.Length > 0 && args[0].Equals("-unsafe", StringComparison.OrdinalIgnoreCase);
Con... | mit | C# |
650a23276c74e0b93cf6b28bc4c0d5235ea5f956 | Tweak to the Readme | haysclark/strangeioc-examples | Assets/scripts/strange/ReadMe.cs | Assets/scripts/strange/ReadMe.cs | /** \mainpage StrangeIoC
*
* \section intro_sec Introduction
*
* Strange is a super-lightweight and highly extensible Inversion-of-Control (IoC) framework, written specifically for C# and Unity. We’ve validated Strange on web and standalone, iOS and Android. It contains the following features, most of which are opt... | /** \mainpage StrangeIoC
*
* \section intro_sec Introduction
*
* Strange is a super-lightweight and highly extensible Inversion-of-Control (IoC) framework, written specifically for C# and Unity. We’ve validated Strange on web and standalone, iOS and Android. It contains the following features, most of which are opt... | apache-2.0 | C# |
722a0298f8f35603aaab0ae63247c0de610e62d4 | Add prototype movement for MetallKefer | emazzotta/unity-tower-defense | Assets/Scripts/Enemies/MetallKeferController.cs | Assets/Scripts/Enemies/MetallKeferController.cs | using UnityEngine;
using System.Collections;
public class MetallKeferController : MonoBehaviour {
public GameObject gameControllerObject;
private GameController gameController;
private GameObject[] towerBasesBuildable;
private GameObject nextWaypiont;
private int currentWaypointIndex = 0;
private int movementS... | using UnityEngine;
using System.Collections;
public class MetallKeferController : MonoBehaviour {
public GameObject gameControllerObject;
private GameController gameController;
private GameObject[] towerBasesBuildable;
void Start () {
this.gameController = this.gameControllerObject.GetComponent<GameController... | mit | C# |
b8199e3b2e37f344aa23ebf73bd3e2710427d167 | Fix DataField not renamed in compressor stub | yuligang1234/ConfuserEx,modulexcite/ConfuserEx,Desolath/ConfuserEx3,jbeshir/ConfuserEx,mirbegtlax/ConfuserEx,mirbegtlax/ConfuserEx,JPVenson/ConfuserEx,yeaicc/ConfuserEx,AgileJoshua/ConfuserEx,HalidCisse/ConfuserEx,manojdjoshi/ConfuserEx,farmaair/ConfuserEx,yuligang1234/ConfuserEx,timnboys/ConfuserEx,KKKas/ConfuserEx,Im... | Confuser.Protections/Compress/StubProtection.cs | Confuser.Protections/Compress/StubProtection.cs | using System;
using System.Diagnostics;
using System.Security.Cryptography;
using Confuser.Core;
using dnlib.DotNet;
using dnlib.DotNet.MD;
using dnlib.DotNet.Writer;
using Confuser.Renamer;
namespace Confuser.Protections.Compress {
internal class StubProtection : Protection {
private readonly CompressorContext c... | using System;
using System.Diagnostics;
using System.Security.Cryptography;
using Confuser.Core;
using dnlib.DotNet;
using dnlib.DotNet.MD;
using dnlib.DotNet.Writer;
namespace Confuser.Protections.Compress {
internal class StubProtection : Protection {
private readonly CompressorContext ctx;
internal StubProt... | mit | C# |
f4abbb91be32064bfdc1e9cbabd48ac16ee03c4a | Revert "Improve CrawlDecision" | tru3d3v/abot,sjdirect/abot,fyang0321/WebCrawler,obender/abot,fyang0321/WebCrawler,RoninWest/abot,RoninWest/abot,coveo/abot,vladimir-pecanac-main/abot,xavivars/abot | Abot/Poco/CrawlDecision.cs | Abot/Poco/CrawlDecision.cs |
namespace Abot.Poco
{
public class CrawlDecision
{
public CrawlDecision()
{
Reason = "";
}
/// <summary>
/// Whether to allow the crawl decision
/// </summary>
public bool Allow { get; set; }
/// <summary>
/// The reason the... |
namespace Abot.Poco
{
public class CrawlDecision
{
public CrawlDecision()
{
Reason = "";
}
public CrawlDecision(bool allow, string reason = "")
{
Allow = allow;
Reason = reason;
}
/// <summary>
/// Whet... | apache-2.0 | C# |
ea5db46ce85acc6ef66fa3a25a853769720860f1 | Update image resolution to UHD (#3) | kfstorm/BingWallpaper | BingWallpaper/Constants.cs | BingWallpaper/Constants.cs | using System;
using System.IO;
namespace Kfstorm.BingWallpaper
{
public static class Constants
{
public static string DataPath
{
get
{
string path = Path.Combine(Environment.GetFolderPath(
Environment.SpecialFolder.ApplicationData), @... | using System;
using System.IO;
namespace Kfstorm.BingWallpaper
{
public static class Constants
{
public static string DataPath
{
get
{
string path = Path.Combine(Environment.GetFolderPath(
Environment.SpecialFolder.ApplicationData), @... | mit | C# |
a8365539f26509c5ef301fc6aaa83bdd36257f17 | Fix field attributes | setchi/n_back_tracer,setchi/n_back_tracer | Assets/Scripts/Main/TimeKeeper.cs | Assets/Scripts/Main/TimeKeeper.cs | using UnityEngine;
using UnityEngine.UI;
using System;
using System.Collections;
using UniRx;
public class TimeKeeper : MonoBehaviour {
public event Action TimeUp;
[SerializeField] float timeLimit;
[SerializeField] Slider slider;
public void StartCountdown() {
Observable.EveryUpdate()
.TakeUntil(Observable.T... | using UnityEngine;
using UnityEngine.UI;
using System;
using System.Collections;
using UniRx;
public class TimeKeeper : MonoBehaviour {
public event Action TimeUp;
public float timeLimit;
public Slider slider;
public void StartCountdown() {
Observable.EveryUpdate()
.TakeUntil(Observable.Timer(TimeSpan.FromSe... | mit | C# |
11d406aa0c2d3acaf6137538af20f9de85d41639 | Fix osu!catch conversion expecting full positional data, rather than just X. | ppy/osu,ZLima12/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new,EVAST9919/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,johnneijzen/osu,peppy/osu,EVAST9919/osu,smoogipooo/osu,2yangk23/osu,DrabWeb/osu,2yangk23/osu,naoey/osu,UselessToucan/osu,naoey/osu,UselessToucan/osu,Frontear/osuKyzer... | osu.Game.Rulesets.Catch/Beatmaps/CatchBeatmapConverter.cs | osu.Game.Rulesets.Catch/Beatmaps/CatchBeatmapConverter.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Catch.Objects;
using System.Collections.Generic;
using System;
using osu.Game.Rulesets.Catch.UI;
using osu.Game... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Catch.Objects;
using System.Collections.Generic;
using System;
using osu.Game.Rulesets.Catch.UI;
using osu.Game... | mit | C# |
9046002e20bc59511d48996d30c27e65509ed212 | Add lock around Get in session cache, and add default "unknown" username. | pgina/pgina,pgina/pgina,daviddumas/pgina,daviddumas/pgina,pgina/pgina,daviddumas/pgina,stefanwerfling/pgina,MutonUfoAI/pgina,MutonUfoAI/pgina,MutonUfoAI/pgina,stefanwerfling/pgina,stefanwerfling/pgina | Plugins/MySQLLogger/MySQLLogger/SessionCache.cs | Plugins/MySQLLogger/MySQLLogger/SessionCache.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace pGina.Plugin.MySqlLogger
{
class SessionCache
{
private Dictionary<int, string> m_cache;
public SessionCache()
{
m_cache = new Dictionary<int, string>();
}
publ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace pGina.Plugin.MySqlLogger
{
class SessionCache
{
private Dictionary<int, string> m_cache;
public SessionCache()
{
m_cache = new Dictionary<int, string>();
}
publ... | bsd-3-clause | C# |
ea5a19592d9daf277874e1531f7152ff72337034 | Update the blog URL | TheSeleniumGuys/Code-Drills | selenium-hello-world-001.cs | selenium-hello-world-001.cs | //See the blog post at: http://theseleniumguys.com/2016/11/07/code-drill-1-selenium-c-hello-world/
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenQA.Selenium;
using OpendQA.Selenium.IE;
IWebdriver.driver = new InternetExplorerDriver();
driver.Navigate().GoToURL("http://www.google.com");
... | //See the blog post at: http://theseleniumguys.com/2016/12/05/code-drill-1-selenium-c-hello-world/
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenQA.Selenium;
using OpendQA.Selenium.IE;
IWebdriver.driver = new InternetExplorerDriver();
driver.Navigate().GoToURL("http://www.google.com");
... | mit | C# |
42f446faa9a8d19a0a49d970b8139e7bf28cf4c1 | Fix remaining test failure | peppy/osu-new,UselessToucan/osu,peppy/osu,smoogipoo/osu,ppy/osu,smoogipooo/osu,ppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu | osu.Game/Overlays/Settings/Sections/General/UpdateSettings.cs | osu.Game/Overlays/Settings/Sections/General/UpdateSettings.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;
using osu.Framework.Allocation;
using osu.Framework.Platform;
using osu.Framework.Screens;
using osu.Game.Configuration;
using osu.Game.Overlays.Set... | // 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;
using osu.Framework.Allocation;
using osu.Framework.Platform;
using osu.Framework.Screens;
using osu.Game.Configuration;
using osu.Game.Overlays.Set... | mit | C# |
831a40d8ad71a306cd54a1ff623f78b2a3ef0877 | Change assembly version | danielchalmers/SteamAccountSwitcher | SteamAccountSwitcher/Properties/AssemblyInfo.cs | SteamAccountSwitcher/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... | mit | C# |
5727d07e0e020b28abbff9be25ba2b3c19c08934 | add AggressiveInlining to the ReadOnly wrapper | uwx/DSharpPlus,uwx/DSharpPlus | DSharpPlus/Utilities.ReadOnly.cs | DSharpPlus/Utilities.ReadOnly.cs | using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
using System.Threading;
namespace DSharpPlus
{
// Read-only ConcurrentDictionary wrapper for Standard 1.1 but is very low-overhea... | using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Threading;
namespace DSharpPlus
{
internal readonly struct ReadOnlyDictionaryWrapper<TKey, TValue> : IReadOnlyDictionary<TKey, TValue>
{
privat... | mit | C# |
68650a319cec800a02d893427a1abdb8313d56e8 | fix stagning uris | wikibus/Argolis | src/Nancy.Hydra/HydraModule.cs | src/Nancy.Hydra/HydraModule.cs | using Hydra;
namespace Nancy.Hydra
{
/// <summary>
/// Server Hydra API documentation
/// </summary>
public abstract class HydraModule : NancyModule
{
/// <summary>
/// Initializes a new instance of the <see cref="HydraModule"/> class.
/// </summary>
protected Hydra... | using Hydra;
namespace Nancy.Hydra
{
/// <summary>
/// Server Hydra API documentation
/// </summary>
public abstract class HydraModule : NancyModule
{
/// <summary>
/// Initializes a new instance of the <see cref="HydraModule"/> class.
/// </summary>
protected Hydra... | mit | C# |
d14165bb44276a71c66bac22cc43a974cece86ab | Update AssemblyInfo.cs | ilya-murzinov/WhiteSharp | src/Properties/AssemblyInfo.cs | src/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("WhiteSharp")]
[assembly: AssemblyDescrip... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("WhiteExtension")]
[assembly: AssemblyDes... | mit | C# |
d0da000af9c5166afe3eb172c4124a616574a004 | Add order constructor and Payment | jontansey/.Net-Core-Ecommerce-Base,jontansey/.Net-Core-Ecommerce-Base | src/Shop.Core/Entites/Order.cs | src/Shop.Core/Entites/Order.cs | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Shop.Core.BaseObjects;
using Shop.Core.Interfaces;
namespace Shop.Core.Entites
{
public class Order : LifetimeBase, IReferenceable<Order>
{
[Key]
public int OrderId { get; set; }
public string OrderRef... | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Shop.Core.BaseObjects;
using Shop.Core.Interfaces;
namespace Shop.Core.Entites
{
public class Order : LifetimeBase, IReferenceable<Order>
{
[Key]
public int OrderId { get; set; }
public string OrderRef... | mit | C# |
1d551217bf11ca6394981902a0d27fb4f82b93f7 | fix build | WojcikMike/docs.particular.net | samples/header-manipulation/Version_6/Sample/MyHandler.cs | samples/header-manipulation/Version_6/Sample/MyHandler.cs | using System.Linq;
using System.Threading.Tasks;
using NServiceBus;
using NServiceBus.Logging;
#region handler
public class MyHandler : IHandleMessages<MyMessage>
{
static ILog logger = LogManager.GetLogger(typeof(MyHandler));
public Task Handle(MyMessage message, IMessageHandlerContext context)
{
... | using System.Linq;
using System.Threading.Tasks;
using NServiceBus;
using NServiceBus.Logging;
#region handler
public class MyHandler : IHandleMessages<MyMessage>
{
IBus bus;
static ILog logger = LogManager.GetLogger(typeof(MyHandler));
public MyHandler(IBus bus)
{
this.bus = bus;
}
... | apache-2.0 | C# |
7e7053ad77717d114dedb986df63d839c43d2d09 | maintain original ReplyTo address | WojcikMike/docs.particular.net | samples/throttling/Version_6/Sample/ThrottlingBehavior.cs | samples/throttling/Version_6/Sample/ThrottlingBehavior.cs | using System;
using System.Threading.Tasks;
using NServiceBus;
using NServiceBus.Pipeline;
using Octokit;
#region ThrottlingBehavior
public class ThrottlingBehavior : Behavior<IInvokeHandlerContext>
{
static DateTime? nextRateLimitReset;
public override async Task Invoke(IInvokeHandlerContext context, Func<T... | using System;
using System.Threading.Tasks;
using NServiceBus;
using NServiceBus.Pipeline;
using Octokit;
#region ThrottlingBehavior
public class ThrottlingBehavior : Behavior<IInvokeHandlerContext>
{
static DateTime? nextRateLimitReset;
public override async Task Invoke(IInvokeHandlerContext context, Func<T... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.