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 |
|---|---|---|---|---|---|---|---|---|
b3152406a7da31664c437366baabddd770f6de45 | Remove obsolete send message method | messagebird/csharp-rest-api | MessageBird/Client.cs | MessageBird/Client.cs | using System;
using MessageBird.Objects;
using MessageBird.Resources;
using MessageBird.Net;
namespace MessageBird
{
public class Client
{
private IRestClient restClient;
private Client(IRestClient restClient)
{
this.restClient = restClient;
}
public static... | using System;
using MessageBird.Objects;
using MessageBird.Resources;
using MessageBird.Net;
namespace MessageBird
{
public class Client
{
private IRestClient restClient;
private Client(IRestClient restClient)
{
this.restClient = restClient;
}
public static... | isc | C# |
9277a6616782c54f3518aa597f8cf73c511385c1 | add using | dataccountzXJ9/Lynx | Lynx/Services/Help/HelpExtension.cs | Lynx/Services/Help/HelpExtension.cs | using Discord;
using Discord.Commands;
using Discord.WebSocket;
using Lynx.Database;
using Lynx.Services.Embed;
using Raven.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lynx.Services.Help
{
public static class HelpExtension
... | using Discord;
using Discord.Commands;
using Discord.WebSocket;
using Lynx.Database;
using Raven.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lynx.Services.Help
{
public static class HelpExtension
{
public static ... | mit | C# |
8a7ec1adfd279ceb20eeca6a25a5eec033b49f64 | Revert "修改标题" | 18773048081zhou/netweb,18773048081zhou/netweb,18773048081zhou/netweb | MyWeb/MyWeb/Views/Home/Index.cshtml | MyWeb/MyWeb/Views/Home/Index.cshtml | @{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<h1>ASP.NET</h1>
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
<p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more »</a></p>
</div>
... | @{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<h1>ASP.NET</h1>
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
<p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more »</a></p>
</div>
... | mit | C# |
bf66bd70d21f77fe1453c2cbea695398d37f165e | Refactor from RaceType to DerbyType | tmeers/Derby,tmeers/Derby,tmeers/Derby | Derby/Models/Competition.cs | Derby/Models/Competition.cs | using System;
using System.ComponentModel.DataAnnotations;
using Derby.Infrastructure;
namespace Derby.Models
{
public class Competition
{
public int Id { get; set; }
public int PackId { get; set; }
public string Title { get; set; }
public string Location { get; set; }
... | using System;
using System.ComponentModel.DataAnnotations;
using Derby.Infrastructure;
namespace Derby.Models
{
public class Competition
{
public int Id { get; set; }
public int PackId { get; set; }
public string Title { get; set; }
public string Location { get; set; }
... | mit | C# |
0e3f8601ac4a27214b8fc9410b029ce10618f949 | Correct comment. | drewnoakes/boing | Boing/PointMass.cs | Boing/PointMass.cs | using System.Collections.Generic;
using System.Diagnostics;
namespace Boing
{
public sealed class PointMass
{
private Vector2f _force;
internal HashSet<ILocalForce> LocalForces { get; } = new HashSet<ILocalForce>();
public float Mass { get; set; }
public float Damping { get; se... | using System.Collections.Generic;
using System.Diagnostics;
namespace Boing
{
public sealed class PointMass
{
private Vector2f _force;
internal HashSet<ILocalForce> LocalForces { get; } = new HashSet<ILocalForce>();
public float Mass { get; set; }
public float Damping { get; se... | apache-2.0 | C# |
a529d0e742a91c54d674d65ffa79f25416dc936e | Update 2019 migrating | dimmpixeye/Unity3dTools | Editor/Helpers/HelperReturnClick.cs | Editor/Helpers/HelperReturnClick.cs | /*===============================================================
Product: Cryoshock
Developer: Dimitry Pixeye - pixeye@hbrew.store
Company: Homebrew - http://hbrew.store
Date: 2/5/2018 2:42 PM
================================================================*/
using UnityEditor;
using UnityEngine;
name... | /*===============================================================
Product: Cryoshock
Developer: Dimitry Pixeye - pixeye@hbrew.store
Company: Homebrew - http://hbrew.store
Date: 2/5/2018 2:42 PM
================================================================*/
using UnityEditor;
using UnityEngine;
name... | mit | C# |
32770517dbddd1c51dde26664a0178199ae38386 | Remove unused using statments | It423/enigma-simulator,wrightg42/enigma-simulator | Enigma/EnigmaUtilities/Resources.cs | Enigma/EnigmaUtilities/Resources.cs | // Resources.cs
// <copyright file="Resources.cs"> This code is protected under the MIT License. </copyright>
using System.Linq;
namespace EnigmaUtilities
{
/// <summary>
/// A static class with commonly used functions throughout multiple classes.
/// </summary>
public static class Resources
{ ... | // Resources.cs
// <copyright file="Resources.cs"> This code is protected under the MIT License. </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EnigmaUtilities
{
/// <summary>
/// A static class with commonly used func... | mit | C# |
6e209a7f07581b0d6c98de9afc7129f6eee2af29 | Add global error listener. | kchen0723/ExcelAsync | ExcelAsyncWpf/ExcelAsyncWpfAddin.cs | ExcelAsyncWpf/ExcelAsyncWpfAddin.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Interop.Excel;
using ExcelDna.Integration;
using ExcelDna.ComInterop;
using ExcelAsyncWpf.ExcelOperator;
namespace ExcelAsyncWpf
{
public class ExcelAsyncWpfAddin : IExcelAddIn
{
public void A... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Interop.Excel;
using ExcelDna.Integration;
using ExcelDna.ComInterop;
using ExcelAsyncWpf.ExcelOperator;
namespace ExcelAsyncWpf
{
public class ExcelAsyncWpfAddin : IExcelAddIn
{
public void A... | agpl-3.0 | C# |
621d94a30939269829303980022b1612f4f392c6 | Add Design Category for Property editors in PointLight.MaximumRadius | tainicom/Aether | Source/Core/Photons/PointLight.cs | Source/Core/Photons/PointLight.cs | #region License
// Copyright 2015 Kastellanos Nikolaos
//
// 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 requi... | #region License
// Copyright 2015 Kastellanos Nikolaos
//
// 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 requi... | apache-2.0 | C# |
3adea68113b3447b1ab6240db0d4b714ffb1713e | Fix resource key name PushPinTemplate | xjpeter/Xamarin.Forms,xjpeter/Xamarin.Forms,xjpeter/Xamarin.Forms,xjpeter/Xamarin.Forms,xjpeter/Xamarin.Forms,Hitcents/Xamarin.Forms,Hitcents/Xamarin.Forms,Hitcents/Xamarin.Forms | Xamarin.Forms.Maps.UWP/PushPin.cs | Xamarin.Forms.Maps.UWP/PushPin.cs | using System;
using System.ComponentModel;
using Windows.Devices.Geolocation;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Maps;
using Windows.UI.Xaml.Input;
#if WINDOWS_UWP
namespace Xamarin.Forms.Maps.UWP
#else
namespace Xamarin.Forms.Maps.WinRT
#endif
{
internal class Pu... | using System;
using System.ComponentModel;
using Windows.Devices.Geolocation;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Maps;
using Windows.UI.Xaml.Input;
#if WINDOWS_UWP
namespace Xamarin.Forms.Maps.UWP
#else
namespace Xamarin.Forms.Maps.WinRT
#endif
{
internal class Pu... | mit | C# |
fb1b7373bc28e6257fbcc150fb140754409ad687 | Fix System.NullReferenceException in MenuBackend.Popup. | hwthomas/xwt,mono/xwt,lytico/xwt,TheBrainTech/xwt,antmicro/xwt | Xwt.XamMac/Xwt.Mac/MenuBackend.cs | Xwt.XamMac/Xwt.Mac/MenuBackend.cs | //
// MenuBackend.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2011 Xamarin Inc
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restricti... | //
// MenuBackend.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2011 Xamarin Inc
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restricti... | mit | C# |
026ffaa138c19cc9a21693b9b97f7364557b01ec | Update Const.cs | pelcointegrations/VxPDK-SimplePlugin | Plugin/Utilities/Const.cs | Plugin/Utilities/Const.cs | using CPPCli;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace PluginNs.Utilities
{
static class Const
{
public static readonly string LogFilePath = Path.Combine(Directory.GetParent(A... | using CPPCli;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace PluginNs.Utilities
{
static class Const
{
public static readonly string LogFilePath = Path.Combine(Directory.GetParent(A... | mit | C# |
6653b7d2a029ebb64d9db83f6ee192a6dcc339f7 | Remove send destroy message when clear subscribing, I will use clear subscribing function only when player disconnect or not ready, that will destroy all players characters and clear subscribing | insthync/LiteNetLibManager,insthync/LiteNetLibManager | Scripts/GameApi/LiteNetLibPlayer.cs | Scripts/GameApi/LiteNetLibPlayer.cs | using System.Collections;
using System.Collections.Generic;
using LiteNetLib;
namespace LiteNetLibHighLevel
{
public class LiteNetLibPlayer
{
public LiteNetLibGameManager Manager { get; protected set; }
public NetPeer Peer { get; protected set; }
public long ConnectId { get { return Pe... | using System.Collections;
using System.Collections.Generic;
using LiteNetLib;
namespace LiteNetLibHighLevel
{
public class LiteNetLibPlayer
{
public LiteNetLibGameManager Manager { get; protected set; }
public NetPeer Peer { get; protected set; }
public long ConnectId { get { return Pe... | mit | C# |
c64d82f4b81dfe17e17cf5f5d8730ae214f04c72 | add comment about token | tropo/tropo-webapi-csharp,tropo/tropo-webapi-csharp | TropoSample/TropoInboundSMS.aspx.cs | TropoSample/TropoInboundSMS.aspx.cs | using System;
using System.IO;
using Newtonsoft.Json;
using TropoCSharp.Tropo;
using System.Web.UI;
using TropoCSharp.Structs;
using System.Web;
using System.Xml;
using System.Collections.Generic;
namespace TropoSamples
{
/// <summary>
/// A simple example showing how to access properties of the Session objec... | using System;
using System.IO;
using Newtonsoft.Json;
using TropoCSharp.Tropo;
using System.Web.UI;
using TropoCSharp.Structs;
using System.Web;
using System.Xml;
using System.Collections.Generic;
namespace TropoSamples
{
/// <summary>
/// A simple example showing how to access properties of the Session objec... | mit | C# |
040f24be75ae1a5c033f0791becdb957f9cf6460 | bump version number | nickdurcholz/arguments-parser | AssemblyVersionInfo.cs | AssemblyVersionInfo.cs | using System.Reflection;
[assembly: AssemblyVersion(Constants.AssemblyVersion)]
[assembly: AssemblyFileVersion(Constants.AssemblyVersion)]
[assembly: AssemblyInformationalVersion(Constants.AssemblyVersion)]
internal class Constants
{
public const string AssemblyVersion = "1.0.1.0";
} | using System.Reflection;
[assembly: AssemblyVersion(Constants.AssemblyVersion)]
[assembly: AssemblyFileVersion(Constants.AssemblyVersion)]
[assembly: AssemblyInformationalVersion(Constants.AssemblyVersion)]
internal class Constants
{
public const string AssemblyVersion = "1.0.0.0";
} | mit | C# |
0333fbbaae104ce6c234d876286cbbd77b72765b | bump version | ulrichb/NullGuard,Fody/NullGuard,shana/NullGuard | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("NullGuard")]
[assembly: AssemblyProduct("NullGuard")]
[assembly: AssemblyVersion("0.6.0.0")]
[assembly: AssemblyFileVersion("0.6.0.0")]
| using System.Reflection;
[assembly: AssemblyTitle("NullGuard")]
[assembly: AssemblyProduct("NullGuard")]
[assembly: AssemblyVersion("0.5.1.2")]
[assembly: AssemblyFileVersion("0.5.1.2")]
| mit | C# |
f017216bd59ae5b3fb825afaf04a6fdab0ffc2d5 | bump version | 0x53A/PropertyChanged,Fody/PropertyChanged,user1568891/PropertyChanged | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("PropertyChanged")]
[assembly: AssemblyProduct("PropertyChanged")]
[assembly: AssemblyVersion("1.33.1.0")]
[assembly: AssemblyFileVersion("1.33.1.0")]
| using System.Reflection;
[assembly: AssemblyTitle("PropertyChanged")]
[assembly: AssemblyProduct("PropertyChanged")]
[assembly: AssemblyVersion("1.33.0.0")]
[assembly: AssemblyFileVersion("1.33.0.0")]
| mit | C# |
dab767beb0e5f930de8e68a2e71bc4e591f41dfc | test avec le graph | maloromano/enigmos,AurelieWasem/enigmos,misterkonik/enigmos,SteeveDroz/enigmos,Mozerskial/enigmos,OwenGombas/enigmos,AdrienPeguiron/enigmos,CPLN/enigmos,danydacosta/enigmos,Sandozor/enigmos,AnaKamelia/enigmos,DiavoloKingCrimson/enigmos,DarmangerDavid/enigmos,damienschindler/enigmos,VincentRime/enigmos | Enigmas/LabyrintheEnigmaPanel.cs | Enigmas/LabyrintheEnigmaPanel.cs | using Cpln.Enigmos.Enigmas.Components;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Drawing;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Cpln.Enigmos.Enigmas
{
/// <summary>
/// Panel affichant une énigme.
/// </summary>
pub... | using Cpln.Enigmos.Enigmas.Components;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Cpln.Enigmos.Enigmas
{
/// <summary>
/// Panel affichant une énigme.
/// </summary>
public class LabyrintheEn... | mit | C# |
3412c598caa6b08095bc02e4a770069950c284a5 | Allow to encode/decode the registry | babelmark/babelmark-proxy | EncryptApp/Program.cs | EncryptApp/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using BabelMark;
using Newtonsoft.Json;
namespace EncryptApp
{
class Program
{
static int Main(string[] args)
{
if (args.Length !=... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using BabelMark;
using Newtonsoft.Json;
namespace EncryptApp
{
class Program
{
static int Main(string[] args)
{
if (args.Length !=... | bsd-2-clause | C# |
aa87271b713ab69ac45164ebae85cc78f772cd27 | Test de Catalogo de Forfait | avifatal/framework,avifatal/framework,signumsoftware/framework,AlejandroCano/framework,signumsoftware/framework,AlejandroCano/framework | Signum.Test/LinqProvider/Assert2.cs | Signum.Test/LinqProvider/Assert2.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Signum.Utilities;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Signum.Test.Properties;
using System.Linq.Expressions;
namespace Signum.Test
{
public static class Assert2
{
public stati... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Signum.Utilities;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Signum.Test.Properties;
namespace Signum.Test
{
public static class Assert2
{
public static void Throws<T>(Action action)
... | mit | C# |
ce3e887a4cd38f33d9ef78289529d35d47b65d5a | Add picker to UsageSampleMvc | billboga/stuntman,khalidabuhakmeh/stuntman,hougasian/stuntman,ritterim/stuntman,billbogaiv/stuntman,billboga/stuntman | samples/UsageSampleMvc/Views/Shared/_Layout.cshtml | samples/UsageSampleMvc/Views/Shared/_Layout.cshtml | @using RimDev.Stuntman.Core;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.mi... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" />
<link rel="styl... | mit | C# |
83bfd36498dcb30d2ad8e22184ab56504a9968d4 | Disable broken taiko hitsound fallback tests for now | peppy/osu,ppy/osu,peppy/osu-new,peppy/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,ppy/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,smoogipooo/osu,NeoAdonis/osu,NeoAdonis/osu | osu.Game.Rulesets.Taiko.Tests/TestSceneTaikoHitObjectSamples.cs | osu.Game.Rulesets.Taiko.Tests/TestSceneTaikoHitObjectSamples.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.Reflection;
using NUnit.Framework;
using osu.Framework.IO.Stores;
using osu.Game.Tests.Beatmaps;
namespace osu.Game.Rulesets.Taiko.Tests
{
public class ... | // 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.Reflection;
using NUnit.Framework;
using osu.Framework.IO.Stores;
using osu.Game.Tests.Beatmaps;
namespace osu.Game.Rulesets.Taiko.Tests
{
public class ... | mit | C# |
e38fa94cfdfb77194102dd399a0068a85b0dc7a7 | Fix ImportCecilTest::ImportGenericMethod | gluck/cecil,joj/cecil,jbevain/cecil,furesoft/cecil,mono/cecil,saynomoo/cecil,SiliconStudio/Mono.Cecil,fnajera-rac-de/cecil,xen2/cecil,cgourlay/cecil,ttRevan/cecil,sailro/cecil,kzu/cecil | Test/Mono.Cecil.Tests/Extensions.cs | Test/Mono.Cecil.Tests/Extensions.cs | using System;
using System.Linq;
using SR = System.Reflection;
using Mono.Cecil;
namespace Mono.Cecil.Tests {
public static class Extensions {
public static MethodDefinition GetMethod (this TypeDefinition self, string name)
{
return self.Methods.Where (m => m.Name == name).First ();
}
public static Fie... | using System;
using System.Linq;
using SR = System.Reflection;
using Mono.Cecil;
namespace Mono.Cecil.Tests {
public static class Extensions {
public static MethodDefinition GetMethod (this TypeDefinition self, string name)
{
return self.Methods.Where (m => m.Name == name).First ();
}
public static Fie... | mit | C# |
4c3e960221ffb95da3efbfdcb8162230fee58593 | Update AnnotationVisibilityType.cs (#263) | EncompassRest/EncompassRest,hfcjweinstock/EncompassREST | src/EncompassRest/Loans/Attachments/AnnotationVisibilityType.cs | src/EncompassRest/Loans/Attachments/AnnotationVisibilityType.cs | namespace EncompassRest.Loans.Attachments
{
/// <summary>
/// AnnotationVisibilityType
/// </summary>
public enum AnnotationVisibilityType
{
/// <summary>
/// Public (Default. Viewable by everyone and is sent as part of documents.)
/// </summary>
Public = 0,
... | namespace EncompassRest.Loans.Attachments
{
/// <summary>
/// AnnotationVisibilityType
/// </summary>
public enum AnnotationVisibilityType
{
/// <summary>
/// Public (Default. Viewable by the user who added it.)
/// </summary>
Public = 0,
/// <summary>
... | mit | C# |
f2d3110729b052da68062e971f0d70533258dc7b | Switch to FirefoxDriver due to instability of PhantomJS headless testing. | jwaliszko/ExpressiveAnnotations,JaroslawWaliszko/ExpressiveAnnotations,JaroslawWaliszko/ExpressiveAnnotations,jwaliszko/ExpressiveAnnotations,jwaliszko/ExpressiveAnnotations,jwaliszko/ExpressiveAnnotations,JaroslawWaliszko/ExpressiveAnnotations,JaroslawWaliszko/ExpressiveAnnotations | src/ExpressiveAnnotations.MvcWebSample.UITests/DriverFixture.cs | src/ExpressiveAnnotations.MvcWebSample.UITests/DriverFixture.cs | using System;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.PhantomJS;
using OpenQA.Selenium.Remote;
namespace ExpressiveAnnotations.MvcWebSample.UITests
{
public class DriverFixture : IDisposable
{
public DriverFixture() // called before every test class
{
//var service = P... | using System;
using OpenQA.Selenium.PhantomJS;
using OpenQA.Selenium.Remote;
namespace ExpressiveAnnotations.MvcWebSample.UITests
{
public class DriverFixture : IDisposable
{
public DriverFixture() // called before every test class
{
var service = PhantomJSDriverService.CreateDefau... | mit | C# |
7a885dc2cd5bf7842d33ba26b402e81a7b988ae1 | Update Index.cshtml | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Mvc/Views/Home/Index.cshtml | Anlab.Mvc/Views/Home/Index.cshtml | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">×</button>
Update posted: September 30, 2020<br /><br />
In response to the emergency need for the analysis of wine for smoke taint,
... | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">×</button>
Update posted: July 10, 2020<br /><br />
We are open and receiving samples during normal business hours.<br /><br />
Pleas... | mit | C# |
ce0064bb6de10bc8d4b8efccb47a4d96f62fe9e4 | Change OSX arch names. | Chaser324/unity-build | Editor/Build/Platform/BuildOSX.cs | Editor/Build/Platform/BuildOSX.cs | using UnityEditor;
namespace SuperSystems.UnityBuild
{
[System.Serializable]
public class BuildOSX : BuildPlatform
{
#region Constants
private const string _name = "OSX";
private const string _binaryNameFormat = "{0}.app";
private const string _dataDirNameFormat = "{0}.app/Contents";
private con... | using UnityEditor;
namespace SuperSystems.UnityBuild
{
[System.Serializable]
public class BuildOSX : BuildPlatform
{
#region Constants
private const string _name = "OSX";
private const string _binaryNameFormat = "{0}.app";
private const string _dataDirNameFormat = "{0}.app/Contents";
private con... | mit | C# |
55e820806f8745d850a1c05ba70100ee0d94e037 | Set the default InsensitiveBorderEndLength to 0. | PenguinF/sandra-three | Eutherion/Win/Forms/SnapHelper.cs | Eutherion/Win/Forms/SnapHelper.cs | #region License
/*********************************************************************************
* SnapHelper.cs
*
* Copyright (c) 2004-2020 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... | #region License
/*********************************************************************************
* SnapHelper.cs
*
* Copyright (c) 2004-2020 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... | apache-2.0 | C# |
d316e39eb8d8542a5d13ebca3fa8b47cbae732a4 | comment test. | tonyredondo/TWCore2,tonyredondo/TWCore2,tonyredondo/TWCore2,tonyredondo/TWCore2 | tools/TWCore.Diagnostics.Api/DiagnosticMessagingServiceAsync.cs | tools/TWCore.Diagnostics.Api/DiagnosticMessagingServiceAsync.cs | /*
Copyright 2015-2018 Daniel Adrian Redondo Suarez
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... | /*
Copyright 2015-2018 Daniel Adrian Redondo Suarez
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... | apache-2.0 | C# |
97a93a071f2df0916337fc9308c7d8a403b1d63b | Make m_oauth readonly in OAuthHttpMessageHandler. | duplicati/duplicati,duplicati/duplicati,sitofabi/duplicati,mnaiman/duplicati,sitofabi/duplicati,mnaiman/duplicati,mnaiman/duplicati,sitofabi/duplicati,sitofabi/duplicati,duplicati/duplicati,sitofabi/duplicati,duplicati/duplicati,duplicati/duplicati,mnaiman/duplicati,mnaiman/duplicati | Duplicati/Library/Backend/OAuthHelper/OAuthHttpMessageHandler.cs | Duplicati/Library/Backend/OAuthHelper/OAuthHttpMessageHandler.cs | // Copyright (C) 2018, The Duplicati Team
// http://www.duplicati.com, info@duplicati.com
//
// 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 version 2.1 of the
// License... | // Copyright (C) 2018, The Duplicati Team
// http://www.duplicati.com, info@duplicati.com
//
// 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 version 2.1 of the
// License... | lgpl-2.1 | C# |
83b363b15b585ce3c6ecb336aecfe9be1da3035a | Update version number. | Damnae/storybrew | editor/Properties/AssemblyInfo.cs | editor/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("storybrew editor")]
[assembly: AssemblyDe... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("storybrew editor")]
[assembly: AssemblyDe... | mit | C# |
fd19ef69d7659599bbab29c37e4188af8ca92395 | Add properties to OneDayTeam | fredatgithub/InterClubBadminton | InterClubBadminton/OneDayTeam.cs | InterClubBadminton/OneDayTeam.cs | /*
The MIT License(MIT)
Copyright(c) 2015 Freddy Juhel
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, pub... | /*
The MIT License(MIT)
Copyright(c) 2015 Freddy Juhel
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, pub... | mit | C# |
519df2847c993dece5190f2bf500900ad01368b0 | Improve logging with verbose and info | NicolasDorier/NBitcoin.Indexer,MetacoSA/NBitcoin.Indexer,bijakatlykkex/NBitcoin.Indexer | NBitcoin.Indexer/IndexerTrace.cs | NBitcoin.Indexer/IndexerTrace.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBitcoin.Indexer
{
class IndexerTrace
{
static TraceSource _Trace = new TraceSource("NBitcoin.Indexer");
internal static void ErrorWhileImportingBlockToAzure(ui... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBitcoin.Indexer
{
class IndexerTrace
{
static TraceSource _Trace = new TraceSource("NBitcoin.Indexer");
internal static void ErrorWhileImportingBlockToAzure(ui... | mit | C# |
31603d8498a955d0f6b7610814ee2aa681b02b41 | Insert check user fields for null | B1naryStudio/Azimuth,B1naryStudio/Azimuth | DataAccess/Entities/User.cs | DataAccess/Entities/User.cs | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Azimuth.DataAccess.Infrastructure;
namespace Azimuth.DataAccess.Entities
{
public class User : BaseEntity
{
public virtual Name Name { get; set; }
public virtual string ScreenName { get; set; }
... | using System.Collections.Generic;
using System.Collections.ObjectModel;
using Azimuth.DataAccess.Infrastructure;
namespace Azimuth.DataAccess.Entities
{
public class User : BaseEntity
{
public virtual Name Name { get; set; }
public virtual string ScreenName { get; set; }
public virtual... | mit | C# |
a5fc5d045c5842156649ff3a067804e85b4d504a | fix TestGrobufUsages | homuroll/gremit | GrEmit.Tests/TestGrobufUsages.cs | GrEmit.Tests/TestGrobufUsages.cs | using System;
using System.Reflection;
using System.Reflection.Emit;
using NUnit.Framework;
namespace GrEmit.Tests
{
public class TestGrobufUsages
{
[Test]
public void DateTimeOffsetPrivateFieldsAccess()
{
var method = BuildAccessorMethod();
var @delegate = (Ac... | using System;
using System.Reflection;
using System.Reflection.Emit;
using NUnit.Framework;
namespace GrEmit.Tests
{
public class TestGrobufUsages
{
[Test]
#if NETCOREAPP2_0
[Ignore("Test is failing on dotnetcore: dateTimeOffsetType.GetField(\"m_dateTime\", ...) == null")]
#endif
publ... | mit | C# |
77201c9daae958125e6814af32254a2653d2bf42 | Bump version 0.12.0.0 | modulexcite/Nowin,pysco68/Nowin,lstefano71/Nowin,et1975/Nowin,Bobris/Nowin,et1975/Nowin,lstefano71/Nowin,modulexcite/Nowin,et1975/Nowin,pysco68/Nowin,Bobris/Nowin,Bobris/Nowin,pysco68/Nowin,lstefano71/Nowin,modulexcite/Nowin | Nowin/Properties/AssemblyInfo.cs | Nowin/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Nowin")]
[assembly: AssemblyDescription("... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Nowin")]
[assembly: AssemblyDescription("... | mit | C# |
e4d568b8c0173504007cb43898b2b092431288fc | Bump version for release. | Bobris/Nowin,Bobris/Nowin,Bobris/Nowin | Nowin/Properties/AssemblyInfo.cs | Nowin/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Nowin")]
[assembly: AssemblyDescription("... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Nowin")]
[assembly: AssemblyDescription("... | mit | C# |
07508646b5d42a2a5486c189f922ff5b015659d4 | Add benchmark for `GetUnboundCopy` | ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework | osu.Framework.Benchmarks/BenchmarkBindableInstantiation.cs | osu.Framework.Benchmarks/BenchmarkBindableInstantiation.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using BenchmarkDotNet.Attributes;
using osu.Framework.Bindables;
using osu.Framework.Extensions.ObjectExtensions;
namespace osu.Framework.Benchmarks
{
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using BenchmarkDotNet.Attributes;
using osu.Framework.Bindables;
using osu.Framework.Extensions.ObjectExtensions;
namespace osu.Framework.Benchmarks
{
... | mit | C# |
09fbe59b233e9ccb80344193854335d0c08fad1a | Fix collection modified exceptions | paiden/Nett | Source/Nett.Coma/MergedConfig.cs | Source/Nett.Coma/MergedConfig.cs | namespace Nett.Coma
{
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Diagnostics.Debug;
internal class MergedConfig : IPersistableConfig
{
private const string AssertAtLeastOneConfigMsg =
"Constructor should check that there is a con... | namespace Nett.Coma
{
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Diagnostics.Debug;
internal class MergedConfig : IPersistableConfig
{
private const string AssertAtLeastOneConfigMsg =
"Constructor should check that there is a con... | mit | C# |
8631c469fcc69eb4886caf69574c45495632e2af | add license header | Nabile-Rahmani/osu,ppy/osu,smoogipoo/osu,peppy/osu,Frontear/osuKyzer,ppy/osu,2yangk23/osu,johnneijzen/osu,peppy/osu-new,EVAST9919/osu,EVAST9919/osu,UselessToucan/osu,UselessToucan/osu,naoey/osu,naoey/osu,NeoAdonis/osu,UselessToucan/osu,smoogipooo/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,2yangk23/osu,Drezi126/osu,DrabWeb... | osu.Game/Graphics/Containers/OsuHoverContainer.cs | osu.Game/Graphics/Containers/OsuHoverContainer.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 OpenTK.Graphics;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Input;
namespace osu.Game.Graphics.Containers
{
... |
using OpenTK.Graphics;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Input;
namespace osu.Game.Graphics.Containers
{
public class OsuHoverContainer : OsuClickableContainer
{
private Color4 hoverColour;
protected override bool OnHover(InputSta... | mit | C# |
829c5884b3e169d779bd6aca256e021ae9ad80e5 | Fix mis-matched split string indices (username is 0, password is 1). | brendanjbaker/Bakery | src/Bakery/Security/BasicAuthenticationParser.cs | src/Bakery/Security/BasicAuthenticationParser.cs | namespace Bakery.Security
{
using System;
using System.Text;
using Text;
public class BasicAuthenticationParser
: IBasicAuthenticationParser
{
private readonly IBase64Parser base64Parser;
private readonly Encoding encoding;
public BasicAuthenticationParser(IBase64Parser base64Parser, Encodin... | namespace Bakery.Security
{
using System;
using System.Text;
using Text;
public class BasicAuthenticationParser
: IBasicAuthenticationParser
{
private readonly IBase64Parser base64Parser;
private readonly Encoding encoding;
public BasicAuthenticationParser(IBase64Parser base64Parser, Encodin... | mit | C# |
d4a93e07fd1a5c231fcae586430f84084d3d4088 | Update Index.cshtml | johnnyreilly/jQuery.Validation.Unobtrusive.Native,senzacionale/jQuery.Validation.Unobtrusive.Native,johnnyreilly/jQuery.Validation.Unobtrusive.Native,johnnyreilly/jQuery.Validation.Unobtrusive.Native | jVUNDemo/Views/Home/Index.cshtml | jVUNDemo/Views/Home/Index.cshtml | @section metatags{
<meta name="Description" content="Provides MVC HTML helper extensions that marry jQuery Validation's native unobtrusive support for validation driven by HTML 5 data attributes with MVC's ability to generate data attributes from Model metadata. With this in place you can use jQuery Validation as ... | @section metatags{
<meta name="Description" content="Provides MVC HTML helper extensions that marry jQuery Validation's native unobtrusive support for validation driven by HTML 5 data attributes with MVC's ability to generate data attributes from Model metadata. With this in place you can use jQuery Validation as ... | mit | C# |
81296d9cdcfeabdd22e6d9949a931d20ae555a42 | add MissingMethodException | g0rdan/g0rdan.MvvmCross.Plugins | samples/MvvmCross.Plugins/iOS/Plugins/SimpleEmailPlugin.cs | samples/MvvmCross.Plugins/iOS/Plugins/SimpleEmailPlugin.cs | using System;
using MessageUI;
using UIKit;
namespace g0rdan.MvvmCross.Plugins.iOS
{
public class SimpleEmailPlugin : ISimpleEmailPlugin
{
MFMailComposeViewController _mailController;
UIViewController _vc;
public SimpleEmailPlugin()
{
}
#region ISimpleEmailPlu... | using System;
using MessageUI;
using UIKit;
namespace g0rdan.MvvmCross.Plugins.iOS
{
public class SimpleEmailPlugin : ISimpleEmailPlugin
{
MFMailComposeViewController _mailController;
UIViewController _vc;
public SimpleEmailPlugin()
{
}
#region ISimpleEmailPlu... | mit | C# |
0c94445c66fa19440c156ad8a94533e8d0e96243 | change flag for nuget update | jerryhuffman/IdentityManager,nexbit/IdentityManager,alibad/IdentityManager.vNext,nexbit/IdentityManager,Ernesto99/IdentityManager,Nicholi/IdentityManager,alibad/IdentityManager.vNext,jerryhuffman/IdentityManager,jerryhuffman/IdentityManager,IdentityManager/IdentityManager,nexbit/IdentityManager,Nicholi/IdentityManager,... | source/MembershipReboot.Tests/TestUserAccountRepository.cs | source/MembershipReboot.Tests/TestUserAccountRepository.cs | using BrockAllen.MembershipReboot;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MembershipReboot.Tests
{
public class TestUserAccountRepository : QueryableUserAccountRepository<TestUserAccount>
{
public TestUserAccountRep... | using BrockAllen.MembershipReboot;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MembershipReboot.Tests
{
public class TestUserAccountRepository : QueryableUserAccountRepository<TestUserAccount>
{
public TestUserAccountRep... | apache-2.0 | C# |
2d7eaebd9c35deb1db1fa7f27ff30bfc246f81a4 | Update FadeParticlesNearPoint.cs | grreuze/Utils | Scripts/FadeParticlesNearPoint.cs | Scripts/FadeParticlesNearPoint.cs | using UnityEngine;
[RequireComponent(typeof(ParticleSystem))]
public class FadeParticlesNearPoint : MonoBehaviour {
ParticleSystem ps;
[Header("Use \"Infinity\" to ignore an axis")]
[SerializeField] Vector3 point;
[SerializeField] float radius;
[SerializeField] float startFadeDistance = 3;
bool isLoca... | using UnityEngine;
[RequireComponent(typeof(ParticleSystem))]
public class FadeParticlesNearPoint : MonoBehaviour {
ParticleSystem ps;
[Header("Use \"Infinity\" to ignore an axis")]
[SerializeField] Vector3 point;
[SerializeField] float radius;
[SerializeField] float startFadeDistance = 3;
bool isLoc... | mit | C# |
5a886b195f38eaeff1ce4ebb4e609084b9198c0b | Fix EFConfigStore | Joe4evr/Discord.Addons | src/Discord.Addons.SimplePermissions.EFProvider/EFConfigStore.cs | src/Discord.Addons.SimplePermissions.EFProvider/EFConfigStore.cs | using System;
namespace Discord.Addons.SimplePermissions
{
/// <summary>
/// Implementation of an <see cref="IConfigStore{TConfig}"/> using EF as a backing store.
/// </summary>
/// <typeparam name="TContext">The database context.</typeparam>
public class EFConfigStore<TContext> : IConfigStore<TCo... | using System;
namespace Discord.Addons.SimplePermissions
{
/// <summary>
/// Implementation of an <see cref="IConfigStore{TConfig}"/> using EF as a backing store.
/// </summary>
/// <typeparam name="TContext">The database context.</typeparam>
public class EFConfigStore<TContext> : IConfigStore<EFC... | mit | C# |
b1d710205d7f465c4fa4be1fd45b5c2c90a62b3e | Add default system actions to Tutorial 2 | l8s/Eto,bbqchickenrobot/Eto-1,PowerOfCode/Eto,bbqchickenrobot/Eto-1,PowerOfCode/Eto,bbqchickenrobot/Eto-1,PowerOfCode/Eto,l8s/Eto,l8s/Eto | Tutorials/Tutorial2/Main.cs | Tutorials/Tutorial2/Main.cs | using System;
using Eto.Forms;
using Eto.Drawing;
namespace Tutorial2
{
public class MyAction : ButtonAction
{
public const string ActionID = "my_action";
public MyAction ()
{
this.ID = ActionID;
this.MenuText = "C&lick Me";
this.ToolBarText = "Click Me";
this.TooltipText = "This shows a dialog ... | using System;
using Eto.Forms;
using Eto.Drawing;
namespace Tutorial2
{
public class MyAction : ButtonAction
{
public const string ActionID = "my_action";
public MyAction ()
{
this.ID = ActionID;
this.MenuText = "C&lick Me";
this.ToolBarText = "Click Me";
this.TooltipText = "This shows a dialog ... | bsd-3-clause | C# |
5e53cd467f0f0de7fd6d81f077d19b50d0845364 | Move up length check | ilkerhalil/dnlib,Arthur2e5/dnlib,yck1509/dnlib,ZixiangBoy/dnlib,0xd4d/dnlib,jorik041/dnlib,kiootic/dnlib,modulexcite/dnlib,picrap/dnlib | src/DotNet/SimpleLazyList.cs | src/DotNet/SimpleLazyList.cs | using System.Diagnostics;
namespace dot10.DotNet {
/// <summary>
/// A readonly list that gets initialized lazily
/// </summary>
/// <typeparam name="T">A <see cref="ICodedToken"/> type</typeparam>
[DebuggerDisplay("Count = {Length}")]
class SimpleLazyList<T> where T : class, IMDTokenProvider {
[DebuggerBrows... | using System.Diagnostics;
namespace dot10.DotNet {
/// <summary>
/// A readonly list that gets initialized lazily
/// </summary>
/// <typeparam name="T">A <see cref="ICodedToken"/> type</typeparam>
[DebuggerDisplay("Count = {Length}")]
class SimpleLazyList<T> where T : class, IMDTokenProvider {
[DebuggerBrows... | mit | C# |
edbe312cb784c497f60855ce162d53b6d78895e9 | Improve mobile friendlyness of the Room.Edit view | johanhelsing/vaskelista,johanhelsing/vaskelista | Vaskelista/Views/Room/Edit.cshtml | Vaskelista/Views/Room/Edit.cshtml | @model Vaskelista.Models.Room
@{
ViewBag.Title = "Edit";
}
<h2>Rediger rom</h2>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
@Html.ValidationSummary(true)
@Html.HiddenFor(model => model.RoomId)
<div class="form-group">
@Htm... | @model Vaskelista.Models.Room
@{
ViewBag.Title = "Edit";
}
<h2>Rediger rom</h2>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
@Html.ValidationSummary(true)
@Html.HiddenFor(model => model.RoomId)
<div class="form-group">
@Htm... | mit | C# |
474e7fd2cb1ed672f905edae9473642baf2d626e | Add extension method to check eq mat dimensions | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Crypto/Extensions.cs | WalletWasabi/Crypto/Extensions.cs | using System.Collections.Generic;
using WalletWasabi.Helpers;
using WalletWasabi.Crypto.Groups;
using WalletWasabi.Crypto.ZeroKnowledge.LinearRelation;
using WalletWasabi.Crypto;
namespace System.Linq
{
public static class Extensions
{
public static GroupElement Sum(this IEnumerable<GroupElement> groupElements) =>... | using System.Collections.Generic;
using WalletWasabi.Helpers;
using WalletWasabi.Crypto.Groups;
namespace System.Linq
{
public static class Extensions
{
public static GroupElement Sum(this IEnumerable<GroupElement> groupElements) =>
groupElements.Aggregate(GroupElement.Infinity, (ge, acc) => ge + acc);
publi... | mit | C# |
22dbbdfe85caf82da0aca185e94970ebb4a9db88 | Disable Additional Sound Debugging | ludimation/Winter,ludimation/Winter,ludimation/Winter | Winter/Assets/PlayAmbientSound.cs | Winter/Assets/PlayAmbientSound.cs | using UnityEngine;
using System.Collections;
public class PlayAmbientSound : MonoBehaviour {
public float playChance = 0.01f;
public AudioSource source;
public AudioClip[] soundClip;
public GameObject listener;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Up... | using UnityEngine;
using System.Collections;
public class PlayAmbientSound : MonoBehaviour {
public float playChance = 0.01f;
public AudioSource source;
public AudioClip[] soundClip;
public GameObject listener;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Up... | mit | C# |
c975586b445bc2807cf6373e51dc54814872c22a | Fix filename in test/build.cake. | lewissbaker/cppcoro,lewissbaker/cppcoro,lewissbaker/cppcoro,lewissbaker/cppcoro | test/build.cake | test/build.cake | ###############################################################################
# Copyright (c) Lewis Baker
# Licenced under MIT license. See LICENSE.txt for details.
###############################################################################
import cake.path
from cake.tools import script, env, compiler, project,... | ###############################################################################
# Copyright (c) Lewis Baker
# Licenced under MIT license. See LICENSE.txt for details.
###############################################################################
import cake.path
from cake.tools import script, env, compiler, project,... | mit | C# |
4d13bff77f47c8ff4d146f3ec15f6e676d0bbf4a | Update Issues_180.cs | SixLabors/Fonts | tests/SixLabors.Fonts.Tests/Issues/Issues_180.cs | tests/SixLabors.Fonts.Tests/Issues/Issues_180.cs | // Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using Xunit;
namespace SixLabors.Fonts.Tests.Issues
{
public class Issues_180
{
[Fact]
public void CorrectlySetsHeightMetrics()
{
// Whitney-book has invalid hhea values.
Font font =... | // Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using Xunit;
namespace SixLabors.Fonts.Tests.Issues
{
public class Issues_180
{
[Fact]
public void CorrectlySetsHeightMetrics()
{
// Whitney-book has invalid hhea values.
Font font =... | apache-2.0 | C# |
6a56f93bfb7aceb832ca3002237dbc0068b17404 | Introduce Vine. Still need a lot of work. But need to refactor block faces first. | yungtechboy1/MiNET | src/MiNET/MiNET/Blocks/Vine.cs | src/MiNET/MiNET/Blocks/Vine.cs | #region LICENSE
// The contents of this file are subject to the Common Public Attribution
// License Version 1.0. (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
// https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE.
// The License... | namespace MiNET.Blocks
{
public class Vine : Block
{
public Vine() : base(106)
{
IsSolid = false;
IsTransparent = false;
BlastResistance = 1;
Hardness = 0.2f;
IsFlammable = true;
}
}
} | mpl-2.0 | C# |
0f7ed9ff3168bb90f9796fc07c95d88d876cd447 | Rename cache refresh and make public | HoloFan/HoloToolkit-Unity,NeerajW/HoloToolkit-Unity,HattMarris1/HoloToolkit-Unity,paseb/MixedRealityToolkit-Unity,willcong/HoloToolkit-Unity,out-of-pixel/HoloToolkit-Unity,dbastienMS/HoloToolkit-Unity,ForrestTrepte/HoloToolkit-Unity,paseb/HoloToolkit-Unity | Assets/HoloToolkit/Utilities/Scripts/CameraCache.cs | Assets/HoloToolkit/Utilities/Scripts/CameraCache.cs | using UnityEngine;
namespace HoloToolkit.Unity
{
public static class CameraCache
{
private static Camera cachedCamera;
/// <summary>
/// Returns a cached reference to the main camera and uses Camera.main if it hasn't been cached yet.
/// </summary>
public static Camera... | using UnityEngine;
namespace HoloToolkit.Unity
{
public static class CameraCache
{
private static Camera cachedCamera;
/// <summary>
/// Returns a cached reference to the main camera and uses Camera.main if it hasn't been cached yet.
/// </summary>
public static Camera... | mit | C# |
613360c8a72c2fd7c0e44b8747af620d38216496 | Fix logout | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Controllers/HomeController.cs | Battery-Commander.Web/Controllers/HomeController.cs | using BatteryCommander.Web.Models;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
namespace BatteryCommander.Web.Controllers
{
[Authorize, ApiExplorerSettings(IgnoreApi = true)]
public class HomeController : Co... | using BatteryCommander.Web.Models;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http.Authentication;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
namespace BatteryCommander.Web.Controllers
{
[Authorize, ApiExplorerSettings... | mit | C# |
9f9cb635e259554e39ccdc42c9152be8fdf8bd65 | Add comments and the TTL and highPriority flags for android notifications | mattgwagner/CertiPay.Common | CertiPay.Common.Notifications/Notifications/AndroidNotification.cs | CertiPay.Common.Notifications/Notifications/AndroidNotification.cs | using System;
namespace CertiPay.Common.Notifications
{
/// <summary>
/// Describes a notification sent to an Android device via Google Cloud Messaging
/// </summary>
public class AndroidNotification : Notification
{
public static string QueueName { get; } = "AndroidNotifications";
... | using System;
namespace CertiPay.Common.Notifications
{
public class AndroidNotification : Notification
{
public static string QueueName { get; } = "AndroidNotifications";
// Message => Content
/// <summary>
/// The subject line of the email
/// </summary>
pub... | mit | C# |
2c2ca000d9fc11731c63f97cce13efc4dbf569de | Remove button. | fielddaylab/Gravity-Escape | Assets/scripts/StatsMenuEvents.cs | Assets/scripts/StatsMenuEvents.cs | using UnityEngine;
using System.Collections;
public class StatsMenuEvents : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
public void nextLevel()
{
SceneLoader.self.LoadNextLevel();
}
}
| using UnityEngine;
using System.Collections;
public class StatsMenuEvents : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
public void showLevelSelect()
{
}
public void nextLevel()
{
SceneLoader.self.LoadNextLevel();
}
}
| mit | C# |
8922cbc2cd85f32a1ecc01882a1b6f41081a8410 | fix this InternalsVisibleTo assembly type | autofac/Autofac.Extras.Moq | src/Autofac.Extras.Moq/Properties/AssemblyInfo.cs | src/Autofac.Extras.Moq/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security;
[assembly: AssemblyTitle("Autofac.Extras.Moq")]
[assembly: InternalsVisibleTo("Autofac.Extras.Tests.Moq, PublicKey=002400000480000094000000060200000... | using System;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security;
[assembly: AssemblyTitle("Autofac.Extras.Moq")]
[assembly: InternalsVisibleTo("Autofac.Tests.Extras.Moq, PublicKey=002400000480000094000000060200000... | mit | C# |
8bfd066fce8b500d29ee5597ea708f4ac32395d4 | add get all topics | ouraspnet/cap,dotnetcore/CAP,dotnetcore/CAP,dotnetcore/CAP | src/DotNetCore.CAP/Internal/MethodMatcherCache.cs | src/DotNetCore.CAP/Internal/MethodMatcherCache.cs | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
namespace DotNetCore.CAP.Internal
{
internal class MethodMatcherCache
{
private readonly IConsumerServiceSelector _selector;
private List<string> _allTopics;
public MethodMatcherCac... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using DotNetCore.CAP.Abstractions;
namespace DotNetCore.CAP.Internal
{
internal class MethodMatcherCache
{
private readonly IConsumerServiceSelector _selector;
public MethodMatcherCache(ICo... | mit | C# |
5e91c9ac234dad6b42a918b5f0b57976d4931edc | add test that verifies the sql typecast on a duplicated field is occurring based on the enum storage mechanism chosen | mysticmind/marten,JasperFx/Marten,mdissel/Marten,ericgreenmix/marten,JasperFx/Marten,mysticmind/marten,ericgreenmix/marten,mysticmind/marten,ericgreenmix/marten,mysticmind/marten,mdissel/Marten,ericgreenmix/marten,JasperFx/Marten | src/Marten.Testing/Schema/DuplicatedFieldTests.cs | src/Marten.Testing/Schema/DuplicatedFieldTests.cs | using System.Linq.Expressions;
using System.Reflection;
using Baseline.Reflection;
using Marten.Schema;
using Marten.Testing.Documents;
using NpgsqlTypes;
using Shouldly;
using Xunit;
namespace Marten.Testing.Schema
{
public class DuplicatedFieldTests
{
private DuplicatedField theField = new Duplicate... | using System.Linq.Expressions;
using System.Reflection;
using Baseline.Reflection;
using Marten.Schema;
using Marten.Testing.Documents;
using NpgsqlTypes;
using Shouldly;
using Xunit;
namespace Marten.Testing.Schema
{
public class DuplicatedFieldTests
{
private DuplicatedField theField = new Duplicate... | mit | C# |
e56d7adf237c86b649d3216f58e2812de3b4bee9 | resolve SonarQube S3433 warning to try to fix test fail in CI | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | server/tests/FilterLists.Services.Tests/Extensions/TaskExtensionsTests.cs | server/tests/FilterLists.Services.Tests/Extensions/TaskExtensionsTests.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using FilterLists.Services.Extensions;
using Xunit;
namespace FilterLists.Services.Tests.Extensions
{
public class TaskExtensionsTests
{
private readonly Task sut = Task.Run(() => { Thread.Sleep(TimeSpan.FromSeconds(1)); });
... | using System;
using System.Threading;
using System.Threading.Tasks;
using FilterLists.Services.Extensions;
using Xunit;
namespace FilterLists.Services.Tests.Extensions
{
public class TaskExtensionsTests
{
private readonly Task sut = Task.Run(() => { Thread.Sleep(TimeSpan.FromSeconds(1)); });
... | mit | C# |
36d0d8fd30609dc6d5556cba278adb17f22cd1ff | use auto assembly version | leung85/Asp.Net.Identity.SQLite | AspNet.Identity.SQLite/Properties/AssemblyInfo.cs | AspNet.Identity.SQLite/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: AssemblyTi... | 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: AssemblyTi... | mit | C# |
674027689982fbc0b282aea321ea84c0a8e3d3c2 | Fix TargetReached decision | allmonty/BrokenShield,allmonty/BrokenShield | Assets/Scripts/AI/Enemy/TargetReached_Decision.cs | Assets/Scripts/AI/Enemy/TargetReached_Decision.cs | using UnityEngine;
[CreateAssetMenu (menuName = "AI/Decisions/TargetReached")]
public class TargetReached_Decision : Decision {
public bool overrideDistanceToReach;
public float distanceToReach;
public override bool Decide(StateController controller) {
return isTargetReached(controller);
}
private bool isT... | using UnityEngine;
[CreateAssetMenu (menuName = "AI/Decisions/TargetReached")]
public class TargetReached_Decision : Decision {
public GameObject target;
public bool overrideDistanceToReach;
public float distanceToReach;
public override bool Decide(StateController controller) {
return isTargetReached(control... | apache-2.0 | C# |
676e7cedfc077c8d5ac5a1138333d7519e91fae6 | Update TTSCalloutRequest.cs | sinch/nuget-serversdk | src/Sinch.ServerSdk/Callouts/TTSCalloutRequest.cs | src/Sinch.ServerSdk/Callouts/TTSCalloutRequest.cs | using Sinch.ServerSdk.Models;
public class TTSCalloutRequest : ITTSCalloutRequest
{
public string cli { get; set; }
public IdentityModel destination { get; set; }
public string domain { get; set; }
public string custom { get; set; }
public string locale { get; set; }
public string text { get; s... | using Sinch.ServerSdk.Models;
public class TTSCalloutRequest : ITTSCalloutRequest
{
public string cli { get; set; }
public IdentityModel destination { get; set; }
public string domain { get; set; }
public string custom { get; set; }
public string locale { get; set; }
public string text { get; s... | mit | C# |
53ecdd4c712301e437e0e9cba91238cbaa0535bb | add razor help to highlight viewmodel's property type with color red or blue | hatelove/MyMvcHomework,hatelove/MyMvcHomework,hatelove/MyMvcHomework | MyMoney/MyMoney/Views/Accounting/ShowHistory.cshtml | MyMoney/MyMoney/Views/Accounting/ShowHistory.cshtml | @model IEnumerable<MyMoney.Models.ViewModels.AccountingViewModel>
@using MyMoney.Models.Enums;
@{
Layout = null;
}
<table class="table table-bordered table-hover">
<tr>
<th>#</th>
<th>
@Html.DisplayNameFor(model => model.Type)
</th>
<th>
@Html.DisplayName... | @model IEnumerable<MyMoney.Models.ViewModels.AccountingViewModel>
@{
Layout = null;
}
<table class="table table-bordered table-hover">
<tr>
<th>#</th>
<th>
@Html.DisplayNameFor(model => model.Type)
</th>
<th>
@Html.DisplayNameFor(model => model.Amount)
... | mit | C# |
ce4ef036360c28c27fb82e5a42865726e003f8fc | Update ShortcutLinkOperation.cs | ElectronNET/Electron.NET,ElectronNET/Electron.NET,ElectronNET/Electron.NET,ElectronNET/Electron.NET,ElectronNET/Electron.NET | ElectronNET.API/Entities/ShortcutLinkOperation.cs | ElectronNET.API/Entities/ShortcutLinkOperation.cs | using System.ComponentModel;
namespace ElectronNET.API.Entities
{
/// <summary>
/// Defines the ShortcutLinkOperation enumeration.
/// </summary>
public enum ShortcutLinkOperation
{
/// <summary>
/// Creates a new shortcut, overwriting if necessary.
/// </summary>
[... | using System.ComponentModel;
namespace ElectronNET.API.Entities
{
/// <summary>
/// Defines the ThemeSourceMode enumeration.
/// </summary>
public enum ShortcutLinkOperation
{
/// <summary>
/// Creates a new shortcut, overwriting if necessary.
/// </summary>
[Descri... | mit | C# |
a354d96879f03146e403d8c4c219fd3cbb18d038 | Revert "Revert "Revert "Update Examples/.vs/Aspose.Email.Examples.CSharp/v15/Server/sqlite3/storage.ide-wal""" | aspose-email/Aspose.Email-for-.NET,asposeemail/Aspose_Email_NET | Examples/CSharp/Outlook/OLM/LoadAndReadOLMFile.cs | Examples/CSharp/Outlook/OLM/LoadAndReadOLMFile.cs | using System;
using Aspose.Email.Storage.Olm;
using Aspose.Email.Mapi;
namespace Aspose.Email.Examples.CSharp.Email.Outlook.OLM
{
class LoadAndReadOLMFile
{
public static void Run()
{
// The path to the File directory.
string dataDir = RunExamples.GetDataDir_Outlook();
... | using System;
using Aspose.Email.Storage.Olm;
using Aspose.Email.Mapi;
namespace Aspose.Email.Examples.CSharp.Email.Outlook.OLM
{
class LoadAndReadOLMFile
{
public static void Run()
{
// The path to the File directory.
string dataDir = RunExamples.GetDataDir_Outlook();
... | mit | C# |
45714a9616262c9a7a49cfcdcf9376f06fa5653f | Add nl to end of file | ermshiperete/libpalaso,sillsdev/libpalaso,sillsdev/libpalaso,glasseyes/libpalaso,gtryus/libpalaso,gmartin7/libpalaso,sillsdev/libpalaso,glasseyes/libpalaso,glasseyes/libpalaso,ermshiperete/libpalaso,glasseyes/libpalaso,gtryus/libpalaso,ermshiperete/libpalaso,gtryus/libpalaso,ermshiperete/libpalaso,sillsdev/libpalaso,gt... | ExtractCopyright.Tests/Properties/AssemblyInfo.cs | ExtractCopyright.Tests/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ext... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ext... | mit | C# |
710ca44bb359075c0a9947c641f2fbf038b61fb1 | Implement HostnameCommand | appharbor/appharbor-cli | src/AppHarbor/Commands/HostnameCommand.cs | src/AppHarbor/Commands/HostnameCommand.cs | using System.IO;
namespace AppHarbor.Commands
{
public class HostnameCommand : ICommand
{
private readonly IApplicationConfiguration _applicationConfiguration;
private readonly IAppHarborClient _appharborClient;
private readonly TextWriter _writer;
public HostnameCommand(IApplicationConfiguration applicati... | using System;
using System.IO;
namespace AppHarbor.Commands
{
public class HostnameCommand : ICommand
{
private readonly IApplicationConfiguration _applicationConfiguration;
private readonly IAppHarborClient _appharborClient;
private readonly TextWriter _writer;
public HostnameCommand(IApplicationConfigura... | mit | C# |
11dee22f820dadeb5920d474d6f390183d0be5d7 | Implement `SayHelloStrict` | avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors | csharp/Hello/HelloServer/Program.cs | csharp/Hello/HelloServer/Program.cs | using System;
using System.Threading.Tasks;
using Grpc.Core;
using Hello;
namespace HelloServer
{
class HelloServerImpl : HelloService.HelloServiceBase
{
public override Task<HelloResp> SayHello(HelloReq request, ServerCallContext context)
{
return Task.FromResult(new HelloResp { Result = "Hey " + request.Na... | using System;
using System.Threading.Tasks;
using Grpc.Core;
using Hello;
namespace HelloServer
{
class HelloServerImpl : HelloService.HelloServiceBase
{
// Server side handler of the SayHello RPC
public override Task<HelloResp> SayHello(HelloReq request, ServerCallContext context)
{
return Task.FromResult... | mit | C# |
8db9205d205d4be5962eee3fd494981e98066475 | Use HTTPS for merge conflict (#337) | planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin | src/Firehose.Web/Authors/MergeConflict.cs | src/Firehose.Web/Authors/MergeConflict.cs | using System;
using System.Collections.Generic;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class MergeConflict : IAmACommunityMember, IAmAPodcast
{
public string FirstName => "Merge";
public string LastName => "Conflict";
public string StateOrRegion =>... | using System;
using System.Collections.Generic;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class MergeConflict : IAmACommunityMember, IAmAPodcast
{
public string FirstName => "Merge";
public string LastName => "Conflict";
public string StateOrRegion =>... | mit | C# |
4de31f3710e79d8dbd01503dc9fba79757af2ea0 | Add unit test that checks that a logger retrieved before the log manager is initialised can log correctly | Abc-Arbitrage/ZeroLog | src/ZeroLog.Tests/UninitializedLogManagerTests.cs | src/ZeroLog.Tests/UninitializedLogManagerTests.cs | using System;
using NFluent;
using NUnit.Framework;
using ZeroLog.Configuration;
namespace ZeroLog.Tests
{
[TestFixture, NonParallelizable]
public class UninitializedLogManagerTests
{
private TestAppender _testAppender;
[SetUp]
public void SetUpFixture()
{
_test... | using NUnit.Framework;
namespace ZeroLog.Tests
{
[TestFixture]
public class UninitializedLogManagerTests
{
[TearDown]
public void Teardown()
{
LogManager.Shutdown();
}
[Test]
public void should_log_without_initialize()
{
LogMa... | mit | C# |
3372a2c2f4459bb6907581df2992cb995eac2709 | Use implicit cast instead of constructor overload for pre-set result | nano-byte/common,nano-byte/common | src/Common/Future.cs | src/Common/Future.cs | /*
* Copyright 2006-2015 Bastian Eicher
*
* 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, mer... | /*
* Copyright 2006-2015 Bastian Eicher
*
* 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, mer... | mit | C# |
420b715b6e2e7134a9ede19bc6c89bb1d1b270fe | Change default timeout to 30 seconds | GenericHero/SSH.NET,Bloomcredit/SSH.NET,miniter/SSH.NET,sshnet/SSH.NET | Renci.SshClient/Renci.SshClient/ConnectionInfo.cs | Renci.SshClient/Renci.SshClient/ConnectionInfo.cs | using System;
namespace Renci.SshClient
{
public class ConnectionInfo
{
public string Host { get; set; }
public int Port { get; set; }
public string Username { get; set; }
public string Password { get; set; }
public PrivateKeyFile KeyFile { get; set; }
... | using System;
namespace Renci.SshClient
{
public class ConnectionInfo
{
public string Host { get; set; }
public int Port { get; set; }
public string Username { get; set; }
public string Password { get; set; }
public PrivateKeyFile KeyFile { get; set; }
... | mit | C# |
b0ab3960ace3c9e1429a2e6f6b91cf1a1e0ba083 | Edit Copyright info in AssemblyInfo | simplyio/shortcoder | src/Shortcoder/Properties/AssemblyInfo.cs | src/Shortcoder/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("Sh... | 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("Sh... | mit | C# |
322a7e7bf812e07f91fc1d2bd0dbd1b4bb9758ca | add Profile into context modified: MeetU/MeetU/Models/MuDbContext.cs | Mooophy/meetu,Mooophy/meetu,Mooophy/meetu | MeetU/MeetU/Models/MuDbContext.cs | MeetU/MeetU/Models/MuDbContext.cs | //
// The unique database context used in this project
// @Yue
//
using System;
using System.Data.Entity;
using Microsoft.AspNet.Identity.EntityFramework;
namespace MeetU.Models
{
public class MuDbContext : IdentityDbContext<ApplicationUser>, IDisposable
{
public MuDbContext()
: base("Me... | //
// The unique database context used in this project
// @Yue
//
using System;
using System.Data.Entity;
using Microsoft.AspNet.Identity.EntityFramework;
namespace MeetU.Models
{
public class MuDbContext : IdentityDbContext<ApplicationUser>, IDisposable
{
public MuDbContext()
: base("Me... | mit | C# |
08405d23f42a40fa9a1cf91da39768193ad212d0 | Fix PlainBrush to use premultiplied alpha for single pixel strokes | PintaProject/Pinta,PintaProject/Pinta,PintaProject/Pinta | Pinta.Tools/Brushes/PlainBrush.cs | Pinta.Tools/Brushes/PlainBrush.cs | //
// PlainBrush.cs
//
// Author:
// Aaron Bockover <abockover@novell.com>
//
// Copyright (c) 2010 Novell, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restricti... | //
// PlainBrush.cs
//
// Author:
// Aaron Bockover <abockover@novell.com>
//
// Copyright (c) 2010 Novell, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restricti... | mit | C# |
ee9457ffe82c1f7be39d9f8950a1fd5b930f0698 | Update IEventTelemeter.cs | tiksn/TIKSN-Framework | TIKSN.Core/Analytics/Telemetry/IEventTelemeter.cs | TIKSN.Core/Analytics/Telemetry/IEventTelemeter.cs | using System.Collections.Generic;
using System.Threading.Tasks;
namespace TIKSN.Analytics.Telemetry
{
public interface IEventTelemeter
{
Task TrackEvent(string name);
Task TrackEvent(string name, IDictionary<string, string> properties);
}
}
| using System.Collections.Generic;
using System.Threading.Tasks;
namespace TIKSN.Analytics.Telemetry
{
public interface IEventTelemeter
{
Task TrackEvent(string name);
Task TrackEvent(string name, IDictionary<string, string> properties);
}
} | mit | C# |
27953785c524b7e53dcceba6b5e5b47f279d5839 | Update ITraceTelemeter.cs | tiksn/TIKSN-Framework | TIKSN.Core/Analytics/Telemetry/ITraceTelemeter.cs | TIKSN.Core/Analytics/Telemetry/ITraceTelemeter.cs | using System.Threading.Tasks;
namespace TIKSN.Analytics.Telemetry
{
public interface ITraceTelemeter
{
Task TrackTrace(string message);
Task TrackTrace(string message, TelemetrySeverityLevel severityLevel);
}
}
| using System.Threading.Tasks;
namespace TIKSN.Analytics.Telemetry
{
public interface ITraceTelemeter
{
Task TrackTrace(string message);
Task TrackTrace(string message, TelemetrySeverityLevel severityLevel);
}
} | mit | C# |
8232afdcdad3b60aeb77d736f5e99954eac5fbdd | Fix deserialization of ppu | xobed/RohlikAPI,notdev/RohlikAPI,xobed/RohlikAPI,xobed/RohlikAPI,xobed/RohlikAPI | RohlikAPIWeb/Models/ApiProduct.cs | RohlikAPIWeb/Models/ApiProduct.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
namespace RohlikAPIWeb.Models
{
public class ApiProduct
{
public string Name { get; }
public double Price { get; }
public double PPU { get; }
public string Unit { get; }
publi... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
namespace RohlikAPIWeb.Models
{
public class ApiProduct
{
public string Name { get; }
public double Price { get; }
public double PPU { get; }
public string Unit { get; }
publi... | mit | C# |
1be54c3c9812411a82f38047b5c919774cc67880 | set eol-style for AssemblyInfo.cs | forrestv/opende,forrestv/opende,forrestv/opende,forrestv/opende,forrestv/opende | contrib/Ode.NET/Ode/AssemblyInfo.cs | contrib/Ode.NET/Ode/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Ode.NET")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Ode.NET")]
[assembly: AssemblyC... | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Ode.NET")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Ode.NET")]
[assembly:... | lgpl-2.1 | C# |
c77f54aac3f18db63e2b47d8719b44e535d66883 | Make Settings class internal. | Sharparam/Foobar2kLib | Sharparam.Foobar2kLib/Settings.cs | Sharparam.Foobar2kLib/Settings.cs | // <copyright file="Settings.cs" company="Adam Hellberg">
// Copyright © 2013 by Adam Hellberg.
//
// 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, inc... | // <copyright file="Settings.cs" company="Adam Hellberg">
// Copyright © 2013 by Adam Hellberg.
//
// 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, inc... | mit | C# |
9624e83937bcee9913d7edb150dfffac57aeeefe | add CheckEnoughScrollViewListItems() in NGUIPanelHelper.cs | NDark/ndinfrastructure,NDark/ndinfrastructure | Unity/NGUIUtil/NGUIPanelHelper.cs | Unity/NGUIUtil/NGUIPanelHelper.cs | /**
MIT License
Copyright (c) 2017 - 2020 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... | /**
MIT License
Copyright (c) 2017 - 2020 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... | mit | C# |
ab4abee21356f62df5521cb4faa6bf3676cf4eae | fix InterfaceHelper | erebuswolf/LockstepFramework,yanyiyun/LockstepFramework,SnpM/Lockstep-Framework | Core/Game/Player/InterfacingHelper.cs | Core/Game/Player/InterfacingHelper.cs | using UnityEngine;
using System.Collections;
namespace Lockstep
{
public abstract class InterfacingHelper : MonoBehaviour
{
public void Initialize()
{
this.OnInitialize();
}
protected virtual void OnInitialize()
{
}
public void LateInitialize... | using UnityEngine;
using System.Collections;
namespace Lockstep
{
public abstract class InterfacingHelper
{
public void Initialize()
{
this.OnInitialize();
}
protected virtual void OnInitialize()
{
}
public void LateInitialize()
{
... | mit | C# |
0b7300e788d80c59ab1aedc8ba9601ce8c3d98ff | Tidy up. | DanTup/SimpleSlackBot | TestBot/Program.cs | TestBot/Program.cs | using System;
using System.Diagnostics;
using System.Threading.Tasks;
using SimpleSlackBot;
using TestBot.Handlers;
namespace TestBot
{
class Program
{
static void Main(string[] args)
{
/* REPLACE THESE VALUES WITH YOUR OWN */
var useSlackBot = false; // Set to true to use real Slack bot, rather than cons... | using System;
using System.Diagnostics;
using System.Threading.Tasks;
using SimpleSlackBot;
using TestBot.Handlers;
namespace TestBot
{
class Program
{
static void Main(string[] args)
{
var fbUrl = Environment.GetEnvironmentVariable("SLACK_BOT_FB_URL", EnvironmentVariableTarget.User);
var fbToken = Enviro... | mit | C# |
3c253ca5cb379b631e0571d93445005f1cbe40c6 | Bump version to 1.11.0.0 | InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform | Files/Packaging/GlobalAssemblyInfo.cs | Files/Packaging/GlobalAssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Infinnity Solutions")]
[assembly: AssemblyProduct("InfinniPlatform")]
[assembly: AssemblyCopyright("Copyright © Infinnity Solutions 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Infinnity Solutions")]
[assembly: AssemblyProduct("InfinniPlatform")]
[assembly: AssemblyCopyright("Copyright © Infinnity Solutions 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible... | agpl-3.0 | C# |
c25def86465431c1805cbaf24b987ba4c2bced04 | Make the CronFormatException class public | HangfireIO/Cronos | src/Cronos/CronFormatException.cs | src/Cronos/CronFormatException.cs | using System;
namespace Cronos
{
/// <summary>
/// Represents an exception that's thrown, when invalid Cron expression is given.
/// </summary>
public class CronFormatException : FormatException
{
/// <summary>
/// Initializes a new instance of the <see cref="CronFormatException"/>... | using System;
namespace Cronos
{
internal class CronFormatException : FormatException
{
public CronFormatException(CronField field, string message): base($"{field}: {message}")
{
}
public CronFormatException(string message) : base(message)
{
}
}
} | mit | C# |
c0c1b8d62014bb0c23dad2e3b924051af5467303 | Fix catcher hyper-dash afterimage is not always displayed | smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu-new,peppy/osu,UselessToucan/osu | osu.Game.Rulesets.Catch/UI/CatcherTrail.cs | osu.Game.Rulesets.Catch/UI/CatcherTrail.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.Graphics;
using osu.Framework.Graphics.Pooling;
using osu.Framework.Timing;
using osuTK;
namespace osu.Game.Rulesets.Catch.UI
{
/// <summary>
... | // 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.Graphics;
using osu.Framework.Graphics.Pooling;
using osu.Framework.Timing;
using osuTK;
namespace osu.Game.Rulesets.Catch.UI
{
/// <summary>
... | mit | C# |
22c09ec893b184b6a3611eae18a5daa43b85b5a7 | Handle subdirectories during beatmap stable import | peppy/osu,peppy/osu,peppy/osu,ppy/osu,ppy/osu,ppy/osu | osu.Game/Database/LegacyBeatmapImporter.cs | osu.Game/Database/LegacyBeatmapImporter.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 osu.Framework.IO.Stores;
using osu.Framework.Platform;
using osu.Game.Beatmaps;
using osu.Game.IO;
namespace o... | // 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.Platform;
using osu.Game.Beatmaps;
using osu.Game.IO;
namespace osu.Game.Database
{
public class LegacyBeatmapImporter : LegacyModelImporter<Beat... | mit | C# |
8df84e98e1d78ad6aa9554148ba2826540bf1aca | Add comment | 60071jimmy/UartOscilloscope,60071jimmy/UartOscilloscope | QueueDataGraphic/QueueDataGraphic/CSharpFiles/QueueDataGraphic.cs | QueueDataGraphic/QueueDataGraphic/CSharpFiles/QueueDataGraphic.cs | /********************************************************************
* Develop by Jimmy Hu *
* This program is licensed under the Apache License 2.0. *
* QueueDataGraphic.cs *
* 本檔案用於佇列資料繪圖功能 *
********************************************************************
*/
using System... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QueueDataGraphic.CSharpFiles
{ // namespace start, 進入命名空間
class QueueDataGraphic ... | apache-2.0 | C# |
055072b1c086f6590808badd1c97e3daef562421 | Add more test 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/theorems/TheoremSummaries.cs | csharp/ql/test/utils/model-generator/theorems/TheoremSummaries.cs | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace Summaries;
public class Theorems1<T> {
public T Prop {
get { throw null; }
set { throw null; }
}
public Theorems1(T t) { throw null; }
public T Get() { throw null; }
pub... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace Summaries;
public class Theorems1<T> {
public T Prop {
get { throw null; }
set { throw null; }
}
public Theorems1(T t) { throw null; }
public T Get() { throw null; }
pub... | mit | C# |
93f329f251a797b828f53de0bdc2f25492d0d742 | Remove unnecessary calls. | eightyeight/t3d-bones,eightyeight/t3d-bones | main.cs | main.cs | // Display a splash window immediately to improve app responsiveness before
// engine is initialized and main window created
displaySplashWindow("splash.bmp");
//-----------------------------------------------------------------------------
// Load up scripts to initialise subsystems.
exec("sys/main.cs");
// The canva... | // Display a splash window immediately to improve app responsiveness before
// engine is initialized and main window created
displaySplashWindow("splash.bmp");
// Console does something.
setLogMode(2);
// Disable script trace.
trace(false);
//---------------------------------------------------------------------------... | mit | C# |
51bbb6326ad3b8130ff2a857dbdb9f7500cc91fc | Fix test that failed if you're east of EST | rubberduck203/GitNStats,rubberduck203/GitNStats | tests/gitnstats.core.tests/Analysis/DateFilter.cs | tests/gitnstats.core.tests/Analysis/DateFilter.cs | using System;
using GitNStats.Core.Tests;
using LibGit2Sharp;
using Xunit;
using static GitNStats.Core.Analysis;
using static GitNStats.Core.Tests.Fakes;
namespace GitNStats.Tests.Analysis
{
public class DateFilter
{
[Fact]
public void LaterThanFilter_ReturnsTrue()
{
va... | using System;
using GitNStats.Core.Tests;
using LibGit2Sharp;
using Xunit;
using static GitNStats.Core.Analysis;
using static GitNStats.Core.Tests.Fakes;
namespace GitNStats.Tests.Analysis
{
public class DateFilter
{
[Fact]
public void LaterThanFilter_ReturnsTrue()
{
va... | mit | C# |
1a8ebaf77a289df7a37b5da39f9376b5bee5605f | Update tests to use newer name for 'webapi' template | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | test/Templates.Test/WebApiTemplateTest.cs | test/Templates.Test/WebApiTemplateTest.cs | using Xunit;
using Xunit.Abstractions;
namespace Templates.Test
{
public class WebApiTemplateTest : TemplateTestBase
{
public WebApiTemplateTest(ITestOutputHelper output) : base(output)
{
}
[Theory]
[InlineData(null)]
[InlineData("net461")]
public void ... | using Xunit;
using Xunit.Abstractions;
namespace Templates.Test
{
public class WebApiTemplateTest : TemplateTestBase
{
public WebApiTemplateTest(ITestOutputHelper output) : base(output)
{
}
[Theory]
[InlineData(null)]
[InlineData("net461")]
public void ... | apache-2.0 | C# |
bbeafa901f94d7d4dffeff2f140120c38aca0fb8 | Update program source | peterblazejewicz/mongodb-mva-vnext | CSharpEnd/Program.cs | CSharpEnd/Program.cs | using MongoDB.Bson;
using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace MongoSample
{
public class Program
{
public static void Main(string[] args)
{
MongoClient client = new MongoClient("mongodb://127.0.0.1:... | using System;
namespace MongoSample
{
public class Program
{
public static void Main(string[] args)
{
}
}
} | mit | C# |
1929b28c3c61e7caa7cccbd5e4ef45582c142133 | Comment out UseIISPlatformHandler. | bigfont/WebNotWar | AspNet5RC1/Startup.cs | AspNet5RC1/Startup.cs | using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Http;
namespace AspNet5RC1
{
public class Startup
{
public Startup(IHostingEnvironment env) { }
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
// app.UseIISPla... | using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Http;
namespace AspNet5RC1
{
public class Startup
{
public Startup(IHostingEnvironment env) { }
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
app.UseIISPlatfo... | mit | C# |
fcb74c675bff139a1be01470bc01ee91b53ee2c3 | Update credits | matteocontrini/locuspocusbot | LocusPocusBot/Handlers/HelpHandler.cs | LocusPocusBot/Handlers/HelpHandler.cs | using System.Text;
using System.Threading.Tasks;
using Telegram.Bot.Types.Enums;
namespace LocusPocusBot.Handlers
{
public class HelpHandler : HandlerBase
{
private readonly IBotService bot;
public HelpHandler(IBotService botService)
{
this.bot = botService;
}
... | using System.Text;
using System.Threading.Tasks;
using Telegram.Bot.Types.Enums;
namespace LocusPocusBot.Handlers
{
public class HelpHandler : HandlerBase
{
private readonly IBotService bot;
public HelpHandler(IBotService botService)
{
this.bot = botService;
}
... | mit | C# |
57c12033ad063668384e93e2a71d0432cce4ed7d | Comment out methods that aren't implemented from the IPostData interface | gregmartinhtc/CefSharp,windygu/CefSharp,jamespearce2006/CefSharp,AJDev77/CefSharp,yoder/CefSharp,twxstar/CefSharp,joshvera/CefSharp,rlmcneary2/CefSharp,NumbersInternational/CefSharp,windygu/CefSharp,zhangjingpu/CefSharp,haozhouxu/CefSharp,haozhouxu/CefSharp,wangzheng888520/CefSharp,jamespearce2006/CefSharp,illfang/CefS... | CefSharp/IPostData.cs | CefSharp/IPostData.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.
using System;
using System.Collections.Generic;
namespace CefSharp
{
public interface IPostData : IDisposable
{
//bool AddElement... | // 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.
using System;
using System.Collections.Generic;
namespace CefSharp
{
public interface IPostData : IDisposable
{
bool AddElement(I... | bsd-3-clause | C# |
f4b7a400168a0c5875e9cd3ed212246bc34646b6 | increment patch version | sendwithus/sendwithus_csharp | Sendwithus/Properties/AssemblyInfo.cs | Sendwithus/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("Se... | 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("Se... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.