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 |
|---|---|---|---|---|---|---|---|---|
9f7a756a06f420325e9a92d861f4ff3f20dea520 | Add trace class. | honestegg/cassette,andrewdavey/cassette,damiensawyer/cassette,BluewireTechnologies/cassette,andrewdavey/cassette,BluewireTechnologies/cassette,andrewdavey/cassette,honestegg/cassette,damiensawyer/cassette,damiensawyer/cassette,honestegg/cassette | src/Cassette/Trace.cs | src/Cassette/Trace.cs | using System.Diagnostics;
namespace Cassette
{
static class Trace
{
public static readonly TraceSource Source = new TraceSource("Cassette");
}
}
| mit | C# | |
3f8977e362a5dc76981fafd1e9fb039d8fc443d2 | Introduce IUtterance interface. | AIWolfSharp/AIWolf_NET | AIWolfLib/IUtterance.cs | AIWolfLib/IUtterance.cs | //
// IUtterance.cs
//
// Copyright (c) 2018 Takashi OTSUKI
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
namespace AIWolf.Lib
{
#if JHELP
/// <summary>
/// 発話クラスが実装すべきプロパティとメソッド
/// </summary>
#else
/// <summary>
/// Abstract utterance... | mit | C# | |
48b4cc2e0afed35b4360e4469926a855b96fc163 | Create Exercise_14.cs | jesushilarioh/Questions-and-Exercises-in-C-Sharp | Exercise_14.cs | Exercise_14.cs | using System;
public class Exercise_14
{
public static void Main()
{
/**********************************************************************
*
* 14. Write a program to convert from celsius degrees to Kelvin and
* Fahreheit.
*
* By: Jesus Hilario Hernandez
* Last Updated: October 4th 20... | mit | C# | |
d593823ea10b3938a02e961adaa94b403437daf9 | add GitBranchSearchController.cs | mikefourie/GitMonitor,mikefourie/GitMonitor,mikefourie/GitMonitor | src/GitMonitor/Controllers/Api/GitBranchSearchController.cs | src/GitMonitor/Controllers/Api/GitBranchSearchController.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="GitBranchSearchController.cs" company="FreeToDev">Copyright Mike Fourie</copyright>
// ---------------------------------------------------------------------------------------------... | mit | C# | |
ad885f3d367e95a5c9f41e510bdfe51980cee7b5 | Add unit tests for UaTcpChannelOptions | convertersystems/opc-ua-client | UaClient.UnitTests/UnitTests/UaApplicationOptionsTests.cs | UaClient.UnitTests/UnitTests/UaApplicationOptionsTests.cs | using FluentAssertions;
using System;
using System.Collections.Generic;
using System.Text;
using Workstation.ServiceModel.Ua;
using Xunit;
namespace Workstation.UaClient.UnitTests
{
public class UaApplicationOptionsTests
{
[Fact]
public void UaTcpTransportChannelOptionsDefaults()
{
... | mit | C# | |
5e548e97175937722a1b79297bf251c4c13a2b1a | Fix flaky repro test | CSGOpenSource/elasticsearch-net,elastic/elasticsearch-net,adam-mccoy/elasticsearch-net,TheFireCookie/elasticsearch-net,elastic/elasticsearch-net,TheFireCookie/elasticsearch-net,CSGOpenSource/elasticsearch-net,adam-mccoy/elasticsearch-net,TheFireCookie/elasticsearch-net,CSGOpenSource/elasticsearch-net,adam-mccoy/elastic... | src/Tests/Reproduce/GithubIssue2173.cs | src/Tests/Reproduce/GithubIssue2173.cs | using FluentAssertions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tests.Framework;
using Tests.Framework.Integration;
using Tests.Framework.MockData;
using Xunit;
namespace Tests.Reproduce
{
[Collection(TypeOfCluster.Indexing)]
public c... | using FluentAssertions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tests.Framework;
using Tests.Framework.MockData;
namespace Tests.Reproduce
{
public class GithubIssue2173
{
[I]
public void UpdateByQueryWithInvalidScript()
{
va... | apache-2.0 | C# |
9b84d921f3221133b9c2ea4bba5fd76b0b247e5c | Create generics.cs | ashoktandan007/csharp,wchild30/asterisk | generics.cs | generics.cs | using System;
class Pro<T>
{
public Pro(T n)
{
Console.WriteLine(n);
}
}
class foo
{
static void Main()
{
Pro<int> obj = new Pro<int>(55);
Pro<string> obj1 = new Pro<string>("ashok");
Console.ReadLine();
}
}
| apache-2.0 | C# | |
6933a41b7504404785625f22be86fad35bf402f1 | Add back high resolution cover regressions | peppy/osu,johnneijzen/osu,ppy/osu,ppy/osu,2yangk23/osu,NeoAdonis/osu,Nabile-Rahmani/osu,smoogipoo/osu,UselessToucan/osu,johnneijzen/osu,UselessToucan/osu,smoogipooo/osu,EVAST9919/osu,2yangk23/osu,naoey/osu,ZLima12/osu,peppy/osu,NeoAdonis/osu,EVAST9919/osu,peppy/osu-new,NeoAdonis/osu,naoey/osu,Drezi126/osu,ppy/osu,Usele... | osu.Game/Beatmaps/BeatmapSetOnlineInfo.cs | osu.Game/Beatmaps/BeatmapSetOnlineInfo.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using Newtonsoft.Json;
namespace osu.Game.Beatmaps
{
/// <summary>
/// Beatmap set info retrieved for previewing locally without having ... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
namespace osu.Game.Beatmaps
{
/// <summary>
/// Beatmap set info retrieved for previewing locally without having the set downloaded.
... | mit | C# |
a5840c98c6a8eed026c2646732921e1958626ba0 | Create Camlookat.cs | afroraydude/First_Unity_Game,afroraydude/First_Unity_Game,afroraydude/First_Unity_Game | Real_Game/Assets/Scripts/Camlookat.cs | Real_Game/Assets/Scripts/Camlookat.cs | //SmoothLookAt.cs
//Written by Jake Bayer
//Written and uploaded November 18, 2012
//This is a modified C# version of the SmoothLookAt JS script. Use it the same way as the Javascript version.
using UnityEngine;
using System.Collections;
///<summary>
///Looks at a target
///</summary>
[AddComponentMenu("Camera-Con... | mit | C# | |
01b26b3a9ffe821732600ec8282bc5699e0e59ef | Create 20170714.cs | twilightspike/cuddly-disco,twilightspike/cuddly-disco | main/20170714.cs | main/20170714.cs | int aaa;
int bbb;
int ccc;
| mit | C# | |
e7502f621b34a43e6943449135405615d85d68ef | Update Blu.Build.cs | marcthenarc/BLUI,jgagner92/BLUI,csfinch/BLUI,jgagner92/BLUI,jgagner92/BLUI,marcthenarc/BLUI,bemon/BLUI,marcthenarc/BLUI,csfinch/BLUI,brandonwamboldt/BLUI,brandonwamboldt/BLUI,bemon/BLUI,AaronShea/BLUI,brandonwamboldt/BLUI,csfinch/BLUI,AaronShea/BLUI,AaronShea/BLUI,bemon/BLUI | Source/Blu/Blu.Build.cs | Source/Blu/Blu.Build.cs | using UnrealBuildTool;
using System.IO;
using System;
public class Blu : ModuleRules
{
private string ModulePath
{
get { return Path.GetDirectoryName(RulesCompiler.GetModuleFilename(this.GetType().Name)); }
}
private string ThirdPartyPath
{
get { return Path.GetFullPath(Path.Combi... | using UnrealBuildTool;
using System.IO;
using System;
public class Blu : ModuleRules
{
private string ModulePath
{
get { return Path.GetDirectoryName(RulesCompiler.GetModuleFilename(this.GetType().Name)); }
}
private string ThirdPartyPath
{
get { return Path.GetFullPath(Path.Combi... | mit | C# |
de4d5413e92f41229084ed501c05a1dde6759ed7 | Add IDependencyContainer | Vtek/Bartender | src/Bartender/IDependencyContainer.cs | src/Bartender/IDependencyContainer.cs | using System.Collections.Generic;
namespace Bartender
{
/// <summary>
/// Define a dependency container
/// </summary>
public interface ILocator
{
/// <summary>
/// Gets a service.
/// </summary>
/// <returns>The service.</returns>
/// <typeparam name="TServi... | mit | C# | |
ca2c2097016521c16a345e6a173d4e62c78cac0a | add FastRandom | johnneijzen/osu,2yangk23/osu,smoogipoo/osu,2yangk23/osu,smoogipoo/osu,EVAST9919/osu,DrabWeb/osu,UselessToucan/osu,smoogipooo/osu,peppy/osu,peppy/osu-new,naoey/osu,ZLima12/osu,DrabWeb/osu,ppy/osu,EVAST9919/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,naoey/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,naoey/osu,ZLi... | osu.Game.Rulesets.Catch/MathUtils/FastRandom.cs | osu.Game.Rulesets.Catch/MathUtils/FastRandom.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;
namespace osu.Game.Rulesets.Catch.MathUtils
{
/// <summary>
/// A PRNG specified in http://heliosphan.org/fastrandom.html.
/// </summary>
... | mit | C# | |
1b08f3b9c2354da352339cd86af833dabad2b7b1 | Add csharp 5.x snippets rest/taskrouter/events | TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snip... | rest/taskrouter/events/example-1/example-1.5.x.cs | rest/taskrouter/events/example-1/example-1.5.x.cs | // Download the twilio-csharp library from https://www.twilio.com/docs/libraries/csharp#installation
using System;
using Twilio;
using Twilio.Rest.Taskrouter.V1.Workspace;
class Example
{
static void Main(string[] args)
{
// Find your Account Sid and Auth Token at twilio.com/console
const strin... | mit | C# | |
cadf2e6cf3167f86372843622d5220ce5e96fbbe | Create a class that is used to process the restQL queries. | nohros/must,nohros/must,nohros/must | src/platform/toolkit/restQL/QueryProcessor.cs | src/platform/toolkit/restQL/QueryProcessor.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Nohros.Toolkit.RestQL
{
/// <summary>
/// A class used to process a restQL query.
/// </summary>
public class QueryProcessor
{
QueryInfo query_;
string query_key_;
#region .ctor
/// <summary>
//... | mit | C# | |
d6536f81d44004214debf969994bed3148df6853 | Create angryProfessor.cs | shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/hackerrank,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms | angryProfessor.cs | angryProfessor.cs | /*
# File : diagonalDifference.cs
# Author : Shree Harsha Sridharamurthy
# Author email : s.shreeharsha@gmail.com
# Disclaimer : For use by concerned personnel only. Released under MIT License - permitted to use this but need to quote the source origin.
# Program : Solution for hackerrank... | mit | C# | |
144b182e8cae9cf94f54126b47b1f241eaf2cecc | Add LevelModel.cs | NinjaVault/NinjaHive,NinjaVault/NinjaHive | NinjaHive.Contract/Models/LevelModel.cs | NinjaHive.Contract/Models/LevelModel.cs | using System;
using System.ComponentModel.DataAnnotations;
using NinjaHive.Core.Helpers;
using NinjaHive.Core.Validations;
namespace NinjaHive.Contract.Models
{
public class LevelModel : IModel
{
public Guid Id { get; set; }
}
}
| apache-2.0 | C# | |
64eea4249341f5d062434f04a18ffe32f9298363 | make Null.Default readonly | rmboggs/boo,KidFashion/boo,hmah/boo,wbardzinski/boo,BitPuffin/boo,BillHally/boo,rmartinho/boo,rmartinho/boo,BillHally/boo,wbardzinski/boo,BITechnologies/boo,drslump/boo,Unity-Technologies/boo,wbardzinski/boo,bamboo/boo,BITechnologies/boo,bamboo/boo,hmah/boo,rmartinho/boo,KingJiangNet/boo,bamboo/boo,BitPuffin/boo,boo-la... | src/Boo.Lang.Compiler/TypeSystem/Null.cs | src/Boo.Lang.Compiler/TypeSystem/Null.cs | #region license
// Copyright (c) 2004, Rodrigo B. de Oliveira (rbo@acm.org)
// All rights reserved.
//
// 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 retain the above c... | #region license
// Copyright (c) 2004, Rodrigo B. de Oliveira (rbo@acm.org)
// All rights reserved.
//
// 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 retain the above c... | bsd-3-clause | C# |
69da4dffd55124881caabbaafaebf69de16b62b5 | Add sql base class | xin9le/DeclarativeSql | src/DeclarativeSql/Sql/Sql.cs | src/DeclarativeSql/Sql/Sql.cs | using System;
using System.Text;
namespace DeclarativeSql.Sql
{
/// <summary>
/// Represents SQL for specified mapping table.
/// </summary>
/// <typeparam name="T"></typeparam>
public interface ISql<T>
{
/// <summary>
/// Gets database provider.
/// </summary>
... | mit | C# | |
e6fb7880440e7d2655d1d19c2a7d67304a766be4 | Fix d'un bug qui faisait en sorte que le showDialog ne fonctionnait pas | Lan-Manager/lama,Tri125/lama | Lama/UI/Win/AjouterVolontaire.xaml.cs | Lama/UI/Win/AjouterVolontaire.xaml.cs | using MahApps.Metro.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using... | using MahApps.Metro.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using... | mit | C# |
18617d9d7c3834a341dcc239ddbeea3646d850e6 | Call GL.GetShaderInfoLog | haithemaraissia/monotouch-samples,davidrynn/monotouch-samples,a9upam/monotouch-samples,nelzomal/monotouch-samples,peteryule/monotouch-samples,sakthivelnagarajan/monotouch-samples,andypaul/monotouch-samples,andypaul/monotouch-samples,robinlaide/monotouch-samples,labdogg1003/monotouch-samples,a9upam/monotouch-samples,a9u... | OpenGL/OpenGLES20Example/GLProgram.cs | OpenGL/OpenGLES20Example/GLProgram.cs | using System;
using OpenTK.Graphics.ES20;
using MonoTouch.Foundation;
using System.IO;
using System.Collections.Generic;
using System.Text;
namespace OpenGLES20Example
{
public class GLProgram
{
int program,
vertShader,
fragShader;
List<string> attributes;
public GLProgram (string vShaderFilename, str... | using System;
using OpenTK.Graphics.ES20;
using MonoTouch.Foundation;
using System.IO;
using System.Collections.Generic;
using System.Text;
namespace OpenGLES20Example
{
public class GLProgram
{
int program,
vertShader,
fragShader;
List<string> attributes;
public GLProgram (string vShaderFilename, str... | mit | C# |
3a13637eeaea916b7b80d7b5e34cdfac09638ba7 | Create GpsHelper.cs | Pharap/SpengyUtils | Classes/GpsHelper.cs | Classes/GpsHelper.cs | static class GpsHelper
{
public static string ToGpsString(string name, Vector3 vector)
{
return string.Format("GPS:{0}:{1}:{2}:{3}:", name, vector.X, vector.Y, vector.Z);
}
public static string ToGpsString(string name, Vector3D vector)
{
return string.Format("GPS:{0}:{1... | apache-2.0 | C# | |
5e14cc4b7d4d15996421ac283d0eff7b23463c91 | Change how constants are defined | ZocDoc/ZocMon,modulexcite/ZocMon,modulexcite/ZocMon,modulexcite/ZocMon,ZocDoc/ZocMon,ZocDoc/ZocMon | source/ZocMonLib/Framework/Constant.cs | source/ZocMonLib/Framework/Constant.cs | using System;
using System.Data.SqlTypes;
namespace ZocMonLib
{
public class Constant
{
public static readonly DateTime MinDbDateTime = SqlDateTime.MinValue.Value;
public const long TicksInMillisecond = TimeSpan.TicksPerMillisecond;
public const long MinResolutionForDbWrite... | using System;
namespace ZocMonLib
{
public class Constant
{
public static readonly DateTime MinDbDateTime = new DateTime(1753, 1, 1);
public const long TicksInMillisecond = 10000;
public const long MinResolutionForDbWrites = 60 * 1000;
public const long MsPerDay = 24... | apache-2.0 | C# |
6104f1949a2dd74458842fa00323a808ca04a5c2 | Comment use | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/Core2D.Avalonia/App.xaml.cs | src/Core2D.Avalonia/App.xaml.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using Avalonia;
using Avalonia.Logging.Serilog;
using Avalonia.Markup.Xaml;
using Core2D.Avalonia.Renderers;
using Core2D.ViewModels;
namespace Core... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using Avalonia;
using Avalonia.Logging.Serilog;
using Avalonia.Markup.Xaml;
using Core2D.Avalonia.Renderers;
using Core2D.ViewModels;
namespace Core... | mit | C# |
3c739c04ef9fab4adfc49cb3f4bca1a6e0291139 | add tests for Similar class | icarus-consulting/Yaapii.Atoms | tests/Yaapii.Atoms.Tests/Number/SimilarTest.cs | tests/Yaapii.Atoms.Tests/Number/SimilarTest.cs | using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
using Yaapii.Atoms.Number;
namespace Yaapii.Atoms.Number.Tests
{
public sealed class SimilarTest
{
[Fact]
public void IsSimilarSame()
{
INumber first =
new NumberOf(13.37);
... | mit | C# | |
7ede2917e4542bd0b36410769ab985f062b75575 | Add ShutdownAwaiterAppLifecycleBehavior to initialize the awaiter before features are called. | quartz-software/kephas,quartz-software/kephas | src/Kephas.Application/ShutdownAwaiterAppLifecycleBehavior.cs | src/Kephas.Application/ShutdownAwaiterAppLifecycleBehavior.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ShutdownAwaiterAppLifecycleBehavior.cs" company="Kephas Software SRL">
// Copyright (c) Kephas Software SRL. All rights reserved.
// Licensed under the MIT license. See LICENS... | mit | C# | |
8eb557781b36838a65f983588c03d01004da3449 | Add Q222 | txchen/localleet | csharp/Q222_CountCompleteTreeNodes.cs | csharp/Q222_CountCompleteTreeNodes.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
// Given a complete binary tree, count the number of nodes.
//
// Definition of a complete binary tree from Wikipedia:
// In a complete binary tree every level, except possibly the last, is comp... | mit | C# | |
426ca6150a8d79d6e76a0915e41a524679f6f227 | Create StartTest.cs | Si-143/Application-and-Web-Development | StartTest.cs | StartTest.cs | protected void Page_Load(object sender, EventArgs e)
{
Testid.DataSource = DB.ListTest(); Testid.DataTextField = "TestName";
Testid.DataValueField = "TestID";
Testid.DataBind();
Session["TestID"] = Testid.SelectedValue;
string TId = Session["TestID"].ToString();
}
protected void Submit_Click(object sender, EventArgs e... | mit | C# | |
709d0be257f90907181a913360590086ff643cd9 | Support for IDN command. | tparviainen/oscilloscope | SCPI/IDN.cs | SCPI/IDN.cs | using System;
using System.Linq;
using System.Text;
namespace SCPI
{
public class IDN : ICommand
{
public string Description => "Query the ID string of the instrument";
public string Manufacturer { get; private set; }
public string Model { get; private set; }
public string Ser... | mit | C# | |
5e396ec68e5ad7cb8c023f803368b80594a979c7 | Add a new Paused mode. | dipeshc/BTDeploy | src/MonoTorrent/MonoTorrent.Client/Modes/PausedMode.cs | src/MonoTorrent/MonoTorrent.Client/Modes/PausedMode.cs | using System;
using System.Collections.Generic;
using System.Text;
using MonoTorrent.Common;
namespace MonoTorrent.Client
{
class PausedMode : Mode
{
public override TorrentState State
{
get { return TorrentState.Paused; }
}
public PausedMode(TorrentManager manager)
: base(manage... | mit | C# | |
c25fb26ffe04f1ed057583d5fea629f8c7d8dcc9 | move IExternalReport interface to Serenity.Services | volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity | src/Serenity.Net.Services/Reporting/IExternalReport.cs | src/Serenity.Net.Services/Reporting/IExternalReport.cs | namespace Serenity.Reporting
{
/// <summary>
/// This interface marks a report class as a report that should open an external URL, e.g. an SSRS report url, or any arbitrary site
/// The URL should be returned from GetData() method of report class.
/// </summary>
public interface IExternalRepo... | mit | C# | |
2eb688d11f6d2066476462665368544b64af6d16 | Create ApprovedResponse.cs | marketvision/ShipStation4Net | ShipStation4Net/Responses/ApprovedResponse.cs | ShipStation4Net/Responses/ApprovedResponse.cs | #region License
/*
* Copyright 2017 Brandon James
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | apache-2.0 | C# | |
444e27ec497766be96798ddcc5510ffb3de255a0 | Create HowOldAreYou.cs | TheCanterlonian/Learning,TheCanterlonian/Learning | HowOldAreYou.cs | HowOldAreYou.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HowOldAreYou
{
class Program
{
static void Main(string[] args)
{
DateTime nowTime = DateTime.Now;
Console.WriteLine("The current date and time is: " + nowTime);
Co... | agpl-3.0 | C# | |
2eb1f9e0943589c5c07687398e66a3cec96e0ed5 | add Upgrade_20220822_StartAfter | signumsoftware/framework,signumsoftware/framework | Signum.Upgrade/Upgrades/Upgrade_20220822_StartAfter.cs | Signum.Upgrade/Upgrades/Upgrade_20220822_StartAfter.cs | using System;
using System.IO;
using System.Net;
using System.Net.Http;
namespace Signum.Upgrade.Upgrades;
class Upgrade_20220822_StartAfter : CodeUpgradeBase
{
public override string Description => "Rename StartXXAfter methods";
public override void Execute(UpgradeContext uctx)
{
uctx.ChangeCode... | mit | C# | |
db87c10949908d1b6fdc5b45d61751d5e7732ab0 | Change the MSI version to 1.8 | jtlibing/azure-sdk-for-net,jackmagic313/azure-sdk-for-net,JasonYang-MSFT/azure-sdk-for-net,makhdumi/azure-sdk-for-net,tonytang-microsoft-com/azure-sdk-for-net,Yahnoosh/azure-sdk-for-net,samtoubia/azure-sdk-for-net,btasdoven/azure-sdk-for-net,yoreddy/azure-sdk-for-net,jasper-schneider/azure-sdk-for-net,relmer/azure-sdk-... | microsoft-azure-api/Configuration/Microsoft.WindowsAzure.Configuration/Properties/AssemblyInfo.cs | microsoft-azure-api/Configuration/Microsoft.WindowsAzure.Configuration/Properties/AssemblyInfo.cs | //
// Copyright 2012 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... | //
// Copyright 2012 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... | mit | C# |
3e2b766ee373ca25854a43b98cbe32ad143fc53e | Use axes | Procrat/orpheus | Assets/PlayerController.cs | Assets/PlayerController.cs |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class PlayerController : MonoBehaviour
{
public float moveSpeed;
private Rigidbody2D body;
void Start ()
{
body = GetComponent<Rigidbody2D> ();
}
void FixedUpdat... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class PlayerController : MonoBehaviour
{
public float moveSpeed;
private Rigidbody2D body;
void Start ()
{
body = GetComponent<Rigidbody2D> ();
}
void FixedUpdat... | mit | C# |
ffb059e6e4719be7b1b2916ed83d7aea69ba82d8 | Add MemoryStreamCache | yufeih/Common | src/MemoryStreamCache.cs | src/MemoryStreamCache.cs | using System.Threading;
using System.Text;
namespace System.IO
{
internal static class MemoryStreamCache
{
private const int MAX_BUILDER_SIZE = 1024;
private const int DEFAULT_CAPACITY = 256;
[ThreadStatic]
private static MemoryStream t_cachedInstance;
public static Me... | mit | C# | |
5b8f0933b771d7d924684027b6aa455b32ff9a80 | Define 'I{ReadOnly,}Collection' | jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm | stdlib/corlib/Collections.Generic/ICollection.cs | stdlib/corlib/Collections.Generic/ICollection.cs | namespace System.Collections.Generic
{
/// <summary>
/// A read-only view of a collection of elements.
/// </summary>
public interface IReadOnlyCollection<out T> : IEnumerable<T>
{
/// <summary>
/// Gets the number of elements in the collection.
/// </summary>
/// <re... | mit | C# | |
9fd380f8b5eb6fc53a7d752dda4f061780ada735 | Create Loadbutton.cs | jon-lad/Battlefleet-Gothic | MainMenu/Loadbutton.cs | MainMenu/Loadbutton.cs | using UnityEngine;
using System.Collections;
public class LoadButton : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnMouseOver(){
renderer.material.color = new Color32(212,11,57, 255);
}
void OnMouseExit(){
renderer.... | mit | C# | |
6fee09a105af581ee90a5d22373f2cb3c572dbe6 | Add Track class | goshippo/shippo-csharp-client | Shippo/Track.cs | Shippo/Track.cs | using System;
using Newtonsoft.Json;
namespace Shippo {
[JsonObject (MemberSerialization.OptIn)]
public class Track : ShippoId {
[JsonProperty (PropertyName = "carrier")]
public object Carrier { get; set; }
[JsonProperty (PropertyName = "tracking_number")]
public object Trackin... | apache-2.0 | C# | |
7909f6b0d516b23bd0bf21a5411916ce22e1204e | Create Gothic.cs | jon-lad/Battlefleet-Gothic | Ships/Imperial/Cruiser/Gothic.cs | Ships/Imperial/Cruiser/Gothic.cs | using UnityEngine;
using System.Collections;
public class Gothic : Ship {
// Use this for initialization
public override void Start () {
base.Start ();
stand = (GameObject)Instantiate(GameData.instance.SmallStandPrefab, transform.position, Quaternion.Euler(new Vector3()));
hits = 8;
speed = 20;
minMove ... | mit | C# | |
e64e5b76b3da71844f026c882ba91d938187fc42 | add Product.cs (#24) | tbauer516/Mobilize.net,tbauer516/Mobilize.net,tbauer516/Mobilize.net | SalmonKingSeafood/SalmonKingSeafood/products/Product.cs | SalmonKingSeafood/SalmonKingSeafood/products/Product.cs | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.Script.Serialization;
using System.Web.Script.Services;
using System.Web.Services;
namespace SalmonKingSeafood
{
public class Product
... | mit | C# | |
7a1d6581e5932ebbe6b34b2ce3f2e5a166b948cb | Create StringAccumulator.cs | Zephyr-Koo/sololearn-challenge | StringAccumulator.cs | StringAccumulator.cs | using System;
using System.Collections.Generic;
using System.Linq;
// https://www.sololearn.com/Discuss/687819/?ref=app
namespace SoloLearn
{
class Program
{
static void Main(string[] zephyr_koo)
{
foreach (var str in new string[]
{
"abc", "ECxa", "Xmkku... | apache-2.0 | C# | |
ec5c967e71343396224e9769ef21126b91d581fa | Add test coverage of `SettingsCheckbox` | NeoAdonis/osu,smoogipoo/osu,ppy/osu,smoogipooo/osu,peppy/osu,peppy/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu-new,peppy/osu | osu.Game.Tests/Visual/UserInterface/TestSceneSettingsCheckbox.cs | osu.Game.Tests/Visual/UserInterface/TestSceneSettingsCheckbox.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.Linq;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.G... | mit | C# | |
65d3347a74615a89dc56724cf4c77954c5d05467 | Add type extension method | xin9le/DeclarativeSql | src/DeclarativeSql/Internals/TypeExtensions.cs | src/DeclarativeSql/Internals/TypeExtensions.cs | using System;
namespace DeclarativeSql.Internals
{
/// <summary>
/// Provides <see cref="Type"/> extension methods.
/// </summary>
internal static class TypeExtensions
{
/// <summary>
/// Gets whether specified type is <see cref="Nullable{T}"/>.
/// </summary>
///... | mit | C# | |
be83d17dcf1ffb7316df47e77099c34984fb2b83 | Add unit tests for Users API controller | meutley/ISTS | src/Api.Test/Controllers/UsersControllerTests.cs | src/Api.Test/Controllers/UsersControllerTests.cs | using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Moq;
using Xunit;
using ISTS.Api.Controllers;
using ISTS.Api.Helpers;
using ISTS.Application.Users;
namespace ISTS.Api.Test.Controllers
{
public class UsersControllerTests
{
private M... | mit | C# | |
d22d13ef49ac7fcc7878a519c1d19d334f65cf40 | Create XMLParse.cs | ellivr/PersonalSnippets | CSharp/XMLParse.cs | CSharp/XMLParse.cs | public static void ParseSave(string filename)
{
byte[] Data = new byte[SteamRemoteStorage.GetFileSize(filename)];
int ret = SteamRemoteStorage.FileRead(filename, Data, Data.Length);
string m_Message = System.Text.Encoding.UTF8.GetString(Data, 0, ret);
PSTTool.Log(m_Message);
... | mit | C# | |
e52d76e3d84d26f0f50302f20522197b1ec9906f | Refactor exporter - step 1 (#1078) | open-telemetry/opentelemetry-dotnet,open-telemetry/opentelemetry-dotnet,open-telemetry/opentelemetry-dotnet | src/OpenTelemetry/Trace/ActivityExporterSync.cs | src/OpenTelemetry/Trace/ActivityExporterSync.cs | // <copyright file="ActivityExporterSync.cs" company="OpenTelemetry Authors">
// Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.... | apache-2.0 | C# | |
ad3985dbfa6771ed5c3008c21612c53d223b14d4 | Create Movable.cs | xxmon/unity | Movable/Movable.cs | Movable/Movable.cs | using UnityEngine;
[System.Serializable]
public class Movable : MonoBehaviour
{
public GameObject target;
public bool isMovable = true;
public GameObject GetTarget ()
{
if (target == null) {
return gameObject;
} else {
return target;
}
}
}
| mit | C# | |
43e4637cccff93162305dba4641bf53a7a4cab24 | Create an Environment class to store variable definitions | escamilla/squirrel | squirrel/Environment.cs | squirrel/Environment.cs | using System.Collections.Generic;
namespace squirrel
{
public class Environment
{
private readonly Environment _parent;
private readonly Dictionary<string, AstNode> _definitions = new Dictionary<string, AstNode>();
public Environment(Environment parent)
{
_parent =... | mit | C# | |
b06f59ffdcf99454bb4447b7e4efb936ebb0f399 | Split out test for combo counter specifically | ppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipooo/osu,peppy/osu,peppy/osu-new,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,ppy/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu | osu.Game.Tests/Visual/Gameplay/TestSceneComboCounter.cs | osu.Game.Tests/Visual/Gameplay/TestSceneComboCounter.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using osu.Framework.Testing;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Osu;
using osu.G... | mit | C# | |
4468b0596f785404debb8fec7e053f9cfd71804f | Add InterpolationTest for C#. | msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline | test/csharp/InterpolationTest.cs | test/csharp/InterpolationTest.cs | using NUnit.Framework;
using System.Collections.Generic;
using TinySpline;
namespace csharp;
public class InterpolationTest
{
class Vec2EqualityComparer : IEqualityComparer<Vec2>
{
public bool Equals(Vec2 v1, Vec2 v2)
{
if (v1 == null && v2 == null) return true;
if (v1 ... | mit | C# | |
de6a8ae01f32ae6827d05272f2eb48ad17d785d7 | Add test for racecondition issue | MrHant/tiver-fowl.Drivers,MrHant/tiver-fowl.Drivers | Tiver.Fowl.Drivers.Tests/DownloadersParallel.cs | Tiver.Fowl.Drivers.Tests/DownloadersParallel.cs | using System.IO;
using Microsoft.Extensions.Configuration;
using NUnit.Framework;
using Tiver.Fowl.Drivers.Configuration;
using Tiver.Fowl.Drivers.DriverBinaries;
using Tiver.Fowl.Drivers.DriverDownloaders;
namespace Tiver.Fowl.Drivers.Tests
{
[TestFixture]
public class DownloadersParallel
{
priva... | mit | C# | |
6b61b74db1c85b2bd2865be1a7e4dfd56d367bad | Add TimeControl model | Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training | src/ChessVariantsTraining/Models/Variant960/TimeControl.cs | src/ChessVariantsTraining/Models/Variant960/TimeControl.cs | using MongoDB.Bson.Serialization.Attributes;
namespace ChessVariantsTraining.Models.Variant960
{
public class TimeControl
{
[BsonElement("initial")]
public int InitialSeconds
{
get;
set;
}
[BsonElement("increment")]
public int Increment
... | agpl-3.0 | C# | |
624bc7273dd6960a3e0a7dc881e86878f0acf14f | Add helper. | Grabacr07/MetroTrilithon | src/MetroTrilithon.Desktop/UI/Controls/NavigationHelper.cs | src/MetroTrilithon.Desktop/UI/Controls/NavigationHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using Microsoft.Xaml.Behaviors;
using WPFUI.Controls;
namespace MetroTrilithon.UI.Controls;
public class NavigationHelper
{
#region PropagationContext attached property
private static readonly HashSet<Navigation> _known... | mit | C# | |
250b79c069225ad15f2f22755aca9145a13710d9 | add whocalls.cs | smoothdeveloper/SimpleScene,Namone/SimpleScene,RealRui/SimpleScene,jeske/SimpleScene | WavefrontOBJViewer/SimpleScene/Util/WhoCalls.cs | WavefrontOBJViewer/SimpleScene/Util/WhoCalls.cs | // Copyright(C) David W. Jeske, 2012
// Released to the public domain. Use, modify and relicense at will.
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
// no-inlining seems to be broken on x64
// https://connect.microsoft.com/VisualStudio/feedback/ViewFeedbac... | apache-2.0 | C# | |
4d46b581c3095ceaa2bb698c569ca20e0ddc0a0b | Add some initial examples. | github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql | csharp/ql/test/utils/model-generator/Summaries.cs | csharp/ql/test/utils/model-generator/Summaries.cs | using System;
namespace Summaries;
public class BasicFlow
{
public BasicFlow ReturnThis(object input)
{
return this;
}
public string ReturnParam0(string input0, object input1)
{
return input0;
}
public object ReturnParam1(string input0, object input1)
{
return... | mit | C# | |
228c5edaa84e293cb056dbc74cb2053c86207a56 | Add Profile Ewerton Jordao | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/EwertonJordao.cs | src/Firehose.Web/Authors/EwertonJordao.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 EwertonJordao : IAmAMicrosoftMVP
{
public string FirstName => "Ewerton";
public string Las... | mit | C# | |
e8b29dd284c9622e9585cb9ff321372a101a7c4f | Create IProtocolResponse.cs | poostwoud/discovery | src/Library/Protocol/IProtocolResponse.cs | src/Library/Protocol/IProtocolResponse.cs | namespace Discovery.Library.Protocol
{
public interface IProtocolResponse
{
string Result { get; }
}
}
| mit | C# | |
dfe21461bfdc281dae49ff6cb0cf62696bacb3e9 | Create MongoRepositoryTests.cs | tiksn/TIKSN-Framework | TIKSN.Framework.IntegrationTests/Data/Mongo/MongoRepositoryTests.cs | TIKSN.Framework.IntegrationTests/Data/Mongo/MongoRepositoryTests.cs | using System;
using System.Threading.Tasks;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using Xunit;
namespace TIKSN.Framework.IntegrationTests.Data.Mongo
{
[Collection("ServiceProviderCollection")]
public class MongoRepositoryTests
{
private readonly ServiceProviderFix... | mit | C# | |
b163b7d8b2fadf33747ed0aacd8ae4a40007c57e | Set Horizontal And Vertical Image Resolution | asposewords/Aspose_Words_NET,aspose-words/Aspose.Words-for-.NET,asposewords/Aspose_Words_NET,aspose-words/Aspose.Words-for-.NET,asposewords/Aspose_Words_NET,aspose-words/Aspose.Words-for-.NET,asposewords/Aspose_Words_NET,aspose-words/Aspose.Words-for-.NET | Examples/CSharp/Rendering-Printing/SetHorizontalAndVerticalImageResolution.cs | Examples/CSharp/Rendering-Printing/SetHorizontalAndVerticalImageResolution.cs | using Aspose.Words.Saving;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Aspose.Words.Examples.CSharp.Rendering_Printing
{
class SetHorizontalAndVerticalImageResolution
{
public static void Run()
{
// The path to the documents direc... | mit | C# | |
100f1b9d4c35de13064e3e85589f4b1a2ac27617 | add MigrationResult.cs | commonsensesoftware/Its.Cqrs,commonsensesoftware/Its.Cqrs,commonsensesoftware/Its.Cqrs | Domain.Sql/Migrations/MigrationResult.cs | Domain.Sql/Migrations/MigrationResult.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Its.Domain.Sql.Migrations
{
public class MigrationResult
{
public string Log { get; set; }
public bool MigrationWasA... | mit | C# | |
684d88ba7586eb361091f8e235b35c9dc3af54c5 | Add full OsuGame tests | ppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu,peppy/osu | osu.Game.Tests/Visual/Navigation/TestSceneButtonSystemNavigation.cs | osu.Game.Tests/Visual/Navigation/TestSceneButtonSystemNavigation.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.Testing;
using osu.Game.Screens.Menu;
using osu.Game.Screens.Select;
using osuTK.Input;
namespace osu.Game.... | mit | C# | |
accf9c1c72162ad3a65edac75dbc8558f9d26eab | Add KeyCombination Test | ppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework | osu.Framework.Tests/Input/KeyCombinationTest.cs | osu.Framework.Tests/Input/KeyCombinationTest.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.Input.Bindings;
using osu.Framework.Input.States;
using osuTK.Input;
using KeyboardState = osu.Framework.Input.States.KeyboardS... | mit | C# | |
51489547a476015f9909909c26fb738b4eea28ec | Allow extending translations | bussemac/n2cms,EzyWebwerkstaden/n2cms,EzyWebwerkstaden/n2cms,EzyWebwerkstaden/n2cms,n2cms/n2cms,nimore/n2cms,EzyWebwerkstaden/n2cms,DejanMilicic/n2cms,bussemac/n2cms,DejanMilicic/n2cms,bussemac/n2cms,VoidPointerAB/n2cms,SntsDev/n2cms,nimore/n2cms,SntsDev/n2cms,DejanMilicic/n2cms,nicklv/n2cms,nimore/n2cms,nicklv/n2cms,D... | src/Mvc/MvcTemplates/N2/Web/AngularLocalizationHandler.cs | src/Mvc/MvcTemplates/N2/Web/AngularLocalizationHandler.cs | using N2.Web;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Hosting;
namespace N2.Management.Web
{
public class AngularLocalizationHandler : IHttpHandler
{
public bool IsReusable
{
get { return true; }
}
public voi... | using N2.Web;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Hosting;
namespace N2.Management.Web
{
public class AngularLocalizationHandler : IHttpHandler
{
public bool IsReusable
{
get { return true; }
}
public voi... | lgpl-2.1 | C# |
14ddf6e7ec8df8ef3ead81f90890d05751dfb67c | Add interface for content validation | NicatorBa/Porthor | src/Porthor/ContentValidation/IContentValidator.cs | src/Porthor/ContentValidation/IContentValidator.cs | using Microsoft.AspNetCore.Http;
using System.Threading.Tasks;
namespace Porthor.ContentValidation
{
public interface IContentValidator
{
Task<bool> Validate(HttpRequest request);
}
}
| apache-2.0 | C# | |
06e2455a867a99be12c4c22e58ce0b2670b0627b | Create HowToUse.cs | invalidred/Cross-platform-AES-encryption,Pakhee/Cross-platform-AES-encryption,Pakhee/Cross-platform-AES-encryption,invalidred/Cross-platform-AES-encryption,invalidred/Cross-platform-AES-encryption,Pakhee/Cross-platform-AES-encryption,MudassarMumtaz/Cross-platform-AES-encryption,MudassarMumtaz/Cross-platform-AES-encrypt... | C-Sharp/HowToUse.cs | C-Sharp/HowToUse.cs | public class test {
public static void Main (String []args)
{
CryptLib _crypt = new CryptLib ();
string plainText = "This is the text to be encrypted";
String iv = CryptLib.GenerateRandomIV (15); //do not exceed 15
string key = CryptLib.getHashSha256("my secret key", 31); //do not exceed 31
String c... | apache-2.0 | C# | |
a425cafec4970f5279041753564d506f2cd383bd | Add Ambient transaction register | rpaschoal/DynamicRepository | DynamicRepository.MongoDB/TransactionRegister.cs | DynamicRepository.MongoDB/TransactionRegister.cs | using DynamicRepository.Transaction;
using System.Collections.Concurrent;
namespace DynamicRepository.MongoDB
{
internal static class TransactionRegister
{
internal static ConcurrentDictionary<string, ITransaction> AmbientTransactions = new ConcurrentDictionary<string, ITransaction>();
}
}
| mit | C# | |
8ec7d44113b21ac720b6e712aea06f9c264c3315 | format specialists list | petebryant/freelunch.uk,petebryant/freelunch.uk,petebryant/freelunch.uk | freelunch.uk/Views/Home/Specialists.cshtml | freelunch.uk/Views/Home/Specialists.cshtml | @model freelunch.uk.Models.SpecialistsViewModel
@{
ViewBag.Title = "Specialists";
string locations = "";
}
<div class="well well-lg">
<h2><i class="fa fa-users" aria-hidden="true"></i> @ViewBag.Title.</h2>
<br />
<div>
Find an specialist or register your skills etc...
</div>
</div>
... | mit | C# | |
9e9735fdfc6caad2c70f5cd715b62b1aa8c8d721 | Fix formatting in IDragHandler | dga711/CefSharp,rlmcneary2/CefSharp,illfang/CefSharp,battewr/CefSharp,joshvera/CefSharp,joshvera/CefSharp,gregmartinhtc/CefSharp,gregmartinhtc/CefSharp,NumbersInternational/CefSharp,haozhouxu/CefSharp,ITGlobal/CefSharp,jamespearce2006/CefSharp,Livit/CefSharp,VioletLife/CefSharp,joshvera/CefSharp,wangzheng888520/CefShar... | CefSharp/IDragHandler.cs | CefSharp/IDragHandler.cs | // Copyright © 2010-2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp
{
public interface IDragHandler
{
bool OnDragEnter(IWebBrowser browserControl, IBrowser browser, IDragData drag... | // Copyright © 2010-2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp
{
public interface IDragHandler
{
bool OnDragEnter(IWebBrowser browserControl, IBrowser browser... | bsd-3-clause | C# |
68e061650dd7451fcd2fda50dd68fd3e4c0dde6d | Add ShipmentsController.cs | iwelina-popova/EShipmentSystem,iwelina-popova/EShipmentSystem,iwelina-popova/EShipmentSystem,iwelina-popova/EShipmentSystem | EShipmentSystem/EShipmentSystem.Web/Controllers/ShipmentsController.cs | EShipmentSystem/EShipmentSystem.Web/Controllers/ShipmentsController.cs | namespace EShipmentSystem.Web.Controllers
{
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using AutoMapper;
using AutoMapper.QueryableExtensions;
using EShipmentSystem.Services.Contracts;
using Models.Shipment;
[Route("api/[controlle... | mit | C# | |
309e81f0b2da875fa9c2d3420d44fdbf6bba8a07 | Add ConstValues.cs for donet | StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTan... | rocketmq-client-donet/src/ConstValues.cs | rocketmq-client-donet/src/ConstValues.cs | namespace RocketMQ.Interop
{
public static class ConstValues
{
public const string RocketMQDriverDllName = "rocketmq-client-cpp.dll";
}
}
| apache-2.0 | C# | |
5033cfa13b8f9649cf2fc6c46e2b7125dbbf77d9 | add Unit Test to verify multiple blackboard key changes don’t result in wrong subbranch being activated | meniku/NPBehave | Editor/Tests/GeneralTest.cs | Editor/Tests/GeneralTest.cs | using NUnit.Framework;
namespace NPBehave
{
public class GeneralTest : Test
{
[Test]
public void ShouldNotActivateLowerPriorityBranchInCaseMultipleBranchesGetValid()
{
this.Timer = new Clock();
this.Blackboard = new Blackboard(Timer);
// our mock no... | mit | C# | |
35d591334caa270bc6ab01ad942fea6bbf70a24e | Add WinUserNativeMethods.cs for encrypt/decrypt in Launcher | hpsa/hpe-application-automation-tools-plugin,hpsa/hp-application-automation-tools-plugin,bamh/hpe-application-automation-tools-plugin,bamh/hpe-application-automation-tools-plugin,bamh/hpe-application-automation-tools-plugin,HPSoftware/hpaa-octane-dev,HPSoftware/hpaa-octane-dev,hpsa/hp-application-automation-tools-plugi... | HpToolsLauncher/WinUserNativeMethods.cs | HpToolsLauncher/WinUserNativeMethods.cs | using System;
using System.Runtime.InteropServices;
namespace HpToolsLauncher
{
public static class WinUserNativeMethods
{
private static class EncodeUtilsWrap
{
[DllImport("EncodeUtilsWrap", CallingConvention = CallingConvention.Cdecl)]
public static extern void Unprot... | mit | C# | |
40c8c3f2497005b6d6f41abef6daa947bab73499 | Create ValueVrapper.cs | SMihand/Cache-GlobalsProxy-Framework | MetaEditor/helpclass/ValueVrapper.cs | MetaEditor/helpclass/ValueVrapper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MetaCache_v3
{
class ValueVrapper
{
//"workers","list",0,100,"string",0,255,0)
String _Caption;
String _datatyp;
double _min, _max;
string _Def;... | mit | C# | |
9eae275c3683945c6d433d1e15835c8480d3f33b | Create LoadResources.cs | Gianxs/CitiesSkylineFavoriteCimsMod | LoadResources.cs | LoadResources.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using UnityEngine;
namespace FavoriteCims
{
public class ResourceLoader
{
public static Assembly ResourceAssembly
{
get {
return Assembly.GetAssembly(typeof(ResourceLoader));
... | mit | C# | |
3556a0cd70d3dc18c5d4cd4c631afc4c67766d4c | Add CryptographicException class | ektrah/nsec | src/Cryptography/CryptographicException.cs | src/Cryptography/CryptographicException.cs | using System;
namespace NSec.Cryptography
{
public class CryptographicException : Exception
{
public CryptographicException() { }
public CryptographicException(string message) : base(message) { }
public CryptographicException(string message, Exception innerException) : base(message, i... | mit | C# | |
f75ea261fe1cbd4ad5ccb5651877c68bf40a8b83 | Create DeserializerException.cs | tiksn/TIKSN-Framework | TIKSN.Core/Serialization/DeserializerException.cs | TIKSN.Core/Serialization/DeserializerException.cs | using System;
namespace TIKSN.Serialization
{
[Serializable]
public class DeserializerException : Exception
{
public DeserializerException()
{
}
public DeserializerException(string message) : base(message)
{
}
public DeserializerException(string me... | mit | C# | |
f4135ffce75cfe097a99612179b17fc94e256726 | Disable test parallelization for OmniSharp.Cake.Tests | DustinCampbell/omnisharp-roslyn,OmniSharp/omnisharp-roslyn,OmniSharp/omnisharp-roslyn,DustinCampbell/omnisharp-roslyn | tests/OmniSharp.Cake.Tests/AssemblyInfo.cs | tests/OmniSharp.Cake.Tests/AssemblyInfo.cs | [assembly: Xunit.CollectionBehavior(DisableTestParallelization = true)]
| mit | C# | |
e37a04e24b6b96f8f2f82624a31b03a81675adda | Create Sample.cs | Levaneng/Resharper-Themes | Sample.cs | Sample.cs | using ExternalNamespace;
namespace MyNamespace
{
internal delegate string Delegate();
public enum MyEnum { Value1, Value2 }
public struct MyStruct { }
/// <summary>
/// This is a XML comment
/// </summary>
/// <typeparam name="TGeneric"></typeparam>
internal class MyClass<TGeneric> :... | mit | C# | |
4b818f103b4c4218b9fbdfac405014743088dfc0 | Add IterationDataAttribute for easy test looping | heejaechang/roslyn,tmat/roslyn,davkean/roslyn,dotnet/roslyn,weltkante/roslyn,jasonmalinowski/roslyn,stephentoub/roslyn,mgoertz-msft/roslyn,nguerrera/roslyn,shyamnamboodiripad/roslyn,AlekseyTs/roslyn,mavasani/roslyn,agocke/roslyn,AlekseyTs/roslyn,wvdd007/roslyn,VSadov/roslyn,CyrusNajmabadi/roslyn,jmarolf/roslyn,reaction... | src/VisualStudio/IntegrationTest/TestUtilities/IterationDataAttribute.cs | src/VisualStudio/IntegrationTest/TestUtilities/IterationDataAttribute.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Reflection;
using Xunit.Sdk;
namespace Microsoft.VisualStudio.IntegrationTest.Utilities
{
/// <summary>
... | mit | C# | |
4468674a94c838935cc57ad7e54aaefbc6192eba | Fix possible null ref issue. | JasonBock/csla,MarimerLLC/csla,jonnybee/csla,MarimerLLC/csla,rockfordlhotka/csla,JasonBock/csla,MarimerLLC/csla,ronnymgm/csla-light,ronnymgm/csla-light,BrettJaner/csla,jonnybee/csla,BrettJaner/csla,ronnymgm/csla-light,rockfordlhotka/csla,JasonBock/csla,jonnybee/csla,rockfordlhotka/csla,BrettJaner/csla | cslacs/Csla/Server/Hosts/Silverlight/WcfErrorInfo.cs | cslacs/Csla/Server/Hosts/Silverlight/WcfErrorInfo.cs | using System;
using System.Runtime.Serialization;
namespace Csla.Server.Hosts.Silverlight
{
/// <summary>
/// Message containing details about any
/// server-side exception.
/// </summary>
[DataContract]
public class WcfErrorInfo
{
/// <summary>
/// Type name of the exception object... | using System;
using System.Runtime.Serialization;
namespace Csla.Server.Hosts.Silverlight
{
/// <summary>
/// Message containing details about any
/// server-side exception.
/// </summary>
[DataContract]
public class WcfErrorInfo
{
/// <summary>
/// Type name of the exception object... | mit | C# |
1d3f5515e8ba9321ca091f25f442efd1897cb3e4 | Add MockCoreClrSanity test | crummel/dotnet_core-setup,crummel/dotnet_core-setup,wtgodbe/core-setup,wtgodbe/core-setup,MichaelSimons/core-setup,crummel/dotnet_core-setup,crummel/dotnet_core-setup,MichaelSimons/core-setup,MichaelSimons/core-setup,wtgodbe/core-setup,crummel/dotnet_core-setup,wtgodbe/core-setup,MichaelSimons/core-setup,MichaelSimons/... | src/test/HostActivationTests/MockCoreClrSanity.cs | src/test/HostActivationTests/MockCoreClrSanity.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 Microsoft.DotNet.Cli.Build;
using System;
using System.Collections.Generic;
using System.IO;
using System.Run... | mit | C# | |
08de81004adda619d84d0a5b18c9f91905b4cc5e | Create view model for user | grantcolley/authorisationmanager,grantcolley/authorisationmanager,grantcolley/authorisationmanager,grantcolley/authorisationmanager | UI/ASPNetCore/ViewModels/UserViewModel.cs | UI/ASPNetCore/ViewModels/UserViewModel.cs | namespace DevelopmentInProgress.AuthorisationManager.ASP.Net.Core.ViewModels
{
public class UserViewModel
{
public string Id { get; set; }
public string Name { get; set; }
public string DisplayName { get; set; }
}
}
| apache-2.0 | C# | |
e62b1c1f8c062c0c7f6890b8099e1cc5e8e95aee | Create Chemin.cs | HartmanDev/WimP | Chemin.cs | Chemin.cs | using System;
using System.Collections;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Collections.Generic;
namespace PathFinder
{
class Chemin
{
#region Attributs
private int iNbMoveSinceLastNode;
public int NbBloquage;
publ... | mit | C# | |
9a4edaf55c5ade30643d9b59437bcc5a42cec45a | Clean up | viciousviper/mediafire-csharp-open-sdk,MediaFire/mediafire-csharp-open-sdk | Source/Samples/ConsoleApplication/Program.cs | Source/Samples/ConsoleApplication/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MediaFireSDK;
using MediaFireSDK.Model;
using MediaFireSDK.Model.Responses;
namespace ConsoleApplication
{
class Program
{
private const string AppId = "";
private const ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MediaFireSDK;
using MediaFireSDK.Model;
using MediaFireSDK.Model.Responses;
namespace ConsoleApplication
{
class Program
{
private const string AppId = "";
private const s... | apache-2.0 | C# |
d633a694a0938c5ee4836785b3f4036c0d51133e | Create getControllers.cs | stephenbradshaw/pentesting_stuff,stephenbradshaw/pentesting_stuff,stephenbradshaw/pentesting_stuff,stephenbradshaw/pentesting_stuff | example_code/getControllers.cs | example_code/getControllers.cs | // lists controllers when added to a web application
// returns result as a string
public String getControllers()
{
var asms = AppDomain.CurrentDomain.GetAssemblies().Where(a => a.GetName().Name != "System.Web.Mvc");
String output = "";
foreach (Assembly asm in asms)
{
String s = "";
try
{
var... | bsd-3-clause | C# | |
b37ef8a3a0c9c0758f0a9e04524bd069b54fe756 | Add UserInspector | peterblazejewicz/Glimpse.Prototype,zanetdev/Glimpse.Prototype,pranavkm/Glimpse.Prototype,Glimpse/Glimpse.Prototype,pranavkm/Glimpse.Prototype,Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Pro... | src/Glimpse.Agent.Web/Inspectors/UserInspector.cs | src/Glimpse.Agent.Web/Inspectors/UserInspector.cs | using System;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
namespace Glimpse.Agent.Web.Inspectors
{
public class UserInspector : IInspector
{
public Task Before(HttpContext context)
{
throw new NotImplementedException();
}
public Task After(HttpContex... | mit | C# | |
02b967f805527348e03d8e66f94d523d7de976ee | Create CharismaE.cs | Keripo/fgo-data | webservice/src/Models/Data/ActiveSkills/CharismaE.cs | webservice/src/Models/Data/ActiveSkills/CharismaE.cs | using FGOData.Models.Serialization;
using System.Collections.Generic;
namespace FGOData.Models.Data
{
public class CharismaE : ActiveSkill
{
public CharismaB()
{
Name_EN = "Charisma E";
Name_JP = "カリスマ E";
Cooldown = 7;
Effects = new List<Effect> ... | apache-2.0 | C# | |
e1a831505785abd8f9d6c0e9f58708e73e56bd7f | Add basic IRepository implementation | denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs | src/Diploms.DataLayer/RepositoryBase.cs | src/Diploms.DataLayer/RepositoryBase.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Microsoft.EntityFrameworkCore;
using System.Threading.Tasks;
using Diploms.Core;
namespace Diploms.DataLayer
{
public class RepositoryBase<T> : IRepository<T> where T : class, IEntity
{
protected rea... | mit | C# | |
a7685a7725dca5d7a2e282c4bb2c3bf626588d0f | Add WaterQualityEntityComparer | HatfieldConsultants/Hatfield.EnviroData.WQDataProfile | Source/Hatfield.EnviroData.DataProfile.WQ.Data/WaterQualityEntityComparer.cs | Source/Hatfield.EnviroData.DataProfile.WQ.Data/WaterQualityEntityComparer.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Hatfield.EnviroData.DataProfile.WQ
{
public class WaterQualityEntityComparer
{
public static bool AreValueEqual(Hatfield.EnviroData.DataProfile.WQ.Models.Site model, Hatfield.E... | mpl-2.0 | C# | |
a016c2be5fee8d5f0bcb719de79cc512a72b257c | Create AddDefineSymbols.cs | UnityCommunity/UnityLibrary | Assets/Scripts/Editor/AddDefineSymbols.cs | Assets/Scripts/Editor/AddDefineSymbols.cs | using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEditor;
/// <summary>
/// Adds the given define symbols to PlayerSettings define symbols.
/// Just add your own define symbols to the Symbols property at the below.
/// </summary>
[InitializeOnLoad]
public clas... | mit | C# | |
5abad7dbfb9f6880f642323989c16f3be4ec95bc | Test fix | bluemner/FormsGenerator,bluemner/FormsGenerator,bluemner/FormsGenerator | FormsGeneratorWebApplication/Views/Shared/_FormsLayout.cshtml | FormsGeneratorWebApplication/Views/Shared/_FormsLayout.cshtml | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - Froms Generator</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
<div class="navbar navbar-inverse ... | mit | C# | |
5263f8e64625f4efe14ab4ffc02253db9ed66436 | add stub sample for later | aritchie/bluetoothle,aritchie/bluetoothle | Samples/Samples/Tasks/NotificationTask.cs | Samples/Samples/Tasks/NotificationTask.cs | //using System;
//using System.Reactive.Linq;
//using Autofac;
//using Plugin.BluetoothLE;
//namespace Samples.Tasks
//{
// public class NotificationTask : IStartable
// {
// readonly IAdapter adapter;
// readonly INotification notifications;
// public NotificationTask(IAdapter adapter, I... | mit | C# | |
e8e947ad16d601e313807521bca42c251d6a6a29 | Create SmoothMouseLookAveraged.cs | UnityCommunity/UnityLibrary | Scripts/Camera/SmoothMouseLookAveraged.cs | Scripts/Camera/SmoothMouseLookAveraged.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
// source: https://forum.unity3d.com/threads/a-free-simple-smooth-mouselook.73117/#post-3101292
// added: lockCursor
namespace UnityLibrary
{
public class SmoothMouseLookAveraged : MonoBehaviour
{
[Header("Info")]
p... | mit | C# | |
e574aa0e94ee16366a7c4086f2eb80042edb494f | Add toggle menu item test | 2yangk23/osu,EVAST9919/osu,ppy/osu,2yangk23/osu,smoogipooo/osu,johnneijzen/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,peppy/osu,UselessToucan/osu,ppy/osu,peppy/osu,EVAST9919/osu,peppy/osu-new,smoogipoo/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,johnneijzen/osu | osu.Game.Tests/Visual/UserInterface/TestSceneToggleMenuItem.cs | osu.Game.Tests/Visual/UserInterface/TestSceneToggleMenuItem.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 osu.Framework.Graphics;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Tests.Visual.UserInterface
{
... | mit | C# | |
6ce82cfc1b2ce948a1f3be94473bec6845dfca48 | Create server.cs | neervfx/server,neervfx/server | server.cs | server.cs | using UnityEngine;
using System.Collections;
using System.Net;
public class server : MonoBehaviour {
private string privateKey = "sdfgsdhsdhrhdf"; //same secret key as php
private string saveDataUrl = "https://www.example.com/savedata.php?"; //your php server url
private string loadDataUrl = "https://www.exam... | mit | C# | |
b9f204bc8b31af73393be63d1aaa5cc3349f186e | break IEnumerable into sets of a particular size | handcraftsman/Scratch | src/Scratch/SplitIEnumerableIntoSets/IEnumerableTExtensions.cs | src/Scratch/SplitIEnumerableIntoSets/IEnumerableTExtensions.cs | // * **********************************************************************************
// * Copyright (c) Clinton Sheppard
// * This source code is subject to terms and conditions of the MIT License.
// * A copy of the license can be found in the License.txt file
// * at the root of this distribution.
// * By u... | mit | C# | |
b906177ec947480f44c3b5857ae7b6567b2f081b | Create Problem38.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem38.cs | Problems/Problem38.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler.Problems
{
class Problem38
{
private bool IsPandigital(string numS)//int num)
{
//string numS = num.ToString();
if (numS.Length != 9)
{
... | mit | C# | |
8a140b8d2867c0ec66b887dd637c4907997fdaee | Create Problem97.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem97.cs | Problems/Problem97.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
namespace ProjectEuler.Problems
{
class Problem97
{
private BigInteger modpow(BigInteger bas, BigInteger exponent, BigInteger modulus)
{
BigInteger result = 1;
... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.