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 |
|---|---|---|---|---|---|---|---|---|
928204c5ad00cb61f9c1e1e7b2d0d7035be8cfd2 | Add a missing file. | MrMYHuang/taq | TaqShared/ModelViews/StaticTaqModelView.cs | TaqShared/ModelViews/StaticTaqModelView.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Text;
using System.Threading.Tasks;
using Windows.Graphics.Display;
using Windows.Graphics.Imaging;
using Windows.Storage;
using Windows.Storage.Streams;
using Windows.UI.Xaml;
using Win... | mit | C# | |
eaf1f208be5b56687c8b5b5922174f53b0c7d946 | Add F.Identity | farity/farity | Farity/Identity.cs | Farity/Identity.cs | namespace Farity
{
public static partial class F
{
public static T Identity<T>(T x) => x;
}
} | mit | C# | |
c63c0318f8809a696fb627c3a9c808e6342c2bb9 | Add ToggleImageOnClick.cs | felladrin/unity3d-scripts,felladrin/unity-scripts | ToggleImageOnClick.cs | ToggleImageOnClick.cs | using UnityEngine;
using UnityEngine.UI;
public class ToggleImageOnClick : MonoBehaviour {
public Sprite DefaultImage;
public Sprite AlternativaImage;
private Image imageComponent;
// Use this for initialization
void Start () {
imageComponent = GetComponent<Image>();
}
void OnClick() {
imageComponent.sp... | mit | C# | |
dfb2cb980a21e22fcc36337e666294837de11d77 | Add models for the streams blog page. | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform | src/CompetitionPlatform/Models/BlogViewModels/BlogViewModels.cs | src/CompetitionPlatform/Models/BlogViewModels/BlogViewModels.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using CompetitionPlatform.Data.AzureRepositories.Blog;
namespace CompetitionPlatform.Models.BlogViewModels
{
public class BlogViewModel : IBlogData
{
[Required]... | mit | C# | |
a9763baa6fb53055dee7f9e7d7122ae627ee4c1e | Create clrmagic.cs | denfromufa/clrmagic,denfromufa/clrmagic | clrmagic.cs | clrmagic.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.CodeDom.Compiler;
using Microsoft.CSharp;
using System.Reflection;
namespace MagicIPython
{
public static class MagicCS
{
private const string embedCode = @"
... | mit | C# | |
3512af427266e4e1d922d3b987db1b2e234ae478 | Test strange-cased content headers | restsharp/RestSharp | test/RestSharp.Tests/RestContentTests.cs | test/RestSharp.Tests/RestContentTests.cs | using System.Net;
namespace RestSharp.Tests;
public class RestContentTests {
[Fact]
public void RestContent_CaseInsensitiveHeaders() {
var myContentType = "application/x-custom";
var request = new RestRequest("resource");
request.AddHeader("coNteNt-TypE", myContentType);
var c... | apache-2.0 | C# | |
97af6f96633f8243ab1108e36b6ec6da12e11e3e | Add zone marker to fix exceptions in inspectcode | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | resharper/resharper-unity/src/Feature/Services/ExternalSources/ZoneMarker.cs | resharper/resharper-unity/src/Feature/Services/ExternalSources/ZoneMarker.cs | using JetBrains.Application.BuildScript.Application.Zones;
using JetBrains.ReSharper.Feature.Services.ExternalSources;
namespace JetBrains.ReSharper.Plugins.Unity.Feature.Services.ExternalSources
{
[ZoneMarker]
public class ZoneMarker : IRequire<ExternalSourcesZone>
{
}
} | apache-2.0 | C# | |
10ec3eab5b811e634fddcc0ea9c0345c378d32cf | Add tests for F.Reduce | farity/farity | Farity.Tests/ReduceTests.cs | Farity.Tests/ReduceTests.cs | using System.Linq;
using Xunit;
namespace Farity.Tests
{
public class ReduceTests
{
[Fact]
public void ReduceExecutesFunctionsForAllElementsInTheList()
{
var expected = 15;
var actual = F.Reduce((sum, current) => sum + current, 0, new[] { 1, 2, 3, 4, 5 });
... | mit | C# | |
26c62ed0aa5361d593947aa0cad41096e3851616 | Create Problem41.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem41.cs | Problems/Problem41.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler
{
class Problem41
{
private Sieve s;
private string pandigital;
private long upper;
public Problem41()
{
upper = 987654321;
pandigital = "... | mit | C# | |
ba21d50ee5181452000b2c1a51b67ac62bed1d94 | Create RotateTowardsMouse.cs | felladrin/unity3d-scripts,felladrin/unity-scripts | RotateTowardsMouse.cs | RotateTowardsMouse.cs | using UnityEngine;
public class RotateTowardsMouse : MonoBehaviour
{
public UpAxisOption UpAxis;
public enum UpAxisOption
{
X,
Y,
Z
}
void Update ()
{
var positionOnScreen = Camera.main.WorldToViewportPoint (transform.position);
var mouseOnScreen = (Vector2)Camera.main.ScreenToViewportPoint (Input.mo... | mit | C# | |
606dea6ea6574936038089a287371e636958ce72 | Add Command to Edit Profiles | TheLoudestNinja/SetIP | SetIPCLI/EditProfile.cs | SetIPCLI/EditProfile.cs | using CLImber;
using SetIPLib;
using System;
using System.Linq;
using System.Net;
namespace SetIPCLI
{
[CommandClass("edit", ShortDescription = "Updates a profile with the specified information. Updated info is specified using options: --ip=xxx.xxx.xxx.xxx")]
class EditProfile
{
private Profile _e... | mit | C# | |
4ab354e189a04d3b5a74efd39dbd715f29e4c230 | Create Relocation.cs | SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming | Kattis-Solutions/Relocation.cs | Kattis-Solutions/Relocation.cs | using System;
using System.Collections.Generic;
namespace Relocation
{
class Program
{
static void Main(string[] args)
{
string[] sarr;
int[] initLocation;
int nc, nq, cmd, tempc, ca, cb, tempLoc,la,lb;
sarr = Console.ReadLine().Split(" ");
... | mit | C# | |
2253f87d081c244ecd6b14ab2c29f78e2d6344eb | Create ResourceModelDescription.cs | MingLu8/Nancy.WebApi.HelpPages | src/Nancy.WebApi.HelpPages.Demo/HelpPage/ResourceModelDescription.cs | src/Nancy.WebApi.HelpPages.Demo/HelpPage/ResourceModelDescription.cs | using System.Collections.Generic;
using WebApplication1.Areas.HelpPage.ModelDescriptions;
namespace Nancy.WebApi.Demo
{
public class ResourceModelDescription
{
public ModelDescription ModelDescription { get; set; }
public List<ParameterDescription> Members { get; set; }
public Resource... | mit | C# | |
656f1929cb799b4fae7d7c5c40fa703decbfe0c8 | Add class for David OBrien | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/DavidOBrien.cs | src/Firehose.Web/Authors/DavidOBrien.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 DavidOBrien : IFilterMyBlogPosts, IAmAMicrosoftMVP
{
public string FirstName => "David";
p... | mit | C# | |
fa07615789206f560f4cd17936181284048129fd | Add the builder for an Integer range | Seddryck/NBi,Seddryck/NBi | NBi.Core/Members/Ranges/IntegerRangeBuilder.cs | NBi.Core/Members/Ranges/IntegerRangeBuilder.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NBi.Core.Members.Ranges
{
internal class IntegerRangeBuilder : BaseBuilder
{
protected new IntegerRange Range
{
get
{
return (IntegerRange)base.R... | apache-2.0 | C# | |
227bda3c3fdc584afd5dab9e7e47f5fcdf8896f4 | Create Extensions.cs | jokio/jok-shared-ios | Extensions.cs | Extensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Jok.Shared
{
public static class Extensions
{
public static T GetRandom<T>(this List<T> items)
where T: class
{
if (items.Count == 0)
return null;
if (items.Count == 1)
return items[0];
return items[new Random(Guid... | mit | C# | |
11b0055d3c36012fd170ef9a43a8a85382d206ef | Create ModelDescription.cs | MingLu8/Nancy.WebApi.HelpPages | src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/ModelDescription.cs | src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/ModelDescription.cs | using System;
namespace WebApplication1.Areas.HelpPage.ModelDescriptions
{
/// <summary>
/// Describes a type model.
/// </summary>
public abstract class ModelDescription
{
public string Documentation { get; set; }
public Type ModelType { get; set; }
public string Name { g... | mit | C# | |
637f7f047d4ec33e26d308a81ecb0c6cece9bfe6 | Add empty shape ContentPart.Thumbnaail shape, particularly for menus, but may impact others (#8383) | stevetayloruk/Orchard2,xkproject/Orchard2,xkproject/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,xkproject/Orchard2,xkproject/Orchard2,xkproject/Orchard2 | src/OrchardCore.Modules/OrchardCore.Contents/Views/ContentPart.Thumbnail.cshtml | src/OrchardCore.Modules/OrchardCore.Contents/Views/ContentPart.Thumbnail.cshtml | @*
An empty shape for any content types which require a thumbnail shape for their dynamic content parts, such as menu items.
This can be customized per part by creating custom templates.
*@
| bsd-3-clause | C# | |
2e352990293e9b8b5d1045efb6f9054d0df663d8 | Create AssemblyInfo.cs | it4history/Logy.Exchange | src/Logy.MwAgent/Properties/AssemblyInfo.cs | src/Logy.MwAgent/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Logy.MwAgent")]
[assembly: AssemblyDescription("Mediawiki agent")]
[assembly: AssemblyProduct("Logy.MwAgent")]
[assembly: Guid("cfca8758-05ca-4f87-9edf-5f390aa28c8c")]
| mit | C# | |
5aad1dcf588da32703b1f7d6b7ec99329427b231 | Add 'CascaraInt64' | whampson/cascara,whampson/bft-spec | Src/WHampson.Cascara/Types/CascaraInt64.cs | Src/WHampson.Cascara/Types/CascaraInt64.cs | #region License
/* Copyright (c) 2017 Wes Hampson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | mit | C# | |
481626e8f3ecefd8232337749dcb468d5a79a377 | Add NSSearchPath binding | mono/maccore | src/Foundation/NSSearchPath.cs | src/Foundation/NSSearchPath.cs | //
// NSSearchPath.cs
//
// Authors:
// Marek Safar (marek.safar@gmail.com)
//
// Copyright 2013 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, incl... | apache-2.0 | C# | |
8fca026f9eb659a679db4848e3637dd6f12afc2d | Create 7.cs | rikkus/adventofcode2016,rikkus/adventofcode2016 | 7.cs | 7.cs | void Main()
{
var testInput = @"abba[mnop]qrst
abcd[bddb]xyyx
aaaa[qwer]tyui
ioxxoj[asdfgh]zxcvbn"
.Split(new[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries);
var realInput = @"xdsqxnovprgovwzkus[fmadbfsbqwzzrzrgdg]aeqornszgvbizdm
itgslvpxoqqakli[arktzcssgkxktejbno]wsgkbwwtbmfnddt[zblrboqsvezcgfmfvcz]iwyhyatqe... | mit | C# | |
cf040d9c2ae410e7ea65ab289416762301a89c13 | Use a different generic type variable name that does not conflict with the parent one. | imazen/CppSharp,mohtamohit/CppSharp,mono/CppSharp,inordertotest/CppSharp,nalkaro/CppSharp,ktopouzi/CppSharp,Samana/CppSharp,imazen/CppSharp,mydogisbox/CppSharp,KonajuGames/CppSharp,mono/CppSharp,nalkaro/CppSharp,xistoso/CppSharp,xistoso/CppSharp,zillemarco/CppSharp,ddobrev/CppSharp,zillemarco/CppSharp,ddobrev/CppSharp,... | src/Generator/Passes/PassBuilder.cs | src/Generator/Passes/PassBuilder.cs | using System.Collections.Generic;
using System.Linq;
using CppSharp.Passes;
namespace CppSharp
{
/// <summary>
/// This class is used to build passes that will be run against the AST
/// that comes from C++.
/// </summary>
public class PassBuilder<T>
{
public List<T> Passes { get; priv... | using System.Collections.Generic;
using System.Linq;
using CppSharp.Passes;
namespace CppSharp
{
/// <summary>
/// This class is used to build passes that will be run against the AST
/// that comes from C++.
/// </summary>
public class PassBuilder<T>
{
public List<T> Passes { get; priv... | mit | C# |
a42b26193abe239b69ac6a1f0bed427697ccd516 | Add comment explaining disabled test parallelization | hubuk/CodeContracts,Microsoft/CodeContracts,danielcweber/CodeContracts,SergeyTeplyakov/CodeContracts,ndykman/CodeContracts,danielcweber/CodeContracts,Microsoft/CodeContracts,ndykman/CodeContracts,danachap/CodeContracts,SergeyTeplyakov/CodeContracts,Microsoft/CodeContracts,huoxudong125/CodeContracts,ndykman/CodeContract... | Foxtrot/Tests/Properties/AssemblyInfo.cs | Foxtrot/Tests/Properties/AssemblyInfo.cs | // CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// 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 wit... | // CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// 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 wit... | mit | C# |
4dc47e5e9e977147b4a988056a11aee5f41e2526 | update version | tinygg/graphic-HTML-Renderer,todor-dk/HTML-Renderer,evitself/HTML-Renderer,windygu/HTML-Renderer,Perspex/HTML-Renderer,slagou/HTML-Renderer,todor-dk/HTML-Renderer,todor-dk/HTML-Renderer,Perspex/HTML-Renderer,tinygg/graphic-HTML-Renderer,drickert5/HTML-Renderer,evitself/HTML-Renderer,drickert5/HTML-Renderer,tinygg/graph... | Source/HtmlRenderer/Properties/AssemblyInfo.cs | Source/HtmlRenderer/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("HTML Renderer")]
[assembly: AssemblyDescr... | 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("HTML Renderer")]
[assembly: AssemblyDescr... | bsd-3-clause | C# |
b3b98787a5a2e028b08e8c1ef885c3756b9c77d5 | Update comments. | rockfordlhotka/csla,rockfordlhotka/csla,ronnymgm/csla-light,BrettJaner/csla,JasonBock/csla,ronnymgm/csla-light,MarimerLLC/csla,rockfordlhotka/csla,jonnybee/csla,MarimerLLC/csla,MarimerLLC/csla,ronnymgm/csla-light,JasonBock/csla,BrettJaner/csla,jonnybee/csla,JasonBock/csla,BrettJaner/csla,jonnybee/csla | cslacs/Csla/DataPortal/DataPortalEventArgs.cs | cslacs/Csla/DataPortal/DataPortalEventArgs.cs | using System;
namespace Csla
{
/// <summary>
/// Provides information about the DataPortal
/// call.
/// </summary>
public class DataPortalEventArgs : EventArgs
{
private Server.DataPortalContext _dataPortalContext;
private DataPortalOperations _operation;
private Exception _exception;
pri... | using System;
namespace Csla
{
/// <summary>
/// Provides information about the DataPortal
/// call.
/// </summary>
public class DataPortalEventArgs : EventArgs
{
private Server.DataPortalContext _dataPortalContext;
private DataPortalOperations _operation;
private Exception _exception;
pri... | mit | C# |
83235e69d301161858de1e729a74e57f71c37e00 | Test was added for ExceptionDescription | litichevskiydv/WebInfrastructure,litichevskiydv/WebInfrastructure | test/Infrastructure/Web.Tests/Conventions/Responses/ExceptionDescriptionTests.cs | test/Infrastructure/Web.Tests/Conventions/Responses/ExceptionDescriptionTests.cs | namespace Skeleton.Web.Tests.Conventions.Responses
{
using System;
using Web.Conventions.Responses;
using Xunit;
public class ExceptionDescriptionTests
{
[Fact]
public void ShouldCollectInformation()
{
// Given
const string message = "<Message>";
... | mit | C# | |
0d897cb7b767ca562bf1b8f681d78fc715d2c7bb | Update todo | llytvynenko/Orleankka,AntyaDev/Orleankka,ElanHasson/Orleankka,llytvynenko/Orleankka,mhertis/Orleankka,OrleansContrib/Orleankka,mhertis/Orleankka,AntyaDev/Orleankka,yevhen/Orleankka,pkese/Orleankka,pkese/Orleankka,yevhen/Orleankka,ElanHasson/Orleankka,OrleansContrib/Orleankka | Source/Orleankka.Tests/TODO.cs | Source/Orleankka.Tests/TODO.cs | using System;
using System.Linq;
using NUnit.Framework;
namespace Orleankka
{
[TestFixture]
public class TodoFixture
{
[Test, Ignore]
public void Envelopes()
{
// - Envelope and Body attributte
// - Proper selection of Receive channel based on Body typ... | using System;
using System.Linq;
using NUnit.Framework;
namespace Orleankka
{
[TestFixture]
public class TodoFixture
{
[Test, Ignore]
public void Envelopes()
{
// - Envelope and Body attributte
// - Proper selection of Receive channel based on Body typ... | apache-2.0 | C# |
34116f5e565ae86c7907ca40f3b9ad1edd27f9fc | add argument file | sirkirby/TFSChanges | TFSChanges/Models/Arguments.cs | TFSChanges/Models/Arguments.cs | using System.IO;
using System.Reflection;
using Args;
using Newtonsoft.Json;
namespace TFSChanges.Models
{
public class Arguments
{
[ArgsMemberSwitch("sa", "account", "storageAccount")]
public string StorageAccount { get; set; }
[ArgsMemberSwitch("sk", "key", "storageKey")]
public string StorageKey { get; s... | mit | C# | |
1d6d39df78a00aa0a24009be725091f9d9911c0c | Update sign-message.cs | qzind/qz-print,tresf/qz-print,gillg/qz-print,tresf/qz-print,gillg/qz-print,tresf/qz-print,tresf/qz-print,gillg/qz-print,tresf/qz-print,qzind/qz-print,gillg/qz-print,qzind/qz-print,klabarge/qz-print,qzind/qz-print,klabarge/qz-print,qzind/qz-print,klabarge/qz-print,qzind/qz-print,gillg/qz-print,klabarge/qz-print,klabarge... | assets/signing/sign-message.cs | assets/signing/sign-message.cs | /**
* Echoes the signed message and exits
*/
public void SignMessage(String message)
{
// #########################################################
// # WARNING WARNING WARNING #
// #########################################################
// # ... | /**
* Echoes the signed message and exits
*/
public void SignMessage(String message)
{
// #########################################################
// # WARNING WARNING WARNING #
// #########################################################
// # ... | lgpl-2.1 | C# |
8ddc30fb6c79cfd3468ec4f6ccca8bbdc22e7b57 | Update AssemblyInfo [ci skip] | MSylvia/OxidePatcher,AEtherSurfer/OxidePatcher,MSylvia/OxidePatcher,Nogrod/OxidePatcher,Nogrod/OxidePatcher,OxideMod/OxidePatcher,AEtherSurfer/OxidePatcher | OxidePatcher/Properties/AssemblyInfo.cs | OxidePatcher/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("Oxide Patcher")]
[assembly: AssemblyDescr... | 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("Ox... | mpl-2.0 | C# |
2bc8e173b31366a85929b1dab48f26ef61496832 | Set root view controller for window | xamarin/monotouch-samples,markradacz/monotouch-samples,markradacz/monotouch-samples,iFreedive/monotouch-samples,W3SS/monotouch-samples,xamarin/monotouch-samples,albertoms/monotouch-samples,markradacz/monotouch-samples,albertoms/monotouch-samples,W3SS/monotouch-samples,kingyond/monotouch-samples,iFreedive/monotouch-samp... | TableEditing/TableEditing/AppDelegate.cs | TableEditing/TableEditing/AppDelegate.cs | using System;
using CoreGraphics;
using UIKit;
using Foundation;
namespace TableEditing
{
[Register ("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
#region -= main =-
public static void Main (string[] args)
{
try {
UIApplication.Main (args, null, "AppDelegate");
} catch (Excepti... | using System;
using CoreGraphics;
using UIKit;
using Foundation;
namespace TableEditing
{
[Register ("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
#region -= main =-
public static void Main (string[] args)
{
try {
UIApplication.Main (args, null, "AppDelegate");
} catch (Excepti... | mit | C# |
dffa330817836e898de7b908651a2b57a95bf539 | Add interactive execution | manikTharaka/al-go-rithms,manikTharaka/al-go-rithms,Deepak345/al-go-rithms,EUNIX-TRIX/al-go-rithms,ZoranPandovski/al-go-rithms,EUNIX-TRIX/al-go-rithms,Deepak345/al-go-rithms,Deepak345/al-go-rithms,ZoranPandovski/al-go-rithms,Deepak345/al-go-rithms,ZoranPandovski/al-go-rithms,Cnidarias/al-go-rithms,Deepak345/al-go-rithm... | math/fibonacci/C#/Fibonacci.cs | math/fibonacci/C#/Fibonacci.cs | using System;
using System.Collections.Generic;
namespace Fibonacci
{
class Fibonacci
{
static void Main(string[] args)
{
Console.Write("How many Fibonacci numbers do you want?\n");
int n;
while (!int.TryParse(Console.ReadLine(), out n))
{
... | public List<int> Fibonacci(int n)
{
List<int> fib = new List<int>();
fib.Add(1);
fib.Add(1);
for(int i = 2; i <= n; i++)
{
fib.Add(fib[i - 2] + fib[i - 1]);
}
return fib;
}
| cc0-1.0 | C# |
77a87adf3e64ce15d2cc095b31e96bb7c4b5a50b | Add AuthLogonChallengeServer. | 0x2aff/WoWCore | AuthServer/Packets/AuthLogonChallengeServer.cs | AuthServer/Packets/AuthLogonChallengeServer.cs | /*
* WoWCore - World of Warcraft 1.12 Server
* Copyright (C) 2017 exceptionptr
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... | mit | C# | |
352fc2fe197325220f366945d924042779d614c2 | Include Snapshot file | yagopv/DurandalAuth,colinsr/DurandalAuth,colinsr/DurandalAuth,yagopv/DurandalAuth,yagopv/DurandalAuth | DurandalAuth.Web/Helpers/Snapshot.cs | DurandalAuth.Web/Helpers/Snapshot.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Net.Http;
using System.IO;
using System.Linq;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Blob;
using System.Threading.Tasks;
using System.Configuration;
using Newtonsoft.Json;
using Newtonsoft.Json... | mit | C# | |
513edd482d7a648a7a83400b30e88f31829d7214 | bump version | MetacoSA/NBitcoin,stratisproject/NStratis,NicolasDorier/NBitcoin,dangershony/NStratis,MetacoSA/NBitcoin,thepunctuatedhorizon/BrickCoinAlpha.0.0.1,lontivero/NBitcoin | NBitcoin/Properties/AssemblyInfo.cs | NBitcoin/Properties/AssemblyInfo.cs | using System;
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.
[assem... | using System;
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.
[assem... | mit | C# |
1a6c6caf475b74ffcbe9f38bc52debe11f5e3385 | Make IsTransient public | james-andrewsmith/Streamstone,jkonecki/Streamstone | Source/Streamstone/Stream.Header.cs | Source/Streamstone/Stream.Header.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Streamstone
{
public sealed partial class Stream
{
public readonly StreamProperties Properties;
public readonly Partition Partition;
public readonly string ETag;
public readonly int Version;
/... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Streamstone
{
public sealed partial class Stream
{
public readonly StreamProperties Properties;
public readonly Partition Partition;
public readonly string ETag;
public readonly int Version;
/... | apache-2.0 | C# |
c46304c8cc957b6b2726a1ed94d3602ee9765d0c | Use "silent" install (no prompts) when running optional auto apply update | ndouthit/Certify,Prerequisite/Certify,webprofusion/Certify | src/Certify.UI/Utils/UpdateCheckUtils.cs | src/Certify.UI/Utils/UpdateCheckUtils.cs | using Certify.Locales;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
namespace Certify.UI.Utils
{
public class UpdateCheckUtils
{
public async Task<Models.UpdateCheck> UpdateWithDownload()
{
Mouse.OverrideCursor = Cursors.Wait;
var upda... | using Certify.Locales;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
namespace Certify.UI.Utils
{
public class UpdateCheckUtils
{
public async Task<Models.UpdateCheck> UpdateWithDownload()
{
Mouse.OverrideCursor = Cursors.Wait;
var upda... | mit | C# |
f481c88cd4431d698bd4fd4dddad2e789068f558 | Add partial class for retry settings (compatibility) | jskeet/google-cloud-dotnet,jskeet/gcloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,googleapis/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet | apis/Google.Cloud.Speech.V1/Google.Cloud.Speech.V1/SpeechSettings.cs | apis/Google.Cloud.Speech.V1/Google.Cloud.Speech.V1/SpeechSettings.cs | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | apache-2.0 | C# | |
9386f634d0847596df91d941023609c4121a8a1a | Revert "Revert "Resolved CA 2208"" | Rolstenhouse/sarif-sdk,kschecht/sarif-sdk,Rolstenhouse/sarif-sdk,Rolstenhouse/sarif-sdk,Rolstenhouse/sarif-sdk,kschecht/sarif-sdk,kschecht/sarif-sdk,kschecht/sarif-sdk,Rolstenhouse/sarif-sdk,kschecht/sarif-sdk,Rolstenhouse/sarif-sdk,Rolstenhouse/sarif-sdk,kschecht/sarif-sdk,kschecht/sarif-sdk | src/Sarif/PerLanguageOption.cs | src/Sarif/PerLanguageOption.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
namespace Microsoft.CodeAnalysis.Sarif
{
/// <summary>
/// An option that can be specified once per language.
/// </summary>
/// <typepa... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
namespace Microsoft.CodeAnalysis.Sarif
{
/// <summary>
/// An option that can be specified once per language.
/// </summary>
/// <typepa... | mit | C# |
3f290650cf97983876e522912a45464857176cf2 | Add camera controller | Jaween/racing | Assets/Scripts/General/CameraController.cs | Assets/Scripts/General/CameraController.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class CameraController : MonoBehaviour {
public GameObject cameraNode;
public float distanceFromNode;
public float maxPositionLag;
public float maxPositionLerpMultiplier;
public float maxRotationLag;
public ... | apache-2.0 | C# | |
e615d16f409f58454cb4287d9c4b2738d2711a0a | Add MessageMatch.cs | ggeurts/nunit,elbaloo/nunit,acco32/nunit,jadarnel27/nunit,passaro/nunit,Green-Bug/nunit,ArsenShnurkov/nunit,pflugs30/nunit,agray/nunit,appel1/nunit,mikkelbu/nunit,jhamm/nunit,passaro/nunit,modulexcite/nunit,pflugs30/nunit,jeremymeng/nunit,mjedrzejek/nunit,NikolayPianikov/nunit,Green-Bug/nunit,JohanO/nunit,ArsenShnurkov... | src/interfaces/Framework/MessageMatch.cs | src/interfaces/Framework/MessageMatch.cs | // ***********************************************************************
// Copyright (c) 2009 Charlie Poole
//
// 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,... | mit | C# | |
d979bda05251cec51a3381e7d1e2d2c8da830cee | Fix issue with persisting DateTime | cezarypiatek/MaintainableSelenium,cezarypiatek/MaintainableSelenium,cezarypiatek/Tellurium,cezarypiatek/MaintainableSelenium,cezarypiatek/Tellurium,cezarypiatek/Tellurium | Src/VisualAssertions/Screenshots/Utils/DateTimeExtensions.cs | Src/VisualAssertions/Screenshots/Utils/DateTimeExtensions.cs | using System;
namespace Tellurium.VisualAssertions.Screenshots.Utils
{
static class DateTimeExtensions
{
public static DateTime TrimToMiliseconds(this DateTime dateTime)
{
return Trim(dateTime, TimeSpan.TicksPerMillisecond);
}
static DateTime Trim(DateTime date, lo... | mit | C# | |
b8509c85e57e233ba908286899c8bb387862cb2f | Add test to verify library class visability | stranne/BooliLib | Stranne.BooliLib.Tests/LibraryVisabilityTest.cs | Stranne.BooliLib.Tests/LibraryVisabilityTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Stranne.BooliLib.Models;
using Xunit;
namespace Stranne.BooliLib.Tests
{
public class LibraryVisabilityTest
{
private readonly IEnumerable<Type> _publicClasses = new List<Type>
{
typeo... | mit | C# | |
e1be5c98ab2066a166375b4cbd51da404adf075b | Comment code. | mattscheffer/roslyn,VSadov/roslyn,weltkante/roslyn,bbarry/roslyn,panopticoncentral/roslyn,AnthonyDGreen/roslyn,KevinRansom/roslyn,tmeschter/roslyn,jeffanders/roslyn,bartdesmet/roslyn,robinsedlaczek/roslyn,tvand7093/roslyn,ErikSchierboom/roslyn,abock/roslyn,davkean/roslyn,MichalStrehovsky/roslyn,vslsnap/roslyn,xasx/rosl... | src/Workspaces/Core/Portable/LanguageServices/SyntaxFactsService/AbstractSyntaxFactsService.cs | src/Workspaces/Core/Portable/LanguageServices/SyntaxFactsService/AbstractSyntaxFactsService.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.LanguageServices
{
internal abstract class AbstractSyntaxFactsService
{
private readonly static ObjectPool<List<Dictionary<string... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.LanguageServices
{
internal abstract class AbstractSyntaxFactsService
{
private readonly static ObjectPool<List<Dictionary<string... | mit | C# |
142f89ea9a5a68df81de98a84fe63551742b4076 | Create XMLUtils.cs | slaceved/CSharp | XMLUtils.cs | XMLUtils.cs | using System;
using System.Data;
using System.IO;
using System.Xml.Schema;
using System.Xml.Linq;
namespace Capstone_Game_Platform
{
internal class XMLUtils
{
/// <summary>
/// Path to XML File
/// </summary>
public string FilePath { get; set; }
/// <summary>
//... | unlicense | C# | |
956595ca8c4ab8625ef2486d3b1e957f050cff0c | Update server side API for single multiple answer question | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api/question")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository ... | mit | C# | |
bbf0de2df775751043c1c2fe051ead91792b8022 | Add accelerometer reader example script | mikelovesrobots/unity3d-base,mikelovesrobots/throw-a-ball-tutorial,jshou/party-game | app/Assets/Scripts/AccelerometerReader.cs | app/Assets/Scripts/AccelerometerReader.cs | using UnityEngine;
using System.Collections;
public class AccelerometerReader : MonoBehaviour {
public float Filter = 5.0f;
public GUIText Label;
private Vector3 accel;
void Start() {
accel = Input.acceleration;
}
void Update() {
// filter the jerky acceleration in the variab... | mit | C# | |
0b6ccc61ca9155ac0299b0804bbfe4629cb7fe3b | Add working queue tests | pardahlman/RawRabbit,northspb/RawRabbit | src/RawRabbit.IntegrationTests/SimpleUse/WorkerQueuesTest.cs | src/RawRabbit.IntegrationTests/SimpleUse/WorkerQueuesTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using RawRabbit.Client;
using RawRabbit.IntegrationTests.TestMessages;
using Xunit;
namespace RawRabbit.IntegrationTests.SimpleUse
{
public class WorkerQueuesTest : IntegrationTestBase
{
[Fact]
public async void Sho... | mit | C# | |
e93153abdce76413fb3f72ef5bedc32b220ee1f4 | Fix call to AddParameter in RequestToken. Now creating request using Full Url, so AddParameter can create UriBuilder | InstaSharp/InstaSharp,3nGercog/InstaSharp,crashdavis23/InstaSharp,3nGercog/InstaSharp,danielmundim/InstaSharp,theShiva/InstaSharp,theShiva/InstaSharp,danielmundim/InstaSharp,crashdavis23/InstaSharp | src/InstaSharp/OAuth.cs | src/InstaSharp/OAuth.cs | using InstaSharp.Extensions;
using InstaSharp.Models.Responses;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace InstaSharp
{
public class OAuth
{
private readonly InstagramConfig config;
public enum ResponseType... | using InstaSharp.Extensions;
using InstaSharp.Models.Responses;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace InstaSharp
{
public class OAuth
{
private readonly InstagramConfig config;
public enum ResponseType... | apache-2.0 | C# |
f01c98e42e9bc13d1c1dae31866e177294d1379c | Add text alignment | Faseway/GameLibrary | GameLibrary/Code/UI/Base/TextAlignment.cs | GameLibrary/Code/UI/Base/TextAlignment.cs | namespace Faseway.GameLibrary.UI.Base
{
public enum TextAlignment
{
None,
Left,
Middle,
Right
}
}
| mit | C# | |
cc54d90a310bff2a9011c5bf98c697f182a7030c | improve seeding of ThreadLocalRandom | criteo-forks/metrics-net,gturri/metrics-net,criteo-forks/metrics-net,gturri/metrics-net | src/metrics/Support/ThreadLocalRandom.cs | src/metrics/Support/ThreadLocalRandom.cs | using System;
using System.Threading;
namespace metrics.Support
{
class ThreadLocalRandom
{
private static readonly System.Random Seeder = new System.Random();
private static readonly ThreadLocal<int> Seed;
private static ThreadLocal<System.Random> _random;
static ThreadLocal... | mit | C# | |
6de40519c9908b9044bd80ae2a4f8060c82a6255 | Add test AnActorSystemMustAllowValidNames | gwokudasam/akka.net,nanderto/akka.net,naveensrinivasan/akka.net,cdmdotnet/akka.net,silentnull/akka.net,kerryjiang/akka.net,matiii/akka.net,jordansjones/akka.net,MAOliver/akka.net,linearregression/akka.net,adamhathcock/akka.net,akoshelev/akka.net,adamhathcock/akka.net,tillr/akka.net,eloraiby/akka.net,kstaruch/akka.net,a... | test/Akka.Tests/Actor/ActorSystemSpec.cs | test/Akka.Tests/Actor/ActorSystemSpec.cs | using Akka.Actor;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
namespace Akka.Tests.Actor
{
[TestClass]
public class ActorSystemSpec : AkkaSpec
{
[TestMethod]
public void AnActorSystemMustRejectInvalidNames()
{
(new... | using Akka.Actor;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
namespace Akka.Tests.Actor
{
[TestClass]
public class ActorSystemSpec : AkkaSpec
{
[TestMethod]
public void AnActorSystemMustRejectInvalidNames()
{
(new... | apache-2.0 | C# |
b226c3a4d03502717c03e913741a0a117d44ef2c | add TenPayV3GetPublicKeyRequestData | jiehanlin/WeiXinMPSDK,mc7246/WeiXinMPSDK,jiehanlin/WeiXinMPSDK,lishewen/WeiXinMPSDK,mc7246/WeiXinMPSDK,JeffreySu/WeiXinMPSDK,mc7246/WeiXinMPSDK,jiehanlin/WeiXinMPSDK,JeffreySu/WeiXinMPSDK,lishewen/WeiXinMPSDK,JeffreySu/WeiXinMPSDK,lishewen/WeiXinMPSDK | src/Senparc.Weixin.MP/Senparc.Weixin.MP/TenPayLibV3/Entities/Request/PayBank/TenPayV3GetPublicKeyRequestData.cs | src/Senparc.Weixin.MP/Senparc.Weixin.MP/TenPayLibV3/Entities/Request/PayBank/TenPayV3GetPublicKeyRequestData.cs | #region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2018 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
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 ... | apache-2.0 | C# | |
1ae3cda252493764bc02039a2be7af64004287f5 | Implement MEvent | Zalodu/Schedutalk,Zalodu/Schedutalk | Schedutalk/Schedutalk/Schedutalk/Model/MDate.cs | Schedutalk/Schedutalk/Schedutalk/Model/MDate.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Schedutalk.Model
{
class MDate : ViewModel.VMBase
{
private int hour;
private int minute;
public MDate(int hour, int minute)
{
Hour = hour;... | mit | C# | |
32e97ed8a41d51f114be54622af32a506c2d92f3 | Update C# URL sample to return the URL *as signed*. The fix is being reviewed for the corresponding code on code.google.com | googlearchive/js-v2-samples,alexander0205/js-v2-samples,stephenmcd/js-v2-samples,bawg/js-v2-samples,feeilk1991/promenad,cureHsu/js-v2-samples,feeilk1991/promenad,feeilk1991/promenad,bawg/js-v2-samples,feeilk1991/promenad,alexander0205/js-v2-samples,cureHsu/js-v2-samples,alexander0205/js-v2-samples,bawg/js-v2-samples,ba... | urlsigning/UrlSigner.cs | urlsigning/UrlSigner.cs | using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
namespace SignUrl {
public struct GoogleSignedUrl {
public static string Sign(string url, string keyString) {
ASCIIEncoding encoding = new ASCIIEn... | using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
namespace SignUrl {
public struct GoogleSignedUrl {
public static string Sign(string url, string keyString) {
ASCIIEncoding encoding = new ASCIIEn... | apache-2.0 | C# |
ad42ce5639d5ae92dd6fc4e9bc067f446da04214 | Add failing test cases | peppy/osu,smoogipoo/osu,peppy/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu-new,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,ppy/osu,peppy/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu | osu.Game.Tests/NonVisual/GameplayClockTest.cs | osu.Game.Tests/NonVisual/GameplayClockTest.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.Collections.Generic;
using NUnit.Framework;
using osu.Framework.Bindables;
using osu.Framework.Timing;
using osu.Game.Screens.Play;
namespace osu.Game.Tests... | mit | C# | |
dcaea7cfa956a86369d10d64193ae4e82091a652 | Write a Basic Gtk# Program and Handle Events | HenriqueRocha/gtkcontacts | Main.cs | Main.cs | using System;
using Gtk;
class MainClass {
public static void Main (string[] args)
{
Application.Init();
Window w = new Window ("Gtk# Basics");
Button b = new Button ("Hit me");
// set up event handling: verbose to illustrate
// the use of delegates.
w.DeleteEvent += new DeleteEventHandler (Window_Dele... | mit | C# | |
2259ce50821c312ad33adb3d61768146f77766f9 | Add TermsSeedData | lucasdavid/Gamedalf,lucasdavid/Gamedalf | Gamedalf.Core/Migrations/TermsSeedData.cs | Gamedalf.Core/Migrations/TermsSeedData.cs |
using Gamedalf.Core.Models;
using System;
using System.Collections.Generic;
namespace Gamedalf.Core.Migrations
{
class TermsSeedData
{
public ICollection<Terms> Data { get; set; }
public TermsSeedData()
{
Data = new List<Terms>
{
n... | mit | C# | |
d97cca76bf0669354243bf5786cc04c86ae134fc | Remove recursive calls from AllTypesHelper | jorik041/dnlib,picrap/dnlib,ilkerhalil/dnlib,modulexcite/dnlib,kiootic/dnlib,yck1509/dnlib,0xd4d/dnlib,Arthur2e5/dnlib,ZixiangBoy/dnlib | src/DotNet/AllTypesHelper.cs | src/DotNet/AllTypesHelper.cs | /*
Copyright (C) 2012-2014 de4dot@gmail.com
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, m... | /*
Copyright (C) 2012-2014 de4dot@gmail.com
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, m... | mit | C# |
4e231ac8fac661d2751bbbef926fa936f098b1b2 | Add test for #220 | nilproject/NiL.JS,nilproject/NiL.JS,nilproject/NiL.JS | FunctionalTests/Fuzz/Bug_220.cs | FunctionalTests/Fuzz/Bug_220.cs | using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NiL.JS;
using NiL.JS.Core;
using NiL.JS.Extensions;
namespace FunctionalTests.Fuzz
{
[TestClass]
public sealed class Bug_220
{
private sealed class MyModuleResolver : IModul... | bsd-3-clause | C# | |
661a09903ea020a82fc604a94e4f46fd6317dd6e | Convert int to string column | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | CareerCup/Google/convert_number_to_column.cs | CareerCup/Google/convert_number_to_column.cs | // http://careercup.com/question?id=5690323227377664
//
// Write a function which takes an integer and convert to string as:
// 1 - A 0001
// 2 - B 0010
// 3 - AA 0011
// 4 - AB 0100
// 5 - BA 0101
// 6 - BB 0110
// 7 - AAA 0111
// 8 - AAB 1000
// 9 - ABA 10... | mit | C# | |
336b58d8ba6ba22a3d963a0ccd9fcbef091f3478 | Create ObjectPool.cs | efruchter/UnityUtilities | Patterns/ObjectPool.cs | Patterns/ObjectPool.cs | using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Assertions;
using Object = UnityEngine.Object;
namespace Patterns
{
/// <summary>
/// Object pool capable of sophisticated instantiation policies.
/// </summary>
[Serializable]
public sealed class ObjectPool
{
public GameObjec... | mit | C# | |
4b86f71c86e78d2631cbb1656356fd45fa122b6a | Add IUserRepository interface | denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs | src/Diploms.Core/IUserRepository.cs | src/Diploms.Core/IUserRepository.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Diploms.Core
{
public interface IUserRepository: IRepository<User>
{
Task<User> GetUserAsync(string login);
}
} | mit | C# | |
641df2682b05f9ab212713ff5b9c93adf9e7bb2c | Fix build due to recent GitHub PR merge https://github.com/dotnet/corefx/pull/5151 | zhenlan/corefx,ptoonen/corefx,DnlHarvey/corefx,yizhang82/corefx,richlander/corefx,Petermarcu/corefx,BrennanConroy/corefx,stone-li/corefx,rubo/corefx,SGuyGe/corefx,fgreinacher/corefx,tstringer/corefx,jlin177/corefx,rjxby/corefx,janhenke/corefx,lggomez/corefx,mmitche/corefx,jhendrixMSFT/corefx,rubo/corefx,rahku/corefx,ra... | src/System.Net.WebSockets.Client/src/System/Net/WebSockets/WebSocketHandle.WinRT.cs | src/System.Net.WebSockets.Client/src/System/Net/WebSockets/WebSocketHandle.WinRT.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics;
using System.Net;
using Sy... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics;
using System.Net;
using Sy... | mit | C# |
e9fb11087f89b2d150a9e5c2562da148cfb16a78 | remove unnecessary commeneted code | haoyk/IdentityServer4.Samples,MichaelPetrinolis/IdentityServer4.Samples,IdentityServer/IdentityServer4.Samples,IdentityServer/IdentityServer4.Samples,haoyk/IdentityServer4.Samples,IdentityServer/IdentityServer4.Samples,haoyk/IdentityServer4.Samples,MichaelPetrinolis/IdentityServer4.Samples,haoyk/IdentityServer4.Samples... | Quickstarts/6_AspNetIdentity/src/ResourceOwnerClient/Program.cs | Quickstarts/6_AspNetIdentity/src/ResourceOwnerClient/Program.cs | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using IdentityModel.Client;
using Newtonsoft.Json.Linq;
using System;
using System.Net.Http;
namespace ResourceOwnerClient
{
public class... | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using IdentityModel.Client;
using Newtonsoft.Json.Linq;
using System;
using System.Net.Http;
namespace ResourceOwnerClient
{
public class... | apache-2.0 | C# |
49185967bab68f3022d101fa1f7c46b0056a9ddb | Create IWebClient.cs | ungood/DotaBird | DotaBird.Core/Net/IWebClient.cs | DotaBird.Core/Net/IWebClient.cs |
public interface IWebClient {
string Get(Uri uri);
}
| apache-2.0 | C# | |
a06032d96eec260f3cda48131e99c5dfb485aa28 | Add the most bare bones non-shared region module example. Not active unless the correct line is uncommented. | RavenB/opensim,bravelittlescientist/opensim-performance,BogusCurry/arribasim-dev,TomDataworks/opensim,TomDataworks/opensim,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,rryk/omp-server,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,allquixotic/opensim-autobackup,ft-/arribasim-dev-extras,ft-/arribasim-dev-extras,ft-/a... | OpenSim/Region/OptionalModules/Example/BareBonesNonShared/BareBonesNonSharedModule.cs | OpenSim/Region/OptionalModules/Example/BareBonesNonShared/BareBonesNonSharedModule.cs | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | bsd-3-clause | C# | |
32136be787f30a7ec70ae7698e6dc252de779870 | Add unit tests for MockReliableStateManager | loekd/ServiceFabric.Mocks | test/ServiceFabric.Mocks.Tests/MocksTests/MockReliableStateManagerTests.cs | test/ServiceFabric.Mocks.Tests/MocksTests/MockReliableStateManagerTests.cs | using Microsoft.ServiceFabric.Data.Collections;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Threading.Tasks;
namespace ServiceFabric.Mocks.Tests.MocksTests
{
[TestClass]
public class MockReliableStateManagerTests
{
[TestMethod]
public async Task GetOrAddAsync_Dictionar... | mit | C# | |
9a962e599bfc84f3e2a0da403e6e2116aaaa6491 | Create MapGenerator.cs | Nakou/UnityMapGenerator | MapGenerator.cs | MapGenerator.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
public class MapGenerator : MonoBehaviour {
int[,] map;
System.Random pRandGen;
public bool useRandomSeed = false;
public string seed = "";
public int chunckLength;
public int maxAltitude;
public int minAltitude;
pub... | mit | C# | |
522e1696315baaec71e9b4a7c19b7a2afd48e9a7 | Add Heading | praeclarum/Ooui,praeclarum/Ooui,praeclarum/Ooui | Ooui/Heading.cs | Ooui/Heading.cs | using System;
namespace Ooui
{
public class Heading : Element
{
public Heading (int level = 1)
: base ("h" + level)
{
}
public Heading (int level, string text)
: this (level)
{
Text = text;
}
public Heading (string te... | mit | C# | |
cc9edd8ed06edb3dfb1ec6a0db1a7f2f5fa57fe1 | Add a extensible enumeration type | mastertnt/XRay | XSystem/Enumeration.cs | XSystem/Enumeration.cs | // ***********************************************************************
// Assembly : XApp.Core
// Author : nbaudrey
// Created : 12-13-2018
//
// Last Modified By : nbaudrey
// Last Modified On : 12-13-2018
// ***********************************************************************
// <co... | mit | C# | |
70e49cbee887215d68e5272aa3ed6c571d6610c4 | Disable name analysis of linked resource to reduce amount of false warning | arpitpanwar/ConfuserEx,timnboys/ConfuserEx,fretelweb/ConfuserEx,farmaair/ConfuserEx,apexrichard/ConfuserEx,jbeshir/ConfuserEx,modulexcite/ConfuserEx,engdata/ConfuserEx,Immortal-/ConfuserEx,Desolath/ConfuserEx3,Desolath/Confuserex,manojdjoshi/ConfuserEx,KKKas/ConfuserEx,AgileJoshua/ConfuserEx,yeaicc/ConfuserEx | Confuser.Renamer/Analyzers/ResourceAnalyzer.cs | Confuser.Renamer/Analyzers/ResourceAnalyzer.cs | using System;
using System.Linq;
using System.Text.RegularExpressions;
using Confuser.Core;
using Confuser.Renamer.References;
using dnlib.DotNet;
namespace Confuser.Renamer.Analyzers {
internal class ResourceAnalyzer : IRenamer {
static readonly Regex ResourceNamePattern = new Regex("^(.*)\\.resources$");
publ... | using System;
using System.Linq;
using System.Text.RegularExpressions;
using Confuser.Core;
using Confuser.Renamer.References;
using dnlib.DotNet;
namespace Confuser.Renamer.Analyzers {
internal class ResourceAnalyzer : IRenamer {
static readonly Regex ResourceNamePattern = new Regex("^(.*)\\.resources$");
publ... | mit | C# |
27f7ce6039748f72361eed8ff28050cbed43447f | Create test.cs | pneve-nmqa/testrepo | test.cs | test.cs | test
| bsd-2-clause | C# | |
fa567e061a9978ad90728b7994fe3792d0dabe5e | Add C# file | jpsingleton/ANCLAFS | Empty.cs | Empty.cs | cc0-1.0 | C# | ||
4f7f51a2ff13c0f160627a995d8bf588a3ff17cb | Add rule 'HasNewLinesAtStartOfDocument' | jeremyabbott/codeformatter,hickford/codeformatter,srivatsn/codeformatter,dotnet/codeformatter,shiftkey/Octokit.CodeFormatter,BradBarnich/codeformatter,michaelcfanning/codeformatter,dotnet/codeformatter,shiftkey/codeformatter,weltkante/codeformatter,jaredpar/codeformatter,twsouthwick/codeformatter,mmitche/codeformatter,... | src/Microsoft.DotNet.CodeFormatting/Rules/HasNewLinesAtStartOfDocumentFormattingRule.cs | src/Microsoft.DotNet.CodeFormatting/Rules/HasNewLinesAtStartOfDocumentFormattingRule.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under MIT. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft... | mit | C# | |
4feb43ec8ec81deb9152f8c878f87ed3c4d30851 | Add Eric Lippert's backport of Zip() to .NET 3.5. | zhukaixy/open3mod,dayo7116/open3mod,dayo7116/open3mod,zhukaixy/open3mod,acgessler/open3mod,acgessler/open3mod | open3mod/LinqZipNet4Backport.cs | open3mod/LinqZipNet4Backport.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace open3mod
{
// Zip() was added in .NET 4.0.
// http://blogs.msdn.com/b/ericlippert/archive/2009/05/07/zip-me-up.aspx
public static class LinqZipNet4Backport
{
public static IEnumerable<TResult> Zip<T... | bsd-3-clause | C# | |
29291f72545a2636b95f4e0f637855f6fa9835ba | Add tests for F.Property | farity/farity | Farity.Tests/PropertyTests.cs | Farity.Tests/PropertyTests.cs | using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace Farity.Tests
{
public class PropertyTests
{
[Fact]
public void PropertyReturnsPropertyOfObject()
{
const int expected = 2;
var data = new List<int> {1, 2};
var countProperty ... | mit | C# | |
095c2d86482e539b7808ee276a233e0f88314504 | fix cherry-pick merge | linq2db/linq2db,MaceWindu/linq2db,linq2db/linq2db,MaceWindu/linq2db,LinqToDB4iSeries/linq2db,LinqToDB4iSeries/linq2db | Source/LinqToDB/DataProvider/MySql/MySqlTools.cs | Source/LinqToDB/DataProvider/MySql/MySqlTools.cs | using System;
using System.Collections.Generic;
using System.Data;
using System.Reflection;
using JetBrains.Annotations;
namespace LinqToDB.DataProvider.MySql
{
using Data;
public static class MySqlTools
{
static readonly MySqlDataProvider _mySqlDataProvider = new MySqlDataProvider();
static ... | using System;
using System.Collections.Generic;
using System.Data;
using System.Reflection;
using JetBrains.Annotations;
namespace LinqToDB.DataProvider.MySql
{
using Data;
public static class MySqlTools
{
static readonly MySqlDataProvider _mySqlDataProvider = new MySqlDataProvider();
static ... | mit | C# |
1abcac83ee4481ffa5779d407fedff3c129c1fa4 | Add some method tests. | Yttrmin/CSharpTo2600,Yttrmin/CSharpTo2600,Yttrmin/CSharpTo2600 | VCSTests/MethodTests.cs | VCSTests/MethodTests.cs | using NUnit.Framework;
using VCSCompiler;
using static VCSTests.TestUtil;
namespace VCSTests
{
[TestFixture]
public class MethodTests
{
[Test]
public void MethodsMustNotBeInstance()
{
var source =
@"
public static class Program
{
public static void Main()
{
}
public void Foo()
{
}
}";
... | mit | C# | |
55a6f6cbfb6f2876d46706c39597e8fa5b1d1342 | Add extension method to retrive the CacheSetting attribute value | ZocDoc/ZocMon,ZocDoc/ZocMon,ZocDoc/ZocMon,modulexcite/ZocMon,modulexcite/ZocMon,modulexcite/ZocMon | source/ZocMonLib.Web/Framework/CacheSetting.cs | source/ZocMonLib.Web/Framework/CacheSetting.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
namespace ZocMonLib.Web
{
public enum CacheSetting
{
[Description("public")]
Public,
[Description("private")]
Private,
[Description("no-c... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
namespace ZocMonLib.Web
{
public enum CacheSetting
{
[Description("public")]
Public,
[Description("private")]
Private,
[Description("no-cache")]
... | apache-2.0 | C# |
c51456e3b847fe873330ee607335f95fbc038193 | Update unit test | WaltChen/NDatabase,WaltChen/NDatabase | test/NDatabase/Odb/Test/TestTypeConverter.cs | test/NDatabase/Odb/Test/TestTypeConverter.cs | using System;
using NDatabase.Odb.Core.Layers.Layer2.Meta;
using NUnit.Framework;
namespace Test.Odb.Test
{
/// <author>olivier s</author>
[TestFixture]
public class TestTypeConverter : ODBTest
{
[Test]
public virtual void Test2()
{
AssertEquals(OdbType.... | apache-2.0 | C# | |
f6b677cc155324b179671893dd6bb61e3be6744f | Update StaticContentHelper.cs | AlexPuiu/Nancy,AcklenAvenue/Nancy,grumpydev/Nancy,JoeStead/Nancy,nicklv/Nancy,daniellor/Nancy,damianh/Nancy,jonathanfoster/Nancy,felipeleusin/Nancy,asbjornu/Nancy,sroylance/Nancy,adamhathcock/Nancy,thecodejunkie/Nancy,davidallyoung/Nancy,hitesh97/Nancy,duszekmestre/Nancy,grumpydev/Nancy,ayoung/Nancy,ayoung/Nancy,cgourl... | src/Nancy/Conventions/StaticContentHelper.cs | src/Nancy/Conventions/StaticContentHelper.cs | namespace Nancy.Conventions
{
using System;
/// <summary>
/// Nancy static convention helper
/// </summary>
public static class StaticContentHelper
{
/// <summary>
/// Extension method for NancyConventions
///
/// conventions.Static((File, Directory... | namespace Nancy.Conventions
{
using System;
/// <summary>
/// Nancy static convention helper
/// </summary>
public static class StaticContentHelper
{
/// <summary>
/// Extension method for NancyConventions
///
/// conventions.Static((File, Directory... | mit | C# |
423d78df18c6bc97f0b43cafdbb9dd0e464e7859 | Test of integration | Red-Folder/WebCrawl-Functions | WebCrawlResults/run.csx | WebCrawlResults/run.csx | //#r "Newtonsoft.Json"
using System.Net;
using Microsoft.Azure.Documents;
using Microsoft.Azure.Documents.Client;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Net.Http.Headers;
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
{
// Hello World - integratio... | //#r "Newtonsoft.Json"
using System.Net;
using Microsoft.Azure.Documents;
using Microsoft.Azure.Documents.Client;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Net.Http.Headers;
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
{
log.Info($"C# HTTP trigg... | mit | C# |
544117a49495a97c297f0253b0fcfa1725b9ce74 | Add test coverage of accuracy formatting function | peppy/osu-new,peppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu | osu.Game.Tests/NonVisual/FormatUtilsTest.cs | osu.Game.Tests/NonVisual/FormatUtilsTest.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Game.Utils;
namespace osu.Game.Tests.NonVisual
{
[TestFixture]
public class FormatUtilsTest
{
[TestCase(0, "0.00%")]... | mit | C# | |
a9838fca325f10824b65b963e6fc7cb221483087 | add Post model. | Taylorgrohs/.NET-SoloProject,Taylorgrohs/.NET-SoloProject,Taylorgrohs/.NET-SoloProject | SoloProject/src/SoloProject/Models/Post.cs | SoloProject/src/SoloProject/Models/Post.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SoloProject.Models
{
public class Post
{
[Key]
public int PostId { get; set; }
public string Content { get; set; }
public virtual ICollection<Comment> Comments { get; set;... | mit | C# | |
ff8265be9d7ae3d92981c81041c4f6300da354ad | Add LoadNextSceneAfterPlayingAnimation.cs | felladrin/unity-scripts,felladrin/unity3d-scripts | LoadNextSceneAfterPlayingAnimation.cs | LoadNextSceneAfterPlayingAnimation.cs | using UnityEngine;
using UnityEngine.SceneManagement;
using System.Collections;
public class LoadNextSceneAfterPlayingAnimation : MonoBehaviour
{
public int AnimationClipIndex = 0;
IEnumerator Start ()
{
Animator animator = GetComponent<Animator> ();
yield return new WaitForSeconds (animator.runtimeAnimatorCo... | mit | C# | |
be51ee4ed5b266da78be77df3c44e19d1f3d3122 | Implement MultiplayerComposite, replaces RoomBindings | 2yangk23/osu,smoogipooo/osu,UselessToucan/osu,naoey/osu,naoey/osu,ZLima12/osu,peppy/osu-new,NeoAdonis/osu,johnneijzen/osu,UselessToucan/osu,johnneijzen/osu,NeoAdonis/osu,DrabWeb/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,ZLima12/osu,DrabWeb/osu,ppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu,2yangk23/osu,smoogipoo/osu,UselessTo... | osu.Game/Screens/Multi/MultiplayerComposite.cs | osu.Game/Screens/Multi/MultiplayerComposite.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Configuration;
using osu.Framework.Graphics.Contain... | mit | C# | |
9fecfa80ffe5abdc18886b4bf24e68723f0daf91 | Create tests.cs | veonua/youi_exercise | tests.cs | tests.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace youiTest.Tests
{
[TestClass()]
public class AppTests
{
[TestMethod()]
public void AddressTest()
{
... | apache-2.0 | C# | |
91a738f3d70a66bc965370df83d3407ed1a8dca5 | Add too few players exception | ashfordl/cards | CardGames/TooFewPlayersException.cs | CardGames/TooFewPlayersException.cs | // TooFewPlayersException.cs
// <copyright file="TooFewPlayersException.cs"> This code is protected under the MIT License. </copyright>
using System;
namespace CardGames
{
/// <summary>
/// An exception raised when TooFewPlayers are added to a game.
/// </summary>
[Serializable]
public c... | mit | C# | |
3a94b882d16d1d02200b533c6e0ee89aba6eeee1 | Add S3ObjectTests | carbon/Amazon | src/Amazon.S3.Tests/Models/S3ObjectTests.cs | src/Amazon.S3.Tests/Models/S3ObjectTests.cs | using System;
using System.Net;
using System.Net.Http;
using System.Text;
using Xunit;
namespace Amazon.S3.Tests
{
public class S3ObjectTests
{
[Fact]
public void CanConstructFromHttpResponse()
{
var response = GetMockResponse();
using var blob = new S3Object(... | mit | C# | |
554098d0def8ca55b241070c015bd429970c35cf | Update Program.cs | wieslawsoltes/AvaloniaBehaviors,wieslawsoltes/AvaloniaBehaviors | samples/DragAndDropSample/Program.cs | samples/DragAndDropSample/Program.cs | using System;
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.ReactiveUI;
using Avalonia.Xaml.Interactions.Core;
using Avalonia.Xaml.Interactivity;
namespace DragAndDropSample;
class Program
{
// Initialization code. Don't use any Avalonia, third-party APIs or any
// Synchronizat... | using System;
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.ReactiveUI;
using Avalonia.Xaml.Interactions.Core;
using Avalonia.Xaml.Interactivity;
namespace DragAndDropSample;
class Program
{
// Initialization code. Don't use any Avalonia, third-party APIs or any
// Synchronizat... | mit | C# |
deee320f2f3d2629e89128a2c2588f36f76251de | fix camera interface | upstreamfall/gk3d | SharpGL_project_1/SharpGL_project_1/Quaternion.cs | SharpGL_project_1/SharpGL_project_1/Quaternion.cs | using System;
namespace SharpGL_project_1
{
public class Quaternion
{
public Quaternion(double p1, double p2, double p3, double p4)
{
X = p1;
Y = p2;
Z = p3;
W = p4;
}
public double X { get; set; }
public double Y { get;... | mit | C# | |
3e75bc492af7bf26ceecb60e2dbe6e7b23a467ed | Solve Simple Sum 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/1003/1003.cs | solutions/uri/1003/1003.cs | using System;
using System.Collections.Generic;
class Solution {
static void Main() {
int a, b;
string val;
val = Console.ReadLine();
a = Convert.ToInt32(val);
val = Console.ReadLine();
b = Convert.ToInt32(val);
Console.Write("SOMA = {0}{1}", a + b, Environ... | mit | C# | |
dc02564f97298d1b3c616052de9b3ef686ffadcc | Add missing file | zooba/PTVS,jkorell/PTVS,DEVSENSE/PTVS,crwilcox/PTVS,dut3062796s/PTVS,Microsoft/PTVS,modulexcite/PTVS,Habatchii/PTVS,zooba/PTVS,crwilcox/PTVS,juanyaw/PTVS,DinoV/PTVS,dut3062796s/PTVS,int19h/PTVS,dut3062796s/PTVS,huguesv/PTVS,Microsoft/PTVS,jkorell/PTVS,xNUTs/PTVS,bolabola/PTVS,gilbertw/PTVS,bolabola/PTVS,mlorbetske/PTVS... | Python/Product/PythonTools/PythonTools/IPythonConfigurableInterpreterFactoryProvider.cs | Python/Product/PythonTools/PythonTools/IPythonConfigurableInterpreterFactoryProvider.cs | /* ****************************************************************************
*
* Copyright (c) Microsoft Corporation.
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A
* copy of the license can be found in the License.html file at the root of this distribution... | apache-2.0 | C# | |
36f1efa7bcc51c5bcbf0d42864f8d7214f25c455 | Add ExpandIconEraser. | cube-soft/Cube.Net,cube-soft/Cube.Net,cube-soft/Cube.Net | Applications/Rss/Reader/Xui/ExpandIconEraser.cs | Applications/Rss/Reader/Xui/ExpandIconEraser.cs | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, 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-2.0 | C# | |
5d574936d52f87dbeb374f9a2a8761064fe53f6e | Create PrzemyslawKlys.cs | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/PrzemyslawKlys.cs | src/Firehose.Web/Authors/PrzemyslawKlys.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 PrzemyslawKlys : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Przemyslaw";... | mit | C# | |
27a18352330486d9837a01f272b513c084f74dc4 | Remove invalid parentheses | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | LeetCode/remote/remove_invalid_parentheses.cs | LeetCode/remote/remove_invalid_parentheses.cs | // https://leetcode.com/problems/remove-invalid-parentheses/
//
// Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results.
//
// Note: The input string may contain letters other than the parentheses ( and ).
using System;
using System.Collections.Gen... | mit | C# | |
89b85135c2cf717acaa39800d794657c9ad8db8a | Add binding for SecPKCS12Import (required to import into a keychain) | jorik041/maccore,cwensley/maccore,mono/maccore | src/Security/ImportExport.cs | src/Security/ImportExport.cs | //
// ImportExport.cs
//
// Authors:
// Sebastien Pouliot <sebastien@xamarin.com>
//
// Copyright 2011 Xamarin Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restri... | apache-2.0 | C# | |
8ea18c07df9494cd1ae4c5e8db528cb1688ffb2a | Create SignalRTelemetryProcessor.cs | dpvreony/Dhgms.AspNetCoreContrib,dpvreony/Dhgms.AspNetCoreContrib,dpvreony/Dhgms.AspNetCoreContrib | src/Dhgms.AspNetCoreContrib.Example.WebSite/Features/Apm/ApplicationInsights/SignalRTelemetryProcessor.cs | src/Dhgms.AspNetCoreContrib.Example.WebSite/Features/Apm/ApplicationInsights/SignalRTelemetryProcessor.cs | using Microsoft.ApplicationInsights.DataContracts;
namespace Dhgms.AspNetCoreContrib.Example.WebSite.Features.Apm.ApplicationInsights
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.ApplicationInsights.Channel;
using Microsoft.... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.