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 |
|---|---|---|---|---|---|---|---|---|
9ba17b4a0e2f20ee491e40f4ed32124af2d527a6 | Create ProductShipping.cs | daniela1991/hack4europecontest | ProductShipping.cs | ProductShipping.cs | using System;
namespace Cdiscount.OpenApi.ProxyClient.Contract.Common
{
/// <summary>
/// Product shipping information
/// </summary>
public class ProductShipping
{
/// <summary>
/// Shipping carrier name
/// </summary>
public string Name { get; set; }
... | mit | C# | |
75083967298e41fe876621ef4c527dca50500d30 | Add missing file to repository | nunit/nunit-console,nunit/nunit-console,nunit/nunit-console | NUnitConsole/src/nunit.engine/Services/InternalTraceService.cs | NUnitConsole/src/nunit.engine/Services/InternalTraceService.cs | // ***********************************************************************
// Copyright (c) 2012 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, incl... | mit | C# | |
3ae280fdb102eba587050a753f64d531232f1031 | Define System.IO.StreamWriter | jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm | stdlib/system-io/StreamWriter.cs | stdlib/system-io/StreamWriter.cs | using System.Text;
namespace System.IO
{
public class StreamWriter : TextWriter
{
public StreamWriter(Stream stream)
: this(stream, Encoding.UTF8)
{ }
public StreamWriter(Stream stream, Encoding encoding)
{
this.BaseStream = stream;
this.code... | mit | C# | |
62e02403975c538305adce7a59d8296ce7157573 | Create Variable.cs | irtezasyed007/CSC523-Game-Project | Algorithms/Variable.cs | Algorithms/Variable.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CSC_523_Game
{
class Variable
{
private char var;
private bool truthValue;
public Variable(char c)
{
var = c;
this.truthValue = true;
}
publi... | mit | C# | |
c7320b264e116ff54f0bdaa5299d6b27305f9305 | Add Batch class | goshippo/shippo-csharp-client | Shippo/Batch.cs | Shippo/Batch.cs | using System;
using Newtonsoft.Json;
namespace Shippo {
[JsonObject (MemberSerialization.OptIn)]
public class Batch : ShippoId {
[JsonProperty (PropertyName = "object_status")]
public object ObjectStatus { get; set; }
[JsonProperty (PropertyName = "object_created")]
public obje... | apache-2.0 | C# | |
af62c107b126e1c82457af08f601246382b5343d | Add ignored BackupSchedule file. | Watts-Energy/Watts.Azure | Watts.Azure.Common/Backup/BackupSchedule.cs | Watts.Azure.Common/Backup/BackupSchedule.cs | namespace Watts.Azure.Common.Backup
{
using System;
public class BackupSchedule
{
/// <summary>
/// The frequency with which to switch the table target.
/// </summary>
public TimeSpan SwitchTargetStorageFrequency { get; set; }
/// <summary>
/// The frequency... | mit | C# | |
160718e333143b7b199162ba45b9ba254fc5b91c | Add HighResolutionTimer | unosquare/swan | src/Unosquare.Swan/Components/HighResolutionTimer.cs | src/Unosquare.Swan/Components/HighResolutionTimer.cs | namespace Unosquare.Swan.Components
{
using System;
using System.Diagnostics;
/// <summary>
/// Provides access to a high-resolution, time measuring device.
/// </summary>
/// <seealso cref="Stopwatch" />
public class HighResolutionTimer : Stopwatch
{
/// <summary>
... | mit | C# | |
e1f9e3807ff6cc13b144af94e949617f5ed2a09e | Add DebuggerDisplay attr to Local | Arthur2e5/dnlib,modulexcite/dnlib,ZixiangBoy/dnlib,yck1509/dnlib,0xd4d/dnlib,picrap/dnlib,kiootic/dnlib,ilkerhalil/dnlib,jorik041/dnlib | src/DotNet/Emit/Local.cs | src/DotNet/Emit/Local.cs | using System.Diagnostics;
namespace dot10.DotNet.Emit {
/// <summary>
/// A method local
/// </summary>
[DebuggerDisplay("{typeSig}")]
public sealed class Local {
ITypeSig typeSig;
/// <summary>
/// Gets/sets the type of the local
/// </summary>
public ITypeSig Type {
get { return typeSig; }
set... | namespace dot10.DotNet.Emit {
/// <summary>
/// A method local
/// </summary>
public sealed class Local {
ITypeSig typeSig;
/// <summary>
/// Gets/sets the type of the local
/// </summary>
public ITypeSig Type {
get { return typeSig; }
set { typeSig = value; }
}
/// <summary>
/// Constructo... | mit | C# |
c1977b650b56b5ed8c9b5c5dc9d7013b8da47747 | Add utility class (mapped from Java SDK) | stoiveyp/alexa-skills-dotnet,timheuer/alexa-skills-dotnet | Alexa.NET/Request/SkillRequestUtility.cs | Alexa.NET/Request/SkillRequestUtility.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Alexa.NET.Request.Type;
namespace Alexa.NET.Request
{
public static class SkillRequestUtility
{
public static string GetIntentName(this SkillRequest request)
{
return request.Request is Inte... | mit | C# | |
4aaec4ad61bbbfe56d18cd01269b5cf88df56e4b | update parse proxy with async methods | jobeland/DistributedNetworkTrainingStorage | StorageAPI/StorageAPI/Proxies/Parse/ParseProxy.cs | StorageAPI/StorageAPI/Proxies/Parse/ParseProxy.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using ArtificialNeuralNetwork;
using ArtificialNeuralNetwork.Factories;
using ArtificialNeuralNetwork.Genes;
using NeuralNetwork.GeneticAlgorithm;
using Newtonsoft.Json;
using Parse;
namespace StorageAPI.Proxies.Parse
{
public class ParseProxy : ISto... | mit | C# | |
11e8868cd9f9b41c2fa8b1d36b1f124adb5c4ba6 | Tweak TryGetHeaderName test | krytarowski/corefx,wtgodbe/corefx,rahku/corefx,richlander/corefx,wtgodbe/corefx,weltkante/corefx,ravimeda/corefx,benpye/corefx,nbarbettini/corefx,cydhaselton/corefx,alphonsekurian/corefx,stephenmichaelf/corefx,the-dwyer/corefx,Petermarcu/corefx,rubo/corefx,shimingsg/corefx,mmitche/corefx,nbarbettini/corefx,zhenlan/core... | src/Common/tests/Tests/System/Net/HttpKnownHeaderNamesTests.cs | src/Common/tests/Tests/System/Net/HttpKnownHeaderNamesTests.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.Collections.Generic;
using System.Linq;
using System.Net;
using System.Reflection;
using Xunit;
name... | // 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.Collections.Generic;
using System.Linq;
using System.Net;
using System.Reflection;
using Xunit;
name... | mit | C# |
db9ee60647f08ddb7b2a83bd1f7c52e5c34cb0aa | Add serviceable attribute to projects. | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNet.Session/Properties/AssemblyInfo.cs | src/Microsoft.AspNet.Session/Properties/AssemblyInfo.cs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Reflection;
[assembly: AssemblyMetadata("Serviceable", "True")] | apache-2.0 | C# | |
fdd8884d4bbe2d16af0aabfcb270ac80b0b3be54 | Save the Prisoner | shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms | savePrisoner.cs | savePrisoner.cs | # File : savePrisoner.cs
# Author : Shree Harsha Sridharamurthy
# Author email : s.shreeharsha@gmail.com
# Disclaimer : This program is solely created by Shree Harsha for academic purposes.
# For use by concerned personnel only. Not to be copied in full or in part.
# Program... | mit | C# | |
41af99edae401623e56a3bc639fb11047b306dcd | Solve Salary with Bonus 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/1009/1009.cs | solutions/uri/1009/1009.cs | using System;
class Solution {
static void Main() {
double b, c;
_ = Console.ReadLine();
b = Convert.ToDouble(Console.ReadLine());
c = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("TOTAL = R$ {0:F2}", b + c * 0.15);
}
}
| mit | C# | |
b31f36328bd5954f5ea9a9db537d59c113ba8a6b | Create Triggers_Collision_2_Destroy.cs | Tech-Curriculums/101-GameDesign-2D-GameDesign-With-Unity | AngryHipsters/Triggers_Collision_2_Destroy.cs | AngryHipsters/Triggers_Collision_2_Destroy.cs | using UnityEngine;
using System.Collections;
public class Triggers_Collision_2_Destroy : MonoBehaviour {
void OnTriggerEnter2D (Collider2D other)
{
if (other.gameObject.tag == "Player")
{
Destroy(this.gameObject);
audio.Play();
}
}
}
| mit | C# | |
17d923b1f173a2b13293bfacf56399a3ea9453e7 | Add API service to handle save and load of API keys | n01d/Welcome-Kiosk | ReceptionKiosk/Services/APISettingsService.cs | ReceptionKiosk/Services/APISettingsService.cs | using System;
using System.Threading.Tasks;
using ReceptionKiosk.Helpers;
using Windows.Storage;
using Windows.UI.Xaml;
namespace ReceptionKiosk.Services
{
public class APISettingsService
{
private string faceAPI;
private string bingAPI;
public APISettingsService()
{
... | mit | C# | |
d99910fe6c37c12110f1522f991e2274bb424507 | Add tests for new provider base class | ocoanet/moq4,Moq/moq4 | Moq.Tests/LookupOrFallbackDefaultValueProviderFixture.cs | Moq.Tests/LookupOrFallbackDefaultValueProviderFixture.cs | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Xunit;
namespace Moq.Tests
{
public class LookupOrFallbackDefaultValueProviderFixture
{
[Theory]
[InlineData(typeof(int), default(int))] // plain value type
[InlineData(typeof(float), default(float))] // plain value type
[In... | bsd-3-clause | C# | |
a7177bccbc7c772ccd5c42eba0fb5ac11bce92af | Add ReflectionHelper class | copygirl/EntitySystem | src/Utility/ReflectionHelper.cs | src/Utility/ReflectionHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace EntitySystem.Utility
{
public static class ReflectionHelper
{
static readonly Dictionary<Type, string> _friendlyNameLookup =
new Dictionary<Type, string>() {
{ typeof(void), "void" ... | mit | C# | |
34532b96828cdc5f9c26913d79f4ace0507ede57 | Add missing PartsDb base class | jnwatts/cs320_project2_group11,jnwatts/cs320_project2_group11 | Model/partsdb.cs | Model/partsdb.cs | using System;
using System.Data;
using System.Collections.Generic;
public delegate void ErrorHandler(string message, Exception exception);
public delegate void PartTypesHandler(List<PartType> partTypes);
public delegate void PartsHandler(PartCollection part);
public delegate void PartHandler(Part part);
public abstr... | apache-2.0 | C# | |
f2b624018b36c286a1e992f3cbfc70fe8f1170c4 | Test for async graph updates from gui block/connector | Skoth/KSPCommEngr | CommEngrTest/CommBlockTests.cs | CommEngrTest/CommBlockTests.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using KSPCommEngr;
namespace CommEngrTest
{
[TestClass]
public class CommBlockTests
{
[TestMethod]
public void UpdateGraphOnDragStop()
{
Graph graph = new Graph(new int[,] {
{... | mit | C# | |
9b641e3227a8481026fe9fc19ba93cde73faa079 | Create problem005.cs | mvdiener/project_euler,mvdiener/project_euler | CSharp/problem005.cs | CSharp/problem005.cs | //2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.
//What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?
using System;
using System.Collections.Generic;
namespace Problem005
{
class MainClass
{
public ... | mit | C# | |
5c621585b75fe245b15f848597c6b01f04051730 | Add StringExtensions.GetMD5Hash | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.Common/Utilities/String.GetMD5Hash.cs | source/Nuke.Common/Utilities/String.GetMD5Hash.cs | // Copyright 2018 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
namespace Nuke.Common.Utilities
{
public static partial class StringExtensions
{
... | mit | C# | |
93fd5c44d46d3bba69d0eb49091d1b3624070dcc | Implement Shell Sort | cschen1205/cs-algorithms,cschen1205/cs-algorithms | Algorithms/Sorting/ShellSort.cs | Algorithms/Sorting/ShellSort.cs | using System;
using Algorithms.Utils;
namespace Algorithms.Sorting
{
public class ShellSort
{
public static void Sort<T>(T[] a, Comparison<T> compare)
{
var n = a.Length;
var h = 1;
while (h < n / 3)
{
h = 3 * h + 1;
}... | mit | C# | |
621480af0214f2e4e86199a0f667b70d431c895b | Add simple (non-automated) test | peppy/osu,ZLima12/osu,2yangk23/osu,smoogipoo/osu,UselessToucan/osu,2yangk23/osu,ZLima12/osu,smoogipoo/osu,EVAST9919/osu,peppy/osu,NeoAdonis/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu-new,UselessToucan/osu,DrabWeb/osu,peppy/osu,johnneijzen/osu,DrabWeb/osu,naoey/osu,NeoAdonis/osu,NeoAdonis/osu,naoey/osu,naoey/osu... | osu.Game.Tests/Visual/TestCaseDrawableDate.cs | osu.Game.Tests/Visual/TestCaseDrawableDate.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 System;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Game.Graphics;
using osuTK;
using osu... | mit | C# | |
937e76334fccb09dadb6e9147201727cea52be19 | Use Task for back-run in .Net Core | Forward2015/Download,Forward2015/Download,Forward2015/Download,Forward2015/Download | DotNetCore/TaskHelper.cs | DotNetCore/TaskHelper.cs | public class TaskHelper{
public static BeginTask(){
Task.Factory.StartNew(()=>{
//...
});
}
}
| mit | C# | |
a653b061d6576255c8992f82d74a19ae48f399cd | add TerrainTreeReplacer | UnityCommunity/UnityLibrary | Assets/Scripts/Tools/TerrainTreeReplacer.cs | Assets/Scripts/Tools/TerrainTreeReplacer.cs | using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public class TerrainTreeReplacer : EditorWindow
{
private const string RootObjectName = "TREES_CONVERTED";
[MenuItem("Window/Tools/Terrain Tree Replacer")]
public static void ShowWindow()
{
... | mit | C# | |
7f9aa33891732aad8ae2df29590fbca6afe5a030 | Create Problem50.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem50.cs | Problems/Problem50.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler.Problems
{
class Problem50
{
private long upper;
private Sieve s;
public Problem50()
{
upper = 1000000;
//upper = 1000;
s = new Sieve... | mit | C# | |
3b6bbea22864b6af5de4578766f8692fba0fa7a4 | Create Rope.cs | Onastick/Unity2D | Rope.cs | Rope.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEditor;
public class Rope : MonoBehaviour {
Rigidbody2D[] rigidbodies;
JointMotor2D motor;
JointAngleLimits2D limits;
Vector2 anchorDistance;
public Sprite SpriteImage;
public Material Material;... | cc0-1.0 | C# | |
288b0c7f2c90a0039573b95c88d7390f58741e80 | Create plikcs.cs | wroclawZETO/DokumentyPacjenci | plikcs.cs | plikcs.cs | int x = 1;
| mit | C# | |
f52b7ae2f6fc86d545dedb493f8e6c6783e397fb | Create dice.cs | orwa1902/code-exemples,orwa1902/code-exemples,orwa1902/code-exemples,orwa1902/code-exemples,orwa1902/code-exemples | dice.cs | dice.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Dice
{
class Dice
{
protected int sides;
public int nbr;
public int side
{
get {return sides;}
set{if (sides <= 0){
... | apache-2.0 | C# | |
0fd850b9123cb64627e6e0a1a59264b7f01e426e | Add Q205 | txchen/localleet | csharp/Q205_IsomorphicStrings.cs | csharp/Q205_IsomorphicStrings.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
// Given two strings s and t, determine if they are isomorphic.
//
// Two strings are isomorphic if the characters in s can be replaced to get t.
//
// All occurrences of a character must be rep... | mit | C# | |
0aaab95aff574b4f7331d78b963e286b5ebb45bf | add B2LifecycleRule | NebulousConcept/b2-csharp-client | b2-csharp-client/B2.Client/Rest/B2LifecycleRule.cs | b2-csharp-client/B2.Client/Rest/B2LifecycleRule.cs | using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.Serialization;
namespace B2.Client.Rest
{
/// <summary>
/// A lifecycle rule controlling the behavior of files uploaded to a bucket.
/// </summary>
[DataContract]
public sealed class B2LifecycleRule
{
/// <summa... | mit | C# | |
7f6bd571e9688ddef9f75016f205cf1346db46d5 | add Enumeration to domain models | Abhith/Code.Library,Abhith/Code.Library | src/Code.Library/Domain/Models/Enumeration.cs | src/Code.Library/Domain/Models/Enumeration.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Code.Library.Domain.Models
{
public abstract class Enumeration : IComparable
{
protected Enumeration(int id, string name)
{
Id = id;
Name = name;
}
pub... | apache-2.0 | C# | |
fabf2aa642ae0ff4b8a58a1b58866290806a1933 | add basic Geohash tests | ssg/SimpleBase,ssg/SimpleBase32,ssg/SimpleBase | test/Base32/GeohashTest.cs | test/Base32/GeohashTest.cs | using NUnit.Framework;
using SimpleBase;
using System;
using System.Collections.Generic;
using System.Text;
namespace SimpleBaseTest.Base32Test
{
[TestFixture]
class GeohashTest
{
[Test]
public void Decode_SmokeTest()
{
const string input = "ezs42";
var resu... | apache-2.0 | C# | |
a765f2502daa9760786e9c20baf688ddcb8a4a27 | Add simple test case for FullscreenOverlay | smoogipoo/osu,NeoAdonis/osu,peppy/osu-new,ZLima12/osu,peppy/osu,2yangk23/osu,ZLima12/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,EVAST9919/osu,UselessToucan/osu,peppy/osu,2yangk23/osu,ppy/osu,smoogipooo/osu,UselessToucan/osu,johnneijzen/osu,NeoAdonis/osu,ppy/osu,EVAST9919/osu,NeoAdonis/osu,johnneijzen/osu... | osu.Game.Tests/Visual/Online/TestCaseFullscreenOverlay.cs | osu.Game.Tests/Visual/Online/TestCaseFullscreenOverlay.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.Game.Overlays;
using osuTK.Graphics;
namespace osu.Game.Tests.Visual.... | mit | C# | |
8bc5ff07d215dfdd54a3ba00af6f960a8111568c | Check we don't reference DesignTime assemblies | github/VisualStudio,github/VisualStudio,github/VisualStudio | test/GitHub.VisualStudio.UnitTests/GitHubAssemblyTests.cs | test/GitHub.VisualStudio.UnitTests/GitHubAssemblyTests.cs | using System.IO;
using System.Reflection;
using NUnit.Framework;
public class GitHubAssemblyTests
{
[Theory]
public void GitHub_Assembly_Should_Not_Reference_DesignTime_Assembly(string assemblyFile)
{
var asm = Assembly.LoadFrom(assemblyFile);
foreach (var referencedAssembly in asm.GetRefe... | mit | C# | |
0ae0c9bd8b4f82c01b7bf9bb599783f7ed015a2b | Add RequestVerification helper methods | stoiveyp/alexa-skills-dotnet,timheuer/alexa-skills-dotnet | Alexa.NET/Request/RequestVerification.cs | Alexa.NET/Request/RequestVerification.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace Alexa.NET.Request
{
public class RequestVerification
{
public st... | mit | C# | |
8618d9ea0d21ea9f67d9f2f3751c3b7cda08f614 | Implement GrowToFitContainer | ppy/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu | osu.Game/Graphics/Containers/GrowToFitContainer.cs | osu.Game/Graphics/Containers/GrowToFitContainer.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Graphics.Containers
{
/// <summary>
/// A container that grows in size to fit its chil... | mit | C# | |
dbac9aff0ae7a3747d13de327b321b2ffc4f9e5f | Add missing model file. | robinsedlaczek/ModelR | WaveDev.ModelR.Shared/Models/TransformationInfoModel.cs | WaveDev.ModelR.Shared/Models/TransformationInfoModel.cs | namespace WaveDev.ModelR.Shared.Models
{
public class TransformationInfoModel
{
public float TranslateX { get; set; }
public float TranslateY { get; set; }
public float TranslateZ { get; set; }
public float RotateX { get; set; }
public float RotateY { get; set; }
... | mit | C# | |
297b4d0f3e3b3e14d1c2a2a28d147d533ec7cba7 | Add GetAllTiersQuery.cs | NinjaVault/NinjaHive,NinjaVault/NinjaHive | NinjaHive.Contract/Queries/GetAllTiersQuery.cs | NinjaHive.Contract/Queries/GetAllTiersQuery.cs | using NinjaHive.Contract.Models;
using NinjaHive.Core;
namespace NinjaHive.Contract.Queries
{
public class GetAllTiersQuery : IQuery<TierModel[]>
{
}
}
| apache-2.0 | C# | |
a9fea0c53306ba16808c8d584fa1c772be45cdd7 | Create PerHttpRequestLifetimeManager.cs | rudini/UnityLifetimeManager | PerHttpRequestLifetimeManager.cs | PerHttpRequestLifetimeManager.cs | namespace Unity.LifetimeManager
{
using System;
using System.Web;
using Microsoft.Practices.Unity;
/// <summary>
/// Implements a Unity LifetimeManager to manage the lifecycle of a stateless http request.
/// </summary>
/// <remarks>This LifetimeManager disposes the resolved type after the... | apache-2.0 | C# | |
00a1fdfd7ab43ccfe0c292409aee161b4025039b | add package class | tsolarin/dotnet-globals,tsolarin/dotnet-globals | src/DotNet.Executor.Core/Package.cs | src/DotNet.Executor.Core/Package.cs | namespace DotNet.Executor.Core
{
using System.IO;
class Package
{
public DirectoryInfo Directory { get; set; }
public string EntryAssemblyFileName { get; set; }
}
} | mit | C# | |
8b9b9dcd433675bffdfdae4689a6310f2ed376d6 | Create AssemblyInfo.cs | keith-hall/Extensions,keith-hall/Extensions | src/Properties/AssemblyInfo.cs | src/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("Ext... | apache-2.0 | C# | |
f4e7509168a86c04faf2e22eee93fd8a8975af9b | Add SingletonMonoBehaviour.cs | felladrin/unity-scripts,felladrin/unity3d-scripts | SingletonMonoBehaviour.cs | SingletonMonoBehaviour.cs | using UnityEngine;
public class SingletonMonoBehaviour<T> : MonoBehaviour where T : Component
{
public bool dontDestroyOnLoad;
private static T instance;
public static T Instance
{
get
{
if (instance != null) return instance;
instance = FindObject... | mit | C# | |
a1e32fda3f2681161866bb2a84fb7ab2129d12c9 | Clean up file. | swaroop-sridhar/roslyn,a-ctor/roslyn,AlekseyTs/roslyn,dotnet/roslyn,AnthonyDGreen/roslyn,cston/roslyn,KevinH-MS/roslyn,gafter/roslyn,srivatsn/roslyn,akrisiun/roslyn,jasonmalinowski/roslyn,mattscheffer/roslyn,yeaicc/roslyn,gafter/roslyn,jkotas/roslyn,xasx/roslyn,ErikSchierboom/roslyn,CaptainHayashi/roslyn,amcasey/roslyn... | src/Features/Core/Portable/Structure/BlockTypes.cs | src/Features/Core/Portable/Structure/BlockTypes.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.
namespace Microsoft.CodeAnalysis.Structure
{
internal static class BlockTypes
{
// Basic types.
public const string Nonstructural = n... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.CodeAnalysis.Structure
{
internal static class BlockTypes
{
// Basic types.
public const string Nonstructural = n... | mit | C# |
d5d1fbcf00d79683efcd14a96c9a896c8039b8bb | Create new CelestialBody from asteroid data | DMagic1/DMModuleScienceAnimateGeneric | Source/AsteroidScience.cs | Source/AsteroidScience.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace DMModuleScienceAnimateGeneric
{
public class AsteroidScience
{
protected DMModuleScienceAnimateGeneric ModSci = FlightGlobals.ActiveVessel.FindPartModulesImplementing<DMModuleScienceAnima... | bsd-2-clause | C# | |
bf1533fff3a36ee3b3efd7703ef96fa3e6f60dcb | Create AssemblyInfo.cs | AlexKoshulyan/NSDateToEpochTime | NSDateToEpochTime/Properties/AssemblyInfo.cs | NSDateToEpochTime/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("NSD... | mit | C# | |
8cf1d8e579fb7ce65365f8aaa40ba39006b0b005 | fix content nav links | napramirez/boxstarter,fhchina/boxstarter,modulexcite/boxstarter,cam1985/boxstarter,fhchina/boxstarter,cam1985/boxstarter,mwrock/boxstarter,napramirez/boxstarter,smaglio81/boxstarter,dhilgarth/boxstarter,tbyehl/boxstarter,smaglio81/boxstarter,modulexcite/boxstarter,fhchina/boxstarter,dex1on/pub,napramirez/boxstarter,dex... | Web/_ContentLayout.cshtml | Web/_ContentLayout.cshtml | @using System.Security.Policy
@{
Layout = "~/_SiteLayout.cshtml";
var absPath = Request.Url.AbsolutePath;
var thisPage = absPath.ToLower().Substring(absPath.LastIndexOf('/') + 1);
PageData[thisPage + "Style"] = "active";
PageData["Documentation"] = "active";
}
@section styles {
@RenderSection(... | @using System.Security.Policy
@{
Layout = "~/_SiteLayout.cshtml";
var absPath = Request.Url.AbsolutePath;
var thisPage = absPath.ToLower().Substring(absPath.LastIndexOf('/') + 1);
PageData[thisPage + "Style"] = "active";
PageData["Documentation"] = "active";
}
@section styles {
@RenderSection(... | apache-2.0 | C# |
283492f308e984b81ab859cb65a75052d9654070 | add WebApiSesionFactory | signumsoftware/framework,avifatal/framework,AlejandroCano/framework,signumsoftware/framework,avifatal/framework,AlejandroCano/framework | Signum.React/Facades/WebApiSessionFactory.cs | Signum.React/Facades/WebApiSessionFactory.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http.WebHost;
using System.Web.Routing;
using System.Web.SessionState;
using Signum.Utilities;
namespace Signum.React
{
public class WebApiSesionFactory : ISessionFactory
{
static readonl... | mit | C# | |
ead0062e0985c432ffc7b57a15c3508c26226c72 | Add test for BinarySearcher class | aalhour/C-Sharp-Algorithms | UnitTest/AlgorithmsTests/BinarySearcherTest.cs | UnitTest/AlgorithmsTests/BinarySearcherTest.cs | using System.Collections.Generic;
using Xunit;
using Algorithms.Search;
namespace UnitTest.AlgorithmsTests
{
public static class BinarySearcherTest
{
[Fact]
public static void MergeSortTest()
{
//a list of int
IList<int> list = new List<int> {9, 3, 7, 1, 6, 10... | mit | C# | |
0ecbc5945f3a93914756d42baf459bc2a9cd14c9 | Adjust transform to look better | ZLima12/osu,smoogipooo/osu,UselessToucan/osu,DrabWeb/osu,naoey/osu,DrabWeb/osu,peppy/osu,peppy/osu,EVAST9919/osu,johnneijzen/osu,peppy/osu-new,UselessToucan/osu,NeoAdonis/osu,naoey/osu,DrabWeb/osu,ppy/osu,johnneijzen/osu,EVAST9919/osu,smoogipoo/osu,smoogipoo/osu,smoogipoo/osu,2yangk23/osu,naoey/osu,NeoAdonis/osu,2yangk... | osu.Game/Graphics/Containers/ShakeContainer.cs | osu.Game/Graphics/Containers/ShakeContainer.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;
namespace osu.Game.Graphics.Containers
{
public class ShakeContainer : Container
{
... | // 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;
namespace osu.Game.Graphics.Containers
{
public class ShakeContainer : Container
{
... | mit | C# |
478ba08b80cb4d2730fb5808f8f91c781c167ecc | Create PacBuilder.cs | imba-tjd/CSharp-Code-Repository | 单个文件的程序/PacBuilder.cs | 单个文件的程序/PacBuilder.cs | using System;
using System.IO;
using System.Collections.Generic;
class PacBuilder
{
const string BLACKLISTPATH = "blacklist.txt";
const string WHITELISTPATH = "whitelist.txt";
const string FINDPROXY = @"
var proxy = '__PROXY__';
var direct = 'DIRECT;';
var hop = Object.hasOwnProperty;
function FindProxyFo... | mit | C# | |
08bb5cbcbff6e1b42fa1715224aa989cd308b073 | Introduce model to store path of stable osu! | UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,smoogipooo/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,peppy/osu-new,ppy/osu,peppy/osu,peppy/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,ppy/osu | osu.Game.Tournament/Models/StableInfo.cs | osu.Game.Tournament/Models/StableInfo.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Bindables;
namespace osu.Game.Tournament.Models
{
/// <summary>
/// Holds the complete data required to operate the tournament ... | mit | C# | |
2624949152b59186dacc9943e4310741ba47178b | add language domain model | mzrimsek/resume-site-api | Core/Models/LanguageDomainModel.cs | Core/Models/LanguageDomainModel.cs | namespace Core.Models
{
public class LanguageDomainModel
{
public int Id { get; set; }
public string Name { get; set; }
public int Rating { get; set; }
}
} | mit | C# | |
e3bdb16fd648e1a16d1432c8f61cd142c2107ad6 | add Upgrade_20220204_UpdateNugets | signumsoftware/framework,signumsoftware/framework | Signum.Upgrade/Upgrades/Upgrade_20220204_UpdateNugets.cs | Signum.Upgrade/Upgrades/Upgrade_20220204_UpdateNugets.cs | namespace Signum.Upgrade.Upgrades;
class Upgrade_20220204_UpdateNugets : CodeUpgradeBase
{
public override string Description => "Update Nugets";
public override void Execute(UpgradeContext uctx)
{
uctx.ForeachCodeFile(@"*.csproj", file =>
{
file.UpdateNugetReference("Microsoft... | mit | C# | |
77361347482de79a9a65a64bb7ecf1ec86c8556e | Add the support for autoscale SCPI command | tparviainen/oscilloscope | SCPI/AUTOSCALE.cs | SCPI/AUTOSCALE.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace SCPI
{
public class AUTOSCALE : ICommand
{
public string Description => "The oscilloscope will automatically adjust the vertical scale, horizontal timebase, and trigger mode according to the input signal to realize optimum wa... | mit | C# | |
8e34cc2c5f9942122f0f14616a8d7379d386c615 | Allow even more button customisation. | RedNesto/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,Nabile-Rahmani/osu-framework,paparony03/osu-framework,DrabWeb/osu-framework,peppy/osu-framework,ppy/osu-framework,RedNesto/osu-framework,peppy/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,EVA... | osu.Framework/Graphics/UserInterface/Button.cs | osu.Framework/Graphics/UserInterface/Button.cs | // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Input;
using OpenTK.Graphics;
using osu.Framework.Al... | // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Input;
using OpenTK.Graphics;
using osu.Framework.Al... | mit | C# |
323afcc1402b0db7844d54a91d1ee4a70cebfc69 | Add `PcscConnection` class | Archie-Yang/PcscDotNet | src/PcscDotNet/PcscConnection.cs | src/PcscDotNet/PcscConnection.cs | namespace PcscDotNet
{
public class PcscConnection
{
public PcscContext Context { get; private set; }
public IPcscProvider Provider { get; private set; }
public string ReaderName { get; private set; }
public PcscConnection(PcscContext context, string readerName)
{
... | mit | C# | |
1e297a1a3799a9123b83bddef4fe5d69db5b0408 | Add PdfWriterExtensions | Codinlab/PDF-SDK | src/DocumentFormat.Pdf/Extensions/PdfWriterExtensions.cs | src/DocumentFormat.Pdf/Extensions/PdfWriterExtensions.cs | using DocumentFormat.Pdf.IO;
using System;
using System.Collections.Generic;
using System.Text;
namespace DocumentFormat.Pdf.Extensions
{
/// <summary>
/// <see cref="PdfWriter"/> extension methods.
/// </summary>
public static class PdfWriterExtensions
{
/// <summary>
/// Writes a... | mit | C# | |
0450333cc139db37e68f2ab75dbf4850fa17e3d0 | Fix for applying properties. | cube-soft/Cube.Core,cube-soft/Cube.Core | Triggers/UpdateSourcesAction.cs | Triggers/UpdateSourcesAction.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# | |
1f5e15807658a72e6b2bc4d40dd4eb439d512984 | Create Tetris.cs | dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey | C#/Uni-Ruse/Internet-Programming/Exercise2/Tetris.cs | C#/Uni-Ruse/Internet-Programming/Exercise2/Tetris.cs | using System;
namespace InternetProgramming
{
class Program
{
static BaseFigure[] figures = new BaseFigure[10];
static Random rand = new Random();
const int COLOR_MIN_VALUE = 7;
const int COLOR_MAX_VALUE = 15;
const int X_MIN_VALUE = 10;
const int X_MAX_VALUE = ... | mit | C# | |
512b84d2108fcf23285abdf36a549fc666d7a8cc | Create custom authorize attribute | MarioZisov/Baskerville,MarioZisov/Baskerville,MarioZisov/Baskerville | BaskervilleWebsite/Baskerville.App/Attributes/CustomAuthorizeAttribute.cs | BaskervilleWebsite/Baskerville.App/Attributes/CustomAuthorizeAttribute.cs | using System.Linq;
using System.Web.Mvc;
using System.Web.Routing;
namespace Baskerville.App.Attributes
{
public class CustomAuthorizeAttribute : AuthorizeAttribute
{
protected override void HandleUnauthorizedRequest(AuthorizationContext filterContext)
{
if (!filterContext.HttpCont... | apache-2.0 | C# | |
c20c8ce4fe6e27166937a4bf1763746822827150 | Create Button.cs | Eversm4nn/Project | GTE/GTE/GTE/GTE/Button.cs | GTE/GTE/GTE/GTE/Button.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
namespace GTE
{
public class Button
{
#region FIELDS
public Texture2D texture;
public Vector2... | unlicense | C# | |
b1b4d08bf2a9dafaffc5c5eaed8435cbc1e7a1eb | Create HaiTun_.cs | daobude/- | HaiTun_.cs | HaiTun_.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("LSharp海豚防封")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProd... | isc | C# | |
95a7c821fdb441994388728812eea9a36ce34ffa | add v1 tracer interface so we can break out tracing (#523) | geffzhang/Ocelot,TomPallister/Ocelot,geffzhang/Ocelot,TomPallister/Ocelot | src/Ocelot/Logging/ITracer.cs | src/Ocelot/Logging/ITracer.cs | namespace Ocelot.Logging
{
using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
public interface ITracer
{
void Event(HttpContext httpContext, string @event);
Task<HttpResponseMessage> SendAsync(
... | mit | C# | |
aef6c5504b96d5ecf6ae43ea11e91efe317a0f19 | Add ConfigSectionAttribute | RockFramework/RockLib.Configuration | RockLib.Configuration.ObjectFactory/ConfigSectionAttribute.cs | RockLib.Configuration.ObjectFactory/ConfigSectionAttribute.cs | using System;
namespace RockLib.Configuration.ObjectFactory
{
/// <summary>
/// Associates the path to a configuration section with a target type. The contents
/// of such a configuration section should declare an object of the target type.
/// </summary>
[AttributeUsage(AttributeTargets.Assembly,... | mit | C# | |
945e230466f58e4ce64969e89f15b4b08b0d26ae | Create XMLData.cs | alchemz/Unity_Read_XML_With_CSharp | XMLData.cs | XMLData.cs |
public class XMLData{
public int pageNum;
public string CharText, dialogueText;
public XMLData(int page, string character, string dialogue)
{
pageNum=page;
charText=character;
dialogueText=dialogue;
}
}
| mit | C# | |
9da9edf2eb2d0af1b39abe73726daf019e9337de | Create GrabDesktop.cs | UnityCommunity/UnityLibrary | Scripts/Helpers/Screenshot/GrabDesktop.cs | Scripts/Helpers/Screenshot/GrabDesktop.cs | using UnityEngine;
using System.Collections;
using System.Drawing;
using Screen = System.Windows.Forms.Screen;
using Application = UnityEngine.Application;
using System.Drawing.Imaging;
// Drag windows desktop image using System.Drawing.dll
// guide on using System.Drawing.dll in unity : http://answers.unity3d.com/ans... | mit | C# | |
04033146ddc42f60e0fdd3ab1bf5de3aa0bc9f32 | Create TemplateVariableParser for Unity templates | mubeeniqbal/unity-setup | project-resources/Assets/Editor/TemplateVariableParser.cs | project-resources/Assets/Editor/TemplateVariableParser.cs | /**
* @file TemplateVariableParser.cs
* @date 2014-12-16 20:01:34 UTC+05:00
* @author Mubeen Iqbal <mubeen.ace@gmail.com>
* @license MIT <http://opensource.org/licenses/MIT>
*
* @description
* Destination path: $PROJECT_HOME/Assets/Editor/TemplateVariableParser.cs
*
* $PROJECT_HOME is the directory where th... | mit | C# | |
cbf86f107db4bcdf61159abbb305a22834c0271a | Fix typo: Arrary --> Array | joehmchan/elasticsearch-net,gayancc/elasticsearch-net,gayancc/elasticsearch-net,robrich/elasticsearch-net,robrich/elasticsearch-net,wawrzyn/elasticsearch-net,gayancc/elasticsearch-net,robertlyson/elasticsearch-net,robertlyson/elasticsearch-net,wawrzyn/elasticsearch-net,joehmchan/elasticsearch-net,robertlyson/elasticsea... | src/Nest/Domain/Property.cs | src/Nest/Domain/Property.cs | using System;
using System.Linq.Expressions;
namespace Nest.Resolvers
{
public static class Property
{
/// <summary>
/// Create a strongly typed string representation of the path to a property
/// <para>i.e p => p.Array.First().SubProperty.Field will return 'array.subProperty.field'</para>
/// </summary>
/... | using System;
using System.Linq.Expressions;
namespace Nest.Resolvers
{
public static class Property
{
/// <summary>
/// Create a strongly typed string representation of the path to a property
/// <para>i.e p => p.Arrary.First().SubProperty.Field will return 'array.subProperty.field'</para>
/// </summary>
... | apache-2.0 | C# |
0ebf4a1eb4be72e840388139cac725d851f17a32 | add basetest | vip32/eventfeedback,vip32/eventfeedback,vip32/eventfeedback,vip32/eventfeedback | Web.App.IntegrationTests/Views/BaseViewTests.cs | Web.App.IntegrationTests/Views/BaseViewTests.cs | using System;
using Coypu;
using Coypu.Drivers.Selenium;
namespace Eventfeedback.Web.App.IntegrationTests.UI
{
public class BaseViewTests
{
public Settings Settings = new Settings();
public Views Views = new Views();
public void Do(Action<BrowserSession> action)
{
... | mit | C# | |
7dd677e2bb0e04088a1dbf4dbd81e1e2fcf095b3 | Create Debug.cs | Gianxs/CitiesSkylineFavoriteCimsMod | Debug.cs | Debug.cs | using UnityEngine;
using System;
using System.Collections.Generic;
using ColossalFramework;
using ColossalFramework.UI;
namespace FavoriteCims {
public static class Debug {
const string prefix = "FavoriteCimsMod: ";
public static void Log(String message) {
DebugOutputPanel.AddMessage(ColossalFramework.Plugi... | mit | C# | |
d44a6470cdb4c91212472564cd5170813400a6f8 | Add missing file | paiden/Nett | Source/Nett/TomlConfig.Builder.cs | Source/Nett/TomlConfig.Builder.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace Nett
{
public sealed partial class TomlConfig
{
public IFrom AddConversion()
{
return new From(this);
}
private class From : IFrom
{
... | mit | C# | |
662a3cef9bf9f16b68f514730522d6bd5f78b88f | add pass through encoder that can specify its own name | IxMilia/Pdf,IxMilia/Pdf | src/IxMilia.Pdf/Encoders/CustomPassThroughEncoder.cs | src/IxMilia.Pdf/Encoders/CustomPassThroughEncoder.cs | namespace IxMilia.Pdf.Encoders
{
public class CustomPassThroughEncoder : IPdfEncoder
{
public string DisplayName { get; private set; }
public CustomPassThroughEncoder(string displayName)
{
DisplayName = displayName;
}
public byte[] Encode(byte[] data)
... | apache-2.0 | C# | |
7bbe81631c7c53a74d2ebc0d57a32022c4ee8774 | Create StringExtensions.cs | dpvreony/Dhgms.AspNetCoreContrib,dpvreony/Dhgms.AspNetCoreContrib,dpvreony/Dhgms.AspNetCoreContrib | src/Whipstaff.Runtime/Extensions/StringExtensions.cs | src/Whipstaff.Runtime/Extensions/StringExtensions.cs | // Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved.
// DHGMS Solutions and Contributors licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Text;
namespace Dhgm... | apache-2.0 | C# | |
8dfc02a85c2649246c9798c191e898f04f475fb6 | Add IEasingFunction interface | EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework,EVAST9919/osu-framework | osu.Framework/Graphics/Transforms/IEasingFunction.cs | osu.Framework/Graphics/Transforms/IEasingFunction.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.
namespace osu.Framework.Graphics.Transforms
{
/// <summary>
/// An interface for an easing function that is applied to <see cref="Transform{TValue}"/>s.
/// <... | mit | C# | |
ef613b322efb9263f7b806bf3ebbd2917d5b9dd8 | Move JobStore cleanup to abstract class. | lukeryannetnz/quartznet-dynamodb,lukeryannetnz/quartznet-dynamodb | src/QuartzNET-DynamoDB.Tests/Integration/JobStore/JobStoreIntegrationTest.cs | src/QuartzNET-DynamoDB.Tests/Integration/JobStore/JobStoreIntegrationTest.cs | using System;
namespace Quartz.DynamoDB.Tests.Integration.JobStore
{
/// <summary>
/// Abstract class that provides common dynamo db cleanup for JobStore integration testing.
/// </summary>
public abstract class JobStoreIntegrationTest : IDisposable
{
protected DynamoDB.JobStore _sut;
... | apache-2.0 | C# | |
62a158706458624a17e4caf6c49fe219b99700e2 | Introduce GitVersionFinder.ShouldGitHubFlowVersioningSchemeApply() | DanielRose/GitVersion,FireHost/GitVersion,Kantis/GitVersion,pascalberger/GitVersion,orjan/GitVersion,gep13/GitVersion,onovotny/GitVersion,dazinator/GitVersion,onovotny/GitVersion,ermshiperete/GitVersion,dpurge/GitVersion,ermshiperete/GitVersion,anobleperson/GitVersion,TomGillen/GitVersion,Philo/GitVersion,JakeGinnivan/... | GitFlowVersion/GitVersionFinder.cs | GitFlowVersion/GitVersionFinder.cs | namespace GitFlowVersion
{
using System;
using System.Linq;
using LibGit2Sharp;
public class GitVersionFinder
{
public VersionAndBranch FindVersion(GitVersionContext context)
{
EnsureMainTopologyConstraints(context);
if (ShouldGitHubFlowVersioningSchemeApply... | namespace GitFlowVersion
{
using System;
using System.Linq;
using LibGit2Sharp;
public class GitVersionFinder
{
public VersionAndBranch FindVersion(GitVersionContext context)
{
EnsureMainTopologyConstraints(context);
var hasDevelopBranch = context.Repository... | mit | C# |
f723de2481cd53e7c502629dd25d91b3686ee850 | Update scripts | CatenaLogic/AzureStorageSync | build.cake | build.cake | //=======================================================
// DEFINE PARAMETERS
//=======================================================
// Define the required parameters
var Parameters = new Dictionary<string, object>();
Parameters["SolutionName"] = "AzureStorageSync";
Parameters["Company"] = "CatenaLogic";
Parameter... | mit | C# | |
b0d167e18771f186d4b0960d64acf02b29e9d015 | Add NSecKeyFormatter class | ektrah/nsec | src/Cryptography/Formatting/NSecKeyFormatter.cs | src/Cryptography/Formatting/NSecKeyFormatter.cs | using System;
using System.Diagnostics;
using static Interop.Libsodium;
namespace NSec.Cryptography.Formatting
{
internal class NSecKeyFormatter
{
private readonly byte[] _magic;
private readonly int _maxKeySize;
private readonly int _minKeySize;
public NSecKeyFormatter(
... | mit | C# | |
df9f9c597a381867fcb04a41419cb6ded3434d22 | Add the controller 'TrilhaController' to Fatec.Treinamento.Web/Controllers/ folder | fmassaretto/formacao-talentos,fmassaretto/formacao-talentos,fmassaretto/formacao-talentos | Fatec.Treinamento.Web/Controllers/TrilhaController.cs | Fatec.Treinamento.Web/Controllers/TrilhaController.cs | using Fatec.Treinamento.Data.Repositories;
using Fatec.Treinamento.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Fatec.Treinamento.Web.Controllers
{
public class TrilhaController : Controller
{
// GET: Trilha
public ... | apache-2.0 | C# | |
e5f75c014fbb52a6c39d61212b0020f610d1e631 | Revert "Delete AndyLevy.cs" | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/AndyLevy.cs | src/Firehose.Web/Authors/AndyLevy.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 AndyLevy : IAmACommunityMember
{
public string FirstName => "Andy";
public string LastName... | mit | C# | |
fac4ef5ffc39b149d74eeccce9171ba1ee1b55e7 | add my NaturalNumber toy class i know about System.Numerics.BigInteger but choose to explore this to learn more about this | martinlindhe/Punku | punku/Math/NaturalNumber.cs | punku/Math/NaturalNumber.cs | /**
* http://en.wikipedia.org/wiki/Natural_number
*
* NOTE http://msdn.microsoft.com/en-us/library/system.numerics.biginteger%28v=vs.100%29.aspx
* System.Numerics.BigInteger also exists
*/
using System;
// TODO unit tests for htis class
namespace Punku
{
/**
* Can represent a very large number
*/
public... | mit | C# | |
e9c1bcaa791b0cb4cb45b748692a8317ec9fb753 | Delete this file. | senfo/FrogBlogger,senfo/FrogBlogger | FrogBlogger.Web/Infrastructure/FrogBloggerControllerBase.cs | FrogBlogger.Web/Infrastructure/FrogBloggerControllerBase.cs | using System.Data.Objects;
using System.Web.Mvc;
namespace FrogBlogger.Web.Infrastructure
{
/// <summary>
/// The base class for controllers in FrogBlogger
/// </summary>
public class FrogBloggerControllerBase : Controller
{
#region Fields
/// <summary>
/// Th... | bsd-3-clause | C# | |
dd984fc6e91729855adbef1d70de2f6cf9e042b7 | add releases tests | lvermeulen/BuildMaster.Net | test/BuildMaster.Net.Tests/Releases/BuildMasterClientShould.cs | test/BuildMaster.Net.Tests/Releases/BuildMasterClientShould.cs | using System.Threading.Tasks;
using BuildMaster.Net.Releases.Models;
using Xunit;
// ReSharper disable CheckNamespace
namespace BuildMaster.Net.Tests
{
public partial class BuildMasterClientShould
{
[Fact]
public async Task GetReleasesAsync()
{
var results = await _client.... | mit | C# | |
cf23e02ee4beb14a0dff90e94410ac6ff9cfe585 | Add C# Rock-Paper-Scissors | Joimer/ConsoleGames,Joimer/ConsoleGames,Joimer/ConsoleGames,Joimer/ConsoleGames | rps/rps.cs | rps/rps.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleRps
{
class Rps
{
static string[] answers = new string[] { "rock", "paper", "scissors" };
static Dictionary<string, Dictionary<string, int>> results = new Diction... | mit | C# | |
2495272ba0d9f1221da4fc91da9d0e3fd63205b4 | Copy source code from KLibrary-Labs | sakapon/KLibrary.Linq | KLibrary4/Linq/Linq/Comparison.cs | KLibrary4/Linq/Linq/Comparison.cs | using System;
using System.Collections.Generic;
namespace KLibrary.Linq
{
public static class Comparison
{
public static IComparer<T> CreateComparer<T>(Func<T, T, int> compare)
{
return new DelegateComparer<T>(compare);
}
public static IEqualityComparer... | mit | C# | |
c11acf46d0cef8f6143b95952b5278165533475b | Update version to match IoT Connector viewer | javiddhankwala/samples,ms-iot/samples,javiddhankwala/samples,ms-iot/samples,rachitb777/samples,paulmon/samples,parameshbabu/samples,bfjelds/samples,jessekaplan/samples,bfjelds/samples,paulmon/samples,zhuridartem/samples,rachitb777/samples,paulmon/samples,jessekaplan/samples,parameshbabu/samples,bfjelds/samples,rachitb7... | IoTConnector/IoTConnectorClient/IoTConnectorClient/Constants.cs | IoTConnector/IoTConnectorClient/IoTConnectorClient/Constants.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IoTConnectorClient
{
static class Constants
{
public const string LOGIN_ERROR = "An error occurred. Please enter the correct credentials below";
public const string LOG... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IoTConnectorClient
{
static class Constants
{
public const string LOGIN_ERROR = "An error occurred. Please enter the correct credentials below";
public const string LOG... | mit | C# |
34fc740e1f72e6ec4b8f5865d0e2f008d2973a02 | Implement testcase for room settings | ZLima12/osu,UselessToucan/osu,NeoAdonis/osu,ZLima12/osu,smoogipoo/osu,EVAST9919/osu,peppy/osu,johnneijzen/osu,peppy/osu,peppy/osu-new,naoey/osu,ppy/osu,ppy/osu,DrabWeb/osu,peppy/osu,DrabWeb/osu,smoogipoo/osu,2yangk23/osu,EVAST9919/osu,johnneijzen/osu,DrabWeb/osu,smoogipoo/osu,naoey/osu,naoey/osu,ppy/osu,NeoAdonis/osu,N... | osu.Game.Tests/Visual/TestCaseMatchSettingsOverlay.cs | osu.Game.Tests/Visual/TestCaseMatchSettingsOverlay.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.Game.Online.Multiplayer;
using osu.Game.Screens.Multi.Match.Components;
namespace osu.G... | mit | C# | |
30e10c90d98ba6a085f183f3a2775cd4945099c7 | add my exception file for users | ivayloivanof/Libbon_Tank_Game | TankGame/Exception/UserErrorException.cs | TankGame/Exception/UserErrorException.cs | namespace TankGame.Exception
{
using System;
public class UserErrorException : Exception
{
public UserErrorException(string message) : base(message)
{
}
}
}
| cc0-1.0 | C# | |
9e855d147817abb02de926d77ef5a1bf5902b03b | fix static construtor exception analyzer when ctor body is null | robsonalves/code-cracker,f14n/code-cracker,giggio/code-cracker,carloscds/code-cracker,eriawan/code-cracker,thorgeirk11/code-cracker,eirielson/code-cracker,andrecarlucci/code-cracker,caioadz/code-cracker,gerryaobrien/code-cracker,modulexcite/code-cracker,dlsteuer/code-cracker,kindermannhubert/code-cracker,GuilhermeSa/co... | src/CodeCracker/StaticConstructorExceptionAnalyzer.cs | src/CodeCracker/StaticConstructorExceptionAnalyzer.cs | using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
using System.Collections.Immutable;
using System.Linq;
namespace CodeCracker
{
[DiagnosticAnalyzer(LanguageNames.CSharp)]
public class StaticConstructorExcep... | using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
using System.Collections.Immutable;
using System.Linq;
namespace CodeCracker
{
[DiagnosticAnalyzer(LanguageNames.CSharp)]
public class StaticConstructorExcep... | apache-2.0 | C# |
bc4a87d2cde41d669fc577be70dd3a5493e1bca8 | Create EngineCodes.cs | sqlkata/querybuilder | QueryBuilder/Compilers/EngineCodes.cs | QueryBuilder/Compilers/EngineCodes.cs | namespace SqlKata.Compilers
{
public static class EngineCodes
{
public const string Firebird = "firebird";
public const string Generic = "generic";
public const string MySql = "mysql";
public const string Oracle = "oracle";
public const string PostgreSql = "postgres";
... | mit | C# | |
77874f7cb81eefb599e4ad5ee8ce29d685da1fcc | Add stub implementation of local | mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,pranavkm/Glimpse.Prototype,pranavkm/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Gli... | src/Glimpse.Server.Web/Broker/LocalBrokerPublisher.cs | src/Glimpse.Server.Web/Broker/LocalBrokerPublisher.cs | using System;
namespace Glimpse.Server
{
public class LocalBrokerPublisher : IBrokerPublisher
{
public void PublishMessage(IMessage message)
{
// TODO: push straight to the bus
}
}
} | mit | C# | |
39f219f4898c3b41770d2b501c51ad894c2d1a64 | Add Lang error | CalladaAltr/Soul.Core,AnotherAltr/Soul.Core,CalladaAltr/Soul.Core,AnotherAltr/Soul.Core,CalladaAltr/Soul.Core,AnotherAltr/Soul.Core | Soul.Core/Types/ErrorDB.cs | Soul.Core/Types/ErrorDB.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Soul.Core.Types
{
public enum SoulError
{
SS1000, // Ожидаемый символ
SS1001, // Ожидаемая лексема
SS1002, // Ожидаемый ключ
SS1003, // Ожидаемый признак конца строки
SS1004,... | mit | C# | |
9f3c845099e121b560d978b8b3e711b39bbc9ab5 | Create Edit.cshtml | kelong/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4,CarmelSoftware/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4 | Views/Comments/Edit.cshtml | Views/Comments/Edit.cshtml | @model RepositoryWithCaching.Models.Comment
@{
ViewBag.Title = "Edit";
}
<h2>Edit</h2>
@using (Html.BeginForm()) {
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
<fieldset>
<legend>Comment</legend>
@Html.HiddenFor(model => model.CommentID)
<div class="editor-label">... | mit | C# | |
b29da45ab97f95fe7d4a96a2d165145eb6c87316 | test with schema support | thinking-home/migrator,thinking-home/migrator | ThinkingHome.Migrator.Tests/Providers/WithSchema/OracleTransformationProviderSchemaTest.cs | ThinkingHome.Migrator.Tests/Providers/WithSchema/OracleTransformationProviderSchemaTest.cs | namespace ThinkingHome.Migrator.Tests.Providers.WithSchema
{
public class OracleTransformationProviderSchemaTest : OracleTransformationProviderTest
{
protected override string GetSchemaForCreateTables()
{
return "MOO";
}
protected override string GetSchemaForCompare... | mit | C# | |
360f8ce6787b62fbf6b119cb32235f121bcf7bb7 | Create 08.Refactor-Volume-of-Pyramid.cs | StefanKoev/DataTypesAndVariables---Lab | 08.Refactor-Volume-of-Pyramid.cs | 08.Refactor-Volume-of-Pyramid.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _08.Refactor_Volume_of_Pyramid
{
class Program
{
static void Main(string[] args)
{
Console.Write("Length: ");
double lenght = double.Parse(Consol... | mit | C# | |
ed80ca618008e1edf112e9e2707a147730039bc7 | Create Movement_Pacing.cs | Tech-Curriculums/101-GameDesign-2D-GameDesign-With-Unity | AngryHipsters/Movement_Pacing.cs | AngryHipsters/Movement_Pacing.cs | //This script causes a character to pace back and forth
//each left and right walk's duration is controlled by `walkDuration` variable
using UnityEngine;
using System.Collections;
public class Movement_Pacing : MonoBehaviour
{
float walkDuration = 3.0f;
float timeLeft = 3.0f ;
bool goright=true;
// Update is c... | mit | C# | |
057cce6305419b4753224684ce67aaa3a4a00fb7 | Add message validator interface | Vtek/Bartender | Cheers.Cqrs/IMessageValidator.cs | Cheers.Cqrs/IMessageValidator.cs | using System;
namespace Cheers.Cqrs
{
public interface IMessageValidator
{
}
}
| mit | C# | |
81f1e2ca207ed2c5fd4673dc640c2b4f711fcd8b | Add auto exit play mode on compile | LemonLube/Expanse,AikenParker/Expanse | StandaloneUtility/Editor/ExitPlayModeOnCompile.cs | StandaloneUtility/Editor/ExitPlayModeOnCompile.cs | using UnityEngine;
using System.Collections;
using UnityEditor;
namespace Expanse
{
/// <summary>
/// Exits play mode automatically when Unity performs code compilation.
/// </summary>
[InitializeOnLoad]
public class ExitPlayModeOnCompile
{
private static ExitPlayModeOnCompile instance... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.