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 |
|---|---|---|---|---|---|---|---|---|
4bd57a2bdce629360be2e6d74af1645daf9bb6e3 | Modify DescriptionAttribute to use PropertyAttribute | nunit/nunit-console,nunit/nunit-console,nunit/nunit-console | src/framework/DescriptionAttribute.cs | src/framework/DescriptionAttribute.cs | // ***********************************************************************
// Copyright (c) 2007 Charlie Poole
//
// 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, ... | // ***********************************************************************
// Copyright (c) 2007 Charlie Poole
//
// 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, ... | mit | C# |
7f4b62459fa149c5e957aa8dc3eb49c21e533e87 | Sort using statements. | GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples | dlp/api/DlpSnippets/DeidentifyMasking.cs | dlp/api/DlpSnippets/DeidentifyMasking.cs | // Copyright (c) 2018 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | // Copyright (c) 2018 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | apache-2.0 | C# |
90882c8b057244dd193bfd280793ca2a1102abe1 | Update GpsSourceEnum.cs | ADAPT/ADAPT | source/ADAPT/Logistics/GpsSourceEnum.cs | source/ADAPT/Logistics/GpsSourceEnum.cs | /*******************************************************************************
* Copyright (C) 2015 AgGateway and ADAPT Contributors
* Copyright (C) 2015 Deere and Company
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0... | /*******************************************************************************
* Copyright (C) 2015 AgGateway and ADAPT Contributors
* Copyright (C) 2015 Deere and Company
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0... | epl-1.0 | C# |
07756ca2f6d31bd4562b1b3bbbccdcc90e1a9ad0 | Update WebResourcUrls to https. | aluxnimm/outlookcaldavsynchronizer | CalDavSynchronizer/WebResourceUrls.cs | CalDavSynchronizer/WebResourceUrls.cs | // This file is Part of CalDavSynchronizer (http://outlookcaldavsynchronizer.sourceforge.net/)
// Copyright (c) 2015 Gerhard Zehetbauer
// Copyright (c) 2015 Alexander Nimmervoll
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License a... | // This file is Part of CalDavSynchronizer (http://outlookcaldavsynchronizer.sourceforge.net/)
// Copyright (c) 2015 Gerhard Zehetbauer
// Copyright (c) 2015 Alexander Nimmervoll
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License a... | agpl-3.0 | C# |
7f4662b772b8650a9dc0c9c504e7dea98d78374d | Format EbsBlockDevice | carbon/Amazon | src/Amazon.Ec2/Models/EbsBlockDevice.cs | src/Amazon.Ec2/Models/EbsBlockDevice.cs | #nullable disable
using System.Xml.Serialization;
namespace Amazon.Ec2;
public sealed class EbsBlockDevice
{
public EbsBlockDevice() { }
public EbsBlockDevice(
string volumeId = null,
bool? deleteOnTermination = null,
bool? encrypted = null,
int? iops = null,
... | #nullable disable
using System.Xml.Serialization;
namespace Amazon.Ec2
{
public class EbsBlockDevice
{
public EbsBlockDevice() { }
public EbsBlockDevice(
string volumeId = null,
bool? deleteOnTermination = null,
bool? encrypted = null,
... | mit | C# |
c4c5f7ac50d5425671ec17482afd0c1873c82524 | Update AssemblyInfo.cs | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/PathDemo/Properties/AssemblyInfo.cs | src/PathDemo/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
[assembly: AssemblyTitle("PathDemo")]
[assembly: AssemblyDescription("A 2D vector diagram editor.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Wiesław Šoltés")]
[assembly: AssemblyProduct("PathDe... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
[assembly: AssemblyTitle("PathDemo")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("PathDemo")]
[assembly: AssemblyCopyright("Copyright 2016")]
[... | mit | C# |
f12e66052c99581040e8d25822e9a979e041bf84 | Reword outdated doc | peppy/osu,smoogipoo/osu,ppy/osu,peppy/osu,UselessToucan/osu,peppy/osu,peppy/osu-new,ppy/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,smoogipooo/osu | osu.Game/Rulesets/Mods/IApplicableToHealthProcessor.cs | osu.Game/Rulesets/Mods/IApplicableToHealthProcessor.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Mods
{
public interface IApplicableToHealthProcessor : IApplicableMod
{
/// <summary>
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Mods
{
public interface IApplicableToHealthProcessor : IApplicableMod
{
/// <summary>
... | mit | C# |
3225b3f60ae8c7798eea74f0bd18737d03b1403c | Include redirect_uri in POST data (#21) | Clancey/SimpleAuth | src/SimpleAuth/Api/WebAuthenticator.cs | src/SimpleAuth/Api/WebAuthenticator.cs | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Web;
namespace SimpleAuth
{
public abstract class WebAuthenticator : Authenticator
{
public bool Cle... | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Web;
namespace SimpleAuth
{
public abstract class WebAuthenticator : Authenticator
{
public bool Cle... | apache-2.0 | C# |
82f46a92a0142d244df577db4ef19b18c5678c64 | fix so it compiles | antoniusriha/gtk-sharp,orion75/gtk-sharp,orion75/gtk-sharp,akrisiun/gtk-sharp,orion75/gtk-sharp,antoniusriha/gtk-sharp,Gankov/gtk-sharp,antoniusriha/gtk-sharp,akrisiun/gtk-sharp,Gankov/gtk-sharp,openmedicus/gtk-sharp,antoniusriha/gtk-sharp,akrisiun/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-s... | sample/DbClient/GnomeDbClient.cs | sample/DbClient/GnomeDbClient.cs | using System;
using Gda;
using GnomeDb;
using GdaSharp;
using Gtk;
using GtkSharp;
class GnomeDbClient {
static Gtk.Window window;
static Toolbar toolbar;
static Browser browser;
static VBox box;
static Gda.Client client = null;
static Gda.Connection cnc = null;
static void Main (string [] args)
{
GnomeDb... | using System;
using Gda;
using GnomeDb;
using GdaSharp;
using Gtk;
using GtkSharp;
class GnomeDbClient {
static Gtk.Window window;
static Toolbar toolbar;
static Browser browser;
static VBox box;
static Gda.Client client = null;
static Gda.Connection cnc = null;
static void Main (string [] args)
{
GnomeDb... | lgpl-2.1 | C# |
95280bfda381b8624ce13c89c26f5853dc8dba3f | Fix LookAheadParser and make inversable | ArsenShnurkov/Eto.Parse,smbecker/Eto.Parse,smbecker/Eto.Parse,picoe/Eto.Parse,picoe/Eto.Parse,ArsenShnurkov/Eto.Parse | Eto.Parse/Parsers/LookAheadParser.cs | Eto.Parse/Parsers/LookAheadParser.cs | using System;
namespace Eto.Parse.Parsers
{
public class LookAheadParser : UnaryParser, IInverseParser
{
public bool Inverse { get; set; }
protected LookAheadParser(LookAheadParser other, ParserCloneArgs chain)
: base(other, chain)
{
}
public LookAheadParser(Parser inner)
: base(inner)
{
}
... | using System;
namespace Eto.Parse.Parsers
{
public class LookAheadParser : UnaryParser
{
protected LookAheadParser(LookAheadParser other, ParserCloneArgs chain)
: base(other, chain)
{
}
public LookAheadParser(Parser inner)
: base(inner)
{
}
protected override ParseMatch InnerParse(ParseArgs ar... | mit | C# |
b4c1fc208d86b1e58115bd71125e41d2bbdca1b0 | Update WhenValidatingBulkUploadFileAttributes.cs | SkillsFundingAgency/das-providerapprenticeshipsservice,SkillsFundingAgency/das-providerapprenticeshipsservice,SkillsFundingAgency/das-providerapprenticeshipsservice | src/SFA.DAS.ProviderApprenticeshipsService.Web.UnitTests/Orchestrators/BulkUpload/WhenValidatingBulkUploadFileAttributes.cs | src/SFA.DAS.ProviderApprenticeshipsService.Web.UnitTests/Orchestrators/BulkUpload/WhenValidatingBulkUploadFileAttributes.cs | using System.IO;
using System.Linq;
using System.Text;
using System.Web;
using FluentAssertions;
using Moq;
using NUnit.Framework;
using SFA.DAS.NLog.Logger;
using SFA.DAS.ProviderApprenticeshipsService.Infrastructure.Configuration;
using SFA.DAS.ProviderApprenticeshipsService.Web.Orchestrators;
using SFA.DAS.Provide... | using System.IO;
using System.Linq;
using System.Text;
using System.Web;
using FluentAssertions;
using Moq;
using NUnit.Framework;
using SFA.DAS.NLog.Logger;
using SFA.DAS.ProviderApprenticeshipsService.Infrastructure.Configuration;
using SFA.DAS.ProviderApprenticeshipsService.Web.Orchestrators;
using SFA.DAS.Provide... | mit | C# |
e4cc357ce0c828f7ae281ef8840af67ed94cd67a | fix updated minor version number | NIFTYCloud-mbaas/ncmb_unity,NIFTYCloud-mbaas/ncmb_unity,NIFTYCloud-mbaas/ncmb_unity | ncmb_unity/Assets/NCMB/CommonConstant.cs | ncmb_unity/Assets/NCMB/CommonConstant.cs | /*******
Copyright 2014 NIFTY Corporation All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... | /*******
Copyright 2014 NIFTY Corporation All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... | apache-2.0 | C# |
50635c6bf8c36db105a7a6f077483ffe9ae05fa9 | Implement INotifyPropertyChanged for settings | Schlechtwetterfront/snipp | Settings/Settings.cs | Settings/Settings.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace clipman.Settings
{
public class Settings : INotifyPropertyChanged
{
public int ClipLimit;
private KeyGesture f... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace clipman.Settings
{
public class Settings
{
public int ClipLimit;
private KeyGesture focusWindowHotkey = new KeyGesture(Key.OemTilde, Modifi... | apache-2.0 | C# |
6c415f9e1915a580fa9847d6f8b0d09082471dc4 | Add Persistence.CQL.Tests to InternalsVisibleTo | Abc-Arbitrage/Zebus,biarne-a/Zebus | src/Abc.Zebus.Testing/Properties/AssemblyInfo.cs | src/Abc.Zebus.Testing/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("Ab... | 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("Ab... | mit | C# |
b005d846e1129914a7b358a06135c08018f208bb | Refactor AppHarborClient#GetAppHarborApi to private field | appharbor/appharbor-cli | src/AppHarbor/AppHarborClient.cs | src/AppHarbor/AppHarborClient.cs | using System;
using System.Collections.Generic;
using AppHarbor.Model;
namespace AppHarbor
{
public class AppHarborClient : IAppHarborClient
{
private readonly AuthInfo _authInfo;
public AppHarborClient(string AccessToken)
{
_authInfo = new AuthInfo { AccessToken = AccessToken };
}
public CreateResul... | using System;
using System.Collections.Generic;
using AppHarbor.Model;
namespace AppHarbor
{
public class AppHarborClient : IAppHarborClient
{
private readonly AuthInfo _authInfo;
public AppHarborClient(string AccessToken)
{
_authInfo = new AuthInfo { AccessToken = AccessToken };
}
public CreateResul... | mit | C# |
174990b8147603eb127a5a43e4d8434cf919ad8c | Revert "AssemlyInformationalVersion updated." | nseckinoral/xomni-sdk-dotnet | src/Common/CommonAssemblyInfo.cs | src/Common/CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyCompany("XOMNI Inc.")]
[assembly: AssemblyCopyright("Copyright XOMNI Inc. 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyVersion("2.1.0.0")]
[assembly: AssemblyFileVersion("2.1.0.0")]
[ass... | using System.Reflection;
[assembly: AssemblyCompany("XOMNI Inc.")]
[assembly: AssemblyCopyright("Copyright XOMNI Inc. 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyVersion("2.1.0.0")]
[assembly: AssemblyFileVersion("2.1.0.0")]
[ass... | mit | C# |
9e2288a2be3cd31a408d7bdbd0dbc98dbd015675 | Increment version number | DavidAnson/nuproj,zbrad/nuproj,faustoscardovi/nuproj,nuproj/nuproj,AArnott/nuproj,oliver-feng/nuproj,ericstj/nuproj,NN---/nuproj,DavidAnson/nuproj,kovalikp/nuproj,PedroLamas/nuproj | src/Common/CommonAssemblyInfo.cs | src/Common/CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyCompany("Immo Landwerth")]
[assembly: AssemblyProduct("NuProj")]
[assembly: AssemblyCopyright("Copyright © Immo Landwerth")]
[assembly: AssemblyTrademark("")]
[assembly : AssemblyMetadata("PreRelease", "Beta")]
[assembly : AssemblyMetadata("ProjectUrl", "http://nuproj.code... | using System.Reflection;
[assembly: AssemblyCompany("Immo Landwerth")]
[assembly: AssemblyProduct("NuProj")]
[assembly: AssemblyCopyright("Copyright © Immo Landwerth")]
[assembly: AssemblyTrademark("")]
[assembly : AssemblyMetadata("PreRelease", "Beta")]
[assembly : AssemblyMetadata("ProjectUrl", "http://nuproj.code... | mit | C# |
9a4748dae6a798d2b4ce5eb68419df19381ed47b | Update ObservableResource.cs | Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D/ObservableResource.cs | src/Core2D/ObservableResource.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Immutable;
using Core2D.Attributes;
namespace Core2D
{
/// <summary>
/// Observable resources base class.
/// </summary>
... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Immutable;
using Core2D.Attributes;
namespace Core2D
{
/// <summary>
/// Observable resources base class.
/// </summary>
... | mit | C# |
ce581586c34941bd70690a97a3ca25346080581c | Fix crazy doc-comment typo. | zaccharles/nodatime,malcolmr/nodatime,zaccharles/nodatime,malcolmr/nodatime,zaccharles/nodatime,zaccharles/nodatime,nodatime/nodatime,BenJenkinson/nodatime,BenJenkinson/nodatime,jskeet/nodatime,nodatime/nodatime,malcolmr/nodatime,malcolmr/nodatime,zaccharles/nodatime,jskeet/nodatime,zaccharles/nodatime | src/NodaTime/Utility/InvalidNodaDataException.cs | src/NodaTime/Utility/InvalidNodaDataException.cs | // Copyright 2013 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using System;
namespace NodaTime.Utility
{
/// <summary>
/// Exception thrown when data read by Noda Time (such as serialized time zone data) is ... | // Copyright 2013 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using System;
namespace NodaTime.Utility
{
/// <summary>
/// Exception thrown when data read by Noda Time (such as serialized time zone ... | apache-2.0 | C# |
441ae4495be1dbe93d013dffecded6ff1e6da355 | Add a copy constructor to InputState | ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ZLima12/osu-framework | osu.Framework/Input/States/InputState.cs | osu.Framework/Input/States/InputState.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.Framework.Input.States
{
/// <summary>
/// An object that stores all input states.
/// </summary>
public class InputState
{
/// ... | // 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.Framework.Input.States
{
public class InputState
{
public readonly MouseState Mouse;
public readonly KeyboardState Keyboard;
... | mit | C# |
ffb18b364191f9a32b6a4bbc4df2b8f4c6df4e92 | Make SegmentedAddonFileInfo use cached values, (very) slight performance improvement. | icedream/gmadsharp | src/addoncreator/Addon/SegmentedAddonFileInfo.cs | src/addoncreator/Addon/SegmentedAddonFileInfo.cs | using System;
using System.IO;
namespace GarrysMod.AddonCreator.Addon
{
public class SegmentedAddonFileInfo : AddonFileInfo
{
private readonly long _len;
private readonly long _pos;
private readonly Stream _stream;
private int _hash;
public SegmentedAddonFileInfo(Stream... | using System;
using System.IO;
namespace GarrysMod.AddonCreator.Addon
{
public class SegmentedAddonFileInfo : AddonFileInfo
{
private readonly long _len;
private readonly long _pos;
private readonly Stream _stream;
private int _hash;
public SegmentedAddonFileInfo(Stream... | mit | C# |
939702085ef2c8a6eaf389eb4fbd7adc34309c87 | Remove strange failing tests | anthonylangsworth/Meraki | src/MerakiDashboard.Test/TestUnixTimestampConverter.cs | src/MerakiDashboard.Test/TestUnixTimestampConverter.cs | using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace MerakiDashboard.Test
{
public class TestUnixTimestampConverter
{
[Theory]
[MemberData(nameof(ConvertTestData))]
public void Convert(double timestamp, DateTime expectedDateTime)
{
... | using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace MerakiDashboard.Test
{
public class TestUnixTimestampConverter
{
[Theory]
[MemberData(nameof(ConvertTestData))]
public void Convert(double timestamp, DateTime expectedDateTime)
{
... | mit | C# |
e5e3fb4b0f647d70d8e468d177946d3fe91b0d68 | Bump version, to make nightly builds appear newer. | wieslawsoltes/Perspex,SuperJMN/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,MrDaedra/Avalonia,MrDaedra/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,wieslawsoltes/Perspex,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avaloni... | src/Shared/SharedAssemblyInfo.cs | src/Shared/SharedAssemblyInfo.cs | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
[assembly: AssemblyCompany("")]
[assembly: AssemblyConfiguration(... | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
[assembly: AssemblyCompany("")]
[assembly: AssemblyConfiguration(... | mit | C# |
ee14cff24a0517c845ab994d3e5f4ba088b55ba1 | Update StorageBase.cs | A51UK/File-Repository | File-Repository/StorageBase.cs | File-Repository/StorageBase.cs | /*
* Copyright 2017 Craig Lee Mark Adams
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... | /*
* Copyright 2017 Criag Lee Mark Adams
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# |
2d0c924bdf579bd935f1eaf9fa19ce50aba39d5f | Add xmldoc for MaxStarDifficulty and MaxLength | smoogipoo/osu,ppy/osu,ppy/osu,EVAST9919/osu,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,peppy/osu-new,EVAST9919/osu,NeoAdonis/osu,peppy/osu,ZLima12/osu,UselessToucan/osu,2yangk23/osu,2yangk23/osu,smoogipoo/osu,UselessToucan/osu,johnneijzen/osu,johnneijzen/osu,ZLima12/osu,ppy/osu,smoogipooo/osu... | osu.Game/Beatmaps/BeatmapSetInfo.cs | osu.Game/Beatmaps/BeatmapSetInfo.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using osu.Game.Database;
namespace osu.Game.Beatm... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using osu.Game.Database;
namespace osu.Game.Beatm... | mit | C# |
562c9e56fbda6c85dc2ab98402296ec461232eeb | Fix naming | naoey/osu,NeoAdonis/osu,ZLima12/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,EVAST9919/osu,ppy/osu,DrabWeb/osu,smoogipoo/osu,UselessToucan/osu,DrabWeb/osu,ZLima12/osu,UselessToucan/osu,naoey/osu,smoogipooo/osu,peppy/osu,NeoAdonis/osu,peppy/osu,DrabWeb/osu,smoogipoo/osu,naoey/osu,johnneijzen/osu,peppy/osu,johnneijzen/osu... | osu.Game/Screens/Select/BeatmapClearScoresDialog.cs | osu.Game/Screens/Select/BeatmapClearScoresDialog.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 osu.Framework.Allocation;
using osu.Game.Beatmaps;
using osu.Game.Graphics;
using osu.Game.Overlays.Dialog;
using osu.Game.Scoring;
using System;
using System.Col... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Game.Beatmaps;
using osu.Game.Graphics;
using osu.Game.Overlays.Dialog;
using osu.Game.Scoring;
using System;
using System.Col... | mit | C# |
f14945358a37016500e30448de40db7307c309a7 | Use symlinks instead of Windows shortcuts on Linux | nano-byte/LightTag | ResultSet.cs | ResultSet.cs | /*
* Copyright 2014 Bastian Eicher
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... | /*
* Copyright 2014 Bastian Eicher
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... | mit | C# |
90c6e2f64f444bfdd3c784f9f3d55c2dc7c36f20 | Make team result read-only | brwml/MatchMakerTool | Reporting/Models/TeamResult.cs | Reporting/Models/TeamResult.cs | namespace MatchMaker.Reporting.Models;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Xml.Linq;
using Ardalis.GuardClauses;
/// <summary>
/// Defines the <see cref="TeamResult" />
/// </summary>
[DataContract]
[DebuggerDisplay("Team Result (Team {TeamId}, Score {Score}, Error... | namespace MatchMaker.Reporting.Models;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Xml.Linq;
using Ardalis.GuardClauses;
/// <summary>
/// Defines the <see cref="TeamResult" />
/// </summary>
[DataContract]
[DebuggerDisplay("Team Result (Team {TeamId}, Score {Score}, Error... | mit | C# |
052c816259b528cbb3247e245cd9c766e69f868b | Use ReadOnlyCollection for extensions. | GetTabster/Tabster.Data | FileType.cs | FileType.cs | #region
using System.Collections.Generic;
using System.Collections.ObjectModel;
#endregion
namespace Tabster.Data
{
public sealed class FileType
{
private readonly List<string> _extensions = new List<string>();
public FileType(string name, IEnumerable<string> extensions)
... | #region
using System.Collections.Generic;
using System.Collections.ObjectModel;
#endregion
namespace Tabster.Data
{
public sealed class FileType
{
public readonly Collection<string> Extensions;
public FileType(string name, IList<string> extensions)
{
Name ... | apache-2.0 | C# |
e9bd87545e47af17f8226f3850b906a147217883 | Fix flaky test in free mod select test scene | peppy/osu,ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,peppy/osu | osu.Game.Tests/Visual/Multiplayer/TestSceneFreeModSelectScreen.cs | osu.Game.Tests/Visual/Multiplayer/TestSceneFreeModSelectScreen.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.Containers;
using osu.Framework.Testing;
using osu.Game.Overlays.Mods;
using osu.Game.Screens.Onlin... | // 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.Containers;
using osu.Framework.Testing;
using osu.Game.Overlays.Mods;
using osu.Game.Screens.Onlin... | mit | C# |
7292ca9734e3c36f5bdb743c9a63af35c27454b0 | add file path to component list. fixes #19 | pburls/dewey | Dewey.ListItems/Component.cs | Dewey.ListItems/Component.cs | using Dewey.State;
using System;
using System.Collections.Generic;
namespace Dewey.ListItems
{
static class ComponentExtensions
{
public static void Write(this Component component)
{
Console.ForegroundColor = (ConsoleColor)ItemColor.ComponentItem;
Console.WriteLine(comp... | using Dewey.State;
using System;
using System.Collections.Generic;
namespace Dewey.ListItems
{
static class ComponentExtensions
{
public static void Write(this Component component)
{
Console.ForegroundColor = (ConsoleColor)ItemColor.ComponentItem;
Console.WriteLine(comp... | mit | C# |
2cf5a5f9374b88442cabe56c861637aeb0e92a17 | Update SP and CU last version | KankuruSQL/KMO | KVersion.cs | KVersion.cs | namespace KMO
{
public static class KVersion
{
public const int Sp2017 = 1000;
public const int Cu2017 = 1000;
public const int Sp2016 = 4001;
public const int Cu2016 = 4451;
public const int Sp2014 = 5000;
public const int Cu2014 = 5556;
public... | namespace KMO
{
public static class KVersion
{
public const int Sp2017 = 800;
public const int Cu2017 = 800;
public const int Sp2016 = 4001;
public const int Cu2016 = 4435;
public const int Sp2014 = 5000;
public const int Cu2014 = 5546;
public c... | mit | C# |
1c38e280b1444439f4b9163830dc7d6ded66b6ea | Introduce constant | EamonNerbonne/ValueUtils,EamonNerbonne/ValueUtils,EamonNerbonne/ValueUtils | ValueUtils/ReflectionHelper.cs | ValueUtils/ReflectionHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace ValueUtils
{
static class ReflectionHelper
{
public static IEnumerable<Type> WalkMeaningfulInheritanceChain(Type type)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace ValueUtils
{
static class ReflectionHelper
{
public static IEnumerable<Type> WalkMeaningfulInheritanceChain(Type type)
{
... | apache-2.0 | C# |
def9cd7562683266c5323fc83da361bc349242f3 | Change to one second | mvno/Okanshi,mvno/Okanshi,mvno/Okanshi | tests/Okanshi.Tests/StepCounterTest.cs | tests/Okanshi.Tests/StepCounterTest.cs | using System;
using System.Threading;
using FluentAssertions;
using Xunit;
namespace Okanshi.Test
{
public class StepCounterTest
{
[Fact]
public void Value_is_zero_if_multiple_steps_has_not_been_crossed()
{
var stepCounter = new StepCounter(MonitorConfig.Build("Test"), TimeSpan.FromMilliseconds(500));
v... | using System;
using System.Threading;
using FluentAssertions;
using Xunit;
namespace Okanshi.Test
{
public class StepCounterTest
{
[Fact]
public void Value_is_zero_if_multiple_steps_has_not_been_crossed()
{
var stepCounter = new StepCounter(MonitorConfig.Build("Test"), TimeSpan.FromMilliseconds(500));
v... | mit | C# |
bbd59f52f1239dec04648c6d161ef25c34f1aae6 | Verify that the parsed date time has time zone information | messagebird/csharp-rest-api | MessageBird/Json/Converters/RFC3339DateTimeConverter.cs | MessageBird/Json/Converters/RFC3339DateTimeConverter.cs | using System;
using MessageBird.Utilities;
using Newtonsoft.Json;
namespace MessageBird.Json.Converters
{
class RFC3339DateTimeConverter : JsonConverter
{
private const string Format = "yyyy-MM-dd'T'HH:mm:ssK";
public override void WriteJson(JsonWriter writer, object value, JsonSerializer ser... | using System;
using MessageBird.Utilities;
using Newtonsoft.Json;
namespace MessageBird.Json.Converters
{
class RFC3339DateTimeConverter : JsonConverter
{
private const string Format = "yyyy-MM-dd'T'HH:mm:ssK";
public override void WriteJson(JsonWriter writer, object value, JsonSerializer ser... | isc | C# |
4cb9ba648b1c11403aa7fff862ab65c267d53477 | Update Copyright info | axomic/openasset-rest-cs | OpenAsset.RestClient.Library/Properties/AssemblyInfo.cs | OpenAsset.RestClient.Library/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("Op... | 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("Op... | mit | C# |
0b4dc816ffad304f7320981e0e155ed3b09c7918 | Join up hardcoded lines in a Row | 12joan/hangman | row.cs | row.cs | using System;
namespace Hangman {
public class Row {
public Cell[] Cells;
public Row(Cell[] cells) {
Cells = cells;
}
public string Draw(int width) {
// return new String(' ', width - Text.Length) + Text;
return String.Join("\n", Lines());
}
public string[] Lines() {
... | using System;
namespace Hangman {
public class Row {
public Cell[] Cells;
public Row(Cell[] cells) {
Cells = cells;
}
public string Draw(int width) {
// return new String(' ', width - Text.Length) + Text;
return "I have many cells!";
}
}
}
| unlicense | C# |
426da06c1880b4bf8e00eada10a11f7193e13688 | Make integration tests explicit | EasyNetQ/EasyNetQ,mcthuesen/EasyNetQ,maverix/EasyNetQ,lukasz-lysik/EasyNetQ,beyond-code-github/AzureNetQ,tkirill/EasyNetQ,Pliner/EasyNetQ,chinaboard/EasyNetQ,ar7z1/EasyNetQ,blackcow02/EasyNetQ,mcthuesen/EasyNetQ,EIrwin/EasyNetQ,Ascendon/EasyNetQ,alexwiese/EasyNetQ,zidad/EasyNetQ,GeckoInformasjonssystemerAS/EasyNetQ,ale... | Source/EasyNetQ.Management.Client.Tests/ScenarioTest.cs | Source/EasyNetQ.Management.Client.Tests/ScenarioTest.cs | // ReSharper disable InconsistentNaming
using System;
using EasyNetQ.Management.Client.Model;
using NUnit.Framework;
namespace EasyNetQ.Management.Client.Tests
{
[TestFixture]
[Explicit("Requires a RabbitMQ server on localhost to work")]
public class ScenarioTest
{
[SetUp]
public void... | // ReSharper disable InconsistentNaming
using System;
using EasyNetQ.Management.Client.Model;
using NUnit.Framework;
namespace EasyNetQ.Management.Client.Tests
{
[TestFixture]
public class ScenarioTest
{
[SetUp]
public void SetUp()
{
}
/// <summary>
/// De... | mit | C# |
c464a9d3d29990b56434923d3267819661afa5af | Add tests for external price services | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Tests/IntegrationTests/ExternalApiTests.cs | WalletWasabi.Tests/IntegrationTests/ExternalApiTests.cs | using NBitcoin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Backend.Models;
using WalletWasabi.Logging;
using WalletWasabi.Tests.XunitConfiguration;
using WalletWasabi.WebClients.Bloc... | using NBitcoin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Backend.Models;
using WalletWasabi.Logging;
using WalletWasabi.Tests.XunitConfiguration;
using WalletWasabi.WebClients.Bloc... | mit | C# |
a84d0cf7a2de2c38b2cc73155c23d3d983be1a34 | refactor code | krisdimova/kasskata-Lessons | 05.GitHub/Program.cs | 05.GitHub/Program.cs | using System;
namespace _05.GitHub
{
class Program
{
static void Main()
{
Console.WriteLine("Clean Code");
}
}
}
| using System;
namespace _05.GitHub
{
class Program
{
static void Main()
{
Console.WriteLine("Clean Code"); }
}
}
| mit | C# |
f8e8e79ff2828368a066406f5f327b866c25fe58 | Update UnMergingtheMergedCells.cs | maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,ma... | Examples/CSharp/Data/AddOn/Merging/UnMergingtheMergedCells.cs | Examples/CSharp/Data/AddOn/Merging/UnMergingtheMergedCells.cs | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Data.AddOn.Merging
{
public class UnMergingtheMergedCells
{
public static void Main(string[] args)
{
//ExStart:1
// The path to the documents directory.
string dataDir = Aspose.Cells.Exampl... | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Data.AddOn.Merging
{
public class UnMergingtheMergedCells
{
public static void Main(string[] args)
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.GetDataDir(Syst... | mit | C# |
80811725613f10fcd6596f523c4960ad189faa25 | Add AssemblyInformationalVersionAttribute | ZHZG/PropertyTools,jogibear9988/PropertyTools,punker76/PropertyTools,johnsonlu/PropertyTools,objorke/PropertyTools,ZHZG/PropertyTools,jogibear9988/PropertyTools,LavishSoftware/PropertyTools,Mitch-Connor/PropertyTools | Source/GlobalAssemblyInfo.cs | Source/GlobalAssemblyInfo.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="GlobalAssemblyInfo.cs" company="PropertyTools">
// The MIT License (MIT)
//
// Copyright (c) 2014 PropertyTools contributors
//
// Permission is hereby granted, ... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="GlobalAssemblyInfo.cs" company="PropertyTools">
// The MIT License (MIT)
//
// Copyright (c) 2014 PropertyTools contributors
//
// Permission is hereby granted, ... | mit | C# |
f183c6221bf5677c08be34f2d4fb5ee87e8e7ce3 | Move SharpDX to next minor verison 2.5.1 | wyrover/SharpDX,Ixonos-USA/SharpDX,fmarrabal/SharpDX,Ixonos-USA/SharpDX,PavelBrokhman/SharpDX,TigerKO/SharpDX,mrvux/SharpDX,jwollen/SharpDX,davidlee80/SharpDX-1,weltkante/SharpDX,RobyDX/SharpDX,dazerdude/SharpDX,wyrover/SharpDX,TigerKO/SharpDX,TechPriest/SharpDX,jwollen/SharpDX,dazerdude/SharpDX,manu-silicon/SharpDX,fm... | Source/SharedAssemblyInfo.cs | Source/SharedAssemblyInfo.cs | // Copyright (c) 2010-2013 SharpDX - Alexandre Mutel
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy,... | // Copyright (c) 2010-2013 SharpDX - Alexandre Mutel
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy,... | mit | C# |
93fdabf961b8eaa512205c9b8d50872816f41e60 | normalize PlatformTarget FrameworkNames to preferred equivalents | StephenClearyApps/DotNetApis,StephenClearyApps/DotNetApis,StephenClearyApps/DotNetApis,StephenClearyApps/DotNetApis | service/DotNetApis.Nuget/NugetUtility.cs | service/DotNetApis.Nuget/NugetUtility.cs | using System.Linq;
using System.Runtime.Versioning;
using NuGet.Frameworks;
namespace DotNetApis.Nuget
{
public static class NugetUtility
{
/// <summary>
/// Whether a framework is a PCL framework.
/// </summary>
/// <param name="frameworkName">The framework name.</param>
... | using System.Runtime.Versioning;
using NuGet.Frameworks;
namespace DotNetApis.Nuget
{
public static class NugetUtility
{
/// <summary>
/// Whether a framework is a PCL framework.
/// </summary>
/// <param name="frameworkName">The framework name.</param>
public static bo... | mit | C# |
96357f83b099c7adf21f89a7c88b49927c57cbc4 | Fix dependency context bug and add load overload | rakeshsinghranchi/core-setup,janvorli/core-setup,zamont/core-setup,joperezr/core-setup,ravimeda/core-setup,ramarag/core-setup,MichaelSimons/core-setup,ellismg/core-setup,ellismg/core-setup,janvorli/core-setup,chcosta/core-setup,ramarag/core-setup,joperezr/core-setup,vivmishra/core-setup,cakine/core-setup,steveharter/co... | DependencyContext.cs | DependencyContext.cs | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.IO;
using System.Reflection;
using System.Collections.Generic;
namespace Microsoft.Extensions.DependencyModel
{
... | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.IO;
using System.Reflection;
using System.Collections.Generic;
namespace Microsoft.Extensions.DependencyModel
{
... | mit | C# |
d7fc3b2369e632aedce1eb1ba0424e263a8e7434 | Remove spaces | pardahlman/RawRabbit,northspb/RawRabbit | src/RawRabbit/Common/ChannelFactory.cs | src/RawRabbit/Common/ChannelFactory.cs | using System;
using System.Collections.Concurrent;
using System.Threading;
using RabbitMQ.Client;
namespace RawRabbit.Common
{
public interface IChannelFactory : IDisposable
{
IModel GetChannel();
IModel CreateChannel();
}
public class ChannelFactory : IChannelFactory
{
private readonly IConnectionBroker ... | using System;
using System.Collections.Concurrent;
using System.Threading;
using RabbitMQ.Client;
namespace RawRabbit.Common
{
public interface IChannelFactory : IDisposable
{
IModel GetChannel();
IModel CreateChannel();
}
public class ChannelFactory : IChannelFactory
{
private readonly IConnectionBroker ... | mit | C# |
78dbe98a9d4d0c4efbeca41579d6649fcdd85aed | Use proper C# get/set so list binding works | IrvingtonProgramming/InteractApp,IrvingtonProgramming/InteractApp,IrvingtonProgramming/InteractApp | InteractApp/Event.cs | InteractApp/Event.cs | using System;
using System.Collections.Generic;
namespace InteractApp
{
public class Event
{
public int Id { get; set; }
public String ImageUri { get; set; }
public String Name { get; set; }
public DateTime Date { get; set; }
public String Location { get; set; }
public String Desc { get; set; }
public... | using System;
using System.Collections.Generic;
namespace InteractApp
{
public class Event
{
public int Id;
public String ImageUri;
public String Name;
public DateTime Date;
public String Location;
public String Desc;
public List<String> Tags;
public Event (int EId, String EImageUri, String EName, ... | mit | C# |
10033239c7c38781455d25d9189c80abc28123fd | Allow binding to ControlPointGroup's ControlPoints | smoogipoo/osu,2yangk23/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,ppy/osu,johnneijzen/osu,EVAST9919/osu,2yangk23/osu,peppy/osu,johnneijzen/osu,peppy/osu,peppy/osu,peppy/osu-new,UselessToucan/osu,smoogipooo/osu,smoogipoo/osu,EVAST9919/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu | osu.Game/Beatmaps/ControlPoints/ControlPointGroup.cs | osu.Game/Beatmaps/ControlPoints/ControlPointGroup.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Bindables;
namespace osu.Game.Beatmaps.ControlPoints
{
public class ControlPointGroup : IComparable<ControlPoint... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Linq;
namespace osu.Game.Beatmaps.ControlPoints
{
public class ControlPointGroup : IComparable<ControlPo... | mit | C# |
718a6d2a0dd914b498eb8f24da4bfeef0c821a1e | Use regex to find idle jobs #31 | dermeister0/TimesheetParser,dermeister0/TimesheetParser | Source/TimesheetParser.Business/IdleStrategies/BaseIdleStrategy.cs | Source/TimesheetParser.Business/IdleStrategies/BaseIdleStrategy.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace TimesheetParser.Business.IdleStrategies
{
abstract class BaseIdleStrategy : IIdleStrategy
{
Regex idleRegex = new Regex(@"(?i)^\s?idle\.?\s?$", RegexOptions.Compiled);
public abs... | using System;
using System.Collections.Generic;
using System.Linq;
namespace TimesheetParser.Business.IdleStrategies
{
abstract class BaseIdleStrategy : IIdleStrategy
{
public abstract void DistributeIdle(ParseResult result);
protected IList<Model.Job> GetIdleJobs(ParseResult result)
... | mit | C# |
db0c010afd2f9d0b37a3a80102f731bf2ee35a67 | Update validate ip address | should-have/SH.ShowYou | SH.ShowYou/Controllers/GeoController.cs | SH.ShowYou/Controllers/GeoController.cs | using System.Web.Http;
using System.Web.Routing;
using SH.ShowYou.Helpers;
using System.Net;
namespace SH.ShowYou.Controllers
{
public class GeoController : ApiControllerBase
{
[Route("geo")]
[HttpGet]
public IHttpActionResult Get(string ip = "")
{
if (string.IsNull... | using System.Web.Http;
using System.Web.Routing;
using SH.ShowYou.Helpers;
using System.Net;
namespace SH.ShowYou.Controllers
{
public class GeoController : ApiControllerBase
{
[Route("geo")]
[HttpGet]
public IHttpActionResult Get(string ip = "")
{
if (string.IsNull... | mit | C# |
3aae30c58dfed18c05c4be86a1faed2e8f203a3a | remove compilation warning | pchalamet/full-build,full-build/full-build,pchalamet/full-build,full-build/full-build | src/FullBuild/Commands/Packages+Check.cs | src/FullBuild/Commands/Packages+Check.cs | // Copyright (c) 2014, Pierre Chalamet
// All rights reserved.
//
// 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 retain the above copyright
// notice, this list of c... | // Copyright (c) 2014, Pierre Chalamet
// All rights reserved.
//
// 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 retain the above copyright
// notice, this list of c... | apache-2.0 | C# |
5e1b62ffb19e283e7f72b7ecd3d128c50bfb3d0d | Patch from Tim Allen from bug #55066 - unit test to show that we no longer load XWPF footnotes twice | Yijtx/npoi,antony-liu/npoi,jcridev/npoi,stuartwmurray/npoi,tkalubi/npoi-1,xl1/npoi,tonyqus/npoi,vinod1988/npoi | testcases/ooxml/XWPF/UserModel/TestXWPFFootnotes.cs | testcases/ooxml/XWPF/UserModel/TestXWPFFootnotes.cs | /* ====================================================================
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 Y... | /* ====================================================================
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 Y... | apache-2.0 | C# |
54463a6d2977b2fe339585f0bfd6a62e56fbed82 | Fix mouse position in game view | feliwir/openSage,feliwir/openSage | src/OpenSage.Viewer/UI/Views/GameView.cs | src/OpenSage.Viewer/UI/Views/GameView.cs | using System.Numerics;
using ImGuiNET;
namespace OpenSage.Viewer.UI.Views
{
internal abstract class GameView : AssetView
{
private readonly AssetViewContext _context;
protected GameView(AssetViewContext context)
{
_context = context;
}
public override void... | using System.Numerics;
using ImGuiNET;
namespace OpenSage.Viewer.UI.Views
{
internal abstract class GameView : AssetView
{
private readonly AssetViewContext _context;
protected GameView(AssetViewContext context)
{
_context = context;
}
public override void... | mit | C# |
3d7793a1b4600660a0362bb200d1a699b0881359 | Update RoundingPricingStrategy.cs | tiksn/TIKSN-Framework | TIKSN.Core/Finance/PricingStrategy/RoundingPricingStrategy.cs | TIKSN.Core/Finance/PricingStrategy/RoundingPricingStrategy.cs | using System;
namespace TIKSN.Finance.PricingStrategy
{
public class RoundingPricingStrategy : IPricingStrategy
{
private readonly int fitstImportantDigitsCount;
public RoundingPricingStrategy(int fitstImportantDigitsCount)
{
if (fitstImportantDigitsCount < 1)
... | using System;
namespace TIKSN.Finance.PricingStrategy
{
public class RoundingPricingStrategy : IPricingStrategy
{
private int fitstImportantDigitsCount;
public RoundingPricingStrategy(int fitstImportantDigitsCount)
{
if (fitstImportantDigitsCount < 1)
throw... | mit | C# |
7fcbeb1d9e2da29f5ba995abc2e79a7625e6ef05 | Remove the third useless behaviour of the Xmas Bell. | Noxalus/Xmas-Hell | Xmas-Hell/Xmas-Hell-Core/Entities/Bosses/XmasBell/XmasBell.cs | Xmas-Hell/Xmas-Hell-Core/Entities/Bosses/XmasBell/XmasBell.cs | using BulletML;
using Microsoft.Xna.Framework;
using XmasHell.Physics.Collision;
namespace XmasHell.Entities.Bosses.XmasBell
{
class XmasBell : Boss
{
public XmasBell(XmasHell game, PositionDelegate playerPositionDelegate) : base(game, playerPositionDelegate)
{
// Spriter
... | using BulletML;
using Microsoft.Xna.Framework;
using XmasHell.Physics.Collision;
namespace XmasHell.Entities.Bosses.XmasBell
{
class XmasBell : Boss
{
public XmasBell(XmasHell game, PositionDelegate playerPositionDelegate) : base(game, playerPositionDelegate)
{
// Spriter
... | mit | C# |
45fca0aa4a359db77ced4c63337a557a7a0e3810 | Remove actions from Index view | BillChirico/Tipage,BillChirico/Tipage | src/Tipage.Web/Views/Shifts/Index.cshtml | src/Tipage.Web/Views/Shifts/Index.cshtml | @model IEnumerable<Tipage.Web.Models.Shift>
@{
ViewData["Title"] = "Index";
}
<h2>Index</h2>
<p>
<a asp-action="Create">Create New</a>
</p>
<table class="table">
<thead>
<tr>
<th>
Date
</th>
<th>
Total Tips
</th>
</tr>
</thead>
<tbod... | @model IEnumerable<Tipage.Web.Models.Shift>
@{
ViewData["Title"] = "Index";
}
<h2>Index</h2>
<p>
<a asp-action="Create">Create New</a>
</p>
<table class="table">
<thead>
<tr>
<th>
Date
</th>
<th></th>
</tr>
</thead>
<... | mit | C# |
f7b927ac81cb9081bf6aa883e9b456cc53cd4179 | Reset cancellation registration field after disposal failure | bwatts/Totem,bwatts/Totem | Source/Totem/Runtime/ConnectionState.cs | Source/Totem/Runtime/ConnectionState.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
namespace Totem.Runtime
{
/// <summary>
/// Indicates the observable state of a connection
/// </summary>
public sealed class ConnectionState : Notion
{
private CancellationTokenRegistration _cancellationTokenRegistration... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
namespace Totem.Runtime
{
/// <summary>
/// Indicates the observable state of a connection
/// </summary>
public sealed class ConnectionState : Notion
{
private CancellationTokenRegistration _cancellationTokenRegistratio... | mit | C# |
df7816cad050957e329972f0126aad11a02afc02 | Remove unneeded using. | Faithlife/Parsing | tools/Build/Build.cs | tools/Build/Build.cs | return BuildRunner.Execute(args, build =>
{
var gitLogin = new GitLoginInfo("faithlifebuildbot", Environment.GetEnvironmentVariable("BUILD_BOT_PASSWORD") ?? "");
build.AddDotNetTargets(
new DotNetBuildSettings
{
NuGetApiKey = Environment.GetEnvironmentVariable("NUGET_API_KEY"),
DocsSettings = new DotNetDoc... | using Faithlife.Build;
return BuildRunner.Execute(args, build =>
{
var gitLogin = new GitLoginInfo("faithlifebuildbot", Environment.GetEnvironmentVariable("BUILD_BOT_PASSWORD") ?? "");
build.AddDotNetTargets(
new DotNetBuildSettings
{
NuGetApiKey = Environment.GetEnvironmentVariable("NUGET_API_KEY"),
Docs... | mit | C# |
1712406a3cd3ee44a807495aa092601a8d37bc8a | Fix unit test host | Thraka/SadConsole | Tests/SadConsole.Tests/BasicGameHost.cs | Tests/SadConsole.Tests/BasicGameHost.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using SadConsole.Input;
using SadConsole.Renderers;
namespace SadConsole.Tests
{
class BasicGameHost : GameHost
{
public BasicGameHost()
{
Instance = this;
}
public override IRender... | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using SadConsole.Input;
using SadConsole.Renderers;
namespace SadConsole.Tests
{
class BasicGameHost : GameHost
{
public BasicGameHost()
{
Instance = this;
}
public override IRender... | mit | C# |
7b6568540966f69f8f65c10989355a7fd0942e96 | Remove MIT license header | fredatgithub/WinFormTemplate | WinFormTemplate/ConfigurationOptions.cs | WinFormTemplate/ConfigurationOptions.cs | namespace WinFormTemplate
{
internal class ConfigurationOptions
{
public bool Option1Name { get; set; }
public bool Option2Name { get; set; }
public ConfigurationOptions()
{
}
}
}
| /*
The MIT License(MIT)
Copyright(c) 2015 Freddy Juhel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merg... | mit | C# |
5cb64a993009020afdb6ab842cbb1339e78fa108 | Update model for transaction to not need the person id as it will get set from the jwt later | djangojazz/MoneyEntry | MoneyEntry.ExpensesAPI/Models/TransactionModel.cs | MoneyEntry.ExpensesAPI/Models/TransactionModel.cs | using MoneyEntry.DataAccess.EFCore.Expenses.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace MoneyEntry.ExpensesAPI.Models
{
public class TransactionModel
{
public int TransactionId { get; se... | using MoneyEntry.DataAccess.EFCore.Expenses.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace MoneyEntry.ExpensesAPI.Models
{
public class TransactionModel
{
public int TransactionId { get; se... | bsd-3-clause | C# |
99498089292d70ec6c487bbf11d2487da404e533 | Update TimeWindow.cs | LordMike/TMDbLib | TMDbLib/Objects/Trending/TimeWindow.cs | TMDbLib/Objects/Trending/TimeWindow.cs | namespace TMDbLib.Objects.Trending
{
public enum TimeWindow
{
[EnumValue("day")]
Day,
[EnumValue("week")]
Week
}
}
| namespace TMDbLib.Objects.Trending
{
public enum TimeWindow
{
Day, Week
}
} | mit | C# |
8359ed4215c486abf80a07741409c8317e6a6a26 | Update test | GeirGrusom/daemos,GeirGrusom/daemos | UnitTests/TransactionProcessorTests.cs | UnitTests/TransactionProcessorTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using NSubstitute;
using NUnit.Framework;
using Transact;
namespace UnitTests
{
[TestFixture]
public class TransactionProcessorTests
{
[Test]
public a... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using NSubstitute;
using NUnit.Framework;
using Transact;
namespace UnitTests
{
[TestFixture]
public class TransactionProcessorTests
{
[Test]
public a... | mit | C# |
66c27d2dbc78c56d3331494a1380d1cdb0d9b219 | Bump version number of FirebaseJobDispatcher to 0.8.5 | xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,bholmes/XamarinComponents,bholmes/XamarinComponents,bholmes/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,bholmes/XamarinComponents,xamarin/XamarinComponents,bholmes/XamarinComponents,bholmes/XamarinComponents | Android/FirebaseJobDispatcher/build.cake | Android/FirebaseJobDispatcher/build.cake |
#load "../../common.cake"
var TARGET = Argument ("t", Argument ("target", "Default"));
var ANDROID_VERSION = "0.8.5";
var ANDROID_NUGET_VERSION = "0.8.5.0-beta1";
var ANDROID_URL = string.Format ("https://jcenter.bintray.com/com/firebase/firebase-jobdispatcher/{0}/firebase-jobdispatcher-{0}.aar", ANDROID_VERSION);
v... |
#load "../../common.cake"
var TARGET = Argument ("t", Argument ("target", "Default"));
var ANDROID_VERSION = "0.8.3";
var ANDROID_NUGET_VERSION = "0.8.3.0-beta1";
var ANDROID_URL = string.Format ("https://jcenter.bintray.com/com/firebase/firebase-jobdispatcher/{0}/firebase-jobdispatcher-{0}.aar", ANDROID_VERSION);
v... | mit | C# |
7a18e4671393dfd278655716c66889a0e18988b4 | Update SubscriptionService | lucasdavid/Gamedalf,lucasdavid/Gamedalf | Gamedalf.Services/SubscriptionService.cs | Gamedalf.Services/SubscriptionService.cs | using Gamedalf.Core.Data;
using Gamedalf.Core.Models;
using Gamedalf.Services.Infrastructure;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Threading.Tasks;
namespace Gamedalf.Services
{
public class SubscriptionService : Service<Subscription>
{
... | using Gamedalf.Core.Models;
using Gamedalf.Services.Infrastructure;
using System.Threading.Tasks;
using System.Linq;
using Gamedalf.Core.Data;
namespace Gamedalf.Services
{
public class SubscriptionService : Service<Subscription>
{
public SubscriptionService(ApplicationDbContext db) : base(db){}
... | mit | C# |
2ca24225e245fe19062166aa330fa72536631a61 | Improve Identifier.GetVariableString | occar421/OpenTKAnalyzer | src/OpenTKAnalyzer/OpenTKAnalyzer/Utility/Identifier.cs | src/OpenTKAnalyzer/OpenTKAnalyzer/Utility/Identifier.cs | using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenTKAnalyzer.Utility
{
static public class Identifier
{
/// <summary>
///... | using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenTKAnalyzer.Utility
{
static public class Identifier
{
/// <summary>
///... | mit | C# |
1e582fa76aee8275ecc43fd1e12472b1e720f230 | Bump version | oozcitak/imagelistview | ImageListView/Properties/AssemblyInfo.cs | ImageListView/Properties/AssemblyInfo.cs | // ImageListView - A listview control for image files
// Copyright (C) 2009 Ozgur Ozcitak
//
// 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/... | // ImageListView - A listview control for image files
// Copyright (C) 2009 Ozgur Ozcitak
//
// 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/... | apache-2.0 | C# |
821b2007143be27580d6bcfe8050ca3a5c137847 | bump up the instance count of dedicated event posts job | exceptionless/Exceptionless,exceptionless/Exceptionless,exceptionless/Exceptionless,exceptionless/Exceptionless | Source/Jobs/EventPost/Program.cs | Source/Jobs/EventPost/Program.cs | using System;
using Exceptionless.Core;
using Exceptionless.Core.Extensions;
using Foundatio.Extensions;
using Foundatio.Jobs;
using Foundatio.ServiceProviders;
namespace EventPostsJob {
public class Program {
public static int Main() {
AppDomain.CurrentDomain.SetDataDirectory();
... | using System;
using Exceptionless.Core;
using Exceptionless.Core.Extensions;
using Foundatio.Extensions;
using Foundatio.Jobs;
using Foundatio.ServiceProviders;
namespace EventPostsJob {
public class Program {
public static int Main() {
AppDomain.CurrentDomain.SetDataDirectory();
... | apache-2.0 | C# |
0b2d07a6a61590dc24587a3cde6dd63a0ce09387 | Allow strerror to work with either strerror_r signature | brett25/corefx,seanshpark/corefx,richlander/corefx,larsbj1988/corefx,scott156/corefx,dtrebbien/corefx,Petermarcu/corefx,lydonchandra/corefx,janhenke/corefx,shahid-pk/corefx,rubo/corefx,KrisLee/corefx,arronei/corefx,Priya91/corefx-1,vidhya-bv/corefx-sorting,SGuyGe/corefx,larsbj1988/corefx,dsplaisted/corefx,manu-silicon/... | src/Common/src/Interop/Unix/libc/Interop.strerror.cs | src/Common/src/Interop/Unix/libc/Interop.strerror.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Runtime.InteropServices;
using size_t = System.IntPtr;
internal static partial class Interop
{
internal static partial class libc
{... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Runtime.InteropServices;
using size_t = System.IntPtr;
internal static partial class Interop
{
internal static partial class libc
{... | mit | C# |
4d98e817ca208bd2919b5e4b835038f50f342a44 | Update EvolveConfigurationException base message | lecaillon/Evolve | src/Evolve/Exception/EvolveConfigurationException.cs | src/Evolve/Exception/EvolveConfigurationException.cs | using System;
namespace Evolve
{
public class EvolveConfigurationException : EvolveException
{
private const string EvolveConfigurationError = "Evolve configuration error: ";
public EvolveConfigurationException(string message) : base(EvolveConfigurationError + message) { }
public Evo... | using System;
namespace Evolve
{
public class EvolveConfigurationException : EvolveException
{
public EvolveConfigurationException(string message) : base(message) { }
public EvolveConfigurationException(string message, Exception innerException) : base(message, innerException) { }
}
}
| mit | C# |
0d5b9862fbee1192ebdbaba6ee88035766d40841 | Change model reference with old namespace to new | erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner | Oogstplanner.Web/Views/Crop/Index.cshtml | Oogstplanner.Web/Views/Crop/Index.cshtml | @model IEnumerable<Crop>
@{
ViewBag.Title = "Gewassen";
}
<div id="top"></div>
<div id="yearCalendar">
<h1>Dit zijn de gewassen in onze database:</h1>
<table class="table table-striped">
<tr>
<th>Naam</th><th>Ras</th><th>Categorie</th><th>Opp. per 1</th>
<th>Opp. per zak</th><th>Prijs per zakje</... | @model IEnumerable<Oogstplanner.Models.Crop>
@{
ViewBag.Title = "Gewassen";
}
<div id="top"></div>
<div id="yearCalendar">
<h1>Dit zijn de gewassen in onze database:</h1>
<table class="table table-striped">
<tr>
<th>Naam</th><th>Ras</th><th>Categorie</th><th>Opp. per 1</th>
<th>Opp. per zak</th><... | mit | C# |
7df76bd97b9ee632493a4a704e18f8715ee887eb | fix ImageSharpConverter to use ResizeMode.Pad | signumsoftware/framework,signumsoftware/framework | Signum.Engine.Extensions/Word/ImageSharpConverter.cs | Signum.Engine.Extensions/Word/ImageSharpConverter.cs | using DocumentFormat.OpenXml.Packaging;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.Processing;
using System.IO;
#pragma warning disable CA1416 // Validate platform compatibility
namespace Signum.Engine.Word;
public class ImageSharpConverter : IImageConverter<Im... | using DocumentFormat.OpenXml.Packaging;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.Processing;
using System.IO;
#pragma warning disable CA1416 // Validate platform compatibility
namespace Signum.Engine.Word;
public class ImageSharpConverter : IImageConverter<Im... | mit | C# |
47b03a524e4dc342cabf09795def2ad55e08a580 | fix #638 try to infer id of Document() if Object() is missing | TheFireCookie/elasticsearch-net,joehmchan/elasticsearch-net,azubanov/elasticsearch-net,LeoYao/elasticsearch-net,gayancc/elasticsearch-net,adam-mccoy/elasticsearch-net,LeoYao/elasticsearch-net,CSGOpenSource/elasticsearch-net,KodrAus/elasticsearch-net,Grastveit/NEST,tkirill/elasticsearch-net,adam-mccoy/elasticsearch-net,... | src/Tests/Nest.Tests.Integration/Core/UpdateTests.cs | src/Tests/Nest.Tests.Integration/Core/UpdateTests.cs | using NUnit.Framework;
using Nest.Tests.MockData.Domain;
namespace Nest.Tests.Integration.Core
{
[TestFixture]
public class UpdateIntegrationTests : IntegrationTests
{
[Test]
public void TestUpdate()
{
var project = this._client.Source<ElasticsearchProject>(s => s.Id(1));
Assert.NotNull(project);
As... | using NUnit.Framework;
using Nest.Tests.MockData.Domain;
namespace Nest.Tests.Integration.Core
{
[TestFixture]
public class UpdateIntegrationTests : IntegrationTests
{
[Test]
public void TestUpdate()
{
var project = this._client.Source<ElasticsearchProject>(s => s.Id(1));
Assert.NotNull(project);
As... | apache-2.0 | C# |
89e61f740b00fc8b86da52ed75e6edcb122cb84e | Fix last bug in parameters | christophwille/viennarealtime,christophwille/viennarealtime | Source/WienerLinien.Api/Routing/RoutingUrlBuilder.cs | Source/WienerLinien.Api/Routing/RoutingUrlBuilder.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WienerLinien.Api.Routing
{
public static class RoutingUrlBuilder
{
private const string BaseUrl = "http://www.wienerlinien.at/ogd_routing/XML_TRIP_REQ... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WienerLinien.Api.Routing
{
public static class RoutingUrlBuilder
{
private const string BaseUrl = "http://www.wienerlinien.at/ogd_routing/XML_TRIP_REQ... | mit | C# |
d0185a33bb126b305c15624b72504632f948b465 | fix welcome | vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf | src/backend/SO115App.Models/Classi/Condivise/Sede.cs | src/backend/SO115App.Models/Classi/Condivise/Sede.cs | //-----------------------------------------------------------------------
// <copyright file="Sede.cs" company="CNVVF">
// Copyright (C) 2017 - CNVVF
//
// This file is part of SOVVF.
// SOVVF is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// p... | //-----------------------------------------------------------------------
// <copyright file="Sede.cs" company="CNVVF">
// Copyright (C) 2017 - CNVVF
//
// This file is part of SOVVF.
// SOVVF is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// p... | agpl-3.0 | C# |
8cd283a6f9689135b0b63958286e28e350742ed1 | Fix crash in test app | glasseyes/libpalaso,glasseyes/libpalaso,hatton/libpalaso,sillsdev/libpalaso,JohnThomson/libpalaso,ermshiperete/libpalaso,ermshiperete/libpalaso,tombogle/libpalaso,glasseyes/libpalaso,mccarthyrb/libpalaso,JohnThomson/libpalaso,mccarthyrb/libpalaso,gtryus/libpalaso,andrew-polk/libpalaso,ddaspit/libpalaso,tombogle/libpala... | TestApps/TestAppKeyboard/KeyboardForm.cs | TestApps/TestAppKeyboard/KeyboardForm.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Palaso.UI.WindowsForms.Keyboarding;
using Palaso.UI.WindowsForms.Keyboarding.Interfaces;
using Palaso.WritingSystems;
namespace ... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Palaso.UI.WindowsForms.Keyboarding;
using Palaso.UI.WindowsForms.Keyboarding.Interfaces;
using Palaso.WritingSystems;
namespace ... | mit | C# |
a275612c9be5677994b5289dd78b81fb61ba25b0 | Fix sample | mrahhal/MR.AspNetCore.Jobs,mrahhal/MR.AspNetCore.Jobs | samples/Basic/Models/AppDbContext.cs | samples/Basic/Models/AppDbContext.cs | using Microsoft.EntityFrameworkCore;
namespace Basic.Models
{
public class AppDbContext : DbContext
{
public AppDbContext()
{
}
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
{
}
public DbSet<Blog> Blogs { get; set; }
}
}
| using Microsoft.EntityFrameworkCore;
namespace Basic.Models
{
public class AppDbContext : DbContext
{
public AppDbContext()
{
}
public AppDbContext(DbContextOptions options) : base(options)
{
}
public DbSet<Blog> Blogs { get; set; }
}
}
| mit | C# |
e8fa6b38bfa9b3f7dd94c891752b54a49677cbe4 | Update Program.cs | mattgwagner/Cash-Flow-Projection,mattgwagner/Cash-Flow-Projection,mattgwagner/Cash-Flow-Projection,mattgwagner/Cash-Flow-Projection | src/Cash-Flow-Projection/Program.cs | src/Cash-Flow-Projection/Program.cs | namespace Cash_Flow_Projection
{
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(str... | using Microsoft.AspNetCore.Hosting;
using System.IO;
namespace Cash_Flow_Projection
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.CaptureStartupErrors(true)
.UseKestrel()
.UseConten... | mit | C# |
db184bffc4eddddab6c854ceb1507ab6b0bcc582 | Update CommandOfT.cs | wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D/ViewModels/CommandOfT.cs | src/Core2D/ViewModels/CommandOfT.cs | #nullable enable
using System;
using System.Windows.Input;
namespace Core2D.ViewModels;
public class Command<T> : ICommand
{
private readonly Action<T?> _execute;
private readonly Func<T?, bool> _canExecute;
public event EventHandler? CanExecuteChanged;
public Command(Action<T?> execute, Func<T?, b... | #nullable enable
using System;
using System.Windows.Input;
namespace Core2D.ViewModels;
public class Command<T> : ICommand
{
private readonly Action<T?> _execute;
private readonly Func<T?, bool> _canExecute;
public event EventHandler? CanExecuteChanged;
public Command(Action<T?> execute, Func<T?, b... | mit | C# |
ec77ad096b82c3496004293191ad83bade1a3608 | Stop movement when swing triggered | Soulai/GlobalGameJam2017 | Assets/Scripts/Player/PlayerMovement.cs | Assets/Scripts/Player/PlayerMovement.cs | using UnityEngine;
namespace Player
{
public class PlayerMovement : MonoBehaviour
{
private Transform _transform;
private Rigidbody _rigidbody;
private Animator _animator;
private bool _swingInProgress;
public string AxisPrefix;
private void Start()
{
... | using UnityEngine;
namespace Player
{
public class PlayerMovement : MonoBehaviour
{
private Transform _transform;
private Rigidbody _rigidbody;
private Animator _animator;
public string AxisPrefix;
private void Start()
{
_transform = transform;
... | mit | C# |
eb1888dee11586f356bcea3e8b845497f08feccb | Update OrderHandlers.cs | SimonCropp/HandlerOrdering | src/HandlerOrdering/OrderHandlers.cs | src/HandlerOrdering/OrderHandlers.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using HandlerOrdering;
using NServiceBus;
class OrderHandlers :
INeedInitialization
{
public void Customize(EndpointConfiguration configuration)
{
if (configuration.GetApplyInterfaceHandlerOrdering())
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using HandlerOrdering;
using NServiceBus;
class OrderHandlers :
INeedInitialization
{
public void Customize(EndpointConfiguration configuration)
{
if (configuration.GetApplyInterfaceHandlerOrdering())
... | mit | C# |
b039eaa3c86bc0b407c1a1893655c9d53daa0239 | Fix bug: Clearing the cache says "All items have been cleared from the recent packages list." Work items: 986 | mdavid/nuget,mdavid/nuget | src/Options/GeneralOptionControl.cs | src/Options/GeneralOptionControl.cs | using System;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
using NuGet.VisualStudio;
namespace NuGet.Options {
public partial class GeneralOptionControl : UserControl {
private IRecentPackageRepository _recentPackageRepository;
private IProductUpdateSettings _p... | using System;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
using NuGet.VisualStudio;
namespace NuGet.Options {
public partial class GeneralOptionControl : UserControl {
private IRecentPackageRepository _recentPackageRepository;
private IProductUpdateSettings _p... | apache-2.0 | C# |
851a4702f21b96bc2d5f804cc8587b6077cb3dc8 | Fix the bug when validation can't verify custom ValidationAttribute | loyalchen/MYMCore | src/MYMCore/Behavioral/Validation.cs | src/MYMCore/Behavioral/Validation.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
namespace MYMCore.Behavioral {
public class Validation {
public static bool IsValidate<T>(T t, out List<ValidationResult> result) {
var content = new Va... | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
namespace MYMCore.Behavioral {
public class Validation {
public static bool IsValidate<T>(T t, out List<ValidationResult> result) {
var content = new Va... | mit | C# |
e90c6f59d01c22f742259227b0ff4d3bd8866f68 | remove another local test | mattgwagner/CertiPay.Common | CertiPay.Common.Tests/UtilitiesTests.cs | CertiPay.Common.Tests/UtilitiesTests.cs | using NUnit.Framework;
namespace CertiPay.Common.Tests
{
public class UtilitiesTests
{
[Test, Ignore("This doesn't work on AppVeyor since we patch the properties")]
public void ShouldMatchVersionOfCaller()
{
Assert.AreEqual("0.9.9.local", Utilities.Version<UtilitiesTests>()... | using NUnit.Framework;
namespace CertiPay.Common.Tests
{
public class UtilitiesTests
{
[Test]
public void ShouldMatchVersionOfCaller()
{
Assert.AreEqual("0.9.9.local", Utilities.Version<UtilitiesTests>());
}
}
} | mit | C# |
01a6dfb72bee935584f7e87951edd426b9cf2c7c | Add comments for Status enum values | pnmcosta/KInspector,petrsvihlik/KInspector,xpekatt/KInspector,KenticoBSoltis/KInspector,petrsvihlik/KInspector,anibalvelarde/KInspector,ChristopherJennings/KInspector,philipproplesch/KInspector,KenticoBSoltis/KInspector,philipproplesch/KInspector,xpekatt/KInspector,JosefDvorak/KInspector,TheEskhaton/KInspector,Christop... | KInspector.Core/Status.cs | KInspector.Core/Status.cs | namespace KInspector.Core
{
/// <summary>
/// Result's status flag
/// </summary>
public enum Status
{
/// <summary>
/// Used in cases when displaying general information.
/// </summary>
Info = 0,
/// <summary>
/// Indicates issues without any probl... | namespace KInspector.Core
{
/// <summary>
/// Result's status flag
/// </summary>
public enum Status
{
Info = 0,
Good = 1,
Warning = 2,
Error = 3
}
} | mit | C# |
9c947b42db9f93e51416b6e447e94a98c2b5fa3c | Remove disconnect | jenyayel/nespresso-dispenser,jenyayel/nespresso-dispenser | AzureFunctions/SlackCommandMQTT/run.csx | AzureFunctions/SlackCommandMQTT/run.csx | using System;
using System.Net;
using System.Net.Http.Headers;
using System.Text;
using System.Configuration;
using System.Threading;
using uPLibrary.Networking.M2Mqtt;
using uPLibrary.Networking.M2Mqtt.Messages;
private static readonly string[] _validCommands = new string[] { "1", "2", "3", "4", "5" };
public stati... | using System;
using System.Net;
using System.Net.Http.Headers;
using System.Text;
using System.Configuration;
using System.Threading;
using uPLibrary.Networking.M2Mqtt;
using uPLibrary.Networking.M2Mqtt.Messages;
private static readonly string[] _validCommands = new string[] { "1", "2", "3", "4", "5" };
public stati... | mit | C# |
e3afc4586d6cf3272e530dfdcb31e407c7ae118a | add death script and triggers | vankovilija/everyoneisafriend,vankovilija/everyoneisafriend,vankovilija/everyoneisafriend | Assets/Health.cs | Assets/Health.cs | using UnityEngine;
using System.Collections;
public class Health : MonoBehaviour {
void die() {
transform.position = GetComponent<PlayerControl> ().spawnPosition;
}
}
| using UnityEngine;
using System.Collections;
public class Health : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void die() {
transform.position = GetComponent<PlayerControl> ().spawnPosition;
}
}
| mit | C# |
b13dce89a0c8d51e4cf717d7c8f83aaef4d30071 | Update stamina counter every frame | harjup/Xyz | src/Xyz/Assets/Xyz/Scripts/Player.cs | src/Xyz/Assets/Xyz/Scripts/Player.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Assets.Scripts.Managers;
using Assets.Xyz.Scripts;
using TreeEditor;
public class Player : MonoBehaviour
{
private Move _move;
private ChaserContainer _chaserContainer;
private InputManager _inputManager;
private Stam... | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Assets.Scripts.Managers;
using Assets.Xyz.Scripts;
using TreeEditor;
public class Player : MonoBehaviour
{
private Move _move;
private ChaserContainer _chaserContainer;
private InputManager _inputManager;
private Stam... | mit | C# |
343f59ea82a22ab2d88e83f6b84cb4eec721934c | Add ICmpRenderer support | RockyTV/Duality.IronPython | CorePlugin/ScriptExecutor.cs | CorePlugin/ScriptExecutor.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Duality;
using RockyTV.Duality.Plugins.IronPython.Resources;
using IronPython.Hosting;
using IronPython.Runtime;
using IronPython.Compiler;
using Microsoft.Scripting;
using Microsoft.Scripting.Hosting;
using Duality.Editor;
using Duality.Drawi... | using System;
using System.Collections.Generic;
using System.Linq;
using Duality;
using RockyTV.Duality.Plugins.IronPython.Resources;
using IronPython.Hosting;
using IronPython.Runtime;
using IronPython.Compiler;
using Microsoft.Scripting;
using Microsoft.Scripting.Hosting;
using Duality.Editor;
namespace RockyTV.... | mit | C# |
ef3774caa26ffea96a3a39e5623b590c40b90fa5 | replace underscore with nbsp in card Text | HearthSim/HearthDb | HearthDb/Card.cs | HearthDb/Card.cs | #region
using System;
using System.Linq;
using HearthDb.CardDefs;
using HearthDb.Enums;
using static HearthDb.Enums.GameTag;
#endregion
namespace HearthDb
{
public class Card
{
internal Card(Entity entity)
{
Entity = entity;
}
public Entity Entity { get; }
public string Id => Entity.CardId;
publi... | #region
using System;
using System.Linq;
using HearthDb.CardDefs;
using HearthDb.Enums;
using static HearthDb.Enums.GameTag;
#endregion
namespace HearthDb
{
public class Card
{
internal Card(Entity entity)
{
Entity = entity;
}
public Entity Entity { get; }
public string Id => Entity.CardId;
publi... | mit | C# |
aafc0d4eacb9aee85377e5634d591d85ed62e656 | test suite: extract TestSuite interface and run ITestSuite from Build | stephenlautier/.netcore-labs | experimental/Slabs.Experimental.Console/TestSuite.cs | experimental/Slabs.Experimental.Console/TestSuite.cs | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Slabs.Experimental.ConsoleClient
{
public class TestSuiteBuilder
{
private readonly string _name;
private List<List<TestEntity>> TestGroups { get; }
private List<TestEntity> _currentParallelGroup;
public TestSuiteBuild... | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Slabs.Experimental.ConsoleClient
{
public class TestSuiteBuilder
{
private readonly string _name;
private List<List<TestEntity>> TestGroups { get; }
private List<TestEntity> _currentParallelGroup;
public TestSuiteBuild... | mit | C# |
a700ee1e883687ead370b1fa1ed7ce6fd032b058 | Update CurrentAngle on NVRInteractableRotator every frame This ensures that CurrentAngle remains up to date even if the object is rotated by some external force other than the user (e.g. a motor force, or updating the rotation in the editor during runtime for debugging). Previously the CurrentAngle would only be update... | DreamRealityInteractive/NewtonVR,noirb/NewtonVR,TomorrowTodayLabs/NewtonVR | Assets/NewtonVR/NVRInteractableRotator.cs | Assets/NewtonVR/NVRInteractableRotator.cs | using UnityEngine;
using System.Collections;
namespace NewtonVR
{
public class NVRInteractableRotator : NVRInteractable
{
public float CurrentAngle;
protected virtual float DeltaMagic { get { return 1f; } }
protected Transform InitialAttachPoint;
protected override void Awake... | using UnityEngine;
using System.Collections;
namespace NewtonVR
{
public class NVRInteractableRotator : NVRInteractable
{
public float CurrentAngle;
protected virtual float DeltaMagic { get { return 1f; } }
protected Transform InitialAttachPoint;
protected override void Awake... | mit | C# |
24211323e77994fdd4e286e23f340e3f40eb67c0 | Edite Aricle.cs Model. Added ImagePath property. | AleksandarKostadinov/Blog-Project-Soft-Tech,AleksandarKostadinov/Blog-Project-Soft-Tech | BlogProject/BlogProject/Models/Article.cs | BlogProject/BlogProject/Models/Article.cs | namespace BlogProject.Models
{
using System.ComponentModel.DataAnnotations;
public class Article
{
public int Id { get; set; }
[Required]
[StringLength(50)]
public string Title { get; set; }
[Required]
public string Content { get; set; }
public st... | namespace BlogProject.Models
{
using System.ComponentModel.DataAnnotations;
public class Article
{
public int Id { get; set; }
[Required]
[StringLength(50)]
public string Title { get; set; }
[Required]
public string Content { get; set; }
public st... | mit | C# |
234c48495b549d6b1e9ebb9bded7042181463ca9 | Fix the possibility of a NullReferenceException | GGG-KILLER/GUtils.NET | GUtils.MVVM/ViewModelBase.cs | GUtils.MVVM/ViewModelBase.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace GUtils.MVVM
{
/// <summary>
/// Implements a few utility functions for a ViewModel base
/// </summary>
public abstract class ViewModelBase : INotifyPropertyChanged
{
... | using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace GUtils.MVVM
{
/// <summary>
/// Implements a few utility functions for a ViewModel base
/// </summary>
public abstract class ViewModelBase : INotifyPropertyChanged
{
/// <inheritdoc/>
public... | mit | C# |
04dffc8e41c2138a4f7aef59961b89f7c79034a0 | Update Portal.cs | williambl/Haunt | Haunt/Assets/Scripts/Enviroment/Portal.cs | Haunt/Assets/Scripts/Enviroment/Portal.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Portal : MonoBehaviour {
/// <summary>
/// The level to go to.
/// </summary>
public int destination;
GameManager manager;
void Start ()
{
if(manager == null)
manager = GameObject.Find ("Manager").GetComponent<G... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Portal : MonoBehaviour {
/// <summary>
/// The level to go to.
/// </summary>
public int destination;
GameManager manager;
void Start ()
{
manager = GameObject.Find ("Manager").GetComponent<GameManager> ();
}
v... | mit | C# |
a16c786ba02ff7b0aa3b5219f5ab58c6ba3335c0 | extend BoxFileLock from BoxEntity, not from BoxItem | varungu/box-windows-sdk-v2,marek-vysoky/box-windows-sdk-v2,box/box-windows-sdk-v2,iLovebooks100per/box-windows-sdk-v2,JogyBlack/box-windows-sdk-v2 | Box.V2/Models/BoxFileLock.cs | Box.V2/Models/BoxFileLock.cs | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Box.V2.Models
{
/// <summary>
/// Box representation of a file
/// </summary>
public class BoxFileLock : BoxEntity
{
public const string FieldCreatedAt = "created_at";
... | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Box.V2.Models
{
/// <summary>
/// Box representation of a file
/// </summary>
public class BoxFileLock : BoxItem
{
public const string FieldExpiresAt = "expires_at";
... | apache-2.0 | C# |
5872a2a64be1c23eb5e81145f354b41cff495a03 | Use Name for lookup | AMDL/amdl2maml | amdl2maml/Converter/TopicData.cs | amdl2maml/Converter/TopicData.cs | using System;
namespace Amdl.Maml.Converter
{
/// <summary>
/// AMDL topic data.
/// </summary>
public class TopicData
{
///// <summary>
///// Creates a new instance of the <see cref="TopicData"/> class.
///// </summary>
///// <param name="id">Topic ID.</param>
... | using System;
namespace Amdl.Maml.Converter
{
/// <summary>
/// AMDL topic data.
/// </summary>
public class TopicData
{
/// <summary>
/// Creates a new instance of the <see cref="TopicData"/> class.
/// </summary>
/// <param name="id">Topic ID.</param>
publ... | apache-2.0 | C# |
3363e0b3d575c5a3fa433ce154e189383fd49d6d | Remove unused namespace | phaetto/serviceable-objects | Serviceable.Objects.Remote/Composition/Host/Commands/RunAndBlock.cs | Serviceable.Objects.Remote/Composition/Host/Commands/RunAndBlock.cs | namespace Serviceable.Objects.Remote.Composition.Host.Commands
{
public sealed class RunAndBlock : ICommand<ApplicationHost, ApplicationHost>
{
public ApplicationHost Execute(ApplicationHost context)
{
context.GraphContext.Configure();
context.GraphContext.Setup();
... | namespace Serviceable.Objects.Remote.Composition.Host.Commands
{
using System;
public sealed class RunAndBlock : ICommand<ApplicationHost, ApplicationHost>
{
public ApplicationHost Execute(ApplicationHost context)
{
context.GraphContext.Configure();
context.GraphCon... | mit | C# |
cac776956bc30991c8f5b39db12e7ad638a35d65 | Hide sensitive data when configured | thinktecture/relayserver,thinktecture/relayserver,thinktecture/relayserver | Thinktecture.Relay.Server/Communication/RabbitMq/RabbitMqFactory.cs | Thinktecture.Relay.Server/Communication/RabbitMq/RabbitMqFactory.cs | using System;
using System.Configuration;
using RabbitMQ.Client;
using Serilog;
using Thinktecture.Relay.Server.Config;
namespace Thinktecture.Relay.Server.Communication.RabbitMq
{
internal class RabbitMqFactory : IRabbitMqFactory
{
private readonly IConnectionFactory _factory;
private readonly IConfiguration _c... | using System;
using System.Configuration;
using RabbitMQ.Client;
using Serilog;
using Thinktecture.Relay.Server.Config;
namespace Thinktecture.Relay.Server.Communication.RabbitMq
{
internal class RabbitMqFactory : IRabbitMqFactory
{
private readonly IConnectionFactory _factory;
private readonly IConfiguration _c... | bsd-3-clause | C# |
c053cace42e75db74c17258cdfcee99b25f56457 | comment interface for now | rtfpessoa/padi-dstm | Client/Program.cs | Client/Program.cs | using CommonTypes;
using System;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
using System.Windows.Forms;
namespace Client
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThr... | using CommonTypes;
using System;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
using System.Windows.Forms;
namespace Client
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThr... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.