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 |
|---|---|---|---|---|---|---|---|---|
b6ceaa461346fb5c8830709c8e8afe092cbe00b0 | Disable alternative rules by default | DotNetAnalyzers/StyleCopAnalyzers | StyleCop.Analyzers/StyleCop.Analyzers/AnalyzerConstants.cs | StyleCop.Analyzers/StyleCop.Analyzers/AnalyzerConstants.cs | namespace StyleCop.Analyzers
{
using Microsoft.CodeAnalysis;
internal static class AnalyzerConstants
{
static AnalyzerConstants()
{
#if DEBUG
// In DEBUG builds, the tests are enabled to simplify development and testing.
DisabledNoTests = true;
#else
Dis... | namespace StyleCop.Analyzers
{
using Microsoft.CodeAnalysis;
internal static class AnalyzerConstants
{
static AnalyzerConstants()
{
#if DEBUG
// In DEBUG builds, the tests are enabled to simplify development and testing.
DisabledNoTests = true;
#else
Dis... | mit | C# |
5c3549521c9fc363073397cef1208f3ca02f9a2f | Fix typo in MenuButton | NitorInc/NitoriWare,NitorInc/NitoriWare,plrusek/NitoriWare,Barleytree/NitoriWare,Barleytree/NitoriWare | Assets/Scripts/Menu/MenuButton.cs | Assets/Scripts/Menu/MenuButton.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class MenuButton : MonoBehaviour
{
#pragma warning disable 0649 //Serialized Fields
[SerializeField]
private Button button;
[SerializeField]
private Animator buttonAnimator;
[SerializeField... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class MenuButton : MonoBehaviour
{
#pragma warning disable 0649 //Serialized Fields
[SerializeField]
private Button button;
[SerializeField]
private Animator buttonAnimator;
[SerializeField... | mit | C# |
819d39aa51e1f36b0cca4e00f24670b96808b1e6 | change exception message | inputfalken/Sharpy | DataGen/Types/Mail/MailFactory.cs | DataGen/Types/Mail/MailFactory.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace DataGen.Types.Mail {
public class MailFactory {
/// <summary>
/// Since this is static it will not get created for each new instance of this object. Which means this can keep track
/// of all created mails... | using System;
using System.Collections.Generic;
using System.Linq;
namespace DataGen.Types.Mail {
public class MailFactory {
/// <summary>
/// Since this is static it will not get created for each new instance of this object. Which means this can keep track
/// of all created mails... | mit | C# |
3dc629dae1278a5be7fe1681e3522907130fd962 | Simplify image summarizer code | jcmoyer/Yeena | Yeena/Data/StashImageSummarizer.cs | Yeena/Data/StashImageSummarizer.cs | // Copyright 2013 J.C. Moyer
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | // Copyright 2013 J.C. Moyer
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | apache-2.0 | C# |
dca60f9e7f14f29584767daaaa973b6691fa12a3 | Update Index.cshtml - Fixed Edit link | NinjaVault/NinjaHive,NinjaVault/NinjaHive | NinjaHive.WebApp/Views/EquipmentItem/Index.cshtml | NinjaHive.WebApp/Views/EquipmentItem/Index.cshtml | @using NinjaHive.Contract.DTOs
@using NinjaHive.WebApp.Controllers
@using NinjaHive.WebApp.Services
@model EquipmentItem[]
<div class="row">
<div class="col-md-12">
<br />
<p>
@Html.ActionLink("Create Equipment Item", "Create", null, new { @class = "btn btn-default" })
</p>
... | @using NinjaHive.Contract.DTOs
@using NinjaHive.WebApp.Controllers
@using NinjaHive.WebApp.Services
@model EquipmentItem[]
<div class="row">
<div class="col-md-12">
<br />
<p>
@Html.ActionLink("Create Equipment Item", "Create", null, new { @class = "btn btn-default" })
</p>
... | apache-2.0 | C# |
87f52b82331dc1f6ba4b198d96cb8b768a152c19 | Remove redundant switch section | ppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,ppy/osu,peppy/osu-new,UselessToucan/osu,ppy/osu,UselessToucan/osu,peppy/osu,smoogipooo/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu | osu.Game/Overlays/OverlayView.cs | osu.Game/Overlays/OverlayView.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Online.API;
namespace osu.Game.Overlays
{
/// ... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Online.API;
namespace osu.Game.Overlays
{
/// ... | mit | C# |
2e9a6608fb30cf590fb743b7cd340888be205b5d | Move control initialization to OnInit method | roman-yagodin/R7.University,roman-yagodin/R7.University,roman-yagodin/R7.University | R7.University.Launchpad/SettingsLaunchpad.ascx.cs | R7.University.Launchpad/SettingsLaunchpad.ascx.cs | using System;
using System.Web.UI.WebControls;
using System.Linq;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.UI.UserControls;
using R7.University;
namespace R7.University.Launchpad
{
public partial class SettingsLaunchpad : ModuleSettingsBase
{
public voi... | using System;
using System.Web.UI.WebControls;
using System.Linq;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.UI.UserControls;
using R7.University;
namespace R7.University.Launchpad
{
public partial class SettingsLaunchpad : ModuleSettingsBase
{
/// <summa... | agpl-3.0 | C# |
05b5b5c1dc3e49f06d0ef936c3f24c62acaf4aad | optimize slovenia provider | tinohager/Nager.Date,tinohager/Nager.Date,tinohager/Nager.Date | Src/Nager.Date/PublicHolidays/SloveniaProvider.cs | Src/Nager.Date/PublicHolidays/SloveniaProvider.cs | using Nager.Date.Model;
using System.Collections.Generic;
using System.Linq;
namespace Nager.Date.PublicHolidays
{
public class SloveniaProvider : CatholicBaseProvider
{
public override IEnumerable<PublicHoliday> Get(int year)
{
//Slovenia
//https://en.wikipedia.org/wik... | using Nager.Date.Model;
using System.Collections.Generic;
using System.Linq;
namespace Nager.Date.PublicHolidays
{
public class SloveniaProvider : CatholicBaseProvider
{
public override IEnumerable<PublicHoliday> Get(int year)
{
//Slovenia
//https://en.wikipedia.org/wik... | mit | C# |
ae94cde718003c8a59e6a8b4010a9ba44979ea64 | Rename public enumerators | y-iihoshi/ThScoreFileConverter,y-iihoshi/ThScoreFileConverter | ThScoreFileConverter/Models/Th10/StageProgress.cs | ThScoreFileConverter/Models/Th10/StageProgress.cs | //-----------------------------------------------------------------------
// <copyright file="StageProgress.cs" company="None">
// Copyright (c) IIHOSHI Yoshinori.
// Licensed under the BSD-2-Clause license. See LICENSE.txt file in the project root for full license information.
// </copyright>
//----------------------... | //-----------------------------------------------------------------------
// <copyright file="StageProgress.cs" company="None">
// Copyright (c) IIHOSHI Yoshinori.
// Licensed under the BSD-2-Clause license. See LICENSE.txt file in the project root for full license information.
// </copyright>
//----------------------... | bsd-2-clause | C# |
90f1c6c278ff2ba5df62080f70325f57221d1f1d | Use new parsing to be able to process simple typed JSON returned by servers. | clanofthecloud/unity-sdk,xtralifecloud/unity-sdk,clanofthecloud/unity-sdk,clanofthecloud/unity-sdk,clanofthecloud/unity-sdk,xtralifecloud/unity-sdk,clanofthecloud/unity-sdk,xtralifecloud/unity-sdk,clanofthecloud/unity-sdk,xtralifecloud/unity-sdk | CotcSdk/Internal/HttpResponse.cs | CotcSdk/Internal/HttpResponse.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace CotcSdk {
internal class HttpResponse {
public byte[] Body {
get { return body; }
set { body = value; CachedBundle = null; CachedString = null; }
}
public string BodyString {
get {
if (CachedString == null && body != null)... | using System;
using System.Collections.Generic;
using System.Text;
namespace CotcSdk {
internal class HttpResponse {
public byte[] Body {
get { return body; }
set { body = value; CachedBundle = null; CachedString = null; }
}
public string BodyString {
get {
if (CachedString == null && body != null)... | mit | C# |
186d43366f08e9e6d6c50e3bb33afeb34a7054d0 | Add comment explaining UseUrls usage | dbjorge/housecannith,dbjorge/housecannith,dbjorge/housecannith | HouseCannith.Frontend/Program.cs | HouseCannith.Frontend/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
namespace HouseCannith_Frontend
{
public class Program
{
public static void Main(string[] args)
{
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
namespace HouseCannith_Frontend
{
public class Program
{
public static void Main(string[] args)
{
... | mit | C# |
049634ec2be54bf6f3df20f8976c0ec267575f2b | Update IntercomClient. | karonte84/IntercomDotnet,richard-kong/IntercomDotnet,tarr11/IntercomDotnet,mgoodfellow/IntercomDotnet | IntercomDotnet/IntercomClient.cs | IntercomDotnet/IntercomClient.cs | using IntercomDotNet.Resources;
namespace IntercomDotNet
{
public class IntercomClient
{
public const string ApiRoot = "https://api.intercom.io/";
public static IntercomClient GetClient(string appid, string apiKey)
{
var client = new Client
{
... | using IntercomDotNet.Resources;
namespace IntercomDotNet
{
public class IntercomClient
{
public const string ApiRoot = "https://api.intercom.io/";
public static IntercomClient GetClient(string appid, string apiKey)
{
var client = new Client
{
... | apache-2.0 | C# |
cdc0f3401b389e776a2cc5b0dcc84fc7f65c51c9 | Optimize Single to avoid excessive slice operations when we simply need to inspect a single item at a known index. | plioi/parsley | src/Parsley/Grammar.Single.cs | src/Parsley/Grammar.Single.cs | using System.Diagnostics.CodeAnalysis;
namespace Parsley;
partial class Grammar
{
public static Parser<TItem, TItem> Single<TItem>(TItem expected)
{
return Single<TItem>(x => EqualityComparer<TItem>.Default.Equals(x, expected), $"{expected}");
}
public static Parser<TItem, TItem> Single<TItem... | using System.Diagnostics.CodeAnalysis;
namespace Parsley;
partial class Grammar
{
public static Parser<TItem, TItem> Single<TItem>(TItem expected)
{
return Single<TItem>(x => EqualityComparer<TItem>.Default.Equals(x, expected), $"{expected}");
}
public static Parser<TItem, TItem> Single<TItem... | mit | C# |
2121475b8bbc83b0638c9f499acb90dab16ddaef | Add assignation in operation start of node | IfElseSwitch/hc-engine,IfElseSwitch/hc-engine | HCEngine/HCEngine/Default/Language/Statements/Operation.cs | HCEngine/HCEngine/Default/Language/Statements/Operation.cs | using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
namespace HCEngine.Default.Language
{
/// <summary>
/// Base class for Operation item
/// </summary>
public class Operation : ISyntaxTreeItem
{
/// <summary>
/// <see cref="ISyntaxTreeItem.E... | using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
namespace HCEngine.Default.Language
{
/// <summary>
/// Base class for Operation item
/// </summary>
public class Operation : ISyntaxTreeItem
{
/// <summary>
/// <see cref="ISyntaxTreeItem.E... | mit | C# |
6f582ca3dcd6e492f361ebb19eb2e151d3c4b4a9 | increment version number | billtowin/mega-epic-super-tankz,billtowin/mega-epic-super-tankz | modules/AppCore/1/main.cs | modules/AppCore/1/main.cs | //-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
//
// 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 restrictio... | //-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
//
// 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 restrictio... | mit | C# |
eeda7820bf1c779d4728f901039f268117d1bc91 | Allow payments to be marked as reconciled | TDaphneB/XeroAPI.Net,XeroAPI/XeroAPI.Net,MatthewSteeples/XeroAPI.Net,jcvandan/XeroAPI.Net | source/XeroApi/Model/Payment.cs | source/XeroApi/Model/Payment.cs | using System;
namespace XeroApi.Model
{
public class Payment : EndpointModelBase
{
[ItemId]
public Guid? PaymentID { get; set; }
public DateTime Date { get; set; }
public decimal Amount { get; set; }
public string Reference { get; set; }
public... | using System;
namespace XeroApi.Model
{
public class Payment : EndpointModelBase
{
[ItemId]
public Guid? PaymentID { get; set; }
public DateTime Date { get; set; }
public decimal Amount { get; set; }
public string Reference { get; set; }
public... | mit | C# |
7acf638d8d6181767600a43f7ff1e2e1a1728ca6 | Change Transaction Type | songjiahong/revitapisamples | 1.6.FBXExporter/Command.cs | 1.6.FBXExporter/Command.cs | using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FBXExporter
{
[Transaction(TransactionMode.ReadOnly)]
[Regeneration(RegenerationOption.Manual)]
publ... | using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FBXExporter
{
[Transaction(TransactionMode.Manual)]
[Regeneration(RegenerationOption.Manual)]
public... | mit | C# |
65469e5332a2952f6b1cac4685ddc1f2b13b8fe2 | Add an OrderRequest field | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Core/Domain/Order.cs | Anlab.Core/Domain/Order.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Anlab.Core.Models;
using Newtonsoft.Json;
namespace Anlab.Core.Domain
{
public class Order :IDatedEntity
{
public int Id { get; set... | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Anlab.Core.Models;
using Newtonsoft.Json;
namespace Anlab.Core.Domain
{
public class Order :IDatedEntity
{
public int Id { get; set... | mit | C# |
380557ada3bfdd3f3a4839b0185491a2d16cdc4a | Change .NET version | martincostello/api,martincostello/api,martincostello/api | src/API/Views/Home/Index.cshtml | src/API/Views/Home/Index.cshtml | @using System.Reflection
@{
ViewBag.Title = "Home Page";
string? mvcVersion = typeof(Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions)
.Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion;
SiteOptions options = Options.Value;
}
<div class... | @using System.Reflection
@{
ViewBag.Title = "Home Page";
string? mvcVersion = typeof(Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions)
.Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion;
SiteOptions options = Options.Value;
}
<div class... | mit | C# |
ac41301a08a702f8739e74977debebfd7c800fc9 | update test | keithjjones/ArinWhois.NET,MaxHorstmann/ArinWhois.NET | src/ArinWhois.Tests/ApiTests.cs | src/ArinWhois.Tests/ApiTests.cs | using System;
using System.Net;
using ArinWhois.Client;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace ArinWhois.Tests
{
[TestClass]
public class ApiTests
{
[TestMethod]
public void TestNetwork()
{
var arinClient = new ArinClient();
var respon... | using System;
using System.Net;
using ArinWhois.Client;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace ArinWhois.Tests
{
[TestClass]
public class ApiTests
{
[TestMethod]
public void TestNetwork()
{
var arinClient = new ArinClient();
// http:/... | mit | C# |
c98c761a8024de92a94c4ba060629d62c9505159 | Update code generator relative filepath | xoofx/SharpScss,xoofx/SharpScss | src/LibSassGen/CodeGenerator.cs | src/LibSassGen/CodeGenerator.cs | using System;
using System.IO;
namespace LibSassGen
{
public partial class CodeGenerator
{
private const string DefaultIncludeDir = @"../../../../libsass/include";
private const string DefaultOutputFilePath = @"../../../SharpScss/LibSass.Generated.cs";
private const int IndentMultiplie... | using System;
using System.IO;
namespace LibSassGen
{
public partial class CodeGenerator
{
private const string DefaultIncludeDir = @"../../../../../libsass/include";
private const string DefaultOutputFilePath = @"../../../../SharpScss/LibSass.Generated.cs";
private const int IndentMu... | bsd-2-clause | C# |
baa2ab8aab8c0cf670295c4b9da01e708833b549 | Update RoundRobin.cs | tomliversidge/protoactor-dotnet,tomliversidge/protoactor-dotnet,masteryee/protoactor-dotnet,AsynkronIT/protoactor-dotnet,masteryee/protoactor-dotnet | src/Proto.Cluster/RoundRobin.cs | src/Proto.Cluster/RoundRobin.cs | using System.Threading;
namespace Proto.Cluster
{
public class RoundRobin
{
private int _val;
private IMemberStrategy _m;
public RoundRobin(IMemberStrategy m)
{
this._m = m;
}
public string GetNode()
{
var members = _m.GetAllMe... | using System.Threading;
namespace Proto.Cluster
{
public class RoundRobin
{
private int _val;
private IMemberStrategy _m;
public RoundRobin(IMemberStrategy m)
{
this._m = m;
}
public string GetNode()
{
var members = _m.GetAllMe... | apache-2.0 | C# |
434ebfb36353ff4f120a35314e3d9a90b6214144 | remove unused header | Pondidum/Dashen,Pondidum/Dashen,Pondidum/Dashen,Pondidum/Dashen | Dashen/DashboardBuilder.cs | Dashen/DashboardBuilder.cs | using Dashen.Components;
using StructureMap;
namespace Dashen
{
public class DashboardBuilder
{
public static Dashboard Create(DashboardConfiguration configuration)
{
var container = new Container(config =>
{
config.Scan(a =>
{
a.AssemblyContainingType<Dashboard>();
a.WithDefaultConventi... | using Dashen.Components;
using StructureMap;
namespace Dashen
{
public class DashboardBuilder
{
public static Dashboard Create(DashboardConfiguration configuration)
{
var container = new Container(config =>
{
config.Scan(a =>
{
a.AssemblyContainingType<Dashboard>();
a.WithDefaultConventi... | lgpl-2.1 | C# |
28fb1221601afdf629420509ae4147953aa9c3b4 | Make main program class static | printerpam/purpleonion,neoeinstein/purpleonion,printerpam/purpleonion | src/Xpdm.PurpleOnion/Program.cs | src/Xpdm.PurpleOnion/Program.cs | using System;
using System.IO;
using System.Security.Cryptography;
using Mono.Security;
using Mono.Security.Cryptography;
namespace Xpdm.PurpleOnion
{
static class Program
{
private static void Main()
{
long count = 0;
while (true)
{
RSA pki = RSA.Create();
ASN1 asn = RSAExtensions.ToAsn1Key(pki... | using System;
using System.IO;
using System.Security.Cryptography;
using Mono.Security;
using Mono.Security.Cryptography;
namespace Xpdm.PurpleOnion
{
class Program
{
private static void Main()
{
long count = 0;
while (true)
{
RSA pki = RSA.Create();
ASN1 asn = RSAExtensions.ToAsn1Key(pki);
... | bsd-3-clause | C# |
5e748e1bb2209c6909156e72338c96afe612eb3d | Fix #9 | farity/farity | Farity/DefaultTo.cs | Farity/DefaultTo.cs | using System.Linq;
using System.Collections.Generic;
namespace Farity
{
public static partial class F
{
/// <summary>
/// Returns the elements of the specified sequence or the specified value in a singleton collection
/// if the sequence is (null or) empty.
/// </summary>
... | using System.Linq;
using System.Collections.Generic;
namespace Farity
{
public static partial class F
{
/// <summary>
/// Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.
/// </summary>
/// <typeparam name... | mit | C# |
fe925231bbf3f6c546fdccbf9a8844db88768f0d | Allow path-specific invocation | timotei/NUnit3Migration | NUnit3Migration/Program.cs | NUnit3Migration/Program.cs | using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Editing;
using Microsoft.CodeAnalysis.Text;
using NUnit3Migration.Processors;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace NUnit3Migration
{
public class Program
{
... | using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Editing;
using Microsoft.CodeAnalysis.Text;
using NUnit3Migration.Processors;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace NUnit3Migration
{
public class Program
{
private static... | mit | C# |
a0b6d81c838b5b4663526d826f57fbe4febc1ac0 | Increment minor version | ashleydavis/RSG.UnityApp,Real-Serious-Games/RSG.UnityApp | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("RSG.UnityApp")]
[assembly: Assembly... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("RSG.UnityApp")]
[assembly: Assembly... | mit | C# |
f5ab8620110795a675ffbad86f687ae07ad99353 | Bump version | Yuisbean/WebMConverter,nixxquality/WebMConverter,o11c/WebMConverter | Properties/AssemblyInfo.cs | 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("We... | 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("We... | mit | C# |
b743144fd9a9789a5c389bf880e4db663324de43 | change scan method to a bool | DMagic1/Orbital-Science,Kerbas-ad-astra/Orbital-Science | Source/DMAnomalyStorage.cs | Source/DMAnomalyStorage.cs | using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace DMagic
{
public class DMAnomalyStorage
{
private CelestialBody body;
private bool scanned;
//private bool updated;
private Dictionary<string, DMAnomalyObject> anomalies = new Dictionary<string, DMAnomalyObject>()... | using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace DMagic
{
public class DMAnomalyStorage
{
private CelestialBody body;
private bool scanned;
private bool updated;
private Dictionary<string, DMAnomalyObject> anomalies = new Dictionary<string, DMAnomalyObject>();
... | bsd-3-clause | C# |
9a9eb39f65535f3c7a84a30f1c7fedb7bd125d30 | Bump version | rileywhite/Cilador | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | /***************************************************************************/
// Copyright 2013-2014 Riley White
//
// 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.ap... | /***************************************************************************/
// Copyright 2013-2014 Riley White
//
// 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.ap... | apache-2.0 | C# |
2755a47f35db149a4f9476eea7af85948db10810 | Change B.O.U.N.C.E. sound. | fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game | game/server/weapons/repel.sfx.cs | game/server/weapons/repel.sfx.cs | //------------------------------------------------------------------------------
// Revenge Of The Cats: Ethernet
// Copyright (C) 2008, mEthLab Interactive
//------------------------------------------------------------------------------
datablock AudioProfile(RepelExplosionSound)
{
filename = "share/sounds/ro... | //------------------------------------------------------------------------------
// Revenge Of The Cats: Ethernet
// Copyright (C) 2008, mEthLab Interactive
//------------------------------------------------------------------------------
datablock AudioProfile(RepelExplosionSound)
{
filename = "share/sounds/ro... | lgpl-2.1 | C# |
88175fc7a9be7d5d9457de4c53014cd26bc8cbde | Add LeagueId property (#25) | aj-r/RiotNet | RiotNet/Models/LeaguePosition.cs | RiotNet/Models/LeaguePosition.cs | namespace RiotNet.Models
{
/// <summary>
/// Contains league participant information representing a summoner. Also contains information about the legue containing this entry.
/// </summary>
public class LeaguePosition : LeagueItem
{
/// <summary>
/// Gets or sets the ID of the leagu... | namespace RiotNet.Models
{
/// <summary>
/// Contains league participant information representing a summoner. Also contains information about the legue containing this entry.
/// </summary>
public class LeaguePosition : LeagueItem
{
/// <summary>
/// Gets or sets the name of the lea... | mit | C# |
034b8d3450767ef178b573d73fa3f43be3946175 | add wherefragment overload that allows for per-fragment templateing customization | JasperFx/Marten,jokokko/marten,jamesfarrer/marten,tim-cools/Marten,jokokko/marten,jokokko/marten,mdissel/Marten,jmbledsoe/marten,jmbledsoe/marten,jmbledsoe/marten,JasperFx/Marten,jamesfarrer/marten,ericgreenmix/marten,ericgreenmix/marten,mysticmind/marten,tim-cools/Marten,jmbledsoe/marten,mysticmind/marten,mdissel/Mart... | src/Marten/Linq/WhereFragment.cs | src/Marten/Linq/WhereFragment.cs | using Baseline;
using Marten.Util;
using Npgsql;
namespace Marten.Linq
{
public class WhereFragment : IWhereFragment
{
private readonly string _sql;
private readonly object[] _parameters;
private readonly string _token;
public WhereFragment(string sql, params object[] paramete... | using System.Collections.Generic;
using Baseline;
using Marten.Util;
using Npgsql;
namespace Marten.Linq
{
public class WhereFragment : IWhereFragment
{
private readonly string _sql;
private readonly object[] _parameters;
public WhereFragment(string sql, params object[] parameters)
... | mit | C# |
ce912b9ad3bd47caee9312cd2dc47ea97e158249 | put #if UNITY_EDITOR guards around this editor script, because in certain folder arrangements and/or when building a DLL, Unity can erroneously try to include this script in the game build. | foolhuang/XUPorter,trampliu/XUPorter,karlgluck/XUPorter,onevcat/XUPorter,zhutaorun/XUPorter,sq5gvm/XUPorter,maoi/XUPorter | XCodePostProcess.cs | XCodePostProcess.cs | using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.XCodeEditor;
#endif
using System.IO;
public static class XCodePostProcess
{
#if UNITY_EDITOR
[PostProcessBuild]
public static void OnPostProcessBuild( BuildTarget target, string path )
{
if (target != BuildTarget... | using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.XCodeEditor;
using System.IO;
public static class XCodePostProcess
{
[PostProcessBuild]
public static void OnPostProcessBuild( BuildTarget target, string path )
{
if (target != BuildTarget.iPhone) {
Debug.LogWarning("Target is... | mit | C# |
836d7e008a52e977403d94f40e316e2123aeee75 | Bump version. | mios-fi/mios.payment | core/Properties/AssemblyInfo.cs | core/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | bsd-2-clause | C# |
83c34cc7608c21f2d5a62b2783e22040f03d159d | Update Cake.Issues | cake-contrib/Cake.Recipe,cake-contrib/Cake.Recipe | Cake.Recipe/Content/addins.cake | Cake.Recipe/Content/addins.cake | ///////////////////////////////////////////////////////////////////////////////
// ADDINS
///////////////////////////////////////////////////////////////////////////////
#addin nuget:?package=Cake.Codecov&version=0.5.0
#addin nuget:?package=Cake.Coveralls&version=0.9.0
#addin nuget:?package=Cake.Figlet&version=1.2.0
#... | ///////////////////////////////////////////////////////////////////////////////
// ADDINS
///////////////////////////////////////////////////////////////////////////////
#addin nuget:?package=Cake.Codecov&version=0.5.0
#addin nuget:?package=Cake.Coveralls&version=0.9.0
#addin nuget:?package=Cake.Figlet&version=1.2.0
#... | mit | C# |
3a2eaa280815cce4c35c5403f1c12e27c4a3994a | Fix order for key columns on Feature | basp/aegis | Aegis.Cfg/Feature.cs | Aegis.Cfg/Feature.cs | namespace Aegis.Cfg
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;
using System.Linq;
public class Feature : IFeature
{
public Feature()
... | namespace Aegis.Cfg
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;
using System.Linq;
public class Feature : IFeature
{
public Feature()
... | mit | C# |
2d14cfcd4dcf090fc184175abf08bcbfb75a897f | Accumulate forces, not accelerations. | drewnoakes/boing | Boing/Node.cs | Boing/Node.cs | namespace Boing
{
public sealed class Node
{
private Vector2f _force;
public string Id { get; }
public float Mass { get; set; }
public float Damping { get; set; }
public bool IsPinned { get; set; }
public object Tag { get; set; }
public Vector2f Position... | namespace Boing
{
public sealed class Node
{
private Vector2f _acceleration;
public string Id { get; }
public float Mass { get; set; }
public float Damping { get; set; }
public bool IsPinned { get; set; }
public object Tag { get; set; }
public Vector2f Po... | apache-2.0 | C# |
ea01e4ada082cd380c2df4e276aaa1015983d7bf | Fix compilation for the compact framework | sailro/cecil | Mono/Empty.cs | Mono/Empty.cs | //
// Empty.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Copyright (c) 2008 - 2011 Jb Evain
//
// 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
//... | //
// Empty.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Copyright (c) 2008 - 2011 Jb Evain
//
// 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
//... | mit | C# |
eb06195fbf397784cd529ca4939963f40efa92d3 | Set spawn height for soldiers to 20m | TomAlanCarroll/agent-search-and-rescue,TomAlanCarroll/agent-search-and-rescue,TomAlanCarroll/agent-search-and-rescue | Assets/Scripts/SpawnController.cs | Assets/Scripts/SpawnController.cs | using UnityEngine;
public class SpawnController : MonoBehaviour {
public GameObject friendlySoldierPrefab;
public GameObject dronePrefab;
// Constants
public const int NUM_DRONES = 10;
public const int MIN_SOLDIERS_PER_BUILDING = 8;
public const int MAX_SOLDIERS_PER_BUILDING = 12;
// Use this for initializa... | using UnityEngine;
public class SpawnController : MonoBehaviour {
public GameObject friendlySoldierPrefab;
public GameObject dronePrefab;
// Constants
public const int NUM_DRONES = 10;
public const int MIN_SOLDIERS_PER_BUILDING = 8;
public const int MAX_SOLDIERS_PER_BUILDING = 12;
// Use this for initializa... | mit | C# |
dc16cdbf4fbc62ca6144f08da26b774eeba60ae0 | Refactor AutoPilot | setchi/kagaribi,setchi/kagaribi | Assets/Scripts/Title/AutoPilot.cs | Assets/Scripts/Title/AutoPilot.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UniRx;
using UniRx.Triggers;
public class AutoPilot : MonoBehaviour {
[SerializeField] SquareGenerator squareGenerator;
void Awake() {
squareGenerator.onPopTarget.First().Subscribe(target => Move(target.transf... | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UniRx;
using UniRx.Triggers;
public class AutoPilot : MonoBehaviour {
[SerializeField] SquareGenerator squareGenerator;
void Awake() {
var targetQueue = new Queue<GameObject>();
squareGenerator.onPopTarget.... | mit | C# |
eb548cc0377fbc0006a344115b57f8ab672fc312 | Remove extra code | setchi/NotesEditor,setchi/NoteEditor | Assets/Scripts/UndoRedoManager.cs | Assets/Scripts/UndoRedoManager.cs | using System;
using System.Collections.Generic;
using UniRx;
using UniRx.Triggers;
using UnityEngine;
public class UndoRedoManager : SingletonGameObject<UndoRedoManager>
{
Stack<Command> undoStack = new Stack<Command>();
Stack<Command> redoStack = new Stack<Command>();
void Awake()
{
var mode... | using System;
using System.Collections.Generic;
using UniRx;
using UniRx.Triggers;
using UnityEngine;
public class UndoRedoManager : SingletonGameObject<UndoRedoManager>
{
Stack<Command> undoStack = new Stack<Command>();
Stack<Command> redoStack = new Stack<Command>();
void Awake()
{
var mode... | mit | C# |
a118135f2f48c924343cb63237c497d1228146d0 | Change room caching to make it timeout really quickly. Mitigates #1047 as all caches reflect the truth after ~1s. | borisyankov/JabbR,JabbR/JabbR,yadyn/JabbR,yadyn/JabbR,SonOfSam/JabbR,18098924759/JabbR,yadyn/JabbR,e10/JabbR,18098924759/JabbR,mzdv/JabbR,borisyankov/JabbR,M-Zuber/JabbR,timgranstrom/JabbR,SonOfSam/JabbR,borisyankov/JabbR,JabbR/JabbR,M-Zuber/JabbR,timgranstrom/JabbR,mzdv/JabbR,ajayanandgit/JabbR,e10/JabbR,ajayanandgit/... | JabbR/Services/CacheExtensions.cs | JabbR/Services/CacheExtensions.cs | using System;
using JabbR.Models;
namespace JabbR.Services
{
public static class CacheExtensions
{
public static T Get<T>(this ICache cache, string key)
{
return (T)cache.Get(key);
}
public static bool? IsUserInRoom(this ICache cache, ChatUser user, ChatRoom room)
... | using System;
using JabbR.Models;
namespace JabbR.Services
{
public static class CacheExtensions
{
public static T Get<T>(this ICache cache, string key)
{
return (T)cache.Get(key);
}
public static bool? IsUserInRoom(this ICache cache, ChatUser user, ChatRoom room)
... | mit | C# |
b947f256cd6f88aab26ca341a09981ec1d793c1c | add docu | shrayasr/pinboard.net | pinboard.net/Endpoints/Tags.cs | pinboard.net/Endpoints/Tags.cs | using Flurl;
using Newtonsoft.Json;
using pinboard.net.Models;
using pinboard.net.Util;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
namespace pinboard.net.Endpoints
{
public class Tags : Endpoint
{
public Tags(string apiToken, HttpClient httpCli... | using Flurl;
using Newtonsoft.Json;
using pinboard.net.Models;
using pinboard.net.Util;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
namespace pinboard.net.Endpoints
{
public class Tags : Endpoint
{
public Tags(string apiToken, HttpClient httpCli... | mit | C# |
c559cf04b7848605198583bca8eee3f9d047f4b6 | Set navigation bar translucent to false to fix views overlapping. Fix bug [14631] | davidrynn/monotouch-samples,sakthivelnagarajan/monotouch-samples,nelzomal/monotouch-samples,davidrynn/monotouch-samples,YOTOV-LIMITED/monotouch-samples,labdogg1003/monotouch-samples,labdogg1003/monotouch-samples,kingyond/monotouch-samples,nervevau2/monotouch-samples,davidrynn/monotouch-samples,peteryule/monotouch-sampl... | RecipesAndPrinting/AppDelegate.cs | RecipesAndPrinting/AppDelegate.cs | //
// AppDelegate.cs
//
// Author: Jeffrey Stedfast <jeff@xamarin.com>
//
// Copyright (c) 2011 Xamarin Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, in... | //
// AppDelegate.cs
//
// Author: Jeffrey Stedfast <jeff@xamarin.com>
//
// Copyright (c) 2011 Xamarin Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, in... | mit | C# |
9ef29c41ed3c7b75090048b767a1287d0a663434 | Fix build error in LoggerMock | SAEnergy/Infrastructure,SAEnergy/Superstructure,SAEnergy/Infrastructure | Src/Test/Test.Mocks/LoggerMock.cs | Src/Test/Test.Mocks/LoggerMock.cs | using Core.Interfaces.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.CompilerServices;
namespace Test.Mocks
{
public class LoggerMock : ILogger
{
public bool IsRunning { get; private set; }
publ... | using Core.Interfaces.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.CompilerServices;
namespace Test.Mocks
{
public class LoggerMock : ILogger
{
public bool IsRunning { get; }
public void AddLo... | mit | C# |
fb8679a9794d02acc620916dd31c789c2d1ede36 | Update IViewModel.cs | dingjimmy/primer | Primer/IViewModel.cs | Primer/IViewModel.cs | // Copyright (c) James Dingle
using System;
namespace Primer
{
public interface IViewModel
{
bool IsLoaded { get; set; }
string DisplayName { get; set; }
IMessagingChannel Channel { get; private set; }
IValidator Validator { get; private set; }
ILogger Logger { get; pr... | // Copyright (c) James Dingle
using System;
namespace Primer
{
public interface IViewModel
{
bool IsLoaded { get; set; }
string DisplayName { get; set; }
IMessagingChannel Channel { get; private set; }
IValidator Validator { get; private set; }
ILogger { get; private s... | mit | C# |
53c89b0c9b0b9ef93b9eecbe817cde87452d6a23 | update version | RainwayApp/warden | Warden/Properties/AssemblyInfo.cs | Warden/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: AssemblyTit... | 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: AssemblyTit... | apache-2.0 | C# |
3e77d25a2b759f5680a1682e4f4134c9ed538fd1 | save room tool fixes | solfen/Rogue_Cadet | Assets/Editor/SaveRoomPrefab.cs | Assets/Editor/SaveRoomPrefab.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public class SaveRoomPrefab {
private static RoomDynamicContent[] lastRoomContents;
[MenuItem("Tools/Save room to prefab _F5", true)]
private static bool Validate() {
return Selection.activeGameObjec... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public class SaveRoomPrefab {
private static RoomDynamicContent[] lastRoomContents;
[MenuItem("Tools/Save room to prefab _F5", true)]
private static bool Validate() {
return Selection.activeGameObjec... | mit | C# |
e88b0e55875c682987eff45b521f58d6c6391392 | Fix tests | smoogipoo/osu,peppy/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,ppy/osu | osu.Game.Rulesets.Osu.Tests/OsuDifficultyCalculatorTest.cs | osu.Game.Rulesets.Osu.Tests/OsuDifficultyCalculatorTest.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.Game.Beatmaps;
using osu.Game.Rulesets.Difficulty;
using osu.Game.Rulesets.Osu.Difficulty;
using osu.Game.Rulesets.Osu.Mods;
using osu.Ga... | // 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.Game.Beatmaps;
using osu.Game.Rulesets.Difficulty;
using osu.Game.Rulesets.Osu.Difficulty;
using osu.Game.Rulesets.Osu.Mods;
using osu.Ga... | mit | C# |
039a202809e65fd5e5e7b625d8b6dd0d253de462 | Convert Language enum to value type | Ontica/Empiria.Extended | Cognition/RootTypes/Language.cs | Cognition/RootTypes/Language.cs | /* Empiria Extensions ****************************************************************************************
* *
* Module : Cognitive Services Component : Service provider ... | /* Empiria Extensions ****************************************************************************************
* *
* Module : Cognitive Services Component : Service provider ... | agpl-3.0 | C# |
9e2cad1a85fd26b55c933a74304e6d70f75b7aec | increase version number | aspnetboilerplate/module-zero-template,aspnetboilerplate/module-zero-template,aspnetboilerplate/module-zero-template | src/AbpCompanyName.AbpProjectName.Core/AppVersionHelper.cs | src/AbpCompanyName.AbpProjectName.Core/AppVersionHelper.cs | using System;
using System.IO;
using Abp.Reflection.Extensions;
namespace AbpCompanyName.AbpProjectName
{
/// <summary>
/// Central point for application version.
/// </summary>
public class AppVersionHelper
{
/// <summary>
/// Gets current version of the application.
/// I... | using System;
using System.IO;
using Abp.Reflection.Extensions;
namespace AbpCompanyName.AbpProjectName
{
/// <summary>
/// Central point for application version.
/// </summary>
public class AppVersionHelper
{
/// <summary>
/// Gets current version of the application.
/// I... | mit | C# |
e24cb37ed02c2a8d1b92c2648efd8628d10f9c23 | Test adapted to both translators | ManufacturingIntelligence/nhibernate-core,gliljas/nhibernate-core,nhibernate/nhibernate-core,ManufacturingIntelligence/nhibernate-core,nhibernate/nhibernate-core,fredericDelaporte/nhibernate-core,nkreipke/nhibernate-core,RogerKratz/nhibernate-core,fredericDelaporte/nhibernate-core,hazzik/nhibernate-core,livioc/nhiberna... | src/NHibernate.Test/NHSpecificTest/EmptyMappingsFixture.cs | src/NHibernate.Test/NHSpecificTest/EmptyMappingsFixture.cs | using System;
using System.Collections;
using System.Data;
using NHibernate.Transaction;
using NUnit.Framework;
namespace NHibernate.Test.NHSpecificTest
{
/// <summary>
/// This fixture contains no mappings, it is thus faster and can be used
/// to run tests for basic features that don't require any mapping files
... | using System;
using System.Collections;
using System.Data;
using NHibernate.Transaction;
using NUnit.Framework;
namespace NHibernate.Test.NHSpecificTest
{
/// <summary>
/// This fixture contains no mappings, it is thus faster and can be used
/// to run tests for basic features that don't require any mapping files
... | lgpl-2.1 | C# |
d4192d45d0760ec7d68cd605adc01240bc988018 | Use new DApplication.SessionBus | mono/dbus-sharp-glib,mono/dbus-sharp-glib | glib/TestExport.cs | glib/TestExport.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using GLib;
using Gtk;
using NDesk.DBus;
using org.freedesktop.DBus;
public class TestGLib
{
public static void OnClick (object o, EventArgs args)
{
demo.Say ("Button clic... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using GLib;
using Gtk;
using NDesk.DBus;
using org.freedesktop.DBus;
public class TestGLib
{
public static void OnClick (object o, EventArgs args)
{
demo.Say ("Button clic... | mit | C# |
e4c79934707aa1a0aa6c7066941c5b3c6e70ef57 | Update to v0.2 tag | lazear/Libra | Libra/Properties/AssemblyInfo.cs | Libra/Properties/AssemblyInfo.cs | using System.Resources;
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... | using System.Resources;
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... | mit | C# |
171f4452e3d97fe0a207313081e7619a15daa759 | Repair failing functional test | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | test/WebSites/RoutingWebSite/Controllers/TeamController.cs | test/WebSites/RoutingWebSite/Controllers/TeamController.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNetCore.Mvc;
namespace RoutingWebSite
{
[Route("/Teams", Order = 1)]
public class TeamController : Controller
{
... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNetCore.Mvc;
namespace RoutingWebSite
{
[Route("/Teams", Order = 1)]
public class TeamController : Controller
{
... | apache-2.0 | C# |
9813aeb7247d91de5abe0bc3da96ba5cbafb1828 | Fix SpillTileReaction errors (#10910) | space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 | Content.Server/Chemistry/TileReactions/SpillTileReaction.cs | Content.Server/Chemistry/TileReactions/SpillTileReaction.cs | using Content.Server.Fluids.EntitySystems;
using Content.Shared.Chemistry.Components;
using Content.Shared.Chemistry.Reaction;
using Content.Shared.Chemistry.Reagent;
using Content.Shared.FixedPoint;
using Content.Shared.Slippery;
using Content.Shared.StepTrigger;
using Content.Shared.StepTrigger.Components;
using Cont... | using Content.Server.Fluids.EntitySystems;
using Content.Shared.Chemistry.Components;
using Content.Shared.Chemistry.Reaction;
using Content.Shared.Chemistry.Reagent;
using Content.Shared.FixedPoint;
using Content.Shared.Slippery;
using Content.Shared.StepTrigger;
using Content.Shared.StepTrigger.Systems;
using JetBra... | mit | C# |
94fbba76bf11440c0d97403c4123247b69e31af3 | Fix crash when clearing resetting template | SaberSnail/GoldenAnvil.Utility | GoldenAnvil.Utility.Windows/EnumToDisplayStringConverter.cs | GoldenAnvil.Utility.Windows/EnumToDisplayStringConverter.cs | using System;
using System.Resources;
using System.Windows.Data;
namespace GoldenAnvil.Utility.Windows
{
public sealed class EnumToDisplayStringConverter : IValueConverter
{
public static readonly EnumToDisplayStringConverter Instance = new EnumToDisplayStringConverter();
public object Convert(object value, Ty... | using System;
using System.Resources;
using System.Windows.Data;
namespace GoldenAnvil.Utility.Windows
{
public sealed class EnumToDisplayStringConverter : IValueConverter
{
public static readonly EnumToDisplayStringConverter Instance = new EnumToDisplayStringConverter();
public object Convert(object value, Ty... | mit | C# |
d6adccfd48015cca6443657942392ec54187b7d2 | Disable ubuntu and macos | NJsonSchema/NJsonSchema | build/Build.CI.GitHubActions.cs | build/Build.CI.GitHubActions.cs | using Nuke.Common.CI.GitHubActions;
[GitHubActionsAttribute(
"pr",
GitHubActionsImage.WindowsLatest,
//GitHubActionsImage.UbuntuLatest,
//GitHubActionsImage.MacOsLatest,
OnPullRequestBranches = new [] { "master", "main" },
PublishArtifacts = false,
InvokedTargets = new[] { nameof(Compile), ... | using Nuke.Common.CI.GitHubActions;
[GitHubActionsAttribute(
"pr",
GitHubActionsImage.WindowsLatest,
GitHubActionsImage.UbuntuLatest,
GitHubActionsImage.MacOsLatest,
OnPullRequestBranches = new [] { "master", "main" },
PublishArtifacts = false,
InvokedTargets = new[] { nameof(Compile), name... | mit | C# |
ea4e4e03dbf38d81573b2afb94e3d13b1b1b71cf | Trim any strings before comparision to fix #382 | tfsaggregator/tfsaggregator | Aggregator.Core/Aggregator.Core/Extensions/StringExtensions.cs | Aggregator.Core/Aggregator.Core/Extensions/StringExtensions.cs | using System;
namespace Aggregator.Core.Extensions
{
public static class StringExtensions
{
/// <summary>
/// Case insensitive comparison plus '*' wildcard matching
/// </summary>
/// <param name="lhs">The LHS.</param>
/// <param name="rhs">The RHS.</param>
/// ... | using System;
namespace Aggregator.Core.Extensions
{
public static class StringExtensions
{
/// <summary>
/// Case insensitive comparison plus '*' wildcard matching
/// </summary>
/// <param name="lhs">The LHS.</param>
/// <param name="rhs">The RHS.</param>
/// ... | apache-2.0 | C# |
65a7c5e1226b82c8bc1d57effd6a7e22f3d27a8e | Remove obsolete methods and add sumary texts. | generik0/Smooth.IoC.Dapper.Repository.UnitOfWork,generik0/Smooth.IoC.Dapper.Repository.UnitOfWork | src/Smooth.IoC.Dapper.Repository.UnitOfWork/Data/IDbFactory.cs | src/Smooth.IoC.Dapper.Repository.UnitOfWork/Data/IDbFactory.cs | using System;
using System.Data;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Data
{
public interface IDbFactory
{
/// <summary>
/// Creates an instance of your ISession expanded interface
/// </summary>
/// <typeparam name="T"></typeparam>
/// <returns>ISession</r... | using System;
using System.Data;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Data
{
public interface IDbFactory
{
/// <summary>
/// Creates an instance of your ISession expanded interface
/// </summary>
/// <typeparam name="T"></typeparam>
/// <returns>ISession</r... | mit | C# |
5ccd3550197ad3fc46c0aca7f45b6a5da09a86d1 | Index has the same display whether logged in or not. (#73) | VenusInterns/BlogTemplate,VenusInterns/BlogTemplate,VenusInterns/BlogTemplate | BlogTemplate/Pages/Index.cshtml.cs | BlogTemplate/Pages/Index.cshtml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using BlogTemplate.Models;
using System.IO;
namespace BlogTemplate.Pages
{
public class IndexModel : PageModel
{
const string Stora... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using BlogTemplate.Models;
using System.IO;
namespace BlogTemplate.Pages
{
public class IndexModel : PageModel
{
const string Stora... | mit | C# |
fbb96c5a18c4be7a654808879726b1bd7ec3706f | Add parser error messages to implmap. | Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver | src/AsmResolver.DotNet/Serialized/SerializedImplementationMap.cs | src/AsmResolver.DotNet/Serialized/SerializedImplementationMap.cs | using System;
using AsmResolver.PE.DotNet.Metadata.Strings;
using AsmResolver.PE.DotNet.Metadata.Tables;
using AsmResolver.PE.DotNet.Metadata.Tables.Rows;
namespace AsmResolver.DotNet.Serialized
{
/// <summary>
/// Represents a lazily initialized implementation of <see cref="ImplementationMap"/> that is read ... | using System;
using AsmResolver.PE.DotNet.Metadata.Strings;
using AsmResolver.PE.DotNet.Metadata.Tables;
using AsmResolver.PE.DotNet.Metadata.Tables.Rows;
namespace AsmResolver.DotNet.Serialized
{
/// <summary>
/// Represents a lazily initialized implementation of <see cref="ImplementationMap"/> that is read ... | mit | C# |
1d6d9b082efa5cfcbaf8842281000d80130c042a | Fix the DataContextTypeAttribute | quartz-software/kephas,quartz-software/kephas,raimu/kephas | src/Kephas.Data/Commands/Composition/DataContextTypeAttribute.cs | src/Kephas.Data/Commands/Composition/DataContextTypeAttribute.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="DataContextTypeAttribute.cs" company="Quartz Software SRL">
// Copyright (c) Quartz Software SRL. All rights reserved.
// </copyright>
// <summary>
// Implements the data cont... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="DataContextTypeAttribute.cs" company="Quartz Software SRL">
// Copyright (c) Quartz Software SRL. All rights reserved.
// </copyright>
// <summary>
// Implements the data cont... | mit | C# |
8ec6970e17232a47d7baffee355eb966a16c247d | Update GetRelativeTime.cs | BlarghLabs/MoarUtils | commands/time/GetRelativeTime.cs | commands/time/GetRelativeTime.cs | using System;
namespace MoarUtils.commands.time {
public static class GetRelativeTime {
public static string Execute(DateTime dt) {
const int SECOND = 1;
const int MINUTE = 60 * SECOND;
const int HOUR = 60 * MINUTE;
const int DAY = 24 * HOUR;
const int MONTH = 30 * DAY;
var ... | using System;
namespace MoarUtils.commands.time {
public static class GetRelativeTime {
public static string Execute(DateTime dt) {
const int SECOND = 1;
const int MINUTE = 60 * SECOND;
const int HOUR = 60 * MINUTE;
const int DAY = 24 * HOUR;
const int MONTH = 30 * DAY;
var ... | mit | C# |
81f004f0aeedd4d241f23f9e7aee35de2d9bae5a | Change default user agent for web views | JosefNemec/Playnite,JosefNemec/Playnite,JosefNemec/Playnite | source/Playnite/CefTools.cs | source/Playnite/CefTools.cs | using CefSharp;
using CefSharp.Wpf;
using Playnite.Common;
using Playnite.Settings;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Playnite
{
public class CefTools
{
public static bool IsInit... | using CefSharp;
using CefSharp.Wpf;
using Playnite.Common;
using Playnite.Settings;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Playnite
{
public class CefTools
{
public static bool IsInit... | mit | C# |
6891f4d76b8cfc2f7fd5c64fbdc5759eb1a05e3e | Update Slot.cs | kristjank/ark-net,sharkdev-j/ark-net | ark-net/Core/Slot.cs | ark-net/Core/Slot.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Slot.cs" company="Ark">
// MIT License
// //
// // Copyright (c) 2017 Kristjan Košič
// //
// // Permission is hereby granted, free of charge, to any person obta... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Slot.cs" company="Ark Labs">
// MIT License
// //
// // Copyright (c) 2017 Kristjan Košič
// //
// // Permission is hereby granted, free of charge, to any person... | mit | C# |
b8e9deedcf77e26830f83a44e855d1cd79ec8e6f | Bump version to 0.9.6 | ar3cka/Journalist | src/SolutionInfo.cs | src/SolutionInfo.cs | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyProductAttribute("Journalist")]
[assembly: AssemblyVersionAttribute("0.9.6")]
[assembly: AssemblyInformationalVersionAttribute("0.9.6")]
[assembly: AssemblyFileVersionAttribute("0.9.6")]
[assembly: AssemblyCompanyAttribute("Anton Mednonogov")]
namespace... | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyProductAttribute("Journalist")]
[assembly: AssemblyVersionAttribute("0.9.5")]
[assembly: AssemblyInformationalVersionAttribute("0.9.5")]
[assembly: AssemblyFileVersionAttribute("0.9.5")]
[assembly: AssemblyCompanyAttribute("Anton Mednonogov")]
namespace... | apache-2.0 | C# |
df29ece012129a641855708f7fadd47c9f9baa04 | Remove unused property | mstrother/BmpListener | BmpListener/Bgp/OptionalParameter.cs | BmpListener/Bgp/OptionalParameter.cs | using System;
using System.Linq;
namespace BmpListener.Bgp
{
public abstract class OptionalParameter
{
public enum Type
{
Capabilities = 2
}
protected OptionalParameter(ref ArraySegment<byte> data)
{
ParameterType = (Type) data.First();
... | using System;
using System.Linq;
namespace BmpListener.Bgp
{
public abstract class OptionalParameter
{
public enum Type : byte
{
Capabilities = 2
}
protected OptionalParameter(ArraySegment<byte> data)
{
ParameterType = (Type) data.First();
... | mit | C# |
ed264518b7dfea6d7f7366b2c03eca9baf24ec50 | Delete override keyword from Equals method to indicate that this method implement interface | witoong623/TirkxDownloader,witoong623/TirkxDownloader | Framework/Pair.cs | Framework/Pair.cs | using System;
using System.Collections.Generic;
namespace TirkxDownloader.Framework
{
public sealed class Pair<TFirst, TSecond> : IEquatable<Pair<TFirst, TSecond>>
{
private readonly TFirst first;
private readonly TSecond second;
public Pair(TFirst first, TSecond second)
{
... | using System;
using System.Collections.Generic;
namespace TirkxDownloader.Framework
{
public sealed class Pair<TFirst, TSecond> : IEquatable<Pair<TFirst, TSecond>>
{
private readonly TFirst first;
private readonly TSecond second;
public Pair(TFirst first, TSecond second)
{
... | mit | C# |
fcc0093ffd87fab750979c342868bf7933cccd6f | Add proper constant for maximum mouse grid LEDs | WolfspiritM/Colore,CoraleStudios/Colore | Corale.Colore/Razer/Mouse/Constants.cs | Corale.Colore/Razer/Mouse/Constants.cs | // ---------------------------------------------------------------------------------------
// <copyright file="Constants.cs" company="Corale">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and a... | // ---------------------------------------------------------------------------------------
// <copyright file="Constants.cs" company="Corale">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and a... | mit | C# |
3b83d3cdc1865438fec3c9109117eb115d0323db | drop pieces on a timer | JayBazuzi/BazuziTetris | Source/Program.cs | Source/Program.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace BazuziTetris
{
class Program
{
static void Main(string[] args)
{
Game game = new Game();
Cons... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BazuziTetris
{
class Program
{
static void Main(string[] args)
{
Game game = new Game();
do
{
... | mit | C# |
fc9daf36112bc68a3437ed34f941f3ca0f735db1 | Fix ImpersonationHandle so that it survives multiple disposes. | antiduh/nsspi | Contexts/ImpersonationHandle.cs | Contexts/ImpersonationHandle.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NSspi.Contexts
{
public class ImpersonationHandle : IDisposable
{
// Notes:
// Impersonate:
// http://msdn.microsoft.com/en-us/library/windows/deskt... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NSspi.Contexts
{
public class ImpersonationHandle : IDisposable
{
// Notes:
// Impersonate:
// http://msdn.microsoft.com/en-us/library/windows/deskt... | bsd-2-clause | C# |
bfe37b5316e6c2cfa43f3f440820917860d3725c | Add WIP and Labels to MergeRequest model | Xarlot/NGitLab,maikebing/NGitLab | NGitLab/NGitLab/Models/MergeRequest.cs | NGitLab/NGitLab/Models/MergeRequest.cs | using System;
using System.Runtime.Serialization;
namespace NGitLab.Models
{
[DataContract]
public class MergeRequest
{
public const string Url = "/merge_requests";
[DataMember(Name = "id")]
public int Id;
[DataMember(Name = "iid")]
public int Iid;
[Data... | using System;
using System.Runtime.Serialization;
namespace NGitLab.Models
{
[DataContract]
public class MergeRequest
{
public const string Url = "/merge_requests";
[DataMember(Name = "id")]
public int Id;
[DataMember(Name = "iid")]
public int Iid;
[Data... | mit | C# |
882611602117e6acb83a0f39595ddb01f215c7e9 | fix structure | noto0648/OrangeNBT | OrangeNBT.Data/Format/StructureBase.cs | OrangeNBT.Data/Format/StructureBase.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using OrangeNBT.NBT;
namespace OrangeNBT.Data.Format
{
public abstract class StructureBase
{
protected readonly int _width;
protected readonly int _height;
protected readonly int _l... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using OrangeNBT.NBT;
namespace OrangeNBT.Data.Format
{
public abstract class StructureBase
{
protected readonly int _width;
protected readonly int _height;
protected readonly int _l... | mit | C# |
01244010c2b390913e2b94807a91e340c9237916 | Handle null move used when the pokemon must skip the turn | NextLight/PokeBattle_Server | PokeBattle/PokeBattle/Battle.cs | PokeBattle/PokeBattle/Battle.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PokeBattle
{
class Battle
{
Pokemon[] pokemons;
Random rand;
// TODO: use in-battle stats
public Battle(Pokemon p1, Pokemon p2)
{
th... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PokeBattle
{
class Battle
{
Pokemon[] pokemons;
Random rand;
public Battle(Pokemon p1, Pokemon p2)
{
this.pokemons = new Pokemon[] { p1, p2 ... | mit | C# |
1ccf616cdeb520dfae32a4bb92fd133a0be65472 | remove warning | zericco/Elite-Insight,zericco/Elite-Insight | RegulatedNoise.Test/EddnTest.cs | RegulatedNoise.Test/EddnTest.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using RegulatedNoise.Core.DomainModel;
using RegulatedNoise.Enums_and_Utility_Classes;
namespace RegulatedNoise.Test
{
[TestClass]
public class EddnTest
{
[TestMethod]
[Ignore]
// activate only when build with NO_PAT... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using RegulatedNoise.Core.DomainModel;
using RegulatedNoise.Enums_and_Utility_Classes;
namespace RegulatedNoise.Test
{
[TestClass]
public class EddnTest
{
[TestMethod]
[Ignore]
// activate only when build with NO_PAT... | mit | C# |
06e92f7e92dc026c255d329404017ac2d8c24872 | Return instead of using a variable. | airbrake/SharpBrake,kayoom/SharpBrake,cbtnuggets/SharpBrake,airbrake/SharpBrake | Tests/AirbrakeValidator.cs | Tests/AirbrakeValidator.cs | using System;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Schema;
using NUnit.Framework;
namespace SharpBrake.Tests
{
public class AirbrakeValidator
{
public static void ValidateSchema(string xml)
{
var schema = GetXmlSchema();
XmlReaderSetti... | using System;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Schema;
using NUnit.Framework;
namespace SharpBrake.Tests
{
public class AirbrakeValidator
{
public static void ValidateSchema(string xml)
{
var schema = GetXmlSchema();
XmlReaderSetti... | mit | C# |
9a3abe3e714ce41b3918ef0bd4ce705d635cd86b | Revert "Dictionary Initializer setup" | BillWagner/TourOfCSharp6 | TourOfCSharp6/Program.cs | TourOfCSharp6/Program.cs | using System;
using System.Linq.Enumerable;
namespace TourOfCSharp6
{
class Program
{
static void Main(string[] args)
{
var random = new System.Random();
var range = Range(1, 100);
var sequence = from n in range
select new Point(
... | using System;
using System.Collections.Generic;
using System.Linq.Enumerable;
namespace TourOfCSharp6
{
class Program
{
static void Main(string[] args)
{
var vector = new Dictionary<string, Point>();
vector["start"] = new Point(0, 0);
vector["end"] = new Poi... | mit | C# |
01d290491c2773b420e18552bd1243479e9af263 | Fix Util indentation | ukahoot/ukahoot,ukahoot/ukahoot.github.io,ukahoot/ukahoot,ukahoot/ukahoot,ukahoot/ukahoot.github.io,ukahoot/ukahoot,ukahoot/ukahoot.github.io | TokenServer/src/Util.cs | TokenServer/src/Util.cs | using System;
using System.Text;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
namespace UKahoot {
public static class Util {
public const string TOKEN_ENDPOINT = "https://kahoot.it/reserve/session/";
public const string ENDPOINT_URI = "https://kahoot.it/";
public const string ENDPOINT_... | using System;
using System.Text;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
namespace UKahoot {
public static class Util {
public const string TOKEN_ENDPOINT = "https://kahoot.it/reserve/session/";
public const string ENDPOINT_URI = "https://kahoot.it/";
public const string ENDPOINT_... | mit | C# |
2e6fe588cbafb60a6e66d2233ca54e10d0e84482 | Change log file dir | LibertyLocked/webscripthook,LibertyLocked/webscripthook,LibertyLocked/webscripthook,LibertyLocked/webscripthook | VStats-plugin/Logger.cs | VStats-plugin/Logger.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace VStats_plugin
{
public static class Logger
{
public static void Log(object message)
{
#if DEBUG
File.AppendAllText(@".\scripts\VStats.log",... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace VStats_plugin
{
public static class Logger
{
public static void Log(object message)
{
#if DEBUG
File.AppendAllText(@"VStats.log", DateTime.... | mit | C# |
c6ade0dbdc7756ecb18928d7adf6e26634ff7c34 | Remove unused construdtor. | modulexcite/msgpack-cli,msgpack/msgpack-cli,scopely/msgpack-cli,msgpack/msgpack-cli,undeadlabs/msgpack-cli,modulexcite/msgpack-cli,undeadlabs/msgpack-cli,scopely/msgpack-cli | cli/src/MsgPack/StreamPacker.cs | cli/src/MsgPack/StreamPacker.cs | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2010 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.apache.or... | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2010 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.apache.or... | apache-2.0 | C# |
cd10af633cdab398e9cf443c1677d087288ae769 | Remove unused private method | ppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu | osu.Game/Configuration/SessionStatics.cs | osu.Game/Configuration/SessionStatics.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.Graphics.UserInterface;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Overlays;
namespace osu.Game.Configuration
{
/// <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.Framework.Bindables;
using osu.Game.Graphics.UserInterface;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Overlays;
namespace osu.Game.Configur... | mit | C# |
5a1654893223486ca082e6456c8994a25c377ae4 | Update vendor api to ensure task returned | stoiveyp/Alexa.NET.Management | Alexa.NET.Management/IVendorApi.cs | Alexa.NET.Management/IVendorApi.cs | using System.Threading.Tasks;
using Alexa.NET.Management.Vendors;
using Refit;
namespace Alexa.NET.Management
{
[Headers("Authorization: Bearer")]
public interface IVendorApi
{
[Get("/vendors")]
Task<Vendor[]> Get();
}
}
| using Alexa.NET.Management.Vendors;
using Refit;
namespace Alexa.NET.Management
{
[Headers("Authorization: Bearer")]
public interface IVendorApi
{
[Get("/vendors")]
Vendor[] Get();
}
}
| mit | C# |
c4d5b31f43973a5b963757324aa472a0e4ba4691 | Create v0.5 package. | Steve-Fenton/CAPTTIA,Steve-Fenton/CAPTTIA | Capttia/Properties/AssemblyInfo.cs | Capttia/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Capttia")]
[assembly: AssemblyDescription("CAPTTIA - Completely Automated Public Turing test That Isn't Annoying.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Capttia")]
[as... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Capttia")]
[assembly: AssemblyDescription("CAPTTIA - Completely Automated Public Turing test That Isn't Annoying.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Capttia")]
[as... | apache-2.0 | C# |
893fdcd524fa379e21c16c7bba201ac706f6f206 | remove required attribute for ExpectedPreviousToken in AudioItemStream | stoiveyp/alexa-skills-dotnet,timheuer/alexa-skills-dotnet | Alexa.NET/Response/Directive/AudioItemStream.cs | Alexa.NET/Response/Directive/AudioItemStream.cs | using Newtonsoft.Json;
namespace Alexa.NET.Response.Directive
{
public class AudioItemStream
{
[JsonRequired]
[JsonProperty("url")]
public string Url { get; set; }
[JsonRequired]
[JsonProperty("token")]
public string Token { get; set; }
[JsonPr... | using Newtonsoft.Json;
namespace Alexa.NET.Response.Directive
{
public class AudioItemStream
{
[JsonRequired]
[JsonProperty("url")]
public string Url { get; set; }
[JsonRequired]
[JsonProperty("token")]
public string Token { get; set; }
[JsonRequired]
... | mit | C# |
1f3a453c1ec7cda8f8595285d2062e5052b83f92 | Fix a bug where procedural model panel crashes app when effects are loaded | effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer | Dev/Editor/Effekseer/GUI/Dock/ProcedualModel.cs | Dev/Editor/Effekseer/GUI/Dock/ProcedualModel.cs | using System;
using Effekseer.Data;
namespace Effekseer.GUI.Dock
{
class ProcedualModel : DockPanel
{
readonly Component.ParameterList paramerterList = null;
public ProcedualModel()
{
Label = Icons.PanelDynamicParams + Resources.GetString("ProcedualModel_Name") + "###ProcedualModel";
paramerterList = n... | using System;
using Effekseer.Data;
namespace Effekseer.GUI.Dock
{
class ProcedualModel : DockPanel
{
readonly Component.ParameterList paramerterList = null;
public ProcedualModel()
{
Label = Icons.PanelDynamicParams + Resources.GetString("ProcedualModel_Name") + "###ProcedualModel";
paramerterList = n... | mit | C# |
a6efcc866fd11c0861c11fbbc87bfbf21fb80929 | Remove old XNAControls code from initialization. Crash & burn if old XNAControls are used. | ethanmoffat/EndlessClient | EndlessClient/XNAControlsDependencyContainer.cs | EndlessClient/XNAControlsDependencyContainer.cs | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using EndlessClient.GameExecution;
using EOLib.DependencyInjection;
using Microsoft.Practices.Unity;
using Microsoft.Xna.Framework;
namespace EndlessClient
{
public ... | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using EndlessClient.GameExecution;
using EOLib.DependencyInjection;
using Microsoft.Practices.Unity;
using Microsoft.Xna.Framework;
namespace EndlessClient
{
public ... | mit | C# |
cedf61878d037a84cd8582b3b2d7ea80a42e646c | fix integraion tests execution folder | Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek | Engine.Tests/TestDrivers/CouchbaseTestDriver.cs | Engine.Tests/TestDrivers/CouchbaseTestDriver.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Engine.DataTypes;
using Engine.Drivers.Context;
using Engine.Drivers.Rules;
using Couchbase;
using Tweek.Drivers.CouchbaseDriver;
using Engine.Drivers.Rules.Git;
using System.IO;
using Couchbase.Co... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Engine.DataTypes;
using Engine.Drivers.Context;
using Engine.Drivers.Rules;
using Couchbase;
using Tweek.Drivers.CouchbaseDriver;
using Engine.Drivers.Rules.Git;
using System.IO;
using Couchbase.Co... | mit | C# |
eeb8850a71058148c695a052acbe55ca55bf8a21 | Fix AggregationResult error | InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform | InfinniPlatform.Core/Index/AggregationResult.cs | InfinniPlatform.Core/Index/AggregationResult.cs | using System.Collections.Generic;
using InfinniPlatform.Sdk.Dynamic;
using InfinniPlatform.Sdk.Registers;
namespace InfinniPlatform.Core.Index
{
/// <summary>
/// Результат выполнения агрегации по одному измерению
/// </summary>
public class AggregationResult
{
private readonly List<A... | using System.Collections.Generic;
using InfinniPlatform.Sdk.Registers;
namespace InfinniPlatform.Core.Index
{
/// <summary>
/// Результат выполнения агрегации по одному измерению
/// </summary>
public class AggregationResult
{
private readonly List<AggregationResult> _backets;
... | agpl-3.0 | C# |
9eb203a63c58151011b838df5a17af0a46c5e37c | Add console output | pvdstel/cgppm | src/cgppm/Launcher.cs | src/cgppm/Launcher.cs | using cgppm.Netpbm;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace cgppm
{
public class Launcher
{
private static List<Image> _convertedImages = new List<Image>();
[STAThread]
public static void Main(string[] args)
{
C... | using cgppm.Netpbm;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace cgppm
{
public class Launcher
{
private static List<Image> _convertedImages = new List<Image>();
[STAThread]
public static void Main(string[] args)
{
L... | mpl-2.0 | C# |
f62d06507567001b2464939f928be748f0399493 | hide text on start. | SIE-VR/demo1,SIE-VR/demo1,SIE-VR/demo1 | Assets/Scripts/SafeZoneDetect.cs | Assets/Scripts/SafeZoneDetect.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class SafeZoneDetect : MonoBehaviour {
public GameObject GUI_text;
private Text text;
private bool LeftHand_inside, RightHand_inside;
// Use this for initialization
void Start () {
text = GUI_text.GetCom... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class SafeZoneDetect : MonoBehaviour {
public GameObject GUI_text;
private Text text;
private bool LeftHand_inside, RightHand_inside;
// Use this for initialization
void Start () {
text = GUI_text.GetCom... | mit | C# |
34b5234285f7986abf0cb76f488bf617016330fc | Fix warnings. | JohanLarsson/Gu.Persist,JohanLarsson/Gu.Settings | Gu.Persist.Demo/RepositoryVm.cs | Gu.Persist.Demo/RepositoryVm.cs | namespace Gu.Persist.Demo
{
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using Gu.Persist.Core;
using Gu.Persist.Git;
using Gu.Persist.NewtonsoftJson;
using RepositorySettings = Gu.Persist.NewtonsoftJson.Reposito... | namespace Gu.Persist.Demo
{
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using Gu.Persist.Core;
using Gu.Persist.Git;
using Gu.Persist.NewtonsoftJson;
using RepositorySettings = Gu.Persist.NewtonsoftJson.Reposito... | mit | C# |
5de7d91681fd624ca16ab0173e3bb3a517cd6003 | fix copy and paste boo-boo | khellang/octokit.net,TattsGroup/octokit.net,SamTheDev/octokit.net,dlsteuer/octokit.net,mminns/octokit.net,fake-organization/octokit.net,dampir/octokit.net,cH40z-Lord/octokit.net,M-Zuber/octokit.net,geek0r/octokit.net,shiftkey-tester/octokit.net,khellang/octokit.net,M-Zuber/octokit.net,editor-tools/octokit.net,shana/oct... | Octokit/IMiscellaneousClient.cs | Octokit/IMiscellaneousClient.cs | using System;
#if NET_45
using System.Collections.Generic;
#endif
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
namespace Octokit
{
/// <summary>
/// A client for GitHub's miscellaneous APIs.
/// </summary>
/// <remarks>
/// See the <a href="http://developer.github.com/v3/mi... | using System;
#if NET_45
using System.Collections.ObjectModel;
#endif
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
namespace Octokit
{
/// <summary>
/// A client for GitHub's miscellaneous APIs.
/// </summary>
/// <remarks>
/// See the <a href="http://developer.github.com/v... | mit | C# |
b2df0a0d29e94d1decd5c6be9cce94585ff1497e | Set preUpdate to null with the rest of the hooks. | Nopezal/Prism,Nopezal/Prism | Prism/Mods/Hooks/ModDefHooks.cs | Prism/Mods/Hooks/ModDefHooks.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Prism.API;
namespace Prism.Mods.Hooks
{
class ModDefHooks : IHookManager
{
IEnumerable<Action>
onAllModsLoaded,
onUnload ,
preUpdate ,
postUpdate ;
public vo... | using System;
using System.Collections.Generic;
using System.Linq;
using Prism.API;
namespace Prism.Mods.Hooks
{
class ModDefHooks : IHookManager
{
IEnumerable<Action>
onAllModsLoaded,
onUnload ,
preUpdate ,
postUpdate ;
public vo... | artistic-2.0 | C# |
136c9153fab9aa82c2ac4df915c5119d88cee0d0 | add tests for jsonView | barld/project5_6,barld/project5_6,barld/project5_6 | MVCTests/View/JsonDataViewTests.cs | MVCTests/View/JsonDataViewTests.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using MVC.View;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MVC.View.Tests
{
[TestClass()]
public class JsonDataViewTests
{
[TestMethod()]
public void JsonD... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using MVC.View;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MVC.View.Tests
{
[TestClass()]
public class JsonDataViewTests
{
[TestMethod()]
public void JsonD... | mit | C# |
3da596eedffd3d891b3a423b4e53027729cc1bfb | Fix PublishedSnapshotAccessor to not throw but return null | tcmorris/Umbraco-CMS,bjarnef/Umbraco-CMS,leekelleher/Umbraco-CMS,tompipe/Umbraco-CMS,KevinJump/Umbraco-CMS,arknu/Umbraco-CMS,madsoulswe/Umbraco-CMS,umbraco/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,KevinJump/Umbraco-CMS,hfloyd/Umbraco-CMS,mattbrailsford/Umbraco-CMS,arknu/Umbraco-CMS,leekelleher/Umbraco-CMS,hfloyd/Umbra... | src/Umbraco.Web/PublishedCache/UmbracoContextPublishedSnapshotAccessor.cs | src/Umbraco.Web/PublishedCache/UmbracoContextPublishedSnapshotAccessor.cs | using System;
namespace Umbraco.Web.PublishedCache
{
public class UmbracoContextPublishedSnapshotAccessor : IPublishedSnapshotAccessor
{
private readonly IUmbracoContextAccessor _umbracoContextAccessor;
public UmbracoContextPublishedSnapshotAccessor(IUmbracoContextAccessor umbracoContextAcces... | using System;
namespace Umbraco.Web.PublishedCache
{
public class UmbracoContextPublishedSnapshotAccessor : IPublishedSnapshotAccessor
{
private readonly IUmbracoContextAccessor _umbracoContextAccessor;
public UmbracoContextPublishedSnapshotAccessor(IUmbracoContextAccessor umbracoContextAcces... | mit | C# |
43555b0f7a8caa56b0e86678927ff83be8db7d45 | delete commented code. | ytabuchi/NetStandard | NetStandardLibrary/TranslateLib.cs | NetStandardLibrary/TranslateLib.cs | /* This class get a result of Translator API
* http://docs.microsofttranslator.com/text-translate.html#!/default/get_Translate
*/
using System;
using System.Net.Http;
using System.Xml.Linq;
using System.Threading.Tasks;
namespace NetStandardLibrary
{
public class TranslateLib
{
const string url = "h... | /* This class get a result of Translator API
* http://docs.microsofttranslator.com/text-translate.html#!/default/get_Translate
*/
using System;
using System.Net.Http;
using System.Xml.Linq;
using System.Threading.Tasks;
namespace NetStandardLibrary
{
public class TranslateLib
{
const string url = "h... | mit | C# |
437b7dac2fc026813f8c3c1e63f346ce14de4f6d | Revert "cosmetic" | stormsw/ladm.rrr | Example1/Program.cs | Example1/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ladm.DataModel;
namespace Example1
{
class Program
{
static void Main(string[] args)
{
using (var ctx = new Ladm.DataModel.LadmDbContext())
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ladm.DataModel;
namespace Example1
{
class Program
{
static void Main(string[] args)
{
using (var context = new Ladm.DataModel.LadmDbContext())
{
... | mit | C# |
5d2d0b815f981a67b1b840dd4be0980792f0e6eb | Revert "prototype: GfxObjCache + WeakReference (#1692)" (#2216) | LtRipley36706/ACE,LtRipley36706/ACE,LtRipley36706/ACE,ACEmulator/ACE,ACEmulator/ACE,ACEmulator/ACE | Source/ACE.Server/Physics/Entity/GfxObjCache.cs | Source/ACE.Server/Physics/Entity/GfxObjCache.cs | // Uncomment this if you want to use weak reference cache. It could save 10's of MB and might be useful on a micro-server
//#define USE_WEAK_REFERENCE_CACHE
using System;
using System.Collections.Concurrent;
using ACE.Server.Physics.Collision;
using ACE.Server.Physics.Common;
namespace ACE.Server.Physics.Entity
{
... | using System;
using System.Collections.Concurrent;
using ACE.Server.Physics.Collision;
using ACE.Server.Physics.Common;
namespace ACE.Server.Physics.Entity
{
public static class GfxObjCache
{
//public static readonly ConcurrentDictionary<uint, GfxObj> GfxObjs = new ConcurrentDictionary<uint, GfxObj>()... | agpl-3.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.