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 |
|---|---|---|---|---|---|---|---|---|
954fe6eaaaa9851246569db7a7e818b2fc3cf597 | Correct filtering | dlidstrom/Snittlistan,dlidstrom/Snittlistan,dlidstrom/Snittlistan | Snittlistan.Web/Areas/V2/DocumentSessionExtensions.cs | Snittlistan.Web/Areas/V2/DocumentSessionExtensions.cs | using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using Raven.Abstractions;
using Raven.Client;
using Snittlistan.Web.Areas.V2.Domain;
using Snittlistan.Web.Areas.V2.Indexes;
namespace Snittlistan.Web.Areas.V2
{
public static class DocumentSessionExtensions
{
publi... | using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using Raven.Client;
using Snittlistan.Web.Areas.V2.Indexes;
namespace Snittlistan.Web.Areas.V2
{
public static class DocumentSessionExtensions
{
public static List<SelectListItem> CreateRosterSelectList(this IDocument... | mit | C# |
6f66407a1e3041774f7324b8106cb801bf5489c1 | Bump assembly version | kjac/FormEditor,kjac/FormEditor,kjac/FormEditor | Source/Solution/FormEditor/Properties/AssemblyInfo.cs | Source/Solution/FormEditor/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("Fo... | 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("Fo... | mit | C# |
9a2293ce3ef0a8fc20f6c7f52171e292b500b18b | Remove empty navigation list in anydiff module (invalid HTML). | netjunki/trac-Pygit2,walty8/trac,jun66j5/trac-ja,walty8/trac,netjunki/trac-Pygit2,netjunki/trac-Pygit2,walty8/trac,jun66j5/trac-ja,jun66j5/trac-ja,walty8/trac,jun66j5/trac-ja | templates/anydiff.cs | templates/anydiff.cs | <?cs include "header.cs"?>
<div id="ctxtnav" class="nav"></div>
<div id="content" class="changeset">
<div id="title">
<h1>Select Base and Target for Diff:</h1>
</div>
<div id="anydiff">
<form action="<?cs var:anydiff.changeset_href ?>" method="get">
<table>
<tr>
<th><label for="old_path">From:</... | <?cs include "header.cs"?>
<div id="ctxtnav" class="nav">
<h2>Navigation</h2><?cs
with:links = chrome.links ?>
<ul>
</ul><?cs
/with ?>
</div>
<div id="content" class="changeset">
<div id="title">
<h1>Select Base and Target for Diff:</h1>
</div>
<div id="anydiff">
<form action="<?cs var:anydiff.change... | bsd-3-clause | C# |
7693e9ac0b4cf12ab1f2083b17ebca502841a770 | Kill hard tabs | NatalieWolfe/BaseBuilder | Assets/Scripts/Managers/UnionManager.cs | Assets/Scripts/Managers/UnionManager.cs | using UnityEngine;
using System.Collections;
public class UnionManager : MonoBehaviour {
public static UnionManager instance;
public GameObject workerPrefab;
void Start () {
if (instance != null && instance != this) {
Destroy(this);
return;
}
instance = th... | using UnityEngine;
using System.Collections;
public class UnionManager : MonoBehaviour {
public static UnionManager instance;
public GameObject workerPrefab;
void Start () {
if (instance != null && instance != this) {
Destroy(this);
return;
}
instance = this;... | mit | C# |
35147f6309f0aa6e5895fb69e47df039c4766bcc | Update ILineDisassembler.cs | informedcitizenry/6502.Net | 6502.Net/ILineDisassembler.cs | 6502.Net/ILineDisassembler.cs | //-----------------------------------------------------------------------------
// Copyright (c) 2017 Nate Burnett <informedcitizenry@gmail.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal i... | //-----------------------------------------------------------------------------
// Copyright (c) 2017 Nate Burnett <informedcitizenry@gmail.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal i... | mit | C# |
a2056273b4478cbe33306c7121b323afff92b382 | Add constructor for CyclesLight. | mcneel/RhinoCycles | CyclesLight.cs | CyclesLight.cs | /**
Copyright 2014-2017 Robert McNeel and Associates
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 in w... | /**
Copyright 2014-2017 Robert McNeel and Associates
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 in w... | apache-2.0 | C# |
b584769fff83ca37fb9292cbfff0097b258f473e | test SerializeNetworkView | brosnandevera/Unity-Local-Network-Client-Finder | Assets/CubeMover.cs | Assets/CubeMover.cs | using UnityEngine;
using System.Collections;
public class CubeMover : MonoBehaviour {
// Use this for initialization
public int testVal = 0;
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetKey(KeyCode.A))
{
Debug.Log("Move Left");
... | using UnityEngine;
using System.Collections;
public class CubeMover : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetKey(KeyCode.A))
{
Debug.Log("Move Left");
transform.position = new V... | mit | C# |
aa88434e8d2ae260024cc7bee550ce67a3366e5a | Update unit test | arkivverket/arkade5,arkivverket/arkade5,arkivverket/arkade5 | src/Arkivverket.Arkade.Test/Core/Addml/Processes/ControlNotNullTest.cs | src/Arkivverket.Arkade.Test/Core/Addml/Processes/ControlNotNullTest.cs | using System.Collections.Generic;
using Arkivverket.Arkade.Core;
using Arkivverket.Arkade.Core.Addml;
using Arkivverket.Arkade.Core.Addml.Definitions;
using Arkivverket.Arkade.Core.Addml.Definitions.DataTypes;
using Arkivverket.Arkade.Core.Addml.Processes;
using Arkivverket.Arkade.Test.Core.Addml.Builders;
using Fluen... | using System.Collections.Generic;
using Arkivverket.Arkade.Core;
using Arkivverket.Arkade.Core.Addml;
using Arkivverket.Arkade.Core.Addml.Definitions;
using Arkivverket.Arkade.Core.Addml.Definitions.DataTypes;
using Arkivverket.Arkade.Core.Addml.Processes;
using Arkivverket.Arkade.Test.Core.Addml.Builders;
using Fluen... | agpl-3.0 | C# |
acfacdd029139c2ea638b007276faffe3a781b1b | Fix running link | gep13/gep13,gep13/gep13,gep13/gep13,gep13/gep13 | input/about.cshtml | input/about.cshtml | Title: About
Image: images/water.jpg
---
<p>My name is Gary Ewan Park and I work as a Senior Software Systems Engineer up here in Aberdeen. If you want to get in touch with me, there are a number of social networking sites linked on the left hand side of this site, as well as a <a href="http://www.gep13.co.uk/contact... | Title: About
Image: images/water.jpg
---
<p>My name is Gary Ewan Park and I work as a Senior Software Systems Engineer up here in Aberdeen. If you want to get in touch with me, there are a number of social networking sites linked on the left hand side of this site, as well as a <a href="http://www.gep13.co.uk/contact... | mit | C# |
9b547cfde0f546df8abeebf47ec36f36d7bd91ef | Bump version to 1.6.1.0 after fixing #18 | logonmy/inotify-win,McBen/inotify-win | src/AssemblyInfo.cs | src/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("https://github.com/thekid/inotify-win")]
[assembly: AssemblyDescription("A port of the inotifywait tool for Windows")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Timm F... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("https://github.com/thekid/inotify-win")]
[assembly: AssemblyDescription("A port of the inotifywait tool for Windows")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Timm F... | bsd-3-clause | C# |
b43857a149128b11f73b0a72a26497468592fe66 | Remove not used using statements | mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,zanetdev/Glimpse.Pr... | src/Glimpse.Agent.Connection.Http/Broker/RemoteHttpMessagePublisher.cs | src/Glimpse.Agent.Connection.Http/Broker/RemoteHttpMessagePublisher.cs | using System;
using System.Net.Http;
namespace Glimpse.Agent
{
public class RemoteHttpMessagePublisher : IMessagePublisher, IDisposable
{
private readonly HttpClient _httpClient;
private readonly HttpClientHandler _httpHandler;
public RemoteHttpMessagePublisher()
{
... | using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace Glimpse.Agent
{
public class RemoteHttpMessagePublisher : IMessagePublisher, IDisposable
{
private readonly HttpClient _httpClient;
private readonly HttpClientHandler _httpHandler;
... | mit | C# |
32b1caae5e96035b7adf480cfe02eb8cc2a458b7 | Fix build | CatenaLogic/RepositoryCleaner | src/RepositoryCleaner/Services/Extensions/ICleanerServiceExtensions.cs | src/RepositoryCleaner/Services/Extensions/ICleanerServiceExtensions.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ICleanerServiceExtensions.cs" company="CatenaLogic">
// Copyright (c) 2014 - 2015 CatenaLogic. All rights reserved.
// </copyright>
// ------------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ICleanerServiceExtensions.cs" company="CatenaLogic">
// Copyright (c) 2014 - 2015 CatenaLogic. All rights reserved.
// </copyright>
// ------------------------------------------... | mit | C# |
2f65ccc297d1da12109ce2e6a85da3a9e673c3f3 | Update PetEnPlugin.cs | krbysh/FFXIV-ACT-OverlayPlugin-Plugins | PetEnPlugin.cs | PetEnPlugin.cs | using Advanced_Combat_Tracker;
using System;
using System.Reflection;
using System.Text;
using System.Windows.Forms;
// Advanced Combat Tracker - mini parse window用Plugin
// NameEn: 日本語クライアント利用時に、キャラクター名(ペット含む)を英語で出力
[assembly: AssemblyTitle("Mini Parse Pets' Name in English")]
[assembly: AssemblyVersion("1.0.0.0")]
n... | using Advanced_Combat_Tracker;
using System;
using System.Reflection;
using System.Text;
using System.Windows.Forms;
// Advanced Combat Tracker - mini parse window用Plugin
// NameEn: 日本語クライアント利用時に、キャラクター名(ペット含む)を英語で出力
[assembly: AssemblyTitle("Mini Parse Pets' Name in English")]
[assembly: AssemblyVersion("1.0.0.0")]
n... | mit | C# |
615500bf9ad9d021b6f4e0ce8f4c2bc5ce400a65 | change the title of the main index page | wimplash/GenscapeHackathon-2015,wimplash/GenscapeHackathon-2015,wimplash/GenscapeHackathon-2015,wimplash/GenscapeHackathon-2015,wimplash/GenscapeHackathon-2015 | java-janitor/JavaJanitor/Views/Home/Index.cshtml | java-janitor/JavaJanitor/Views/Home/Index.cshtml | <div class="jumbotron">
<h1>WHERE'S THE JOE!?</h1>
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS, and JavaScript.</p>
<p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more »</a></p>
</div>
<div class="row">
... | <div class="jumbotron">
<h1>ASP.NET</h1>
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS, and JavaScript.</p>
<p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more »</a></p>
</div>
<div class="row">
<div class... | mit | C# |
dee3636469cb2c74b534a855ab798f6d20b7b0c7 | Add CaseInsensitiveType (None, lower, UPPER) | KvanTTT/DAGE,KvanTTT/DAGE,KvanTTT/DAGE,KvanTTT/DAGE,KvanTTT/DAGE,KvanTTT/DAGE,KvanTTT/DAGE | AntlrGrammarEditor/Grammar.cs | AntlrGrammarEditor/Grammar.cs | using System.Collections.Generic;
namespace AntlrGrammarEditor
{
public enum CaseInsensitiveType
{
None,
lower,
UPPER
}
public class Grammar
{
public const string AntlrDotExt = ".g4";
public const string LexerPostfix = "Lexer";
public const string P... | using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Collections.Generic;
using System.IO;
namespace AntlrGrammarEditor
{
public class Grammar
{
public const string AntlrDotExt = ".g4";
public const string ProjectDotExt = ".age";
public const string LexerPostfix = "Lex... | apache-2.0 | C# |
e2971ff9dab67d0b1bf24b498476bf5f7b15080b | work with the as documented 'COVERALLS_PARALLEL' ARG | csMACnz/coveralls.net | src/csmacnz.Coveralls/CoverageMetadataResolver.cs | src/csmacnz.Coveralls/CoverageMetadataResolver.cs | using System;
using System.Collections.Generic;
using System.Linq;
using BCLExtensions;
using Beefeater;
using csmacnz.Coveralls.Adapters;
using csmacnz.Coveralls.MetaDataResolvers;
using csmacnz.Coveralls.Ports;
namespace csmacnz.Coveralls
{
public static class CoverageMetadataResolver
{
public stati... | using System;
using System.Collections.Generic;
using System.Linq;
using BCLExtensions;
using Beefeater;
using csmacnz.Coveralls.Adapters;
using csmacnz.Coveralls.MetaDataResolvers;
using csmacnz.Coveralls.Ports;
namespace csmacnz.Coveralls
{
public static class CoverageMetadataResolver
{
public stati... | mit | C# |
bed4efc295198e08e5e992bef278e02369bf30d1 | Allow more of the word for the reader count, as the writer count will always be v small | peterchase/parallel-workshop | ParallelWorkshop/Ex08DiyReaderWriterLock/PossibleSolution/InterlockedReaderWriterLock.cs | ParallelWorkshop/Ex08DiyReaderWriterLock/PossibleSolution/InterlockedReaderWriterLock.cs | using System.Threading;
namespace Lurchsoft.ParallelWorkshop.Ex08DiyReaderWriterLock.PossibleSolution
{
/// <summary>
/// A scary low-level reader-writer lock implementation.
/// <para>
/// This one does not block, though it does yield. It will spin the CPU until the lock is available. However, by doi... | using System;
using System.Threading;
namespace Lurchsoft.ParallelWorkshop.Ex08DiyReaderWriterLock.PossibleSolution
{
/// <summary>
/// A scary low-level reader-writer lock implementation.
/// <para>
/// This one does not block, though it does yield. It will spin the CPU until the lock is available. H... | apache-2.0 | C# |
ce45ee726d998e11c41300a5e4bad74e4a633800 | Make input tablet start states be set right | knexer/Chinese-Rooms-what-do-they-know-do-they-know-things-lets-find-out | Assets/Scripts/UI/TabletUI.cs | Assets/Scripts/UI/TabletUI.cs | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
[RequireComponent(typeof(GridLayoutGroup))]
public class TabletUI : MonoBehaviour, ITablet
{
public ITabletCell TopLeft { get { return topLeft; } set { topLeft.... | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
[RequireComponent(typeof(GridLayoutGroup))]
public class TabletUI : MonoBehaviour, ITablet
{
public ITabletCell TopLeft { get { return topLeft; } set { topLeft.... | mit | C# |
6c76fdf9d2d937b176fbfae6f8cea5b841f73362 | increment patch version, | jwChung/Experimentalism,jwChung/Experimentalism | build/CommonAssemblyInfo.cs | build/CommonAssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Jin-Wook Chung")]
[assembly: AssemblyCopyright("Copyright (c) 2014, Jin-Wook Chung")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: Co... | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Jin-Wook Chung")]
[assembly: AssemblyCopyright("Copyright (c) 2014, Jin-Wook Chung")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: Co... | mit | C# |
460e749ede7f1d3b213d94e453d62e1d109d5116 | Add SesReceipt.DmarcPolicy | carbon/Amazon | src/Amazon.Ses/Notifications/SesReceipt.cs | src/Amazon.Ses/Notifications/SesReceipt.cs | using System;
using System.Text.Json.Serialization;
namespace Amazon.Ses;
public sealed class SesReceipt
{
[JsonPropertyName("timestamp")]
public DateTime Timestamp { get; init; }
[JsonPropertyName("processingTimeMillis")]
public long ProcessingTimeMillis { get; init; }
/// <summary>
/// no... | #nullable disable
using System;
using System.Text.Json.Serialization;
namespace Amazon.Ses;
public sealed class SesReceipt
{
[JsonPropertyName("timestamp")]
public DateTime Timestamp { get; init; }
[JsonPropertyName("processingTimeMillis")]
public long ProcessingTimeMillis { get; init; }
[Json... | mit | C# |
e270e739fe24eacb1b9f28a966411be8ab839637 | Test creation branche DevJB | jbblois/Sucradom,jbblois/Sucradom,jbblois/Sucradom,jbblois/Sucradom | Sucradom/Program.cs | Sucradom/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sucradom
{
class Program
{
static void Main(string[] args)
{
//Coucou
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sucradom
{
class Program
{
static void Main(string[] args)
{
}
}
}
| apache-2.0 | C# |
21f4d4af2e169da98314cd5384ea18c755478da3 | Build fix. | wojtpl2/ExtendedXmlSerializer,wojtpl2/ExtendedXmlSerializer,Mike-EEE/ExtendedXmlSerializer,Mike-EEE/ExtendedXmlSerializer | src/ExtendedXmlSerializer/Cache/Getters.cs | src/ExtendedXmlSerializer/Cache/Getters.cs | // MIT License
//
// Copyright (c) 2016 Wojciech Nagórski
//
// 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 License
//
// Copyright (c) 2016 Wojciech Nagórski
//
// 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# |
051422d2c59d391a10843d26bc9a08b39c0236fb | Add basic mapping functionality of log consumers | atata-framework/atata-configuration-json | src/Atata.Configuration.Json/JsonConfigMapper.cs | src/Atata.Configuration.Json/JsonConfigMapper.cs | using System;
namespace Atata
{
public static class JsonConfigMapper
{
public static AtataContextBuilder Map<TConfig>(TConfig config, AtataContextBuilder builder)
where TConfig : JsonConfig<TConfig>
{
if (config.BaseUrl != null)
builder.UseBaseUrl(config... | using System;
namespace Atata
{
public static class JsonConfigMapper
{
public static AtataContextBuilder Map<TConfig>(TConfig config, AtataContextBuilder builder)
where TConfig : JsonConfig<TConfig>
{
if (config.BaseUrl != null)
builder.UseBaseUrl(config... | apache-2.0 | C# |
cc1cf5e268b1914fd358979c0b68a195460d0b03 | Set current culture in shared entrypoint. | space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content | Content.Shared/EntryPoint.cs | Content.Shared/EntryPoint.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using Content.Shared.Maps;
using Robust.Shared.ContentPack;
using Robust.Shared.Interfaces.Map;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Robust.Shared.Prototypes;
namespace Content.Shared
{
public class E... | using System;
using System.Collections.Generic;
using Content.Shared.Maps;
using Robust.Shared.ContentPack;
using Robust.Shared.Interfaces.Map;
using Robust.Shared.IoC;
using Robust.Shared.Prototypes;
namespace Content.Shared
{
public class EntryPoint : GameShared
{
#pragma warning disable 649
... | mit | C# |
b884ed2a3d8b8fd50412134a3f162a84c1c29417 | Make test actually test drum behaviours | peppy/osu,peppy/osu,ppy/osu,peppy/osu,ppy/osu,ppy/osu | osu.Game.Rulesets.Taiko.Tests/TestSceneDrumTouchInputArea.cs | osu.Game.Rulesets.Taiko.Tests/TestSceneDrumTouchInputArea.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Testing;
using osu.Game.Rulesets.Taiko.UI;
using osu.Game.Tests.... | // 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 NUnit.Framework;
using osu.Framework.Allocation;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Taiko.Objects;
using osu.Game.R... | mit | C# |
449a60f3b217ee07ddb8fb8177eff6e9589d15c0 | Update Class1.cs | j2ghz/IntranetGJAK,j2ghz/IntranetGJAK | UnitTests/Class1.cs | UnitTests/Class1.cs | using IntranetGJAK.Controllers;
using Xunit;
namespace UnitTests
{
// This project can output the Class library as a NuGet Package.
// To enable this option, right-click on the project and select the Properties menu item. In the Build tab select "Produce outputs on build".
public class Home
{
... | using IntranetGJAK.Controllers;
using Xunit;
namespace UnitTests
{
// This project can output the Class library as a NuGet Package.
// To enable this option, right-click on the project and select the Properties menu item. In the Build tab select "Produce outputs on build".
public class Home
{
... | agpl-3.0 | C# |
d8ba7dec4a293234abdd180ab06f4c1c096b6bdb | make table striped | j2ghz/IntranetGJAK,j2ghz/IntranetGJAK | IntranetGJAK/Views/Home/Index.cshtml | IntranetGJAK/Views/Home/Index.cshtml | @using IntranetGJAK.Tools
@model IEnumerable<IntranetGJAK.Models.File>
@{
ViewData["Title"] = "Seznam soubor";
}
<table class="table table-striped table-hover">
<tr>
<th>
@Html.DisplayNameFor(model => model.Name)
</th>
<th>
@Html.DisplayNameFor(model => model.Si... | @using IntranetGJAK.Tools
@model IEnumerable<IntranetGJAK.Models.File>
@{
ViewData["Title"] = "Seznam soubor";
}
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.Name)
</th>
<th>
@Html.DisplayNameFor(model => model.Size)
</th>
... | agpl-3.0 | C# |
a317cfcfbea676ca56bb06c7e498e48ddc57925c | Make Error property of MastodonApiException read-only. | pawotter/mastodon-api-cs | Mastodon.API/MastodonApiException.cs | Mastodon.API/MastodonApiException.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
namespace Mastodon.API
{
/// <summary>
/// This exception indicates an error code from the MastodonAPI (i.e., 400, 404, 500, etc).
/// It is up to the caller to catch these... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
namespace Mastodon.API
{
/// <summary>
/// This exception indicates an error code from the MastodonAPI (i.e., 400, 404, 500, etc).
/// It is up to the caller to catch these... | mit | C# |
c49aa8dc72e7b6d43de8c04fc71962dd7aa55581 | Update Constants.cs | peejster/DormRoomMonitor | DormRoomMonitor/Constants.cs | DormRoomMonitor/Constants.cs | namespace DormRoomMonitor
{
/// <summary>
/// General constant variables
/// </summary>
public static class GeneralConstants
{
// With no GPU support, the Raspberry Pi cannot display the live camera feed so this variable should be set to true.
// However, if you are deploying to oth... | namespace DormRoomMonitor
{
/// <summary>
/// General constant variables
/// </summary>
public static class GeneralConstants
{
// With no GPU support, the Raspberry Pi cannot display the live camera feed so this variable should be set to true.
// However, if you are deploying to oth... | mit | C# |
a04f18db4f6a3aedd8ef91a6098a7997b6e9e0eb | Use the token authenticator. | chunkychode/octokit.net,ivandrofly/octokit.net,gdziadkiewicz/octokit.net,dlsteuer/octokit.net,khellang/octokit.net,fffej/octokit.net,dampir/octokit.net,nsnnnnrn/octokit.net,shiftkey-tester/octokit.net,octokit-net-test/octokit.net,devkhan/octokit.net,hahmed/octokit.net,SamTheDev/octokit.net,michaKFromParis/octokit.net,a... | Octokit/Authentication/Authenticator.cs | Octokit/Authentication/Authenticator.cs | using System.Collections.Generic;
using System.Threading.Tasks;
namespace Octokit.Internal
{
class Authenticator
{
readonly Dictionary<AuthenticationType, IAuthenticationHandler> authenticators =
new Dictionary<AuthenticationType, IAuthenticationHandler>
{
{ Aut... | using System.Collections.Generic;
using System.Threading.Tasks;
namespace Octokit.Internal
{
class Authenticator
{
readonly Dictionary<AuthenticationType, IAuthenticationHandler> authenticators =
new Dictionary<AuthenticationType, IAuthenticationHandler>
{
{ Aut... | mit | C# |
fcf0f92a87be00d5a2df8271747324342fb560b3 | Fix BundleTable | Arionildo/Quiz-CWI,Arionildo/Quiz-CWI,Arionildo/Quiz-CWI | Quiz/Quiz.Web/App_Start/BundleConfig.cs | Quiz/Quiz.Web/App_Start/BundleConfig.cs | using System.Web;
using System.Web.Optimization;
namespace Quiz.Web
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBu... | using System.Web;
using System.Web.Optimization;
namespace Quiz.Web
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBu... | mit | C# |
46e2e50aefe5ef5c32908919eeaa5ec0e020e0eb | split up ValueData data | EricZimmerman/RegistryPlugins | RegistryPlugin.ProfileList/ValuesOut.cs | RegistryPlugin.ProfileList/ValuesOut.cs | using System;
using RegistryPluginBase.Interfaces;
namespace RegistryPlugin.ProfileList
{
public class ValuesOut : IValueOut
{
public ValuesOut(string keyName, string profileimagepath, DateTimeOffset? timestamp)
{
KeyName = keyName;
ProfileImagePath = profileimagepath;
... | using System;
using RegistryPluginBase.Interfaces;
namespace RegistryPlugin.ProfileList
{
public class ValuesOut : IValueOut
{
public ValuesOut(string keyName, string profileimagepath, DateTimeOffset? timestamp)
{
KeyName = keyName;
ProfileImagePath = profileimagepath;
... | mit | C# |
a405c2087ba68f5d2cf1a694926c7c803b0966ed | Implement Size() method | MSayfullin/Basics | Basics.Structures/DynamicConnectivity/UnionFind.cs | Basics.Structures/DynamicConnectivity/UnionFind.cs | using System;
namespace Basics.Structures.DynamicConnectivity
{
public abstract class UnionFind
{
protected int[] elements;
public UnionFind(int size)
{
elements = new int[size];
for (int i = 0; i < size; i++)
{
elements[i] = i;
... | using System;
namespace Basics.Structures.DynamicConnectivity
{
public abstract class UnionFind
{
protected int[] elements;
public UnionFind(int size)
{
elements = new int[size];
for (int i = 0; i < size; i++)
{
elements[i] = i;
... | mit | C# |
1cf28524c59408e268e36ff74934597434349eeb | Fix bug where running a project without export in a directory with a space was confusing the command line arg generator. | blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon | Compiler/Crayon/Workers/RunCbxFlagBuilderWorker.cs | Compiler/Crayon/Workers/RunCbxFlagBuilderWorker.cs | using Common;
using Exporter;
using System.Linq;
namespace Crayon
{
// cmdLineFlags = Crayon::RunCbxFlagBuilder(command, buildContext)
class RunCbxFlagBuilderWorker : AbstractCrayonWorker
{
public override CrayonWorkerResult DoWorkImpl(CrayonWorkerResult[] args)
{
Ex... | using Common;
using Exporter;
using System.Linq;
namespace Crayon
{
// cmdLineFlags = Crayon::RunCbxFlagBuilder(command, buildContext)
class RunCbxFlagBuilderWorker : AbstractCrayonWorker
{
public override CrayonWorkerResult DoWorkImpl(CrayonWorkerResult[] args)
{
Ex... | mit | C# |
117c0dace307fb2ba3ee03d6697bf729b6c6fa56 | refactor and docker compose | threenine/swcApi,threenine/swcApi,threenine/swcApi | src/Api.Database/ApiContextFactory.cs | src/Api.Database/ApiContextFactory.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.EntityFrameworkCore.Infrastructure;
namespace Api.Database
{
public class ApiContextFactory : IDesignTimeDbContextFactory<Ap... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.EntityFrameworkCore.Infrastructure;
namespace Api.Database
{
public class ApiContextFactory : IDesignTimeDbContextFactory<Ap... | apache-2.0 | C# |
8625831b7d6300336b233829ae93214cee8fcd42 | fix invalid XML character | tainicom/Aether | Source/Elementary/Leptons/ILepton.cs | Source/Elementary/Leptons/ILepton.cs | #region License
// Copyright 2015 Kastellanos Nikolaos
//
// 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 requi... | #region License
// Copyright 2015 Kastellanos Nikolaos
//
// 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 requi... | apache-2.0 | C# |
d602877a423748b7daf7450f841cff91e6473a2a | Remove test websocket code from WF implementation | HelloKitty/317refactor | src/Client/Rs317.Client.WF/Program.cs | src/Client/Rs317.Client.WF/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Rs317.Sharp
{
public static class Program
{
public static async Task Main(string[] args)
{
try
{
Console.WriteLine($"RS2 user clie... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Rs317.Sharp
{
public static class Program
{
public static async Task Main(string[] args)
{
try
{
Console.WriteLine($"RS2 user clie... | mit | C# |
9d9f6372f64f0e83db08931864b9dbeca3bd04d9 | Remove unneeded comments | Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Prototype,zanetdev/Glimpse.Prototype,pranavkm/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewic... | src/Glimpse.Common/GlimpseServices.cs | src/Glimpse.Common/GlimpseServices.cs | using Glimpse;
using Microsoft.Framework.ConfigurationModel;
using Microsoft.Framework.DependencyInjection;
using System.Collections.Generic;
namespace Glimpse
{
public class GlimpseServices
{
public static IEnumerable<IServiceDescriptor> GetDefaultServices()
{
return GetDefaultSer... | using Glimpse;
using Microsoft.Framework.ConfigurationModel;
using Microsoft.Framework.DependencyInjection;
using System.Collections.Generic;
namespace Glimpse
{
public class GlimpseServices
{
public static IEnumerable<IServiceDescriptor> GetDefaultServices()
{
return GetDefaultSer... | mit | C# |
c1a74bb8e5cbd6e43456720e44ed3c323261cee7 | Fix to apply for the library updates. | cube-soft/Cube.Core,cube-soft/Cube.Core,cube-soft/Cube.FileSystem,cube-soft/Cube.FileSystem | Tests/Sources/Details/GlobalSetup.cs | Tests/Sources/Details/GlobalSetup.cs | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.... | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.... | apache-2.0 | C# |
464ad2b3378bf4ddf29c51d1074954e05b1492cd | Work on ActionController | Maree2/jam,Maree2/jam | JamProject/Assets/Core/Scripts/ActionController.cs | JamProject/Assets/Core/Scripts/ActionController.cs | using UnityEngine;
using System.Collections;
public class ActionController : MonoBehaviour
{
public void Start()
{
}
public void Update()
{
}
public void Awake()
{
}
}
| using UnityEngine;
using System.Collections;
public class ActionController : MonoBehaviour
{
// Awake is called when the script instance is being loaded (Since v1.0)
public void Awake()
{
}
// OnBecameVisible is called when the renderer became visible by any camera (Since v1.0)
public void... | mit | C# |
ad5fbe9dfb5e3b08212641e3b8341b3a2fde772b | Remove test of no longer existing method CompileApi. | FloodProject/flood,FloodProject/flood,FloodProject/flood | src/Tools/RPCGen.Tests/RPCGenTests.cs | src/Tools/RPCGen.Tests/RPCGenTests.cs | using Flood.Tools.RPCGen;
using NUnit.Framework;
using System;
using System.IO;
using System.Reflection;
namespace RPCGen.Tests
{
[TestFixture]
class RPCGenTests
{
[Test]
public void MainTest()
{
string genDirectory = Path.Combine("..", "..", "gen", "RPCGen.Tests");
... | using Flood.Tools.RPCGen;
using NUnit.Framework;
using System;
using System.IO;
using System.Reflection;
namespace RPCGen.Tests
{
[TestFixture]
class RPCGenTests
{
[Test]
public void MainTest()
{
string genDirectory = Path.Combine("..", "..", "gen", "RPCGen.Tests");
... | bsd-2-clause | C# |
145eed38c992df9c6e046f708939bd9f03ac0ff5 | move to 3.9.9.5 | MutonUfoAI/pgina,MutonUfoAI/pgina,MutonUfoAI/pgina | Plugins/SSHAuth/SSHAuth/Properties/AssemblyInfo.cs | Plugins/SSHAuth/SSHAuth/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("SSH... | 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("SSH... | bsd-3-clause | C# |
c05584f864d0738bef5d771b267b9e4a66431b93 | Change usage of connection provider for connection factory. | Saaka/WordHunt,Saaka/WordHunt,Saaka/WordHunt,Saaka/WordHunt | WordHunt/Games/Create/Repository/GameRepository.cs | WordHunt/Games/Create/Repository/GameRepository.cs | using Dapper;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using WordHunt.Data.Connection;
namespace WordHunt.Games.Create.Repository
{
public interface IGameRepository
{
void SaveGame(string name);
}
public class GameRepository : IGameRepository
{... | using Dapper;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using WordHunt.Data.Connection;
namespace WordHunt.Games.Create.Repository
{
public interface IGameRepository
{
void SaveGame(string name);
}
public class GameRepository : IGameRepository
{... | mit | C# |
09d288024607aa8f7fc94f4deb89cd7a80e05ed2 | Fix compilation error | Xeeynamo/KingdomHearts | OpenKh.Tests/kh2/TrsrTests.cs | OpenKh.Tests/kh2/TrsrTests.cs | using Xunit;
using OpenKh.Common;
using OpenKh.Kh2.System;
namespace OpenKh.Tests.kh2
{
public class TrsrTests
{
[Fact]
public void CheckNewTrsr() => Common.FileOpenRead(@"kh2/res/trsr.bin", x => x.Using(stream =>
{
var table = BaseSystem<Trsr>.Read(stream);
Ass... | using Xunit;
using OpenKh.Kh2.System;
namespace OpenKh.Tests.kh2
{
public class TrsrTests
{
[Fact]
public void CheckNewTrsr() => Common.FileOpenRead(@"kh2/res/trsr.bin", x => x.Using(stream =>
{
var table = BaseSystem<Trsr>.Read(stream);
Assert.Equal(0x1AE, tabl... | mit | C# |
08be31a90487cf31486946fb10f46afec5952757 | add Shuffle helper | adamabdelhamed/PowerArgs,workabyte/PowerArgs,adamabdelhamed/PowerArgs,workabyte/PowerArgs | PowerArgs/Extensions/Array.cs | PowerArgs/Extensions/Array.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace PowerArgs
{
public static class ArrayEx
{
public static bool None<T>(this IEnumerable<T> items) => items.Any() == false;
public static int RemoveWhere<T>(this IList<T> list, Func<T,bool> whereClause)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace PowerArgs
{
public static class ArrayEx
{
public static bool None<T>(this IEnumerable<T> items) => items.Any() == false;
public static int RemoveWhere<T>(this IList<T> list, Func<T,bool> whereClause)
{
... | mit | C# |
92179f02d815516f77932b819e7d6b25faded3be | remove not needed pproperties. | NickPolyder/FreeParkingSystem | src/Account/FreeParkingSystem.Accounts.Data/Models/AccountsDbContext.cs | src/Account/FreeParkingSystem.Accounts.Data/Models/AccountsDbContext.cs | using Microsoft.EntityFrameworkCore;
namespace FreeParkingSystem.Accounts.Data.Models
{
public class AccountsDbContext : DbContext
{
public AccountsDbContext(DbContextOptions<AccountsDbContext> options) : base(options)
{
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnMo... | using Microsoft.EntityFrameworkCore;
namespace FreeParkingSystem.Accounts.Data.Models
{
public class AccountsDbContext : DbContext
{
public AccountsDbContext(DbContextOptions<AccountsDbContext> options) : base(options)
{
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnMo... | mit | C# |
3e91fe4ce6f04368b487c445c1d25b4e8bbe4c6b | Fix message spelling error. | couchbase/couchbase-lite-net,couchbase/couchbase-lite-net,couchbase/couchbase-lite-net | src/Couchbase.Lite.Shared/API/Error/CouchbaseLiteErrorMessageNetOnly.cs | src/Couchbase.Lite.Shared/API/Error/CouchbaseLiteErrorMessageNetOnly.cs | // CouchbaseLiteErrorMessage.cs
//
// Copyright (c) 2019 Couchbase, Inc 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/LI... | // CouchbaseLiteErrorMessage.cs
//
// Copyright (c) 2019 Couchbase, Inc 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/LI... | apache-2.0 | C# |
b9c2959da75c0e825b4d688bffab9922d17426d5 | Convert ErrorCause properties only when not null | elastic/elasticsearch-net,elastic/elasticsearch-net | src/Elasticsearch.Net/Responses/ServerException/ErrorCauseExtensions.cs | src/Elasticsearch.Net/Responses/ServerException/ErrorCauseExtensions.cs | using System;
using System.Collections.Generic;
namespace Elasticsearch.Net
{
internal static class ErrorCauseExtensions
{
public static void FillValues(this ErrorCause rootCause, IDictionary<string, object> dict)
{
if (dict == null) return;
if (dict.TryGetValue("reason", out var reason) && reason != nul... | using System;
using System.Collections.Generic;
namespace Elasticsearch.Net
{
internal static class ErrorCauseExtensions
{
public static void FillValues(this ErrorCause rootCause, IDictionary<string, object> dict)
{
if (dict == null) return;
if (dict.TryGetValue("reason", out var reason)) rootCause.Reaso... | apache-2.0 | C# |
57cf0de806be2dfbe60477e0e70fb80fee02d4f7 | fix Control Panel | signumsoftware/extensions,signumsoftware/extensions,signumsoftware/framework,MehdyKarimpour/extensions,AlejandroCano/extensions,MehdyKarimpour/extensions,signumsoftware/framework,AlejandroCano/extensions | Signum.Web.Extensions/ControlPanel/Controllers/ControlPanelController.cs | Signum.Web.Extensions/ControlPanel/Controllers/ControlPanelController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Signum.Utilities;
using Signum.Entities.ControlPanel;
using Signum.Entities.Authorization;
using Signum.Entities;
using Signum.Engine;
namespace Signum.Web.ControlPanel
{
public class Cont... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Signum.Utilities;
using Signum.Entities.ControlPanel;
using Signum.Entities.Authorization;
using Signum.Entities;
using Signum.Engine;
namespace Signum.Web.ControlPanel
{
public class Cont... | mit | C# |
3b5d796b611f2c0f35127a1b2557d25cb5bf69e7 | Update CSharpHelloWorld.cs | MadMrCrazy/hello-world | CSharpHelloWorld.cs | CSharpHelloWorld.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World");
Console.ReadLine();
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World");
Console.ReadLine();
}
... | unlicense | C# |
a461aefd69203d42e74a3482d9fdb155f03f14aa | add back billing settings | bitwarden/core,bitwarden/core,bitwarden/core,bitwarden/core | src/Billing/Startup.cs | src/Billing/Startup.cs | using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Bit.Core;
using Stripe;
using Bit.Core.Utilities;
using Serilog.Events;
namespace Bit.Billing
{
... | using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Bit.Core;
using Stripe;
using Bit.Core.Utilities;
using Serilog.Events;
namespace Bit.Billing
{
... | agpl-3.0 | C# |
06d1706fdc03f106cddfedf2d5306c07482c12e3 | Move memory allocation from getter to constructor in Aligned.cs | dblock/resourcelib,resourcelib/resourcelib,resourcelib/resourcelib,dblock/resourcelib | Source/ResourceLib/Aligned.cs | Source/ResourceLib/Aligned.cs | using System;
using System.Runtime.InteropServices;
namespace Vestris.ResourceLib
{
/// <summary>
/// Creates an 8 bit aligned copy of the buffer if it is not already aligned
/// </summary>
internal sealed class Aligned : IDisposable
{
private IntPtr _ptr;
private bool allocated;
... | using System;
using System.Runtime.InteropServices;
namespace Vestris.ResourceLib
{
/// <summary>
/// Creates an 8 bit aligned copy of the buffer if it is not already aligned
/// </summary>
internal sealed class Aligned : IDisposable
{
private IntPtr lp;
private IntPtr lpAligned = ... | mit | C# |
c16d2983ee64521199f4813e180483a89f7745df | Update version to 2.6.3 for dev | VirusFree/SharpDX,mrvux/SharpDX,TigerKO/SharpDX,andrewst/SharpDX,manu-silicon/SharpDX,waltdestler/SharpDX,Ixonos-USA/SharpDX,dazerdude/SharpDX,weltkante/SharpDX,jwollen/SharpDX,PavelBrokhman/SharpDX,waltdestler/SharpDX,andrewst/SharpDX,Ixonos-USA/SharpDX,davidlee80/SharpDX-1,weltkante/SharpDX,TechPriest/SharpDX,fmarrab... | Source/SharedAssemblyInfo.cs | Source/SharedAssemblyInfo.cs | // Copyright (c) 2010-2014 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, modi... | // Copyright (c) 2010-2014 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, modi... | mit | C# |
6a624d95d45d6710fcfeaa379f2c9e9c228eb2ac | Update SimpleInjectorJobActivator.cs | devmondo/HangFire.SimpleInjector | src/HangFire.SimpleInjector/SimpleInjectorJobActivator.cs | src/HangFire.SimpleInjector/SimpleInjectorJobActivator.cs | using System;
using SimpleInjector;
using SimpleInjector.Lifestyles;
namespace Hangfire.SimpleInjector
{
public class SimpleInjectorJobActivator : JobActivator
{
private readonly Container _container;
public SimpleInjectorJobActivator(Container container)
{
if ... | using System;
using Injector = SimpleInjector;
namespace Hangfire.SimpleInjector
{
public class SimpleInjectorJobActivator : JobActivator
{
private readonly Injector.Container _container;
private readonly Injector.Lifestyle _lifestyle;
public SimpleInjectorJobActivator(Injec... | mit | C# |
e4c57adf6f5ce5303759209cca3d94ea1d8dc4fb | Bump version | jkonecki/Streamstone,james-andrewsmith/Streamstone | Source/Streamstone.Version.cs | Source/Streamstone.Version.cs | using System;
using System.Linq;
using System.Reflection;
[assembly: AssemblyVersion("0.9.0.0")]
[assembly: AssemblyFileVersion("0.9.0.0")] | using System;
using System.Linq;
using System.Reflection;
[assembly: AssemblyVersion("0.8.1.0")]
[assembly: AssemblyFileVersion("0.8.1.0")] | apache-2.0 | C# |
93afc7732edd4b0f290e681c550e5d749aa64bb3 | Improve encoding aware | ronnieoverby/DbUp,WiRuc/DbUp,JakeGinnivan/DbUp,aggieben/DbUp,dazinator/DbUp,TicketSolutionsPtyLtd/DbUp,DbUp/DbUp | src/DbUp/Engine/SqlScript.cs | src/DbUp/Engine/SqlScript.cs |
using System.IO;
using System.Text;
namespace DbUp.Engine
{
/// <summary>
/// Represents a SQL Server script that comes from an embedded resource in an assembly.
/// </summary>
public class SqlScript
{
private readonly string contents;
private readonly string name;
/// <... |
using System.IO;
using System.Text;
namespace DbUp.Engine
{
/// <summary>
/// Represents a SQL Server script that comes from an embedded resource in an assembly.
/// </summary>
public class SqlScript
{
private readonly string contents;
private readonly string name;
/// <... | mit | C# |
5ddfe049f05973e9bb351121d0cb90d605cc5fe0 | Fix nullability | nikeee/HolzShots | src/HolzShots.Capture.Video/Capture/Video/FFmpeg/HttpClientExtensions.cs | src/HolzShots.Capture.Video/Capture/Video/FFmpeg/HttpClientExtensions.cs | using System;
using System.Net.Http;
using System.IO;
using System.Threading.Tasks;
using HolzShots.Net;
using System.Threading;
namespace HolzShots.Capture.Video.FFmpeg
{
/// <summary> Ref: https://stackoverflow.com/a/46497896 </summary>
public static class HttpClientExtensions
{
public static as... | using System;
using System.Net.Http;
using System.IO;
using System.Threading.Tasks;
using HolzShots.Net;
using System.Threading;
namespace HolzShots.Capture.Video.FFmpeg
{
/// <summary> Ref: https://stackoverflow.com/a/46497896 </summary>
public static class HttpClientExtensions
{
public static as... | agpl-3.0 | C# |
d50205c91eb11b7085663835e61844e4c58d01e8 | fix standard tests | agrc/api.mapserv.utah.gov,agrc/api.mapserv.utah.gov,agrc/api.mapserv.utah.gov,agrc/api.mapserv.utah.gov | WebAPI.API.Tests/Commands/StandardizeRouteNameCommandTests.cs | WebAPI.API.Tests/Commands/StandardizeRouteNameCommandTests.cs | using NUnit.Framework;
using WebAPI.API.Commands.Geocode;
using WebAPI.Common.Executors;
using WebAPI.Domain;
namespace WebAPI.API.Tests.Commands
{
[TestFixture]
public class StandardizeRouteNameCommandTests
{
[TestCase("15", SideDelineation.P, ExpectedResult = "0015PM")]
[TestCase("I15", ... | using NUnit.Framework;
using WebAPI.API.Commands.Geocode;
using WebAPI.Common.Executors;
namespace WebAPI.API.Tests.Commands
{
[TestFixture]
public class StandardizeRouteNameCommandTests
{
[TestCase("15", ExpectedResult = "0015")]
[TestCase("I15", ExpectedResult = "0015")]
[TestCas... | mit | C# |
105729f19cd7febafdbe2c8f2240bfe9c813d694 | Add synthesis window to iSTFT | protyposis/Aurio,protyposis/Aurio | Aurio/Aurio/Features/InverseSTFT.cs | Aurio/Aurio/Features/InverseSTFT.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Aurio.Streams;
namespace Aurio.Features {
/// <summary>
/// Inverse Short-Time Fourier Tranformation.
/// Takes a number of raw FFT frames and converts them to a continuous audio stream by using the overlap-add met... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Aurio.Streams;
namespace Aurio.Features {
/// <summary>
/// Inverse Short-Time Fourier Tranformation.
/// Takes a number of raw FFT frames and converts them to a continuous audio stream by using the overlap-add met... | agpl-3.0 | C# |
5efd138e526636e3be1f7c895768b7ddc2cda484 | Use Type as a key...instead of a string. | kylos101/CircuitBreaker | CircuitBreaker/CircuitBreakerStateStoreFactory.cs | CircuitBreaker/CircuitBreakerStateStoreFactory.cs | using System;
using System.Collections.Concurrent;
namespace CircuitBreaker
{
public class CircuitBreakerStateStoreFactory
{
private static ConcurrentDictionary<Type, ICircuitBreakerStateStore> _stateStores =
new ConcurrentDictionary<Type, ICircuitBreakerStateStore>();
internal st... | using System.Collections.Concurrent;
namespace CircuitBreaker
{
public class CircuitBreakerStateStoreFactory
{
private static ConcurrentDictionary<string, ICircuitBreakerStateStore> _stateStores =
new ConcurrentDictionary<string, ICircuitBreakerStateStore>();
internal static ICirc... | mit | C# |
9559d111df6481f71d7ae8e268ca216d512aa733 | Change backup name fomat | aruhan/ie10histbackup | HistBackup/Model.cs | HistBackup/Model.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.IO;
using System.Diagnostics;
namespace HistBackup
{
class Model : BindableBase
{
public static readonly Model Singleton = new Model();
public string SystemDirectory... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.IO;
using System.Diagnostics;
namespace HistBackup
{
class Model : BindableBase
{
public static readonly Model Singleton = new Model();
public string SystemDirectory... | mit | C# |
5649fa31b0bd9a8220b1dc36c8ba73e0ad7cfa4f | Update version info. | msgpack/msgpack-cli,modulexcite/msgpack-cli,modulexcite/msgpack-cli,scopely/msgpack-cli,undeadlabs/msgpack-cli,scopely/msgpack-cli,msgpack/msgpack-cli,undeadlabs/msgpack-cli | src/CommonAssemblyInfo.Pack.cs | src/CommonAssemblyInfo.Pack.cs | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2010-2012 FUJIWARA, Yusuke
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apac... | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2010-2012 FUJIWARA, Yusuke
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apac... | apache-2.0 | C# |
22dd1bfc03fc5dc88340bf0369aee956a16e6757 | Rename classes | barbosatek/Softmex.Test | src/Moker.Tests/TestForTest.cs | src/Moker.Tests/TestForTest.cs | using Moker.Tests.Artifacts;
using Moq;
using NUnit.Framework;
namespace Moker.Tests
{
[TestFixture]
public class TestForSingleDependencyTests : TestFor<ClassWithSingleInterfaceConstructor>
{
[Test]
public void Should_Initialize_Instance()
{
Assert.IsNotNull(Target);
... | using Moker.Tests.Artifacts;
using Moq;
using NUnit.Framework;
namespace Moker.Tests
{
[TestFixture]
public class ClassWithSingleDependencyTests : TestFor<ClassWithSingleInterfaceConstructor>
{
[Test]
public void Should_Initialize_Instance()
{
Assert.IsNotNull(Target);
... | mit | C# |
e6c32325846af1d0f2e736436096c525139684e2 | Build and publish nuget package | bfriesen/Rock.StaticDependencyInjection,RockFramework/Rock.StaticDependencyInjection | src/Properties/AssemblyInfo.cs | src/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("Ro... | 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("Ro... | mit | C# |
99954bad1bac252af3796468062dda0eb044e659 | Include TransitionTime in LightState, fix for #95 | Q42/Q42.HueApi | src/Q42.HueApi/Models/State.cs | src/Q42.HueApi/Models/State.cs | using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Q42.HueApi.Converters;
using System;
using System.Runtime.Serialization;
namespace Q42.HueApi
{
[DataContract]
public class State
{
[DataMember(Name = "on")]
public bool On { get; set; }
[DataMember(Name = "bri")]
public byte Brightness { get;... | using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Q42.HueApi
{
[DataContract]
public class State
{
[DataMember (Name = "on")]
public bool On { get; set; }
[DataMember (Name = "bri")]
public byte Brightness { get; set; }
[DataMember (Name... | mit | C# |
efebfec8c8cbecf1ccdd4f6f019467b8ecbe81d1 | Enable potentially higher performance text rendering | HelloKitty/317refactor | src/Rs317.Client.WF/Program.cs | src/Rs317.Client.WF/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Rs317.Sharp
{
public static class Program
{
public static async Task Main(string[] args)
{
try
{
Application.SetCompatibleTextRend... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace Rs317.Sharp
{
public static class Program
{
public static async Task Main(string[] args)
{
try
{
Console.WriteLine($"RS2 user client - release #{317}");
... | mit | C# |
4725caca461d69297d96f41fd80878a307e0a3b2 | fix paramref | dersia/Prism | Source/Xamarin/Prism.Autofac.Forms/Modularity/AutofacModuleInitializer.cs | Source/Xamarin/Prism.Autofac.Forms/Modularity/AutofacModuleInitializer.cs | using System;
using Prism.Modularity;
using Autofac;
namespace Prism.Autofac.Modularity
{
public class AutofacModuleInitializer : IModuleInitializer
{
readonly IComponentContext _context;
/// <summary>
/// Create a new instance of <see cref="AutofacModuleInitializer"/> with <paramref ... | using System;
using Prism.Modularity;
using Autofac;
namespace Prism.Autofac.Modularity
{
public class AutofacModuleInitializer : IModuleInitializer
{
readonly IComponentContext _context;
/// <summary>
/// Create a new instance of <see cref="AutofacModuleInitializer"/> with <paramref ... | apache-2.0 | C# |
5ec6ced8baa0a2306c3a0a26fb7eb2c5b82304af | Update User.cshtml add CRLF | leotsarev/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,kirillkos/joinrpg-net,joinrpg/joinrpg-net,kirillkos/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net | Joinrpg/Views/Shared/DisplayTemplates/User.cshtml | Joinrpg/Views/Shared/DisplayTemplates/User.cshtml | @model JoinRpg.DataModel.User
@if (Model == null)
{
<span>нет</span>
return;
}
<a class="join-user" href="@Url.Action("Details", "User", new {Model.UserId})"><i class="glyphicon glyphicon-user"></i>@Model.DisplayName.Trim()</a>
| @model JoinRpg.DataModel.User
@if (Model == null)
{
<span>нет</span>
return;
}
<a class="join-user" href="@Url.Action("Details", "User", new {Model.UserId})"><i class="glyphicon glyphicon-user"></i>@Model.DisplayName.Trim()</a> | mit | C# |
52651b9feccdcbd317c2c6f871fc4fe18c3a74cb | Use continue to reduce one indentation level. | alldne/school,alldne/school | School/REPL/REPL.cs | School/REPL/REPL.cs | using System;
using Mono.Terminal;
namespace School.REPL
{
public class REPL
{
public REPL()
{
}
public void Run()
{
Evaluator evaluator = new Evaluator();
LineEditor editor = new LineEditor("School");
Console.WriteLine("School REPL... | using System;
using Mono.Terminal;
namespace School.REPL
{
public class REPL
{
public REPL()
{
}
public void Run()
{
Evaluator evaluator = new Evaluator();
LineEditor editor = new LineEditor("School");
Console.WriteLine("School REPL... | apache-2.0 | C# |
09893a64a889eddcd3d7767d7772559c522a068a | Update ILiteDbRepository.cs | tiksn/TIKSN-Framework | TIKSN.Core/Data/LiteDB/ILiteDbRepository.cs | TIKSN.Core/Data/LiteDB/ILiteDbRepository.cs | using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace TIKSN.Data.LiteDB
{
public interface ILiteDbRepository<TDocument, TIdentity> : IRepository<TDocument>, IQueryRepository<TDocument, TIdentity>, IStreamRepository<TDocument> where TDocument : IEntity<TIde... | using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace TIKSN.Data.LiteDB
{
public interface ILiteDbRepository<TDocument, TIdentity> : IRepository<TDocument>, IQueryRepository<TDocument, TIdentity> where TDocument : IEntity<TIdentity> where TIdentity : IEqua... | mit | C# |
4a7a98f49b1bbb8edd630a01c7c20eed9d00ca8e | Add ReadFile methods | paiden/Nett | Source/Nett/Toml.cs | Source/Nett/Toml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace Nett
{
public class Toml
{
public static string WriteString<T>(T obj)
{
TomlTable tt = TomlTable.From(obj);
using (var ms = new MemoryStream(1024))
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace Nett
{
public class Toml
{
public static string WriteString<T>(T obj)
{
TomlTable tt = TomlTable.From(obj);
using (var ms = new MemoryStream(1024))
... | mit | C# |
fe2d7e9fb1ea73a48d3eb77ccb7f17fd9648ec15 | Fix regex patterns in class 'RegexConstants' | lury-lang/lury-lexer | lury-lexer/RegexConstants.cs | lury-lexer/RegexConstants.cs | //
// RegexConstants.cs
//
// Author:
// Tomona Nanase <nanase@users.noreply.github.com>
//
// The MIT License (MIT)
//
// Copyright (c) 2015 Tomona Nanase
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), t... | //
// RegexConstants.cs
//
// Author:
// Tomona Nanase <nanase@users.noreply.github.com>
//
// The MIT License (MIT)
//
// Copyright (c) 2015 Tomona Nanase
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), t... | mit | C# |
b21a5d2d9ed5907dab966781c2d6d7151f2ff05d | add comments | bitbeans/SimpleDnsCrypt | SimpleDnsCrypt/Helper/DnscryptProxyConfigurationManager.cs | SimpleDnsCrypt/Helper/DnscryptProxyConfigurationManager.cs | using Nett;
using SimpleDnsCrypt.Config;
using SimpleDnsCrypt.Models;
using System;
using System.IO;
namespace SimpleDnsCrypt.Helper
{
/// <summary>
/// Class to load and save the dnscrypt configuration (TOML format).
/// </summary>
public static class DnscryptProxyConfigurationManager
{
/// <summary>
/// Th... | using Nett;
using SimpleDnsCrypt.Config;
using SimpleDnsCrypt.Models;
using System;
using System.IO;
namespace SimpleDnsCrypt.Helper
{
/// <summary>
///
/// </summary>
public static class DnscryptProxyConfigurationManager
{
/// <summary>
///
/// </summary>
public static DnscryptProxyConfiguration Dnscr... | mit | C# |
62fe792fa1ac9a9cf1b12d8460a0b78e6a8b29c7 | Clean up null handling in UnitTestingRemoteHostClientWrapper | AmadeusW/roslyn,dotnet/roslyn,panopticoncentral/roslyn,wvdd007/roslyn,mgoertz-msft/roslyn,tmat/roslyn,eriawan/roslyn,mavasani/roslyn,tannergooding/roslyn,sharwell/roslyn,weltkante/roslyn,wvdd007/roslyn,AmadeusW/roslyn,CyrusNajmabadi/roslyn,dotnet/roslyn,panopticoncentral/roslyn,genlu/roslyn,KevinRansom/roslyn,aelij/ros... | src/Workspaces/Core/Portable/ExternalAccess/UnitTesting/Api/UnitTestingRemoteHostClientWrapper.cs | src/Workspaces/Core/Portable/ExternalAccess/UnitTesting/Api/UnitTestingRemoteHostClientWrapper.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.
#nullable enable
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Syst... | // 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.
#nullable enable
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Ta... | mit | C# |
9583df461bb3dbe3366eb18b8a812c9ed596ffbd | improve test setup to work on german cultures as well | concordion/concordion-net,concordion/concordion-net,ShaKaRee/concordion-net,ShaKaRee/concordion-net,ShaKaRee/concordion-net,concordion/concordion-net | Concordion.Spec/Concordion/Command/AssertEquals/NonString/NonStringTest.cs | Concordion.Spec/Concordion/Command/AssertEquals/NonString/NonStringTest.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using Concordion.Integration;
namespace Concordion.Spec.Concordion.Command.AssertEquals.NonString
{
[ConcordionTest]
public class NonStringTest
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using Concordion.Integration;
namespace Concordion.Spec.Concordion.Command.AssertEquals.NonString
{
[ConcordionTest]
public class NonStringTest
{
public string ou... | apache-2.0 | C# |
be041a42ff4503e93deabaf550225d4bff1b1102 | introduce TsReferenceCollection | isukces/isukces.code | isukces.code/Typescript/TsFile.cs | isukces.code/Typescript/TsFile.cs | using System.Collections.Generic;
using isukces.code.interfaces;
using isukces.code.IO;
namespace isukces.code.Typescript
{
public class TsFile : ITsCodeProvider
{
public bool SaveIfDifferent(string filename, bool addBom = false)
{
return CodeFileUtils.SaveIfDifferent(GetCode(), fi... | using System.Collections.Generic;
using isukces.code.interfaces;
using isukces.code.IO;
namespace isukces.code.Typescript
{
public class TsFile : ITsCodeProvider
{
public bool SaveIfDifferent(string filename, bool addBom = false)
{
return CodeFileUtils.SaveIfDifferent(GetCode(), fi... | mit | C# |
677e8af387f2a4d87ff6e848ec1da7aaefbf38eb | Disable failing tests. Porting to non-generic set would require changes to the whole group of tests cases that, since they are based on a common model and a base test fixture. | nkreipke/nhibernate-core,livioc/nhibernate-core,hazzik/nhibernate-core,lnu/nhibernate-core,lnu/nhibernate-core,fredericDelaporte/nhibernate-core,gliljas/nhibernate-core,hazzik/nhibernate-core,hazzik/nhibernate-core,gliljas/nhibernate-core,ManufacturingIntelligence/nhibernate-core,hazzik/nhibernate-core,livioc/nhibernat... | src/NHibernate.Test/MultipleCollectionFetchTest/MultipleSetFetchFixture.cs | src/NHibernate.Test/MultipleCollectionFetchTest/MultipleSetFetchFixture.cs | using System;
using System.Collections;
using System.Net.NetworkInformation;
using NUnit.Framework;
namespace NHibernate.Test.MultipleCollectionFetchTest
{
[TestFixture]
[Ignore("Support for non-generic sets removed. To test generic set instead, need to duplicate or port the sister test fixtures too.")]
pu... | using System;
using System.Collections;
using Iesi.Collections;
using NUnit.Framework;
namespace NHibernate.Test.MultipleCollectionFetchTest
{
[TestFixture]
public class MultipleSetFetchFixture : AbstractMultipleCollectionFetchFixture
{
protected override IList Mappings
{
get { return new str... | lgpl-2.1 | C# |
d487b6cc4507e853e68fc28611dfc2541491cab1 | Use top level program for the Worker template | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Program.cs | src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Program.cs | using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Company.Application1;
using IHost host = Host.CreateDefaultBuilder(args)
.ConfigureServices(services =>
{
services.AddHostedService<Worker>();
})
.Build();
await host.RunAsync();
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace Company.Application1
{
public class Program
{
public static void Main(string[] args)
{
Creat... | apache-2.0 | C# |
fdc82931395b61fbdedc91c3becd15570d0b07d3 | Remove unnecessary conversion operator. Make struct readonly. | dotnet/roslyn,tannergooding/roslyn,shyamnamboodiripad/roslyn,agocke/roslyn,weltkante/roslyn,jmarolf/roslyn,AlekseyTs/roslyn,abock/roslyn,swaroop-sridhar/roslyn,bartdesmet/roslyn,davkean/roslyn,diryboy/roslyn,gafter/roslyn,agocke/roslyn,tmat/roslyn,weltkante/roslyn,eriawan/roslyn,DustinCampbell/roslyn,gafter/roslyn,Adam... | src/Workspaces/Core/Portable/EmbeddedLanguages/VirtualChars/VirtualChar.cs | src/Workspaces/Core/Portable/EmbeddedLanguages/VirtualChars/VirtualChar.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.CodeAnalysis.Text;
namespace Microsoft.CodeAnalysis.EmbeddedLanguages.VirtualChars
{
/// <summary>
/// The Regex and J... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.CodeAnalysis.Text;
namespace Microsoft.CodeAnalysis.EmbeddedLanguages.VirtualChars
{
/// <summary>
/// The Regex and J... | mit | C# |
7d0e21b0837c7fc808b85b4588cb7887493098cb | Correct erroneous using statement. | NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework | Test/AdventureWorksFunctionalModel/ModelConfig.cs | Test/AdventureWorksFunctionalModel/ModelConfig.cs | using NakedObjects.Menu; //TODO: Replace with NakedFramework version when working.
using System;
using System.Collections.Generic;
using System.Linq;
namespace AW
{
public static class ModelConfig
{
public static Type[] EntityTypes() =>
Classes.Where(t => t.Namespace == "AW.Types").ToArray(... | using NakedObjects.Menu; //TODO: Replace with NakedFramework version when working.
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.Configuration;
namespace AW
{
public static class ModelConfig
{
public static Type[] EntityTypes() =>
Classes.Wher... | apache-2.0 | C# |
55cb703968e43c9612c86a8be388db18a1aecc05 | Bump ver to 2.2.7 | RazorGenerator/RazorGenerator,RazorGenerator/RazorGenerator,wizzardmr42/RazorGenerator | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System;
using System.Reflection;
[assembly: AssemblyVersion("2.0.0")]
[assembly: AssemblyProduct("RazorGenerator")]
[assembly: AssemblyCompany("RazorGenerator contributors")]
[assembly: AssemblyInformationalVersion("2.2.7")]
| using System;
using System.Reflection;
[assembly: AssemblyVersion("2.0.0")]
[assembly: AssemblyProduct("RazorGenerator")]
[assembly: AssemblyCompany("RazorGenerator contributors")]
[assembly: AssemblyInformationalVersion("2.2.6")]
| apache-2.0 | C# |
caf68e9c227c5a7aac485aefafb54f665ff32a00 | Clear down dispatcher queue on disconnect. | micdenny/EasyNetQ.Management.Client,chinaboard/EasyNetQ.Management.Client,EasyNetQ/EasyNetQ.Management.Client,EasyNetQ/EasyNetQ.Management.Client,alexwiese/EasyNetQ.Management.Client,Pliner/EasyNetQ.Management.Client,Pliner/EasyNetQ.Management.Client,micdenny/EasyNetQ.Management.Client,LawrenceWard/EasyNetQ.Management.... | Source/Version.cs | Source/Version.cs | using System.Reflection;
// EasyNetQ version number: <major>.<minor>.<non-breaking-feature>.<build>
[assembly: AssemblyVersion("0.14.4.0")]
// Note: until version 1.0 expect breaking changes on 0.X versions.
// 0.14.4.0 Consumer dispatcher queue cleared after connection lost.
// 0.14.3.0 IConsumerErrorStrategy not ... | using System.Reflection;
// EasyNetQ version number: <major>.<minor>.<non-breaking-feature>.<build>
[assembly: AssemblyVersion("0.14.3.0")]
// Note: until version 1.0 expect breaking changes on 0.X versions.
// 0.14.3.0 IConsumerErrorStrategy not being disposed fix
// 0.14.2.0 MessageProperties serialization fix
//... | mit | C# |
619371206293baa772b236d6b0e2bd660db81430 | Clean DWMApi.ColorizationColor | rchcomm/Captura | Utility/DWMApi.cs | Utility/DWMApi.cs | using System.Runtime.InteropServices;
using System.Windows.Media;
namespace Captura
{
public static class DWMApi
{
const string DllName = "dwmapi.dll";
[DllImport(DllName)]
static extern int DwmGetColorizationColor(ref int Color, [MarshalAs(UnmanagedType.Bool)] ref bool Opaque... | using System.Runtime.InteropServices;
using System.Windows.Media;
namespace Captura
{
public static class DWMApi
{
const string DllName = "dwmapi.dll";
[DllImport(DllName)]
static extern int DwmGetColorizationColor(ref int Color, [MarshalAs(UnmanagedType.Bool)] ref bool Opaque... | mit | C# |
c8bb1ff5b3923cb3fff6001458dd6377f987a828 | Fix string representation of Command | yishn/GTPWrapper | GTPWrapper/Command.cs | GTPWrapper/Command.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GTPWrapper {
/// <summary>
/// Represents a GTP command.
/// </summary>
public class Command {
/// <summary>
/// Gets an optional command id.
/// </summary>
public int? Id { ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GTPWrapper {
/// <summary>
/// Represents a GTP command.
/// </summary>
public class Command {
/// <summary>
/// Gets an optional command id.
/// </summary>
public int? Id { ... | mit | C# |
d0e62638363125f8391a6280f47268df941b1cae | Fix typo | antonio-bakula/simpleDLNA,bra1nb3am3r/simpleDLNA,nmaier/simpleDLNA | GlobalAssemblyInfo.cs | GlobalAssemblyInfo.cs | using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
#if DEBUG
[assembly: AssemblyConfiguration("Debug")]
#else
[assembly: AssemblyConfiguration("Release")]
#endif
[assembly: AssemblyCompany("Nils Maier")]
[assembly: AssemblyProduct("SimpleDLNA")]
[assembly: AssemblyCop... | using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
#if DEBUG
[assembly: AssemblyConfiguration("Debug")]
#else
[assembly: AssemblyConfiguration("Release")]
#endif
[assembly: AssemblyCompany("Nils Maier")]
[assembly: AssemblyProduct("SimpleDLNA")]
[assembly: AssemblyCop... | bsd-2-clause | C# |
2a6ee25bd3362dadd8ab004d55e1f63ffa100960 | Fix back-to-front blocking conditional | peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework | osu.Framework.Tests/TestGame.cs | osu.Framework.Tests/TestGame.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.IO.Stores;
namespace osu.Framework.Tests
{
[Cached]
internal class TestGame :... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.IO.Stores;
namespace osu.Framework.Tests
{
[Cached]
internal class TestGame :... | mit | C# |
2a00b7e16eb5b59a8f19ff0ff8d88e33972967b9 | make Vulkan.Android friendly assembly of Vulkan | mono/VulkanSharp | src/Vulkan/Properties/AssemblyInfo.cs | src/Vulkan/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("Vulkan")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[assembly:... | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("Vulkan")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[assembly:... | mit | C# |
3e15bce24644eadf95e81ad0a4d69fc078c606cb | Increment minor -> 0.7.0 | awseward/Bugsnag.NET,awseward/Bugsnag.NET | SharedAssemblyInfo.cs | SharedAssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion("0.7.0.0")]
[assembly: AssemblyFileVersion("0.7.0.0")]
[assembly: AssemblyInformationalVersion("0.7.0")]
| using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion("0.6.0.0")]
[assembly: AssemblyFileVersion("0.6.0.0")]
[assembly: AssemblyInformationalVersion("0.6.0")]
| mit | C# |
97ba822fda48d4f2ed59cac155f35e33c12d2b91 | fix test constructor | danielgerlag/workflow-core | src/samples/WorkflowCore.TestSample01/NUnitTest.cs | src/samples/WorkflowCore.TestSample01/NUnitTest.cs | using FluentAssertions;
using NUnit.Framework;
using System;
using WorkflowCore.Models;
using WorkflowCore.Testing;
using WorkflowCore.TestSample01.Workflow;
namespace WorkflowCore.TestSample01
{
[TestFixture]
public class NUnitTest : WorkflowTest<MyWorkflow, MyDataClass>
{
[SetUp]
protect... | using FluentAssertions;
using NUnit.Framework;
using System;
using WorkflowCore.Models;
using WorkflowCore.Testing;
using WorkflowCore.TestSample01.Workflow;
namespace WorkflowCore.TestSample01
{
[TestFixture]
public class NUnitTest : WorkflowTest<MyWorkflow, MyDataClass>
{
[SetUp]
protect... | mit | C# |
ba9518a1636a7707312311bd213b951f59f0e632 | Return a value for reads from expansion RAM even though not present | eightlittlebits/elbgb | elbgb.gameboy/Memory/Mappers/RomOnly.cs | elbgb.gameboy/Memory/Mappers/RomOnly.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace elbgb.gameboy.Memory.Mappers
{
class RomOnly : Cartridge
{
public RomOnly(CartridgeHeader header, byte[] romData)
: base(header, romData)
{
}
public... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace elbgb.gameboy.Memory.Mappers
{
class RomOnly : Cartridge
{
public RomOnly(CartridgeHeader header, byte[] romData)
: base(header, romData)
{
}
public... | mit | C# |
af4495cd8e2685f9e9c175f167054a92920a8b30 | Test case naming. | ManufacturingIntelligence/nhibernate-core,lnu/nhibernate-core,livioc/nhibernate-core,lnu/nhibernate-core,gliljas/nhibernate-core,fredericDelaporte/nhibernate-core,RogerKratz/nhibernate-core,hazzik/nhibernate-core,nhibernate/nhibernate-core,gliljas/nhibernate-core,alobakov/nhibernate-core,gliljas/nhibernate-core,RogerKr... | src/NHibernate.Test/NHSpecificTest/NH3604/FixtureByCode.cs | src/NHibernate.Test/NHSpecificTest/NH3604/FixtureByCode.cs | using System.Linq;
using NHibernate.Cfg.MappingSchema;
using NHibernate.Linq;
using NHibernate.Mapping.ByCode;
using NUnit.Framework;
namespace NHibernate.Test.NHSpecificTest.NH3604
{
/// <summary>
/// Tests ability to map a non-public property by code via expressions to access the hidden properties
/// </summary>... | using System.Linq;
using NHibernate.Cfg.MappingSchema;
using NHibernate.Linq;
using NHibernate.Mapping.ByCode;
using NUnit.Framework;
namespace NHibernate.Test.NHSpecificTest.NH3604
{
/// <summary>
/// Tests ability to map a non-public property by code via expressions to access the hidden properties
/// </summary>... | lgpl-2.1 | C# |
79af5ea24d4e48178241db63a500cc5e332acb31 | Adjust test name | karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknad... | src/Markdown/Editor/Test/Tokens/TokenizeBlockTest.cs | src/Markdown/Editor/Test/Tokens/TokenizeBlockTest.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Diagnostics.CodeAnalysis;
using FluentAssertions;
using Microsoft.Languages.Core.Classification;
using Microsoft.Languages.Core.Test.Tokens;
using Micro... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Diagnostics.CodeAnalysis;
using FluentAssertions;
using Microsoft.Languages.Core.Classification;
using Microsoft.Languages.Core.Test.Tokens;
using Micro... | mit | C# |
97032b14df5bb41a4cf4b77d919fc5a3c4773929 | remove region | RadicalFx/radical | src/Radical/ChangeTracking/Advisory/AdvisedAction.cs | src/Radical/ChangeTracking/Advisory/AdvisedAction.cs | using Radical.ComponentModel.ChangeTracking;
using Radical.Validation;
using System;
namespace Radical.ChangeTracking
{
/// <summary>
/// Represents a suggested action produced by
/// the provisioning system of a change tracking service.
/// </summary>
public class AdvisedAction : IAdvisedAction
... | using Radical.ComponentModel.ChangeTracking;
using Radical.Validation;
using System;
namespace Radical.ChangeTracking
{
/// <summary>
/// Represents a suggested action produced by
/// the provisioning system of a change tracking service.
/// </summary>
public class AdvisedAction : IAdvisedAction
... | mit | C# |
4cde00132cb99792e01e874f9119b17c5fbf1720 | Hide internal implementation, since there's no value in exporting these methods | sbennett1990/signify.cs | SignifyCS/Verify.cs | SignifyCS/Verify.cs | /*
* Copyright (c) 2017 Scott Bennett <scottb@fastmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "... | /*
* Copyright (c) 2017 Scott Bennett <scottb@fastmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "... | isc | C# |
e856d28d6585a59529b9945e1f3c223a2f4e1e14 | Use non-deprecated UnsafeRawPointer type to represent untyped native pointers. | jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,mono/Embeddinator-4000,mono/Embeddinator-4000,jonathanpepp... | binder/Generators/Swift/SwiftGenerator.cs | binder/Generators/Swift/SwiftGenerator.cs | using System.Collections.Generic;
using System.Linq;
using CppSharp.AST;
using CppSharp.Generators;
namespace Embeddinator.Generators
{
public class SwiftGenerator : Generator
{
public SwiftTypePrinter TypePrinter { get; internal set; }
public static string IntPtrType = "UnsafeRawPointer";
... | using System.Collections.Generic;
using System.Linq;
using CppSharp.AST;
using CppSharp.Generators;
namespace Embeddinator.Generators
{
public class SwiftGenerator : Generator
{
public SwiftTypePrinter TypePrinter { get; internal set; }
public static string IntPtrType = "UnsafePointer<Void>";
... | mit | C# |
8821813e9c51c7d8b22f577917c671bc4a530771 | add a data point | liupeirong/Azure,liupeirong/Azure,liupeirong/Azure,liupeirong/Azure,liupeirong/Azure,liupeirong/Azure,liupeirong/Azure,liupeirong/Azure | PowerBIISV/ContosoOData/Controllers/ProductsController.cs | PowerBIISV/ContosoOData/Controllers/ProductsController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ContosoOData.Models;
using System.Web.OData;
using System.Web.Http;
namespace ContosoOData.Controllers
{
[Authorize]
public class ProductsController : ODataController
{
public IQueryable<Product> Get()
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ContosoOData.Models;
using System.Web.OData;
using System.Web.Http;
namespace ContosoOData.Controllers
{
[Authorize]
public class ProductsController : ODataController
{
public IQueryable<Product> Get()
... | mit | C# |
51fccad5be7237db8310ad03c9e9eca74b9a9cf3 | Remove unused options replaced by TestProxy (#23258) | AsrOneSdk/azure-sdk-for-net,AsrOneSdk/azure-sdk-for-net,AsrOneSdk/azure-sdk-for-net,AsrOneSdk/azure-sdk-for-net | common/Perf/Azure.Test.Perf/PerfOptions.cs | common/Perf/Azure.Test.Perf/PerfOptions.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using CommandLine;
using System;
namespace Azure.Test.Perf
{
public class PerfOptions
{
[Option('d', "duration", Default = 10, HelpText = "Duration of test in seconds")]
public int Duration { get; ... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using CommandLine;
using System;
namespace Azure.Test.Perf
{
public class PerfOptions
{
[Option('d', "duration", Default = 10, HelpText = "Duration of test in seconds")]
public int Duration { get; ... | mit | C# |
7757cbb0a545ecdad83807473871fe0bd41fa946 | Trim branch names | jquintus/TrelloWorld,jquintus/TrelloWorld | TrelloWorld/TrelloWorld.Server/Services/SettingsLoader.cs | TrelloWorld/TrelloWorld.Server/Services/SettingsLoader.cs | namespace TrelloWorld.Server.Services
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Configuration;
using TrelloWorld.Server.Config;
public class SettingsLoader : ISettingsLoader<Settings>
{
public Settings Load()
... | namespace TrelloWorld.Server.Services
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Configuration;
using TrelloWorld.Server.Config;
public class SettingsLoader : ISettingsLoader<Settings>
{
public Settings Load()
... | mit | C# |
2ce23930d43aa0592ad9b86ce6d0aa31ba4d2b11 | Fix CanvasCellViewBackend.QueueDraw() | hamekoz/xwt,cra0zy/xwt,mono/xwt,lytico/xwt,hwthomas/xwt,antmicro/xwt,TheBrainTech/xwt | Xwt.WPF/Xwt.WPFBackend.CellViews/CanvasCellViewBackend.cs | Xwt.WPF/Xwt.WPFBackend.CellViews/CanvasCellViewBackend.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using Xwt.Backends;
namespace Xwt.WPFBackend
{
class CanvasCellViewBackend: CellViewBackend, ICanvasCellViewBackend
{
public void QueueDraw()
{
CurrentElement.InvalidateVisua... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using Xwt.Backends;
namespace Xwt.WPFBackend
{
class CanvasCellViewBackend: CellViewBackend, ICanvasCellViewBackend
{
public void QueueDraw()
{
}
}
}
| mit | C# |
90dba3e87e59a5acab24609490546986fcb72397 | Update Stock.cs | IanMcT/StockMarketGame | SMG/SMG/Stock.cs | SMG/SMG/Stock.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SMG
{
class Stock
{
/// <summary>
/// Name of the Stock
/// </summary>
public string StockName;
/// <summary>
/// Descript... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SMG
{
class Stock
{
/// <summary>
/// Name of the Stock
/// </summary>
public string StockName;
/// <summary>
/// Descriptio... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.