text stringlengths 13 6.01M |
|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
namespace CarInsuranceCFEF.DAL
{
public class DriverContext : DbContext
{
public DriverContext() : base ("DriverContext")
{
... |
namespace WinAppDriver
{
using System.Collections.Generic;
internal interface IHandler
{
object Handle(Dictionary<string, string> urlParams, string json, ref ISession session);
}
} |
using Anywhere2Go.Business;
using Anywhere2Go.Business.Master;
using Anywhere2Go.DataAccess;
using Anywhere2Go.DataAccess.Entity;
using Anywhere2Go.DataAccess.Object;
using Anywhere2Go.Intergration.APIResponse;
using Anywhere2Go.Library;
using Anywhere2Go.Library.Datatables;
using Claimdi.Web.TH.Filters;
using Claimdi... |
using Autofac;
using EmberKernel;
using EmberKernel.Services.UI.Mvvm.ViewComponent.Window;
using EmberWpfCore.ViewModel;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
namespace EmberWpfCore.View
{
/// <summary>
/// Interaction logic for Main.xaml
/// </summary>
par... |
using Confluent.Kafka;
using Confluent.Kafka.Serialization;
using System.Collections.Generic;
using System.Text;
namespace AppStore.Streaming.Producer
{
public class PaymentProducer : IPaymentProducer
{
private const string ProcessPaymentTopic = "appstore-process-payment";
private static Dict... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using static TextSequence;
public enum ResponseStatus
{
Ignored,
Incorrect,
Correct
}
[System.Serializable]
public class ContactInfo
{
public string Name;
public Color BGColor;
pu... |
using System;
namespace Slayer.Models
{
public static class RandNumGen
{
private static readonly Random random = new Random();
private static readonly object syncLock = new object();
public static int GetRandNum(int min, int max)
{
lock (syncLock)
{
... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Shipwreck.TypeScriptModels.Decompiler.Transformations.Statements
{
[TestClass]
public class ReturnStatementTest
{
public class TestClass
{
public int SourceMethod()
=> 1;
}
[TestMetho... |
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Inventory.Data.Migrations
{
public partial class MenuFolderParentGuid : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Men... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HomeWork4
{
class Program
{
static void Main(string[] args)
{
int operand1 = 2;
int operand2 = 3;
string sign = "";
Cons... |
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using VoxelSpace.Assets;
namespace VoxelSpace {
/// <summary>
/// Global references to all your favorite managers!
/// </summary>
public static class G {
public static VoxelSpace... |
using UnityEngine;
public class StopWatch : MonoBehaviour{
public float start, status, end;
void Awake() { start = Time.time; status = end = 0; }
void Update() { if(end <= 0) status = Time.time - start; }
public void Stop() { end = Time.time; status = end-start; }
}
|
using UnityEngine;
using Zenject;
using UI;
namespace MapGeneration
{
public class DataValidation : MonoBehaviour
{
private SignalBus signalBus;
private GameDataContainer gameDataContainer;
[Inject]
private void Initialize(SignalBus _signalBus, GameDataContainer _gameDataConta... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class Item : MonoBehaviour
{
private byte val;
public byte Val
{
get { return val; }
set { val = value; }
}
public abstract void OnTriggerEnter(Collider collider);
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Euler_Logic.Problems {
public class Problem63 : ProblemBase {
private bool _endOfCounting = false;
public override string ProblemName {
get { return "63: Power... |
using Entity;
using System;
using System.Configuration;
using System.Diagnostics;
using System.ServiceProcess;
using System.Threading;
using System.Timers;
namespace ServerMonitor
{
/// <summary>
/// Class for monitoring server health status.
/// </summary>
public partial class ServerMonitor : Servic... |
using System.Collections;
using System.ComponentModel;
using System.Configuration.Install;
using System.ServiceProcess;
namespace ServerMonitor
{
[RunInstaller(true)]
public partial class ProjectInstaller : Installer
{
#region Private Fields
private readonly ServiceInstaller mServiceInstaller = new ... |
using UnityEngine;
using MainCharacter;
using UnityEngine.UI;
using System.Collections.Generic;
public class UIDriver : MonoBehaviour
{
public OnArcusColorBar barCenter;
public OnArcusColorBar barLeft;
public OnArcusColorBar barRight;
private ShipColor currentColor; // 1 = red; 2 = blue; 3 = yellow;
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace BethanysPieShopHRM.App.Services
{
public class TokenProvider
{
public string XsrfToken { get; set; }
public string AccessToken { get; set; }
public string RefreshToken { get; set; }
public DateTimeOffs... |
using UnityEngine;
using System.Collections;
public class CameraSegue : MonoBehaviour {
Transform tr;
public RotacionaCamera rotacionaCamera;
public Transform alvo;
public Vector3 distancia;
Vector3 distanciaRelativa;
public float vel;
Vector3 novaPos;
void Awake()
{
tr = transform;
DeterminaNovaPosicao... |
//File Prologue
//Brian Herbst
//CS1400X01
//Project11
//I declare that all the code was written by me or given to me by the professor
using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.T... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Text.RegularExpressions;
using NHazm;
using edu.stanford.nlp.ling;
namespace sentiment_analysis
{
class Program
{
static List<string> tokenize... |
namespace dboEF6.EF
{
using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
public partial class AutoEntities : DbContext
{
public AutoEntities()
: base("name=AutoConnection")
{
}
public virtua... |
using System.Collections.Generic;
using System.Linq;
using Profiling2.Domain;
namespace Profiling2.Web.Mvc.Areas.Profiling.Controllers.ViewModels
{
public class PersonDataTableLuceneView
{
public string Id { get; set; }
public IEnumerable<string> Name { get; set; } // this assumes that the fi... |
using Nac.Common.Control;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace Nac.Common.Control {
[DataContract, Serializable]
public class NacBlock : NacObject {
[DataM... |
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Xna.Framework.Input.Touch;
using MyTfsMobile.App.ViewModel;
namespace MyTfsMobile.App
{
public par... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace RSAEncrypt
{
public partial class ImportRSAKeyC... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RightControllerScript : MonoBehaviour
{
public GameObject grabbedObject;
FixedJoint activeJoint;
public bool isGrabbing;
// Start is called before the first frame update
void Start()
{
}
// ... |
using UnityEngine;
[CreateAssetMenu(fileName = "Integer", menuName = "Variable/Integer", order = 1)]
public class IntVariable : VariableBase<int> {
public static implicit operator int(IntVariable i) => i.value;
} |
using Rg.Plugins.Popup.Services;
using RRExpress.AppCommon;
using RRExpress.AppCommon.Attributes;
using RRExpress.Service.Entity;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace RRExpress.ViewModels {
[Regist(InstanceMode.Singleton)]
public class ChoiceProvinceViewModel : BaseVM {
... |
namespace Model
{
/// <summary>
/// Типы изменения допустимых значений параметров
/// </summary>
public enum AvailableValuesChangeType
{
/// <summary>
/// Изменение диаметра диска
/// </summary>
DiskDiameterChanged,
/// <summary>
/// Изменение количе... |
using Epam.Shops.DAL.Interfaces;
using Epam.Shops.Entities;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
namespace Epam.Shops.DAL
{
public class UserDAO : IUserDAO
{
public bool Add(User newUser)
{
int result;
using (v... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
using DBDiff.Schema.Events;
using DBDiff.Schema.MySQL.Options;
using DBDiff.Schema.MySQL.Compare;
using DBDiff.Schema.MySQL.Model;
using DBDiff.Schema.MySQL.Generates;
namespace DBDiff.Schema.MySQL
{
public class Gen... |
using System;
using System.Collections.Generic;
using System.IO;
using Xamarin.Android.Tools;
namespace Xamarin.Android.Tasks.LLVMIR
{
class Arm32LlvmIrGenerator : LlvmIrGenerator
{
// See https://llvm.org/docs/LangRef.html#data-layout
//
// Value as used by Android NDK's clang++
//
protected override s... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace com.Sconit.Web.Models.SearchModels.TMS
{
public class TransportPriceListDetSearchModel : SearchModelBase
{
public string ShipFrom { get; set; }
public string ShipTo { get; set;... |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
namespace ShuJuJieGouStudy
{
/// <summary>
/// front==tail 时,为队列空
/// (tail+1)/8==front 时队列满
/// </summary>
/// <typeparam name="E"></typeparam>
class LoopQuene<E> : IQuene<E>
{
private E[] dat... |
using System;
using UnityEngine;
public class PlayerMovementManager : MonoBehaviour
{
private const float WALK_SPEED = 2.0f;
public event Action OnWalkStart;
public event Action<Vector3> OnWalk;
public event Action<Vector3> OnWalkEnd;
public event Action OnWalkCancel;
private Player player;... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Tilemaps;
public class DestructibleTiles : MonoBehaviour
{
private Tilemap tm;
void Start() {
LinkComponents();
}
void LinkComponents() {
tm = GetComponent<Tilemap>();
}
public v... |
using gView.Framework.Symbology;
using gView.GraphicsEngine;
namespace gView.Framework.Carto.Rendering.UI
{
internal class Helper
{
static public void AlterSymbolColor(ISymbol symbol, ArgbColor from, ArgbColor to, double fac)
{
ArgbColor col = AlterColor(from, to, fac);
... |
using System.Collections.Generic;
using System.Linq;
using NHibernate.Envers.Configuration.Attributes;
using SharpArch.Domain.DomainModel;
namespace Profiling2.Domain.Prf.Persons
{
public class Ethnicity : Entity
{
[Audited]
public virtual string EthnicityName { get; set; }
[Audited]
... |
using Microsoft.Extensions.Configuration;
using Microsoft.IdentityModel.Tokens;
using System;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Text;
namespace DamianTourBackend.Api.Helpers
{
public static class TokenHelper
{
public static string GetToken(string email,... |
using UnityEngine;
using System.Collections;
public class PathPing : MonoBehaviour {
CharacterController controller;
NavMeshPath path;
bool pathSet = false;
int currentPathIndex = 1;
float distanceToNextCorner = 100;
GameObject playerObject;
void Start(){
controller = GetComponent<CharacterController>()... |
using UnityEngine;
using System.Collections;
/// <summary>
/// Switch levels with a loading screen.
/// </summary>
[AddComponentMenu("ChicoPlugins/Loading/Level Loader")]
public class LevelLoader : MonoBehaviour {
/// <summary>
/// Global hook for level loading with transition scene.
/// </summary>
//... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Clase3.Ejercicio2.Lista
{
/// <summary>
/// Dado dos vectores:
///
/// Realice las siguientes operaciones:
/// a.Armar dos listas, una con los valores del vector “colors” ... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Lerp : MonoBehaviour
{
// lerp variables
private Transform Obj;
private bool isLerping = false;
private Vector3 startLerpPos;
private Vector3 targetLerpPos;
private float lerpTime;
pri... |
using AntData.ORM.Data;
using System;
using System.Diagnostics;
using System.Linq;
using Infrastructure.Web;
namespace DbModel
{
public class DbContext
{
public static SqlServerlDbContext<AntEntity> DB
{
get
{
var db = new SqlServerlDbContext<AntEntity>(... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MiNETDevTools.Graphics.Internal;
using SharpDX.Direct2D1;
namespace MiNETDevTools.Graphics
{
public interface IGraphicControl : IGraphicComponent, IWin32Window
... |
using UnityEngine;
using System.Collections;
using DG.Tweening;
public class GuidanceHand : MonoBehaviour
{
public GameObject _halo;
private Sequence mySequence;
// Use this for initialization
void OnEnable()
{
RectTransform rect = transform.GetComponent<RectTransform>();
rect.localPosi... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraBars;
using DevExpress.XtraPrinting;
using System.Data.OleDb;
using System.Collectio... |
#region MIT License
/*
* Copyright (c) 2009 University of Jyväskylä, Department of Mathematical
* Information Technology.
*
* 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 rest... |
using System;
namespace DEV_7
{
public class ExistanceTriangle
{
private double epsilon = Math.Pow(10, -6);
public bool IfExistance(Sides sides)
{
if (CheckSide(sides) && CheckCondition(sides))
{
return true;
}
else
... |
using System;
using System.Net;
using Microsoft.Extensions.Options;
using MeeToo.Services.MessageSending.Email;
using MeeToo.Services.MessageSending.Email.Options;
using RazorEngine.Templating;
using SimpleInjector;
using SimpleInjector.Packaging;
namespace MeeToo.Services.MessageSending.IoC
{
public class Registr... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// ReSharper disable InconsistentNaming
namespace PET880asm
{
enum OpCode
{
NOP = 0x00, // NOP
ADD = 0x01, // IXY
SUB = 0x02,
CMP = 0x0... |
using Predictr.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Predictr.ViewModels
{
public class VM_League
{
public List<PlayerScore> PlayerScores { get; set; }
}
}
|
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using RimLiqourProject.Models;
using NewRimLiqourProject.Models;
using BnB.BusinessLogic;
using System.Globalization;
namespace NewRimLiqourProject.... |
using System;
using UnityEngine;
using UnityEngine.UI;
using GFW;
namespace CodeX
{
public class UILaunchView : UIWidget
{
LaunchModule mod;
private void Awake()
{
}
protected override void OnOpen(object arg = null)
{
mod = arg as Launc... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class StartSceneUI : MonoBehaviour
{
public Transform DSYHTEXT;
public GameObject ETC;
void Start()
{
StartCoroutine(setUI());
}
IEnumerator setUI()
{
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class RainbowImage : MonoBehaviour
{
private Image image;
private Color[] colors = new Color[] {
Color.red,
Color.yellow,
Color.green,
Color.cyan,
Color.magenta
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Menu : MonoBehaviour {
public void onePlayer(){
SceneManager.LoadScene("AI");
}
public void twoPlayers()
{
SceneManager.LoadScene("Game");
}
}
|
using System.Collections.Generic;
using System.Web.Http;
using WorlLog.Models;
using WorlLog.Repositories;
namespace WorlLog.Controllers
{
public class TimeClockController : ApiController
{
private ITimeClockRepository TimeClockRepository { get; set; }
public TimeClockController()
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace TravelerZeppelinMVC.Types
{
public class StaticPriceProblem
{
public Node Node { get; set; }
public int PeopleCount { get; set; }
public double Profit { get; set; }
}
} |
namespace CollaborativeFiltering
{
public interface ISubject
{
long Id { get; }
}
}
|
namespace MvvmLight22
{
#region Using Declarations
using System.Windows;
using GalaSoft.MvvmLight.Threading;
#endregion
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
static App()
{
DispatcherHe... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Euler_Logic.Problems {
public class Problem147 : ProblemBase {
public override string ProblemName {
get { return "147: Rectangles in cross-hatched grids"; }
}
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace NStandard.Windows.Native.Service
{
internal class NativeMethods
{
[DllImport("advapi32.dll", EntryPoint = "OpenSCManagerW", ExactSpelling ... |
using System;
namespace Kuromori.DataStructure
{
public class Participant : User
{
}
}
|
// <copyright file="FifthTask.cs" company="MyCompany.com">
// Contains the solutions to tasks of the 'Basic Coding in C#' module.
// </copyright>
// <author>Daryn Akhmetov</author>
namespace Basic_coding_in_CSharp
{
using System.Linq;
using static System.Diagnostics.Stopwatch;
/// <summary>
/// Conta... |
using System.Web.Mvc;
namespace RdPodcastingWeb.Controllers
{
public class HomeController : Controller
{
[OutputCache(CacheProfile = "CacheLong")]
public ActionResult Index()
{
return View();
}
public ActionResult Sobre()
{
return View();... |
using Accessor;
using Modules;
using UnityEngine;
namespace Updater {
public class PlayerFollowTargetUpdater : IUpdater {
public override void DoUpdate() {
if (!GameManager.Instance.GameIsRunning) return;
for (int i = 0; i < TAccessor<PlayerFollowTarget>.Instance.Modules.Count; ++i... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace WebApp.Data.Models
{
public class TiresRequestModel
{
[Required(ErrorMessage = "Model field could not be empty")]
public string Model { get; set; }
[Required(ErrorMessage = "Brand fi... |
using gView.Framework.Data;
using gView.Framework.Geometry;
using gView.Framework.system;
using System;
using System.Text;
namespace gView.Interoperability.GeoServices.Rest
{
public class RestHelper
{
public static FieldType FType(string parsedFieldTypeString)
{
switch (parsedField... |
using Common.Log;
using SessionSettings;
using System;
using System.Collections.Generic;
using System.Drawing;
namespace Common.Presentation.Modals
{
public partial class SortingOptions : SkinnableModalBase
{
#region Private Fields
private List<string> mItems = new List<string>();
#endregion
#region Constr... |
using System.Text.RegularExpressions;
namespace Shipwreck.TypeScriptModels.Expressions
{
// 4.13
public sealed class PropertyExpression : Expression
{
public PropertyExpression()
{
}
public PropertyExpression(Expression obj, string property)
{
Object = ... |
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 System.Windows.Media.Imaging;... |
using System;
using System.Web.UI;
namespace irrsa
{
public partial class MsgList : Page
{
protected override void OnLoad(EventArgs e)
{
//NOTE: stub
Response.Redirect("/login?back=%2fmsglist", true);
}
}
} |
namespace FIMMonitoring.Domain
{
public enum CommunicationProtocols
{
Ftp = 0,
MyBringApi = 1,
ManualUpload = 2,
MyBringWebsite = 3,
Pop3 = 4,
Database = 5,
Customer3PL = 6,
Bookings = 7
}
}
|
using OpenCvSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Models.OpenCV.Algorithms
{
public class EllipseDetector : KMean
{
public EllipseDetector(Mat image, int k = 3) : base(image, k)
{
}
... |
using System;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Numerics;
using System.Collections.Generic;
using System.Linq;
namespace Yoonseop_Lee_Sec003_Exercise01
{
public partial class AsynchronousProgramming : Form
{
public AsynchronousProgramming()
{
In... |
using AIMLbot.Utils;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace AIMLbot.UnitTest.TagTests
{
[TestClass]
public class ConditionTagTests
{
private ChatBot _chatBot;
private User _user;
private Request _request;
private Result _result;
[TestInitializ... |
using System.Collections.Generic;
using System.Threading.Tasks;
using Models.DataModels;
namespace Repositories.Interfaces
{
public interface IBidRepo
{
Task<IList<Bid>> GetBids(int auctionId);
Task<bool> CreateBid(Bid dim);
Task<bool> DeleteBid(int bidId);
}
}
|
using System;
using System.Collections.Generic;
public class Professor : Pessoa, IImprimivel
{
private string _email;
public string Email
{
get
{
return this._email;
}
}
public Professor(string nome, string email)
{
this._nome = nome;
this._email = email;
}
public void Impr... |
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using SFA.DAS.CommitmentsV2.Api.Client;
using SFA.DAS.CommitmentsV2.Api.Types.Requests;
using SFA.DAS.CommitmentsV2.Shared.Interfaces;
using SFA.DAS.ProviderCommitments.Web.Extensions;
using SFA.DAS.ProviderCommitments.Web.Models.Cohort;
using SF... |
namespace leetcode
{
public class ListNode
{
public int val;
public ListNode next;
public ListNode(int x) { val = x; }
public ListNode(int[] nums)
{
val = nums[0];
var p = this;
for (int i = 1; i < nums.Length; i++)
p ... |
using System;
using System.Collections.Generic;
using System.Text;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using Plugin.Settings;
using System.Runtime.CompilerServices;
using System.ComponentModel;
namespace CustomXamarinControls
{
public class SettingsEntryCell : ViewCell
{
publ... |
using fNbt;
public class StatisticFloat : StatisticBase<float> {
public StatisticFloat(string displayName, string saveName) : base(displayName, saveName) { }
public override void increase(float amount) {
this.value += amount;
}
public override void readFromNbt(NbtCompound tag) {
thi... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StrongTest.Core
{
public class ValueMutation
{
public int Sum(int a, int b)
{
return a + b;
}
public int AddToConstValue(int... |
namespace PatientService.Model.Memento
{
public interface IMemento
{
}
}
|
using Infrastructure.FlashMessages;
using NUnit.Framework;
using Tests.Utils.TestFixtures;
namespace Tests.Unit.Infrastructure.FlashMessages
{
class FlashMessageTests : BaseTestFixture
{
[Test]
public void CanCreateFlashMessage()
{
var flashMessage = new FlashMessage("Atten... |
// Copyright (c) Christopher Clayton. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace praxicloud.core.metrics.simpleprovider
{
#region using Clauses
using System.Threading.Tasks;
using System.Threading;
#endregion
... |
namespace OptionalTypes.JsonConverters.Tests.TestDtos
{
public class NullableIntDto
{
public Optional<int?> Value { get; set; }
}
} |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerInventoryController : MonoBehaviour {
private Dictionary<GameObject, int> inventory = new Dictionary<GameObject, int> ();
public void AddItem(GameObject item) {
int prevValue = 0;
if (inventory.TryGetValue (item,... |
using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Text;
namespace Dg.KMS.People
{
public class Person : Entity<long>
{
public virtual string Name { get; set; }
public virtual DateTime CreationTime { get; set; }
//public object Roles { get; set; }
... |
using System.Collections.Generic;
namespace GetXRAYTestExcecutionStatusFromJenkins.Entities.TestExcecution
{
#region using
#endregion
class TestExecutionGetRsp
{
public List<TestRun> TestRuns { get; set; }
}
}
|
using System;
using Xunit;
namespace iSukces.Code.Tests
{
public class PrincipalTests
{
[Fact]
public void T01_Should_check_equals_for_nullable_int()
{
int? a = null;
int? b = null;
int? c = 7;
Assert.True(Equals(a, b));
Assert... |
namespace Statistic.Abstract.Events
{
public class FormatCreatedEvent : FormatEvent<FormatCreatedEvent> { }
}
|
using System;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
u... |
#region Header
//
// CmdTriangleCount.cs - Determine model total triangle count using custom exporter
//
// Copyright (C) 2021 by Sentio @techXMKH9 Solutionario and Jeremy Tammik,
// https://knowledge.autodesk.com/profile/LSWJANYYIEWMH and Autodesk Inc.
// All rights reserved.
//
// Keywords: The Building Coder Revit... |
namespace Mobilize.ChalkServices.MobileAppService.Models
{
public class MatchupFootballScore
{
public int Quarter { get; set; }
public string Clock { get; set; }
public int HomeTeamPoints { get; set; }
public int AwayTeamPoints { get; set; }
}
} |
using System.Data;
using System.Collections.Generic;
using System.Data.SQLite;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SimplySqlSchema.Migration;
using SimplySqlSchema.Tests.Common;
using SimplySqlSchema.SQLite;
namespace SimplySqlSch... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AdventureGameTEst.Classes;
namespace AdventureGameTEst.Classes
{
public class Player
{
public int Rounds { get; set; }
public string Name { get; set; }
public List... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.