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
d08307060cfe7c4a22cce061c79fb252cdad2d8c
Add MvbCollection
markjackmilian/MVB
Mvb/Mvb.Cross/MvbCollection.cs
Mvb/Mvb.Cross/MvbCollection.cs
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Mvb.Cross { public class MvbCollection<T> : ObservableCollection<T> { p...
apache-2.0
C#
c460e520435e1f8fa1fa2d004d3b0dbb20fe732c
Update test fix for test_SessionState.cs
TravisEz13/PowerShell,bingbing8/PowerShell,JamesWTruher/PowerShell-1,KarolKaczmarek/PowerShell,bingbing8/PowerShell,bmanikm/PowerShell,bmanikm/PowerShell,TravisEz13/PowerShell,jsoref/PowerShell,bingbing8/PowerShell,kmosher/PowerShell,kmosher/PowerShell,jsoref/PowerShell,JamesWTruher/PowerShell-1,JamesWTruher/PowerShell...
test/csharp/test_SessionState.cs
test/csharp/test_SessionState.cs
using Xunit; using System; using System.Collections; using System.Collections.ObjectModel; using System.Globalization; using System.Management.Automation; using System.Management.Automation.Host; using System.Management.Automation.Internal; using System.Management.Automation.Internal.Host; using System.Management.Autom...
using Xunit; using System; using System.Collections; using System.Collections.ObjectModel; using System.Globalization; using System.Management.Automation; using System.Management.Automation.Host; using System.Management.Automation.Internal; using System.Management.Automation.Internal.Host; using System.Management.Autom...
mit
C#
28a6b692d42fce117a94b95b8ff81883dfe3f61d
Add PieChartViewModel for PieChart.xaml
xyon1/Expenditure-App
ExpenditureAppViewModels/PieChartViewModel.cs
ExpenditureAppViewModels/PieChartViewModel.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExpenditureAppViewModels { public class PieChartViewModel : ViewModel { } }
apache-2.0
C#
8bfaf4b4d302c088061483e5f6a669d00005e640
add ImplicitPermissionAttribute to Serenity.Net.Core
volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity
src/Serenity.Net.Core/ComponentModel/Permission/ImplicitPermissionAttribute.cs
src/Serenity.Net.Core/ComponentModel/Permission/ImplicitPermissionAttribute.cs
using System; namespace Serenity.ComponentModel { /// <summary> /// Placed on permission keys to define an implicitly assigned /// permissions when a user / role has the permission. /// Currently only implemented in premium app. /// </summary> /// <seealso cref="Attribute" /> [A...
mit
C#
ff1a43f15b53de6d4cbb6df0185bdcdf16e0c1ea
Add script for fixing tecture scaling
ANamelessBand/pulse,ANamelessBand/pulse,ANamelessBand/pulse,ANamelessBand/pulse
Assets/Scripts/TextureTilingController.cs
Assets/Scripts/TextureTilingController.cs
using UnityEngine; using System.Collections; [ExecuteInEditMode] public class TextureTilingController : MonoBehaviour { // Give us the texture so that we can scale proportianally the width according to the height variable below // We will grab it from the meshRenderer //public Texture texture; //public float te...
mit
C#
cfb1165925faa7fd7ea658cd0e64bf7c0edb8862
add 69
wallyjue/online_judge,wallyjue/online_judge,wallyjue/online_judge,wallyjue/online_judge,wallyjue/online_judge
leetcode/C_sharp/online_judge/leetcode/easy/Problem_69.cs
leetcode/C_sharp/online_judge/leetcode/easy/Problem_69.cs
using System; using System.Collections.Generic; using System.Text; namespace online_judge.leetcode.easy { class Problem_69 { public int MySqrt(int x) { int ret = 1; while( (x/ret) >= ret) { ret++; } return ret-1; } } }
mit
C#
2dd2d634078f13094d52392928b5136cdda7cb17
Load settings and icons
DMagic1/KSP_Contract_Window
Source/ContractsWindow/contractMainMenu.cs
Source/ContractsWindow/contractMainMenu.cs
#region license /*The MIT License (MIT) Contract Main Menu - Addon to initialize settings and textures Copyright (c) 2014 DMagic KSP Plugin Framework by TriggerAu, 2014: http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework Permission is hereby granted, free of charge, to any person obtaining a cop...
mit
C#
b0905a83d2bac20f6640640cd7cecf757045f99b
Include missing TodoDataStore
OkraFramework/Okra-Todo
Okra-Todo/DataModels/TodoDataStore.cs
Okra-Todo/DataModels/TodoDataStore.cs
using Okra.TodoSample.Data; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Composition; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Okra.TodoSample.DataModels { [Export(typeof(ITodoDataStore))] [Shared] public class Todo...
apache-2.0
C#
14d1fef1b89f9f623d4f7858fd956e0f4493f882
Create copyProj2Proj.cs
Gytaco/RevitAPI,Gytaco/RevitAPI
Macros/CS/Project/copyProj2Proj.cs
Macros/CS/Project/copyProj2Proj.cs
/* This routine is more complex and has a few error handlers around it. It will copy across filters, Wall types and Wall Tags from a open project called Text.rvt to your current open project. TAKE NOTE: When having files open if your Windows Folder open for hide file extentions is turned on then this will not ...
mit
C#
f84705ab9605776f579f745ac6164b856bf5903e
Add tests
UselessToucan/osu,smoogipooo/osu,peppy/osu-new,NeoAdonis/osu,smoogipoo/osu,2yangk23/osu,EVAST9919/osu,UselessToucan/osu,ppy/osu,peppy/osu,EVAST9919/osu,peppy/osu,UselessToucan/osu,peppy/osu,ppy/osu,johnneijzen/osu,NeoAdonis/osu,ppy/osu,2yangk23/osu,smoogipoo/osu,NeoAdonis/osu,johnneijzen/osu,smoogipoo/osu
osu.Game.Tests/Visual/Settings/TestSceneSettingsSource.cs
osu.Game.Tests/Visual/Settings/TestSceneSettingsSource.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.Bindables; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Game.Configuration; using osuTK; ...
mit
C#
59c8b2d8b9a6e3a531900307be2edb16fa0d83b3
Make primary key auto increment.
eatskolnikov/mobile,masterrr/mobile,ZhangLeiCharles/mobile,peeedge/mobile,eatskolnikov/mobile,masterrr/mobile,peeedge/mobile,eatskolnikov/mobile,ZhangLeiCharles/mobile
Phoebe/Data/DataObjects/CommonData.cs
Phoebe/Data/DataObjects/CommonData.cs
using System; using SQLite; namespace Toggl.Phoebe.Data.DataObjects { public abstract class CommonData { protected CommonData () { ModifiedAt = Time.UtcNow; } /// <summary> /// Initializes a new instance of the <see cref="Toggl.Phoebe.Data.DataObjects.Commo...
using System; namespace Toggl.Phoebe.Data.DataObjects { public abstract class CommonData { protected CommonData () { ModifiedAt = Time.UtcNow; } /// <summary> /// Initializes a new instance of the <see cref="Toggl.Phoebe.Data.DataObjects.CommonData"/> class...
bsd-3-clause
C#
0d0a4a5dcab65865cf41edb4796f914786e06280
Solve Hello World! in c#
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
solutions/uri/1000/1000.cs
solutions/uri/1000/1000.cs
using System; class Solution { static void Main() { Console.WriteLine("Hello World!"); } }
mit
C#
14a218a0549f467cb57e0a579b4e1039c9311c74
Add IConsentStore
fredrikstrandin/IdentityServer4.MongoDB
src/Core.MongoDB/Services/MongoDB/MongoDBConsentStore.cs
src/Core.MongoDB/Services/MongoDB/MongoDBConsentStore.cs
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // This is based on InMemoryConsentStore from IdentityServer // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using IdentityServer4.Core.Models; using System.Collections.Generic; using System...
apache-2.0
C#
2eb11822e3470791e9f0a7d37e1c3e20c4e23735
Create DatabaseProvider.cs
tiksn/TIKSN-Exchange
TIKSN.Exchange/DatabaseProvider.cs
TIKSN.Exchange/DatabaseProvider.cs
using Microsoft.Extensions.Configuration; using TIKSN.Data.LiteDB; using TIKSN.FileSystem; namespace TIKSN.Exchange { public class DatabaseProvider : LiteDbDatabaseProvider { public DatabaseProvider(IConfigurationRoot configuration, IKnownFolders knownFolders) : base(configuration, "Main", knownFolder...
mit
C#
1343467f93991aee4578e4d71272c67eab91ebb1
Add controller for Department(basic)
denismaster/DiplomContentSystem,denismaster/DiplomContentSystem,denismaster/DiplomContentSystem,denismaster/DiplomContentSystem
src/DiplomContentSystem/Controllers/DepartmentController.cs
src/DiplomContentSystem/Controllers/DepartmentController.cs
using System; using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Authorization; using DiplomContentSystem.Authentication; using DiplomContentSystem.Core; using DiplomContentSystem.Dto; namespace DiplomContentSystem.Controllers { [Route("api/departments")] [Authorize(Policy=AuthConsts....
apache-2.0
C#
a3f618bfe9d6de71621ad6cd4fb124d8dd83ada6
add missing
marihachi/CrystalResonanceForDesktop
src/Utility/PointHelper.cs
src/Utility/PointHelper.cs
using System.Drawing; namespace CrystalResonanceDesktop.Utility { /// <summary> /// 座標計算に関する機能を提供します。 /// </summary> public class PointHelper { public static PointHelper Instance { get; } = new PointHelper(); private PointHelper() { } /// <summary> /// Point の除算を実行します。(p1 / p2) /// </summary> /// <...
mit
C#
a47148f6e1b573480f3265b06f9e6a199629a64e
implement skill repo
mzrimsek/resume-site-api
Integration.EntityFramework/Repositories/SkillRepository.cs
Integration.EntityFramework/Repositories/SkillRepository.cs
using AutoMapper; using AutoMapper.QueryableExtensions; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Core.Interfaces.RepositoryInterfaces; using Core.Models; using Integration.EntityFramework.Models; namespace Integration.EntityFramework....
mit
C#
9b04948516c7669442457b9efabddfa53af38778
Create Program_Dictionary.cs
alchemz/ARL_Training
CSharpDotNet_Programming/Collections/Program_Dictionary.cs
CSharpDotNet_Programming/Collections/Program_Dictionary.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SummerTraining { class Program_Main { static void Main(string[] args) { /* var primeMinisters= new List<PrimeMinister> { new PrimeMinister(“James Callaghan”, 1976); new PrimeMinister(“Margaret Thatch...
mit
C#
a9c351bd9fe533a73e6076c534dbb91de395dbb9
Add basic test.
jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr
test/HelloCoreClrApp.Test/WebApi/WebHostTaskTest.cs
test/HelloCoreClrApp.Test/WebApi/WebHostTaskTest.cs
using System; using System.Threading; using FakeItEasy; using HelloCoreClrApp.WebApi; using Microsoft.Extensions.Configuration; using SimpleInjector; using Xunit; namespace HelloCoreClrApp.Test.WebApi { public class WebHostTaskTest { [Fact] public async void RunTestAsync() { ...
mit
C#
fa5b60b342ff0d3f29a00e51dc4057d90136d6fc
Add locale-specific tests to verify plural rules are there
jeffijoe/messageformat.net
src/Jeffijoe.MessageFormat.Tests/MetadataGenerator/GeneratedRulesTests.cs
src/Jeffijoe.MessageFormat.Tests/MetadataGenerator/GeneratedRulesTests.cs
using System; using System.Collections.Generic; using System.Text; using Jeffijoe.MessageFormat.Formatting; using Jeffijoe.MessageFormat.Formatting.Formatters; using Jeffijoe.MessageFormat.Parsing; using Xunit; namespace Jeffijoe.MessageFormat.Tests.MetadataGenerator { public class GeneratedRulesTests { ...
mit
C#
9ea7c75af11e14347c240a12f0b724391d60b87b
Create BCDBinaryChallenge.cs
Zephyr-Koo/sololearn-challenge
BCDBinaryChallenge.cs
BCDBinaryChallenge.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // https://www.sololearn.com/Discuss/653982/?ref=app namespace SoloLearn { class Program { static void Main(string[] zephyr_koo) { var input = Console.ReadLine(); ...
apache-2.0
C#
e811a6b566a9cd9e23c6d8a017e7e92cbb050e48
add a base exception class
wallymathieu/XmlUnit,wallymathieu/XmlUnit,wallymathieu/XmlUnit,wallymathieu/XmlUnit,wallymathieu/XmlUnit
xmlunit/src/main/net-core/exceptions/XMLUnitException.cs
xmlunit/src/main/net-core/exceptions/XMLUnitException.cs
/* This file is licensed to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
bsd-3-clause
C#
ca84d5152e167f930118d530e2bbb72362c5a8f9
Update and rename OpeningEncryptedExcelFiles.cs to OpeningFilewithDataOnly.cs
asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-shahid-as...
Examples/CSharp/Files/Handling/OpeningFilewithDataOnly.cs
Examples/CSharp/Files/Handling/OpeningFilewithDataOnly.cs
using System.IO; using Aspose.Cells; using System; namespace Aspose.Cells.Examples.Files.Handling { public class OpeningFilewithDataOnly { public static void Main(string[] args) { //Exstart:1 // The path to the documents directory. string dataDir = Aspose.Ce...
mit
C#
1110b3ec8b6286ba51615766f7c761663028e178
Add LargeTextureStore to framework
DrabWeb/osu-framework,Tom94/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,peppy/osu-framewor...
osu.Framework/Graphics/Textures/LargeTextureStore.cs
osu.Framework/Graphics/Textures/LargeTextureStore.cs
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.IO.Stores; namespace osu.Framework.Graphics.Textures { /// <summary> /// A texture store that bypasses atlasing and removes textur...
mit
C#
6597b91a60e49fa07b4398b688bd0a2d2a2146b2
Create Helpers.cs
scottolsonjr/scriptlink-core
Helpers.cs
Helpers.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NTST.ScriptLinkService.Objects; namespace ScriptLinkCore { public partial class ScriptLink { /// <summary> /// Used set required fields /// </summary> /// <p...
mit
C#
e0e77e3af36016c3a92b4de3a5d9617be5840a05
Add a test on new PassThroughInputManager
smoogipooo/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,Tom94/osu-framework,peppy/osu-framework,DrabWeb/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,ppy/osu-framework,peppy/osu-framework,DrabWeb/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,EVAST9919/osu-framew...
osu.Framework.Tests/Visual/TestCasePassThroughInputManager.cs
osu.Framework.Tests/Visual/TestCasePassThroughInputManager.cs
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System.Linq; using NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Input; using osu.Framework.Testing; using osu.Framework.Testing.In...
mit
C#
4cc1f043d32c1d4e84c278b643eef01f2cd1efed
Add Dependency Injection
fredrikstrandin/IdentityServer4.MongoDB
src/Core.MongoDB/Extensions/IdentityServerBuilderExtensions.cs
src/Core.MongoDB/Extensions/IdentityServerBuilderExtensions.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using IdentityServer4.Core.Services; using IdentityServer4.Core.Services.MongoDB; using IdentityServer4.Core.Validation; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extens...
apache-2.0
C#
05f6ed9fa1ac043a03f7439f6cfd922557cc7a81
Create Program.cs
MatteO-Matic/Gunz-2-fanpatch
Gunz2Autoupdate/Program.cs
Gunz2Autoupdate/Program.cs
using System; using System.Collections.Generic; using System.Windows.Forms; namespace Gunz2AutoUpdate { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.Enab...
mit
C#
0418d70056c3211ff20b48293bf3e04de64fdafa
Add test coverage for ignoring null mods returned by rulesets
peppy/osu,peppy/osu,ppy/osu,peppy/osu,ppy/osu,ppy/osu
osu.Game.Tests/Rulesets/TestSceneBrokenRulesetHandling.cs
osu.Game.Tests/Rulesets/TestSceneBrokenRulesetHandling.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.Collections.Generic; using System.Linq; using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Testing; using osu.Game....
mit
C#
e5d0a83df9becaac806f4b4ad7891b215273bd3a
Implement common results
gestaoaju/commerce,gestaoaju/commerce
src/Results/Common/ModelErrorsJson.cs
src/Results/Common/ModelErrorsJson.cs
// Copyright (c) gestaoaju.com.br - All rights reserved. // Licensed under MIT (https://github.com/gestaoaju/commerce/blob/master/LICENSE). using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace Gestaoaju.Results.Common { public class ModelErrorsJson : JsonResult { public ModelErro...
mit
C#
db296e96350f831722816705cc19180a6cb63e3c
Update build.cake
xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents
XPlat/ExposureNotification/build.cake
XPlat/ExposureNotification/build.cake
var TARGET = Argument("t", Argument("target", "ci")); var SRC_COMMIT = "fb7d888ebce17ab7d579a7c51c3e9ff30688502d"; var SRC_URL = $"https://github.com/xamarin/xamarin.exposurenotification/archive/{SRC_COMMIT}.zip"; var OUTPUT_PATH = (DirectoryPath)"./output/"; var NUGET_VERSION = "0.4.0-preview"; Task("externals") ....
var TARGET = Argument("t", Argument("target", "ci")); var SRC_COMMIT = "bebffab3addf13485b07af95c2fb579a93e6fa70"; var SRC_URL = $"https://github.com/xamarin/xamarin.exposurenotification/archive/{SRC_COMMIT}.zip"; var OUTPUT_PATH = (DirectoryPath)"./output/"; var NUGET_VERSION = "0.3.0-preview"; Task("externals") ....
mit
C#
1164a1048330211410a9f050176bf868c56a023d
Add test coverage
ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu-new,smoogipoo/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,smoogipooo/osu,ppy/osu,smoogipoo/osu,peppy/osu,peppy/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu
osu.Game.Tests/Gameplay/TestSceneGameplayClockContainer.cs
osu.Game.Tests/Gameplay/TestSceneGameplayClockContainer.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 NUnit.Framework; using osu.Game.Rulesets.Mods; using osu.Game.Rulesets.Osu; using osu.Game.Screens.Play; using osu.Game.Tests.Visual; namespace osu.G...
mit
C#
3b45360e35110c3084f5ec37ef0a959cd017e838
Change the check range for BaseAddress and EntryPointAddress
rjxby/corefx,yizhang82/corefx,alphonsekurian/corefx,parjong/corefx,shimingsg/corefx,MaggieTsang/corefx,krk/corefx,elijah6/corefx,Jiayili1/corefx,billwert/corefx,Jiayili1/corefx,zhenlan/corefx,ravimeda/corefx,axelheer/corefx,cydhaselton/corefx,gkhanna79/corefx,lggomez/corefx,shimingsg/corefx,billwert/corefx,shmao/corefx...
src/System.Diagnostics.Process/tests/ProcessModuleTests.cs
src/System.Diagnostics.Process/tests/ProcessModuleTests.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.Linq; using Xunit; namespace System.Diagnostics.Tests { public class ProcessModuleTests : ProcessT...
// 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.Linq; using Xunit; namespace System.Diagnostics.Tests { public class ProcessModuleTests : ProcessT...
mit
C#
718a130b3f558bb0272b1c4b635ded5ab699d212
Fix # in FilePath (dotnet/aspnetcore-tooling#1553)
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
src/Razor/test/testassets/MvcWithComponents/Views/Home/#FileName.cshtml
src/Razor/test/testassets/MvcWithComponents/Views/Home/#FileName.cshtml
@page "/filename"
apache-2.0
C#
504481a11bdcf1962cf539dd9eae246f7b308c5f
Implement YoloMigrationRunner
rapidcore/rapidcore,rapidcore/rapidcore
src/postgresql/main/YoloMigrationRunner.cs
src/postgresql/main/YoloMigrationRunner.cs
using System; using System.Collections.Generic; using System.Reflection; using System.Text; using Microsoft.Extensions.Logging; using Npgsql; using RapidCore.DependencyInjection; using RapidCore.Locking; using RapidCore.Migration; namespace Rapidcore.Postgresql { /// <summary> /// Simplified <see cref="Migrat...
mit
C#
19bc313854389c3738cd25ff428bf6af4db117e2
Fix startup error - setup root view controller
xamarin/monotouch-samples,albertoms/monotouch-samples,xamarin/monotouch-samples,kingyond/monotouch-samples,kingyond/monotouch-samples,markradacz/monotouch-samples,albertoms/monotouch-samples,kingyond/monotouch-samples,markradacz/monotouch-samples,W3SS/monotouch-samples,iFreedive/monotouch-samples,albertoms/monotouch-sa...
OpenGLESSample-GameView/AppDelegate.cs
OpenGLESSample-GameView/AppDelegate.cs
using UIKit; using Foundation; namespace OpenGLESSampleGameView { // The name AppDelegate is referenced in the MainWindow.xib file. public partial class OpenGLESSampleAppDelegate : UIApplicationDelegate { // This method is invoked when the application has loaded its UI and its ready to run public override bool...
using UIKit; using Foundation; namespace OpenGLESSampleGameView { // The name AppDelegate is referenced in the MainWindow.xib file. public partial class OpenGLESSampleAppDelegate : UIApplicationDelegate { // This method is invoked when the application has loaded its UI and its ready to run public override bool...
mit
C#
e0ea232e8fa8875bfd91daab45354eee1ab13baf
Fix whitespace
beratcarsi/aspnetboilerplate,ilyhacker/aspnetboilerplate,andmattia/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate,carldai0106/aspnetboilerplate,ryancyq/aspnetboilerplate,carldai0106/aspnetboilerplate,carldai0106/aspnetboilerplate,ryancyq/aspnetboilerplate,verde...
src/Abp.AspNetCore.SignalR/Properties/AssemblyInfo.cs
src/Abp.AspNetCore.SignalR/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("Abp.AspNetCore.SignalR")] [assembly: Assem...
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("Abp.AspNetCore.SignalR")] [assembly: Asse...
mit
C#
36996c5ab543634ecf28e0befcab0af30d570b38
Add unit tests for the P2pkhIssuanceImplicitLayout class
openchain/openchain
test/Openchain.Ledger.Tests/P2pkhIssuanceImplicitLayoutTests.cs
test/Openchain.Ledger.Tests/P2pkhIssuanceImplicitLayoutTests.cs
// Copyright 2015 Coinprism, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
apache-2.0
C#
9d7d7152bb5878785ed33e2a5fd9e6d61821af4e
Enable scanning at the assembly level for components for the dotnet CLI
seancpeters/templating,seancpeters/templating,seancpeters/templating,mlorbetske/templating,seancpeters/templating,mlorbetske/templating
src/Microsoft.TemplateEngine.Edge/AssemblyComponentCatalog.cs
src/Microsoft.TemplateEngine.Edge/AssemblyComponentCatalog.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using Microsoft.TemplateEngine.Abstractions; namespace Microsoft.TemplateEngine.Edge { public class AssemblyComponentCatalog : IReadOnlyList<KeyValuePair<Guid, Func<Type>>> { private r...
mit
C#
f38db685cfe112b32a7c40d2b3ead9abaa856673
Create addingints.cs
HeyIamJames/Learning-C-,HeyIamJames/Learning-C-
addingints.cs
addingints.cs
//adds two ints using System; using System.Collections.Generic; using System.Text; namespace NP { class AddTwoNumbers { static bool ReadInteger(out int n) { string input = System.Console.ReadLine(); n = 0; try { n = Convert.ToInt32(input); ...
mit
C#
e6bb0f9df2966f0d284e7e7af5e1e1fdbc4790d4
Add object validation tests.
cruz82/modfx,cruz82/DotNetContainer,cruz82/modfx
test/DNC.Validation.Tests/Validators/ObjectValidatorTests.cs
test/DNC.Validation.Tests/Validators/ObjectValidatorTests.cs
using System; using DNC.Validation.Tests.Resources; using DNC.Validation.Validators; using Xunit; namespace DNC.Validation.Tests.Validators { public class ObjectValidatorTests { [Fact] public void IsNotNull_WhenNull_ThrowsArgumentException() { TestModel model = null; ...
mit
C#
27906d0fc671dddc28a24f6a2bf8401b13b6b7b9
comment enabled
tpettrov/softUniTeamWork,tpettrov/softUniTeamWork,tpettrov/softUniTeamWork
BlogSystem/BlogSystem/Views/Shared/DisplayTemplates/Comment.cshtml
BlogSystem/BlogSystem/Views/Shared/DisplayTemplates/Comment.cshtml
@model BlogSystem.Models.Comment <dt> @Model.Author.FullName (@Model.Date) </dt> <dd> @Model.Body </dd>
bsd-3-clause
C#
2f3654c608f803bf888d709e6b206c41401f1cb0
Create HullMovingAverage.cs
QuantConnect/Lean,Jay-Jay-D/LeanSTP,AnshulYADAV007/Lean,QuantConnect/Lean,AnshulYADAV007/Lean,andrewhart098/Lean,AnshulYADAV007/Lean,QuantConnect/Lean,Jay-Jay-D/LeanSTP,StefanoRaggi/Lean,andrewhart098/Lean,jameschch/Lean,redmeros/Lean,tomhunter-gh/Lean,JKarathiya/Lean,andrewhart098/Lean,Jay-Jay-D/LeanSTP,Mendelone/fore...
Indicators/HullMovingAverage.cs
Indicators/HullMovingAverage.cs
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * 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 o...
apache-2.0
C#
03adb3e040534971c0e14e27859e1cfdae2d4c19
Add of model Article
moonshine95/moonshine,moonshine95/moonshine
Moonshine.MVC/Models/Article.cs
Moonshine.MVC/Models/Article.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Moonshine.MVC.Models { public class Article { public int Id { get; set; } public string Category { get; set; } public string Title { get; set; } public string Content { get; set; } ...
mit
C#
159494fe518c6d32bfdffbad3962a3fbffa80a0e
Create CrowdSSORequest.cs
ryanmcdonough/CrowdSSO
CrowdSSORequest.cs
CrowdSSORequest.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; public class CrowdSSORequest { public CrowdSSOAPICall apiCall { get; set; } public string method { get; set; } public string username { get; set; } public string password { get; set; } p...
mit
C#
31c16fa30b3f416a4993bce5028537ef294841f3
Add WorkspaceTagsView.
masterrr/mobile,ZhangLeiCharles/mobile,eatskolnikov/mobile,eatskolnikov/mobile,peeedge/mobile,eatskolnikov/mobile,peeedge/mobile,ZhangLeiCharles/mobile,masterrr/mobile
Phoebe/Data/Views/WorkspaceTagsView.cs
Phoebe/Data/Views/WorkspaceTagsView.cs
using System; using System.Collections.Generic; using Toggl.Phoebe.Data.Models; using XPlatUtils; namespace Toggl.Phoebe.Data.Views { public class WorkspaceTagsView : ModelsView<TagModel> { private readonly List<TagModel> models = new List<TagModel> (); #pragma warning disable 0414 pri...
bsd-3-clause
C#
5a0e52cee745875e26e922790790a538c59acde3
Add tests for the ConsoleWriter
AlexGhiondea/OutputColorizer,AlexGhiondea/OutputColorizer
test/ConsoleWriter.Tests.cs
test/ConsoleWriter.Tests.cs
using System; using Xunit; using OutputColorizer; using System.IO; namespace UnitTests { public partial class ConsoleWriterTests { [Fact] public void TestGetForegroundColor() { ConsoleWriter cw = new ConsoleWriter(); Assert.Equal(Console.ForegroundColor, cw.Fore...
mit
C#
729eea08837795aa5a2abc4996ffa1a85baf2d28
Create winlogonSignature.cs
lzire/powershell-csharp-winlogon
winlogonSignature.cs
winlogonSignature.cs
using System; using System.Text; using System.Runtime.InteropServices; namespace WIN32_Wrapper { public static class WindowsLogon { private const UInt32 FORMAT_MESSAGE_FROM_SYSTEM = 0x00001000; private const Int32 FORNAT_MESSAGE_BUFFER_SIZE = 512; /// <summary> /// https://msdn...
mit
C#
14c3ed04a0f087e50504a38cf1784db383156ccd
Create StartCoroutine.cs
carcarc/unity3d
StartCoroutine.cs
StartCoroutine.cs
void Start () { Debug.Log("start1"); StartCoroutine(Test()); Debug.Log("start2"); } IEnumerator Test() { Debug.Log("test1"); yield return null; Debug.Log("test2"); } //Result start1 test1 start2 test2
mit
C#
deb1c4649a14d7ca0ab34172998e094f9e215d36
Test for duplicate type name for generic graph type - issue #2279 (#2309)
joemcbride/graphql-dotnet,graphql-dotnet/graphql-dotnet,graphql-dotnet/graphql-dotnet,graphql-dotnet/graphql-dotnet,joemcbride/graphql-dotnet
src/GraphQL.Tests/Bugs/Bug2279.cs
src/GraphQL.Tests/Bugs/Bug2279.cs
using System; using GraphQL.Types; using Shouldly; using Xunit; namespace GraphQL.Tests.Bugs { // https://github.com/graphql-dotnet/graphql-dotnet/issues/2279 public class Bug2279DuplicateType : QueryTestBase<Bug2279Schema> { [Fact] public void NoDuplicateTypeNames() { v...
mit
C#
e0beb9a401a7a964573e82e198035aad68cbc5a8
Add test that validates all reflected methods are non-null.
drewnoakes/dasher
Dasher.Tests/MethodsTests.cs
Dasher.Tests/MethodsTests.cs
#region License // // Dasher // // Copyright 2015-2016 Drew Noakes // // 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#
bbbc0a863ff9b5f33b6720423569f58b0a6fc85d
Add test coverage of `WorkingBeatmap` retrieval from `BeatmapManager`
ppy/osu,ppy/osu,peppy/osu,peppy/osu,peppy/osu,ppy/osu
osu.Game.Tests/Beatmaps/WorkingBeatmapManagerTest.cs
osu.Game.Tests/Beatmaps/WorkingBeatmapManagerTest.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.Linq; using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Audio; using osu.Framework.Extensions; using osu.Framework.Platform; using o...
mit
C#
552d00f2db551ede8d075391c75841d39da5e15c
Add TextBox control
hishamco/WebForms,hishamco/WebForms
src/My.AspNetCore.WebForms/Controls/TextBox.cs
src/My.AspNetCore.WebForms/Controls/TextBox.cs
namespace My.AspNetCore.WebForms.Controls { public class TextBox : Control { public string Text { get; set; } public override void Render() { InnerHtml = $"<input name=\"{Id}\" type=\"text\" value=\"{Text}\" />"; } } }
mit
C#
3f8c824949f24f36f8b69b1fff99b077d1e6fa1d
Add ListTemplate2
stoiveyp/alexa-skills-dotnet,timheuer/alexa-skills-dotnet
Alexa.NET/Response/Directive/Templates/Types/ListTemplate2.cs
Alexa.NET/Response/Directive/Templates/Types/ListTemplate2.cs
using System; using System.Collections.Generic; using System.Text; using Newtonsoft.Json; namespace Alexa.NET.Response.Directive.Templates.Types { public class ListTemplate2:IListTemplate { public string Type => "ListTemplate2"; public string Token { get; set; } [JsonProperty("backBut...
mit
C#
db9d99ecc6bda5248595233ee808cad2d520b1c4
Test to verify algorithm
SeanKilleen/FCApp
src/test/FCApp.Core.Tests/SuppliedHashFunctionTests.cs
src/test/FCApp.Core.Tests/SuppliedHashFunctionTests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FCApp.Core.Tests { using FluentAssertions; using Xunit; public class SuppliedHashFunctionTests { [Fact] public void TheyDidntLie_ItReturnsTheExpectedResult() ...
mit
C#
383bfdf670b5f011b16a28e0f51eccdd6632db5f
Add work-in-progress ObjectOverrides pass that adds GetHashCode and Equals overrides.
zillemarco/CppSharp,imazen/CppSharp,SonyaSa/CppSharp,SonyaSa/CppSharp,ktopouzi/CppSharp,mono/CppSharp,ddobrev/CppSharp,u255436/CppSharp,xistoso/CppSharp,mono/CppSharp,mydogisbox/CppSharp,mono/CppSharp,inordertotest/CppSharp,imazen/CppSharp,Samana/CppSharp,KonajuGames/CppSharp,imazen/CppSharp,nalkaro/CppSharp,genuineluc...
src/Generator/Passes/ObjectOverridesPass.cs
src/Generator/Passes/ObjectOverridesPass.cs
using System; using System.Collections.Generic; using CppSharp.AST; using CppSharp.Generators; using CppSharp.Generators.CLI; using CppSharp.Passes; namespace CppSharp { public class ObjectOverridesPass : TranslationUnitPass { void OnUnitGenerated(GeneratorOutput output) { foreach ...
mit
C#
9952c247d346b59217d9d9c84b0f9c4ee6423191
Create DanTsekhanskiy.cs
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/DanTsekhanskiy.cs
src/Firehose.Web/Authors/DanTsekhanskiy.cs
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class DanTsekhanskiy : IAmACommunityMember { public string FirstName => "Dan"; public string Las...
mit
C#
835e349e8d92c336f39e8b135a5677e3037af9fe
Use PropertyInfo control in mobile apps
ronnymgm/csla-light,rockfordlhotka/csla,JasonBock/csla,MarimerLLC/csla,rockfordlhotka/csla,MarimerLLC/csla,jonnybee/csla,jonnybee/csla,MarimerLLC/csla,ronnymgm/csla-light,JasonBock/csla,ronnymgm/csla-light,rockfordlhotka/csla,jonnybee/csla,JasonBock/csla
Samples/ProjectTracker/ProjectTracker.Ui.Xamarin/ProjectTracker.Ui.Xamarin/Xaml/BoolColorConverter.cs
Samples/ProjectTracker/ProjectTracker.Ui.Xamarin/ProjectTracker.Ui.Xamarin/Xaml/BoolColorConverter.cs
using System; using System.Collections.Generic; using System.Globalization; using System.Text; using Xamarin.Forms; namespace ProjectTracker.Ui.Xamarin.Xaml { public class BoolColorConverter : IValueConverter { public Color TrueColor { get; set; } public Color FalseColor { get; set; } public bool Inve...
mit
C#
191c03a2546280fb51a49cf587e84a54268e9415
Add a missing file.
MrMYHuang/taq
TaqBackTask/BackTaskUpdateTiles.cs
TaqBackTask/BackTaskUpdateTiles.cs
using System; using Taq; using Windows.ApplicationModel.Background; using Windows.UI.Xaml.Media.Imaging; namespace TaqBackTask { public sealed class BackTaskUpdateTiles : XamlRenderingBackgroundTask { private static TaqModel m = new TaqModel(); protected async override void OnRun(IBackgroundT...
mit
C#
d9088d384067a3985bf6afcc9932b96e04d9ec9d
Create Mutex_OpenExisting.cs
alchemz/ARL_Training
CSharpDotNet_Programming/Thread/Mutex_OpenExisting.cs
CSharpDotNet_Programming/Thread/Mutex_OpenExisting.cs
/* This simple example uses the Mutex.OpenExisting method. If the OpenExisting method throws an exception, the specified named Mutex does not exist or is inaccessible. The IsSingleInstance method uses this behavior. If the Mutex does not exist, it creates a new one. Further instances of the program then can tell that ...
mit
C#
e7c93640633f7b2f832599bad7560cb4ae44a5f4
Create Problem15.cs
neilopet/projecteuler_cs
Problem15.cs
Problem15.cs
/* * http://projecteuler.net/problem=15 */ using System; using System.Numerics; public class Problem15 { public static void Main() { /* Formula: (2R!) / (R! ^ 2) */ BigInteger n = recfact( 1, 40 ); BigInteger r = recfact( 1, 20 ); Console.WriteLine( n / (r * r) ); } /* Credit: http://www.luschny.de/mat...
mit
C#
e920b8d5774beb09455e462ac09347e768e81a7e
Add UpdateableBeatmapSetCover.
smoogipoo/osu,ppy/osu,2yangk23/osu,2yangk23/osu,johnneijzen/osu,naoey/osu,peppy/osu-new,NeoAdonis/osu,UselessToucan/osu,EVAST9919/osu,peppy/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,DrabWeb/osu,ZLima12/osu,DrabWeb/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,ppy/osu,DrabWeb/osu,naoey/osu,smoogipoo/osu,smoo...
osu.Game/Beatmaps/Drawables/UpdateableBeatmapSetCover.cs
osu.Game/Beatmaps/Drawables/UpdateableBeatmapSetCover.cs
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; using OpenTK.Graphics; namespace osu.Game.Beatmaps.Drawable...
mit
C#
dd31ef9d96c4120eb6726ff66df793b2aace9c5e
Add RestrictionCode enum
c0shea/IdParser
IdParser/RestrictionCode.cs
IdParser/RestrictionCode.cs
using System; using System.Collections.Generic; using System.Text; using IdParser.Attributes; namespace IdParser { [Flags] public enum RestrictionCode { None = 0, [Abbreviation("B")] [Description("Corrective lenses must be worn")] CorrectiveLensesMustBeWorn = 1, [...
mit
C#
a692e9d759a7bef23c3618e9fda791b22ed4d782
add JSON serialzation
okolobaxa/SaratovReformagkhDatasetPrepare
SaratovReformagkhDatasetPrepare/Item.cs
SaratovReformagkhDatasetPrepare/Item.cs
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace SaratovReformagkhDatasetPrepare { [DataContract] class Item { [DataMember] public string Address { get; set; } [DataMemb...
mit
C#
aa7032c6c262f60cb29deeeb6c7ec5072ce7e34c
add server info string
0xFireball/KQAnalytics3,0xFireball/KQAnalytics3,0xFireball/KQAnalytics3
KQAnalytics3/src/KQAnalytics3/Metadata/KQAnalyticsServerInfo.cs
KQAnalytics3/src/KQAnalytics3/Metadata/KQAnalyticsServerInfo.cs
namespace KQAnalytics3.Metadata { public static class KQAnalyticsServerInfo { public static string KQAnalyticsProductName => "KQAnalytics3 Community Edition"; } }
agpl-3.0
C#
0aef03e2d1ed58c75e35a3e20e4fff28b7d63517
Enable logging of API calls (#135)
GoogleCloudPlatform/iap-desktop,GoogleCloudPlatform/iap-desktop
Google.Solutions.Common/Diagnostics/TraceSourceLogger.cs
Google.Solutions.Common/Diagnostics/TraceSourceLogger.cs
// // Copyright 2019 Google LLC // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Ver...
apache-2.0
C#
0c5c70c13672d778563b705bd429f0f146298621
Add DrawImageComponent.
Thraka/SadConsole
src/SadConsole/Components/DrawImageComponent.cs
src/SadConsole/Components/DrawImageComponent.cs
using System; using System.Collections.Generic; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace SadConsole.Components { /// <summary> /// Draws an image on top of a console. /// </summary> public class DrawImageComponent : SadConsole.Components.DrawC...
mit
C#
c64ccb930222d4c73ed4d4575e84f39344f572e2
Add initial commit for ProgramGenerator
victoria92/university-program-generator,victoria92/university-program-generator
UniProgramGen/Generator/ProgramGenerator.cs
UniProgramGen/Generator/ProgramGenerator.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UniProgramGen.Data; namespace UniProgramGen.Generator { public class ProgramGenerator { public void GenerateProgram(List<Room> rooms, List<Subject> subjects, List<Teacher> teachers, List<Group> groups) ...
bsd-2-clause
C#
b629ebc08452beca1c1aa07912b2c1ade122cee3
Create EvaluateCode.cs
maniero/SOpt,maniero/SOpt,bigown/SOpt,maniero/SOpt,bigown/SOpt,maniero/SOpt,bigown/SOpt,maniero/SOpt,bigown/SOpt,maniero/SOpt,bigown/SOpt,maniero/SOpt,maniero/SOpt,bigown/SOpt,maniero/SOpt,maniero/SOpt,bigown/SOpt,bigown/SOpt,maniero/SOpt,maniero/SOpt,maniero/SOpt,maniero/SOpt,maniero/SOpt,bigown/SOpt,bigown/SOpt,manie...
CSharp/Compiling/EvaluateCode.cs
CSharp/Compiling/EvaluateCode.cs
int result = await CSharpScript.EvaluateAsync<int>("1 + 2"); //https://pt.stackoverflow.com/q/109211/101
mit
C#
539502670cda4016f9e92918f5b5992e3f2f6c19
add test for BinarySecretSecurityToken
mconnew/wcf,dotnet/wcf,StephenBonikowsky/wcf,mconnew/wcf,dotnet/wcf,imcarolwang/wcf,StephenBonikowsky/wcf,imcarolwang/wcf,mconnew/wcf,dotnet/wcf,imcarolwang/wcf
src/System.ServiceModel.Security/tests/ServiceModel/BinarySecretSecurityTokenTest.cs
src/System.ServiceModel.Security/tests/ServiceModel/BinarySecretSecurityTokenTest.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; using System.IdentityModel.Tokens; using System.ServiceModel.Security.Tokens; using Infrastructure.C...
mit
C#
6b20117e6e2bbca4c780f54164ba144745c9638d
add missing files
komefai/PS4Macro
PS4Macro/Controls/AxisDisplay.cs
PS4Macro/Controls/AxisDisplay.cs
// PS4Macro(File: Controls/AxisDisplay.cs) // // Copyright (c) 2018 Komefai // // Visit http://komefai.com for more information // // 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 ...
mit
C#
e68c5282f6238aaf65ee849088bf68599be4df07
Add a model for transitions
jagrem/slang,jagrem/slang,jagrem/slang
slang/Lexing/Trees/Nodes/Transition.cs
slang/Lexing/Trees/Nodes/Transition.cs
using System; using slang.Lexing.Tokens; namespace slang.Lexing.Trees.Nodes { public class Transition { public Transition (Node target, Func<Token> tokenProducer = null) { Target = target; TokenProducer = tokenProducer; } public Token GetToken() ...
mit
C#
cb670f04e5701b5623ce43d120cc160bfbd2ca40
add lost file
IvanZheng/IFramework,IvanZheng/IFramework,IvanZheng/IFramework
Src/iFramework/Message/Impl/MessageHandledNotification.cs
Src/iFramework/Message/Impl/MessageHandledNotification.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace IFramework.Message.Impl { public class MessageHandledNotification : IMessageHandledNotification { public string MessageID { get; set; } public MessageHandledNotification(string messageID) {...
mit
C#
9d11cd0c0f0672803053009de6e083a1289e4077
Create AssemblyInfo.cs
Armdroid/Armdroid-Tools-Windows
ArmdroidTools/ArmTest/Properties/AssemblyInfo.cs
ArmdroidTools/ArmTest/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("Win...
mit
C#
588a0aa66394dae94dd859cd681970c0f569da5e
Add test
tinohager/Nager.Date,tinohager/Nager.Date,tinohager/Nager.Date
Src/Nager.Date.UnitTest/Country/SingaporeTest.cs
Src/Nager.Date.UnitTest/Country/SingaporeTest.cs
using Microsoft.VisualStudio.TestTools.UnitTesting; using Nager.Date.Extensions; using System; using System.Linq; namespace Nager.Date.UnitTest.Country { [TestClass] public class SingaporeTest { [TestMethod] public void TestSingapore() { var publicHolidays = DateSystem.G...
mit
C#
cd47396fcaddb04837dcd91a8b03d806f6efdea1
implement string format example
ewilde/dotnet-playground
programming/csharp-language-features/Strings/StringFormatting.cs
programming/csharp-language-features/Strings/StringFormatting.cs
using System; using NUnit.Framework; namespace Edward.Wilde.CSharp.Features.Strings { [TestFixture] public class StringFormatting { [Test] public void Numbers() { Console.WriteLine(string.Format("{0:n}", 6123 / 2.0)); // no decimals Console.WriteLine(st...
unlicense
C#
30578185cf77123c889795920feb50dd3d99f218
fix some compile errors
unity3d-jp/AlembicImporter,unity3d-jp/AlembicImporter,unity3d-jp/AlembicImporter
AlembicImporter/UnityPackageManager/com.unity.alembic/Runtime/Scripts/ModuleImporter.cs
AlembicImporter/UnityPackageManager/com.unity.alembic/Runtime/Scripts/ModuleImporter.cs
using System; using System.Runtime.InteropServices; namespace UTJ.Alembic { /// <summary> /// Package Manager for Unity 2017.3 doesn't support native plugins, so we /// have to load the module on our own. /// /// The usual idiom is: /// [DllImport("abci")] public static float aiGetStartTime...
mit
C#
9315a5a47260eada793d0f523305c2825a20c09d
Simplify code.
amcasey/roslyn,jamesqo/roslyn,TyOverby/roslyn,brettfo/roslyn,orthoxerox/roslyn,VSadov/roslyn,DustinCampbell/roslyn,tannergooding/roslyn,lorcanmooney/roslyn,genlu/roslyn,agocke/roslyn,mattscheffer/roslyn,AnthonyDGreen/roslyn,tannergooding/roslyn,Shiney/roslyn,jhendrixMSFT/roslyn,dotnet/roslyn,xoofx/roslyn,ljw1004/roslyn...
src/EditorFeatures/Core/Implementation/Adornments/GraphicsTag.cs
src/EditorFeatures/Core/Implementation/Adornments/GraphicsTag.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.Windows.Media; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.Text.Tagging; namespace Microsoft.CodeAnalysis.Editor.Impl...
// 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.Windows.Media; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.Text.Tagging; namespace Microsoft.CodeAnalysis.Editor.Impl...
mit
C#
a2b26db0c2ca3895a270b23846cc93b0d140442e
Add PostgreSQLMetadataTable
lecaillon/Evolve
src/Evolve/Dialect/PostgreSQL/PostgreSQLMetadataTable.cs
src/Evolve/Dialect/PostgreSQL/PostgreSQLMetadataTable.cs
using System.Collections.Generic; using System.Linq; using Evolve.Connection; using Evolve.Metadata; using Evolve.Migration; namespace Evolve.Dialect.PostgreSQL { public class PostgreSQLMetadataTable : MetadataTable { public PostgreSQLMetadataTable(string schema, string tableName, WrappedConnection wr...
mit
C#
a8c7463234412476152c1d52c8c14a750ec82447
Add benchmark coverage
ZLima12/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework
osu.Framework.Benchmarks/BenchmarkLocalisedBindableString.cs
osu.Framework.Benchmarks/BenchmarkLocalisedBindableString.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 BenchmarkDotNet.Attributes; using osu.Framework.Configuration; using osu.Framework.Localisation; using osu.Framework.Tests; namespace osu.Framework.B...
mit
C#
7702d43a0035f928dffb12e08c9bf4f5fb1da0bb
Create CheckPrime.cs
shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms
CheckPrime.cs
CheckPrime.cs
/* Program to check if a number is prime or not .NET framework 4.5 and above Space Complexity: O(√n) where n is the input number Time Complexity: O(n) */ using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Solution { public class Program { ...
mit
C#
47e1177c70cea48785efe798e9aae58147166933
rename action
OpenCoverUI/OpenCover.UI,MelleKoning/OpenCover.UI
OpenCover.UI.TestDiscoverer.TestResources/xUnit/RegularTestFixture.cs
OpenCover.UI.TestDiscoverer.TestResources/xUnit/RegularTestFixture.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace OpenCover.UI.TestDiscoverer.TestResources.xUnit { public class RegularxUnitTestClass { [Fact] public void RegularTestMethod() { } ...
mit
C#
82ea62c0cd11e4862ea896ab9a9d7409dd39bd99
Create ShaneONeill.cs
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/ShaneONeill.cs
src/Firehose.Web/Authors/ShaneONeill.cs
public class ShaneONeill : IAmACommunityMember, IFilterMyBlogPosts { public string FirstName => "Shane"; public string LastName => "O'Neill"; public string ShortBioOrTagLine => "DBA. Food, Coffee, Whiskey (not necessarily in that order)... "; public string StateOrRegion => "Irela...
mit
C#
868296e6d6e7255f4d37063fe453daec6c8ca14f
Create Problem148.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problem148.cs
Problem148.cs
using System; using System.Collections.Generic; using System.IO; using System.Numerics; namespace ProjectEuler.Problems { class Problem148 { public static void Run() { DateTime start = DateTime.Now; List<BigInteger> low = new List<BigInteger>(); low.Add(1);...
mit
C#
4e18aa6c12d69cfcf4163e7f445eae8fe0a77cc1
move Properties/*/AssemblyInfo.cs to the individual assembly directories
kangaroo/scsharp,kangaroo/scsharp,kangaroo/scsharp
SCSharp/SCSharp.Mpq.Smk/AssemblyInfo.cs
SCSharp/SCSharp.Mpq.Smk/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("SCS...
mit
C#
90c370f0213a176676a1347b20e51f4190e81e08
Refactor exporter - step 4 (#1085)
open-telemetry/opentelemetry-dotnet,open-telemetry/opentelemetry-dotnet,open-telemetry/opentelemetry-dotnet
src/OpenTelemetry/Internal/CircularBuffer.cs
src/OpenTelemetry/Internal/CircularBuffer.cs
// <copyright file="CircularBuffer.cs" company="OpenTelemetry Authors"> // Copyright The OpenTelemetry Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache...
apache-2.0
C#
f810127477acacd2b91af5a691753ef05e758288
Move to separate file
DMagic1/KSP_Vessel_Manager
Source/NoteClasses/CheckListHandler/NotesCheckListType.cs
Source/NoteClasses/CheckListHandler/NotesCheckListType.cs
using System; namespace BetterNotes.NoteClasses.CheckListHandler { public enum NotesCheckListType { custom = 1, launch = 2, orbit = 3, land = 4, returnHome = 5, rendezvousVessel = 6, dockVessel = 7, rendezvousAsteroid = 8, dockAsteroid = 9, blastOff = 10, } }
mit
C#
b849c4abc5de0ca65ea2503af5c85b63f853322f
Create Kafkaesque.cs
SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming
Kattis-Solutions/Kafkaesque.cs
Kattis-Solutions/Kafkaesque.cs
using System; namespace Kafkaesque { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int passCount = 1; int last = 0, t; for(int i = 0; i < n; i++) { t = int.Parse(Console.ReadLi...
mit
C#
a090cf89ab2212cbc34e6a36b4dca61d06abe8b4
Create StringToInt.cs
shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/hackerrank,shreeharshas/hackerrank
interim/StringToInt.cs
interim/StringToInt.cs
public class StringToInt { public int MyAtoi(string str) { //"12345" int min = 0, result = 0; bool negFlag = false; if(String.IsNullOrEmpty(str)) return 0; str = str.Trim(); if(str[0] == '-'){ negFlag = true; min ...
mit
C#
a7cf05421427df51d7052bb4386985e16fe6c157
Add mouse click tests
ppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,peppy/osu-framework
osu.Framework.Tests/Input/MouseInputTest.cs
osu.Framework.Tests/Input/MouseInputTest.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.Graphics.Shapes; using osu.Framework.Input.Events; using osu.Framework.Testing; using osuTK; usin...
mit
C#
d1ce246c038ce3135110a8b11c43857a980fe891
add ClientCommand class in other file
ivayloivanof/C-Sharp-Chat-Programm
Client/ChatClient/ChatClient/ClientCommand.cs
Client/ChatClient/ChatClient/ClientCommand.cs
namespace ChatClient { using System; using System.Collections.Generic; using System.Linq; public class ClientCommand { private ClientCommandList commandList; public List<string> Args; public ClientCommand(string commandString) { this.FetchCommand(comman...
unlicense
C#
a72df7b31eac2d53e18c26c6839555eeeb8ee361
Add test
ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab
Test/TestsDatabase/PaymentEventTests.cs
Test/TestsDatabase/PaymentEventTests.cs
using System; using System.Collections.Generic; using System.Text; using Anlab.Core.Domain; using Test.Helpers; using Xunit; namespace Test.TestsDatabase { [Trait("Category", "DatabaseTests")] public class PaymentEventTests { #region Reflection of Database. /// <summary> ...
mit
C#
67e4e071a4962d0eda9156fd45c45e3e494b5103
Add a failing unit test for InMemoryExporter (#2387)
open-telemetry/opentelemetry-dotnet,open-telemetry/opentelemetry-dotnet,open-telemetry/opentelemetry-dotnet
test/OpenTelemetry.Tests/Metrics/InMemoryExporterTests.cs
test/OpenTelemetry.Tests/Metrics/InMemoryExporterTests.cs
// <copyright file="InMemoryExporterTests.cs" company="OpenTelemetry Authors"> // Copyright The OpenTelemetry Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www....
apache-2.0
C#
001a2d60d24e5d6dbfecae543bc2121b3462f7c8
Add C# solution for the HackerRank Sorting Algorithms problem 'Fradulent Activity Notifications'.
shivkrthakur/HackerRankSolutions,shivkrthakur/HackerRankSolutions,shivkrthakur/HackerRankSolutions,shivkrthakur/HackerRankSolutions
Practice/AllDomains/CoreCS/Algorithms/Sorting/FradulentActivityNotifications.cs
Practice/AllDomains/CoreCS/Algorithms/Sorting/FradulentActivityNotifications.cs
using System; using System.Collections.Generic; using System.IO; class Solution { /* author:@shivkrthakur */ static void Main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */ int [] ND = Array.ConvertAll(Console.R...
mit
C#
4ed3625f6fc859e9aec84532a21873dd69085a48
add FastHoughTransform test
shimat/opencvsharp,shimat/opencvsharp,shimat/opencvsharp
test/OpenCvSharp.Tests/ximgproc/FastHoughTransformTest.cs
test/OpenCvSharp.Tests/ximgproc/FastHoughTransformTest.cs
using System; using System.Collections.Generic; using NUnit.Framework; using OpenCvSharp.XImgProc; namespace OpenCvSharp.Tests.XImgProc { [TestFixture] public class FastHoughTransformTest : TestBase { /// <remarks> /// https://github.com/opencv/opencv_contrib/blob/master/modules/ximgproc/s...
apache-2.0
C#
69e6b3586d0b15c75adc315019e23476b88ff4fa
add Xaml compilation
ytabuchi/ITStudySearch
ITStudySearch/ITStudySearch/ITStudySearch/Properties/AssemblyInfo.cs
ITStudySearch/ITStudySearch/ITStudySearch/Properties/AssemblyInfo.cs
using Xamarin.Forms.Xaml; [assembly: XamlCompilation(XamlCompilationOptions.Compile)]
mit
C#
93660304b2de75ce2348422647b299eb1c95191e
Create Matrix.cs
Alfo5123/Recursive-Least-Square-Filter
Matrix.cs
Matrix.cs
using System; namespace RLS { class Matrix { public int rows ; public int cols ; public double[,] matrix ; public Matrix ( int iRows , int iCols , int ind , double iDelta ) { rows = iRows; cols = iCols; matrix = new double[ rows, cols ]; if (ind == 0) { for (int i = 0; i < iRows...
mit
C#
60021d3212dce30362bb226848545caf76464b6e
Define 'System.IO.FileMode'
jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm
stdlib/system-io/FileMode.cs
stdlib/system-io/FileMode.cs
namespace System.IO { /// <summary> /// Specifies how a file should be opened. /// </summary> public enum FileMode { /// <summary> /// Opens the file if it exists and seeks to the end of the file, or creates a new file. /// Can be used only if a file is opened in write-only m...
mit
C#
e1c96e93cbd5d62ee868356e9b214d22775c7264
Add DiagnosticBag.
Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver
src/AsmResolver/DiagnosticBag.cs
src/AsmResolver/DiagnosticBag.cs
using System; using System.Collections.Generic; namespace AsmResolver { /// <summary> /// Provides a container for collecting exceptions during a process. /// </summary> public class DiagnosticBag { /// <summary> /// Gets a collection of all the exceptions that were thrown during th...
mit
C#
5b3eb2d6f443ea90322787f28033e77335648cbe
Add helper class to handle firing async multiplayer methods
NeoAdonis/osu,NeoAdonis/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu
osu.Game/Online/Multiplayer/MultiplayerClientExtensions.cs
osu.Game/Online/Multiplayer/MultiplayerClientExtensions.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; using System.Diagnostics; using System.Threading.Tasks; using Microsoft.AspNetCore.SignalR; using osu.Framework.Logging; namespace osu.Gam...
mit
C#