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 |
|---|---|---|---|---|---|---|---|---|
d6f2639619dc69426b70cbf86d2fbb7b593199d2 | Drop PAssertException from public api | asd-and-Rizzo/ExpressionToCode,EamonNerbonne/ExpressionToCode | ExpressionToCodeLib/AssertFailedException.cs | ExpressionToCodeLib/AssertFailedException.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
namespace ExpressionToCodeLib
{
[Serializable]
sealed class AssertFailedException : Exception
{
public AssertFailedException(string message)
: base(message) { }
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
namespace ExpressionToCodeLib
{
[Obsolete(
"This class is *not* the base class of all assertion violation exceptions - don't rely on it! It will be removed in version 2."
), Serializabl... | apache-2.0 | C# |
038af797a1bf4282c53455918ba9a9b97be0ebcb | Revert "Delete AssemblyInfo.cs" | Sankra/DIPSbot,Sankra/DIPSbot | src/Hjerpbakk.DIPSbot/Properties/AssemblyInfo.cs | src/Hjerpbakk.DIPSbot/Properties/AssemblyInfo.cs | using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Hjerpbakk.DIPSbot.Runner")]
[assembly: InternalsVisibleTo("TestHjerpbakk.DIPSbot")] | mit | C# | |
dfb7e48e89093cec829ecf313ef4b0b0731b00fe | Create Node.cs | rikkus/adventofcode2016,rikkus/adventofcode2016 | 22/Node.cs | 22/Node.cs | using System;
namespace AoC2016_22
{
public class Node : IEquatable<Node>
{
public int X { get; set; }
public int Y { get; set; }
public int Size { get; set; }
public int Used { get; set; }
public int Avail { get; set; }
public int Use { get; set; }
publ... | mit | C# | |
e03879156ce581317e330484e1386c406f00aeb1 | Create ChocolateFeast.cs | costincaraivan/hackerrank,costincaraivan/hackerrank | algorithms/implementation/C#/ChocolateFeast.cs | algorithms/implementation/C#/ChocolateFeast.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Solution {
static void Main(String[] args) {
int t = Convert.ToInt32(Console.ReadLine());
for(int a0 = 0; a0 < t; a0++){
string[] tokens_n = Console.ReadLine().Split(' ');
int n = Conve... | mit | C# | |
db7805ec2bb33a9aeaaae796a67c6e1b88004ba6 | Create DataTableExtensions.cs | keith-hall/Extensions,keith-hall/Extensions | src/DataTableExtensions.cs | src/DataTableExtensions.cs | public static class DataTableExtensions {
public static string TableToSQLInsert (this DataTable dt, string tableName, bool createTable) {
var sql = "insert into " + tableName + " (" +
string.Join(", ", dt.Columns.OfType<DataColumn>().Select(
col => "[" + col.ColumnName + "]"
)) + ") values\r\n";
float tm... | apache-2.0 | C# | |
e4174012fa639d5d210f16535093bf641110be5a | Add Cat Health test where Timestamp is false | CSGOpenSource/elasticsearch-net,elastic/elasticsearch-net,elastic/elasticsearch-net,TheFireCookie/elasticsearch-net,adam-mccoy/elasticsearch-net,adam-mccoy/elasticsearch-net,CSGOpenSource/elasticsearch-net,TheFireCookie/elasticsearch-net,TheFireCookie/elasticsearch-net,CSGOpenSource/elasticsearch-net,adam-mccoy/elastic... | src/Tests/Cat/CatHealth/CatHealthApiTests.cs | src/Tests/Cat/CatHealth/CatHealthApiTests.cs | using System;
using Elasticsearch.Net;
using FluentAssertions;
using Nest;
using Tests.Framework;
using Tests.Framework.Integration;
using Xunit;
namespace Tests.Cat.CatHealth
{
[Collection(TypeOfCluster.ReadOnly)]
public class CatHealthApiTests : ApiIntegrationTestBase<ICatResponse<CatHealthRecord>, ICatHealthRequ... | using Elasticsearch.Net;
using FluentAssertions;
using Nest;
using Tests.Framework;
using Tests.Framework.Integration;
using Xunit;
namespace Tests.Cat.CatHealth
{
[Collection(TypeOfCluster.ReadOnly)]
public class CatHealthApiTests : ApiIntegrationTestBase<ICatResponse<CatHealthRecord>, ICatHealthRequest, CatHealth... | apache-2.0 | C# |
ba6607130a5f2a6fe12f25d335547ea9c9a32e97 | Add tree concept | jagrem/slang,jagrem/slang,jagrem/slang | slang/Lexing/Trees/Tree.cs | slang/Lexing/Trees/Tree.cs | using slang.Lexing.Trees.Nodes;
using System.Collections.Generic;
namespace slang.Lexing.Trees
{
public class Tree
{
public Tree() : this(new Node())
{
}
public Tree(Node root)
{
Root = root;
}
public Node Root { get; }
public IEnum... | mit | C# | |
05170f300dd219e7fb77fb0aeb90b003bb880368 | Create TitleCapitalization.cs | michaeljwebb/Algorithm-Practice | Other/TitleCapitalization.cs | Other/TitleCapitalization.cs | //Capitalize(first letter) the first word in a title.
//Capitalize(first letter) the last word in a title.
//Lowercase the following words unless they are first or last word of the title: "a", "the", "to", "at", "in", "with", "and", "but", "or"
//Capitalize(first letter) any words not in the list above.
using System;
u... | mit | C# | |
a1d6cdbd3a255594d68cd4e7ad5195abcc6a1c5d | Debug user status | darvell/Coremero | Coremero/Coremero.Plugin.Playground/Debug.cs | Coremero/Coremero.Plugin.Playground/Debug.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using Coremero.Client;
namespace Coremero.Plugin.Playground
{
public class Debug : IPlugin
{
private readonly IClientUserStatus _client;
private long _minutesAlive = 0;
public ... | mit | C# | |
7c0f330cea2f5c6b59729109c872efae8bd34c75 | Create UtopianTree.cs | costincaraivan/hackerrank,costincaraivan/hackerrank | algorithms/implementation/C#/UtopianTree.cs | algorithms/implementation/C#/UtopianTree.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Solution {
static void Main(String[] args) {
int t = Convert.ToInt32(Console.ReadLine());
for(int a0 = 0; a0 < t; a0++){
int n = Convert.ToInt32(Console.ReadLine());
var he... | mit | C# | |
5559db048a8bd0875ab7eb0669ef0b08649585ce | Create GetTouch.cs | carcarc/unity3d | GetTouch.cs | GetTouch.cs | using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour {
public float speed = 0.1F;
void Update() {
if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Moved) {
// Get movement of the finger since last frame
Vector2 touchDeltaPositio... | mit | C# | |
00eed973894d8df4268717a63b4453907a520c9f | Create RigidbodyExtensions.cs | drawcode/labs-unity | extensions/RigidbodyExtensions.cs | extensions/RigidbodyExtensions.cs | using System;
using UnityEngine;
public static class RigidbodyExtensions {
public static void Freeze(this Rigidbody inst) {
if(inst == null) {
return;
}
if(inst != null) {
//inst.freezeRotation = true;
//inst.angularDrag = 0;
//inst.angular... | mit | C# | |
1154c2d17ea07d0b95dd6f4ac8776c4f3841570e | add SliceBufferSafeHandle | ctiller/grpc,nicolasnoble/grpc,donnadionne/grpc,jtattermusch/grpc,jtattermusch/grpc,jtattermusch/grpc,ejona86/grpc,muxi/grpc,stanley-cheung/grpc,jboeuf/grpc,jboeuf/grpc,muxi/grpc,grpc/grpc,stanley-cheung/grpc,jboeuf/grpc,muxi/grpc,nicolasnoble/grpc,ejona86/grpc,pszemus/grpc,stanley-cheung/grpc,jtattermusch/grpc,firebas... | src/csharp/Grpc.Core/Internal/SliceBufferSafeHandle.cs | src/csharp/Grpc.Core/Internal/SliceBufferSafeHandle.cs | #region Copyright notice and license
// Copyright 2019 The gRPC Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... | apache-2.0 | C# | |
04f1bef1f4ae071f7c32d8d2e4d6d8e1d91266b8 | Format whitespace | albertjan/Nancy,sloncho/Nancy,Worthaboutapig/Nancy,VQComms/Nancy,khellang/Nancy,jonathanfoster/Nancy,horsdal/Nancy,tparnell8/Nancy,murador/Nancy,sloncho/Nancy,EliotJones/NancyTest,MetSystem/Nancy,Novakov/Nancy,AIexandr/Nancy,dbabox/Nancy,VQComms/Nancy,kekekeks/Nancy,sroylance/Nancy,xt0rted/Nancy,jchannon/Nancy,jonathan... | src/Nancy/ViewEngines/ViewNotFoundException.cs | src/Nancy/ViewEngines/ViewNotFoundException.cs | namespace Nancy.ViewEngines
{
using System;
/// <summary>
/// Exception that is thrown when a view could not be located.
/// </summary>
public class ViewNotFoundException : Exception
{
private readonly IRootPathProvider rootPathProvider;
public string ViewName { get; ... | namespace Nancy.ViewEngines
{
using System;
/// <summary>
/// Exception that is thrown when a view could not be located.
/// </summary>
public class ViewNotFoundException : Exception
{
private readonly IRootPathProvider rootPathProvider;
public string ViewName { get; private set; }
public str... | mit | C# |
b05f17ed78092ae152cf7c75f6e71f5731780815 | Save snapshots | sakapon/Bellona.Analysis | Old/ClusteringModel-1.0.7.cs | Old/ClusteringModel-1.0.7.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Bellona.Core;
namespace Bellona.Analysis.Clustering
{
public static class ClusteringModel
{
public static ClusteringModel<T> CreateFromNumber<T>(Func<T, ArrayVector> featuresSelector, int clust... | mit | C# | |
812d3d0aecd8c45fee6a7281d2d7c86eea8cd5b4 | Create Problem63.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem63.cs | Problems/Problem63.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
namespace ProjectEuler.Problems
{
class Problem63
{
public void Run()
{
int upper = 500;
int count = 0;
string largest = "";
for(int x = ... | mit | C# | |
16c500d0b0dd29191466608bcd8f7fa970e3419c | Add mention tests | ppy/osu,UselessToucan/osu,NeoAdonis/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu,peppy/osu-new,peppy/osu | osu.Game.Tests/Chat/MessageNotifierTests.cs | osu.Game.Tests/Chat/MessageNotifierTests.cs | using NUnit.Framework;
using osu.Game.Online.Chat;
namespace osu.Game.Tests.Chat
{
[TestFixture]
public class MessageNotifierTests
{
private readonly MessageNotifier messageNotifier = new MessageNotifier();
[Test]
public void TestMentions()
{
// Message (with m... | mit | C# | |
8595c821b438cf2d5c8a2d7bb3d06b8d46f9a1ec | Add TestCaseMatchHeader. | DrabWeb/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,naoey/osu,DrabWeb/osu,2yangk23/osu,EVAST9919/osu,ppy/osu,smoogipoo/osu,peppy/osu,johnneijzen/osu,ppy/osu,ZLima12/osu,smoogipoo/osu,peppy/osu,peppy/osu-new,UselessToucan/osu,smoogipooo/osu,naoey/osu,EVAST9919/osu,johnneijzen/os... | osu.Game.Tests/Visual/TestCaseMatchHeader.cs | osu.Game.Tests/Visual/TestCaseMatchHeader.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 NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Screens.Multi.Screens.Match;
namespace osu.Game.Tests.Visual
{
[TestFixture]
public class TestCa... | mit | C# | |
c95e3e7133f544cf30ae7f8121392660b09d7440 | Add interface for creature movement | cmilr/Unity2D-Components,jguarShark/Unity2D-Components | Interfaces/ICreatureController.cs | Interfaces/ICreatureController.cs |
public interface ICreatureController
{
void MoveRight();
void MoveLeft();
void Jump();
void Attack();
}
| mit | C# | |
9716b00cfaecc42349f519009ee3bc9fad8dd8b0 | Create GlobalSuppressions.cs | hprose/hprose-dotnet | proj/Hprose.RPC.Plugins/GlobalSuppressions.cs | proj/Hprose.RPC.Plugins/GlobalSuppressions.cs |
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", ... | mit | C# | |
93e71b02384f27d59dc53b78f55eb464a63474bb | Introduce UserCallbackException | adamralph/FakeItEasy,thomaslevesque/FakeItEasy,FakeItEasy/FakeItEasy,adamralph/FakeItEasy,FakeItEasy/FakeItEasy,blairconrad/FakeItEasy,thomaslevesque/FakeItEasy,blairconrad/FakeItEasy | src/FakeItEasy/UserCallbackException.cs | src/FakeItEasy/UserCallbackException.cs | namespace FakeItEasy
{
using System;
#if FEATURE_BINARY_SERIALIZATION
using System.Runtime.Serialization;
#endif
/// <summary>
/// An exception thrown when a user-provided callback throws an exception.
/// </summary>
#if FEATURE_BINARY_SERIALIZATION
[Serializable]
#endif
public... | mit | C# | |
18806b7b827e547a6c579e2be712766623514d7f | Add a class with extras on top of .net Marshal (Note: some now partially obsolete as of .NET 4.5.1 ) | jmp75/dynamic-interop-dll,jmp75/dynamic-interop-dll,jmp75/dynamic-interop-dll | DynamicInterop/MarshalExtra.cs | DynamicInterop/MarshalExtra.cs | using System;
using System.Runtime.InteropServices;
namespace DynamicInterop
{
/// <summary>
/// Extra methods on top of System.Runtime.InteropServices.Marshal for allocating unmanaged memory, copying unmanaged
/// memory blocks, and converting managed to unmanaged types</summary>
class MarshalExtra
... | mit | C# | |
99e9b86fe855b52acd68db5d5ca1c8bddc9d6025 | Add class for fixed point data | Figglewatts/LBD2OBJ | LBD2OBJ/Types/FixedPoint.cs | LBD2OBJ/Types/FixedPoint.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LBD2OBJ.Types
{
class FixedPoint
{
public int IntegralPart { get; set; }
public int DecimalPart { get; set; }
public FixedPoint(byte[] data)
{
if (data.... | mit | C# | |
e5f50ed07999069d58cd43361f9b03eee3aa206f | add content | ucdavis/JsModels.Net,ucdavis/JsModels.Net,ucdavis/JsModels.Net | JsModels/content/App_Start/Startup.JsModels.cs | JsModels/content/App_Start/Startup.JsModels.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JsModels.Owin;
using Owin;
namespace $rootnamespace$
{
public partial class Startup
{
public void ConfigureJsModels(IAppBuilder app)
{
app.MapJsModels(new JsMod... | mit | C# | |
70af72cf0e69fbd119b041bc0b7b1663df551b7c | Create StarScythe.cs | Minesap/TheMinepack | Items/Weapons/StarScythe.cs | Items/Weapons/StarScythe.cs | using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using Minepack.Items;
namespace Minepack.Items.Weapons {
public class StarScythe : ModItem
{
public override void SetDefaults()
{
item.name = "... | mit | C# | |
a995da7c066e9ce0648d4d82739cd6d98d508f17 | Add ArrayExtensionsTests | another-guy/Peppermint | Peppermint.Tests/Arrays/ArrayExtensionsTests.cs | Peppermint.Tests/Arrays/ArrayExtensionsTests.cs | using System.Linq;
using Peppermint.Arrays;
using Xunit;
namespace Peppermint.Tests.Arrays
{
public class ArrayExtensionsTests
{
[Fact]
public void NullToEmptyReturnsOriginalForNonNullArray()
{
// Arrange
var ints = new[] {1, 2, 3};
// Act
... | mit | C# | |
b0f85d05eae672360981ca41811d11e1b73a2c6a | Add Keyword class | whampson/bft-spec,whampson/cascara | Src/WHampson.Bft/Keyword.cs | Src/WHampson.Bft/Keyword.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# | |
94d1a09ae46f682b4ebe53674a34da228f5167c4 | Create delegate.cs | ashoktandan007/csharp,wchild30/asterisk | delegate.cs | delegate.cs | using System;
delegate void mydel(int z);
class P
{
static void show(int b)
{
Console.Write(b);
}
static void Main()
{
mydel obj;
obj= new mydel(show);
obj(9);
Console.ReadLine();
}
}
| apache-2.0 | C# | |
d35dcf81205fea9c1f6f336bf27360c66f9fde84 | Add False | farity/farity | Farity/False.cs | Farity/False.cs | namespace Farity
{
public static partial class F
{
public static readonly FuncAny<bool> False = args => false;
}
} | mit | C# | |
3677cd34f4d7a68cbf5456c310393728a904516a | create c_sharp file | YusukeKato/AR_and_Robot | Tango_CheckRasPiMouseSensor/CheckSensorValue.cs | Tango_CheckRasPiMouseSensor/CheckSensorValue.cs | //----------------------------------------------------------------------------------------------------
// Copyright 2016 Google Inc. All Rights Reserved.
// Copyright 2018 Yusuke Kato All Rights Reserved.
//
// Released under the Apache License 2.0
// http://www.apache.org/licenses/LICENSE-2.0
//
// Changed MarkerDet... | apache-2.0 | C# | |
587760b76ce7fe3e8cdd02c6d2b4d2a963c8507f | Add presenter for asmdef occurrences | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | resharper/resharper-unity/src/AsmDef/Feature/Services/Occurrences/AsmDefNameOccurrencePresenter.cs | resharper/resharper-unity/src/AsmDef/Feature/Services/Occurrences/AsmDefNameOccurrencePresenter.cs | using System.Drawing;
using JetBrains.Application.UI.Controls.JetPopupMenu;
using JetBrains.Diagnostics;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Feature.Services.Occurrences;
using JetBrains.ReSharper.Feature.Services.Presentation;
using JetBrains.ReSharper.Plugins.Unity.AsmDef.Psi.Caches;
using JetBrai... | apache-2.0 | C# | |
98e4a67f6e8022e34531ec88c376ba3ff1c79a44 | Add login page | Structed/claimini,Structed/claimini | src/Claimini.BlazorClient/Pages/Login.cshtml | src/Claimini.BlazorClient/Pages/Login.cshtml | @page "/login"
@using Claimini.Api.Model
@inject IApiClient apiClient;
@inject HttpClient Http
<div class="container">
<h1>Log in to Claimini</h1>
<div class="form-group">
<label for="email">Email</label>
<input type="text" name="email" id="email" placeholder="Email" class="form-control" bind=... | mit | C# | |
b6f81c83af160d55ebc7a2eafb82b82475089737 | Create Problem85.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem85.cs | Problems/Problem85.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler.Problems
{
class Problem85
{
public void Run()
{
int minX = 0, minY = 0, min = 1800000;
int maxX = 0, maxY = 0, max = 2200000;
// [3,2] = (3 + 2 + 1)... | mit | C# | |
fc964730a95d631e7af2c61bfe562dc923dabfc4 | remove old files and added new ones | Oscarbralo/SquareCipher | CSharpSquareCipher/Program.cs | CSharpSquareCipher/Program.cs | using System;
namespace SquareCipher
{
class Program
{
static void Main(string[] args)
{
SquareCipher s = new SquareCipher();
Console.WriteLine("Give me a sentence to encode:");
string inp = Console.ReadLine();
string res = s.squareCipher(inp);
... | mit | C# | |
dc7c9311758ee4e85b39ef854e9328d45c6e5e74 | add a base exception class | xmlunit/xmlunit,brabenetz/xmlunit,xmlunit/xmlunit.net,xmlunit/xmlunit,xmlunit/xmlunit.net,brabenetz/xmlunit | src/main/net-core/exceptions/XMLUnitException.cs | src/main/net-core/exceptions/XMLUnitException.cs | /*
This file is licensed to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | apache-2.0 | C# | |
13d2d6eaba1c579b0371685a3b75c47855ee8cee | Create Material.cs | Andy16823/OpenObjectLoader | source/OpenObjectLoader/Types/Material.cs | source/OpenObjectLoader/Types/Material.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenObjectLoader.Types
{
public class Material
{
public String Name { get; set; }
public String TexturePath { get; set; }
public List<Definition> Definitions { g... | mit | C# | |
ea1ae8b7fc107174fdfcd33a04be17149fe88de6 | Add bucket sort unit test and refactoring | aalhour/C-Sharp-Algorithms,ivandrofly/C-Sharp-Algorithms | AlgorithmsTests/Sorting/BubbleSorterTests.cs | AlgorithmsTests/Sorting/BubbleSorterTests.cs | using System.Collections.Generic;
using Algorithms.Sorting;
using NUnit.Framework;
namespace AlgorithmsTests.Sorting
{
[TestFixture]
public class BubbleSorterTests
{
[TestCase(new[] { 0, 2 }, new[] { 0, 2 })]
[TestCase(new []{3,2},new []{2,3})]
[TestCase(new[] { 1, 9, 3, 7, 5, 2 },... | mit | C# | |
965af2db899d3101f85f3b0939bdfb25e8a991cf | Add web response status handling | caronyan/CSharpRecipe | CSharpRecipe/Recipe.Web/ResponseStatusHandling.cs | CSharpRecipe/Recipe.Web/ResponseStatusHandling.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace Recipe.Web
{
public enum ResponseCategories
{
Unknown,
Informational,
Success,
Redirected,
ClientError,
ServerError
... | mit | C# | |
f4eda0613ed1136cfc81fca2a993f43a0801e468 | Create AssemblyInfo.cs | KevinWiener/Seatown.Data | Seatown.Data.Tests/Properties/AssemblyInfo.cs | Seatown.Data.Tests/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Seatown.Data.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Seatown.Data.Tests")]
[assembly: As... | mit | C# | |
909b5a9594fc5a4e70e3141ff18de83568137f8c | Switch over metadata to use its own script order reference | codevlabs/Glimpse,sorenhl/Glimpse,paynecrl97/Glimpse,flcdrg/Glimpse,dudzon/Glimpse,paynecrl97/Glimpse,Glimpse/Glimpse,codevlabs/Glimpse,elkingtonmcb/Glimpse,gabrielweyer/Glimpse,dudzon/Glimpse,rho24/Glimpse,elkingtonmcb/Glimpse,flcdrg/Glimpse,rho24/Glimpse,Glimpse/Glimpse,gabrielweyer/Glimpse,dudzon/Glimpse,SusanaL/Gli... | source/Glimpse.Core2/ClientScript/Metadata.cs | source/Glimpse.Core2/ClientScript/Metadata.cs | using Glimpse.Core2.Extensibility;
namespace Glimpse.Core2.ClientScript
{
public class Metadata:IDynamicClientScript
{
public ScriptOrder Order
{
get { return ScriptOrder.RequestMetadataScript; }
}
public string GetResourceName()
{
return Resour... | using Glimpse.Core2.Extensibility;
namespace Glimpse.Core2.ClientScript
{
public class Metadata:IDynamicClientScript
{
public ScriptOrder Order
{
get { return ScriptOrder.IncludeAfterClientInterfaceScript; }
}
public string GetResourceName()
{
r... | apache-2.0 | C# |
c5ce4908f22e70b468acdba4d40900c94ceea435 | Add IEntity interface | denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs | src/Diploms.Core/IEntity.cs | src/Diploms.Core/IEntity.cs | namespace Diploms.Core
{
public interface IEntity
{
int Id { get; set; }
}
} | mit | C# | |
9216a7727cf01ed61674f302932c49b708de1a54 | Add MetricColumnTests | adamsitnik/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,adamsitnik/BenchmarkDotNet | tests/BenchmarkDotNet.Tests/Columns/MetricColumnTests.cs | tests/BenchmarkDotNet.Tests/Columns/MetricColumnTests.cs | using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
using BenchmarkDotNet.Columns;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Environments;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Pa... | mit | C# | |
516b336d4bf4d20eaa4c0457e36abc5ce6c76703 | Add the ability to scoot the camera | makerslocal/LudumDare38 | bees-in-the-trap/Assets/Scripts/MainCamera.cs | bees-in-the-trap/Assets/Scripts/MainCamera.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MainCamera : MonoBehaviour {
public GameObject cursor;
private IEnumerator currentMove;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
//this.transform.posi... | mit | C# | |
b360c1ab0524ef5dfd9bbf1f0a112f4889af4fc9 | Add missing file | juhovh/tapcfg,zhanleewo/tapcfg,eyecreate/tapcfg,eyecreate/tapcfg,juhovh/tapcfg,juhovh/tapcfg,eyecreate/tapcfg,juhovh/tapcfg,juhovh/tapcfg,eyecreate/tapcfg,zhanleewo/tapcfg,zhanleewo/tapcfg,eyecreate/tapcfg,zhanleewo/tapcfg,zhanleewo/tapcfg,juhovh/tapcfg | src/bindings/ProtocolType.cs | src/bindings/ProtocolType.cs | /**
* tapcfg - A cross-platform configuration utility for TAP driver
* Copyright (C) 2008 Juho Vähä-Herttua
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* versio... | lgpl-2.1 | C# | |
a687f314320cec48a21640817411f947a39bcd2a | Remove call to Console.WriteLine | damianh/Nancy,xt0rted/Nancy,NancyFx/Nancy,jeff-pang/Nancy,JoeStead/Nancy,sadiqhirani/Nancy,sadiqhirani/Nancy,asbjornu/Nancy,davidallyoung/Nancy,felipeleusin/Nancy,khellang/Nancy,xt0rted/Nancy,thecodejunkie/Nancy,JoeStead/Nancy,xt0rted/Nancy,anton-gogolev/Nancy,NancyFx/Nancy,davidallyoung/Nancy,charleypeng/Nancy,davidal... | test/Nancy.Tests/Unit/JsonSerializerFixture.cs | test/Nancy.Tests/Unit/JsonSerializerFixture.cs | namespace Nancy.Tests.Unit
{
using System;
using Nancy.Json;
using Xunit;
public class JsonSerializerFixture
{
[Fact]
public void Should_be_able_to_serialise_datetimeoffset_iso_format()
{
// Given
var serializer = new JavaScriptSerial... | namespace Nancy.Tests.Unit
{
using System;
using Nancy.Json;
using Xunit;
public class JsonSerializerFixture
{
[Fact]
public void Should_be_able_to_serialise_datetimeoffset_iso_format()
{
// Given
var serializer = new JavaScriptSerial... | mit | C# |
9f4320d1f0c41a5bd9bd30628187b829629f7bf2 | test ProxyActivator | AspectCore/Lite,AspectCore/Abstractions,AspectCore/AspectCore-Framework,AspectCore/AspectCore-Framework | test/AspectCore.Lite.Test/ProxyActivatorTest.cs | test/AspectCore.Lite.Test/ProxyActivatorTest.cs | using AspectCore.Lite.Abstractions;
using AspectCore.Lite.Abstractions.Activators;
using NSubstitute;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace AspectCore.Lite.Test
{
public class ProxyActivatorTest : IDependencyInjection
{
... | mit | C# | |
ac17c53cf53326337e38e6a57d1053c3a73844bd | Add test | sakapon/KLibrary.Linq | KLibrary4/UnitTest/Linq/CompositionTest.cs | KLibrary4/UnitTest/Linq/CompositionTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using KLibrary.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTest.Linq
{
[TestClass]
public class CompositionTest
{
[TestMethod]
public void ZipForShort_1()
{
var ... | mit | C# | |
5ae278b7893b8d9444fbab5a51cfb6327b88b104 | Create ImportAttribute.cs | HelloKitty/DistributedComputationEngine | MasterClient/Attributes/ImportAttribute.cs | MasterClient/Attributes/ImportAttribute.cs | //
| mit | C# | |
915e843475a865c218db66084dadaf2f666d156a | Create Index.cshtml | asanchezr/hets,swcurran/hets,swcurran/hets,bcgov/hets,asanchezr/hets,asanchezr/hets,bcgov/hets,bcgov/hets,bcgov/hets,swcurran/hets,swcurran/hets,asanchezr/hets,swcurran/hets | PDF/src/PDF.Server/Views/Home/Index.cshtml | PDF/src/PDF.Server/Views/Home/Index.cshtml | temp
| apache-2.0 | C# | |
5973e2ce4e6d595a6f910b55250ed174a97db92d | Add component for unstable rate statistic | smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,peppy/osu-new,ppy/osu,ppy/osu | osu.Game/Screens/Ranking/Statistics/UnstableRate.cs | osu.Game/Screens/Ranking/Statistics/UnstableRate.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.Game.Rulesets.Scoring;
namespace osu.Game.Screens.Ranking.Statistics
{
/// <summary>
... | mit | C# | |
256eb6a51d382d8cf65f55e60e9353ca684e4118 | update version number | mono/tao,OpenRA/tao,OpenRA/tao,mono/tao | src/Tao.Sdl/AssemblyInfo.cs | src/Tao.Sdl/AssemblyInfo.cs | #region License
/*
MIT License
Copyright 2003-2005 Tao Framework Team
http://www.taoframework.com
All rights reserved.
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,... | #region License
/*
MIT License
Copyright 2003-2005 Tao Framework Team
http://www.taoframework.com
All rights reserved.
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# |
bac04a2d24e8b262926b25eceb3a7c0205e40597 | Add 'CascaraFloat' | whampson/cascara,whampson/bft-spec | Src/WHampson.Cascara/Types/CascaraFloat.cs | Src/WHampson.Cascara/Types/CascaraFloat.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# | |
c130bdbd7e260e2519e70d85a8b4ad0e0dfa00dd | Create Note.cs | CarmelSoftware/MVCDataRepositoryXML | Models/Note.cs | Models/Note.cs | /// Note.cs
| mit | C# | |
d1213b237b1f510a2dfeba5cce29b9656c25908b | Create DeckOfCards.cs | emilisa/DeckOfCards | DeckOfCards.cs | DeckOfCards.cs | namespace DeckOfCards
{
using System;
using System.Collections.Generic;
class DeckOfCards
{
static void Main()
{
//Card card1 = new Card("8", "Clubs", '♣', ConsoleColor.Green);
//card1.Show();
//Card card2 = new Card("7", "Hearts", '♥', ConsoleCo... | mit | C# | |
187104622165a29bcb2d1dbbbd4bd689e46e233d | Create Exercise_07.cs | jesushilarioh/Questions-and-Exercises-in-C-Sharp | Exercise_07.cs | Exercise_07.cs | using System;
public class Exercise_07
{
public static void Main()
{
/********************************************************************
*
* 7. Write a program to print on screen the output of
* adding, subtractinhg, multiplying and dividing of two numbers
* which will be entered by t... | mit | C# | |
e48601b512c4d42fe3dbab1a41f213090107c341 | Create inspecao_veicular_teste.aspx.cs | creapr/InspecaoVeicular | src/inspecao_veicular_teste.aspx.cs | src/inspecao_veicular_teste.aspx.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.UI;
using creaweb.webservices.DTOs.ART.InspecaoVeicular;
namespace creaweb.webservices.ws.art
{
public partial class inspecao_veicular_teste : Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void c... | apache-2.0 | C# | |
d150d8ca6664bacdd31f8985a326648019ac755b | Add AsyncDelegate | gr8woo/RazorLight,toddams/RazorLight,toddams/RazorLight,gr8woo/RazorLight | src/RazorLight/Internal/RenderAsyncDelegate.cs | src/RazorLight/Internal/RenderAsyncDelegate.cs | using System.IO;
using System.Threading.Tasks;
namespace RazorLight.Internal
{
public delegate Task RenderAsyncDelegate(TextWriter writer);
}
| apache-2.0 | C# | |
17479446dd9acb98bc1a613753acb828985b25f4 | Add empty project controller | Franklin89/Blog,Franklin89/Blog | src/MLSoftware.Web/Controllers/ProjectController.cs | src/MLSoftware.Web/Controllers/ProjectController.cs | using Microsoft.AspNetCore.Mvc;
namespace MLSoftware.Web.Controllers
{
public class ProjectController : Controller
{
public IActionResult Index()
{
return View();
}
}
}
| mit | C# | |
ee3c203c52bf7cd909470b7998689373c797a616 | Create TexasHoldemTest.cs | g-yonchev/TelerikAcademy,g-yonchev/TelerikAcademy,g-yonchev/TelerikAcademy | Homeworks/TexasHoldemTest.cs | Homeworks/TexasHoldemTest.cs | namespace TexasHoldem.AI.SmartPlayer.Helpers
{
using TexasHoldem.Logic.Cards;
public static class HandStrengthValuation
{
private static readonly int[,] StartingHandRecommendationsSuited =
{
{ 3, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1 }, // A
{ 0, 3, 3, 3, 3,... | mit | C# | |
9ff2d993bbda34d3c0fb05fc57c96c558f7f328a | test with null source | lbargaoanu/AutoMapper,mjalil/AutoMapper,AutoMapper/AutoMapper,BlaiseD/AutoMapper,gentledepp/AutoMapper,AutoMapper/AutoMapper | src/UnitTests/Bug/NullableIntToNullableDecimal.cs | src/UnitTests/Bug/NullableIntToNullableDecimal.cs | using Xunit;
using Should;
using System;
namespace AutoMapper.UnitTests.Bug
{
public class NullableIntToNullableDecimal : AutoMapperSpecBase
{
private Destination _destination;
class Source
{
public int? Number { get; set; }
}
class Destination
{
... | using Xunit;
using Should;
using System;
namespace AutoMapper.UnitTests.Bug
{
public class NullableIntToNullableDecimal : AutoMapperSpecBase
{
private Destination _destination;
class Source
{
public int? Number { get; set; }
}
class Destination
{
... | mit | C# |
049987925d6293bd5a7367e86c1256febe60a229 | Add regression test for checking scene close when SceneManager is asked to close | RavenB/opensim,M-O-S-E-S/opensim,M-O-S-E-S/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,bravelittlescientist/opensim-performance,QuillLittlefeather/opensim-1,OpenSimian/opensimulator,QuillLittlefeather/opensim-1,BogusCurry/arribasim-dev,Michelle-Argus/ArribasimExtract,bravelittlescientist/opensim-performance,rryk/omp-s... | OpenSim/Region/Framework/Scenes/Tests/SceneManagerTests.cs | OpenSim/Region/Framework/Scenes/Tests/SceneManagerTests.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# | |
ef09c8851c0c2f3e2be9a68b9890f16ec61823ad | add Unity/UnityTestToolsUtility/UnityTestToolsUtility.cs | NDark/ndinfrastructure,NDark/ndinfrastructure | Unity/UnityTestToolsUtility/UnityTestToolsUtility.cs | Unity/UnityTestToolsUtility/UnityTestToolsUtility.cs | /**
MIT License
Copyright (c) 2017 NDark
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... | mit | C# | |
caa6e4b70fbd94944d6f016424adc4a13f939fd5 | update assemblyinfo | ParagonTruss/GeometryClassLibrary | GeometryClassLibrary/Properties/AssemblyInfo.cs | GeometryClassLibrary/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("Ge... | lgpl-2.1 | C# | |
232b245c1c2bbf08fe8179dc050ce5e268661635 | Create LongestSubstring.cs | shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/Algorithms | leetcode/LongestSubstring.cs | leetcode/LongestSubstring.cs | /*
Program to find the longest substring in a given string which has no repeating characters
Solution to question at https://leetcode.com/problems/longest-substring-without-repeating-characters/
Time Complexity: O(nm) --> moving along the length of the substring(m) for each input string's character(n)
Space Complexity... | mit | C# | |
1ebf30344e853f85dd0c6b4b352ddd1dbc9b2974 | create partial class for some search functions | pashchuk/Hospital-app | HospitalLibrary/EntitiesFunctions.cs | HospitalLibrary/EntitiesFunctions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalLibrary
{
class EntitiesFunctions
{
}
}
| apache-2.0 | C# | |
38881e1c5e95bccde742c8c326ef54d2080629fd | Add test coverage for failing scenario | peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework | osu.Framework.Tests/IO/DllResourceStoreTest.cs | osu.Framework.Tests/IO/DllResourceStoreTest.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.Threading.Tasks;
using NUnit.Framework;
using osu.Framework.IO.Stores;
using osu.Framework.Tests.Visual;
namespace osu.Framework.Tests.IO
{
public class... | mit | C# | |
573dfaee1d643803989b727dc556e6e26bc42b71 | Add "SQLiteManager" | DRFP/Personal-Library | _Build/PersonalLibrary/Library/SQLiteManager.cs | _Build/PersonalLibrary/Library/SQLiteManager.cs | using Library.Model;
using SQLite;
using System.Threading.Tasks;
using static Library.Configuration;
using static Library.Database;
namespace Library {
public class SQLiteManager {
private static SQLiteAsyncConnection connection;
static SQLiteManager() { connection = new SQLiteAsyncConnection(Dat... | mit | C# | |
25f2c582e7f6ab9d54fba269c26d656bef1dcb97 | add ToolbarWikiButton | peppy/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu-new,smoogipoo/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,smoogipooo/osu | osu.Game/Overlays/Toolbar/ToolbarWikiButton.cs | osu.Game/Overlays/Toolbar/ToolbarWikiButton.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
namespace osu.Game.Overlays.Toolbar
{
public class ToolbarWikiButton : ToolbarOverlayToggleButton
{... | mit | C# | |
d1d1c4ee7a5df46e20330b28b293dc700c9da7e4 | Add lead-in tests | 2yangk23/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,johnneijzen/osu,ppy/osu,johnneijzen/osu,EVAST9919/osu,peppy/osu-new,UselessToucan/osu,UselessToucan/osu,2yangk23/osu,peppy/osu,smoogipoo/osu,EVAST9919/osu,NeoAdonis/osu,ppy/osu,smoogipooo/osu,ppy/osu,peppy/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu | osu.Game.Tests/Visual/Gameplay/TestCaseLeadIn.cs | osu.Game.Tests/Visual/Gameplay/TestCaseLeadIn.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osu.Game.Beatmaps;
usin... | mit | C# | |
70e2c2ac474660970a2b5af498150c20e2860c7a | Fix null check | AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthikna... | src/Common/Core/Impl/OS/RegistryKeyImpl.cs | src/Common/Core/Impl/OS/RegistryKeyImpl.cs | using Microsoft.Win32;
namespace Microsoft.Common.Core.OS {
internal sealed class RegistryKeyImpl : IRegistryKey {
RegistryKey _key;
public RegistryKeyImpl(RegistryKey key) {
_key = key;
}
public void Dispose() {
_key?.Dispose();
_key = null;
... | using Microsoft.Win32;
namespace Microsoft.Common.Core.OS {
internal sealed class RegistryKeyImpl : IRegistryKey {
RegistryKey _key;
public RegistryKeyImpl(RegistryKey key) {
_key = key;
}
public void Dispose() {
_key?.Dispose();
_key = null;
... | mit | C# |
200b23c6894b35d5a13b90c62f1ffc82c573be45 | Add lightweight `TournamentBeatmap` model | ppy/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu | osu.Game.Tournament/Models/TournamentBeatmap.cs | osu.Game.Tournament/Models/TournamentBeatmap.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.Extensions.ObjectExtensions;
using osu.Game.Beatmaps;
using osu.Game.Extensions;
using osu.Game.Online.API.Requests.Responses;
using osu... | mit | C# | |
d4866219af241d1cec5875b6cda4909f151595ea | correct materials.cs | Bloodknight/Torque3D,JeffProgrammer/Torque3D,Bloodknight/Torque3D,chaigler/Torque3D,JeffProgrammer/Torque3D,chaigler/Torque3D,Bloodknight/Torque3D,JeffProgrammer/Torque3D,JeffProgrammer/Torque3D,JeffProgrammer/Torque3D,chaigler/Torque3D,Bloodknight/Torque3D,chaigler/Torque3D,chaigler/Torque3D,chaigler/Torque3D,Bloodkni... | Templates/BaseGame/game/tools/shapes/materials.cs | Templates/BaseGame/game/tools/shapes/materials.cs | //--- noshape.dts MATERIALS BEGIN ---
singleton Material(noshape_NoShape)
{
mapTo = "NoShape";
diffuseMap[0] = "";
diffuseColor[0] = "0.8 0.003067 0 .8";
emissive[0] = 0;
doubleSided = false;
translucent = 1;
translucentBlendOp = "LerpAlpha";
castShadows = false;
materialTag0 = "Wor... | mit | C# | |
baf65a8b3d6373d4f952cfc1e20c2b3778c7aa3f | Test AnyArgs | VictorNicollet/SocialToolBox | SocialToolBox.Core.Tests/Web/Args/any_args.cs | SocialToolBox.Core.Tests/Web/Args/any_args.cs | using NUnit.Framework;
using SocialToolBox.Core.Mocks.Web;
using SocialToolBox.Core.Web;
using SocialToolBox.Core.Web.Args;
namespace SocialToolBox.Core.Tests.Web.Args
{
[TestFixture]
public class any_args
{
public AnyArgs Args;
[SetUp]
public void SetUp()
{
Ar... | mit | C# | |
b3db5909c137a38e6e73640d20129e3d28c81436 | Define 'IEnumerable<T>', 'IEnumerator<T>' | jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm | stdlib/corlib/Collections.Generic/IEnumerable.cs | stdlib/corlib/Collections.Generic/IEnumerable.cs | namespace System.Collections.Generic
{
/// <summary>
/// Represents a collection of elements.
/// </summary>
public interface IEnumerable<out T>
{
/// <summary>
/// Produces an enumerator that iterates through a collection of elements.
/// </summary>
/// <returns>An e... | mit | C# | |
2d0bbea3d9dab371be9911a3877792155a3d5ff8 | Add the NoScript template | kjac/FormEditor,kjac/FormEditor,kjac/FormEditor | Source/Umbraco/Views/FormEditorNoScript.cshtml | Source/Umbraco/Views/FormEditorNoScript.cshtml | @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
Layout = null;
@* if the content being rendered does not contain the form property, pass the applicable content like this *@
// ViewBag.FormContent = myInstanceOfIPublishedContent;
@* if your form property is not called "form" on the content type, pass the p... | mit | C# | |
ca40bbfd2fa97258f257ad7e9f78042b9f397134 | Create IMongoClientSessionStore.cs | tiksn/TIKSN-Framework | TIKSN.Core/Data/Mongo/IMongoClientSessionStore.cs | TIKSN.Core/Data/Mongo/IMongoClientSessionStore.cs | using MongoDB.Driver;
namespace TIKSN.Data.Mongo
{
public interface IMongoClientSessionStore
{
void SetClientSessionHandle(IClientSessionHandle clientSessionHandle);
void ClearClientSessionHandle();
}
} | mit | C# | |
d2209161782a8e16df0508dc9e9693b5343b80ca | Add a new test to verify PublicKeyAuth.GenerateKeyPair(seed) | fraga/libsodium-net,bitbeans/libsodium-net,BurningEnlightenment/libsodium-net,fraga/libsodium-net,bitbeans/libsodium-net,BurningEnlightenment/libsodium-net,adamcaudill/libsodium-net,deckar01/libsodium-net,deckar01/libsodium-net,tabrath/libsodium-core,adamcaudill/libsodium-net | Tests/PublicKeyAuthTests.cs | Tests/PublicKeyAuthTests.cs | using System.Text;
using Sodium;
using NUnit.Framework;
namespace Tests
{
/// <summary>
/// Tests for the PublicKeyAuth class
/// </summary>
[TestFixture]
public class PublicKeyAuthTest
{
/// <summary>
/// Does PublicKeyAuth.GenerateKeyPair() return... something.
/// </summary>
[Test]
... | using System.Text;
using Sodium;
using NUnit.Framework;
namespace Tests
{
/// <summary>
/// Tests for the PublicKeyAuth class
/// </summary>
[TestFixture]
public class PublicKeyAuthTest
{
/// <summary>
/// Does PublicKeyAuth.GenerateKeyPair() return... something.
/// </summary>
[Test]
... | mit | C# |
ccc7e926b38d97788a3491ac073c1f3a98c41748 | Add SingleArgumentDataSource | joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net | JoinRpg.TestHelpers/SingleArgumentDataSource.cs | JoinRpg.TestHelpers/SingleArgumentDataSource.cs | using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace JoinRpg.Portal.Test.ContainerTest
{
/// <summary>
/// Helper for create XUnit data sources
/// </summary>
public abstract class SingleArgumentDataSource : IEnumerable<object[]>
{
... | mit | C# | |
64e9f815c14e7f3599fc101ee378f7955c82aee6 | Add files via upload | viktorMirev/SoftUni-tasks-others,viktorMirev/SoftUni-tasks-others | LongestIncreasingSubsiquense.cs | LongestIncreasingSubsiquense.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication20
{
class Program
{
static void Main(string[] args)
{
// 0 1 2 3 4 5 6 примерна структура
// 5 2 3 6 1 7 2
... | mit | C# | |
d909546d6d06e128a3cd1677e786c11949333a3f | Create StringHelper.cs | bgreer5050/NetduinoHelpers | StringHelper.cs | StringHelper.cs | public static class StringHelper
{
public static string RemoveExtras(string s)
{
StringBuilder sb = new StringBuilder(500);
foreach(char c in s.ToCharArray())
{
if(c ==123 || c == 34 || c == 47 || c== 92)
{
}
... | mit | C# | |
a14cca7f3d507e577b5a61a4f56f780c42d98421 | Add Chars static class | Codinlab/PDF-SDK | src/DocumentFormat.Pdf/IO/Chars.cs | src/DocumentFormat.Pdf/IO/Chars.cs | namespace DocumentFormat.Pdf.IO
{
public static class Chars
{
/// <summary>
/// Null character
/// </summary>
public const char NUL = '\x00';
/// <summary>
/// Tab character
/// </summary>
public const char HT = '\x09';
/// <summary>
... | mit | C# | |
a27702eaaa4822c23f369ae8b8ff5a758ef92883 | Update Verification.cs | sharkdev-j/ark-net,kristjank/ark-net | ark-net/Core/Verification.cs | ark-net/Core/Verification.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Verification.cs" company="Ark">
// MIT License
// //
// // Copyright (c) 2017 Kristjan Košič
// //
// // Permission is hereby granted, free of charge, to any per... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Verification.cs" company="Ark Labs">
// MIT License
// //
// // Copyright (c) 2017 Kristjan Košič
// //
// // Permission is hereby granted, free of charge, to an... | mit | C# |
f73b288aa32d77d56f664e524a7da482647b009d | Add card-associate-to-customer snippet | balanced/balanced-csharp | scenarios/snippets/card-associate-to-customer.cs | scenarios/snippets/card-associate-to-customer.cs | Card card = Card.Fetch(cardHref);
card.AssociateToCustomer(customerHref); | mit | C# | |
2da8177afdb1ca6d31ae17be326911e63576d16b | Add OrderLineUpdateRequest class | Viincenttt/MollieApi,Viincenttt/MollieApi | Mollie.Api/Models/Order/OrderLineUpdateRequest.cs | Mollie.Api/Models/Order/OrderLineUpdateRequest.cs | namespace Mollie.Api.Models.Order {
public class OrderLineUpdateRequest {
/// <summary>
/// A description of the order line, for example LEGO 4440 Forest Police Station.
/// </summary>
public string Name { get; set; }
/// <summary>
/// A link pointing to an image of... | mit | C# | |
4bddc7b204d587c84e9fa8b5b9a936c8f9760e91 | Update math/isPalindrome/C#/IsPalindrome.cs | ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovs... | math/isPalindrome/C#/IsPalindrome.cs | math/isPalindrome/C#/IsPalindrome.cs | using System;
using System.Linq;
public class Program
{
public static void Main()
{
Console.WriteLine("Please enter a number / text");
string input = Console.ReadLine();
string output = IsPalindrome(input) ? "Input is a palindrome" : "Input is not a palindrome";
Console.WriteLine(output);
}
public stat... | cc0-1.0 | C# | |
d2b74cd992e8a2df72da5f45be386e446c4e5b6b | Add CQRS error interface | Vtek/Bartender | src/Bartender/ICqrsError.cs | src/Bartender/ICqrsError.cs | namespace Bartender
{
/// <summary>
/// Define a CQRS error
/// </summary>
public interface ICqrsError
{
/// <summary>
/// Gets the code.
/// </summary>
/// <value>The code.</value>
int Code { get; }
/// <summary>
/// Gets the error.
... | mit | C# | |
f7af2ca126b62c54530528c7cb86f4867089a3c6 | add Test.cshtml | down4u/WeiXinMPSDK,down4u/WeiXinMPSDK,lishewen/WeiXinMPSDK,mc7246/WeiXinMPSDK,jiehanlin/WeiXinMPSDK,JeffreySu/WeiXinMPSDK,down4u/WeiXinMPSDK,JeffreySu/WeiXinMPSDK,mc7246/WeiXinMPSDK,wanddy/WeiXinMPSDK,mc7246/WeiXinMPSDK,jiehanlin/WeiXinMPSDK,lishewen/WeiXinMPSDK,JeffreySu/WeiXinMPSDK,jiehanlin/WeiXinMPSDK,lishewen/WeiX... | src/Senparc.Weixin.MP.Sample/Senparc.Weixin.MP.Sample/Views/Cache/Test.cshtml | src/Senparc.Weixin.MP.Sample/Senparc.Weixin.MP.Sample/Views/Cache/Test.cshtml | @{
ViewBag.Title = "微信分布式缓存策略测试";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section HeaderContent
{
<style>
.result {
padding: 0px 0px 0px 30px;
font-size: 110%;
float: right;
width: 50%;
}
.result h1 {
margin: 30px;
... | apache-2.0 | C# | |
1a155ac1729ad81224be6933cf67340ba22346f6 | Create HowToUse.cs | sachinkumarjain/QuickSharpApiClient | HowToUse.cs | HowToUse.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QuickSharpApiClient
{
public class Program
{
static void Main(string[] args)
{
var client = new ApiClient("https://api.github.com/users/sachinkumarjain", Metho... | mit | C# | |
c2521ae1ad08b0adb255f33af6a6b9c41d62915e | Add ClaimsHelper class for easier access to authenticated user information. | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform | src/CompetitionPlatform/Helpers/ClaimsHelper.cs | src/CompetitionPlatform/Helpers/ClaimsHelper.cs | using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Security.Principal;
using CompetitionPlatform.Models;
namespace CompetitionPlatform.Helpers
{
public static class ClaimsHelper
{
public static CompetitionPlatformUser GetUser(IIdentity identity)
{
... | mit | C# | |
c320276f6e0726c7cd6cf6c380711072a2496a77 | Add the missing 'QueryCellValueResult'-file. | Miragecoder/Urbanization,Miragecoder/Urbanization,Miragecoder/Urbanization | src/Mirage.Urbanization/QueryCellValueResult.cs | src/Mirage.Urbanization/QueryCellValueResult.cs | using System.Drawing.Text;
using System.Globalization;
using System.Runtime.InteropServices;
using System.Collections;
namespace Mirage.Urbanization
{
public abstract class QueryCellValueResult : IQueryCellValueResult
{
private readonly int _valueInUnits;
protected QueryCellValueResult(int val... | mit | C# | |
92d5eee3e3c4155f709793cb9290e4528ae27d7e | Create program.cs | JolaLojalna/projekcik | program.cs | program.cs | string s = "Ela";
| mit | C# | |
9d6ba51a3c5e39f280efe90ca162afd5b6373a4b | Add some tests for ErgastClient | Krusen/ErgastApi.Net | src/ErgastApi.Tests/Client/ErgastClientTests.cs | src/ErgastApi.Tests/Client/ErgastClientTests.cs | using System;
using System.Threading.Tasks;
using ErgastApi.Client;
using ErgastApi.Client.Caching;
using ErgastApi.Requests;
using ErgastApi.Responses;
using FluentAssertions;
using NSubstitute;
using Xunit;
namespace ErgastApi.Tests.Client
{
public class ErgastClientTests
{
private ErgastClient Clie... | unlicense | C# | |
633d107ac6fbc633fb1844a5791c139ed5a9252b | add DumpExtension.cs | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/Extensions/DumpExtension.cs | src/WeihanLi.Common/Extensions/DumpExtension.cs | using System;
using WeihanLi.Common;
// ReSharper disable once CheckNamespace
namespace WeihanLi.Extensions
{
public static class DumpExtension
{
private const string NullValue = "(null)";
public static void Dump<T>(this T t) => Dump(t, Console.WriteLine);
public static void Dump<T>(... | mit | C# | |
cb7b6521e4b8404c572d449575fd63c88a0f262b | Add utility class for Xml-related tasks | whampson/bft-spec,whampson/cascara | Implementations/CSharp/WHampson.BFT/XmlUtils.cs | Implementations/CSharp/WHampson.BFT/XmlUtils.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# | |
f440a7788ed11d1f18d5bc832d64099fd8ca26af | Add benchmark | peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,peppy/osu-framework | osu.Framework.Benchmarks/BenchmarkEnum.cs | osu.Framework.Benchmarks/BenchmarkEnum.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.Runtime.CompilerServices;
using BenchmarkDotNet.Attributes;
using osu.Framework.Extensions.EnumExtensions;
namespace osu.Framework.Benchmarks
... | mit | C# | |
bd6ef8641f21ada850e4702cd4fab59378432fcc | Check for valid user before adding claims | forgetz/Bonobo-Git-Server,NipponSysits/IIS.Git-Connector,kfarnung/Bonobo-Git-Server,PGM-NipponSysits/IIS.Git-Connector,Ollienator/Bonobo-Git-Server,anyeloamt1/Bonobo-Git-Server,braegelno5/Bonobo-Git-Server,forgetz/Bonobo-Git-Server,willdean/Bonobo-Git-Server,lkho/Bonobo-Git-Server,larshg/Bonobo-Git-Server,crowar/Bonobo... | Bonobo.Git.Server/Security/AuthenticationProvider.cs | Bonobo.Git.Server/Security/AuthenticationProvider.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using Bonobo.Git.Server.Models;
using Microsoft.Practices.Unity;
using Owin;
namespace Bonobo.Git.Server.Security
{
public abstract class AuthenticationProvider : IAuthenticationProvider
{
[Dependency]
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using Bonobo.Git.Server.Models;
using Microsoft.Practices.Unity;
using System.Web;
using Microsoft.Owin.Security.WsFederation;
using Microsoft.Owin.Security.Cookies;
using Owin;
namespace Bonobo.Git.Server.Security
{
... | mit | C# |
eb760c0bd440ed52c4b2b299c19f09d49a73f3a9 | Add new-File userAuth/Droid/FrameCount.cs | ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate | userAuth/Droid/FrameCount.cs | userAuth/Droid/FrameCount.cs | using System.IO;
using System.Frame;
using Android.Framework;
using Android.Content.
namespace userAuth.Droid.FrameCount
{
[FrameCounter (Label = "userAuth.Droid", Icon = "@drawable/frame/icon", MainCounter = true, FrameRateChanges = FrameChanges.FpsLimit | FrameChanges.Count)]
public class FrameCount : global::us... | mit | C# | |
a3e61a77db1da275258e3663175edd5a0d4e7e66 | Implement StorageFillComponent (#726) | space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 | Content.Server/GameObjects/Components/Items/Storage/Fill/StorageFillComponent.cs | Content.Server/GameObjects/Components/Items/Storage/Fill/StorageFillComponent.cs | using System.Collections.Generic;
using Robust.Server.Interfaces.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Serialization;
namespace Content.Server.GameObjects.Components.Items.Storage.Fill
{
[RegisterComponent]
intern... | mit | C# | |
2f7e1f5860c365a779e997bd7d04567ce2565690 | Add initial simple LZW tests. | McNeight/SharpZipLib | tests/Lzw/LzwTests.cs | tests/Lzw/LzwTests.cs | using ICSharpCode.SharpZipLib.LZW;
using NUnit.Framework;
using System.IO;
using ICSharpCode.SharpZipLib.Tests.TestSupport;
namespace ICSharpCode.SharpZipLib.Tests.LZW
{
[TestFixture]
public class LzwTestSuite {
//[Test]
//[Category("LZW")]
//public void TestLzw() {
// LzwI... | mit | C# | |
b91d6d9144960cac76ca0420600c401052fc448c | Add joint trigger (OnJointBreak() + OnJointBreak2D()) | neuecc/UniRx,TORISOUP/UniRx | Assets/Plugins/UniRx/Scripts/UnityEngineBridge/Triggers/ObservableJointTrigger.cs | Assets/Plugins/UniRx/Scripts/UnityEngineBridge/Triggers/ObservableJointTrigger.cs | using System; // require keep for Windows Universal App
using UnityEngine;
namespace UniRx.Triggers
{
[DisallowMultipleComponent]
public class ObservableJointTrigger : ObservableTriggerBase
{
Subject<float> onJointBreak;
void OnJointBreak(float breakForce)
{
if (onJoin... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.