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 |
|---|---|---|---|---|---|---|---|---|
4fb3c02baf6432d1b0f7037a2b479f5ef9891acb | 重构源集合针对关联子句元素的逻辑。 :joy: | Zongsoft/Zongsoft.Data | src/Common/Expressions/SourceCollection.cs | src/Common/Expressions/SourceCollection.cs | /*
* _____ ______
* /_ / ____ ____ ____ _________ / __/ /_
* / / / __ \/ __ \/ __ \/ ___/ __ \/ /_/ __/
* / /__/ /_/ / / / / /_/ /\_ \/ /_/ / __/ /_
* /____/\____/_/ /_/\__ /____/\____/_/ \__/
* /____/
*
* Authors:
* 钟峰(Popeye Zhong) <zongs... | /*
* _____ ______
* /_ / ____ ____ ____ _________ / __/ /_
* / / / __ \/ __ \/ __ \/ ___/ __ \/ /_/ __/
* / /__/ /_/ / / / / /_/ /\_ \/ /_/ / __/ /_
* /____/\____/_/ /_/\__ /____/\____/_/ \__/
* /____/
*
* Authors:
* 钟峰(Popeye Zhong) <zongs... | lgpl-2.1 | C# |
923a6570838197dc874ba4b9adccaba810d5e237 | add extension methods | RobinHerbots/NCDO,RobinHerbots/NCDO | src/NCDO/Extensions/JsonValueExtensions.cs | src/NCDO/Extensions/JsonValueExtensions.cs | using System;
using System.Collections.Generic;
using System.Json;
using System.Linq;
namespace NCDO.Extensions
{
public static class JsonValueExtensions
{
public static string AsString(this JsonValue jsonValue)
{
return jsonValue is JsonPrimitive jsonPrimitiveValue && jsonPrimitive... | using System.Json;
namespace NCDO.Extensions
{
public static class JsonValueExtensions
{
public static string AsString(this JsonValue jsonValue)
{
return jsonValue is JsonPrimitive jsonPrimitiveValue && jsonPrimitiveValue.JsonType == JsonType.String
? (string) jsonVa... | mit | C# |
99398b1020c48593248b06bcd2b389bd54aaa1ea | Update comment | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/Models/PagedRequest.cs | src/WeihanLi.Common/Models/PagedRequest.cs | namespace WeihanLi.Common.Models
{
public class PagedRequest
{
private int _pageNum = 1;
private int _pageSize = 10;
/// <summary>
/// PageNumber
/// 1 by default, 1 based
/// </summary>
public int PageNum
{
get => _pageNum;
... | namespace WeihanLi.Common.Models
{
public class PagedRequest
{
private int _pageNum = 1;
private int _pageSize = 10;
/// <summary>
/// PageNum
/// 1 by default, 1 based
/// </summary>
public int PageNum
{
get => _pageNum;
... | mit | C# |
2f7743843a9e0e5da11efe6da5b4233e384c10a8 | update default logging level | lianzhao/wiki2dict,lianzhao/wiki2dict,lianzhao/wiki2dict | src/Wiki2Dict/Wiki/HttpClientExtensions.cs | src/Wiki2Dict/Wiki/HttpClientExtensions.cs | using System;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
namespace Wiki2Dict.Wiki
{
public static class HttpClientExtensions
{
public static async Task<HttpResponseMessage> GetAsync(this HttpClient httpClient, string requestUri,
ILogger logger)
... | using System;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
namespace Wiki2Dict.Wiki
{
public static class HttpClientExtensions
{
public static async Task<HttpResponseMessage> GetAsync(this HttpClient httpClient, string requestUri,
ILogger logger)
... | mit | C# |
7c73def5575e3e2a293785e7f4ea6b5d0fa62c40 | Patch 1 (#365) | planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin | src/Firehose.Web/Authors/SRaviKumar.cs | src/Firehose.Web/Authors/SRaviKumar.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class SRaviKumar : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "S Ravi";
public string La... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class SRaviKumar : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "S Ravi";
public string La... | mit | C# |
6fe9f58d3dfae62f41d749d3ac10b665e9d24185 | Change to 400 | karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthiknad... | src/Host/Broker/Impl/ApiErrorResult.cs | src/Host/Broker/Impl/ApiErrorResult.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.R.Host.Protocol;
namespace Microsoft.R.Host.Broker {
internal sealed class ApiE... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.R.Host.Protocol;
namespace Microsoft.R.Host.Broker {
internal sealed class ApiE... | mit | C# |
2feb11a2704648d55568596c6c10457499d137f2 | Build fix | blebougge/Catel | src/Catel.MVVM/Catel.MVVM.Shared/Services/Extensions/IStartUpInfoProviderExtensions.cs | src/Catel.MVVM/Catel.MVVM.Shared/Services/Extensions/IStartUpInfoProviderExtensions.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="IStartUpInfoProviderExtensions.cs" company="Catel development team">
// Copyright (c) 2008 - 2015 Catel development team. All rights reserved.
// </copyright>
// ---------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="IStartUpInfoProviderExtensions.cs" company="Catel development team">
// Copyright (c) 2008 - 2015 Catel development team. All rights reserved.
// </copyright>
// ---------------... | mit | C# |
baf9f9630384e4b86426e681d5594d26e21e7e09 | fix unit tests | saturn72/saturn72 | src/Modules/MediaValidators/Saturn72.Module.ExcelMediaValidator/ExcelMediaValidator.cs | src/Modules/MediaValidators/Saturn72.Module.ExcelMediaValidator/ExcelMediaValidator.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Excel;
using Saturn72.Core.Services.Media;
using Saturn72.Extensions;
namespace Saturn72.Module.ExcelMediaValidator
{
public class ExcelMediaValidator : IMediaValidator
{
private const string XlsExtension = "xls"... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Excel;
using Saturn72.Core.Services.Media;
using Saturn72.Extensions;
namespace Saturn72.Module.ExcelMediaValidator
{
public class ExcelMediaValidator : IMediaValidator
{
private const string XlsExtension = "xls"... | mit | C# |
81e60f123df69a6c45bba2036a7ea9418bb26c7a | Add multi-single mapping test touch #179 | leekelleher/umbraco-ditto,rasmusjp/umbraco-ditto | tests/Our.Umbraco.Ditto.Tests/SingularityMappingTests.cs | tests/Our.Umbraco.Ditto.Tests/SingularityMappingTests.cs | using System.Linq;
using NUnit.Framework;
using Our.Umbraco.Ditto.Tests.Mocks;
using Umbraco.Core.Models;
namespace Our.Umbraco.Ditto.Tests
{
using System.Collections.Generic;
[TestFixture]
[Category("Mapping")]
public class SingularityMappingTests
{
public class MyModel
{
... | using System.Linq;
using NUnit.Framework;
using Our.Umbraco.Ditto.Tests.Mocks;
using Umbraco.Core.Models;
namespace Our.Umbraco.Ditto.Tests
{
[TestFixture]
[Category("Mapping")]
public class SingularityMappingTests
{
public class MyModel
{
public IPublishedContent MyPropert... | mit | C# |
4c2eb7d2011bea4503ea79ae23519735bc006c53 | Update Program.cs | relianz/s2i-aspnet-example,relianz/s2i-aspnet-example,relianz/s2i-aspnet-example | app/Program.cs | app/Program.cs | // using System.Linq;
// using System.Threading.Tasks;
// using System;
using System.IO;
// using System.Collections.Generic;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
namespace WebApplication
{
public class Program
{
... | // using System.Linq;
// using System.Threading.Tasks;
using System;
using System.IO;
using System.Collections.Generic;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
blahblah
namespace WebApplication
{
public class Program
{
... | apache-2.0 | C# |
969cb77fbcdf67a019596a506de0e5c4876eae86 | Fix one version info spot for 3.6 | BloomBooks/BloomDesktop,StephenMcConnel/BloomDesktop,BloomBooks/BloomDesktop,gmartin7/myBloomFork,gmartin7/myBloomFork,JohnThomson/BloomDesktop,andrew-polk/BloomDesktop,BloomBooks/BloomDesktop,JohnThomson/BloomDesktop,StephenMcConnel/BloomDesktop,andrew-polk/BloomDesktop,andrew-polk/BloomDesktop,BloomBooks/BloomDesktop... | src/BloomExe/Properties/AssemblyInfo.cs | src/BloomExe/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("Blo... | 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("Blo... | mit | C# |
86187f136da1f0e41ee20b5f189c8c7a8d38906c | Use .Clear instead of .RemoveAll | khellang/Nancy.Swagger,yahehe/Nancy.Swagger,catcherwong/Nancy.Swagger | src/Nancy.Swagger/SwaggerTypeMapping.cs | src/Nancy.Swagger/SwaggerTypeMapping.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Nancy.Swagger
{
/// <summary>
/// This class allows you to customize how you want a type to be represented in the swagger output.
/// For example, if a service serializes/deserializes DateTime as a string when being sent/receive... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Nancy.Swagger
{
/// <summary>
/// This class allows you to customize how you want a type to be represented in the swagger output.
/// For example, if a service serializes/deserializes DateTime as a string when being sent/receive... | mit | C# |
fe650e0c638d5d66ae998b914dd8222148afd857 | Use GherkinDialectProvider instead of I18n | picklesdoc/pickles,ludwigjossieaux/pickles,ludwigjossieaux/pickles,blorgbeard/pickles,dirkrombauts/pickles,magicmonty/pickles,picklesdoc/pickles,dirkrombauts/pickles,blorgbeard/pickles,dirkrombauts/pickles,magicmonty/pickles,ludwigjossieaux/pickles,magicmonty/pickles,dirkrombauts/pickles,blorgbeard/pickles,picklesdoc/p... | src/Pickles/Pickles/LanguageServices.cs | src/Pickles/Pickles/LanguageServices.cs | #region License
/*
Copyright [2011] [Jeffrey Cameron]
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 applica... | #region License
/*
Copyright [2011] [Jeffrey Cameron]
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 applica... | apache-2.0 | C# |
30906752778fd71cc447f711c7f378230b4c9fa2 | fix deprecation message for DisposableAction | hitesh97/xbehave.net,xbehave/xbehave.net,modulexcite/xbehave.net,mvalipour/xbehave.net,mvalipour/xbehave.net,hitesh97/xbehave.net,adamralph/xbehave.net,modulexcite/xbehave.net | src/Xbehave/SubSpec/DisposableAction.cs | src/Xbehave/SubSpec/DisposableAction.cs | // <copyright file="DisposableAction.cs" company="Adam Ralph">
// Copyright (c) Adam Ralph. All rights reserved.
// </copyright>
namespace Xbehave
{
using System;
/// <summary>
/// This member is deprecated (was part of the original SubSpec API).
/// </summary>
[Obsolete("Use Given(Ac... | // <copyright file="DisposableAction.cs" company="Adam Ralph">
// Copyright (c) Adam Ralph. All rights reserved.
// </copyright>
namespace Xbehave
{
using System;
/// <summary>
/// This member is deprecated (was part of the original SubSpec API).
/// </summary>
[Obsolete("Given(Action... | mit | C# |
765a0fdcfa758f7140d15e5c4fb6115d1be9b9fe | Revert "version bump" | shanselman/aspneteverywheredemo,shanselman/aspneteverywheredemo,shanselman/aspneteverywheredemo | src/whereyouat/Views/About/Index.cshtml | src/whereyouat/Views/About/Index.cshtml | @{
ViewData["Title"] = "About-Environment Configuration";
}
<h2>@ViewData["Title"]</h2>
<b>HostName:</b> @ViewData["HOSTNAME"]<br />
<b>OS:</b> @ViewData["OS"]<br />
<b>Processor Architecture:</b> @ViewData["PROCESSORARCH"]<br />
<b>ASP.NET Hosting Environment:</b> @ViewData["HOSTING_ENVIRONMENT"]<br />
<h3>Envi... | @{
ViewData["Title"] = "About-Environment Configuration";
}
<h2>@ViewData["Title"]</h2>
<b>HostName:</b> @ViewData["HOSTNAME"]<br />
<b>OS:</b> @ViewData["OS"]<br />
<b>Processor Architecture:</b> @ViewData["PROCESSORARCH"]<br />
<b>ASP.NET Hosting Environment:</b> @ViewData["HOSTING_ENVIRONMENT"]<br />
<h3>Envi... | mit | C# |
e6eefe5ef3a3d4f40f87604886f5b958e3fd4265 | edit from VS. | derosea7/DataStructures | DataStructures/DataStructures/Program.cs | DataStructures/DataStructures/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataStructures
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello Test edit from VS");
Console.ReadLine();
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataStructures
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello Test");
Console.ReadLine();
}
}
}
| apache-2.0 | C# |
47d1fc0d933601380bb19e3191c7ea2bf39d978c | remove AssemblyInformationalVersion | holyshared/csherp-test-example | ExampleClient/Properties/AssemblyInfo.cs | ExampleClient/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("ExampleClient")]
[assembly: AssemblyDescription("Example client description")]
[assembly: Assemb... | 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("ExampleClient")]
[assembly: AssemblyDescription("Example client description")]
[assembly: Assemb... | mit | C# |
66b25464ef811e2ea816c44a686b63866d2bd20c | mark as internal type | dkackman/FakeHttp | FakeHttp.NetStandard/VersionConverter.cs | FakeHttp.NetStandard/VersionConverter.cs | using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace FakeHttp
{
/// <summary>
/// A custom <see cref="JsonConverter"/> for <see cref="Version"/> that only writes the <see cref="Version.Major"/>
/// and <see cref="Version.Minor"/> values. HTTP specifies only a two field version. <see... | using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace FakeHttp
{
/// <summary>
/// A custom <see cref="JsonConverter"/> for <see cref="Version"/> that only writes the <see cref="Version.Major"/>
/// and <see cref="Version.Minor"/> values. HTTP specifies only a two field version. <see... | apache-2.0 | C# |
58410325170d8853f22845960e5672d7ecc47e94 | Update CrossSettings.cs | predictive-technology-laboratory/Xamarin.Plugins,monostefan/Xamarin.Plugins,LostBalloon1/Xamarin.Plugins,JC-Chris/Xamarin.Plugins,jamesmontemagno/Xamarin.Plugins,tim-hoff/Xamarin.Plugins,labdogg1003/Xamarin.Plugins | Settings/Refractored.Xam.Settings/CrossSettings.cs | Settings/Refractored.Xam.Settings/CrossSettings.cs | /*
* MvxSettings:
* Copyright (C) 2014 Refractored:
*
* Contributors:
* http://github.com/JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.ap... | /*
* MvxSettings:
* Copyright (C) 2014 Refractored:
*
* Contributors:
* http://github.com/JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.ap... | mit | C# |
3bc2eccd7bd82eb6ed4127f8b657f1d8b2b3b36d | fix off by one | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Tests/UnitTests/Crypto/RandomTests.cs | WalletWasabi.Tests/UnitTests/Crypto/RandomTests.cs | using System;
using System.Collections.Generic;
using System.Text;
using WalletWasabi.Crypto.Randomness;
using WalletWasabi.Helpers;
using Xunit;
namespace WalletWasabi.Tests.UnitTests.Crypto
{
public class RandomTests
{
[Fact]
public void BasicTests()
{
// Make sure byte array comparision works within hash... | using System;
using System.Collections.Generic;
using System.Text;
using WalletWasabi.Crypto.Randomness;
using WalletWasabi.Helpers;
using Xunit;
namespace WalletWasabi.Tests.UnitTests.Crypto
{
public class RandomTests
{
[Fact]
public void BasicTests()
{
// Make sure byte array comparision works within hash... | mit | C# |
4075be789a62323dab0444c9f2f78218e1ec45a1 | Fix a typo | jonathanvdc/objective-kaleidoscope | src/Ast/DoubleLiteral.cs | src/Ast/DoubleLiteral.cs | using System;
using ObjKaleidoscope.Semantics;
using Flame.Compiler.Expressions;
namespace ObjKaleidoscope.Ast
{
/// <summary>
/// A double literal AST node.
/// </summary>
public class DoubleLiteral : IExpressionNode
{
public DoubleLiteral(Token Value)
{
this.Value = V... | using System;
using ObjKaleidoscope.Semantics;
using Flame.Compiler.Expressions;
namespace ObjKaleidoscope.Ast
{
/// <summary>
/// An double literal AST node.
/// </summary>
public class DoubleLiteral : IExpressionNode
{
public DoubleLiteral(Token Value)
{
this.Value = ... | mit | C# |
e8f983d90ff0aa807bf7df2da18fa2d6589034c4 | Update RealNames.cs | DoubleLinePartners/ObjectFiller.NET,blmeyers/ObjectFiller.NET,HerrLoesch/ObjectFiller.NET,Tynamix/ObjectFiller.NET | ObjectFiller/Plugins/String/RealNames.cs | ObjectFiller/Plugins/String/RealNames.cs | using System;
using Tynamix.ObjectFiller.Properties;
namespace Tynamix.ObjectFiller
{
public enum RealNameStyle
{
FirstNameOnly,
LastNameOnly,
FirstNameLastName,
LastNameFirstName
}
public class RealNames : IRandomizerPlugin<string>
{
private readonly RealNa... | using System;
using Tynamix.ObjectFiller.Properties;
namespace Tynamix.ObjectFiller
{
public class RealNames : IRandomizerPlugin<string>
{
private readonly bool _firstName;
private readonly bool _lastName;
private readonly bool _fullName;
private string[] _firstNames;
... | mit | C# |
3bcd484b9990675c375f936a0b8fefb4a126ed51 | bump version to 2.2.2 | piwik/piwik-dotnet-tracker,piwik/piwik-dotnet-tracker,piwik/piwik-dotnet-tracker | Piwik.Tracker/Properties/AssemblyInfo.cs | Piwik.Tracker/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("PiwikTracker")]
[assembly: Assembl... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("PiwikTracker")]
[assembly: Assembl... | bsd-3-clause | C# |
60923493a22ee95365b9d35539595edbfbc6d36c | Switch to RC2 | Abc-Arbitrage/Zebus.Directory,AtwooTM/Zebus,biarne-a/Zebus,rbouallou/Zebus,Abc-Arbitrage/Zebus | src/SharedVersionInfo.cs | src/SharedVersionInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("1.1.0")]
[assembly: AssemblyFileVersion("1.1.0")]
[assembly: AssemblyInformationalVersion("1.1.0-rc2")] | using System.Reflection;
[assembly: AssemblyVersion("1.0.10")]
[assembly: AssemblyFileVersion("1.0.10")]
[assembly: AssemblyInformationalVersion("1.0.10")] | mit | C# |
2c7944906275384b324bdb9e46be98388a1e42da | Add solutions 3,4,30,32 | aloisdg/edx-csharp | edX/ModuleA/Program.cs | edX/ModuleA/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ModuleA
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World");
}
// Linq3() // 71 results
// This sample uses the where clause to find all produc... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ModuleA
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# |
ffa52adcf6eb9c2746737dc39e6def5fd5a93fe9 | convert to run Unity5.3 | RyotaMurohoshi/unity_snippets | unity/Assets/Editor/MenuItem/Builder.cs | unity/Assets/Editor/MenuItem/Builder.cs | using UnityEditor;
using UnityEngine;
using System.Linq;
using System.IO;
public static class Build
{
[MenuItem("Tools/Build Production APK")]
public static void BuildApk()
{
var signConfigPath = Application.dataPath + "/../../SignConfig.json";
var signConfig = JsonUtility.FromJson<SignCon... | using UnityEditor;
using UnityEngine;
using System.Linq;
using System.IO;
public static class Build
{
[MenuItem("Tools/Build Production APK")]
public static void BuildApk()
{
var signConfigPath = Application.dataPath + "/../../SignConfig.json";
var signConfig = JsonUtility.FromJson<SignCon... | mit | C# |
820f2aa7755e0ba4f40945763d7d32b0bf100229 | Fix compilation for the compact framework | jbevain/cecil,gluck/cecil,cgourlay/cecil,kzu/cecil,fnajera-rac-de/cecil,xen2/cecil,joj/cecil,sailro/cecil,saynomoo/cecil,ttRevan/cecil,SiliconStudio/Mono.Cecil,furesoft/cecil,mono/cecil | Mono/Empty.cs | Mono/Empty.cs | //
// Empty.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Copyright (c) 2008 - 2011 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
//... | //
// Empty.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Copyright (c) 2008 - 2011 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
//... | mit | C# |
a647a30afe6d534a3729ea0d23e39bcc9f45c0bd | Change model | sakapon/Samples-2016,sakapon/Samples-2016 | BindingSample/PocoBindingWpf/AppModel.cs | BindingSample/PocoBindingWpf/AppModel.cs | using System;
namespace PocoBindingWpf
{
public class AppModel
{
public InputModel Input { get; } = new InputModel();
}
public class InputModel
{
public long Number { get; set; }
}
}
| using System;
namespace PocoBindingWpf
{
public class AppModel
{
public TextModel TextModel { get; } = new TextModel();
}
public class TextModel
{
public string Input { get; set; }
}
}
| mit | C# |
f0196177f1abf1191a2c502d3802c68f32ffa22d | Prepare 0.4.0 release | LouisTakePILLz/ArgumentParser | ArgumentParser/Properties/AssemblyInfo.cs | ArgumentParser/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System.Security;
// 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("ArgumentParser")]
[... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Security;
// 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("ArgumentParser")]
[... | apache-2.0 | C# |
c335fc71c8d24434e100de803c994e8dfbd090ad | Remove Debug | DragonEyes7/ConcoursUBI17,DragonEyes7/ConcoursUBI17 | Proto/Assets/Scripts/UI/SceneSelector.cs | Proto/Assets/Scripts/UI/SceneSelector.cs | using UnityEngine;
using UnityEngine.UI;
public class SceneSelector : MonoBehaviour
{
[SerializeField] private Text _levelName;
[SerializeField] private string[] _levels;
[SerializeField] private Button _leftArrow;
[SerializeField] private Button _rightArrow;
private int pos = 0;
private Leade... | using UnityEngine;
using UnityEngine.UI;
public class SceneSelector : MonoBehaviour
{
[SerializeField] private Text _levelName;
[SerializeField] private string[] _levels;
[SerializeField] private Button _leftArrow;
[SerializeField] private Button _rightArrow;
private int pos = 0;
private Leade... | mit | C# |
3375e7d2c0a1dad2e9fa34f3272ab2545083d049 | Fix build. | JohanLarsson/Gu.State,JohanLarsson/Gu.ChangeTracking,JohanLarsson/Gu.State | Gu.State/Internals/ReferencePairStruct.cs | Gu.State/Internals/ReferencePairStruct.cs | namespace Gu.State
{
using System;
using System.Runtime.CompilerServices;
internal struct ReferencePairStruct : IEquatable<ReferencePairStruct>
{
private readonly object x;
private readonly object y;
private ReferencePairStruct(object x, object y)
{
this.x ... | namespace Gu.State
{
using System;
using System.Runtime.CompilerServices;
internal struct ReferencePairStruct : IEquatable<ReferencePairStruct>
{
private readonly object x;
private readonly object y;
private ReferencePairStruct(object x, object y)
{
this.x ... | mit | C# |
7c53c7b602134ed40471bbed9e7616aff075af65 | Remove local background logic | 2yangk23/osu,DrabWeb/osu,ZLima12/osu,johnneijzen/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,ppy/osu,johnneijzen/osu,DrabWeb/osu,DrabWeb/osu,peppy/osu,2yangk23/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,EVAST9919/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,peppy/osu-new,NeoAdonis/o... | osu.Game/Beatmaps/Drawables/UpdateableBeatmapBackgroundSprite.cs | osu.Game/Beatmaps/Drawables/UpdateableBeatmapBackgroundSprite.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Beatmaps.Drawabl... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Beatmaps.Drawabl... | mit | C# |
ec0ffe8ca69e2e10b501eae7b8b6115c0430bb07 | Update cursor to use invariant culture | RehanSaeed/ASP.NET-MVC-Boilerplate,RehanSaeed/ASP.NET-MVC-Boilerplate,ASP-NET-MVC-Boilerplate/Templates,RehanSaeed/ASP.NET-MVC-Boilerplate,ASP-NET-MVC-Boilerplate/Templates,ASP-NET-Core-Boilerplate/Templates,ASP-NET-Core-Boilerplate/Templates,ASP-NET-Core-Boilerplate/Templates | Source/Content/GraphQLTemplate/Cursor.cs | Source/Content/GraphQLTemplate/Cursor.cs | namespace GraphQLTemplate
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
public static class Cursor
{
private const string Prefix = "arrayconnection";
public static (string firstCursor, string lastCursor) ... | namespace GraphQLTemplate
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public static class Cursor
{
private const string Prefix = "arrayconnection";
public static (string firstCursor, string lastCursor) GetFirstAndLastCursor<TItem, TCu... | mit | C# |
6432c9da98cd1908033db7fb56209df5ed58e705 | Fix new expression with dot name | ajlopez/BScript | Src/BScript/Expressions/NewExpression.cs | Src/BScript/Expressions/NewExpression.cs | namespace BScript.Expressions
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BScript.Language;
using BScript.Utilities;
public class NewExpression : IExpression
{
private IExpression expression;
private IList<IE... | namespace BScript.Expressions
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BScript.Language;
public class NewExpression : IExpression
{
private IExpression expression;
private IList<IExpression> argexprs;
... | mit | C# |
b2db5c7b1ff529df5357016eda28698de752dc14 | Fix it also for sql-run | Seddryck/NBi,Seddryck/NBi | NBi.Xml/Decoration/Command/SqlRunXml.cs | NBi.Xml/Decoration/Command/SqlRunXml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Serialization;
using NBi.Core.Etl;
using NBi.Xml.Items;
using System.IO;
using NBi.Core.Batch;
using NBi.Xml.Settings;
namespace NBi.Xml.Decoration.Command
{
public class SqlRunXml : DecorationCommandXml, IBatchRunComm... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Serialization;
using NBi.Core.Etl;
using NBi.Xml.Items;
using System.IO;
using NBi.Core.Batch;
using NBi.Xml.Settings;
namespace NBi.Xml.Decoration.Command
{
public class SqlRunXml : DecorationCommandXml, IBatchRunComm... | apache-2.0 | C# |
18b14d536fbf654238945abc18894185e9134bd4 | Add the DrawLine overload to IRenderer. | izrik/ChamberLib,izrik/ChamberLib,izrik/ChamberLib | ChamberLib/IRenderer.cs | ChamberLib/IRenderer.cs | using System;
using System.Collections.Generic;
namespace ChamberLib
{
public interface IRenderer
{
void Begin();
void DrawLine(float width, Color color, Vector2 v1, Vector2 v2);
void DrawLine(Color color, Vector2 v1, Vector2 v2);
void DrawString(IFont font, string text, Vect... | using System;
using System.Collections.Generic;
namespace ChamberLib
{
public interface IRenderer
{
void Begin();
void DrawLine(float width, Color color, Vector2 v1, Vector2 v2);
void DrawLine(Color color, Vector2 v1, Vector2 v2);
void DrawString(IFont font, string text, Vect... | lgpl-2.1 | C# |
dabc53d94fa9fc33d7c8213df84446642211a015 | add GetUniqueIndexString(string) | yasokada/unity-160820-Inventory-UI | Assets/DataBaseManager.cs | Assets/DataBaseManager.cs | using UnityEngine;
//using System.Collections;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using NS_MyStringUtil;
/*
* - add GetUniqueIndexString(string)
* - rename [m_dic] to [m_dic_nameKey]
* - add GetUniqueIndexString(int, int, int)
* v0.5 2016 Aug. 25
* - rename [kIndex_cas... | using UnityEngine;
//using System.Collections;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using NS_MyStringUtil;
/*
* - rename [m_dic] to [m_dic_nameKey]
* - add GetUniqueIndexString()
* v0.5 2016 Aug. 25
* - rename [kIndex_caseNo] to [kIndex_shelfNo]
* v0.4 2016 Aug. 25
* - ... | mit | C# |
d01d89e99a0e27e9daa199ee10d08fbd8142452a | Fix debugger display attribute | StanleyGoldman/NRules,NRules/NRules,StanleyGoldman/NRules,prashanthr/NRules | src/NRules/NRules.RuleModel/Declaration.cs | src/NRules/NRules.RuleModel/Declaration.cs | using System;
using System.Diagnostics;
namespace NRules.RuleModel
{
/// <summary>
/// Pattern declaration.
/// </summary>
[DebuggerDisplay("{_fullName}: {_type}")]
public class Declaration : IEquatable<Declaration>
{
private readonly string _fullName;
private readonly string _... | using System;
using System.Diagnostics;
namespace NRules.RuleModel
{
/// <summary>
/// Pattern declaration.
/// </summary>
[DebuggerDisplay("{FullName}: {Type}")]
public class Declaration : IEquatable<Declaration>
{
private readonly string _fullName;
private readonly string _na... | mit | C# |
4bee942e2fae3bc31835d8e68d53f1a9e0bbbdf8 | Implement Arrays.HashCode, Equals, ToString | chandler14362/antlr4,chienjchienj/antlr4,cocosli/antlr4,sidhart/antlr4,chandler14362/antlr4,wjkohnen/antlr4,worsht/antlr4,parrt/antlr4,ericvergnaud/antlr4,antlr/antlr4,chandler14362/antlr4,antlr/antlr4,chienjchienj/antlr4,krzkaczor/antlr4,lncosie/antlr4,krzkaczor/antlr4,supriyantomaftuh/antlr4,worsht/antlr4,sidhart/ant... | Antlr4.Runtime/Sharpen/Arrays.cs | Antlr4.Runtime/Sharpen/Arrays.cs | namespace Sharpen
{
using System;
using System.Collections.Generic;
using StringBuilder = System.Text.StringBuilder;
internal static class Arrays
{
public static T[] CopyOf<T>(T[] array, int newSize)
{
Array.Resize(ref array, newSize);
return array;
... | namespace Sharpen
{
using System;
using System.Collections.Generic;
internal static class Arrays
{
public static T[] CopyOf<T>(T[] array, int newSize)
{
Array.Resize(ref array, newSize);
return array;
}
public static IList<T> AsList<T>(params T[... | bsd-3-clause | C# |
7e0ecbc3948d7fcae52580eeed656f9f2c160bd8 | Update XPathSegment.cs | wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D | src/Core2D/Path/XPathSegment.cs | src/Core2D/Path/XPathSegment.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Text;
using Core2D.Shapes;
namespace Core2D.Path
{
/// <summary>
/// <see cref="XPathFigure"/> segment base... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Text;
using Core2D.Shapes;
namespace Core2D.Path
{
/// <summary>
/// <see cref="XPathFigure"/> segment base... | mit | C# |
b5844e693c719a4d6b158147c7c77001d804aed7 | Rename variable in integration tests | Jericho/CakeMail.RestClient | Source/CakeMail.RestClient.IntegrationTests/Program.cs | Source/CakeMail.RestClient.IntegrationTests/Program.cs | using CakeMail.RestClient.Logging;
using System;
namespace CakeMail.RestClient.IntegrationTests
{
public class Program
{
public static void Main()
{
// -----------------------------------------------------------------------------
// Do you want to proxy requests through Fiddler (useful for debugging)?
... | using CakeMail.RestClient.Logging;
using System;
namespace CakeMail.RestClient.IntegrationTests
{
public class Program
{
public static void Main()
{
// -----------------------------------------------------------------------------
// Do you want to proxy requests through Fiddler (useful for debugging)?
... | mit | C# |
8ce7a76484799af5d659efe19ac7556fbe249002 | Update view of all answers | IskraNikolova/ForumSystem,IskraNikolova/ForumSystem,IskraNikolova/ForumSystem | Source/Web/ForumSystem.Web/Views/Answer/ViewAll.cshtml | Source/Web/ForumSystem.Web/Views/Answer/ViewAll.cshtml | @model System.Linq.IQueryable<ForumSystem.Web.ViewModels.Answers.AnswerViewModel>
@using ForumSystem.Web.ViewModels.Answers;
<div class="panel panel-success">
<div class="panel-heading">
<h3>
@Html.ActionLink(Model.FirstOrDefault().Post.Title, "Display", "Questions", new { id = Model.FirstOrD... | @model System.Linq.IQueryable<ForumSystem.Web.ViewModels.Answers.AnswerViewModel>
@using ForumSystem.Web.ViewModels.Answers;
@foreach (var answer in Model)
{
<div class="panel panel-success">
<div class="panel-heading">
<h3>
@answer.Post.Title
</h3>
</div>
... | mit | C# |
8098d15c471e20643e6fe5f465b13894f26d35d9 | Allow empty content in a Bundle Container, make Container class internal | irii/Bundler,irii/Bundler | Bundler/Internals/Container.cs | Bundler/Internals/Container.cs | using System;
using System.Collections.Generic;
using System.Threading;
using Bundler.Infrastructure;
namespace Bundler.Internals {
internal sealed class Container {
private readonly string _placeholder;
private readonly object _writeLock = new object();
private Tuple<string, int, DateTim... | using System;
using System.Collections.Generic;
using System.Threading;
using Bundler.Infrastructure;
namespace Bundler.Internals {
public sealed class Container {
private readonly string _placeholder;
private readonly object _writeLock = new object();
private Tuple<string, int, DateTime,... | mit | C# |
d30f7db7203650d0392a04c8b3926f82f9ea3ec0 | Remove unused method | kamsar/Unicorn,kamsar/Unicorn | src/Unicorn/ControlPanel/UnicornControlPanelPipelineProcessor.cs | src/Unicorn/ControlPanel/UnicornControlPanelPipelineProcessor.cs | using System;
using System.Net;
using System.Web;
using Sitecore.Pipelines;
using Sitecore.Pipelines.HttpRequest;
using Sitecore.SecurityModel;
using Unicorn.Configuration;
using Unicorn.ControlPanel.Pipelines.UnicornControlPanelRequest;
using Unicorn.ControlPanel.Responses;
using SecurityState = Unicorn.ControlPanel.... | using System;
using System.Net;
using System.Web;
using Sitecore.Pipelines;
using Sitecore.Pipelines.HttpRequest;
using Sitecore.SecurityModel;
using Unicorn.Configuration;
using Unicorn.ControlPanel.Pipelines.UnicornControlPanelRequest;
using Unicorn.ControlPanel.Responses;
using SecurityState = Unicorn.ControlPanel.... | mit | C# |
ee1f2c904ade39899c667c3fae2d91667758add0 | resolve App using JobSearchScorecard | sjrawlins/JobSearchScorecard | iOS/AppDelegate.cs | iOS/AppDelegate.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
using JobSearchScorecard;
using Xamarin.Forms;
namespace JobScorecard.iOS
{
[Register ("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelega... | using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
using Xamarin.Forms;
namespace JobScorecard.iOS
{
[Register ("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
UIWindow w... | bsd-3-clause | C# |
a517026b1511e2b4057999076cd554629bd6b3ad | Change invalid xmldoc | ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,smoogipooo/osu-framework | osu.Framework.iOS/Input/IOSTextInput.cs | osu.Framework.iOS/Input/IOSTextInput.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 Foundation;
using osu.Framework.Input;
namespace osu.Framework.iOS.Input
{
public class IOSTextInput : ITextInputSource
{
private re... | // 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 Foundation;
using osu.Framework.Input;
namespace osu.Framework.iOS.Input
{
public class IOSTextInput : ITextInputSource
{
private re... | mit | C# |
38cbab30e2b00ba6d59e093889295812ceaa7ead | fix FreeMemory | chinaboard/PureCat | PureCat/Message/Spi/Heartbeat/OSInfo.cs | PureCat/Message/Spi/Heartbeat/OSInfo.cs | using Microsoft.VisualBasic.Devices;
using System;
using System.Diagnostics;
using System.Xml.Serialization;
namespace PureCat.Message.Spi.Heartbeat
{
[XmlRoot("os")]
public class OSInfo : IRefresh
{
private ComputerInfo _computer = null;
public OSInfo()
{
_computer = ... | using Microsoft.VisualBasic.Devices;
using System;
using System.Diagnostics;
using System.Xml.Serialization;
namespace PureCat.Message.Spi.Heartbeat
{
[XmlRoot("os")]
public class OSInfo : IRefresh
{
private ComputerInfo _computer = null;
public OSInfo()
{
_computer = ... | mit | C# |
6e5ce155480d12b1367262968b4857c4cd325af3 | add styles so that the iframe is the size of the page | Ranger1230/IoTClass-SmartCam,Ranger1230/IoTClass-SmartCam | SmartCam/Views/SmartCam/ShowFeed.cshtml | SmartCam/Views/SmartCam/ShowFeed.cshtml | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script>
window.setInterval(function () {
var iframe = document.getElementById("smartCamImage");
iframe.src = iframe.src;
}, 500);
</script>
<style>
#smartCamImage {
width: 100v... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script>
window.setInterval(function () {
var iframe = document.getElementById("smartCamImage");
iframe.src = iframe.src;
}, 500);
</script>
<title></title>
</head>
<body>
<iframe id="smartCa... | mit | C# |
09318a3381843b4743df176af1333a6d33b19bb1 | Add context menu to window | danielchalmers/SteamAccountSwitcher | SteamAccountSwitcher/MainWindow.xaml.cs | SteamAccountSwitcher/MainWindow.xaml.cs | #region
using System.ComponentModel;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using SteamAccountSwitcher.Properties;
#endregion
namespace SteamAccountSwitcher
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Wind... | #region
using System.ComponentModel;
using System.Diagnostics;
using System.Windows;
using SteamAccountSwitcher.Properties;
#endregion
namespace SteamAccountSwitcher
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
private readonly Accoun... | mit | C# |
2c0c29a64e430f63aeace64dd2e68812bc9d0f20 | remove settings | tiksn/TIKSN-Framework | TIKSN.Core/Settings/ISettingsService.cs | TIKSN.Core/Settings/ISettingsService.cs | using System.Collections.Generic;
namespace TIKSN.Settings
{
public interface ISettingsService
{
T GetLocalSetting<T>(string name, T defaultValue);
T GetRoamingSetting<T>(string name, T defaultValue);
IReadOnlyCollection<string> ListLocalSetting();
IReadOnlyCollection<string... | using System.Collections.Generic;
namespace TIKSN.Settings
{
public interface ISettingsService
{
T GetLocalSetting<T>(string name, T defaultValue);
T GetRoamingSetting<T>(string name, T defaultValue);
IReadOnlyCollection<string> ListLocalSetting();
IReadOnlyCollection<string... | mit | C# |
871820d73c7449de3d38f8e92d07ad9ba84d1b86 | add getElementWithLikeSearch() | yasokada/unity-160820-Inventory-UI | Assets/DataBaseManager.cs | Assets/DataBaseManager.cs | using UnityEngine;
//using System.Collections;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using NS_MyStringUtil;
/*
* - add getElementWithLikeSearch()
* - add dictionary [m_dic]
* - add [kIndex_checkDate]
* - add [kIndex_XXX] such as kIndex_row
* v0.1 2016 Aug. 23
* - add ... | using UnityEngine;
//using System.Collections;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using NS_MyStringUtil;
/*
* - add dictionary [m_dic]
* - add [kIndex_checkDate]
* - add [kIndex_XXX] such as kIndex_row
* v0.1 2016 Aug. 23
* - add LoadCsvResouce()
*/
namespace NS_Dat... | mit | C# |
d2f7a653a8aecc198fb7cadaddbbe75e2888b855 | Fix nullref | ppy/osu,NeoAdonis/osu,ZLima12/osu,peppy/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,2yangk23/osu,ppy/osu,peppy/osu-new,johnneijzen/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,smoogipoo/osu,ZLima12/osu,peppy/osu,2yangk23/osu,smoogipoo/osu,johnneijzen/osu,smoogipooo/osu,EVAST9919/osu,EVAST9919/o... | osu.Game/Screens/Play/DimmableVideo.cs | osu.Game/Screens/Play/DimmableVideo.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Video;
using osu.Game.Graphics.Contai... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Video;
using osu.Game.Graphics.Contai... | mit | C# |
b149fd43726b8d641218bf39c7b9fc5c50f4a2e7 | Make it more precise. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Logging/BenchmarkLogger.cs | WalletWasabi/Logging/BenchmarkLogger.cs | using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
namespace WalletWasabi.Logging
{
public class BenchmarkLogger : IDisposable
{
private bool _disposedValue = false; // To detect redundant calls
private BenchmarkLogger(LogLevel logLevel = LogLevel.Info, [CallerMemberName] string oper... | using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
namespace WalletWasabi.Logging
{
public class BenchmarkLogger : IDisposable
{
private bool _disposedValue = false; // To detect redundant calls
private BenchmarkLogger(LogLevel logLevel = LogLevel.Info, [CallerMemberName] string oper... | mit | C# |
3eb8cda10ad3d77a082ae84445fd0f50894c206d | Fix license header | ppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework | osu.Framework.Tests/IO/FontStoreTest.cs | osu.Framework.Tests/IO/FontStoreTest.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.Graphics;
using osu.Framework.IO.Stores;
using osu.Framework.Text;
namespace osu.Framework.Tests.IO
{
[TestFixture]
pu... | // // 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.Graphics;
using osu.Framework.IO.Stores;
using osu.Framework.Text;
namespace osu.Framework.Tests.IO
{
[TestFixture]
... | mit | C# |
d50341987fdca9a84ce49d8ee6c36ac6b5994eb3 | increase threads used | carsales/200oker | 200oker/200oker/Config.cs | 200oker/200oker/Config.cs | using System;
using System.Collections.Generic;
using System.Configuration;
namespace _200oker
{
public static class Config
{
public static List<string> IgnoreUrlsStartingWith { get; set; }
public static int MaxParentThreads { get; set; }
public static int MaxChildThreads { get; set; }... | using System;
using System.Collections.Generic;
using System.Configuration;
namespace _200oker
{
public static class Config
{
public static List<string> IgnoreUrlsStartingWith { get; set; }
public static int MaxParentThreads { get; set; }
public static int MaxChildThreads { get; set; }... | mit | C# |
b232068831fb88e8c88ef841efb3978315b6281f | Bump to correct version, SVN working again now :) | leppie/xacc.ide,leppie/IronScheme.Editor | Common/AssemblyInfo.Common.cs | Common/AssemblyInfo.Common.cs | #region License
/* xacc *
* Copyright (C) 2003-2006 Llewellyn@Pritchard.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser G... | #region License
/* xacc *
* Copyright (C) 2003-2006 Llewellyn@Pritchard.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser G... | bsd-3-clause | C# |
1e1fde4599ed9ced41f0c0371e91553f07713bb6 | Add IEnumerable.Each(action) method | garlab/Ext.NET | Ext.NET/EnumerableExtension.cs | Ext.NET/EnumerableExtension.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Ext.NET
{
public static class EnumerableExtension
{
public static void Each<T>(this IEnumerable<T> enumberable, Action<T> action)
{
foreach (var item in enumberable)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Ext.NET
{
public static class EnumerableExtension
{
}
}
| mit | C# |
825205bcb3e8f6ab7010d737929f150bd37dd3a0 | Update Terms | lucasdavid/Gamedalf,lucasdavid/Gamedalf | Gamedalf.Core/Models/Terms.cs | Gamedalf.Core/Models/Terms.cs | using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Gamedalf.Core.Infrastructure;
namespace Gamedalf.Core.Models
{
public class Terms : IDateCreatedTrackable
{
[Key]
public int Id { get; set; }
public string ... | using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Gamedalf.Core.Infrastructure;
namespace Gamedalf.Core.Models
{
public class Terms : IDateCreatedTrackable
{
[Key]
[Column(Order = 1)]
public int Id { get; set... | mit | C# |
a8f65e49aa6c4a8e131a3f02db6f1b4136797915 | Update Program.cs | Sofyrus/ImageRaider | ImageRaider.Console/Program.cs | ImageRaider.Console/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ImageRaider.Console
{
class Program
{
static void Main(string[] args)
{
List<string> imageUrlsToSearch = new List<string>();
ImageSearch search ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ImageRaider.Console
{
class Program
{
static void Main(string[] args)
{
List<string> imageUrlsToSearch = new List<string>();
ImageSearch search ... | mit | C# |
11d6504e7b7c44c350850eab3edd3d25c654ae72 | update copyright date | NickCraver/Jil,kevin-montrose/Jil,mgravell/Jil,m0sa/Jil,buybackoff/Jil,larrynung/Jil | Jil/Properties/AssemblyInfo.cs | Jil/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Jil")]
[assembly: AssemblyDescription("A fast JSON serializer and deserializer")]
[assembly: AssemblyProduct("Jil")]
[assembly: AssemblyCopyright("Copyright © Kevin Montrose 2013 - 2015")]
... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Jil")]
[assembly: AssemblyDescription("A fast JSON serializer and deserializer")]
[assembly: AssemblyProduct("Jil")]
[assembly: AssemblyCopyright("Copyright © Kevin Montrose 2013 - 2014")]
... | mit | C# |
662c0aae2c13625d1ca62dc153bd6aafe0932779 | update assemblyInfo.cs | AspectCore/Abstractions,AspectCore/AspectCore-Framework,AspectCore/AspectCore-Framework,AspectCore/Lite | src/AspectCore.Core/Properties/AssemblyInfo.cs | src/AspectCore.Core/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyConfigurat... | 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: AssemblyConfigurat... | mit | C# |
0e738e1476ab5df9f5db4f13feade1bd7baff232 | Update iOS/ExposureNotification/build.cake | xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents | iOS/ExposureNotification/build.cake | iOS/ExposureNotification/build.cake |
#load "../../common.cake"
var TARGET = Argument ("t", Argument ("target", "nuget"));
Task("nuget")
.Does(() =>
{
NuGetRestore ("./ExposureNotification.sln");
MSBuild ("./ExposureNotification.sln", c => {
c.Configuration = "Release";
c.MaxCpuCount = 0;
c.Targets.Clear();
c.Targets.Add("Pack");
c.Properti... |
#load "../../common.cake"
var TARGET = Argument ("t", Argument ("target", "Default"));
Task("nuget")
.Does(() =>
{
NuGetRestore ("./ExposureNotification.sln");
MSBuild ("./ExposureNotification.sln", c => {
c.Configuration = "Release";
c.MaxCpuCount = 0;
c.Targets.Clear();
c.Targets.Add("Pack");
c.Proper... | mit | C# |
af4b00fd16987f0db18f6f18ff535d6494ae1e13 | Reformat Blinker | yeonghoey/dotge | Assets/Scripts/Blinker.cs | Assets/Scripts/Blinker.cs | using UnityEngine;
using UnityEngine.UI;
public class Blinker : MonoBehaviour
{
public float speed;
private Text text;
private string message;
void Start()
{
text = GetComponent<Text>();
message = text.text;
}
void Update()
{
float v = Mathf.PingPong(Time.tim... | using UnityEngine;
using UnityEngine.UI;
public class Blinker : MonoBehaviour
{
public float speed;
private Text text;
private string message;
void Start()
{
text = GetComponent<Text>();
message = text.text;
}
void Update()
{
float v = Mathf.PingPong(Time.time * speed, 1.0f);
bool show = Mathf.Ro... | mit | C# |
253c6e8533a390ad168aae3be67464e4fdcf86dd | Add abstract IsValidDestination method | ProgramFOX/Chess.NET | ChessDotNet/ChessPiece.cs | ChessDotNet/ChessPiece.cs | namespace ChessDotNet
{
public abstract class ChessPiece
{
public abstract Player Owner
{
get;
set;
}
public override bool Equals(object obj)
{
if (ReferenceEquals(this, obj))
return true;
if (obj == null |... | namespace ChessDotNet
{
public abstract class ChessPiece
{
public abstract Player Owner
{
get;
set;
}
public override bool Equals(object obj)
{
if (ReferenceEquals(this, obj))
return true;
if (obj == null |... | mit | C# |
6a31f91d4b5cd686a87da98a3c286746f2f0f976 | Update ScriptView.axaml.cs | wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D/Views/Scripting/ScriptView.axaml.cs | src/Core2D/Views/Scripting/ScriptView.axaml.cs | using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using AvaloniaEdit;
using AvaloniaEdit.Indentation.CSharp;
namespace Core2D.Views.Scripting;
public class ScriptView : UserControl
{
private readonly TextEditor _scriptTextEditor;
public ScriptView()
{
InitializeComponent();
_scriptTex... | #if false
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using AvaloniaEdit;
using AvaloniaEdit.Indentation.CSharp;
namespace Core2D.Views.Scripting;
public class ScriptView : UserControl
{
private readonly TextEditor _scriptTextEditor;
public ScriptView()
{
InitializeComponent();
... | mit | C# |
a86d4072b80353e8eab64e0756e344819907edbd | Fix fake not replicating actual behaviour | aNutForAJarOfTuna/kafka-net,CenturyLinkCloud/kafka-net,gigya/KafkaNetClient,nightkid1027/kafka-net,Jroland/kafka-net,EranOfer/KafkaNetClient,PKRoma/kafka-net,bridgewell/kafka-net,martijnhoekstra/kafka-net,geffzhang/kafka-net,BDeus/KafkaNetClient | kafka-tests/Fakes/FakeKafkaConnection.cs | kafka-tests/Fakes/FakeKafkaConnection.cs | using KafkaNet;
using KafkaNet.Protocol;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace kafka_tests.Fakes
{
public class FakeKafkaConnection : IKafkaConnection
{
private Uri _address;
public Func<ProduceResponse> P... | using KafkaNet;
using KafkaNet.Protocol;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace kafka_tests.Fakes
{
public class FakeKafkaConnection : IKafkaConnection
{
private Uri _address;
public Func<ProduceResponse> P... | apache-2.0 | C# |
4bb8f16ad31c98b0b24acbcd864282b396f63539 | Add a helper method for finding nearest arbitrary percept to AgentBehavior | futurechris/zombai | Assets/Scripts/Behaviors/AgentBehavior.cs | Assets/Scripts/Behaviors/AgentBehavior.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class AgentBehavior
{
protected List<Action> currentPlans = new List<Action>();
protected Agent myself;
public List<Action> getCurrentPlans()
{
return currentPlans;
}
public virtual void setAgent(Agent newAgent)
{
myse... | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class AgentBehavior
{
protected List<Action> currentPlans = new List<Action>();
protected Agent myself;
public List<Action> getCurrentPlans()
{
return currentPlans;
}
public virtual void setAgent(Agent newAgent)
{
myse... | mit | C# |
26e171802b2c442ba5d222be87768204f8307699 | Append .json to end of filename when outputting JSON | overtools/OWLib | DataTool/JSON/JSONTool.cs | DataTool/JSON/JSONTool.cs | using System;
using System.IO;
using DataTool.ToolLogic.List;
using Utf8Json;
using Utf8Json.Resolvers;
using static DataTool.Helper.IO;
using static DataTool.Helper.Logger;
namespace DataTool.JSON {
public class JSONTool {
internal void OutputJSON(object jObj, ListFlags toolFlags) {
CompositeR... | using System;
using System.IO;
using DataTool.ToolLogic.List;
using Utf8Json;
using Utf8Json.Resolvers;
using static DataTool.Helper.IO;
using static DataTool.Helper.Logger;
namespace DataTool.JSON {
public class JSONTool {
internal void OutputJSON(object jObj, ListFlags toolFlags) {
CompositeR... | mit | C# |
29d6f59471e02e6c6f2f75edc6b07dbc11e263e7 | Add test for delegation in obsolete property | malcolmr/nodatime,nodatime/nodatime,BenJenkinson/nodatime,malcolmr/nodatime,nodatime/nodatime,malcolmr/nodatime,malcolmr/nodatime,BenJenkinson/nodatime | src/NodaTime.Test/DateTimeZoneProvidersTest.cs | src/NodaTime.Test/DateTimeZoneProvidersTest.cs | // Copyright 2013 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using System.Linq;
using NodaTime.Testing.TimeZones;
using NodaTime.Xml;
using NUnit.Framework;
namespace NodaTime.Test
{
/// <summary>
/// Tests... | // Copyright 2013 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using System.Linq;
using NUnit.Framework;
namespace NodaTime.Test
{
/// <summary>
/// Tests for DateTimeZoneProviders.
/// </summary>
pub... | apache-2.0 | C# |
5efe844fcf0c2e8e4554567f951df2986182beec | Update build.cake | predictive-technology-laboratory/Xamarin.Plugins,jamesmontemagno/Xamarin.Plugins | TextToSpeech/build.cake | TextToSpeech/build.cake | #addin "Cake.FileHelpers"
var TARGET = Argument ("target", Argument ("t", "NuGetPack"));
var version = EnvironmentVariable ("APPVEYOR_BUILD_VERSION") ?? Argument("version", "0.0.9999");
Task ("Build").Does (() =>
{
const string sln = "./Refractored.Xam.TTS.sln";
const string cfg = "Release";
NuGetRestore (sl... | #addin "Cake.FileHelpers"
var TARGET = Argument ("target", Argument ("t", "Build"));
var version = EnvironmentVariable ("APPVEYOR_BUILD_VERSION") ?? Argument("version", "0.0.9999");
Task ("Build").Does (() =>
{
const string sln = "./Refractored.Xam.TTS.sln";
const string cfg = "Release";
NuGetRestore (sln);
... | mit | C# |
34609614b70b9d05447b2e2483b5bcac5e4a3de4 | Use all StockIcons properties instead of fields. | hwthomas/xwt,directhex/xwt,hamekoz/xwt,lytico/xwt,cra0zy/xwt,steffenWi/xwt,sevoku/xwt,residuum/xwt,mminns/xwt,antmicro/xwt,iainx/xwt,akrisiun/xwt,mono/xwt,TheBrainTech/xwt,mminns/xwt | Samples/Samples/Images.cs | Samples/Samples/Images.cs | //
// Images.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2011 Xamarin Inc
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, i... | //
// Images.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2011 Xamarin Inc
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, i... | mit | C# |
b5a38dc14e756b335e33ff800deb66e2e7cca0a1 | Add method for returning random bytes | 0culus/ElectronicCash | ElectronicCash/Helpers.cs | ElectronicCash/Helpers.cs | using System;
using System.Security.Cryptography;
namespace ElectronicCash
{
/// <summary>
/// Contains all our helper methods to help keep our classes cleaner,
/// and make unit testing possible
/// </summary>
public static class Helpers
{
/// <summary>
/// stackoverflow.com/q... | using System;
namespace ElectronicCash
{
/// <summary>
/// Contains all our helper methods to help keep our classes cleaner,
/// and make unit testing possible
/// </summary>
public static class Helpers
{
/// <summary>
/// stackoverflow.com/questions/472906/converting-a-string-... | mit | C# |
020ba7ae2fca80d2fe302094d54c76d4a64d5d95 | Update Warwick.cs | metaphorce/leaguesharp | MetaSmite/Champions/Warwick.cs | MetaSmite/Champions/Warwick.cs | using System;
using LeagueSharp;
using LeagueSharp.Common;
using SharpDX;
namespace MetaSmite.Champions
{
public static class Warwick
{
internal static Spell champSpell;
private static Menu Config = MetaSmite.Config;
private static double totalDamage;
private static double spel... | using System;
using LeagueSharp;
using LeagueSharp.Common;
using SharpDX;
namespace MetaSmite.Champions
{
public static class Warwick
{
internal static Spell champSpell;
private static Menu Config = MetaSmite.Config;
private static double totalDamage;
private static double spel... | mit | C# |
a4507d3c2ea8fc2b0bdb7b26970cbf78290fc376 | Reorder InteropBitmapInfo changes - fail fast, no need to calculate stride, remove redundant else block | twxstar/CefSharp,windygu/CefSharp,gregmartinhtc/CefSharp,battewr/CefSharp,rlmcneary2/CefSharp,Livit/CefSharp,illfang/CefSharp,windygu/CefSharp,haozhouxu/CefSharp,joshvera/CefSharp,NumbersInternational/CefSharp,Livit/CefSharp,gregmartinhtc/CefSharp,ruisebastiao/CefSharp,twxstar/CefSharp,zhangjingpu/CefSharp,Haraguroicha... | CefSharp.Wpf/Rendering/InteropBitmapInfo.cs | CefSharp.Wpf/Rendering/InteropBitmapInfo.cs | // Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Windows.Interop;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace CefSharp.Wpf.Rendering
{
... | // Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Windows.Interop;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace CefSharp.Wpf.Rendering
{
... | bsd-3-clause | C# |
22a49f22db549b23f7e5cbbbcd54d71961cbcfa7 | Bump version to 0.90.0-beta2 | jongleur1983/ClosedXML,igitur/ClosedXML,b0bi79/ClosedXML,ClosedXML/ClosedXML | ClosedXML/Properties/AssemblyVersionInfo.cs | ClosedXML/Properties/AssemblyVersionInfo.cs | using System.Reflection;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("0.90.0.0")]
[assembly: AssemblyFileVersion("0.90.0.0")]
[assembly: AssemblyInformationalVersion("0.9... | using System.Reflection;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("0.89.0.0")]
[assembly: AssemblyFileVersion("0.89.0.0")]
[assembly: AssemblyInformationalVersion("0.8... | mit | C# |
220e3c3154c16ee051262872e8ec05bfcb1a1016 | include a new attribute in the result set | marinoscar/article-parser,marinoscar/article-parser,marinoscar/article-parser | Code/api.core/Provider/ContentRepository.cs | Code/api.core/Provider/ContentRepository.cs | using api.core.Models;
using MongoDB.Driver;
using StructureMap;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace api.core.Provider
{
public class ContentRepository
{
public ContentRepository(IContainer container)
{
... | using api.core.Models;
using MongoDB.Driver;
using StructureMap;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace api.core.Provider
{
public class ContentRepository
{
public ContentRepository(IContainer container)
{
... | mit | C# |
7b1e51155ce08cb21602cdeb34d7cb5f70929a29 | Update DanHealth.cs | TheMagnificentSeven/MakeItRain | Assets/Scripts/DanHealth.cs | Assets/Scripts/DanHealth.cs | using UnityEngine;
using System.Collections;
public class DanHealth : MonoBehaviour {
public float health;
private bool dead;
// Use this for initialization
void Start () {
health = 100f;
}
// Update is called once per frame
void Update()
{
if (health <= 0)
{
... | using UnityEngine;
using System.Collections;
public class DanHealth : MonoBehaviour {
public float health;
private bool dead;
// Use this for initialization
void Start () {
health = 100f;
}
// Update is called once per frame
void Update()
{
}
void takeDamage (float damage) {
... | mit | C# |
56d94262800bc207c11b2cc2187d9260c9062435 | Update GPCSourceVocEnum.cs | ADAPT/ADAPT | source/ADAPT/Common/GPCSourceVocEnum.cs | source/ADAPT/Common/GPCSourceVocEnum.cs | /*******************************************************************************
* Copyright (C) 2018 AgGateway and ADAPT Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribut... | /*******************************************************************************
* Copyright (C) 2018 AgGateway and ADAPT Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribut... | epl-1.0 | C# |
371932081e92df942ecb864df90d57126c35361b | Update unit test | synel/syndll2 | Syndll2.Tests/BasicTests/ServerTests.cs | Syndll2.Tests/BasicTests/ServerTests.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Syndll2.Tests.BasicTests
{
[TestClass]
public class ServerTests
{
[TestMethod]
[Ignore] // run this manually, after enabling polling mode and recording some dat... | using System;
using System.Threading;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Syndll2.Tests.BasicTests
{
[TestClass]
public class ServerTests
{
[TestMethod]
[Ignore] // run this manually, after enabling polling mode and recording some data
public void Can_Rece... | mit | C# |
b59ec78571565af3b0a0892517c932a6a6ede8ca | Fix failing test | Lc5/DesignPatternsCSharp | Tests/Structural/Facade/ComputerTest.cs | Tests/Structural/Facade/ComputerTest.cs | namespace DesignPatterns.Tests.Structural.Facade
{
using DesignPatterns.Structural.Facade;
using Moq;
using NUnit.Framework;
[TestFixture]
public class ComputerTest
{
[Test]
public void TestTurnOn()
{
var bios = new Mock<IBios>();
... | namespace DesignPatterns.Tests.Structural.Facade
{
using DesignPatterns.Structural.Facade;
using Moq;
using NUnit.Framework;
[TestFixture]
public class ComputerTest
{
[Test]
public void TestTurnOn()
{
var bios = new Mock<IBios>();
... | mit | C# |
7134fc7bdcebdd220f34bc3fd168ce475436d45e | Develop system comments | cyberegoorg/cetech,cyberegoorg/cetech,cyberegoorg/cetech,cyberegoorg/cetech | sources/CETech/Develop/DevelopSystem.cs | sources/CETech/Develop/DevelopSystem.cs | using System;
namespace CETech.Develop
{
/// <summary>
/// Develop system.
/// </summary>
public partial class DevelopSystem
{
/// <summary>
/// Init develop system.
/// </summary>
public static void Init()
{
InitImpl();
}
/// <summary>
/// Shutdown develop sy... | using System;
namespace CETech.Develop
{
public partial class DevelopSystem
{
public static void Init()
{
InitImpl();
}
public static void Shutdown()
{
ShutdownImpl();
}
public static void PushRecordFloat(string name, float valu... | cc0-1.0 | C# |
fc0f0479b07a5e0dbcede0ba20409afb1d8c3725 | Bump version to 1.4.4 | davidebbo/WebActivator | WebActivator/Properties/AssemblyInfo.cs | WebActivator/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Web;
// 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.
[a... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Web;
// 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.
[a... | apache-2.0 | C# |
28faf07290b7808c78bf6793933c478f8e048cf3 | fix option example error release nuget v1.2.0 | JiyongShi/MarkDownHtmlGenerator | MarkDownHtmlGenerator/CommandLineOptions.cs | MarkDownHtmlGenerator/CommandLineOptions.cs | using CommandLine;
using CommandLine.Text;
namespace MarkDownHtmlGenerator
{
public class CommandLineOptions
{
[Option('p', "path", Required = true, HelpText = @"Path which is include Markdown files. You MUST set this argument. Example: -p C:\Projects\ProjA\Apis")]
public string Path {... | using CommandLine;
using CommandLine.Text;
namespace MarkDownHtmlGenerator
{
public class CommandLineOptions
{
[Option('p', "path", Required = true, HelpText = @"Path which is include Markdown files. You MUST set this argument. Example: -p C:\Projects\ProjA\Apis")]
public string Path {... | apache-2.0 | C# |
2300a09bcb41131967712a3c5c36eb81a37b78b2 | Update Sumn.cs | Xeeynamo/KingdomHearts | OpenKh.Kh2/Battle/Sumn.cs | OpenKh.Kh2/Battle/Sumn.cs | using System.Collections.Generic;
using System.IO;
using Xe.BinaryMapper;
namespace OpenKh.Kh2.Battle
{
public class Sumn
{
[Data] public ushort Command { get; set; }
[Data] public ushort Item { get; set; }
[Data] public uint Entity1 { get; set; }
[Data] public uint Entity2 { ge... | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Xe.BinaryMapper;
namespace OpenKh.Kh2.Battle
{
public class Sumn
{
[Data] public ushort Command { get; set; }
[Data] public ushort Item { get; set; }
[Data] public uint Entity1 { get; set; }
... | mit | C# |
892ca1e37840062c11e16a44dac56b7f91078bf0 | Fix typo in FlexDirection.cs | AngleSharp/AngleSharp.Css,AngleSharp/AngleSharp.Css,AngleSharp/AngleSharp.Css | src/AngleSharp.Css/Dom/FlexDirection.cs | src/AngleSharp.Css/Dom/FlexDirection.cs | namespace AngleSharp.Css.Dom
{
/// <summary>
/// Potential flex directions.
/// </summary>
public enum FlexDirection
{
/// <summary>
/// Same direction as inline axis, i.e., from left to right.
/// </summary>
Row,
/// <summary>
/// Inverse direction as... | namespace AngleSharp.Css.Dom
{
/// <summary>
/// Potential flex directions.
/// </summary>
public enum FlexDirection
{
/// <summary>
/// Same direction as inline axis, i.e., from left to right.
/// </summary>
Row,
/// <summary>
/// Inverse direction as... | mit | C# |
bef9877e83ea2a3a2dea8918466fb91fd001d7b6 | Update Item | LWolf76/BookMaster,LWolf76/BookMaster | src/BookMaster/BookMaster/Models/Item.cs | src/BookMaster/BookMaster/Models/Item.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace BookMaster.Models
{
public class Item
{
public Int32 ItemId { get; set; }
public Int32 Type { get; set; }
[Required(ErrorMessage = "Title Required")]
public String Title { ge... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace BookMaster.Models
{
public class Item
{
public Int32 ItemId { get; set; }
public Int32 Type { get; set; }
public String Title { get; set; }
public String Author { get; set; }
... | unlicense | C# |
9a4678d40fd9b91687058c512e6a62932474d71a | Change config order. | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNet.Hosting/Program.cs | src/Microsoft.AspNet.Hosting/Program.cs | using System;
using System.IO;
using Microsoft.AspNet.ConfigurationModel;
using Microsoft.AspNet.DependencyInjection;
using Microsoft.AspNet.DependencyInjection.Fallback;
using Microsoft.Net.Runtime;
namespace Microsoft.AspNet.Hosting
{
public class Program
{
private const string HostingIniFile = "Mic... | using System;
using System.IO;
using Microsoft.AspNet.ConfigurationModel;
using Microsoft.AspNet.DependencyInjection;
using Microsoft.AspNet.DependencyInjection.Fallback;
using Microsoft.Net.Runtime;
namespace Microsoft.AspNet.Hosting
{
public class Program
{
private const string HostingIniFile = "Mic... | apache-2.0 | C# |
427c944d2d3940ada958f0e4bc1d7370166fbcac | Bump version to 0.4 | jamesfoster/DeepEqual | src/DeepEqual/Properties/AssemblyInfo.cs | src/DeepEqual/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("De... | 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("De... | mit | C# |
470913f796ca98740bad6d84648e0d881236040d | Update ImageCropMode.cs | rasmusfjord/Umbraco-CMS,NikRimington/Umbraco-CMS,Pyuuma/Umbraco-CMS,rasmusfjord/Umbraco-CMS,qizhiyu/Umbraco-CMS,Door3Dev/HRI-Umbraco,madsoulswe/Umbraco-CMS,YsqEvilmax/Umbraco-CMS,mstodd/Umbraco-CMS,mattbrailsford/Umbraco-CMS,engern/Umbraco-CMS,AzarinSergey/Umbraco-CMS,marcemarc/Umbraco-CMS,ehornbostel/Umbraco-CMS,kgisz... | src/Umbraco.Web/Models/ImageCropMode.cs | src/Umbraco.Web/Models/ImageCropMode.cs | namespace Umbraco.Web.Models
{
public enum ImageCropMode
{
Crop,
Max,
Stretch,
Pad
}
}
| namespace Umbraco.Web.Models
{
public enum ImageCropMode
{
Crop,
Max,
Strech,
Pad
}
} | mit | C# |
c6d948a74d1f4ed40d2fb9d8265bedc1521fff80 | Bump version to 0.1.0-alpha3 | Martin-Bohring/fixieSpec | src/FixieSpec/Properties/AssemblyInfo.cs | src/FixieSpec/Properties/AssemblyInfo.cs | // <auto-generated/>
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitleAttribute("FixieSpec")]
[assembly: AssemblyProductAttribute("FixieSpec")]
[assembly: AssemblyDescriptionAttribute("A super low friction specification test framework based on the fantastic Fixie test framework."... | // <auto-generated/>
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitleAttribute("FixieSpec")]
[assembly: AssemblyProductAttribute("FixieSpec")]
[assembly: AssemblyDescriptionAttribute("A super low friction specification test framework based on the fantastic Fixie test framework."... | mit | C# |
59e3d4b9e571cf46abd21e520ba316d4c3bff056 | Remove the nullable disable annotation in the Ruleset.Filter namespace. | ppy/osu,peppy/osu,peppy/osu,peppy/osu,ppy/osu,ppy/osu | osu.Game/Rulesets/Filter/IRulesetFilterCriteria.cs | osu.Game/Rulesets/Filter/IRulesetFilterCriteria.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.Beatmaps;
using osu.Game.Screens.Select;
using osu.Game.Screens.Select.Filter;
namespace osu.Game.Rulesets.Filter
{
/// <summary>
/// Allows for e... | // 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 disable
using osu.Game.Beatmaps;
using osu.Game.Screens.Select;
using osu.Game.Screens.Select.Filter;
namespace osu.Game.Rulesets.Filter
{
/// <summary>
... | mit | C# |
d29312e0709eb11e63effe51fb6c806966e3689d | Fix rider incompetency | peppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu | osu.Game/Overlays/IDialogOverlay.cs | osu.Game/Overlays/IDialogOverlay.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 osu.Framework.Allocation;
using osu.Game.Overlays.Dialog;
namespace osu.Game.Overlays
{
/// <summary>
/// A global overlay that can show ... | #nullable enable
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Game.Overlays.Dialog;
namespace osu.Game.Overlays
{
/// <summary>
/// A global overlay that can show p... | mit | C# |
f44761cb784eed0b6bf377a95a769bae53ea57f8 | Make `CooperativeTask` static | Weingartner/SolidworksAddinFramework | SolidworksAddinFramework/CooperativeTask.cs | SolidworksAddinFramework/CooperativeTask.cs | using System.Threading;
using System.Threading.Tasks;
namespace SolidworksAddinFramework
{
/// <summary>
/// Helper methods to implement cooperative tasks using coroutines (https://en.wikipedia.org/wiki/Coroutine)
/// </summary>
public static class CooperativeTask
{
/// <summary>
//... | using System.Threading;
using System.Threading.Tasks;
namespace SolidworksAddinFramework
{
/// <summary>
/// Helper methods to implement cooperative tasks using coroutines (https://en.wikipedia.org/wiki/Coroutine)
/// </summary>
public class CooperativeTask
{
/// <summary>
/// Allow... | mit | C# |
2d45243c821f96e8c4f1bb0334712e04fed3cc5c | disable Textbox when Ajaxdaten geladen werden | freakinChuck/LoremIpsum,freakinChuck/LoremIpsum | Source/LoremIpsumWeb/Views/Home/Ajax.cshtml | Source/LoremIpsumWeb/Views/Home/Ajax.cshtml | @{
ViewBag.Title = "Ajax Element";
}
@section ScriptHead{
@if (false)
{
<script src="/_Scripts/jquery-2.1.1.js"></script>
}
<script>
$(document).ready(LoadTextBox);
function LoadTextBox() {
var numberBox = document.getElementById('numberOfItemsInput');
... | @{
ViewBag.Title = "Ajax Element";
}
@section ScriptHead{
@if (false)
{
<script src="/_Scripts/jquery-2.1.1.js"></script>
}
<script>
$(document).ready(LoadTextBox);
function LoadTextBox() {
var numberBox = document.getElementById('numberOfItemsInput');
... | mit | C# |
92e3a4fd24df183b04969e9d8aa9a7d65378faee | Update WalletWasabi/Microservices/ProcessBridge.cs | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Microservices/ProcessBridge.cs | WalletWasabi/Microservices/ProcessBridge.cs | using System;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Helpers;
using WalletWasabi.Logging;
namespace WalletWasabi.Microservices
{
public class ProcessBridge : IProcessBridge
... | using System;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Helpers;
using WalletWasabi.Logging;
namespace WalletWasabi.Microservices
{
public class ProcessBridge : IProcessBridge
... | mit | C# |
1c3f483d76f2c546e6f64ca8585bdf37d898279c | change version number in shared assembly file to 1.0.0 | builttoroam/BuildIt,builttoroam/BuildIt | src/BuildIt.Shared/SharedAssemblyInfo.cs | src/BuildIt.Shared/SharedAssemblyInfo.cs | using System.Resources;
using System.Reflection;
[assembly: AssemblyCompany("Built to Roam Pty Ltd")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("en")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: Assemb... | using System.Resources;
using System.Reflection;
[assembly: AssemblyCompany("Built to Roam Pty Ltd")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("en")]
[assembly: AssemblyVersion("0.1.5.6")]
[assembly: Assemb... | mit | C# |
a48c549710342f7018b265814cb4cf1fc3a187b0 | Remove temporary SoapBinaryHex stub | sethreno/schemazen,sethreno/schemazen | model/Models/Assembly.cs | model/Models/Assembly.cs | using System;
using System.Runtime;
using System.Collections.Generic;
using System.Linq;
namespace SchemaZen.Library.Models {
public class SqlAssembly : INameable, IScriptable {
public List<KeyValuePair<string, byte[]>> Files = new List<KeyValuePair<string, byte[]>>();
public string Name { get; set; }
public s... | using System;
using System.Runtime;
using System.Collections.Generic;
using System.Linq;
namespace SchemaZen.Library.Models {
public class SqlAssembly : INameable, IScriptable {
public List<KeyValuePair<string, byte[]>> Files = new List<KeyValuePair<string, byte[]>>();
public string Name { get; set; }
public s... | mit | C# |
6bb3d29f0409e251651beb881b821169601df65a | Revert "Revert "Fixed subscription payments list endpoint"" | Viincenttt/MollieApi,Viincenttt/MollieApi | Mollie.Api/Client/SubscriptionClient.cs | Mollie.Api/Client/SubscriptionClient.cs | using System.Net.Http;
using System.Threading.Tasks;
using Mollie.Api.Client.Abstract;
using Mollie.Api.Models.List;
using Mollie.Api.Models.Payment.Response;
using Mollie.Api.Models.Subscription;
using Mollie.Api.Models.Url;
namespace Mollie.Api.Client {
public class SubscriptionClient : BaseMollieClient, ISubsc... | using System.Net.Http;
using System.Threading.Tasks;
using Mollie.Api.Client.Abstract;
using Mollie.Api.Models.List;
using Mollie.Api.Models.Payment.Response;
using Mollie.Api.Models.Subscription;
using Mollie.Api.Models.Url;
namespace Mollie.Api.Client {
public class SubscriptionClient : BaseMollieClient, ISubsc... | mit | C# |
5eff4c6a407a49bd2736124a84d05c59d184d135 | make web refresh tokens good for 30 days | bitwarden/core,bitwarden/core,bitwarden/core,bitwarden/core | src/Core/IdentityServer/StaticClients.cs | src/Core/IdentityServer/StaticClients.cs | using IdentityServer4.Models;
using System.Collections.Generic;
using System.Linq;
namespace Bit.Core.IdentityServer
{
public class StaticClients
{
public static IDictionary<string, Client> GetApiClients()
{
return new List<Client>
{
new ApiClient("mobil... | using IdentityServer4.Models;
using System.Collections.Generic;
using System.Linq;
namespace Bit.Core.IdentityServer
{
public class StaticClients
{
public static IDictionary<string, Client> GetApiClients()
{
return new List<Client>
{
new ApiClient("mobil... | agpl-3.0 | C# |
e73799a38837ed05985ce4c2b0b757a734c5bd8a | Update ProcessHelper.cs | filipw/dotnet-script,filipw/dotnet-script | src/Dotnet.Script.Tests/ProcessHelper.cs | src/Dotnet.Script.Tests/ProcessHelper.cs | using System;
using System.Diagnostics;
using System.IO;
namespace Dotnet.Script.Tests
{
public static class ProcessHelper
{
public static string RunAndCaptureOutput(string fileName, string[] arguments, string workingDirectory = null)
{
var startInfo = new ProcessStartInfo(fileName... | using System;
using System.Diagnostics;
using System.IO;
namespace Dotnet.Script.Tests
{
public static class ProcessHelper
{
public static string RunAndCaptureOutput(string fileName, string[] arguments, string workingDirectory = null)
{
var startInfo = new ProcessStartInfo(fileName... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.