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 |
|---|---|---|---|---|---|---|---|---|
bbf9825a567b7b544a1b54a5ccd418c0d37d1912 | update version | prodot/ReCommended-Extension | Sources/ReCommendedExtension/Properties/AssemblyInfo.cs | Sources/ReCommendedExtension/Properties/AssemblyInfo.cs | using System.Reflection;
using ReCommendedExtension;
// 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(ZoneMarker.ExtensionName)]
[assembly: AssemblyDescript... | using System.Reflection;
using ReCommendedExtension;
// 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(ZoneMarker.ExtensionName)]
[assembly: AssemblyDescript... | apache-2.0 | C# |
d898a7d8df92acb856a153820ab88c211eb8a059 | Support full interface | CyrusNajmabadi/roslyn,CyrusNajmabadi/roslyn,KevinRansom/roslyn,mavasani/roslyn,dotnet/roslyn,shyamnamboodiripad/roslyn,KevinRansom/roslyn,shyamnamboodiripad/roslyn,jasonmalinowski/roslyn,diryboy/roslyn,mavasani/roslyn,dotnet/roslyn,bartdesmet/roslyn,jasonmalinowski/roslyn,weltkante/roslyn,diryboy/roslyn,bartdesmet/rosl... | src/Workspaces/Core/Portable/EmbeddedLanguages/Json/LanguageServices/JsonEmbeddedLanguage.cs | src/Workspaces/Core/Portable/EmbeddedLanguages/Json/LanguageServices/JsonEmbeddedLanguage.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.CodeAnalysis.EmbeddedLanguages.LanguageServices;
using Microsoft.CodeAnalysis.EmbeddedLanguages.VirtualChars;
using Microsoft.CodeAnalysis.La... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.CodeAnalysis.EmbeddedLanguages.LanguageServices;
using Microsoft.CodeAnalysis.EmbeddedLanguages.VirtualChars;
using Microsoft.CodeAnalysis.La... | mit | C# |
d3af3ff05dad12e8c9b7d894b011f623b1f3851a | Add a display property for cadet rank | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | BatteryCommander.Common/Models/Rank.cs | BatteryCommander.Common/Models/Rank.cs | using System.ComponentModel.DataAnnotations;
namespace BatteryCommander.Common.Models
{
public enum Rank
{
[Display(Name = "PVT")]
E1 = 1,
[Display(Name = "PV2")]
E2 = 2,
[Display(Name = "PFC")]
E3 = 3,
[Display(Name = "SPC")]
E4 = 4,
... | using System.ComponentModel.DataAnnotations;
namespace BatteryCommander.Common.Models
{
public enum Rank
{
[Display(Name = "PVT")]
E1 = 1,
[Display(Name = "PV2")]
E2 = 2,
[Display(Name = "PFC")]
E3 = 3,
[Display(Name = "SPC")]
E4 = 4,
... | mit | C# |
3721eb049835074dea0792774aaff3fce2a5979d | increase version no. | gigya/microdot | SolutionVersion.cs | SolutionVersion.cs | #region Copyright
// Copyright 2017 Gigya Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THI... | #region Copyright
// Copyright 2017 Gigya Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THI... | apache-2.0 | C# |
e27868b658d3cdf8048f4b9d03c8fd9b753a9822 | make sure TodoMVC sample works. | JSONAPIdotNET/JSONAPI.NET,SathishN/JSONAPI.NET,SphtKr/JSONAPI.NET,danshapir/JSONAPI.NET | JSONAPI.TodoMVC.API/Startup.cs | JSONAPI.TodoMVC.API/Startup.cs | using System.Data.Entity;
using System.Reflection;
using System.Web.Http;
using Autofac;
using Autofac.Integration.WebApi;
using JSONAPI.Autofac;
using JSONAPI.Autofac.EntityFramework;
using JSONAPI.Core;
using JSONAPI.EntityFramework.Http;
using JSONAPI.TodoMVC.API.Models;
using Owin;
namespace JSONAPI.TodoMVC.API
{... | using System.Web.Http;
using Autofac;
using JSONAPI.Autofac;
using JSONAPI.Autofac.EntityFramework;
using JSONAPI.Core;
using JSONAPI.EntityFramework.Http;
using JSONAPI.TodoMVC.API.Models;
using Owin;
namespace JSONAPI.TodoMVC.API
{
public class Startup
{
public void Configuration(IAppBuilder app)
... | mit | C# |
ecb4afb055bc3e99d8a424a881140f92de2ee277 | Fix incorrect 4 object equal check syntax | HilHi-Technology/Vision | Assets/Scripts/FullVisionScript.cs | Assets/Scripts/FullVisionScript.cs | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FullVisionScript : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
Vector3 camForward = transform.forward;
Camera ca... | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FullVisionScript : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
Vector3 camForward = transform.forward;
Camera ca... | mit | C# |
da16f4c47b2faa4aee65baef824ddb138a16212a | Enable Server GC for FormatterBenchmarks | diryboy/roslyn,AlekseyTs/roslyn,eriawan/roslyn,dotnet/roslyn,KirillOsenkov/roslyn,heejaechang/roslyn,shyamnamboodiripad/roslyn,eriawan/roslyn,gafter/roslyn,brettfo/roslyn,jmarolf/roslyn,jmarolf/roslyn,AmadeusW/roslyn,physhi/roslyn,ErikSchierboom/roslyn,bartdesmet/roslyn,brettfo/roslyn,davkean/roslyn,physhi/roslyn,Amade... | src/Tools/IdeBenchmarks/FormatterBenchmarks.cs | src/Tools/IdeBenchmarks/FormatterBenchmarks.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.IO;
using System.Linq;
using System.Threading;
using BenchmarkDotNet.Attributes;
using Microsoft.CodeA... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.IO;
using System.Linq;
using System.Threading;
using BenchmarkDotNet.Attributes;
using Microsoft.CodeA... | mit | C# |
3bc9533ae839a0fafcb2f81d9ceecfbb526f2fbe | Update install checker. Don't forget to add the "System" assembly reference, sigh. | henrybauer/AutoAsparagus | AutoAsparagus/ASPInstallChecker.cs | AutoAsparagus/ASPInstallChecker.cs | /*
* Originally based on the InstallChecker from the Kethane mod for Kerbal Space Program.
* This version is based off taraniselsu's version from https://github.com/Majiir/Kethane/blob/b93b1171ec42b4be6c44b257ad31c7efd7ea1702/Plugin/InstallChecker.cs
*
* Original is (C) Copyright Majiir.
* CC0 Public Domain (http... | /**
* Originally based on the InstallChecker from the Kethane mod for Kerbal Space Program.
* This version is based off taraniselsu's version from https://github.com/Majiir/Kethane/blob/b93b1171ec42b4be6c44b257ad31c7efd7ea1702/Plugin/InstallChecker.cs
*
* Original is (C) Copyright Majiir.
* CC0 Public Domai... | apache-2.0 | C# |
9716dd3b5de43d1455c49851ae1bb5299199b12d | Update MatrixObjectTypeConverter.cs | wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D/Serializer/Xaml/Converters/MatrixObjectTypeConverter.cs | src/Core2D/Serializer/Xaml/Converters/MatrixObjectTypeConverter.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;
using System.ComponentModel;
using System.Globalization;
using Core2D.Renderer;
namespace Core2D.Serializer.Xaml.Converters
{
/// <summary>
... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Globalization;
using System.ComponentModel;
using Core2D.Renderer;
namespace Core2D.Serializer.Xaml.Converters
{
/// <summary>
... | mit | C# |
1094d192ab4e6dfbdb50868174b0c7f2ab3f3116 | Change extraction of NamespaceDeclarations to have ID based on the location | github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql | csharp/extractor/Semmle.Extraction.CSharp/Entities/NamespaceDeclaration.cs | csharp/extractor/Semmle.Extraction.CSharp/Entities/NamespaceDeclaration.cs |
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Semmle.Extraction.Entities;
using System.IO;
using System.Linq;
namespace Semmle.Extraction.CSharp.Entities
{
class NamespaceDeclaration : CachedEntity<NamespaceDeclarationSyntax>
{
pri... |
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Semmle.Extraction.Entities;
using System.IO;
using System.Linq;
namespace Semmle.Extraction.CSharp.Entities
{
internal class NamespaceDeclaration : FreshEntity
{
private readonly Namesp... | mit | C# |
1f618669fbe2ef7eb0d244e27dfbb508dc3dfe65 | Fix typo paramaters -> parameters | mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Prototype,Glimpse/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,zanetdev/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glim... | src/Glimpse.Server.Web/Framework/ResourceManager.cs | src/Glimpse.Server.Web/Framework/ResourceManager.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Glimpse.Web;
namespace Glimpse.Server.Web
{
public class ResourceManager : IResourceManager
{
private IDictionary<string, ResourceManagerItem> _resourceTable = new Diction... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Glimpse.Web;
namespace Glimpse.Server.Web
{
public class ResourceManager : IResourceManager
{
private IDictionary<string, ResourceManagerItem> _resourceTable = new Diction... | mit | C# |
248d200da8eb817e40b52b8075fb6de46f51fead | Add mention of how to use IPC in the xmldoc | peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework | osu.Framework/HostOptions.cs | osu.Framework/HostOptions.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.Platform;
#nullable enable
namespace osu.Framework
{
/// <summary>
/// Various configuration properties for a <see cref="Host"/>.
/// </... | // 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.
#nullable enable
namespace osu.Framework
{
/// <summary>
/// Various configuration properties for a <see cref="Host"/>.
/// </summary>
public class HostO... | mit | C# |
f04e9d26e1c3eaa39bab0b2bbab40e9476683cb2 | Test of commits 2 | Ebisu77/RoRAssist | RoRAssist/Pages/PersuasionPage.xaml.cs | RoRAssist/Pages/PersuasionPage.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | mit | C# |
41cf2b9575075b07d8aa55607ddfdf8c78766f22 | Update project and license URLs | PedroLamas/nuproj,faustoscardovi/nuproj,kovalikp/nuproj,DavidAnson/nuproj,DavidAnson/nuproj,AArnott/nuproj,nuproj/nuproj,NN---/nuproj,ericstj/nuproj,oliver-feng/nuproj,zbrad/nuproj | src/Common/CommonAssemblyInfo.cs | src/Common/CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyCompany("Immo Landwerth")]
[assembly: AssemblyProduct("NuProj")]
[assembly: AssemblyCopyright("Copyright © Immo Landwerth")]
[assembly: AssemblyTrademark("")]
[assembly : AssemblyMetadata("PreRelease", "Beta")]
[assembly : AssemblyMetadata("ProjectUrl", "http://github.com/... | using System.Reflection;
[assembly: AssemblyCompany("Immo Landwerth")]
[assembly: AssemblyProduct("NuProj")]
[assembly: AssemblyCopyright("Copyright © Immo Landwerth")]
[assembly: AssemblyTrademark("")]
[assembly : AssemblyMetadata("PreRelease", "Beta")]
[assembly : AssemblyMetadata("ProjectUrl", "http://nuproj.code... | mit | C# |
8b4c177a2d6cfee3dc5c88d34549c887007c772d | Update SharedSecret.cs | ektrah/nsec | src/Cryptography/SharedSecret.cs | src/Cryptography/SharedSecret.cs | using System;
using System.ComponentModel;
using System.Diagnostics;
using static Interop.Libsodium;
namespace NSec.Cryptography
{
[DebuggerDisplay("Size = {Size}")]
public sealed class SharedSecret : IDisposable
{
private readonly SecureMemoryHandle _handle;
internal SharedSecret(
... | using System;
using System.ComponentModel;
using System.Diagnostics;
using static Interop.Libsodium;
namespace NSec.Cryptography
{
[DebuggerDisplay("Size = {Size}")]
public sealed class SharedSecret : IDisposable
{
private readonly SecureMemoryHandle _handle;
internal SharedSecret(
... | mit | C# |
1538c38bc02ec8e59c9b3f0e0eae0b08fc8ed6fb | Remove unnecessary timekey enumeration complexity. | huin/kerbcam2 | kerbcam2/Timeline.cs | kerbcam2/Timeline.cs | using System;
using System.Collections.Generic;
namespace kerbcam2 {
class Timeline {
private List<TimeKey> keys = new List<TimeKey>();
/// <summary>
/// Returns number of TimeKeys.
/// </summary>
public int Count {
get { return keys.Count; }
}
... | using System;
using System.Collections.Generic;
namespace kerbcam2 {
class Timeline {
private List<TimeKey> keys = new List<TimeKey>();
/// <summary>
/// Returns number of TimeKeys.
/// </summary>
public int Count {
get { return keys.Count; }
}
... | bsd-3-clause | C# |
ebed366a9b4c5c64398e3aee5196b21a9a7b8d72 | fix CI test-run | ronnyek/linq2db,MaceWindu/linq2db,MaceWindu/linq2db,linq2db/linq2db,LinqToDB4iSeries/linq2db,LinqToDB4iSeries/linq2db,linq2db/linq2db | Tests/Linq/UserTests/Issue1363Tests.cs | Tests/Linq/UserTests/Issue1363Tests.cs | using LinqToDB;
using LinqToDB.Mapping;
using NUnit.Framework;
using System;
using System.Linq;
namespace Tests.UserTests
{
/// <summary>
/// Test fixes to Issue #1305.
/// Before fix fields in derived tables were added first in the column order by <see cref="DataExtensions.CreateTable{T}(IDataContext, string, str... | using LinqToDB;
using LinqToDB.Mapping;
using NUnit.Framework;
using System;
using System.Linq;
namespace Tests.UserTests
{
/// <summary>
/// Test fixes to Issue #1305.
/// Before fix fields in derived tables were added first in the column order by <see cref="DataExtensions.CreateTable{T}(IDataContext, string, str... | mit | C# |
5ad0828e5bd42be64f90b9eda461b32d6040ef89 | Remove MIT license header | fredatgithub/WinFormTemplate | WinFormTemplate/Punctuation.cs | WinFormTemplate/Punctuation.cs | using System;
namespace WinFormTemplate
{
public static class Punctuation
{
public const string Comma = ",";
public const string Colon = ":";
public const string OneSpace = " ";
public const string Dash = "-";
public const string UnderScore = "_";
public const string SignAt = "@";
public... | /*
The MIT License(MIT)
Copyright(c) 2015 Freddy Juhel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... | mit | C# |
c85fbbd6f0f20218c65ffb255290aff19322d083 | Add an extra test for ranges. | pyaria/edulinq,zhangz/edulinq,iainholder/edulinq,zhangz/edulinq,jskeet/edulinq,jskeet/edulinq,jskeet/edulinq,iainholder/edulinq,pyaria/edulinq | src/Edulinq.Tests/RangeTest.cs | src/Edulinq.Tests/RangeTest.cs | #region Copyright and license information
// Copyright 2010-2011 Jon Skeet
//
// 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
... | #region Copyright and license information
// Copyright 2010-2011 Jon Skeet
//
// 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
... | apache-2.0 | C# |
ff5cf7297d7a06b6266ad45ef1e787647cabe01f | Add unit tests for implicit unsigned construction | OlsonDev/YeamulNet | Yeamul.Test/Test_Node_Implicit_Ctor.cs | Yeamul.Test/Test_Node_Implicit_Ctor.cs | using System;
using NUnit.Framework;
namespace Yeamul {
[TestFixture]
public class Test_Node_Implicit_Ctor {
[Test]
public void CanConstructImplicitlyFromInt16() {
Node node = Int16.MaxValue;
AssertNodeIsDefinedScalarNumber(node);
AssertNodeHasTypes(node, NodeType.Scalar, ScalarType.Number, NumberType.... | using System;
using NUnit.Framework;
namespace Yeamul {
[TestFixture]
public class Test_Node_Implicit_Ctor {
[Test]
public void CanConstructImplicitlyFromInt16() {
Node node = Int16.MaxValue;
AssertNodeIsDefinedScalarNumber(node);
AssertNodeHasTypes(node, NodeType.Scalar, ScalarType.Number, NumberType.... | mit | C# |
d11d2c47663404a2cc1c62962ae88fbb43853f7e | set eol-style for AssemblyInfo.cs | vancegroup-mirrors/open-dynamics-engine-svnmirror,vancegroup-mirrors/open-dynamics-engine-svnmirror,vancegroup-mirrors/open-dynamics-engine-svnmirror,vancegroup-mirrors/open-dynamics-engine-svnmirror,vancegroup-mirrors/open-dynamics-engine-svnmirror | contrib/Ode.NET/Ode/AssemblyInfo.cs | contrib/Ode.NET/Ode/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Ode.NET")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Ode.NET")]
[assembly: AssemblyC... | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Ode.NET")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Ode.NET")]
[assembly:... | lgpl-2.1 | C# |
b6d8f9bc9801aa9b2f91ab40d6b66e9eddc7f788 | Update Version Information. Merged Latest JustArchi/Master 2.5.6.8 release. | blackpanther989/ArchiSteamFarm,blackpanther989/ArchiSteamFarm | ArchiSteamFarm/SharedInfo.cs | ArchiSteamFarm/SharedInfo.cs | /*
_ _ _ ____ _ _____
/ \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
/ _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
/ ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || |... | /*
_ _ _ ____ _ _____
/ \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
/ _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
/ ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || |... | apache-2.0 | C# |
dde2b8109040a7348597257234229bc4630a6ad0 | Remove debug log | aarya123/IshanGame | Assets/Scripts/Trampoline.cs | Assets/Scripts/Trampoline.cs | using UnityEngine;
using System.Collections;
public class Trampoline : MonoBehaviour {
public float velocityX;
public float velocityY;
void OnTriggerStay2D(Collider2D other) {
if (other.gameObject.tag == "Player") {
other.rigidbody2D.AddForce(new Vector2(velocityX,velocityY));
//other.rigidbody2D.velocit... | using UnityEngine;
using System.Collections;
public class Trampoline : MonoBehaviour {
public float velocityX;
public float velocityY;
void OnTriggerStay2D(Collider2D other) {
if (other.gameObject.tag == "Player") {
Debug.Log ("Hit!");
other.rigidbody2D.AddForce(new Vector2(velocityX,velocityY));
//ot... | apache-2.0 | C# |
882d7f788b6488eb6b8ff558f8eb16b69cb37e38 | fix target | tomvantilburg/cow,tomvantilburg/cow,Geodan/cow,Geodan/cow,tomvantilburg/cow,Geodan/cow | server/signalr/CowSignalR/CowHub.cs | server/signalr/CowSignalR/CowHub.cs | using System;
using System.Threading.Tasks;
using CowSignalR.Models;
using Microsoft.AspNet.SignalR;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace CowSignalR
{
public class CowHub : Hub
{
public override Task OnConnected()
{
Clients.Others.userConnected(Context.Conne... | using System.Threading.Tasks;
using CowSignalR.Models;
using Microsoft.AspNet.SignalR;
using Newtonsoft.Json;
namespace CowSignalR
{
public class CowHub : Hub
{
public override Task OnConnected()
{
Clients.Others.userConnected(Context.ConnectionId);
return base.OnConnec... | mit | C# |
5bd44c801a9cfb5999e475ad8e0c56582488e348 | Update SharedAssemblyInfo.cs | wieslawsoltes/SimpleWavSplitter,wieslawsoltes/SimpleWavSplitter,wieslawsoltes/SimpleWavSplitter,wieslawsoltes/SimpleWavSplitter | src/Shared/SharedAssemblyInfo.cs | src/Shared/SharedAssemblyInfo.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.Reflection;
[assembly: AssemblyCompany("Wiesław Šoltés")]
[assembly: AssemblyCopyright("Copyright © Wiesław Šoltés 2010-2016")]
[assembly: AssemblyTr... | // 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.Reflection;
[assembly: AssemblyCompany("Wiesław Šoltés")]
[assembly: AssemblyCopyright("Copyright © Wiesław Šoltés 2010-2016")]
[assembly: AssemblyTr... | mit | C# |
e3bbc9dc8970977a1a4ae56fcda400a7a32eaa4e | remove unused namespaces | olebg/car-mods-heaven,olebg/car-mods-heaven | CarModsHeaven/CarModsHeaven/CarModsHeaven.Web/Controllers/HomeController.cs | CarModsHeaven/CarModsHeaven/CarModsHeaven.Web/Controllers/HomeController.cs | using Bytes2you.Validation;
using CarModsHeaven.Data;
using CarModsHeaven.Services.Contracts;
using CarModsHeaven.Web.Models.Home;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using System;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace CarModsHeaven.We... | using System.Web.Mvc;
namespace CarModsHeaven.Web.Controllers
{
[RequireHttps]
public class HomeController : Controller
{
//[OutputCache(Duration = 60)]
public ActionResult Index()
{
return this.View();
}
}
} | mit | C# |
7bd7907acb35072b88e9418beddea0d36bb03a2a | fix sequence | rustamserg/mogate | mogate/Actions/Sequence.cs | mogate/Actions/Sequence.cs | using System;
using System.Collections.Generic;
namespace mogate
{
public class Sequence : IAction
{
private Queue<IAction> m_queue = new Queue<IAction>();
public void Add(IAction action)
{
m_queue.Enqueue (action);
}
public bool Execute()
{
if (m_queue.Count == 0)
return t... | using System;
using System.Collections.Generic;
namespace mogate
{
public class Sequence : IAction
{
private Queue<IAction> m_queue = new Queue<IAction>();
public void Add(IAction action)
{
m_queue.Enqueue (action);
}
public bool Execute()
{
if (m_queue.Count == 0)
return t... | mit | C# |
d0300bcffef5031686a8c24adcdd0383665221c9 | Use IMPP as default for iCloud profile. | aluxnimm/outlookcaldavsynchronizer | CalDavSynchronizer/Ui/Options/ProfileTypes/ContactsiCloudProfile.cs | CalDavSynchronizer/Ui/Options/ProfileTypes/ContactsiCloudProfile.cs | // This file is Part of CalDavSynchronizer (http://outlookcaldavsynchronizer.sourceforge.net/)
// Copyright (c) 2015 Gerhard Zehetbauer
// Copyright (c) 2015 Alexander Nimmervoll
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as... | // This file is Part of CalDavSynchronizer (http://outlookcaldavsynchronizer.sourceforge.net/)
// Copyright (c) 2015 Gerhard Zehetbauer
// Copyright (c) 2015 Alexander Nimmervoll
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as... | agpl-3.0 | C# |
b88c441d8be6cbd2c2707938369539ef61dccf08 | Make sure to register interface rather than implementation | appharbor/appharbor-cli | src/AppHarbor/AppHarborInstaller.cs | src/AppHarbor/AppHarborInstaller.cs | using System.Reflection;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.Resolvers.SpecializedResolvers;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
namespace AppHarbor
{
public class AppHarborInstaller : IWindsorInstaller
{
public void Install(IWindsorContainer contai... | using System.Reflection;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.Resolvers.SpecializedResolvers;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
namespace AppHarbor
{
public class AppHarborInstaller : IWindsorInstaller
{
public void Install(IWindsorContainer contai... | mit | C# |
ea017fa6cdb6baa8650cacfdb4eb89f4c97979b8 | Make tests pass | kipusoep/Archetype,kgiszewski/Archetype,kipusoep/Archetype,imulus/Archetype,Nicholas-Westby/Archetype,Nicholas-Westby/Archetype,Nicholas-Westby/Archetype,kgiszewski/Archetype,tomfulton/Archetype,tomfulton/Archetype,kjac/Archetype,kjac/Archetype,kipusoep/Archetype,imulus/Archetype,tomfulton/Archetype,imulus/Archetype,kg... | app/Umbraco/Umbraco.Archetype/PropertyConverters/ArchetypeValueConverter.cs | app/Umbraco/Umbraco.Archetype/PropertyConverters/ArchetypeValueConverter.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Archetype.Umbraco.Extensions;
using Archetype.Umbraco.Models;
using Newtonsoft.Json;
using Umbraco.Core;
using Umbraco.Core.Models;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Core.PropertyEditors;
using Umbraco.Core.Services;
... | using System;
using System.Collections.Generic;
using System.Linq;
using Archetype.Umbraco.Extensions;
using Archetype.Umbraco.Models;
using Newtonsoft.Json;
using Umbraco.Core;
using Umbraco.Core.Models;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Core.PropertyEditors;
using Umbraco.Core.Services;
... | mit | C# |
3c0bd46059f32600f6b44b702893fc094d9540ae | comment not yet used ext. method | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | src/FilterLists.DataLoad/Startup.cs | src/FilterLists.DataLoad/Startup.cs | using System.IO;
using FilterLists.Data.DependencyInjection.Extensions;
using FilterLists.Services.DependencyInjection.Extensions;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace FilterLists.DataLoad
{
public class Startup
... | using System.IO;
using FilterLists.Data.DependencyInjection.Extensions;
using FilterLists.DataLoad.DependencyInjection.Extensions;
using FilterLists.Services.DependencyInjection.Extensions;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
na... | mit | C# |
18e0d8372e9c97be37b41b2bbafe03834b608e09 | fix to NavigationClassBuilder | GiveCampUK/GiveCRM,GiveCampUK/GiveCRM | src/GiveCRM.Web/Views/MenuHelper.cs | src/GiveCRM.Web/Views/MenuHelper.cs | using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
namespace GiveCRM.Web.Views
{
public static class MenuHelper
{
public static bool IsCurrentPage(
this HtmlHelper htmlHelper,
string controllerName,
string actionName = "")
{
... | using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
namespace GiveCRM.Web.Views
{
public static class MenuHelper
{
public static bool IsCurrentPage(
this HtmlHelper htmlHelper,
string controllerName,
string actionName = "")
{
var routeData = htmlHelper.... | mit | C# |
7e6bf26b821b9565c8a36e0449154b986197d766 | Order files by name. | peschuster/LogImporter | source/LogImporter/FileRepository.cs | source/LogImporter/FileRepository.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace LogImporter
{
public class FileRepository : IFileRepository
{
private readonly FileInfo[] files;
public FileRepository(DirectoryInfo directory, string pattern)
{
if (... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace LogImporter
{
public class FileRepository : IFileRepository
{
private readonly FileInfo[] files;
public FileRepository(DirectoryInfo directory, string pattern)
{
if (... | mit | C# |
9e47c62c9223e4e458b35c3de09e84c8dac4a1c7 | Fix 563 | Sitecore/Sitecore-Instance-Manager | src/SIM.Pipelines/Delete/CleanUp.cs | src/SIM.Pipelines/Delete/CleanUp.cs | using JetBrains.Annotations;
using SIM.Pipelines.Install;
using SIM.Pipelines.Processors;
using Sitecore.Diagnostics.Base;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SIM.Sitecore9Installer;
using System.Threading;
using Sit... | using JetBrains.Annotations;
using SIM.Pipelines.Install;
using SIM.Pipelines.Processors;
using Sitecore.Diagnostics.Base;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SIM.Sitecore9Installer;
using System.Threading;
using Sit... | mit | C# |
cfc7aa10cf707a77b7af962848511affec053383 | Update CoreXamlType.cs | wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D | src/Serializer.Xaml/CoreXamlType.cs | src/Serializer.Xaml/CoreXamlType.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 Portable.Xaml;
using Portable.Xaml.ComponentModel;
using Portable.Xaml.Schema;
using System;
using System.ComponentModel;
namespace Serializer.Xaml
{
in... | // 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 Portable.Xaml;
using Portable.Xaml.ComponentModel;
using Portable.Xaml.Schema;
using System;
namespace Serializer.Xaml
{
internal class CoreXamlType : X... | mit | C# |
2b33c5cfd75fc979f259a2eceab3f5ff5a8ae191 | Fix for chekcing the children belonging to MemberType tree. | WebCentrum/Umbraco-CMS,tcmorris/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,arknu/Umbraco-CMS,robertjf/Umbraco-CMS,abjerner/Umbraco-CMS,KevinJump/Umbraco-CMS,KevinJump/Umbraco-CMS,leekelleher/Umbraco-CMS,leekelleher/Umbraco-CMS,robertjf/Umbraco-CMS,dawoe/Umbraco-CMS,abjerner/Umbraco-CMS,madsoulswe/Umbraco-CMS,tompipe/Umb... | src/Umbraco.Web/Trees/MemberTypeTreeController.cs | src/Umbraco.Web/Trees/MemberTypeTreeController.cs | using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Formatting;
using Umbraco.Core;
using Umbraco.Web.Models.Trees;
using Umbraco.Web.WebApi.Filters;
namespace Umbraco.Web.Trees
{
[CoreTree(TreeGroup = Constants.Trees.Groups.Settings)]
[UmbracoTreeAuthorize(Constants.Trees.MemberTypes)]... | using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Formatting;
using Umbraco.Core;
using Umbraco.Web.Models.Trees;
using Umbraco.Web.WebApi.Filters;
namespace Umbraco.Web.Trees
{
[CoreTree(TreeGroup =Constants.Trees.Groups.Settings)]
[UmbracoTreeAuthorize(Constants.Trees.MemberTypes)]
... | mit | C# |
1934fe6558fe42d1587bb6f2b52da5e48212a53b | remove template from DelegateQuery::DelegateMethod because it cause build errors in VS.Net Express 2008 | marksvc/libpalaso,gtryus/libpalaso,andrew-polk/libpalaso,ermshiperete/libpalaso,ermshiperete/libpalaso,mccarthyrb/libpalaso,sillsdev/libpalaso,JohnThomson/libpalaso,gtryus/libpalaso,ddaspit/libpalaso,tombogle/libpalaso,andrew-polk/libpalaso,gmartin7/libpalaso,JohnThomson/libpalaso,glasseyes/libpalaso,tombogle/libpalaso... | Palaso/Data/DelegateQuery.cs | Palaso/Data/DelegateQuery.cs | using System.Collections.Generic;
using Palaso.Data;
namespace Palaso.Data
{
public class DelegateQuery<T> : IQuery<T> where T: class, new()
{
public delegate IEnumerable<IDictionary<string, object>> DelegateMethod(T item);
DelegateMethod _method;
public DelegateQuery(DelegateMethod method)
{
_method = ... | using System.Collections.Generic;
using Palaso.Data;
namespace Palaso.Data
{
public class DelegateQuery<T> : IQuery<T> where T: class, new()
{
public delegate IEnumerable<IDictionary<string, object>> DelegateMethod<T>(T item) where T : class, new();
DelegateMethod<T> _method;
public DelegateQuery(DelegateMet... | mit | C# |
d04509a82e51a08b9b2c1d5c3a2ce2a2611e4166 | Introduce a SmartLink value to the LinkWith attribute. | mono/maccore | src/ObjCRuntime/LinkWithAttribute.cs | src/ObjCRuntime/LinkWithAttribute.cs | //
// Authors: Jeffrey Stedfast
//
// Copyright 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, including
// without limitation the rights to use,... | //
// Authors: Jeffrey Stedfast
//
// Copyright 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, including
// without limitation the rights to use,... | apache-2.0 | C# |
cf6500c2a0949b1fc0a207b81c2771801af41bf9 | Increment version | roberthardy/Synthesis,kamsar/Synthesis | Source/SharedAssemblyInfo.cs | Source/SharedAssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System;
[assembly: AssemblyCompany("ISITE Design")]
[assembly: AssemblyProduct("Synthesis")]
[assembly: AssemblyCopyright("Copyright © Kam Figy, ISITE Design")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("8.0.0.0")]
[assembly: Assembly... | using System.Reflection;
using System.Runtime.InteropServices;
using System;
[assembly: AssemblyCompany("ISITE Design")]
[assembly: AssemblyProduct("Synthesis")]
[assembly: AssemblyCopyright("Copyright © Kam Figy, ISITE Design")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("8.0.0.0")]
[assembly: Assembly... | mit | C# |
23d5fa5c9b8ae34f8805f2b9e003d0df1a67818e | Add comment. | jmarolf/roslyn,aelij/roslyn,KirillOsenkov/roslyn,jasonmalinowski/roslyn,bkoelman/roslyn,VSadov/roslyn,ErikSchierboom/roslyn,jasonmalinowski/roslyn,KirillOsenkov/roslyn,tmeschter/roslyn,stephentoub/roslyn,jcouv/roslyn,dpoeschl/roslyn,abock/roslyn,paulvanbrenk/roslyn,aelij/roslyn,DustinCampbell/roslyn,jcouv/roslyn,gafter... | src/Workspaces/Core/Portable/EmbeddedLanguages/LanguageServices/AbstractEmbeddedLanguageProvider.cs | src/Workspaces/Core/Portable/EmbeddedLanguages/LanguageServices/AbstractEmbeddedLanguageProvider.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Immutable;
using Microsoft.CodeAnalysis.Editing;
using Microsoft.CodeAnalysis.EmbeddedLanguages.VirtualChars;
using Microsoft.CodeAn... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Immutable;
using Microsoft.CodeAnalysis.Editing;
using Microsoft.CodeAnalysis.EmbeddedLanguages.VirtualChars;
using Microsoft.CodeAn... | mit | C# |
345d02e1890190713f2128ef1fdef33ee29778c3 | add accessors for "headers" field | iron-io/iron_dotnet | src/IronSharp.IronMQ/Subscriber.cs | src/IronSharp.IronMQ/Subscriber.cs | using System;
using System.Collections.Generic;
using System.Net;
using Newtonsoft.Json;
namespace IronSharp.IronMQ
{
public class Subscriber
{
public Subscriber() : this(null,null,null)
{
}
public Subscriber(string name, string url) : this(name, url, null)
{
}... | using System;
using System.Collections.Generic;
using System.Net;
using Newtonsoft.Json;
namespace IronSharp.IronMQ
{
public class Subscriber
{
public Subscriber() : this(null,null,null)
{
}
public Subscriber(string name, string url) : this(name, url, null)
{
}... | mit | C# |
d455ab9ffe38b35765aa84b0d6bb08e65ec99dd5 | Add default kick message, inform who the kicker was | Yonom/CupCake | CupCake.DefaultCommands/Commands/User/KickCommand.cs | CupCake.DefaultCommands/Commands/User/KickCommand.cs | using System.Runtime.InteropServices;
using CupCake.Command;
using CupCake.Command.Source;
using CupCake.Permissions;
using CupCake.Players;
namespace CupCake.DefaultCommands.Commands.User
{
public sealed class KickCommand : UserCommandBase
{
[MinGroup(Group.Trusted)]
[Label("kick", "kickplaye... | using CupCake.Command;
using CupCake.Command.Source;
using CupCake.Permissions;
using CupCake.Players;
namespace CupCake.DefaultCommands.Commands.User
{
public sealed class KickCommand : UserCommandBase
{
[MinGroup(Group.Trusted)]
[Label("kick", "kickplayer")]
[CorrectUsage("[player] [... | mit | C# |
e7d28fc965cb70540db9a26c61947e1ce7172bd5 | Fix CS | Lc5/CurrencyRates,Lc5/CurrencyRates,Lc5/CurrencyRates | CurrencyRates.WebService/CurrencyRatesService.svc.cs | CurrencyRates.WebService/CurrencyRatesService.svc.cs | namespace CurrencyRates.WebService
{
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using CurrencyRates.Model;
using CurrencyRates.Model.Entities;
using CurrencyRates.Model.Queries;
public class CurrencyRatesService : ICurrencyRatesService
{
... | namespace CurrencyRates.WebService
{
using System.Collections.Generic;
using System.Data.Entity;
using CurrencyRates.Model;
using CurrencyRates.Model.Entities;
using CurrencyRates.Model.Queries;
public class CurrencyRatesService : ICurrencyRatesService
{
private readonl... | mit | C# |
6aebc144e4b5fe2769fc24e9017f914ff6becb4d | add a key to FormItemModel to allow saving to database | bluemner/FormsGenerator,bluemner/FormsGenerator,bluemner/FormsGenerator | FormsGeneratorWebApplication/Models/FormItemModel.cs | FormsGeneratorWebApplication/Models/FormItemModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
namespace FormsGeneratorWebApplication.Models
{
public class FormItemModel
{
[Key]
public int id { get; set; }
[Display(Name="Position")]
[Required... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
namespace FormsGeneratorWebApplication.Models
{
public class FormItemModel
{
[Display(Name="Position")]
[Required(ErrorMessage="No postion set")]
public int... | mit | C# |
895e517809b21089cf6182c39476b6169f40d3fc | Fix tests - apparently CoreEventId.NavigationBaseIncludeIgnored now defaults to Error in EF Core 6. | IntelliTect/Coalesce,IntelliTect/Coalesce,IntelliTect/Coalesce,IntelliTect/Coalesce | src/IntelliTect.Coalesce.Tests/TargetClasses/TestDbContext/TestDbContext.cs | src/IntelliTect.Coalesce.Tests/TargetClasses/TestDbContext/TestDbContext.cs | using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Diagnostics;
using System;
using System.Collections.Generic;
using System.Text;
namespace IntelliTect.Coalesce.Tests.TargetClasses.TestDbContext
{
[Coalesce]
public class TestDbContext : DbContext
{
public DbSet<Person> Peopl... | using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;
namespace IntelliTect.Coalesce.Tests.TargetClasses.TestDbContext
{
[Coalesce]
public class TestDbContext : DbContext
{
public DbSet<Person> People { get; set; }
public DbSet<Case> Cases ... | apache-2.0 | C# |
a882c88b9f788633b44778bef92cd7723da80dfb | Update StaticOffsets.cs | aevitas/orion | src/Orion.GlobalOffensive/Orion.GlobalOffensive/Patchables/StaticOffsets.cs | src/Orion.GlobalOffensive/Orion.GlobalOffensive/Patchables/StaticOffsets.cs | // Copyright (C) 2015 aevitas
// See the file LICENSE for copying permission.
namespace Orion.GlobalOffensive.Patchables
{
// Contains offsets that hardly ever, if ever at all, change.
public enum StaticOffsets
{
// Entity
Position = 0x134,
Team = 0xF0,
Armor = 0xA8A4,
Health = 0xFC,
Dorma... | // Copyright (C) 2015 aevitas
// See the file LICENSE for copying permission.
namespace Orion.GlobalOffensive.Patchables
{
// Contains offsets that hardly ever, if ever at all, change.
public enum StaticOffsets
{
// Entity
Position = 0x134,
Team = 0xF0,
Armor = 0x8C84,
Health = 0xFC,
Dorma... | apache-2.0 | C# |
53667269a5952b4c32dfef49165fcf4af51406fd | add message | nmklotas/GitLabCLI | src/GitlabCmd.Console/Output/OutputPresenter.cs | src/GitlabCmd.Console/Output/OutputPresenter.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace GitLabCLI.Console.Output
{
public sealed class OutputPresenter
{
private readonly GridResultFormatter _gridResultFormatter;
public OutputPresenter(GridResultFormatter gridResultFormatter) => _gridResultFormatter = gr... | using System;
using System.Collections.Generic;
using System.Linq;
namespace GitLabCLI.Console.Output
{
public sealed class OutputPresenter
{
private readonly GridResultFormatter _gridResultFormatter;
public OutputPresenter(GridResultFormatter gridResultFormatter) => _gridResultFormatter = gr... | mit | C# |
d0c87453f0cfc0b7c340ffea41fcb191289d0ab9 | Update image mapping code on server | lindydonna/ContosoMoments,azure-appservice-samples/ContosoMoments,azure-appservice-samples/ContosoMoments,lindydonna/ContosoMoments,lindydonna/ContosoMoments,azure-appservice-samples/ContosoMoments,azure-appservice-samples/ContosoMoments,azure-appservice-samples/ContosoMoments,lindydonna/ContosoMoments,lindydonna/Conto... | src/Cloud/ContosoMoments.API/Helpers/ImageNameResolver.cs | src/Cloud/ContosoMoments.API/Helpers/ImageNameResolver.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using ContosoMoments.Common.Models;
using ContosoMoments.MobileServer.Models;
using Microsoft.Azure.Mobile.Server.Files;
namespace ContosoMoments.API.Controllers.TableControllers
{
public class Image... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using ContosoMoments.Common.Models;
using ContosoMoments.MobileServer.Models;
using Microsoft.Azure.Mobile.Server.Files;
namespace ContosoMoments.API.Controllers.TableControllers
{
public class Image... | mit | C# |
a6421ec4829d5f78507f1500bddf3a3b1f9fa044 | check AbpAllowAnonymousAttribute | aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template | aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/Startup/SecurityRequirementsOperationFilter.cs | aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/Startup/SecurityRequirementsOperationFilter.cs | using System.Collections.Generic;
using System.Linq;
using Swashbuckle.AspNetCore.Swagger;
using Swashbuckle.AspNetCore.SwaggerGen;
using Abp.Authorization;
namespace AbpCompanyName.AbpProjectName.Web.Host.Startup
{
public class SecurityRequirementsOperationFilter : IOperationFilter
{
public void Appl... | using System.Collections.Generic;
using System.Linq;
using Swashbuckle.AspNetCore.Swagger;
using Swashbuckle.AspNetCore.SwaggerGen;
using Abp.Authorization;
namespace AbpCompanyName.AbpProjectName.Web.Host.Startup
{
public class SecurityRequirementsOperationFilter : IOperationFilter
{
public void Appl... | mit | C# |
41204f5f43ac10f0159778a87491d6d71bae37b2 | Add ToDictionarySafe | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.Common/Utilities/Collections/Enumerable.ToDictionary.cs | source/Nuke.Common/Utilities/Collections/Enumerable.ToDictionary.cs | // Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
namespace Nuke.Common.Utilities.Collections
{
public static partial class Enumerab... | // Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
namespace Nuke.Common.Utilities.Collections
{
public static partial class Enumerab... | mit | C# |
19f47c054ee8a3e7a258848a359be4b116df851e | Update 01-CreateTable.cs | awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,a... | .dotnet/example_code/DynamoDB/TryDax/01-CreateTable.cs | .dotnet/example_code/DynamoDB/TryDax/01-CreateTable.cs | // snippet-sourcedescription:[ ]
// snippet-service:[dynamodb]
// snippet-keyword:[dotNET]
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[Code Sample]
// snippet-keyword:[ ]
// snippet-sourcetype:[full-example]
// snippet-sourcedate:[ ]
// snippet-sourceauthor:[AWS]
// snippet-start:[dynamodb.dotNET.trydax.01... | // snippet-sourcedescription:[ ]
// snippet-service:[dynamodb]
// snippet-keyword:[dotNET]
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[Code Sample]
// snippet-keyword:[ ]
// snippet-sourcetype:[full-example]
// snippet-sourcedate:[ ]
// snippet-sourceauthor:[AWS]
// snippet-start:[dynamodb.dotNET.trydax.01... | apache-2.0 | C# |
22e1824d95a3188c5b741b0f321c419a4b866601 | Add Alias attribute to NLogLoggerProvider | NLog/NLog.Extensions.Logging,NLog/NLog.Framework.Logging,NLog/NLog.Framework.Logging | src/NLog.Extensions.Logging/Logging/NLogLoggerProvider.cs | src/NLog.Extensions.Logging/Logging/NLogLoggerProvider.cs | #if !NETCORE1_0
using Microsoft.Extensions.Logging;
#endif
namespace NLog.Extensions.Logging
{
/// <summary>
/// Provider logger for NLog + Microsoft.Extensions.Logging
/// </summary>
#if !NETCORE1_0
[ProviderAlias("NLog")]
#endif
public class NLogLoggerProvider : Microsoft.Extensions.Logging.ILo... | namespace NLog.Extensions.Logging
{
/// <summary>
/// Provider logger for NLog + Microsoft.Extensions.Logging
/// </summary>
public class NLogLoggerProvider : Microsoft.Extensions.Logging.ILoggerProvider
{
/// <summary>
/// NLog options
/// </summary>
public NLogProv... | bsd-2-clause | C# |
885f548a34c2d6ab01e33be5a92f841efe40ef6c | Fix link to remote R setup | MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSh... | src/Package/Impl/Options/R/Commands/SetupRemoteCommand.cs | src/Package/Impl/Options/R/Commands/SetupRemoteCommand.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.ComponentModel.Design;
using System.Diagnostics;
using Microsoft.VisualStudio.R.Package.Commands;
using Microsoft.VisualStudio.R.Packages.... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.ComponentModel.Design;
using System.Diagnostics;
using Microsoft.VisualStudio.R.Package.Commands;
using Microsoft.VisualStudio.R.Packages.... | mit | C# |
1d59a4490ebc1753e3ccb9d30112deff3626b8bb | Update UI for Create view. | iamdavidfrancis/AFO2015,iamdavidfrancis/AFO2015 | Orlandia2015/Views/MissionAchievements/Create.cshtml | Orlandia2015/Views/MissionAchievements/Create.cshtml | @model Orlandia2015.Models.MissionAchievement
@{
ViewBag.Title = "Add Mission Achievement";
}
<h2>Add Mission Achievement</h2>
<hr />
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
@Html.ValidationSummary(true, "", new { @class = "text-danger" }... | @model Orlandia2015.Models.MissionAchievement
@{
ViewBag.Title = "Create";
}
<h2>Create</h2>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>MissionAchievement</h4>
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" ... | apache-2.0 | C# |
803897b254377b9218d6b3809d8b34eaef63b404 | Throw on invalid argument passed to DiagnosticReporter.Report(...) | genlu/roslyn,paulvanbrenk/roslyn,KirillOsenkov/roslyn,physhi/roslyn,heejaechang/roslyn,tmeschter/roslyn,jasonmalinowski/roslyn,OmarTawfik/roslyn,AlekseyTs/roslyn,mgoertz-msft/roslyn,gafter/roslyn,swaroop-sridhar/roslyn,aelij/roslyn,DustinCampbell/roslyn,tmeschter/roslyn,brettfo/roslyn,VSadov/roslyn,dpoeschl/roslyn,Kevi... | src/Workspaces/Core/MSBuild/MSBuild/DiagnosticReporter.cs | src/Workspaces/Core/MSBuild/MSBuild/DiagnosticReporter.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.CodeAnalysis.MSBuild.Logging;
namespace Microsoft.CodeAnalysis.MSBuild
{
internal class DiagnosticReporter
{
p... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.CodeAnalysis.MSBuild.Logging;
namespace Microsoft.CodeAnalysis.MSBuild
{
internal class DiagnosticReporter
{
p... | mit | C# |
308d337bf5289b2dd705c97fe32ed4aff5e11d93 | add ref | mattgwagner/CertiPay.Common | CertiPay.Common.Notifications/Extensions/SmtpExtensions.cs | CertiPay.Common.Notifications/Extensions/SmtpExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace CertiPay.Common.Notifications.Extensions
{
public static class SmtpExtensions
{
/// <summary>
/// Extension method to hav... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace CertiPay.Common.Notifications.Extensions
{
public static class SmtpExtensions
{
/// <summary>
/// Extension method to hav... | mit | C# |
05554f38413e694166685bdd600aa835712667d8 | update Copyright (c) 2017 - 2020 NDark | NDark/ndinfrastructure,NDark/ndinfrastructure | Unity/UnityTestToolsUtility/UnityTestToolsUtility.cs | Unity/UnityTestToolsUtility/UnityTestToolsUtility.cs | /**
MIT License
Copyright (c) 2017 - 2020 NDark
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... | /**
MIT License
Copyright (c) 2017 NDark
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... | mit | C# |
7381da87075b16d79065920d02e33159a9ee2686 | Update EnumerableExtensions.cs | keith-hall/Extensions,keith-hall/Extensions | src/EnumerableExtensions.cs | src/EnumerableExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace HallLibrary.Extensions
{
public static class EnumerableExtensions
{
/// <summary>
/// Randomise the order of the elements in the <paramref name="source"/> enumerable.
/// </summary>
/// <typeparam name="T">The type of the elements i... | using System;
using System.Collections.Generic;
using System.Linq;
namespace HallLibrary.Extensions
{
public static class EnumerableExtensions
{
public static IEnumerable<T> Shuffle<T>(this IEnumerable<T> source, Random rng)
{ // http://stackoverflow.com/questions/1287567/is-using-random-and-orderby-a-good-shuff... | apache-2.0 | C# |
bfdb3270174b2a2c02d07cf994ab736d9e6d7dc5 | Add copyright banner for NamedPipeUtil.cs | mono/msbuild,rainersigwald/msbuild,cdmihai/msbuild,sean-gilliam/msbuild,AndyGerlicher/msbuild,AndyGerlicher/msbuild,rainersigwald/msbuild,mono/msbuild,mono/msbuild,sean-gilliam/msbuild,sean-gilliam/msbuild,AndyGerlicher/msbuild,AndyGerlicher/msbuild,sean-gilliam/msbuild,rainersigwald/msbuild,cdmihai/msbuild,mono/msbuil... | src/Shared/NamedPipeUtil.cs | src/Shared/NamedPipeUtil.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.IO;
namespace Microsoft.Build.Shared
{
internal static class NamedPipeUtil
{
internal static string GetPipeNameOrPath(string... | using System;
using System.IO;
namespace Microsoft.Build.Shared
{
internal static class NamedPipeUtil
{
internal static string GetPipeNameOrPath(string pipeName)
{
if (NativeMethodsShared.IsUnixLike)
{
// If we're on a Unix machine then named pipes are im... | mit | C# |
12177326d86e86cd62419b718f9f734bef800c3b | Mark Main with [STAThread]. | KevM/fixie,bardoloi/fixie,Duohong/fixie,JakeGinnivan/fixie,bardoloi/fixie,EliotJones/fixie,fixie/fixie | src/Fixie.Console/Program.cs | src/Fixie.Console/Program.cs | using System;
using System.Linq;
namespace Fixie.Console
{
using Console = System.Console;
class Program
{
const int FatalError = -1;
[STAThread]
static int Main(string[] args)
{
try
{
if (args.Length != 1)
{
... | using System;
using System.Linq;
namespace Fixie.Console
{
using Console = System.Console;
class Program
{
const int FatalError = -1;
static int Main(string[] args)
{
try
{
if (args.Length != 1)
{
Console... | mit | C# |
7cab48f045c7f071b8dd4486f41e7888ba70e3d1 | Fix version bug | ErikEJ/EntityFramework.SqlServerCompact,ErikEJ/EntityFramework7.SqlServerCompact | src/Provider40/Properties/AssemblyInfo.cs | src/Provider40/Properties/AssemblyInfo.cs | using System.Reflection;
using Microsoft.EntityFrameworkCore.Infrastructure;
#if SQLCE35
[assembly: AssemblyTitle("EntityFrameworkCore.SqlServerCompact35")]
[assembly: AssemblyProduct("EntityFrameworkCore.SqlServerCompact35")]
[assembly: DesignTimeProviderServices(
typeName: "Microsoft.EntityFrameworkCore.Scaffol... | using System.Reflection;
using Microsoft.EntityFrameworkCore.Infrastructure;
#if SQLCE35
[assembly: AssemblyTitle("EntityFrameworkCore.SqlServerCompact35")]
[assembly: AssemblyProduct("EntityFrameworkCore.SqlServerCompact35")]
[assembly: DesignTimeProviderServices(
typeName: "Microsoft.EntityFrameworkCore.Scaffol... | apache-2.0 | C# |
057acb6129d291333329ad305ae7e6c752c345ee | add version of Deserialize with Type parameter instead of generic | sw17ch/Z-ARCHIVED-legacy-cauterize,sw17ch/Z-ARCHIVED-legacy-cauterize,sw17ch/Z-ARCHIVED-legacy-cauterize,sw17ch/Z-ARCHIVED-legacy-cauterize,sw17ch/Z-ARCHIVED-legacy-cauterize | support/cs/src/CauterizeFormatter.cs | support/cs/src/CauterizeFormatter.cs | using System;
using System.IO;
using System.Runtime.Serialization;
namespace Cauterize
{
public class CauterizeFormatter
{
public SerializationBinder Binder { get; set; }
public StreamingContext Context { get; set; }
public ISurrogateSelector SurrogateSelector { get; set; }
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Runtime.Serialization;
using System.Text;
namespace Cauterize
{
public class CauterizeFormatter
{
public SerializationBinder Binder { get; set; }
public StreamingContext Context {... | mit | C# |
cf6141bc5fa32ccae902f7653f5ca08a2b7dd744 | Add DiscountRate to LineItem model | MatthewSteeples/XeroAPI.Net,jcvandan/XeroAPI.Net,TDaphneB/XeroAPI.Net,XeroAPI/XeroAPI.Net | source/XeroApi/Model/LineItem.cs | source/XeroApi/Model/LineItem.cs | namespace XeroApi.Model
{
public class LineItem : ModelBase
{
private readonly TrackingCategories _tracking = new TrackingCategories();
public string Description { get; set; }
public decimal? UnitAmount { get; set; }
public string TaxType { get; set; }
public decimal?... | namespace XeroApi.Model
{
public class LineItem : ModelBase
{
private readonly TrackingCategories _tracking = new TrackingCategories();
public string Description { get; set; }
public decimal? UnitAmount { get; set; }
public string TaxType { get; set; }
public decimal?... | mit | C# |
2c6f9b1aa2821ba3b6cb72b488e2cc04487b67b1 | Add BtcJpyNextWeek | kiyoaki/bitflyer-api-dotnet-client | src/BitFlyer.Apis/ProductCode.cs | src/BitFlyer.Apis/ProductCode.cs | using System.Linq;
using System.Threading.Tasks;
namespace BitFlyer.Apis
{
public static class ProductCode
{
public const string BtcJpy = "BTC_JPY";
public const string FxBtcJpy = "FX_BTC_JPY";
public const string EthBtc = "ETH_BTC";
public const string BchBtc = "BCH_BTC";
... | using System.Linq;
using System.Threading.Tasks;
namespace BitFlyer.Apis
{
public static class ProductCode
{
public const string BtcJpy = "BTC_JPY";
public const string FxBtcJpy = "FX_BTC_JPY";
public const string EthBtc = "ETH_BTC";
public const string BchBtc = "BCH_BTC";
... | mit | C# |
1e4513b5c9768fab619f8412155cfbd3bcbcbf01 | Fix unit test. | andrelmp/eShopOnContainers,BillWagner/eShopOnContainers,BillWagner/eShopOnContainers,dotnet-architecture/eShopOnContainers,andrelmp/eShopOnContainers,skynode/eShopOnContainers,albertodall/eShopOnContainers,oferns/eShopOnContainers,andrelmp/eShopOnContainers,productinfo/eShopOnContainers,productinfo/eShopOnContainers,sk... | test/Services/UnitTest/Account/AccountControllerTest.cs | test/Services/UnitTest/Account/AccountControllerTest.cs | using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.eShopOnContainers.WebMVC.Controllers;
using Microsoft.eShopOnContainers.WebMVC.Services;
using Microsoft.eShopOnContainers.WebMVC.ViewModels;
using Moq;
using System;
using System.Collections.Generic;
using System.Security.Claims;
using S... | using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.eShopOnContainers.WebMVC.Controllers;
using Microsoft.eShopOnContainers.WebMVC.Services;
using Microsoft.eShopOnContainers.WebMVC.ViewModels;
using Moq;
using System;
using System.Collections.Generic;
using System.Security.Claims;
using S... | mit | C# |
d97fc065d8d9e2762255b81bf7fc447847a80847 | Revert "Revert "Formatting comments."" | zzzprojects/Z.ExtensionMethods,huoxudong125/Z.ExtensionMethods,mario-loza/Z.ExtensionMethods | test/Z.Core.Test/String.IsAnagram.cs | test/Z.Core.Test/String.IsAnagram.cs | // Copyright (c) 2015 ZZZ Projects. All rights reserved
// Licensed under MIT License (MIT) (https://github.com/zzzprojects/Z.ExtensionMethods)
// Website: http://www.zzzprojects.com/
// Feedback / Feature Requests / Issues : http://zzzprojects.uservoice.com/forums/283927
// All ZZZ Projects products: Entity Framework... | // Copyright (c) 2015 ZZZ Projects. All rights reserved
// Licensed under MIT License (MIT) (https://github.com/zzzprojects/Z.ExtensionMethods)
// Website: http://www.zzzprojects.com/
// Feedback / Feature Requests / Issues : http://zzzprojects.uservoice.com/forums/283927
// All ZZZ Projects products: Entity Framework... | mit | C# |
5395348783c0b838e4c44aa8bf313c0bb979d646 | Revert "Cleaned up state abbreviations." | jeffreypalermo/humanityroad-emergencyresponsedatatransformer,jeffreypalermo/humanityroad-emergencyresponsedatatransformer | HRERDataTransformer/HRERDataTransformer/Models/StateAbbreviations.cs | HRERDataTransformer/HRERDataTransformer/Models/StateAbbreviations.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace HRERDataTransformer.Models
{
public static class StateAbbreviations
{
public static Dictionary<string, string> Abbreviations = new Dictionary<string, string>
{
{ "AL", "Alabama" },
{ "AK", "Alaska" },
{ "AZ",... | using System.Collections.Generic;
namespace HRERDataTransformer.Models
{
public static class StateAbbreviations
{
public static Dictionary<string, string> Abbreviations = new Dictionary<string, string>
{
{ "AL", "Alabama" },
{ "AK", "Alaska" },
{ "AZ", "Arizona" },
{ "AR", "Arkansas" },
{ "CA", "... | apache-2.0 | C# |
328aa5a68b87a47b3f26fc9cd438cce71d9c4994 | Use PublicMonitoringConfiguration in AgentDiagnosticSettings | cwickham3/azure-sdk-for-net,jamestao/azure-sdk-for-net,felixcho-msft/azure-sdk-for-net,msfcolombo/azure-sdk-for-net,shuagarw/azure-sdk-for-net,olydis/azure-sdk-for-net,AuxMon/azure-sdk-for-net,pilor/azure-sdk-for-net,stankovski/azure-sdk-for-net,oburlacu/azure-sdk-for-net,yaakoviyun/azure-sdk-for-net,SpotLabsNET/azure-... | src/Insights/Generated/Management/Insights/Models/AgentDiagnosticSettings.cs | src/Insights/Generated/Management/Insights/Models/AgentDiagnosticSettings.cs | //
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requi... | //
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requi... | apache-2.0 | C# |
0f9ac5601d57d121a6ed1495c38137bf5450390c | Fix params on activator. | darvell/Coremero | Coremero/Coremero.Client.Discord/DiscordObjectFactory.cs | Coremero/Coremero.Client.Discord/DiscordObjectFactory.cs | using System;
using System.Collections.Generic;
using System.Text;
using Discord;
namespace Coremero.Client.Discord
{
public class DiscordObjectFactory<TSource, TTarget> where TSource : ISnowflakeEntity
{
private Dictionary<ulong, TTarget> _cache = new Dictionary<ulong, TTarget>();
public TTa... | using System;
using System.Collections.Generic;
using System.Text;
using Discord;
namespace Coremero.Client.Discord
{
public class DiscordObjectFactory<TSource, TTarget> where TSource : ISnowflakeEntity
{
private Dictionary<ulong, TTarget> _cache = new Dictionary<ulong, TTarget>();
public TTa... | mit | C# |
6e83b84f782e08915c9a901c3dada9f089485a2a | Update cake script with new paths | Mikescher/AlephNote | build.cake | build.cake | #tool "GitVersion.Commandline"
#addin "Cake.Compression"
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var solution = File("Source/AlephNote.sln");
Task("Clean")
.Does(() =>
{
CleanDirectories("Bin/*");
CleanDirectories("Lib/*");
CleanDirectorie... | #tool "GitVersion.Commandline"
#addin "Cake.Compression"
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var solution = File("Source/AlephNote.sln");
Task("Clean")
.Does(() =>
{
CleanDirectories("Bin/*");
CleanDirectories("Lib/*");
CleanDirectorie... | mit | C# |
55208822e4bd598700d27ae49d7ddbb699924885 | Rename `format` argument to `fallback` in `TranslatableString` | peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework | osu.Framework/Localisation/TranslatableString.cs | osu.Framework/Localisation/TranslatableString.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.
#nullable enable
using System;
namespace osu.Framework.Localisation
{
/// <summary>
/// A string which can be translated using a key lookup.
/// </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.
#nullable enable
using System;
namespace osu.Framework.Localisation
{
/// <summary>
/// A string which can be translated using a key lookup.
/// </summary>... | mit | C# |
0a34ce2509d1df942034704a9baa057010b1af47 | Increase font weight for runtime clock | peppy/osu,ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,peppy/osu | osu.Game/Overlays/Toolbar/DigitalClockDisplay.cs | osu.Game/Overlays/Toolbar/DigitalClockDisplay.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 osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
namespace osu.Game.Overlays.Toolbar... | // 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 osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osuTK;
namespace osu.Game.Ove... | mit | C# |
f715bd8c19534ad13d53def4bb84eb58afee379b | Add xml comment for new StreamDeckXL property. | OpenStreamDeck/StreamDeckSharp | src/StreamDeckSharp/Hardware.cs | src/StreamDeckSharp/Hardware.cs | using StreamDeckSharp.Internals;
namespace StreamDeckSharp
{
/// <summary>
/// Details about different StreamDeck Hardware
/// </summary>
public static class Hardware
{
/// <summary>
/// Details about the classic Stream Deck
/// </summary>
public static IUsbHidHardw... | using StreamDeckSharp.Internals;
namespace StreamDeckSharp
{
/// <summary>
/// Details about different StreamDeck Hardware
/// </summary>
public static class Hardware
{
/// <summary>
/// Details about the classic Stream Deck
/// </summary>
public static IUsbHidHardw... | mit | C# |
21bb51244f6f722a6959ebdb56fe4c872e97ad95 | Fix for test case. [release] | dapplo/Dapplo.Jira | Dapplo.Jira.Tests/WorkTests.cs | Dapplo.Jira.Tests/WorkTests.cs | #region Dapplo 2017 - GNU Lesser General Public License
// Dapplo - building blocks for .NET applications
// Copyright (C) 2017 Dapplo
//
// For more information see: http://dapplo.net/
// Dapplo repositories are hosted on GitHub: https://github.com/dapplo
//
// This file is part of Dapplo.Jira
//
// Dapplo.Jira i... | #region Dapplo 2017 - GNU Lesser General Public License
// Dapplo - building blocks for .NET applications
// Copyright (C) 2017 Dapplo
//
// For more information see: http://dapplo.net/
// Dapplo repositories are hosted on GitHub: https://github.com/dapplo
//
// This file is part of Dapplo.Jira
//
// Dapplo.Jira i... | mit | C# |
9071cce8bcdafdc7190b6c50cd42ad9822dc2f03 | Bump version for release | jwvdiermen/TransIP-API | src/shared/SharedAssemblyInfo.cs | src/shared/SharedAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyProduct("TransIP API")]
[assembly: AssemblyCompany("Crealuz")]
[assembly: AssemblyCopyright("Copyright © 2011-2014 Crealuz - All rights reserved")]
[assembly: AssemblyVersion("0.1.6")]
[assembly: AssemblyFileVersion("0.1.6")] | using System.Reflection;
[assembly: AssemblyProduct("TransIP API")]
[assembly: AssemblyCompany("Crealuz")]
[assembly: AssemblyCopyright("Copyright © 2011-2014 Crealuz - All rights reserved")]
[assembly: AssemblyVersion("0.1.5")]
[assembly: AssemblyFileVersion("0.1.5")] | mit | C# |
2c0600becf0aeab17f996138e4f6df6451bf281d | add project url | abhinavwaviz/im-only-resting,SwensenSoftware/im-only-resting,MrZANE42/im-only-resting,jordanbtucker/im-only-resting,stephen-swensen/im-only-resting,codemonkey493/im-only-resting,nathanwblair/im-only-resting,stephen-swensen/im-only-resting,ItsAGeekThing/im-only-resting,jordanbtucker/im-only-resting,SwensenSoftware/im-on... | Ior/Properties/AssemblyInfo.cs | Ior/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... | apache-2.0 | C# |
3fbf3f683075b41ab5285aeb747d224151208471 | Fix typo | elastic/elasticsearch-net,elastic/elasticsearch-net | src/Utf8Json/src/Utf8Json/Internal/Emit/DynamicAssembly.cs | src/Utf8Json/src/Utf8Json/Internal/Emit/DynamicAssembly.cs | using System;
using System.Reflection;
using System.Reflection.Emit;
namespace Utf8Json.Internal.Emit
{
public class DynamicAssembly
{
#if NET45 || NET47
readonly string moduleName;
#endif
readonly AssemblyBuilder assemblyBuilder;
readonly ModuleBuilder moduleBuilder;
// don't... | using System;
using System.Reflection;
using System.Reflection.Emit;
namespace Utf8Json.Internal.Emit
{
public class DynamicAssembly
{
#if NET45 || NET47
readonly string moduleName;
#endif
readonly AssemblyBuilder assemblyBuilder;
readonly ModuleBuilder moduleBuilder;
// don't... | apache-2.0 | C# |
f4e0602740863547ceb59664d9dc2986cf207e8d | Update SolidColorBrushImpl.cs | DavidKarlas/Perspex,punker76/Perspex,MrDaedra/Avalonia,tshcherban/Perspex,SuperJMN/Avalonia,wieslawsoltes/Perspex,grokys/Perspex,wieslawsoltes/Perspex,Perspex/Perspex,SuperJMN/Avalonia,jazzay/Perspex,bbqchickenrobot/Perspex,danwalmsley/Perspex,SuperJMN/Avalonia,SuperJMN/Avalonia,wieslawsoltes/Perspex,OronDF343/Avalonia... | src/Windows/Perspex.Direct2D1/Media/SolidColorBrushImpl.cs | src/Windows/Perspex.Direct2D1/Media/SolidColorBrushImpl.cs | // -----------------------------------------------------------------------
// <copyright file="SolidColorBrushImpl.cs" company="Steven Kirk">
// Copyright 2015 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex... | // -----------------------------------------------------------------------
// <copyright file="SolidColorBrushImpl.cs" company="Steven Kirk">
// Copyright 2015 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex... | mit | C# |
5a215828e756f498c1cabf8d9c9904f170e391bf | Add BoweTime missing implementations | rc1/BowieCode | BowieTime.cs | BowieTime.cs | using System;
namespace BowieCode {
/// <summary>
/// Simple time and helpers
/// </summary>
public class BowieTime {
///<summary>
///An imitation of JavaScript's Date.Now function.
///</summary>
public static long Now () {
return (long) System.Math.Floor( DateTime.UtcNow.Subtract( new DateTime( 1970... | using System;
namespace BowieCode {
/// <summary>
/// Simple time and helpers
/// </summary>
public class BowieTime {
///<summary>
///An imitation of JavaScript's Date.Now function.
///</summary>
public static long Now () {
return (long)System.Math.Floor( ... | mit | C# |
ad301dfb7f6d2bf80ff75252eeec0c903a43661a | Make saved settings more readable | NJAldwin/Pequot | Pequot/SerializableSettings.cs | Pequot/SerializableSettings.cs | using System;
using System.Collections.Generic;
using System.Xml;
using System.Xml.Serialization;
namespace Pequot
{
[XmlRoot("settings")]
public class SerializableSettings
: Dictionary<string, string>, IXmlSerializable
{
#region IXmlSerializable Members
public System.Xml... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
namespace Pequot
{
[XmlRoot("settings")]
public class SerializableSettings
: Dictionary<string, string>, IXmlSerializable
{
#region IXmlSerializ... | mit | C# |
09b56a663a4a4568d64dd38cca36e9ff9b30499c | Comment out complex result | DigDes/SoapCore | samples/Client461/Program.cs | samples/Client461/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
public static void Main(string[] args)
{
var binding = new BasicHttpBinding();
var endp... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
public static void Main(string[] args)
{
var binding = new BasicHttpBinding();
var endp... | mit | C# |
8ca5572299c8eaf21581e861f5fb302d3f27357f | Rename local variable in test | charlenni/Mapsui,charlenni/Mapsui,pauldendulk/Mapsui | Tests/Mapsui.Tests/Rendering/RenderFetchStrategyTests.cs | Tests/Mapsui.Tests/Rendering/RenderFetchStrategyTests.cs | using BruTile;
using BruTile.Cache;
using BruTile.Predefined;
using Mapsui.Providers;
using Mapsui.Rendering;
using NUnit.Framework;
using System.Globalization;
using Mapsui.Geometries;
namespace Mapsui.Tests.Rendering
{
[TestFixture]
public class RenderFetchStrategyTests
{
[Test]
public v... | using BruTile;
using BruTile.Cache;
using BruTile.Predefined;
using Mapsui.Providers;
using Mapsui.Rendering;
using NUnit.Framework;
using System.Globalization;
using Mapsui.Geometries;
namespace Mapsui.Tests.Rendering
{
[TestFixture]
public class RenderFetchStrategyTests
{
[Test]
public v... | mit | C# |
78298c551a5919109feb9659fc48ffe52c11e38e | Edit it | sta/websocket-sharp,jogibear9988/websocket-sharp,jogibear9988/websocket-sharp,sta/websocket-sharp,jogibear9988/websocket-sharp,sta/websocket-sharp,sta/websocket-sharp,jogibear9988/websocket-sharp | websocket-sharp/CompressionMethod.cs | websocket-sharp/CompressionMethod.cs | #region License
/*
* CompressionMethod.cs
*
* The MIT License
*
* Copyright (c) 2013-2016 sta.blockhead
*
* 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, includi... | #region License
/*
* CompressionMethod.cs
*
* The MIT License
*
* Copyright (c) 2013-2016 sta.blockhead
*
* 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, includi... | mit | C# |
941a43e51eef8bedf2aa16e21842347d16625c25 | Enable capturing start-up errors | martincostello/api,martincostello/api,martincostello/api | src/API/Program.cs | src/API/Program.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Program.cs" company="https://martincostello.com/">
// Martin Costello (c) 2016
// </copyright>
// <summary>
// Program.cs
// </summary>
// ------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Program.cs" company="https://martincostello.com/">
// Martin Costello (c) 2016
// </copyright>
// <summary>
// Program.cs
// </summary>
// ------------------------------------... | mit | C# |
f70275aad0f232f3dda75e02d71d8d42a4daa975 | Update IShapeRendererState.cs | wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D | src/Core2D/Model/Renderer/IShapeRendererState.cs | src/Core2D/Model/Renderer/IShapeRendererState.cs | using Core2D.Shapes;
using Core2D.Style;
namespace Core2D.Renderer
{
/// <summary>
/// Defines shape renderer state contract.
/// </summary>
public interface IShapeRendererState : IObservableObject, ISelection
{
/// <summary>
/// The X coordinate of current pan position.
//... | using Core2D.Shapes;
using Core2D.Style;
namespace Core2D.Renderer
{
/// <summary>
/// Defines shape renderer state contract.
/// </summary>
public interface IShapeRendererState : IObservableObject, ISelection
{
/// <summary>
/// The X coordinate of current pan position.
//... | mit | C# |
3b188bbea82e43d1ea7b421ae8bd0b0080143bf4 | Remove windows store test runner | yufeih/Nine.Application,studio-nine/Nine.Application | test/WindowsStore/MainPage.xaml.cs | test/WindowsStore/MainPage.xaml.cs | namespace Nine.Application.WindowsStore.Test
{
using System;
using System.Reflection;
using Windows.UI.Xaml.Controls;
using Xunit;
using Xunit.Abstractions;
public sealed partial class MainPage : Page, IMessageSink
{
public MainPage()
{
InitializeComponent();
... | namespace Nine.Application.WindowsStore.Test
{
using System;
using System.Reflection;
using Windows.UI.Xaml.Controls;
using Xunit;
using Xunit.Abstractions;
public sealed partial class MainPage : Page, IMessageSink
{
public MainPage()
{
InitializeComponent();
... | mit | C# |
cb36e4b1b95e20b4d626ad99da0bed124f231966 | fix bug in error test | sebastus/AzureFunctionForSplunk | shared/sendToSplunkLAD30.csx | shared/sendToSplunkLAD30.csx | #r "Newtonsoft.Json"
using System;
using System.Dynamic;
using System.Net;
using System.Net.Http.Headers;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
public class SingleHttpClientInstance
{
private static readonly HttpClient HttpClient;
static SingleHttpClientInstance()
{
... | #r "Newtonsoft.Json"
using System;
using System.Dynamic;
using System.Net;
using System.Net.Http.Headers;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
public class SingleHttpClientInstance
{
private static readonly HttpClient HttpClient;
static SingleHttpClientInstance()
{
... | mit | C# |
36e8d840e20e694caecc6e83eab8629e56733477 | refactor for readability | marinoscar/MySql2MSSQL | Code/MySql2MSSQL/ConnectionManager.cs | Code/MySql2MSSQL/ConnectionManager.cs | using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MySql2MSSQL
{
public class ConnectionManager
{
public ConnectionManager(Arguments args)
... | using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MySql2MSSQL
{
public class ConnectionManager
{
public ConnectionManager(Arguments args)
... | mit | C# |
8400e8ca7c32ce44a0b8051311bec2cc6f80f138 | Add verbose option for tests | bradyholt/cron-expression-descriptor,bradyholt/cron-expression-descriptor | test/support/BaseTestFormats.cs | test/support/BaseTestFormats.cs | using Xunit;
using System.Globalization;
using System.Threading;
namespace CronExpressionDescriptor.Test.Support
{
public abstract class BaseTestFormats
{
protected virtual string GetLocale()
{
return "en-US";
}
protected string GetDescription(string expression, bo... | using Xunit;
using System.Globalization;
using System.Threading;
namespace CronExpressionDescriptor.Test.Support
{
public abstract class BaseTestFormats
{
protected virtual string GetLocale()
{
return "en-US";
}
protected string GetDescription(string e... | mit | C# |
1fc8e51d6397055679a3e532988cb6081ba88c81 | Update TrackCamera | bunashibu/kikan | Assets/Scripts/Player/TrackCamera.cs | Assets/Scripts/Player/TrackCamera.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Bunashibu.Kikan {
public class TrackCamera : MonoBehaviour {
void Start() {
transform.position = transform.position + _positionOffset;
}
void Update() {
Vector3 trackPosition = _trackObj.transform.posit... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Bunashibu.Kikan {
public class TrackCamera : MonoBehaviour {
void Start() {
transform.position = transform.position + _positionOffset;
_destination = new Vector3(0, 0, 0);
}
void Update() {
Vector... | mit | C# |
96d2255df347e0ac33aa4ed5d6f2ee3be22c773c | remove invalid test | mono/ServiceStack.Text,NServiceKit/NServiceKit.Text,gerryhigh/ServiceStack.Text,NServiceKit/NServiceKit.Text,gerryhigh/ServiceStack.Text,mono/ServiceStack.Text | tests/ServiceStack.Text.Tests/JsonObjectTests.cs | tests/ServiceStack.Text.Tests/JsonObjectTests.cs | using NUnit.Framework;
namespace ServiceStack.Text.Tests
{
[TestFixture]
public class JsonObjectTests
{
private const string JsonCentroid = @"{""place"":{ ""woeid"":12345, ""placeTypeName"":""St\\ate"" } }";
[Test]
public void Can_dynamically_parse_JSON_with_escape_chars()
... | using NUnit.Framework;
namespace ServiceStack.Text.Tests
{
[TestFixture]
public class JsonObjectTests
{
private const string JsonCentroid = @"{""place"":{ ""woeid"":12345, ""placeTypeName"":""St\\ate"" } }";
[Test]
public void Can_dynamically_parse_JSON_with_escape_chars()
... | bsd-3-clause | C# |
e60eaa3b8e8d149f354aac54fdd16d8833d8e569 | add 'public' to struct score at GameManager | edamiani/Aether,edamiani/Aether | Assets/Code/GameManager.cs | Assets/Code/GameManager.cs | using UnityEngine;
using System.Collections;
public class GameManager : MonoBehaviour {
public int test;
public static GameManager Instance;
public struct Score
{
int air;
int earth;
int fire;
int water;
}
public enum ElementalType : int
{
Air = 0,
Earth = 1,
Fire = 2,
Water = 3,
Aether = ... | using UnityEngine;
using System.Collections;
public class GameManager : MonoBehaviour {
public int test;
public static GameManager Instance;
struct Score
{
int air;
int earth;
int fire;
int water;
}
public enum ElementalType : int
{
Air = 0,
Earth = 1,
Fire = 2,
Water = 3,
Aether = 4,
... | mit | C# |
e56e017f55dd049cf538dcb597067944916e6b5d | Update Tests.cs | ic16b055/oom | tasks/Task3/Task3/Tests.cs | tasks/Task3/Task3/Tests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using Task3;
namespace Tests
{
[TestFixture]
public class ComputerTests
{
[Test]
public void CanCreatComputer()
{
var x = new Comput... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using Task3;
namespace Tests
{
[TestFixture]
public class ComputerTests
{
[Test]
public void CanCreatComputer()
{
var x = new Compu... | mit | C# |
9cdfadd89d198b7780ca921e5b1062048f31ccc8 | Use only ControllerEventHandler in AuditTarget. | OSSIndex/winaudit,OSSIndex/DevAudit,OSSIndex/DevAudit | DevAudit.AuditLibrary/AuditTarget.cs | DevAudit.AuditLibrary/AuditTarget.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DevAudit.AuditLibrary
{
public abstract class AuditTarget
{
#region Events
protected event EventHandler<EnvironmentEventArgs> HostEnvironmentMessageHandler;
pro... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DevAudit.AuditLibrary
{
public abstract class AuditTarget
{
#region Events
public event EventHandler<EnvironmentEventArgs> HostEnvironmentMessageHandler;
public... | bsd-3-clause | C# |
dfe43a2dfabde15a8c7226fb8abc1dd08d0144ab | Fix issue with headers | DotNetRu/App,DotNetRu/App | DotNetRu.Azure/GitHubHookFunction.cs | DotNetRu.Azure/GitHubHookFunction.cs | using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using System.Net.Http;
namespace DotNetRu.Azure
{
public static class GitHubHookFunction
{
[Fu... | using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using System.Net.Http;
namespace DotNetRu.Azure
{
public static class GitHubHookFunction
{
[Fu... | mit | C# |
0d8039367018444eb925d046ddd81e8d57e8ff19 | enable webapi cors. | liyuan-rey/identity,liyuan-rey/identity,liyuan-rey/identity | src/server-core/Startup.cs | src/server-core/Startup.cs | using System;
using System.Web.Http;
using IdentityNS.Server.Core.OAuth;
using Microsoft.Owin;
using Microsoft.Owin.Diagnostics;
using Microsoft.Owin.Security.OAuth;
using Owin;
[assembly: OwinStartup(typeof (IdentityNS.Server.Core.Startup))]
namespace IdentityNS.Server.Core
{
public class Startup
{
... | using System;
using System.Web.Http;
using IdentityNS.Server.Core.OAuth;
using Microsoft.Owin;
using Microsoft.Owin.Diagnostics;
using Microsoft.Owin.Security.OAuth;
using Owin;
[assembly: OwinStartup(typeof (IdentityNS.Server.Core.Startup))]
namespace IdentityNS.Server.Core
{
public class Startup
{
... | mit | C# |
1699daaf7f4fe38ac0395cc0a94d3a3c2de1c597 | Make DrawableRank safer. | UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,nyaamara/osu,peppy/osu,johnneijzen/osu,naoey/osu,Damnae/osu,osu-RP/osu-RP,DrabWeb/osu,smoogipooo/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,naoey/osu,Drezi126/osu,johnneijzen/osu,peppy/osu-new,Nabile-Rahmani/osu,peppy/osu,2yangk23/osu,Frontear/osuKyzer,ppy/... | osu.Game/Screens/Select/Leaderboards/DrawableRank.cs | osu.Game/Screens/Select/Leaderboards/DrawableRank.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.... | mit | C# |
247c87a0827b3ff99346f3b72a4986554a5ff110 | Update coordinator invite page | CS297Sp16/LCC_Co-op_Site,CS297Sp16/LCC_Co-op_Site,CS297Sp16/LCC_Co-op_Site | Coop_Listing_Site/Coop_Listing_Site/Views/ControlPanel/InviteCoordinator.cshtml | Coop_Listing_Site/Coop_Listing_Site/Views/ControlPanel/InviteCoordinator.cshtml | @model Coop_Listing_Site.Models.RegisterInvite
@{
ViewBag.Title = "Invite Coordinator";
Layout = "~/Views/Shared/_CP_Layout.cshtml";
}
<h2>Invite Coordinator</h2>
<p>
This page is for inviting coordinators to the website. Please enter their email in the field below, and click Invite.
</p>
@if (ViewBag.... | @model Coop_Listing_Site.Models.RegisterInvite
@{
ViewBag.Title = "Invite Coordinator";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Invite Student</h2>
<p>
This page is for inviting coordinators to the website. Please enter their email in the field below, and click Invite.
</p>
@if (ViewBag.SMTPRea... | mit | C# |
7907b2bde9cc7056d0fd1e47128f9b13dfc18f5b | Revert "Tried to Figure Out Button: Failed" | aarya123/IshanGame | Assets/Scripts/Trampoline.cs | Assets/Scripts/Trampoline.cs | using UnityEngine;
using System.Collections;
public class Trampoline : MonoBehaviour {
public float velocityX;
public float velocityY;
void OnTriggerStay2D(Collider2D other) {
if (other.gameObject.tag == "Player") {
other.rigidbody2D.AddForce(new Vector2(velocityX,velocityY));
//other.rigidbody2D.velocit... | using UnityEngine;
using System.Collections;
public class Trampoline : MonoBehaviour {
public float velocityX;
public float velocityY;
public Input button;
void OnTriggerStay2D(Collider2D other) {
if (other.gameObject.tag == "Player") {
if(button){
other.rigidbody2D.AddForce(new Vector2(velocityX,velo... | apache-2.0 | C# |
d20ff48abf36b1e1f3f500f93d24fec05a1393d4 | Annotate correctly | mavasani/roslyn,bartdesmet/roslyn,weltkante/roslyn,KevinRansom/roslyn,KevinRansom/roslyn,jasonmalinowski/roslyn,CyrusNajmabadi/roslyn,diryboy/roslyn,dotnet/roslyn,mavasani/roslyn,bartdesmet/roslyn,CyrusNajmabadi/roslyn,dotnet/roslyn,bartdesmet/roslyn,jasonmalinowski/roslyn,KevinRansom/roslyn,shyamnamboodiripad/roslyn,w... | src/Compilers/CSharp/Portable/Syntax/InterpolationSyntax.cs | src/Compilers/CSharp/Portable/Syntax/InterpolationSyntax.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Microsoft.CodeAnalysis.CSharp
{
public partial class Syn... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Microsoft.CodeAnalysis.CSharp
{
public partial class Syn... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.