content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:30:22 11/23/2018 // Design Name: // Module Name: WB // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revi...
__label__POS
0.963491
using static System.Console; namespace DotNetDesignPatternDemos.SOLID.LiskovSubstitutionPrinciple { // using a classic example public class Rectangle { //public int Width { get; set; } //public int Height { get; set; } public virtual int Width { get; set; } public virtual int Height { get; set;...
__label__POS
0.605953
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using static System.Console; namespace DotNetDesignPatternDemos.SOLID.SRP { // just stores a couple of journal entries and ways of // working with them public class Journal { private readonly List<string> entries = ...
__label__POS
0.749471
package aqario.fowlplay.common.entity; import aqario.fowlplay.core.FowlPlay; import aqario.fowlplay.core.FowlPlayRegistryKeys; import aqario.fowlplay.core.platform.PlatformHelper; import net.minecraft.network.RegistryByteBuf; import net.minecraft.network.codec.PacketCodec; import net.minecraft.network.codec.PacketCode...
__label__POS
0.897222
<importtest importer="swift" profile="SWIFT-MT940"> <testdata> DQo6MjA6U1RBUlRVTVNFDQo6MjU6MTEyMjMzNDQvNTU2Njc3ODg5OQ0KOjI4QzowMDAwMC8wMDEN Cjo2MEY6QzE4MDYxOUVVUjEsMjMNCjo2MToxODAxMDIwMTAzRFIzMyw0NE4wMzdOT05SRUYNCjo4 NjoxMDY/MDBLQVJURU5aQUhMVU5HPzEwOTI0OD8yMFNWV1orMjAxOC0wMS0wMlQwMy40NS4wMCBL YT8yMX...
__label__POS
0.999976
<importtest importer="csv" profile="full"> <testdata> ImxvY2FsQ291bnRyeSI7ImxvY2FsQmFua0NvZGUiOyJsb2NhbEJyYW5jaElkIjsibG9jYWxBY2Nv dW50TnVtYmVyIjsibG9jYWxTdWZmaXgiOyJsb2NhbEliYW4iOyJsb2NhbE5hbWUiOyJsb2NhbEJp YyI7InJlbW90ZUNvdW50cnkiOyJyZW1vdGVCYW5rTmFtZSI7InJlbW90ZUJhbmtMb2NhdGlvbiI7 InJlbW90ZUJh...
__label__POS
0.999938
// dll/database/migrations/{YOUR_TIMESTAMP}/_create_claim_table.php <?php ... class CreateClaimsTable extends Migration { Schema::create('claims', function (Blueprint $table) { $table->bigIncrements('id'); $table->integer(‘status_id’)->unsigned(); $table->integer(‘provider_id’)->unsigned(); $table->i...
__label__POS
0.829787
// ddl/app/Policies/ClaimPolicy.php <?php namespace App\Policies; use App\User; use App\Claim; use Illuminate\Auth\Access\HandlesAuthorization; class ClaimPolicy { use HandlesAuthorization; /** * Determine whether the user can view any Claim. * * @param \App\User $user * @return mixed */ public fun...
__label__POS
0.976415
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:21:31 11/23/2018 // Design Name: // Module Name: EX // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revi...
__label__POS
0.951514
<?php namespace App\Http\Controllers; use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Http\Request; use App\Http\Requests\UploadFileRequest; use Illuminate\Support\Facades\Storage; class UploadController extends Controller { /** * This is the method that will simply list all the...
__label__POS
0.615242
<?php //namespace & use statements class Order extends Model { //properties and method definitions /** * @param $sequence : The location of the order line in the array */ public function removeOrderLine($sequence) { if (isset($this->orderLines[$sequence])) { $orderLine = $this->orderLines[$sequence]; ...
__label__POS
0.804396
<?php namespace App\Providers; class RouteServiceProvider extends ServiceProvider { /** * This namespace is applied to your controller routes. * * In addition, it is set as the URL generator's root namespace. * * @var string */ protected $namespace = 'App\Http\Controllers'; pro...
__label__POS
0.828721
// ddl/src/Claim/Submission/Application/Providers/ClaimSubmissionProvider.php <?php namespace Claim\Submission\Application\Providers; use Illuminate\Support\ServiceProvider; class ClaimSubmissionProvider extends ServiceProvider { /** * Register any application services. * * @return void */ ...
__label__POS
0.99822
package aqario.fowlplay.common.entity; import aqario.fowlplay.core.FowlPlay; import aqario.fowlplay.core.FowlPlayRegistryKeys; import aqario.fowlplay.core.platform.PlatformHelper; import net.minecraft.network.RegistryByteBuf; import net.minecraft.network.codec.PacketCodec; import net.minecraft.network.codec.PacketCode...
__label__POS
0.927515
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:27:06 11/23/2018 // Design Name: // Module Name: MEM // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Rev...
__label__POS
0.948628
using System; namespace AbstractFactoryPattern { public interface IDog { void Speak(); void Action(); } public interface ITiger { void Speak(); void Action(); } #region Wild Animal collections class WildDog : IDog { public ...
__label__POS
0.610156
package aqario.fowlplay.common.entity; import aqario.fowlplay.core.FowlPlay; import aqario.fowlplay.core.FowlPlayRegistryKeys; import aqario.fowlplay.core.platform.PlatformHelper; import net.minecraft.network.RegistryByteBuf; import net.minecraft.network.codec.PacketCodec; import net.minecraft.network.codec.PacketCode...
__label__POS
0.8953
using System; using static System.Console; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Xml.Serialization; namespace DotNetDesignPatternDemos.Creational.Prototype { public static class ExtensionMethods { public static T DeepCopy<T>(this T self) { using (var str...
__label__POS
0.947143
package aqario.fowlplay.common.entity; import aqario.fowlplay.core.FowlPlay; import aqario.fowlplay.core.FowlPlayRegistryKeys; import aqario.fowlplay.core.platform.PlatformHelper; import net.minecraft.network.RegistryByteBuf; import net.minecraft.network.codec.PacketCodec; import net.minecraft.network.codec.PacketCode...
__label__POS
0.970168
using NUnit.Framework; namespace DotNetDesignPatternDemos.Creational.Prototype { namespace Coding.Exercise { public class Point { public int X, Y; } public class Line { public Point Start, End; public Line DeepCopy() { var newStart = new Point{X = Start.X, Y =...
__label__POS
0.940387
using System; using static System.Console; namespace DotNetDesignPatternDemos.Creational.Prototype { public class Address { public string StreetAddress, City, Country; public Address(string streetAddress, string city, string country) { StreetAddress = streetAddress ?? throw new ArgumentNullExce...
__label__POS
0.873575
using System; using DotNetDesignPatternDemos.Creational.Prototype; using NUnit.Framework.Internal.Commands; using static System.Console; namespace DotNetDesignPatternDemos.Creational.PrototypeFactory { public class Address { public string StreetAddress, City; public int Suite; public Address(string s...
__label__POS
0.926546
using System; namespace ProxyPattern { /// <summary> /// Abstract class Subject /// </summary> public abstract class Subject { public abstract void DoSomeWork(); } /// <summary> /// ConcreteSubject class /// </summary> public class ConcreteSubject : Subject { ...
__label__POS
0.845615
### Examples It's our goal to create a wide variety of example of how Tether can be used. Here's what we have so far, please send a PR with any examples you might create. #### Beginner - [simple](../../examples/simple): A simple example to get you started - [out-of-bounds](../../examples/out-of-bounds): How to hide...
__label__POS
0.941365
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:02:24 11/23/2018 // Design Name: // Module Name: grf // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Rev...
__label__POS
0.79872
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ImpromptuInterface.Dynamic; using static System.Console; namespace DotNetDesignPatternDemos.Creational.Builder { class HtmlElement { public string Name, Text; public List<HtmlElement> ...
__label__POS
0.919062
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 16:56:51 11/23/2018 // Design Name: // Module Name: ID // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revi...
__label__POS
0.608091
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DotNetDesignPatternDemos.Creational.Builder.BuilderParameter { public class MailService { public class Email { public string From, To, Subject, Body; } public class ...
__label__POS
0.98913
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; namespace DotNetDesignPatternDemos.Creational.BuilderFacets { public class Person { public Person() { WriteLine("Creating an instance of Person"); } ...
__label__POS
0.900501
using System.Collections.Generic; using System.Text; using NUnit.Framework; namespace DotNetDesignPatternDemos.Creational.Builder { namespace Coding.Exercise { class Field { public string Type, Name; public override string ToString() { return $"public {Type} {Name}"; } ...
__label__POS
0.963389
using System; using System.Collections.Generic; using System.Threading; namespace DesignPatterns { public class Person { public string Name; public string Position; public DateTime DateOfBirth; public class Builder : PersonBirthDateBuilder<Builder> { internal Builder() {} } ...
__label__POS
0.998258
/** * */ package com.apress.demo; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; /** * @author Siva * */ @Entity @Table(name="USERS") public class Use...
__label__POS
0.611831
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; using Autofac; using ImpromptuInterface; using MoreLinq; using NUnit.Framework; using static System.Console; namespace DotNetDesignPatternDemos.Creat...
__label__POS
0.958699
using System; namespace DotNetDesignPatternDemos.Creational.Factories { public class Point { private double x, y; protected Point(double x, double y) { this.x = x; this.y = y; } public override string ToString() { return $"{nameof(x)}: {x}, {nameof(y)}: {y}"; } ...
__label__POS
0.885774
using System; using System.Collections.Generic; namespace DotNetDesignPatternDemos.Creational.AbstractFactory { public interface IHotDrink { void Consume(); } internal class Tea : IHotDrink { public void Consume() { Console.WriteLine("This tea is nice but I'd prefer it with milk."); }...
__label__POS
0.623209
package aqario.fowlplay.common.entity; import aqario.fowlplay.core.FowlPlay; import aqario.fowlplay.core.FowlPlayRegistryKeys; import aqario.fowlplay.core.platform.PlatformHelper; import net.minecraft.network.RegistryByteBuf; import net.minecraft.network.codec.PacketCodec; import net.minecraft.network.codec.PacketCode...
__label__POS
0.950139
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 16:57:34 11/24/2018 // Design Name: // Module Name: forward_mux // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: /...
__label__POS
0.998473
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; namespace DotNetDesignPatternDemos.Structural.Composite.GeometricShapes { public class GraphicObject { public virtual string Name { get; set; } = "Group"; public...
__label__POS
0.991685
using System.Collections; using System.Collections.Generic; using NUnit.Framework; namespace DotNetDesignPatternDemos.Structural.Composite { namespace Coding.Exercise { public interface IValueContainer : IEnumerable<int> { } public class SingleValue : IValueContainer { public int...
__label__POS
0.999598
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:31:53 11/23/2018 // Design Name: // Module Name: mux // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Rev...
__label__POS
0.675673
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 11:13:10 11/30/2018 // Design Name: // Module Name: Mult_Div // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // /...
__label__POS
0.693174
using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; namespace DotNetDesignPatternDemos.Structural.Composite.NeuralNetworks { // we cannot use a base class public static class ExtensionMethods { public static void ConnectTo(this IEnumerable<Neuron...
__label__POS
0.985153
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 16:57:57 11/23/2018 // Design Name: // Module Name: dm // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revi...
__label__POS
0.983991
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq.Expressions; using System.Security.AccessControl; using MoreLinq; using static System.Console; namespace DotNetDesignPatternDemos.Structural.Adapter.NoCaching { public class Point { public int X, Y; pu...
__label__POS
0.975721
using System; using System.Collections.Generic; using System.Data.SqlTypes; using System.IO; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml; using System.Xml.Serialization; namespace DotNetDesignPatternDemos.Structural.Adapter.PropertySurrogate { public class CountryStats { ...
__label__POS
0.997428
using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using MoreLinq; using NUnit.Framework; using static System.Console; namespace DotNetDesignPatternDemos.Structural.Adapter.Lazy { public class Point { public int X; public int ...
__label__POS
0.978388
package aqario.fowlplay.common.config; import aqario.fowlplay.common.integration.YACLIntegration; import dev.isxander.yacl3.config.v2.api.SerialEntry; public class FowlPlayConfig { public static FowlPlayConfig getInstance() { return YACLIntegration.HANDLED_CONFIG.instance(); } public static void ...
__label__POS
0.992737
/** * Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Eclipse Public License (EPL). * Please see the license.txt included with this distribution for details. * Any modifications to this file must keep this entire header intact. */ package org.python.pydev.debug....
__label__POS
0.631534
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 22:40:05 12/12/2018 // Design Name: // Module Name: DEV1 // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Re...
__label__POS
0.73065
package aqario.fowlplay.common.world.gen; import aqario.fowlplay.common.config.FowlPlayConfig; import aqario.fowlplay.common.entity.FlyingBirdEntity; import aqario.fowlplay.common.entity.SparrowEntity; import aqario.fowlplay.core.FowlPlayEntityType; import net.minecraft.entity.SpawnReason; import net.minecraft.entity....
__label__POS
0.606526
using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using MoreLinq; using NUnit.Framework; using static System.Console; namespace DotNetDesignPatternDemos.Structural.Adapter.WithCaching { public class Point { public int X; publ...
__label__POS
0.970947
using NUnit.Framework; namespace DotNetDesignPatternDemos.Structural.Adapter { namespace Coding.Exercise { public class Square { public int Side; } public interface IRectangle { int Width { get; } int Height { get; } } public static class ExtensionMethods { ...
__label__POS
0.999325
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:13:22 11/23/2018 // Design Name: // Module Name: npc // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Rev...
__label__POS
0.664167
package aqario.fowlplay.common.world.gen; import net.minecraft.block.BlockState; import net.minecraft.entity.EntityType; import net.minecraft.entity.SpawnLocation; import net.minecraft.entity.ai.pathing.NavigationType; import net.minecraft.registry.tag.FluidTags; import net.minecraft.util.math.BlockPos; import net.min...
__label__POS
0.960057
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 11:53:56 11/24/2018 // Design Name: // Module Name: controller // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: //...
__label__POS
0.753453
using NUnit.Framework; using NUnit.Framework.Internal; namespace DotNetDesignPatternDemos.Structural.Bridge { namespace Coding.Exercise { //public abstract class Shape //{ // public string Name { get; set; } //} //public class Triangle : Shape //{ // public Triangle() => Name = "Tri...
__label__POS
0.854068
using System; using System.Runtime.Serialization; using System.Text; using static System.Console; namespace DotNetDesignPatternDemos.Structural.AdapterDecorator { public class MyStringBuilder { StringBuilder sb = new StringBuilder(); //============================================= public static impl...
__label__POS
0.650921
package aqario.fowlplay.common.world.gen; import aqario.fowlplay.common.config.FowlPlayConfig; import aqario.fowlplay.common.entity.PigeonEntity; import aqario.fowlplay.core.FowlPlayEntityType; import net.minecraft.entity.SpawnReason; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.server.world.S...
__label__POS
0.653936
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 22:05:26 12/12/2018 // Design Name: // Module Name: DEV0 // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Re...
__label__POS
0.733526
using NUnit.Framework; using NUnit.Framework.Internal; namespace DotNetDesignPatternDemos.Structural.Decorator { namespace Coding.Exercise { public class Bird { public int Age { get; set; } public string Fly() { return (Age < 10) ? "flying" : "too old"; } } ...
__label__POS
0.970176
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:30:22 11/23/2018 // Design Name: // Module Name: WB // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revi...
__label__POS
0.963491
using System; using System.Collections.Generic; using System.Dynamic; using System.Text; using ImpromptuInterface; using static System.Console; namespace DotNetDesignPatternDemos.Structural.Proxy { public interface IBankAccount { void Deposit(int amount); bool Withdraw(int amount); string ToString(); ...
__label__POS
0.810849
using NUnit.Framework; namespace DotNetDesignPatternDemos.Structural.Proxy { namespace Coding.Exercise { public class Person { public int Age { get; set; } public string Drink() { return "drinking"; } public string Drive() { return "driving"; } ...
__label__POS
0.983493
using System; using System.Collections.Generic; namespace DotNetDesignPatternDemos.Structural.Proxy.PropertyProxy { public class Property<T> where T : new() { private T value; private readonly string name; public T Value { get => value; set { if (Equals(this.value, value...
__label__POS
0.919168
using System.Activities.Statements; using System.Collections.Generic; using System.Text; using static System.Console; namespace DotNetDesignPatternDemos.Structural.Flyweight.TextFormatting { public class FormattedText { private readonly string plainText; public FormattedText(string plainText) { ...
__label__POS
0.965901
using System.Collections.Generic; using System.Linq; using JetBrains.dotMemoryUnit; using NUnit.Framework; namespace DotNetDesignPatternDemos.Structural.Flyweight.Users { using System; using static System.Console; public class User { public string FullName { get; } public User(string fullName) {...
__label__POS
0.937247
using System.Collections.Generic; using NUnit.Framework; namespace DotNetDesignPatternDemos.Structural.Flyweight { namespace Coding.Exercise { public class Sentence { private string[] words; private Dictionary<int, WordToken> tokens = new Dictionary<int, WordToken>(); public Sentence(st...
__label__POS
0.965556
using System; using System.Collections.Generic; using NUnit.Framework; namespace DotNetDesignPatternDemos.Behavioral.ChainOfResponsibility { namespace Coding.Exercise { public abstract class Creature { protected Game game; protected readonly int baseAttack; protected readonly int baseDef...
__label__POS
0.926389
using System; using System.Security.Cryptography; using static System.Console; namespace DotNetDesignPatternDemos.Behavioral.ChainOfResponsibility.MethodChain { public class Creature { public string Name; public int Attack, Defense; public Creature(string name, int attack, int defense) { Na...
__label__POS
0.981173
using System; using System.Collections.Generic; using DotNetDesignPatternDemos.Behavioral.ChainOfResponsibility.MethodChain; using static System.Console; namespace DotNetDesignPatternDemos.Behavioral.ChainOfResponsibility.ModifierChain.BrokerChain { // command query separation is being used here public class Que...
__label__POS
0.778488
using System; using System.Numerics; using NUnit.Framework; namespace DotNetDesignPatternDemos.Behavioral.Strategy { namespace Coding.Exercise { public interface IDiscriminantStrategy { double CalculateDiscriminant(double a, double b, double c); } public class OrdinaryDiscriminantStrategy :...
__label__POS
0.758578
package aqario.fowlplay.common.entity.ai.pathing; import aqario.fowlplay.common.entity.FlyingBirdEntity; import aqario.fowlplay.common.util.Birds; import net.minecraft.entity.ai.pathing.Path; import net.minecraft.entity.mob.MobEntity; import net.minecraft.world.World; import net.tslat.smartbrainlib.api.core.navigation...
__label__POS
0.8812
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:21:31 11/23/2018 // Design Name: // Module Name: EX // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revi...
__label__POS
0.951514
using System; using System.Collections.Generic; using System.Numerics; using System.Text; using static System.Console; namespace DesignPatterns.Behavioral.Strategy.Static { public enum OutputFormat { Markdown, Html } public interface IListStrategy { void Start(StringBuilder sb); void End(Str...
__label__POS
0.818452
using System.Collections.Generic; using System.Linq; using NUnit.Framework; namespace DotNetDesignPatternDemos.Behavioral.Iterator { namespace Coding.Exercise { public class Node<T> { public T Value; public Node<T> Left, Right; public Node<T> Parent; public Node(T value) { ...
__label__POS
0.868852
package aqario.fowlplay.common.entity.ai.pathing; import aqario.fowlplay.common.entity.FlyingBirdEntity; import aqario.fowlplay.common.util.Birds; import com.google.common.collect.ImmutableSet; import net.minecraft.entity.Entity; import net.minecraft.entity.ai.pathing.BirdPathNodeMaker; import net.minecraft.entity.ai....
__label__POS
0.666144
using System; using System.Collections.Generic; using System.Linq; using static System.Console; namespace DotNetDesignPatternDemos.Structural.Iterator.TreeTraversal { public class Node<T> { public T Value; public Node<T> Left, Right; public Node<T> Parent; public Node(T value) { Value =...
__label__POS
0.95816
using System; using System.Activities.Statements; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; namespace DotNetDesignPatternDemos.Behavioral.MediatorWithEvents { abstract class GameEventArgs : EventArgs { public abstract voi...
__label__POS
0.718467
package aqario.fowlplay.common.entity.ai.pathing; import aqario.fowlplay.common.entity.FlyingBirdEntity; import aqario.fowlplay.common.util.Birds; import net.minecraft.entity.ai.pathing.Path; import net.minecraft.entity.mob.MobEntity; import net.minecraft.world.World; import net.tslat.smartbrainlib.api.core.navigation...
__label__POS
0.878305
using System.Collections.Generic; using System.Linq; using static System.Console; namespace DotNetDesignPatternDemos.Behavioral.Mediator.ChatRoom { public class Person { public string Name; public ChatRoom Room; private List<string> chatLog = new List<string>(); public Person(string name) => Name...
__label__POS
0.987292
using System; using NUnit.Framework; namespace DotNetDesignPatternDemos.Behavioral.Mediator { namespace Coding.Exercise { public class Participant { private readonly Mediator mediator; public int Value { get; set; } public Participant(Mediator mediator) { this.mediator = m...
__label__POS
0.986773
using System; using System.Collections.Generic; using System.Text.RegularExpressions; using NUnit.Framework; namespace DotNetDesignPatternDemos.Behavioral.Interpreter { namespace Coding.Exercise { public class ExpressionProcessor { public Dictionary<char, int> Variables = new Dictionary<char, int>()...
__label__POS
0.957278
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:27:06 11/23/2018 // Design Name: // Module Name: MEM // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Rev...
__label__POS
0.948628
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:02:24 11/23/2018 // Design Name: // Module Name: grf // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Rev...
__label__POS
0.79872
using System; using NUnit.Framework; namespace DotNetDesignPatternDemos.Behavioral.NullObject { namespace Coding.Exercise { public interface ILog { // maximum # of elements in the log int RecordLimit { get; } // number of elements already in the log int RecordCount { get; se...
__label__POS
0.927442
using System.Collections.Generic; using static System.Console; namespace DotNetDesignPatternDemos.Behavioral.Memento.UndoRedo { public class Memento { public int Balance { get; } public Memento(int balance) { Balance = balance; } } public class BankAccount // supports undo/redo { ...
__label__POS
0.965705
using System; using System.Text; using NUnit.Framework; namespace DotNetDesignPatternDemos.Behavioral.Memento { namespace Coding.Exercise { public class MyString { private StringBuilder sb = new StringBuilder(); public MyString(string s) { sb.Append(s); } public...
__label__POS
0.996413
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Linq.Expressions; using System.Runtime.CompilerServices; using DotNetDesignPatternDemos.Annotations; using MoreLinq; namespace DotNetDesignPatternDemos.Behavioral.Observer.Properties { class PropertyNotifica...
__label__POS
0.696228
using System; using System.Activities.Statements; using System.Threading; using System.Windows; using static System.Console; namespace DotNetDesignPatternDemos.Behavioral.Observer.WeakEventPattern { // an event subscription can lead to a memory // leak if you hold on to it past the object's // lifetime // we...
__label__POS
0.743136
using System; using System.Collections.Generic; using System.Reactive.Linq; using static System.Console; namespace DotNetDesignPatternDemos.Behavioral.Observer.Interfaces { public class Event { } public class FallsIllEvent : Event { public string Address; } public class Person : IObservable<Event...
__label__POS
0.908185
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 16:56:51 11/23/2018 // Design Name: // Module Name: ID // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revi...
__label__POS
0.60996
using System; using System.Collections.Generic; using System.Runtime.Remoting.Channels; using NUnit.Framework; namespace DotNetDesignPatternDemos.Behavioral.Observer { namespace Coding.Exercise { public class Game { public event EventHandler RatEnters, RatDies; public event EventHandler<Rat> N...
__label__POS
0.923623
/*************************************************************************** begin : Wed Nov 28 2018 copyright : (C) 2018 by Martin Preuss email : martin@libchipcard.de *************************************************************************** * This file is part of the project "AqBanking". ...
__label__POS
0.992493
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 16:57:34 11/24/2018 // Design Name: // Module Name: forward_mux // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: /...
__label__POS
0.998473
/* * This file is generated by jOOQ. */ package com.apress.demo.jooq.domain; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import javax.annotation.Generated; import org.jooq.Schema; import org.jooq.impl.CatalogImpl; /** * This class is generated by jOOQ. */ @Generated( value =...
__label__POS
0.924542
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:31:53 11/23/2018 // Design Name: // Module Name: mux // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Rev...
__label__POS
0.675673
/* * This file is generated by jOOQ. */ package com.apress.demo.jooq.domain; import javax.annotation.Generated; import org.jooq.Sequence; import org.jooq.impl.SequenceImpl; /** * Convenience access to all sequences in PUBLIC */ @Generated( value = { "http://www.jooq.org", "jOOQ version:3.9.1...
__label__POS
0.811725
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 11:13:10 11/30/2018 // Design Name: // Module Name: Mult_Div // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // /...
__label__POS
0.693174
using System; using NUnit.Framework; namespace DotNetDesignPatternDemos.Behavioral.Command { namespace Coding.Exercise { public class Command { public enum Action { Deposit, Withdraw } public Action TheAction; public int Amount; public bool Success; ...
__label__POS
0.870336
using static System.Console; namespace DotNetDesignPatternDemos.Behavioral.TemplateMethod { public abstract class Game { public void Run() { Start(); while (!HaveWinner) TakeTurn(); WriteLine($"Player {WinningPlayer} wins."); } protected abstract void Start(); protec...
__label__POS
0.788283