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 |
|---|---|---|---|---|---|---|---|---|
1d0924116e7e1096f18bfc6fc47267dbd059c3c2 | use github api key in cocoapods | bholmes/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,bholmes/XamarinComponents,xamarin/XamarinComponents,bholmes/XamarinComponents,bholmes/XamarinComponents,bholmes/XamarinComponents,bholmes/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents | Util/VersionChecker/common/CocoaPods.csx | Util/VersionChecker/common/CocoaPods.csx | #load "VersionFetcher.csx"
using Newtonsoft.Json.Linq;
using Semver;
public class CocoaPods : VersionFetcher
{
public CocoaPods (string component, string version, string podId, string owner)
: base (component, version, owner)
{
PodId = podId;
}
public string PodId { get; private set; }... | #load "VersionFetcher.csx"
using Newtonsoft.Json.Linq;
using Semver;
public class CocoaPods : VersionFetcher
{
public CocoaPods (string component, string version, string podId, string owner)
: base (component, version, owner)
{
PodId = podId;
}
public string PodId { get; private set; }... | mit | C# |
849bf46d6f00935b657e642be09eeb9b2e6ad8ca | Update ObservableObject.cs | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/Draw2D.Core/ObservableObject.cs | src/Draw2D.Core/ObservableObject.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace Draw2D.Core
{
public abstract class ObservableObject : INotifyPropertyChanged
... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace Draw2D.Core
{
public abstract class ObservableObject : INotifyPropertyChanged
... | mit | C# |
171e8c0eac72361802ea2cc07f6d68d163d0d81f | tweak window sizes to make interop tests pass (#154) | grpc/grpc-dotnet,grpc/grpc-dotnet,grpc/grpc-dotnet,grpc/grpc-dotnet | testassets/InteropTestsWebsite/Program.cs | testassets/InteropTestsWebsite/Program.cs | #region Copyright notice and license
// Copyright 2019 The gRPC Authors
//
// 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... | #region Copyright notice and license
// Copyright 2019 The gRPC Authors
//
// 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... | apache-2.0 | C# |
5cef2f8474cad62fbb54cd3c460b271e71018721 | make sure to propagate query string and fragment when constructing request URI | WorldWideTelescope/wwt-website,WorldWideTelescope/wwt-website,WorldWideTelescope/wwt-website | src/WWT.Web/AspNetCoreWwtContext.cs | src/WWT.Web/AspNetCoreWwtContext.cs | #nullable disable
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Extensions;
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using WWT.Providers;
namespace WWT.Web
{
public class AspNetCoreWwtContext : IWwtContext, IRequest, IResponse, IHeaders, IParameters
... | #nullable disable
using Microsoft.AspNetCore.Http;
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using WWT.Providers;
namespace WWT.Web
{
public class AspNetCoreWwtContext : IWwtContext, IRequest, IResponse, IHeaders, IParameters
{
private readonly HttpContext _c... | mit | C# |
6d3746e5b9c66f034d65876e982712517b004ba2 | Handle unsubscribing | citizenmatt/ndc-london-2013 | rx/rx/Program.cs | rx/rx/Program.cs | using System;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace rx
{
class Program
{
private static void Main(string[] args)
{
var wc = new WebClient();
var observable = Bobservable.FromTask(() => wc.DownloadStringTaskAsync(... | using System;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace rx
{
class Program
{
private static void Main(string[] args)
{
var wc = new WebClient();
var observable = Bobservable.FromTask(() => wc.DownloadStringTaskAsync(... | mit | C# |
e1464678ce9dc54b3c33a7b7b5a6be806ae02156 | Implement marshaling for class types as return types of managed methods. | mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,j... | binder/Generators/Java/JavaMarshal.cs | binder/Generators/Java/JavaMarshal.cs | using CppSharp.AST;
namespace MonoEmbeddinator4000.Generators
{
public class JavaMarshalPrinter : CMarshalPrinter
{
public JavaMarshalPrinter(MarshalContext marshalContext)
: base(marshalContext)
{
}
}
public class JavaMarshalManagedToNative : JavaMarshalPrinter
... | using CppSharp.AST;
namespace MonoEmbeddinator4000.Generators
{
public class JavaMarshalPrinter : CMarshalPrinter
{
public JavaMarshalPrinter(MarshalContext marshalContext)
: base(marshalContext)
{
}
}
public class JavaMarshalManagedToNative : JavaMarshalPrinter
... | mit | C# |
2b9437177dc4b4f69c32cc5f5b6e0a3a67741ea4 | Add comments. | jcheng31/WundergroundAutocomplete.NET | WundergroundClient/Utilities.cs | WundergroundClient/Utilities.cs | using System;
using System.Globalization;
namespace WundergroundClient
{
class Utilities
{
/// <summary>
/// Converts a Unix epoch time string into a DateTime representation.
/// </summary>
/// <param name="epochTime">String containing the number of seconds since January 1, 1970... | using System;
using System.Globalization;
namespace WundergroundClient
{
class Utilities
{
public static DateTime GetDateTimeFromUnixEpochTime(string epochTime)
{
int secondsSince;
if (!Int32.TryParse(epochTime, NumberStyles.Integer, CultureInfo.InvariantCulture, out sec... | mit | C# |
e0c5e7a77279a348486a3d77356c81b29dd29f8d | remove unused namespace. | jonnii/chinchilla | src/Chinchilla/Depot.cs | src/Chinchilla/Depot.cs | using System;
namespace Chinchilla
{
public class Depot
{
public static IBus Connect(string connectionString)
{
var settings = new DepotSettings
{
ConnectionString = connectionString
};
return Connect(settings);
}
... | using System;
using Chinchilla.Serializers;
namespace Chinchilla
{
public class Depot
{
public static IBus Connect(string connectionString)
{
var settings = new DepotSettings
{
ConnectionString = connectionString
};
return Connec... | apache-2.0 | C# |
3c45f035d54744055c093ca469cce6f20af6594a | Use using for disposable class | ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework | osu.Framework.Android/AndroidGameHost.cs | osu.Framework.Android/AndroidGameHost.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using Android.App;
using Android.Content;
using osu.Framework.Android.Graphics.Textures;
using osu.Framework.Android.Inpu... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using Android.App;
using Android.Content;
using osu.Framework.Android.Graphics.Textures;
using osu.Framework.Android.Inpu... | mit | C# |
c6ead2bdc7e24d9e3f800946de354f2bf09cd3bb | Update "Database" | DRFP/Personal-Library | _Build/PersonalLibrary/Library/Database.cs | _Build/PersonalLibrary/Library/Database.cs | using Library.Model;
using System.Collections.Generic;
namespace Library {
public class Database {
public static List<Shelf> Shelves() {
var shelves = new List<Shelf>();
shelves.Add(new Shelf { slfName = "Reading now" });
shelves.Add(new Shelf { slfName = "To read" });... | using Library.Model;
using System;
using System.Collections.Generic;
namespace Library {
public class Database {
public static List<Book> Books() {
var books = new List<Book>();
books.Add(new Book {
slfID = 1,
booTitle = "Title",
boo... | mit | C# |
8e013682bd94fad3f019801d0d3d1792824b91ce | Fix start index for string - sub mounting modules | mdavid/manos-spdy,mdavid/manos-spdy,mdavid/manos-spdy,mdavid/manos-spdy,mdavid/manos-spdy,mdavid/manos-spdy,mdavid/manos-spdy | src/Manos/Manos.Routing/StringMatchOperation.cs | src/Manos/Manos.Routing/StringMatchOperation.cs | //
// Copyright (C) 2010 Jackson Harper (jackson@manosdemono.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 in the Software without restriction, including
// without limitation the rights to use,... | //
// Copyright (C) 2010 Jackson Harper (jackson@manosdemono.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 in the Software without restriction, including
// without limitation the rights to use,... | mit | C# |
77614189c978e4bffa18b4dee16dbfa90351944c | Make AdjustRank Bindable | smoogipoo/osu,peppy/osu,NeoAdonis/osu,peppy/osu-new,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,ppy/osu,ZLima12/osu,2yangk23/osu,ZLima12/osu,EVAST9919/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,smoogipooo/osu,2yangk23/osu,ppy/osu,ppy/osu,johnneijzen/osu,johnneijzen/osu,EVAST9919/osu,peppy/osu,smo... | osu.Game/Rulesets/Mods/ModHidden.cs | osu.Game/Rulesets/Mods/ModHidden.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.Configuration;
using osu.Game.Graphics;
using osu.Game.Rulesets.Objects.Drawables;
using System.Collections.Generic;
using System.Linq;
using osu.Framework... | // 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.Configuration;
using osu.Game.Graphics;
using osu.Game.Rulesets.Objects.Drawables;
using System.Collections.Generic;
using System.Linq;
using osu.Framework... | mit | C# |
8577273675549a305afc6ddb01a06b9ca44edcb5 | Rollback temp DI fix. | SkillsFundingAgency/das-referencedata,SkillsFundingAgency/das-referencedata | src/SFA.DAS.ReferenceData.Infrastructure/DependencyResolution/CachePolicy.cs | src/SFA.DAS.ReferenceData.Infrastructure/DependencyResolution/CachePolicy.cs | using System;
using System.Configuration;
using System.Linq;
using SFA.DAS.ReferenceData.Domain.Interfaces.Caching;
using SFA.DAS.ReferenceData.Infrastructure.Caching;
using StructureMap;
using StructureMap.Pipeline;
namespace SFA.DAS.ReferenceData.Infrastructure.DependencyResolution
{
public class CachePolicy : ... | using System;
using System.Configuration;
using System.Linq;
using SFA.DAS.ReferenceData.Domain.Interfaces.Caching;
using SFA.DAS.ReferenceData.Infrastructure.Caching;
using StructureMap;
using StructureMap.Pipeline;
namespace SFA.DAS.ReferenceData.Infrastructure.DependencyResolution
{
public class CachePolicy : ... | mit | C# |
8a0241347d6ee4b17831617695b2b8059266edfd | Use same null default value when JS is disabled | kendaleiv/AspNetBrowserLocale,ritterim/AspNetBrowserLocale | src/Core/HtmlHelpers.cs | src/Core/HtmlHelpers.cs | using System;
using System.Web.Mvc;
namespace AspNetBrowserLocale.Core
{
public static class HtmlHelpers
{
private const string NullValueDisplay = "—";
public static MvcHtmlString InitializeLocaleDateTime(this HtmlHelper htmlHelper)
{
return MvcHtmlString.Create(stri... | using System;
using System.Web.Mvc;
namespace AspNetBrowserLocale.Core
{
public static class HtmlHelpers
{
public static MvcHtmlString InitializeLocaleDateTime(this HtmlHelper htmlHelper)
{
return MvcHtmlString.Create(
@"<script>
var elements = document.querySelectorAll('[data-... | mit | C# |
4bc799fd17dc0573612ce6b8e7f7b069ceacb1e6 | Add Owner to ListBucketObject | carbon/Amazon | src/Amazon.S3/Results/ListBucketObject.cs | src/Amazon.S3/Results/ListBucketObject.cs | #nullable disable
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using System.Xml.Serialization;
using Carbon.Storage;
namespace Amazon.S3
{
[XmlRoot("Contents", Namespace = S3Client.Namespace)]
public sealed class ListBucketObject : IBlob
{
... | #nullable disable
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using System.Xml.Serialization;
using Carbon.Storage;
namespace Amazon.S3
{
[XmlRoot("Contents", Namespace = S3Client.Namespace)]
public sealed class ListBucketObject : IBlob
{
... | mit | C# |
fddb9b631980225af23897d46433327212e8cf8c | Remove unnecessary "@" prefix from method argument variable name. | brendanjbaker/Bakery | src/Bakery/Text/StringRemoveExtensions.cs | src/Bakery/Text/StringRemoveExtensions.cs | namespace Bakery.Text
{
using System;
public static class StringRemoveExtensions
{
public static String Remove(this String @string, String remove)
{
if (remove == null)
throw new ArgumentNullException(nameof(remove));
return @string.Replace(remove, String.Empty);
}
}
}
| namespace Bakery.Text
{
using System;
public static class StringRemoveExtensions
{
public static String Remove(this String @string, String @remove)
{
return @string.Replace(@remove, String.Empty);
}
}
}
| mit | C# |
e7cd40b015032d217c950276a3565819d901abf8 | Add an extra fake rehearsal to check wrapping. | alastairs/cgowebsite,alastairs/cgowebsite | src/CGO.Web/Controllers/HomeController.cs | src/CGO.Web/Controllers/HomeController.cs | using System;
using System.Web.Mvc;
using CGO.Domain;
using CGO.Web.Infrastructure;
using CGO.Web.Models;
namespace CGO.Web.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
ViewBag.Title = "Cambridge Graduate Orchestra";
... | using System;
using System.Web.Mvc;
using CGO.Domain;
using CGO.Web.Infrastructure;
using CGO.Web.Models;
namespace CGO.Web.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
ViewBag.Title = "Cambridge Graduate Orchestra";
... | mit | C# |
d66af28b1e219799404c542fc190ec309afdc092 | Normalise line endings. | alastairs/cgowebsite,alastairs/cgowebsite | src/CGO.Web/Controllers/HomeController.cs | src/CGO.Web/Controllers/HomeController.cs | using System;
using System.Web.Mvc;
using CGO.Domain;
using CGO.Web.Infrastructure;
using CGO.Web.Models;
namespace CGO.Web.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
ViewBag.Title = "Cambridge Graduate Orchestra";
... | using System;
using System.Web.Mvc;
using CGO.Domain;
using CGO.Web.Infrastructure;
using CGO.Web.Models;
namespace CGO.Web.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
ViewBag.Title = "Cambridge Graduate Orchestra";
ViewBag.G... | mit | C# |
4e665e0e3e27a1bb4b5d1024eeac33af9e059741 | refactor duplication and description generation | BaylorRae/Let.cs | src/Let.cs/LetHelper.cs | src/Let.cs/LetHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace LetTestHelper
{
public static class LetHelper
{
private static Dictionary<string, object> _objects = new Dictionary<string, object>();
public static T Let<T>(string description, Func<T>... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace LetTestHelper
{
public static class LetHelper
{
private static Dictionary<string, object> _objects = new Dictionary<string, object>();
public static T Let<T>(string description, Func<T>... | mit | C# |
8bbf1476c29dbf97f237a6153b15f2a094b76b84 | add V1Patch for patch custom obj (#530) | kubernetes-client/csharp,kubernetes-client/csharp | src/KubernetesClient/Kubernetes.Header.cs | src/KubernetesClient/Kubernetes.Header.cs | using System;
using System.Net.Http.Headers;
using k8s.Models;
namespace k8s
{
public partial class Kubernetes
{
public virtual MediaTypeHeaderValue GetHeader(object body)
{
if (body == null)
{
throw new ArgumentNullException(nameof(body));
}
... | using System;
using System.Net.Http.Headers;
using k8s.Models;
namespace k8s
{
public partial class Kubernetes
{
public virtual MediaTypeHeaderValue GetHeader(object body)
{
if (body == null)
{
throw new ArgumentNullException(nameof(body));
}
... | apache-2.0 | C# |
38e95cf3d85a3d6effcb3f79498ed1d03d1aeaec | fix template | takenet/messaginghub-client-csharp | src/Template/Program.cs | src/Template/Program.cs | using System;
using System.Threading.Tasks;
using Lime.Protocol;
using Takenet.MessagingHub.Client;
using Takenet.MessagingHub.Client.Receivers;
namespace Template
{
internal static class Program
{
public static void Main(string[] args)
{
Init().Wait();
}
private c... | using System;
using System.Threading.Tasks;
using Lime.Protocol;
using Takenet.MessagingHub.Client;
using Takenet.MessagingHub.Client.Receivers;
namespace Template
{
internal static class Program
{
public static void Main(string[] args)
{
Init().Wait();
}
private c... | apache-2.0 | C# |
f5c74fd4c3773e16f913e5ef2e664886cae44664 | Change Demo Trading intervall -> performance | boehla/TradeIt | DemoTrader/DTrader.cs | DemoTrader/DTrader.cs | using Main;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DemoTrader
{
public class StdTraders : Trader {
public StdTraders()
: base() {
}
public override string Name {
get { return "De... | using Main;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DemoTrader
{
public class StdTraders : Trader {
public StdTraders()
: base() {
}
public override string Name {
get { return "De... | mit | C# |
eb5a21477ea97dd4785584e0cbbd6dfa6aeb4d73 | Fix <= to < | bunashibu/kikan | Assets/Scripts/Hp/Hp.cs | Assets/Scripts/Hp/Hp.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Bunashibu.Kikan {
public abstract class Hp : IGauge<int> {
public virtual void Add(int quantity) {
Cur += quantity;
AdjustBoundary();
}
public virtual void Subtract(int quantity) {
Cur -= quantity... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Bunashibu.Kikan {
public abstract class Hp : IGauge<int> {
public virtual void Add(int quantity) {
Cur += quantity;
AdjustBoundary();
}
public virtual void Subtract(int quantity) {
Cur -= quantity... | mit | C# |
385148887fc72daadbcf627363b187b8dd00623f | Fix dem | Yonom/ByteNom | ByteNom.Demo/Program.cs | ByteNom.Demo/Program.cs | using System;
using System.Threading;
namespace ByteNom.Demo
{
internal class Program
{
private static void Main()
{
// Start a server
var server = new Server(12345);
server.ConnectionReceived += server_ConnectionReceived;
server.Start();
... | using System;
using System.Threading;
namespace ByteNom.Demo
{
internal class Program
{
private static void Main()
{
// Start a server
var server = new Server(12345);
server.ConnectionReceived += server_ConnectionReceived;
server.Start();
... | mit | C# |
f0a7cbe0a7b43947e3cf52beafc3081b35196310 | Disable authentication with empty access key | Seist/Skylight | Skylight.Outgoing/InputCodeForRoom.cs | Skylight.Outgoing/InputCodeForRoom.cs | using System;
using Skylight.Miscellaneous;
namespace Skylight
{
public class InputCodeForRoom
{
private readonly Out _out;
public InputCodeForRoom(Out @out)
{
_out = @out;
}
/// <summary>
/// Inputs the edit key.
/// </summary>
... | using System;
using Skylight.Miscellaneous;
namespace Skylight
{
public class InputCodeForRoom
{
private readonly Out _out;
public InputCodeForRoom(Out @out)
{
_out = @out;
}
/// <summary>
/// Inputs the edit key.
/// </summary>
... | mit | C# |
49139fd0974edc567c14ca061b69e7f6255ee7a4 | fix Desktop/DesktopUrhoInitializer.cs | florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho | bindings/Desktop/DesktopUrhoInitializer.cs | bindings/Desktop/DesktopUrhoInitializer.cs | using System;
using System.IO;
using System.Reflection;
namespace Urho.Desktop
{
public static class DesktopUrhoInitializer
{
static string assetsDirectory;
/// <summary>
/// Path to a folder containing "Data" folder. CurrentDirectory if null
/// </summary>
public static string AssetsDirectory
{
get... | using System;
using System.IO;
namespace Urho.Desktop
{
public static class DesktopUrhoInitializer
{
static string assetsDirectory;
/// <summary>
/// Path to a folder containing "Data" folder. CurrentDirectory if null
/// </summary>
public static string AssetsDirectory
{
get { return assetsDirectory... | mit | C# |
f20748a60688352f0c076395e6e5ab5ba8b4b7bd | Update the test app to work with the changed library. | smaeul/7DaysToolbox | SDTD.ConfigTest/Form.cs | SDTD.ConfigTest/Form.cs | namespace SDTD.ConfigTest
{
using SDTD.Config;
using System;
using System.IO;
using System.Xml.Linq;
public partial class Form : System.Windows.Forms.Form
{
private String dataPath = @"C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Data\Config";
private BlockColle... | using SDTD.Config;
using System;
using System.IO;
using System.Xml.Linq;
namespace SDTD.ConfigTest
{
public partial class Form : System.Windows.Forms.Form
{
public Form()
{
InitializeComponent();
}
private void Form_Load(Object sender, EventArgs e)
{
... | mit | C# |
8b857e4153225bb547b67cc35bce98ca24855738 | Update Export-CurrentDocument-Pages.csx | wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,Core2D/Core2D | scripts/Export-CurrentDocument-Pages.csx | scripts/Export-CurrentDocument-Pages.csx | using System.IO;
var document = Editor.Project.CurrentDocument;
var dir = "D:\\";
foreach (var page in document.Pages)
{
foreach (var writer in Editor.FileWriters)
{
var path = Path.Combine(dir, page.Name + "." + writer.Extension);
writer.Save(path, page, Editor.Project);
}
}
| using System.IO;
var document = Editor.Project.CurrentDocument;
var dir = "D:\\";
foreach (var page in document.Pages)
{
foreach (var writer in Editor.FileWriters)
{
path = Path.Combine(dir, page.Name + "." + writer.Extension);
writer.Save(path, page, Editor.Project);
}
}
| mit | C# |
f8aad35d235a0a9ae1a281d0c1fb1d80e0336be5 | Update Collision.cs | vvoid-inc/VoidEngine,thakyZ/VoidEngine | VoidEngine/Collision.cs | VoidEngine/Collision.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace VoidEngine
{
public class Collision
{
public struct MapSegment
{
public Point point1;
public Point point2;
public MapSegment(Point ... | mit | C# |
584a671ae92c72750f9e84fd85dc318d0d88e8ee | Drop prefers items held. | Blecki/RMUD,Reddit-Mud/RMUD | RMUD/Commands/Drop.cs | RMUD/Commands/Drop.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RMUD.Commands
{
internal class Drop : CommandFactory
{
public override void Create(CommandParser Parser)
{
Parser.AddCommand(
new Sequence(
new KeyWord("DROP", false),
new ObjectMatcher("TARGET", new... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RMUD.Commands
{
internal class Drop : CommandFactory
{
public override void Create(CommandParser Parser)
{
Parser.AddCommand(
new Sequence(
new KeyWord("DROP", false),
new ObjectMatcher("TARGET", new... | mit | C# |
c6f8cb4a673e39cfd894316de2fba4c70e959739 | add Active_Changes for Device Control service | ela-compil/BACnet | Base/BacnetReinitializedStates.cs | Base/BacnetReinitializedStates.cs | namespace System.IO.BACnet
{
public enum BacnetReinitializedStates
{
BACNET_REINIT_COLDSTART = 0,
BACNET_REINIT_WARMSTART = 1,
BACNET_REINIT_STARTBACKUP = 2,
BACNET_REINIT_ENDBACKUP = 3,
BACNET_REINIT_STARTRESTORE = 4,
BACNET_REINIT_ENDRESTORE = 5,
BACNET... | namespace System.IO.BACnet
{
public enum BacnetReinitializedStates
{
BACNET_REINIT_COLDSTART = 0,
BACNET_REINIT_WARMSTART = 1,
BACNET_REINIT_STARTBACKUP = 2,
BACNET_REINIT_ENDBACKUP = 3,
BACNET_REINIT_STARTRESTORE = 4,
BACNET_REINIT_ENDRESTORE = 5,
BACNET... | mit | C# |
6f5d7d8d74d099492901a40d6e660689cace84f4 | fix type | autumn009/TanoCSharpSamples | Chap15/C15Q4/C15Q4/Program.cs | Chap15/C15Q4/C15Q4/Program.cs | using System;
class Program
{
static void Main(string[] args)
{
var a = ?;
Console.WriteLine(a is object);
}
}
| using System;
class Program
{
static void Main(string[] args)
{
int a = ?;
Console.WriteLine(a is object);
}
}
| mit | C# |
f2ad5515fa0ce4b8f6d3cec5a913e2f7ac48b2c7 | add new AudioRenderer component and comment out the first gui | TUD-INF-IAI-MCI/BrailleIO,TUD-INF-IAI-MCI/BrailleIO,TUD-INF-IAI-MCI/BrailleIO,TUD-INF-IAI-MCI/BrailleIO | BrailleIO/Structs/BoxModel.cs | BrailleIO/Structs/BoxModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BrailleIO.Structs
{
public struct BoxModel
{
public uint Top;
public uint Bottom;
public uint Left;
public uint Right;
/// <summary>
/// Returns a <se... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BrailleIO.Structs
{
public struct BoxModel
{
public uint Top;
public uint Bottom;
public uint Left;
public uint Right;
/// <summary>
/// Returns a <se... | bsd-2-clause | C# |
9be8e34e886180b7d37aff9cefd1e1d10aedbf45 | Add another RunProject function with args to script. | christianrondeau/SikuliSharp,christianrondeau/SikuliSharp | SikuliSharp/Sikuli.cs | SikuliSharp/Sikuli.cs | using System;
using System.IO;
namespace SikuliSharp
{
public static class Sikuli
{
public static ISikuliSession CreateSession()
{
return new SikuliSession(CreateRuntime());
}
public static SikuliRuntime CreateRuntime()
{
return new SikuliRuntime(
new AsyncDuplexStreamsHandlerFactory(),
new... | using System;
using System.IO;
namespace SikuliSharp
{
public static class Sikuli
{
public static ISikuliSession CreateSession()
{
return new SikuliSession(CreateRuntime());
}
public static SikuliRuntime CreateRuntime()
{
return new SikuliRuntime(
new AsyncDuplexStreamsHandlerFactory(),
new... | mit | C# |
dc6464397223cb07e09bb626e2d25d5e06a5cf89 | Add readonly to RenamingFunction.dict | lou1306/CIV,lou1306/CIV | CIV/Helpers/RelabelingFunction.cs | CIV/Helpers/RelabelingFunction.cs | using System;
using System.Collections;
using System.Collections.Generic;
namespace CIV.Helpers
{
public class RelabelingFunction : ICollection<KeyValuePair<string, string>>
{
readonly IDictionary<string, string> dict = new Dictionary<string, string>();
public int Count => dict.Count;
... | using System;
using System.Collections;
using System.Collections.Generic;
namespace CIV.Helpers
{
public class RelabelingFunction : ICollection<KeyValuePair<string, string>>
{
IDictionary<string, string> dict = new Dictionary<string, string>();
public int Count => dict.Count;
public ... | mit | C# |
2491e11a5850f03ffe19aaac7c8e0960732fa09c | Update BradleyWyatt.cs | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/BradleyWyatt.cs | src/Firehose.Web/Authors/BradleyWyatt.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
public class BradleyWyatt : IAmACommunityMember
{
public string FirstName => "Bradley";
public string LastName => "Wyatt";
public st... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class BradleyWyatt : IAmACommunityMember
{
public string FirstName => "Bradley";
public string La... | mit | C# |
cfc99746825722539aba77e7792575716b7b41f4 | Fix gravity issues. | space-wizards/space-station-14,space-wizards/space-station-14-content,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 | Content.Shared/Physics/MoverController.cs | Content.Shared/Physics/MoverController.cs | using Content.Shared.GameObjects.Components.Movement;
using Robust.Shared.Interfaces.Physics;
using Robust.Shared.IoC;
using Robust.Shared.Maths;
using Robust.Shared.Physics;
namespace Content.Shared.Physics
{
public class MoverController : VirtualController
{
private Vector2 _velocity;
private... | using Content.Shared.GameObjects.Components.Movement;
using Robust.Shared.Interfaces.Physics;
using Robust.Shared.IoC;
using Robust.Shared.Maths;
using Robust.Shared.Physics;
namespace Content.Shared.Physics
{
public class MoverController : VirtualController
{
private Vector2 _velocity;
private... | mit | C# |
d43385c04957f07ddcc900d2bcb77b23d0ee9d87 | remove redundant Serializable on ScenarioOutline | mvalipour/xbehave.net,mvalipour/xbehave.net,modulexcite/xbehave.net,xbehave/xbehave.net,modulexcite/xbehave.net,hitesh97/xbehave.net,adamralph/xbehave.net,hitesh97/xbehave.net | src/Xbehave.2.Execution.desktop/ScenarioOutline.cs | src/Xbehave.2.Execution.desktop/ScenarioOutline.cs | // <copyright file="ScenarioOutline.cs" company="xBehave.net contributors">
// Copyright (c) xBehave.net contributors. All rights reserved.
// </copyright>
namespace Xbehave.Execution
{
using System;
using System.ComponentModel;
using System.Threading;
using System.Threading.Tasks;
usin... | // <copyright file="ScenarioOutline.cs" company="xBehave.net contributors">
// Copyright (c) xBehave.net contributors. All rights reserved.
// </copyright>
namespace Xbehave.Execution
{
using System;
using System.ComponentModel;
using System.Threading;
using System.Threading.Tasks;
usin... | mit | C# |
fffc89e1743581ef988d5a5d8ebb7f1f246647f8 | Revert "measure time of GetSharedSecret" | hanswolff/curve25519,Mun1z/curve25519 | Curve25519.Tests/Curve25519TimingTests.cs | Curve25519.Tests/Curve25519TimingTests.cs | using NUnit.Framework;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
namespace Elliptic.Tests
{
[Explicit]
[TestFixture]
public class Curve25519TimingTests
{
[Test]
public void Curve25519_GetPublicKey()
{
var millis = new List<long>(... | using NUnit.Framework;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
namespace Elliptic.Tests
{
[Explicit]
[TestFixture]
public class Curve25519TimingTests
{
[Test]
public void Curve25519_GetPublicKey()
{
var millis = new List<long>(... | apache-2.0 | C# |
515d736da51bf2dc595684b3545f8fe5a29108e5 | clean up Defines from old roles constants | ramzzzay/GalleryMVC_With_Auth,ramzzzay/GalleryMVC_With_Auth,ramzzzay/GalleryMVC_With_Auth | GalleryMVC_With_Auth/Resources/Defines.cs | GalleryMVC_With_Auth/Resources/Defines.cs | using System.Collections.Generic;
namespace GalleryMVC_With_Auth.Resources
{
public static class Defines
{
public const string DbConnName = "DBcon";
public const string NPasswd = "Новый пароль";
public const string ConfNewPasswd = "Подтвердите новый пароль";
public const string... | namespace GalleryMVC_With_Auth.Resources
{
public static class Defines
{
public const string DbConnName = "DBcon";
public const string NPasswd = "Новый пароль";
public const string ConfNewPasswd = "Подтвердите новый пароль";
public const string CurPasswd = "Текущий(старый) парол... | apache-2.0 | C# |
50c70a21ccfa007bfff01efb3245cc85ba0a9874 | Make LogManager.Initialize static | SaberSnail/GoldenAnvil.Utility | GoldenAnvil.Utility/Logging/LogManager.cs | GoldenAnvil.Utility/Logging/LogManager.cs | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
namespace GoldenAnvil.Utility.Logging
{
public sealed class LogManager
{
public static ILogSource CreateLogSource(string name)
{
return new LogSource(name);
}
public static void Initialize(params ILo... | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
namespace GoldenAnvil.Utility.Logging
{
public sealed class LogManager
{
public static ILogSource CreateLogSource(string name)
{
return new LogSource(name);
}
public void Initialize(params ILogDestin... | mit | C# |
a30e0782b3d7dd509df5f365ad31391abaa1eaef | Update Box.cs | dimmpixeye/Unity3dTools | Runtime/LibProcessors/Box.cs | Runtime/LibProcessors/Box.cs | // Project : ACTORS
// Contacts : Pixeye - ask@pixeye.games
using System;
using System.Collections.Generic;
using UnityEngine;
using Object = UnityEngine.Object;
namespace Pixeye.Framework
{
/// <summary>
/// <para>Caches / return assets that Developer takes from the Resources folder.
/// Box cleans cache when ... | // Project : ACTORS
// Contacts : Pixeye - ask@pixeye.games
using System;
using System.Collections.Generic;
using UnityEngine;
using Object = UnityEngine.Object;
namespace Pixeye.Framework
{
/// <summary>
/// <para>Caches / return assets that Developer takes from the Resources folder.
/// Box cleans cache when ... | mit | C# |
ea4e434dfddb107661e715b3e9ffaf3b87644de1 | Change HUD chat prefixes to avoid confusion with IRC player chat. | fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game | game/client/ui/hud/messageHud.cs | game/client/ui/hud/messageHud.cs | //------------------------------------------------------------------------------
// Revenge Of The Cats: Ethernet
// Copyright (C) 2008, mEthLab Interactive
//------------------------------------------------------------------------------
//--------------------------------------------------------------------------... | //------------------------------------------------------------------------------
// Revenge Of The Cats: Ethernet
// Copyright (C) 2008, mEthLab Interactive
//------------------------------------------------------------------------------
//-----------------------------------------------------------------------------
/... | lgpl-2.1 | C# |
6eb2d842989ddfc06f4db34c4ad75578030ef746 | Add pseudostatic bodies | EasyPeasyLemonSqueezy/MadCat | MadCat/NutEngine/Physics/BodiesManager.cs | MadCat/NutEngine/Physics/BodiesManager.cs | using System.Collections.Generic;
namespace NutEngine.Physics
{
public class BodiesManager
{
public HashSet<Body> Bodies { get; private set; }
public HashSet<Collision> Collisions { get; private set; }
public BodiesManager()
{
Bodies = new HashSet<Body>();
... | using System.Collections.Generic;
namespace NutEngine.Physics
{
public class BodiesManager
{
public HashSet<Body> Bodies { get; private set; }
public HashSet<Collision> Collisions { get; private set; }
public BodiesManager()
{
Bodies = new HashSet<Body>();
... | mit | C# |
2cdece6ae4b74f23b16076d711ff54d1ec80f327 | Update Viktor.cs | FireBuddy/adevade | AdEvade/AdEvade/Data/Spells/SpecialSpells/Viktor.cs | AdEvade/AdEvade/Data/Spells/SpecialSpells/Viktor.cs | using System;
using EloBuddy;
using EloBuddy.SDK;
namespace AdEvade.Data.Spells.SpecialSpells
{
class Viktor : IChampionPlugin
{
static Viktor()
{
}
public const string ChampionName = "Viktor";
public string GetChampionName()
{
return ChampionName;
... | using System;
using EloBuddy;
using EloBuddy.SDK;
namespace AdEvade.Data.Spells.SpecialSpells
{
class Viktor : IChampionPlugin
{
static Viktor()
{
}
public const string ChampionName = "Viktor";
public string GetChampionName()
{
return ChampionName;
... | mit | C# |
6c2133f1a9a279f8e833cbe86ab9e23936083908 | add 2do | MartinRL/SlackTurnus,MartinRL/SlackTurnus | SlackTurnus/Controllers/HomeController.cs | SlackTurnus/Controllers/HomeController.cs | using System;
using System.Collections;
using System.Linq;
using System.Web.Mvc;
using SlackTurnus.DomainModel;
using SlackTurnus.ViewModel;
namespace SlackTurnus.Controllers
{
public class HomeController : Controller
{
private const string PRIMARY_SLACKER_TURNUS = "primarySlackerTurnus";
private const string S... | using System;
using System.Collections;
using System.Linq;
using System.Web.Mvc;
using SlackTurnus.DomainModel;
using SlackTurnus.ViewModel;
namespace SlackTurnus.Controllers
{
public class HomeController : Controller
{
private const string PRIMARY_SLACKER_TURNUS = "primarySlackerTurnus";
private const string S... | mit | C# |
cfa224a2fe23e04455a2994fac06bd370db621f2 | delete code dupe | MartinRL/SlackTurnus,MartinRL/SlackTurnus | SlackTurnus/Controllers/HomeController.cs | SlackTurnus/Controllers/HomeController.cs | using System;
using System.Collections;
using System.Linq;
using System.Web.Mvc;
using System.Web.UI.WebControls;
using SlackTurnus.DomainModel;
using SlackTurnus.ViewModel;
namespace SlackTurnus.Controllers
{
public class HomeController : Controller
{
private const string PRIMARY_SLACKER_TURNUS = "primarySlacker... | using System;
using System.Collections;
using System.Linq;
using System.Web.Mvc;
using SlackTurnus.DomainModel;
using SlackTurnus.ViewModel;
namespace SlackTurnus.Controllers
{
public class HomeController : Controller
{
private const string PRIMARY_SLACKER_TURNUS = "primarySlackerTurnus";
private const string S... | mit | C# |
e8b2d8c27ec259ba5a1d0b255c768058462eaa1e | Make use of Header endianness field | tmds/Tmds.DBus | Message.cs | Message.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using System.Collections.Generic;
using System.IO;
namespace NDesk.DBus
{
class Message
{
public Message ()
{
Header.Endianness = Connection.NativeEndianness;
Head... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using System.Collections.Generic;
using System.IO;
namespace NDesk.DBus
{
class Message
{
public Message ()
{
Header.Endianness = Connection.NativeEndianness;
Head... | mit | C# |
961428b3ac684d70ca82a8f0daaee7d5ed399213 | fix indent | pocketberserker/Data.HList,pocketberserker/Data.HList | examples/HList.CSharpExamples/Program.cs | examples/HList.CSharpExamples/Program.cs | using System;
using CSharp.Data;
namespace CSharpExamples
{
class Program
{
static void Main(string[] args)
{
var a = HList.Nil().Extend(true).Extend(3).Extend("Foo");
var b = HList.Nil().Extend(new [] { 1, 2 }).Extend("Bar").Extend(4.0);
var ze... | using System;
using CSharp.Data;
namespace CSharpExamples
{
class Program
{
static void Main(string[] args)
{
var a = HList.Nil().Extend(true).Extend(3).Extend("Foo");
var b = HList.Nil().Extend(new [] { 1, 2 }).Extend("Bar").Extend(4.0);
var ze... | mit | C# |
4674a80cffa2f36f06fb56d8c8f8172d0366188b | Update variable names to reflect class name changes | CamTechConsultants/CvsntGitImporter | Program.cs | Program.cs | /*
* John Hall <john.hall@xjtag.com>
* Copyright (c) Midas Yellow Ltd. All rights reserved.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CvsGitConverter
{
class Program
{
static void Main(string[] args)
{
if (args.Length != 1)
thr... | /*
* John Hall <john.hall@xjtag.com>
* Copyright (c) Midas Yellow Ltd. All rights reserved.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CvsGitConverter
{
class Program
{
static void Main(string[] args)
{
if (args.Length != 1)
thr... | mit | C# |
e0a6ebbe5f4ca410aede12b356c16251633a9788 | Fix scope of SnakeCasecontractResolver | keenlabs/keen-sdk-net | Keen/ContractResolvers/SnakeCaseContractResolver.cs | Keen/ContractResolvers/SnakeCaseContractResolver.cs | using Newtonsoft.Json.Serialization;
namespace Keen.Core.ContractResolvers
{
/*
* Found on GithubGist https://gist.github.com/crallen/9238178
*
* Credit to Chris Allen https://github.com/crallen
*/
internal class SnakeCaseContractResolver : DefaultContractResolver
{
protecte... | using Newtonsoft.Json.Serialization;
namespace Keen.Core.ContractResolvers
{
/*
* Found on GithubGist https://gist.github.com/crallen/9238178
*
* Credit to Chris Allen https://github.com/crallen
*/
public class SnakeCaseContractResolver : DefaultContractResolver
{
protected ... | mit | C# |
f72e371c04d3aed88cd22412bbd3489b3a0534cf | Remove checking debug flag while running application. | tempbottle/VisualRust,Muraad/VisualRust,yacoder/VisualRust,drewet/VisualRust,PistonDevelopers/VisualRust,cmr/VisualRust,xilec/VisualRust,Boddlnagg/VisualRust,dlsteuer/VisualRust,yacoder/VisualRust,PistonDevelopers/VisualRust,xilec/VisualRust,drewet/VisualRust,cmr/VisualRust,Vbif/VisualRust,vadimcn/VisualRust,Stitchous/... | VisualRust.Project/DefaultRustLauncher.cs | VisualRust.Project/DefaultRustLauncher.cs | using System;
using System.Diagnostics;
using System.IO;
using Microsoft.VisualStudio;
using Microsoft.VisualStudioTools;
using Microsoft.VisualStudioTools.Project;
namespace VisualRust.Project
{
/// <summary>
/// Simple realization of project launcher for executable file
/// TODO need realize for library... | using System;
using System.Diagnostics;
using System.IO;
using Microsoft.VisualStudio;
using Microsoft.VisualStudioTools;
using Microsoft.VisualStudioTools.Project;
namespace VisualRust.Project
{
/// <summary>
/// Simple realization of project launcher for executable file
/// TODO need realize for library... | mit | C# |
27ad04c8701cbde36559bb726c293e30f6910b96 | Extend Demo Project | tommcclean/LogBook | LogBook.Demo/Program.cs | LogBook.Demo/Program.cs | using LogBook.Services;
using LogBook.Services.Models;
using System;
namespace LogBook.Demo
{
internal class Program
{
private static void Main()
{
// Step 1: Initialise The Log Handler (Add Config Database Credential for LogBookEntityModel)
var logHandler = new LogHand... | using LogBook.Services;
using LogBook.Services.Models;
using System;
namespace LogBook.Demo
{
internal class Program
{
private static void Main()
{
// Step 1: Initialise The Log Handler (Add Config Database Credential for LogBookEntityModel)
var logHandler = new LogHand... | mit | C# |
ad2e2590a72976c31a09e4c058fafbb11274f7ce | test fix | clementpeihengtan/cogs,Colectica/cogs,kevinchristianson/cogs | Cogs.Tests/CogsLoaderTests.cs | Cogs.Tests/CogsLoaderTests.cs | using Cogs.Dto;
using Cogs.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
namespace Cogs.Tests
{
public class CogsLoaderTests
{
[Fact]
public void LoadHamburgerModelTest()
{
string path = "..\\..\\..\... | using Cogs.Dto;
using Cogs.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
namespace Cogs.Tests
{
public class CogsLoaderTests
{
[Fact]
public void LoadHamburgerModelTest()
{
string path = "..\\..\\..\... | mit | C# |
ddd81c4fb88f5fcc30ebda3d888f2f246c009726 | Fix for missing author info | romatthe/WPMGMT.BESScraper,TheGameSquid/WPMGMT.BESScraper | WPMGMT.BESScraper/Program.cs | WPMGMT.BESScraper/Program.cs | using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Net;
using RestSharp;
using Dapper;
using DapperExtensions;
using WPMGMT.BESScraper.Model;
namespace WPMGMT.BESScraper
{
class Program
{
static void Main(string[] args)
{
... | using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Net;
using RestSharp;
using Dapper;
using DapperExtensions;
using WPMGMT.BESScraper.Model;
namespace WPMGMT.BESScraper
{
class Program
{
static void Main(string[] args)
{
... | mit | C# |
4456f950d448d4c998573f783f63da59e5be06a2 | Remove public setter of Job properties. | mans0954/f-spot,mono/f-spot,mono/f-spot,dkoeb/f-spot,dkoeb/f-spot,mono/f-spot,mans0954/f-spot,mono/f-spot,mono/f-spot,dkoeb/f-spot,mans0954/f-spot,dkoeb/f-spot,dkoeb/f-spot,mans0954/f-spot,mans0954/f-spot,mono/f-spot,mans0954/f-spot,dkoeb/f-spot | src/Core/FSpot.Database/Jobs/Job.cs | src/Core/FSpot.Database/Jobs/Job.cs | //
// Job.cs
//
// Author:
// Mike Gemünde <mike@gemuende.de>
// Stephane Delcroix <sdelcroix@src.gnome.org>
//
// Copyright (C) 2007-2010 Novell, Inc.
// Copyright (C) 2010 Mike Gemünde
// Copyright (C) 2007-2008 Stephane Delcroix
//
// Permission is hereby granted, free of charge, to any person obtaining
// a cop... | //
// Job.cs
//
// Author:
// Mike Gemünde <mike@gemuende.de>
// Stephane Delcroix <sdelcroix@src.gnome.org>
//
// Copyright (C) 2007-2010 Novell, Inc.
// Copyright (C) 2010 Mike Gemünde
// Copyright (C) 2007-2008 Stephane Delcroix
//
// Permission is hereby granted, free of charge, to any person obtaining
// a cop... | mit | C# |
dc5952629219a8727fe3d77cd38c5f09d6a3b8b3 | Check Environment.UserInteractive instead of argument | fredrikn/PolymeliaDeploy,fredrikn/PolymeliaDeploy | src/PolymeliaDeployAgent/Program.cs | src/PolymeliaDeployAgent/Program.cs | using System;
using System.Linq;
using System.ServiceProcess;
namespace PolymeliaDeployAgent
{
using PolymeliaDeploy;
using PolymeliaDeploy.Controller;
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(st... | using System;
using System.Linq;
using System.ServiceProcess;
namespace PolymeliaDeployAgent
{
using PolymeliaDeploy;
using PolymeliaDeploy.Controller;
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(st... | mit | C# |
d5fd93b32915eabd6719e95791e87c4a373fed6c | Simplify code a little bit. | YOTOV-LIMITED/monotouch-samples,sakthivelnagarajan/monotouch-samples,davidrynn/monotouch-samples,W3SS/monotouch-samples,albertoms/monotouch-samples,andypaul/monotouch-samples,andypaul/monotouch-samples,hongnguyenpro/monotouch-samples,labdogg1003/monotouch-samples,andypaul/monotouch-samples,YOTOV-LIMITED/monotouch-sampl... | TextKitDemo/TextKitDemo/CollectionViewController.cs | TextKitDemo/TextKitDemo/CollectionViewController.cs | using System;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace TextKitDemo
{
public partial class CollectionViewController : UICollectionViewController
{
NSString key = new NSString ("collectionViewCell");
public CollectionViewController (IntPtr handle) : base (handle)
{
}
public override vo... | using System;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace TextKitDemo
{
public partial class CollectionViewController : UICollectionViewController
{
NSString key = new NSString ("collectionViewCell");
public CollectionViewController (IntPtr handle) : base (handle)
{
}
public override vo... | mit | C# |
42657a77cf51b866564c8ff2f4751173351aacac | Improve MenuItem debugger experience | MatterHackers/agg-sharp,larsbrubaker/agg-sharp,jlewin/agg-sharp | Gui/Menu/MenuItem.cs | Gui/Menu/MenuItem.cs | using System;
using System.Diagnostics;
namespace MatterHackers.Agg.UI
{
[DebuggerDisplay("{Text}:{Value}")]
public class MenuItem : GuiWidget
{
public class MenuClosedMessage
{
}
public event EventHandler Selected;
public delegate bool CheckIfShouldClick();
public CheckIfShouldClick DoClickFunction... | using System;
namespace MatterHackers.Agg.UI
{
public class MenuItem : GuiWidget
{
public class MenuClosedMessage
{
}
public event EventHandler Selected;
public delegate bool CheckIfShouldClick();
public CheckIfShouldClick DoClickFunction;
public string Value
{
get;
set;
}
public Menu... | bsd-2-clause | C# |
79570f88080d65254dc43facdd0ce76e6dec1380 | Update Main.cs | win120a/ACClassRoomUtil,win120a/ACClassRoomUtil | LoginPasswordUtil/C-Sharp-Version/Main.cs | LoginPasswordUtil/C-Sharp-Version/Main.cs | /*
Copyright (C) 2011-2014 AC Inc. (Andy Cheung)
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 ... | /*
Copyright (C) 2011-2014 AC Inc. (Andy Cheung)
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 ... | apache-2.0 | C# |
e0c9a77fba9e22737d91c5158a66e96c2171d571 | fix param name to match api | naveensrinivasan/octokit.net,gabrielweyer/octokit.net,khellang/octokit.net,TattsGroup/octokit.net,darrelmiller/octokit.net,SmithAndr/octokit.net,nsnnnnrn/octokit.net,shiftkey-tester-org-blah-blah/octokit.net,editor-tools/octokit.net,octokit/octokit.net,yonglehou/octokit.net,dampir/octokit.net,shiftkey-tester/octokit.ne... | Octokit/Models/Request/NewTeam.cs | Octokit/Models/Request/NewTeam.cs | using Octokit.Internal;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
public class NewTeam
{
public NewTeam(string name)
{
Name = name;
RepoNames = new Colle... | using Octokit.Internal;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
public class NewTeam
{
public NewTeam(string name)
{
Name = name;
RepoNames = new Colle... | mit | C# |
dababde0a8b99a4c01cc9ed4a232e1b5f82e25bc | remove a suppression no longer needed | acple/ParsecSharp | ParsecSharp/GlobalSuppressions.cs | ParsecSharp/GlobalSuppressions.cs | using System.Diagnostics.CodeAnalysis;
[assembly: SuppressMessage("Style", "IDE0071:Simplify interpolation", Justification = "IDE0071 considerably decreases the performance of string construction")]
| using System.Diagnostics.CodeAnalysis;
[assembly: SuppressMessage("Style", "IDE0071:Simplify interpolation", Justification = "IDE0071 considerably decreases the performance of string construction")]
[assembly: SuppressMessage("Style", "IDE0071WithoutSuggestion")]
| mit | C# |
e1a0438475118492e1fe53a363b94680baa5106a | Add ProgramUnit documentation (closes #29) | felipebz/ndapi | Ndapi/ProgramUnit.cs | Ndapi/ProgramUnit.cs | using Ndapi.Core;
using Ndapi.Core.Handles;
using Ndapi.Enums;
namespace Ndapi
{
/// <summary>
/// Represents a program unit object.
/// </summary>
public class ProgramUnit : NdapiObject
{
/// <summary>
/// Creates a program unit.
/// </summary>
/// <param name="mod... | using Ndapi.Core;
using Ndapi.Core.Handles;
using Ndapi.Enums;
namespace Ndapi
{
public class ProgramUnit : NdapiObject
{
public ProgramUnit(FormModule module, string name)
{
Create(name, ObjectType.ProgramUnit, module);
}
internal ProgramUnit(ObjectSafeHandle hand... | mit | C# |
78992b5acfe2a558a8daade4db187cb761aa5c8e | Clean up fluent node builder to not leak implementation details | akatakritos/SassSharp | SassSharp/Ast/FluentAstBuilder.cs | SassSharp/Ast/FluentAstBuilder.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SassSharp.Ast
{
public class FluentAstBuilder
{
private IList<Node> nodes;
public FluentAstBuilder()
{
nodes = new List<Node>();
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SassSharp.Ast
{
public class FluentAstBuilder
{
private IList<Node> nodes;
public FluentAstBuilder()
{
nodes = new List<Node>();
}
... | mit | C# |
3cbd3af925eeaa12cde145cdfb0678e8a7312b42 | Fix UserAgent | Kingloo/Rdr | RdrLib/UserAgents.cs | RdrLib/UserAgents.cs | using System.Linq;
namespace RdrLib.Common
{
public static class UserAgents
{
public const string Firefox_89_Windows = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0";
public const string Edge_91_Windows = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like... | using System.Linq;
namespace RdrLib.Common
{
public static class UserAgents
{
public const string Firefox_89_Windows = "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0";
public const string Edge_91_Windows = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ... | unlicense | C# |
2c37924754661ef578739f951e4387935b14167c | Remove work-in progress enum, not presently required. | PowerOfCode/Eto,bbqchickenrobot/Eto-1,l8s/Eto,PowerOfCode/Eto,PowerOfCode/Eto,l8s/Eto,bbqchickenrobot/Eto-1,bbqchickenrobot/Eto-1,l8s/Eto | Source/Eto/Forms/Menu/MenuItem.cs | Source/Eto/Forms/Menu/MenuItem.cs | #if DESKTOP
using System;
using System.Collections.ObjectModel;
namespace Eto.Forms
{
public interface IMenuItem : IMenu
{
}
public abstract class MenuItem : BaseAction
{
protected MenuItem (Generator g, Type type, bool initialize = true)
: base(g, type, initialize)
{
}
}
public class MenuItemCollec... | #if DESKTOP
using System;
using System.Collections.ObjectModel;
namespace Eto.Forms
{
public interface IMenuItem : IMenu
{
}
public enum MenuItemType
{
Check,
Image,
Radio,
Separator,
}
public abstract class MenuItem : BaseAction
{
protected MenuItem (Generator g, Type type, bool initialize = true)... | bsd-3-clause | C# |
66f094d49ef59844aa3b2b4052d1467064b03fc3 | fix test assembly resolver | LinqToDB4iSeries/linq2db,linq2db/linq2db,MaceWindu/linq2db,ronnyek/linq2db,LinqToDB4iSeries/linq2db,linq2db/linq2db,MaceWindu/linq2db | Tests/Linq/TestsInitialization.cs | Tests/Linq/TestsInitialization.cs | using NUnit.Framework;
using System;
using System.Data.Common;
using System.Reflection;
using Tests;
/// <summary>
/// 1. Don't add namespace to this class! It's intentional
/// 2. This class implements test assembly setup/teardown methods.
/// </summary>
[SetUpFixture]
public class TestsInitialization
{
[OneTimeSet... | using NUnit.Framework;
using System;
using System.Data.Common;
using System.Reflection;
using Tests;
/// <summary>
/// 1. Don't add namespace to this class! It's intentional
/// 2. This class implements test assembly setup/teardown methods.
/// </summary>
[SetUpFixture]
public class TestsInitialization
{
[OneTimeSet... | mit | C# |
52eb843d51e4e7cc3ff55db3e2f8ca7dcb7014f5 | Implement natural number | sakapon/Samples-2014,sakapon/Samples-2014,sakapon/Samples-2014 | VerificationSample/MathConsole/Program.cs | VerificationSample/MathConsole/Program.cs | /*
* このプログラムには、架空の機能が含まれます。
*/
using System;
namespace MathConsole
{
class Program
{
static void Main(string[] args)
{
NaturalNumber n = 1; // OK
NaturalNumber m = -1; // Error
Console.WriteLine(n + m);
}
}
public class NaturalNumber
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MathConsole
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# |
5113610b57f3ab7c1e8620b8fe580f3d095f3029 | Update MainMenu.cs | afroraydude/First_Unity_Game,afroraydude/First_Unity_Game,afroraydude/First_Unity_Game | Real_Game/Assets/Scripts/MainMenu.cs | Real_Game/Assets/Scripts/MainMenu.cs | using UnityEngine;
using System.Collections;
using System.Runtime.Serialization.Formatters.Binary;
public class MainMenu : MonoBehaviour
{
public GUISkin skin;
public Rect title;
public Rect version;
public Rect playButton;
public Rect quitButton;
public GameManager manager;
// Mostly only used to read th... | using UnityEngine;
using System.Collections;
using System.Runtime.Serialization.Formatters.Binary;
public class MainMenu : MonoBehaviour
{
public GUISkin skin;
public Rect title;
public Rect version;
public Rect playButton;
public Rect quitButton;
public GameManager manager;
// Mostly only used to read th... | mit | C# |
6417cb21f07786efad2df51c28b848a6ec543e89 | Add missing header for UnixSocket.cs file | stormleoxia/xsp,stormleoxia/xsp,arthot/xsp,arthot/xsp,arthot/xsp,murador/xsp,stormleoxia/xsp,murador/xsp,murador/xsp,arthot/xsp,stormleoxia/xsp,murador/xsp | src/Mono.WebServer.FastCgi/UnixSocket.cs | src/Mono.WebServer.FastCgi/UnixSocket.cs | //
// UnixSocket.cs: Provides a wrapper around a unix domain socket file.
//
// Author:
// Brian Nickel (brian.nickel@gmail.com)
//
// Copyright (C) 2007 Brian Nickel
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Soft... | using System;
using System.Globalization;
namespace Mono.FastCgi
{
internal class UnixSocket : StandardSocket, IDisposable
{
string path = null;
protected UnixSocket (Mono.Unix.UnixEndPoint localEndPoint)
: base (System.Net.Sockets.AddressFamily.Unix,
System.Net.Sockets.SocketType.Stream,
... | mit | C# |
5f182c24d177bba1e00dd3b16f8ad04ab01b52c1 | refactor sitesettings to dto | momcms/MoM.Modules,RolfVeinoeSorensen/MoM.Modules,momcms/MoM.Modules,RolfVeinoeSorensen/MoM.Modules,momcms/MoM.Modules,RolfVeinoeSorensen/MoM.Modules | MoM.Blog/Startup.cs | MoM.Blog/Startup.cs | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using Microsoft.EntityFrameworkCore.Infrastructure;
using MoM.Module.Dtos;
namespac... | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using Microsoft.EntityFrameworkCore.Infrastructure;
using MoM.Module.Models;
using M... | mit | C# |
a15456cbae787e591a10d98ed3da30736844e72c | Add size adjustment paramters to tunnel. | saschb2b/mugo | mugo/TunnelObject3D.cs | mugo/TunnelObject3D.cs | using System.Collections.Generic;
using Engine.cgimin.object3d;
using OpenTK;
namespace Mugo
{
class TunnelObject3D : BaseObject3D
{
public TunnelObject3D()
{
Positions = new List<Vector3>();
UVs = new List<Vector2>();
Normals = new List<Vector3>();
Indices = new List<int>();
const i... | using System.Collections.Generic;
using Engine.cgimin.object3d;
using OpenTK;
namespace Mugo
{
class TunnelObject3D : BaseObject3D
{
public TunnelObject3D()
{
Positions = new List<Vector3>();
UVs = new List<Vector2>();
Normals = new List<Vector3>();
Indices = new List<int>();
const i... | mit | C# |
82c2269e29cd7ec947c930302d421ee69e2519b1 | undo changes to member code behind | neekgreen/daxko-kafka-webapp,neekgreen/daxko-kafka-webapp,neekgreen/daxko-kafka-webapp,neekgreen/daxko-kafka-webapp,neekgreen/daxko-kafka-webapp | src/WebApp/Pages/Members/Index.cshtml.cs | src/WebApp/Pages/Members/Index.cshtml.cs | namespace WebApp.Pages.Members
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Hangfire;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
public class IndexModel : PageModel
{
public string M... | namespace WebApp.Pages.Members
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Hangfire;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using MediatR;
public class IndexModel : PageModel
{
... | mit | C# |
e7c71d6905264054d1a2fea31dc1c766a0bdf45c | update rotation | TheMagnificentSeven/MakeItRain | Assets/Scripts/Rotate.cs | Assets/Scripts/Rotate.cs | using UnityEngine;
using System.Collections;
public class Rotate : MonoBehaviour {
public float speed = 1f;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetKey (KeyCode.J)) {
if(gameObject.transform.rotation.z* Time.deltaTime * speed <8.... | using UnityEngine;
using System.Collections;
public class Rotate : MonoBehaviour {
public float speed = 1f;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetKey (KeyCode.J)) {
Debug.Log (gameObject.transform.rotation.z* Time.deltaTime * s... | mit | C# |
614b2c95b791e696be5bfdf6ac4e1f181c73f2e7 | update version | gaochundong/Cowboy.WebSockets | Cowboy.WebSockets/SolutionVersion.cs | Cowboy.WebSockets/SolutionVersion.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyDescription("Cowboy.WebSockets is a C# based library for building WebSocket services.")]
[assembly: AssemblyCompany("Dennis Gao")]
[assembly: AssemblyProduct("Cowboy.WebSockets")]
[assembly: AssemblyCopyright("Copyright © 2015-2016 Denn... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyDescription("Cowboy.WebSockets is a C# based library for building WebSocket services.")]
[assembly: AssemblyCompany("Dennis Gao")]
[assembly: AssemblyProduct("Cowboy.WebSockets")]
[assembly: AssemblyCopyright("Copyright © 2015-2016 Denn... | mit | C# |
51e9c028e7ef814210488f556b8fa1e7f6b04dae | make static | nicklasjepsen/GravatarSharp | GravatarSharp/Hashing.cs | GravatarSharp/Hashing.cs | using System.Security.Cryptography;
using System.Text;
namespace GravatarSharp
{
/// <summary>
/// Used to calculate the hash
/// </summary>
public static class Hashing
{
/// <summary>
/// Calculate the hash based on this MSDN post:
/// http://blogs.msdn.com/b/cshar... | using System.Security.Cryptography;
using System.Text;
namespace GravatarSharp
{
/// <summary>
/// Used to calculate the hash
/// </summary>
public class Hashing
{
/// <summary>
/// Calculate the hash based on this MSDN post:
/// http://blogs.msdn.com/b/csharpfaq/ar... | mit | C# |
3e77378ffb47e2dc2d5bc38221b9ff196fdf3cbf | Allow full urls | mcintyre321/Noodles,mcintyre321/Noodles | Noodles/PathExtension.cs | Noodles/PathExtension.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using Walkies;
namespace Noodles
{
public static class PathExtension
{
static ConditionalWeakTable<object, object> urlRoots = new ConditionalWeakTable<object, object>();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using Walkies;
namespace Noodles
{
public static class PathExtension
{
static ConditionalWeakTable<object, object> urlRoots = new ConditionalWeakTable<object, object>();
... | mit | C# |
327061fbc56bd484df030296bee82dd77748c1d7 | Fix use of `ThreadsResponse` (type changed for threads container) | PowerShell/PowerShellEditorServices | src/PowerShellEditorServices/Services/DebugAdapter/Handlers/ThreadsHandler.cs | src/PowerShellEditorServices/Services/DebugAdapter/Handlers/ThreadsHandler.cs | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System.Threading;
using System.Threading.Tasks;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.R... | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System.Threading;
using System.Threading.Tasks;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.R... | mit | C# |
404e47c5aefb1cbe50f70c50e81fdd1f681b0247 | Revert "Revert "Revert "added try catch, test commit""" | MaurizioPz/PnP,bbojilov/PnP,durayakar/PnP,OzMakka/PnP,rbarten/PnP,weshackett/PnP,machadosantos/PnP,IvanTheBearable/PnP,comblox/PnP,biste5/PnP,Rick-Kirkham/PnP,jeroenvanlieshout/PnP,sandhyagaddipati/PnPSamples,rroman81/PnP,OfficeDev/PnP,chrisobriensp/PnP,rbarten/PnP,svarukala/PnP,andreasblueher/PnP,worksofwisdom/PnP,Nav... | Samples/Core.CrossDomainImages/Core.CrossDomainImagesWeb/Pages/Default.aspx.cs | Samples/Core.CrossDomainImages/Core.CrossDomainImagesWeb/Pages/Default.aspx.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Core.CrossDomainImagesWeb
{
public partial class Default : System.Web.UI.Page
{
protected void Page_PreInit(object sender, EventArgs e)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Core.CrossDomainImagesWeb
{
public partial class Default : System.Web.UI.Page
{
protected void Page_PreInit(object sender, EventArgs e)
{
... | mit | C# |
7d655211dba39d5affa9ae668aa62195bd17cdfd | Fix InvalidRFC3339DateTime unit test | messagebird/csharp-rest-api | Tests/UnitTests/MessageBirdUnitTests/Resources/RFC3339DateTimeConverterTest.cs | Tests/UnitTests/MessageBirdUnitTests/Resources/RFC3339DateTimeConverterTest.cs | using System;
using MessageBird.Exceptions;
using MessageBird.Objects;
using MessageBird.Resources;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json;
namespace MessageBirdTests.Resources
{
[TestClass]
public class RFC3339DateTimeConverterTest
{
[TestMethod]
public ... | using MessageBird.Objects;
using MessageBird.Resources;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json;
namespace MessageBirdTests.Resources
{
[TestClass]
public class RFC3339DateTimeConverterTest
{
[TestMethod]
[ExpectedException(typeof(JsonSerializationExceptio... | isc | C# |
df01fc82eef3fd3068a42c44776b9571b0de2fc6 | Add reminder to number samples | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Mvc/Views/Order/Confirmation.cshtml | Anlab.Mvc/Views/Order/Confirmation.cshtml | @using Humanizer
@model AnlabMvc.Models.Order.OrderReviewModel
@{
ViewData["Title"] = "Confirmation";
}
@section ActionButtons
{
<p>
<form asp-controller="order" asp-action="Delete" asp-route-id="@Model.Order.Id" method="post" class="form-horizontal" style="margin-left: 5px;margin-right: 5px">
... | @using Humanizer
@model AnlabMvc.Models.Order.OrderReviewModel
@{
ViewData["Title"] = "Confirmation";
}
@section ActionButtons
{
<p>
<form asp-controller="order" asp-action="Delete" asp-route-id="@Model.Order.Id" method="post" class="form-horizontal" style="margin-left: 5px;margin-right: 5px">
... | mit | C# |
e0d0e65e40cb03936c9063e5ff3e6d5038032cda | Change log verbosity stuff to be simpler. | sgrassie/wp2md.net | wp2md/Program.cs | wp2md/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Fclp;
namespace wp2md
{
class Program
{
static void Main(string[] args)
{
Action<string> logger = msg => Console.WriteLine(msg);
var parser = Create... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Fclp;
namespace wp2md
{
class Program
{
static void Main(string[] args)
{
var parser = CreateArgsParser();
var results = parser.Parse(args);
... | mit | C# |
fbf559c1095f4b64851595ed336801a639d78362 | Remove unnecessary strings | mnaiman/duplicati,duplicati/duplicati,mnaiman/duplicati,duplicati/duplicati,mnaiman/duplicati,duplicati/duplicati,duplicati/duplicati,duplicati/duplicati,mnaiman/duplicati,mnaiman/duplicati | Duplicati/Library/Backend/Storj/Strings.cs | Duplicati/Library/Backend/Storj/Strings.cs | using Duplicati.Library.Localization.Short;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Duplicati.Library.Backend.Strings
{
internal static class Storj
{
public static string DisplayName { get { return LC.L(@"Storj DCS (... | using Duplicati.Library.Localization.Short;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Duplicati.Library.Backend.Strings
{
internal static class Storj
{
public static string DisplayName { get { return LC.L(@"Storj DCS (... | lgpl-2.1 | C# |
4736497fe4780446417975940a0601ccdc90a63a | Update ForceAdapter.cs | spaceappsnyc/issie,spaceappsnyc/issie,spaceappsnyc/issie,spaceappsnyc/issie,spaceappsnyc/issie | ISSIE-unity/Assets/Scripts/ForceAdapter.cs | ISSIE-unity/Assets/Scripts/ForceAdapter.cs | using UnityEngine;
// Demo class
// inherits of WebSocketUnityDelegate to receive WebSockets events
public class ForceAdapter : MonoBehaviour
{
public WebSocketController socket;
private const int NUM_STEPS_TO_HYPERDRIVE = 500;
private const int HYPERDRIVE_FACTOR = 100;
private bool wasNeg = true;
... | using UnityEngine;
// Demo class
// inherits of WebSocketUnityDelegate to receive WebSockets events
public class ForceAdapter : MonoBehaviour
{
public WebSocketController socket;
private const int NUM_STEPS_TO_HYPERDRIVE = 500;
private const int HYPERDRIVE_FACTOR = 100;
private bool wasNeg = true;
... | mit | C# |
4d48667b20fe69c968dde9e5b3148bdc2d8bdac2 | Change AssemblyInfo | GAMELASTER/SteamBot,tarun200897/SteamBot,stackia/SteamBot,Alex-Nabu/CSGOWinBig-SteamBot,MadBender/SteamBot,stigping/SteamBot,alanfort/CSGOWinBig-SteamBot,TheRod1990/SteamBot,niachris/SteamBotNew,Alex-Nabu/CSGOWinBig-SteamBot,wowzone/gamerpro,fjch1997/SteamBot,Murzyneczka/CSGOWinBig-SteamBot,Schwehn42/SteamBot,ChalkyBru... | SteamBot/AssemblyInfo.cs | SteamBot/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("SteamBot")]
[assembly: AssemblyDescription("SteamBot is a bot for the purpose of interacting with Steam Chat and Steam Trade.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("SteamBot")]
[assembly: AssemblyCopyright("(C) 2012 SteamBot Contributors"... | 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("SteamBot")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: ... | mit | C# |
f078ea07a934c4ac03b0d3783ee23f64ab4580fb | Make it easy to switch config file and log file location like const.h #define LIVE | AAccount/dt_call_server-windows- | DTOperator/Const.cs | DTOperator/Const.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DTOperator
{
class Const
{
public static readonly String VERSION = "4.1:{git revision}_win";
private static readonly bool LIVE = false;
private static readonly String PREFIX_LIVE = @"... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DTOperator
{
class Const
{
public static readonly String VERSION = "4.1:{git revision}_win";
public static readonly String USERSFILE = "C:\\Users\\A\\dtoperator\\users.conf";
public s... | agpl-3.0 | C# |
11c0a7e1f04d06d53bbbc66e1f6d56a28e4a3b30 | test commit | ncguy2/MOD003263 | Mod003263/Mod003263/db/DatabaseAccessor.cs | Mod003263/Mod003263/db/DatabaseAccessor.cs | using Mod003263.interview;
/**
* Author: Callum Highley
* Date: 14/11/2016
* Contains: DatabaseAccessor
*/
namespace Mod003263.DBstuff
{
class DatabaseAccessor
{
// TODO fix connection insert calls
/// <summary>
/// Insert statement
/// </summary>
/// <param name=... | using Mod003263.interview;
/**
* Author: Callum Highley
* Date: 14/11/2016
* Contains: DatabaseAccessor
*/
namespace Mod003263.DBstuff
{
class DatabaseAccessor
{
// TODO fix connection insert calls
/// <summary>
/// Insert statement
/// </summary>
/// <param name=... | unlicense | C# |
253d113106b4d8e48ce2dd4c377c264c9fe04fa7 | Update version | Yonom/MuffinFramework | MuffinFramework/Properties/AssemblyInfo.cs | MuffinFramework/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
// 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("MuffinFramework")]
[assembly: AssemblyDescription("")]
... | using System.Reflection;
using System.Resources;
// 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("MuffinFramework")]
[assembly: AssemblyDescription("")]
... | mit | C# |
eac14ae72eeda1fb12c4c2198484e96cf87b767d | Fix whitespaces | rlugojr/octokit.net,octokit-net-test/octokit.net,brramos/octokit.net,hitesh97/octokit.net,Sarmad93/octokit.net,nsrnnnnn/octokit.net,mminns/octokit.net,michaKFromParis/octokit.net,M-Zuber/octokit.net,shiftkey/octokit.net,shiftkey-tester/octokit.net,shiftkey-tester/octokit.net,chunkychode/octokit.net,geek0r/octokit.net,S... | Octokit.Reactive/ObservableGitHubClient.cs | Octokit.Reactive/ObservableGitHubClient.cs | using System;
using System.Net.Http.Headers;
using Octokit.Reactive.Clients;
namespace Octokit.Reactive
{
public class ObservableGitHubClient : IObservableGitHubClient
{
readonly IGitHubClient _gitHubClient;
public ObservableGitHubClient(ProductHeaderValue productInformation)
: th... | using System;
using System.Net.Http.Headers;
using Octokit.Reactive.Clients;
namespace Octokit.Reactive
{
public class ObservableGitHubClient : IObservableGitHubClient
{
readonly IGitHubClient _gitHubClient;
public ObservableGitHubClient(ProductHeaderValue productInformation)
: th... | mit | C# |
741a29cb9493eca5951f3454bb7d492b41d86b77 | Define and use Game#ShownLetterFor | 12joan/hangman | game.cs | game.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Hangman {
public class Game {
public string Word;
private List<char> GuessedLetters;
public Game(string word) {
Word = word;
GuessedLetters = new List<char>();
}
public string ShownWord() {
StringBuil... | using System;
using System.Collections.Generic;
namespace Hangman {
public class Game {
public string Word;
private List<char> GuessedLetters;
public Game(string word) {
Word = word;
GuessedLetters = new List<char>();
}
public string ShownWord() {
return Word;
}
priva... | unlicense | C# |
01e92b1e7a274a0559c9d977cf0c7d0a4e550456 | 修改了PathException异常类的实现。 | huoxudong125/Zongsoft.CoreLibrary,Zongsoft/Zongsoft.CoreLibrary,MetSystem/Zongsoft.CoreLibrary | IO/PathException.cs | IO/PathException.cs | /*
* Authors:
* 钟峰(Popeye Zhong) <zongsoft@gmail.com>
*
* Copyright (C) 2010-2014 Zongsoft Corporation <http://www.zongsoft.com>
*
* This file is part of Zongsoft.CoreLibrary.
*
* Zongsoft.CoreLibrary is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Publ... | /*
* Authors:
* 钟峰(Popeye Zhong) <zongsoft@gmail.com>
*
* Copyright (C) 2010-2014 Zongsoft Corporation <http://www.zongsoft.com>
*
* This file is part of Zongsoft.CoreLibrary.
*
* Zongsoft.CoreLibrary is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Publ... | lgpl-2.1 | C# |
bf5637700d1822a92698653d9ce70e043356020a | Update Manufacturer name | bozaro/octobuild,bozaro/octobuild,bozaro/octobuild,bozaro/octobuild,bozaro/octobuild | wixcs/setup.cs | wixcs/setup.cs | using System;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Linq;
using WixSharp;
class Script
{
enum Target
{
i686,
x86_64,
}
static public string ReadVersion(string path)
{
System.IO.StreamReader file = new System.IO.StreamReader(path);
Regex regex = new Regex("^\\s*version\\... | using System;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Linq;
using WixSharp;
class Script
{
enum Target
{
i686,
x86_64,
}
static public string ReadVersion(string path)
{
System.IO.StreamReader file = new System.IO.StreamReader(path);
Regex regex = new Regex("^\\s*version\\... | mit | C# |
5f895f120c884f6ad982176cf01d00a91560764c | Remove useless using references | Elgolfin/PokerBot | PokerGame/Dealer.cs | PokerGame/Dealer.cs | using Nicomputer.PokerBot.Cards;
namespace Nicomputer.PokerBot.PokerGame
{
public class Dealer
{
public Deck52Cards Deck;
public Table Table;
public Dealer(Table t, Deck52Cards deck)
{
Deck = deck;
Table = t;
}
public void ShuffleDeck()... | using System.Linq;
using System.Runtime.InteropServices;
using Nicomputer.PokerBot.Cards;
namespace Nicomputer.PokerBot.PokerGame
{
public class Dealer
{
public Deck52Cards Deck;
public Table Table;
public Dealer(Table t, Deck52Cards deck)
{
Deck = deck;
... | mit | C# |
e8de63a38b6b0a23a344474299e34a2124701169 | Update UserType.cs | RokuHodo/Twitch-Bot | Enums/UserType.cs | Enums/UserType.cs | namespace TwitchChatBot.Enums
{
enum UserType
{
viewer,
mod,
global_mod,
admin,
staff
}
}
| namespace TwitchChatBot.Enums
{
enum UserType
{
viewer,
mod,
admin,
global_mod,
staff
}
}
| apache-2.0 | C# |
dacf8eec9ccaf524473d71a8ad0853f510395219 | remove unecessary fields n comments from testmesh script | tkaretsos/ProceduralBuildings,AlexanderMazaletskiy/ProceduralBuildings | Scripts/TestMesh.cs | Scripts/TestMesh.cs | using UnityEngine;
public class TestMesh : MonoBehaviour
{
[SerializeField]
private Material material;
private Mesh mesh;
private GameObject meshobj;
private MeshFilter mf;
private MeshRenderer mr;
// void Awake ()
// {
//
// }
// Use this for initialization
void Start ()
{
CreateNeoclassical();
... | using UnityEngine;
public class TestMesh : MonoBehaviour
{
public GameObject empty;
public Material material;
private Mesh mesh;
private GameObject meshobj;
private MeshFilter mf;
private MeshRenderer mr;
// void Awake ()
// {
//
// }
// Use this for initialization
void Start ()
{
CreateNeoclassica... | mit | C# |
eb2f07994fd1f0feb8d98684f255bae58cc4e62d | Fix the assembly version. | izrik/FbxSharp,izrik/FbxSharp,izrik/FbxSharp,izrik/FbxSharp,izrik/FbxSharp | AssemblyInfo.cs | AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("FbxSharp")]
[assembly: AssemblyDescription("A pure C# library for loading FBX files")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduc... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("FbxSharp")]
[assembly: AssemblyDescription("A pure C# library for loading FBX files")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduc... | lgpl-2.1 | C# |
c0ae7cc7582a441dbdf2e89680e561daa44f1886 | Fix doc of #82 | rsdn/CodeJam | CodeJam.Main/Threading/AwaitableNonDisposable.cs | CodeJam.Main/Threading/AwaitableNonDisposable.cs | // BASEDON: https://github.com/StephenCleary/AsyncEx AwaitableDisposable class.
using System;
using System.Threading.Tasks;
using System.Runtime.CompilerServices;
using JetBrains.Annotations;
namespace CodeJam.Threading
{
/// <summary>
/// An awaitable wrapper around a task whose result is <see cref="IDisposable"/... | // BASEDON: https://github.com/StephenCleary/AsyncEx AwaitableDisposable class.
using System;
using System.Threading.Tasks;
using System.Runtime.CompilerServices;
using JetBrains.Annotations;
namespace CodeJam.Threading
{
/// <summary>
/// An awaitable wrapper around a task whose result is <see cref="IDispos... | mit | C# |
f8b085b76964d211c6b2728ef52d868ae88db78e | Add the Geometry property to Responses Result | mklimmasch/google-maps,mklimmasch/google-maps,maximn/google-maps,yonglehou/google-maps,yonglehou/google-maps,maximn/google-maps | GoogleMapsApi/Entities/Places/Response/Result.cs | GoogleMapsApi/Entities/Places/Response/Result.cs | using System.Runtime.Serialization;
using GoogleMapsApi.Entities.Common;
namespace GoogleMapsApi.Entities.Places.Response
{
[DataContract]
public class Result
{
/// <summary>
/// name contains the human-readable name for the returned result. For establishment results, this is usually the canonicalized business... | using System.Runtime.Serialization;
using GoogleMapsApi.Entities.Common;
namespace GoogleMapsApi.Entities.Places.Response
{
[DataContract]
public class Result
{
/// <summary>
/// name contains the human-readable name for the returned result. For establishment results, this is usually the canonicalized business... | bsd-2-clause | C# |
9621a711aee62b881f2d4b81a8fcc5e81ccba081 | Replace copy-paste code with Repeat attribute usage | EVAST9919/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,peppy/osu-framework | osu.Framework.Tests/Visual/Testing/TestSceneTest.cs | osu.Framework.Tests/Visual/Testing/TestSceneTest.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.Development;
using osu.Framework.Testing;
namespace osu.Framework.Tests.Visual.Testing
{
public class TestSceneTest : Fram... | // 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.Development;
using osu.Framework.Testing;
namespace osu.Framework.Tests.Visual.Testing
{
public class TestSceneTest : Fram... | mit | C# |
183b48d9fc2080eaec467d6c65650c508ebaa213 | Update AssemblyInfo.cs | tiernano/b2uploader | B2Classes/Properties/AssemblyInfo.cs | B2Classes/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("B2... | 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("B2... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.