blob_id large_stringlengths 40 40 | language large_stringclasses 1
value | repo_name large_stringlengths 5 119 | path large_stringlengths 4 271 | score float64 2.52 4.84 | int_score int64 3 5 | text stringlengths 26 4.09M |
|---|---|---|---|---|---|---|
a31ef7c74ef4ad075a4a45dc9edf07a3bc0f82f8 | C# | JuhaszZoltan/CA191205 | /CA191205/Program.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security;
using System.Text;
using System.Threading.Tasks;
namespace CA191205
{
class Program
{
static Random rnd = new Random();
static int[] tomb = new int[100];
static string szo = "INFORMATIKA";
... |
a15b311a6247a2525491c2937863b3b0adfd457c | C# | erolca/ConsoleApplications | /5.10.9. Compare strings using StringComparison enumeration/Program.cs | 3.703125 | 4 | using System;
class MainClass
{
public static void Main()
{
string pswd = "asdf";
string str = "fda";
// Compare using invariant culture.
if (String.Compare(pswd, str,
StringComparison.InvariantCulture) == 0)
Console.WriteLine("Password ... |
bd7fa92ab3401f84dbc76456077ad23e094f9e29 | C# | martindevans/MathHelperRedux | /MathHelperRedux/MathHelper.cs | 3.421875 | 3 | using System;
using System.Diagnostics.Contracts;
namespace MathHelperRedux
{
public static class MathHelper
{
//MIT licensed implementation of the same thing:
// https://github.com/mono/MonoGame/blob/6619f1ab42c427dd43a9ecb74cea01f8c83ecfbe/MonoGame.Framework/MathHelper.cs
//This can... |
e5aa5cda91afa0fa38ec942e2acda8a3c0b76723 | C# | sassembla/A-npanRemote | /Assets/A-npanRemote/libs/Chanquo/ChRunner.cs | 2.5625 | 3 | using System;
using System.Collections;
using UnityEngine;
namespace Chanquo.v2
{
public class ChRunner : MonoBehaviour
{
private object delayLock = new object();
private readonly Hashtable typeChanTable = new Hashtable();
internal void Add<T>(Action pullAct) where T : struct
{... |
1ca9ad99b795434edd5323f50018a3a42f636b10 | C# | BryceAllen613/214 | /finalProject/Translator.cs | 3.296875 | 3 | using System;
//using System.Windows.Forms.TextBox;
namespace Translator
{
public class Translator
{
public static void Main(string[] args)
{
string c = "yes";
while( c == "yes" )
{
Console.WriteLine("Enter phrase to be translated: ");
string phrase = Console.ReadLine();
... |
bf34be66165fa7bf0fc5e21341b797992fafcda9 | C# | brainmandinga/Ip.Sdk | /Ip.Sdk/Ip.Sdk/Logging/IpFileLogger.cs | 2.578125 | 3 | using Ip.Sdk.Commons.Arguments.Interfaces;
using Ip.Sdk.Logging.Interfaces;
using System;
using System.Collections.Generic;
namespace Ip.Sdk.Logging
{
/// <summary>
/// Handles logging to the file system
/// </summary>
internal class IpFileLogger : IpBaseLogger, IIpFileLogger
{
/// <summar... |
ef376c8cc6ee754f612422ecb1c2905e530392a3 | C# | thecallum/Space-Invaders | /Space Invaders/Player.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Space_Invaders
{
class Player : Movable
{
public readonly static int width = 4... |
5dfe07e08dd4b35fd248634d61ae8bc47ae3478b | C# | charliedua/SwinAdventure | /SwinAdventure/Inventory.cs | 3.4375 | 3 | using System.Collections.Generic;
namespace SwinAdventure
{
public class Inventory
{
private List<Item> _items;
public Inventory()
{
_items = new List<Item>();
}
public string ItemList
{
get
{
string result =... |
6d2f8a0d4327e950b082af9c30b579da6f9255ab | C# | FilipFilipov/C-Sharp-Basics | /Exams/Exam - 28 April 2014/3 – Disk/Disk.cs | 3.484375 | 3 | using System;
class Disk
{
static void Main()
{
int n = int.Parse(Console.ReadLine());
int r = int.Parse(Console.ReadLine());
for (int x = -(n / 2); x <= n / 2; x++)
{
for (int y = -(n / 2); y <= n / 2; y++)
{
double distance = Math.Sqrt(... |
9731c39b699783005fc6a21034094ba0fb049baf | C# | Hatfieldx/learning-.net | /Patterns/Factory/Factory/Animals/Animal.cs | 3.578125 | 4 | using System;
namespace Factory
{
abstract class Animal : IAnimal
{
public string Name { get; set; }
public virtual void Move()
{
Console.WriteLine("I Moving");
}
public Animal(string name)
{
this.Name = name;
}
public ... |
c584e14e6f8e4b42e6e0411dfe762ea9498ada58 | C# | Steema/TeeChart-for-.NET-CSharp-WinForms-samples | /Feature Demo/Series/Candle_AxisLabels.cs | 2.578125 | 3 | using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Steema.TeeChart.Samples
{
public class Candle_AxisLabels : Samples.BaseForm
{
private Steema.TeeChart.Styles.Candle candleSeries1;
private System.ComponentModel.IContainer components... |
a48b4ec564cd36f31e775f4f4837d4562293df2d | C# | rezabazargan/xDav | /XDav/Helper/Enums.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace XDav.Helper
{
public enum StatusCode : int
{
Continue =100 , //The client can continue with its request.
Switching ... |
3f25636e67428f1c370b97447cfd487fe12097d8 | C# | Nucleareal/Robots | /Robots/Robot.cs | 2.96875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Robots
{
class Robot
{
public Robot(int x, int y)
{
Axis = new Point(x, y);
}
protected Point Axis
{
private set;
... |
98cd7f341c76d77dbf8553c112be0608b4501d44 | C# | pulak1901/JSONShell | /Shell/Library/Functions/Name/Available.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using Shell.Interpreter;
using Shell.Types;
namespace Shell.Library.Functions.Name
{
public class Available : Shell.Types.BuiltinLambda
{
public Available()
{
argList = new List<Tuple<string, Shell.Types.Specifier>>
... |
6c4f77f89c7ad4d4618d03985ed4b10268e4f3e0 | C# | 374B/IA.Weather | /src/IA.Weather.Domain/Models/ErrorModel.cs | 3.203125 | 3 | using System;
namespace IA.Weather.Domain.Models
{
public class ErrorModel
{
public string ErrorMessage { get; }
public Exception Exception { get; }
/// <summary>
/// Creates a new ErrorModel from an exception
/// </summary>
/// <param name="ex"></param>
... |
a9fd294e25e5afb95adbe221ec672956e7ac55e6 | C# | TwiceNo/C- | /экзамен/LastRoutes.xaml.cs | 2.8125 | 3 | 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;... |
6e202137b12ccfc1d19055b4a947ecea4f81f0b3 | C# | smichelotti/elite-schedule | /LeagueScheduler31/Models/TeamRepository.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Linq.Expressions;
using System.Web;
namespace LeagueScheduler.Models
{
public class TeamRepository : ITeamRepository
{
private SchedulerDbContext context = new SchedulerDbContext();
publi... |
506c00b256a54fea507eb90a8bd4b9bd7dd70e5b | C# | janssener/AdventOfCode | /AdventOfCode/Day3.cs | 3.125 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace AdventOfCode
{
public static class Day3
{
public enum Sides
{
top = 2,
right = 3,
left = 1,
... |
9feb45453e749198ac93bc11577e1bb466c341ae | C# | KasperSK/I4IKN | /ProtocolStack/TransportLayer/SequenceGenerator.cs | 2.828125 | 3 | namespace TransportLayer
{
public class SequenceGenerator : ISequenceGenerator
{
public SequenceGenerator()
{
Sequence = 0;
}
public byte Sequence { get; set; }
public virtual void Reset()
{
Sequence = 0;
}
public void I... |
ad5a2624171cf70dc3080cac9028984be876a58e | C# | lichange/NS | /SOAPlatform/NS.Component/NS.Component.JobManage/Expressions/CronExpressionCollection.cs | 3.140625 | 3 | using System;
using System.Collections.ObjectModel;
namespace NS.Component.JobManage.Expressions
{
/// <summary>
/// CronExpression集合
/// </summary>
[Serializable]
public class CronExpressionCollection : Collection<int>
{
/// <summary>
/// 对集合进行排序
/// </summary>
/// <remarks>
/// http:... |
68dc087ade51dbdd4c1f6cab75e5357385e1282f | C# | Sakchai/CRM.Calendar.Scheduler | /CRM.Model/Core/MsSqlDataProvider.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using LinqToDB;
using LinqToDB.Data;
using LinqToDB.DataProvider;
using LinqToDB.DataProvider.S... |
fb63264d74a862dc1f4dd89e51b90c9c80ad78f2 | C# | NevenaNikolova/TelerikAcademyAlpha2018 | /Module1/OOP/ExtensionMethodsLambdaLinq/StringBuilderSubstring/StrBuilderExtension.cs | 3.15625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace StringBuilderSubstring
{
public static class Extension
{
public static StringBuilder Substring(this StringBuilder input, int startIndex, int len)
{
StringBuilder result = new StringBuilder();
f... |
5e330ffceafb2b15394bf3af365816647477952d | C# | Anowarrony/EmployeeEntry | /EmployeesEntry/Controllers/EmployeeController.cs | 2.53125 | 3 |
using System.Data.Entity;
using System.Linq;
using System.Web.Mvc;
using EmployeesEntry.Models;
using System;
namespace EmployeesEntry.Controllers
{
public class EmployeeController : Controller
{
private EmployeeDbContext db = new EmployeeDbContext();
public ActionResult Index()
{
... |
55a46df6d12181c947d659ef83cbb670c683aedb | C# | guidoblado/declaraciones-patrimoniales | /src/SRDP/SRDP.Persitence/DapperDataAccess/Repositories/NotificacionRepository.cs | 2.53125 | 3 | using Dapper;
using SRDP.Application.Repositories;
using SRDP.Domain.Enumerations;
using SRDP.Domain.Notificaciones;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SRDP.Persitence.DapperDataA... |
c03d06e68528645409b5bd2cdd21afa34014f050 | C# | srmcconomy/speedrunsliveIRC | /WpfApplication1/IRC.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Net;
using System.Net.Sockets;
using IRCModels;
class AsyncSocket : Socket
{
public AsyncSocket(AddressFamily af, SocketType st, ProtocolType pt) : base(af, st, pt) { }... |
65cfc666ad475498edce473be450bd2cb9f57028 | C# | ArtProgrammer/NaiveComponents | /Goal_driven/Goal_Composite.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Chuizi.Goal_driven
{
class Goal_Composite<T> : Goal<T>
{
public Goal_Composite(T owner, Agent_Goal_Types type) : base(owner, type)
{
}
~Goal_Composite... |
9db037f63dbcc0c70d1f072b9f4510f7501d3b39 | C# | icprog/Diaballik | /DiaballikGame/PlayerAction/PlayerActionModel.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Diaballik;
using DiaballikGame.Utils;
namespace DiaballikGame.PlayerAction
{
/// <summary>
/// Modele de la vue ActionPLayer
/// </summary>
class PlayerActionModel
{
//... |
29adc9439327e2337f082bc808424fb839a1ac80 | C# | Bencargs/Stockfighter | /Stockfighter/Model/Account/Reply/StartReply.cs | 2.515625 | 3 | using System.Collections.Generic;
using Newtonsoft.Json;
namespace Stockfighter.Model.Account.Reply
{
public class StartReply : BaseReply
{
[JsonProperty("account")]
public string Account { get; set; }
[JsonProperty("instanceId")]
public int InstanceId { get; set; }
[... |
f8f45aed876df7c83d50e4dc7b3337cc4f02df94 | C# | pilotpirxie/meme-generator-cli | /MemeGenerator/Program.cs | 3.453125 | 3 | using System;
using System.Drawing;
namespace MemeGenerator
{
class Program
{
static int Main(string[] args)
{
string inputImage = "";
string outputImage = "meme.jpg";
string topText = "";
string bottomText = "";
string fontColor = "#... |
5e2b3a21b2d0a6e78fd00c4e0f40b8beda9f924f | C# | yinweiwen/exp4net | /Exp4Net/function/Function.cs | 3.109375 | 3 | using System;
using System.Text.RegularExpressions;
namespace exp4net.function
{
public class Function
{
protected readonly string name;
protected readonly int argsCount;
public Function(string name, int argsCount)
{
if (argsCount < 0)
{
... |
d42695b7bff91fd739538210ebe4b92a4617868d | C# | WSUGlobalCampusITAs/wsu-gc-calendar | /Calendar Converter/Calendar Converter/Model/Day.cs | 2.546875 | 3 | // Copyright 2014 Washington State University
// 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 ... |
e42e7d81e4e7cf1b4bf6827038e3a5c98607945a | C# | delmondesfe/CSharp-POO | /05 - ByteBank/Program.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _05___ByteBank
{
class Program
{
static void Main(string[] args)
{
Cliente felipe = new Cliente();
//felipe.nome = "Felipe Delmondes";
... |
a4ef97f2637c60f129f65abde3b4b21c18242061 | C# | fdeitelhoff/Twainsoft.PagedCollectionView | /src/Twainsoft.PCV.Tests/When_a_new_paged_collection_view_has_a_max_page_size.cs | 2.640625 | 3 | using System.Collections.Generic;
using FluentAssertions;
using Machine.Specifications;
using Twainsoft.PCV.Data;
namespace Twainsoft.PCV.Tests
{
[Subject(typeof(PagedCollectionView), "Paging")]
public class When_a_new_paged_collection_view_has_a_max_page_size
{
static PagedCollectionView result;
... |
06f1da879f1e5b54bf361153b73e53e1408eee75 | C# | ArdyFoolen/Iterator | /Iterators/SquareIterator.cs | 3.265625 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Iterators
{
public class SquareIterator : Iterator
{
private Iterator iterator;
public SquareIterator(Iterator iterator)
{
... |
d0df999cf50260a4c5ad9b58af911a41548983c7 | C# | Maxusbr/GreenwayCrimea | /AdvantShop.Web/Handlers/Catalog/FilterSizeHandler.cs | 2.5625 | 3 | using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AdvantShop.Catalog;
using AdvantShop.Configuration;
using AdvantShop.Models.Catalog;
namespace AdvantShop.Handlers.Catalog
{
public class FilterSizeHandler
{
#region Fields
private readonly int _categoryI... |
5bd4038732db3b9a22e65138f2787e506a6ad00e | C# | VladKharkevich/SPP1-3-Assembly-Browser | /TestAssemblyBrowser/AssemblyBrowserTest.cs | 2.6875 | 3 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AssemblyInformation;
using ExtensionClasses;
using FluentAssertions;
namespace AssemblyBrowser.Tests
{
[TestClass]
public class AssemblyBrowserTest
{
AssemblyResult assemblyResult;
string filename = "ExtensionClasses.d... |
4de383e031edc55b737d787acc432dd8d51df86c | C# | snarb/SimplePokerTest | /SimplePoker/GameProcessor.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MoreLinq;
using SimplePoker.Bots;
namespace SimplePoker
{
public class GameProcessor
{
private const int MaxRoundsCount = 3;
public const int BigBlindSize = 2;
publ... |
af7b648576f868605c535cd0b8418724e1d69f22 | C# | jo215/Iso | /Core/Core/BitmapTools.cs | 2.875 | 3 | using System;
using System.Linq;
using System.Windows.Media;
using System.Drawing;
using System.Windows.Interop;
using System.Windows;
using System.Windows.Media.Imaging;
using Microsoft.Xna.Framework.Graphics;
using System.IO;
using System.Drawing.Imaging;
namespace ZarTools
{
/// <summary>
/// Methods for c... |
dd345792c4274eba9a9b219d83965d2bba0193ad | C# | chokudai/TopCoder | /OldSource/CorrectMultiplication.cs | 2.84375 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
public class CorrectMultiplication {
public long getMinimum(int a, int b, int c)
{
long ret = long.MaxValue;
long MAX = 1000050000;
long border = (long)Math.Sqrt(MAX);
int i, j;
... |
3bbe41433c4de71e0f514244beecc468e2ec9039 | C# | KseniyaMikhailiuk/PAINt | /SquareClassLibrary/Square.cs | 3.6875 | 4 | using System;
using System.Drawing;
using AbstractClassLibrary;
namespace SquareClassLibrary
{
public class Square: Figure
{
public override void Draw(Graphics g, Pen pen, Point StartPoint, Point FinishPoint)
{
int Width = Math.Abs(FinishPoint.X - StartPoint.X);
if ((F... |
6aa063a9e33a1e83740b0ade3414d201f28c2daa | C# | amtn14/sidekick | /sidekick/Services/ToDoServices.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using Sabio.Data;
using sidekick.Models.Request;
using sidekick.Models.Domain;
using System.Data.SqlClient;
namespace sidekick.Services
{
public class ToDoServices : BaseService
{
public static int ... |
36cdae80482323ef89463fbd248e7bcfc7ce703e | C# | RamanBut-Husaim/TermWork-SignalRChat | /BSUIR.TermWork.ImageViewer.Data.EF/Repositories/UserRepository.cs | 2.53125 | 3 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="UserRepository.cs" company="">
//
// </copyright>
// <summary>
// The user repository.
// </summary>
// ----------------------------------------------------------------------... |
71e2c0336c92ca18de71111902f647dd203cb5d3 | C# | 0xF6/Genome | /src/System.Molecular/Core/Molecule.cs | 2.578125 | 3 | using System.Collections.Generic;
using System.Linq;
using System.Molecular.Core.@internal;
namespace System.Molecular.Core
{
[Serializable]
public class Molecule
{
protected int MaxAtoms { get; set; }
protected int MaxBonds { get; set; }
public int Color { get; protected set; }
... |
bce90573d0feb5de2b91c8c8bbbb3f8eb0d67b60 | C# | Requinn/HackAndSlashAndShoot | /Assets/_Script/UI/HealthBar.cs | 2.828125 | 3 | using MEC;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class HealthBar : MonoBehaviour{
public Image healthBar;
public Image lerpedHealthBar; //this healthbar is going to be used to show the effect when taking damage
public float lerpSpeed = ... |
4fc4614247a93d08c92522b19269294009192d35 | C# | FrancisChung/FlatSharp | /samples/Example3-SchemaFiles2/SchemaFilesExample2.cs | 2.765625 | 3 | namespace Samples.SchemaFilesExample2
{
using System;
using System.Collections.Generic;
using FlatSharp;
/// <summary>
/// This sample shows the usage of FlatSharp when declaring types and serializers.
/// </summary>
/// <remarks>
/// Based on the monster sample here:
/// https://g... |
6cac3bad2501c8701c64d0aef6880b826294abbb | C# | G2BAMM/MVCProject | /MVCWebProject2/DAL/ManufacturerDAL.cs | 2.59375 | 3 | /*
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Class Title : ManufacturerDAL.cs '
' Description : Manages the data transport to/from'
' data source '
' Author : Brian McAulay '
' Creation Date : 05 J... |
70f0ef7168226a6df6a248f332d7bd3846607c7d | C# | KatarinaSchnoor/PokemonBattle---Mandatory-Assignment | /Pokemon/Program.cs | 3.4375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pokemon
{
class Program
{
static void Main(string[] args)
{
List<Pokemon> roster = new List<Pokemon>();
//creating the pokemons a... |
bd0d74de5a69735265cf86a280caaaf2937ee5e8 | C# | changweihua/NCoreCoder.Framework | /NfxSample/Jit/MethodFactory.cs | 2.921875 | 3 | using System;
using System.Linq;
using System.Reflection;
namespace NfxSample
{
internal class MethodFactory : IMethodFactory
{
private readonly string[] _ignoreMethods = new[]
{
"ToString",
"Equals",
"GetHashCode",
"MemberwiseClone",
... |
3eb8befad60a232b6a0a6b20473ddf7907c004d3 | C# | gordonbrice/Market-Monitor | /BlockChain/BitcoinBlockchain.cs | 2.578125 | 3 | using NBitcoin;
using NBitcoin.RPC;
using QBitNinja.Client;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace BlockChain
{
public class BitcoinBlockchain : IBlockchain
{
public async Task<decimal> GetBalance(string address)
{
... |
ef54647fbf0a9ff59d8e0d9c9a6919f669508587 | C# | 71/Cometary | /test/Cometary.Expressions.Tests/OtherExpressions.cs | 2.8125 | 3 | using System;
using System.Linq;
using System.Linq.Expressions;
using System.Threading;
using System.Threading.Tasks;
using Shouldly;
using Xunit;
namespace Cometary.Tests
{
using Expressions;
using X = Expressions.Expressive;
public class OtherExpressions
{
#region Using
private clas... |
b54a929b253df06ae34702d5aef8c61eb5c392ae | C# | leedale1981/compsci | /insertion_sort/c#/Program.cs | 3.9375 | 4 | using System;
using System.Collections.Generic;
namespace lee.compsci.algos
{
class Program
{
static void Main(string[] args)
{
int[] unsortedList = new int[] {2,4,1,9,7,8,5};
int[] sortedList = InsertionSort(unsortedList);
}
// If inversion count is O(... |
46a5d6aed7361072fb7aec964e9c5dea73c03ee5 | C# | Jenocn/GameScript | /UsingStandard/StringUsing.cs | 2.609375 | 3 | using System.Collections.Generic;
using gs.compiler;
namespace gs.std.str {
public class StringUsing : VMUsing<StringUsing> {
public override bool OnExecuteUsing() {
bool ret = true;
ret &= RegisterFunction("string.split", (List<VMValue> args) => {
if (args.Count < 2) {
Logger.Error("string.split");... |
88ac344ba82acb458a4b376af9605be3989a528d | C# | vtv33/DMaster-Ball | /Assets/Scripts/HighScoreManagement.cs | 2.53125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class HighScoreManagement : MonoBehaviour
{
public string GameMode;
public Text HighScoreDisplay;
// Start is called before the first frame update
void Start()
{
HighScoreDisplay.text... |
c7c529d582f9d6c66e007c190b2085c260f06c0a | C# | YoungRyuCode/OKTA.Core | /Okta.Core.Tests/FilterBuilderTest.cs | 2.828125 | 3 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Okta.Core;
namespace Okta.Core.Tests
{
[TestClass]
public class FilterBuilderTest
{
[TestMethod]
public void TestEqualToString()
{
var filter = new FilterBuilder();
filter.Where("field")... |
95dc743e9116de4a5ad60cea18009ed5cf1d03cc | C# | CoultonF/COMP3504_CSharpShip | /WhetherU/InstagramClass.cs | 2.53125 | 3 | using System;
using Instagram.Models.Responses;
using System.Threading.Tasks;
namespace Instagram.Client
{
public class InstagramClient : IInstagramClient
{
const string API_SERVICE_URL = "https://api.instagram.com/v1/";
readonly string _AccessToken;
public InstagramClient(string acc... |
5eeeafad938128315681ea7d669859ee03d24c5b | C# | jmptrader/mERP-framework | /Feng.Windows.View/Grid/MySummaryCell.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using Xceed.Grid;
namespace Feng.Grid
{
/// <summary>
///
/// </summary>
public class MySummaryCell : SummaryCell
{
/// <summary>
///
/// </summary>
public MySummaryCell()
: base()
... |
fe65da05e34ad276c90912c13c76092d9b0bb3ec | C# | zhanghao-esrichina/DataAccessForArcGISEngine | /GIS_catalog/LSGISHelper/DataRangeHelper.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LSGISHelper
{
/// <summary>
/// DataRangeHelper 的摘要说明。
/// 用来计算数据集的数据范围
/// </summary>
public class DataRangeHelper
{
public static double GetUnits(double pMinValue, double pMaxValue)
... |
c91e37e0a5c09787b7f708e7e038fa307275c769 | C# | tpodolak/Playground | /WF/WCFIntegration/WCFIntegration.CustomActivities/AddToDictionary.cs | 2.875 | 3 | using System.Activities;
using System.Collections.Generic;
namespace WCFIntegration.CustomActivities
{
public sealed class AddToDictionary<TKey, TValue> : CodeActivity
{
public InArgument<TValue> Value { get; set; }
public InArgument<TKey> Key { get; set; }
public InArgument<Dictionary... |
d042dcbcc42c816c2e39131a396bb3ad69b00959 | C# | swordbreaker/UnityCommandConsole | /Assets/ConsoleCommand/Example/CubeSpawner.cs | 2.828125 | 3 | using CommandConsole;
using CommandConsole.Attributes;
using UnityEngine;
public class CubeSpawner : MonoBehaviour
{
private int i = 3;
[SerializeField] private GameObject _cubePrefab;
private void Start()
{
//Register the class.
Console.Instance.RegisterClass<CubeSpawner>(this);
... |
dcbced42cd1adbfb9ec7b31a00435d43daaef936 | C# | iludart/Algorithms-Data-Structures-SoftUni | /Algorithms/04_DynamicProgramming/P04.CoinsChangeProblem/CoinsChange.cs | 3.5625 | 4 | using System;
using System.Linq;
namespace P04.CoinsChangeProblem
{
class CoinsChange
{
static void Main()
{
var s = ReadSum();
var coins = ReadCoins();
int[,] matrix = FindCoinsChangeSolutions(s, coins);
Console.WriteLine(matrix[co... |
f081e9db3a5abe9e91944f80778e9cc625b6d142 | C# | youpkoopmans/autoverhuur | /applicatie/autoverhuurbedrijf_GO_applicatie/autoverhuurbedrijf/forms/rentals.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
namespace autoverhuurbedrijf
{
public partial class rentals : Form
... |
9d662372259bd1e8884ee80adb81facc7545494b | C# | aslanemirhan/C--Camp | /KampIntro/OOP/ProductManager.cs | 3.515625 | 4 | using System;
using System.Collections.Generic;
using System.Text;
namespace OOP
{
class ProductManager
{
public void Add(Product product)
{
Console.WriteLine( product.ProductName + " added.");
}
public void Delete(Product product)
{
Console.Wri... |
33ca32249e5550cc528cd8c3bd449923e859ef12 | C# | ntwilson/Linqed | /Linqed.CSharp.Tests/SplitHeadAndTailSpec.cs | 2.65625 | 3 | using System;
using System.Linq;
using System.Collections.Generic;
using NUnit.Framework;
using Linqed;
using static Linqed.Prelude;
namespace Linqed.CSharpTests {
[TestFixture]
public class SplitHeadAndTailSpec {
[Test]
public void SplitsTheHeadAndTailOfNonEmptySequences() {
var (head, tail) = Seq(... |
28b62aae722a55f40181622dc8dc9ef0cb7dfdd2 | C# | RainmakerUA/mysrc | /MSVS/RM.BinPatcher/RM.BinPatcher.Cli/Program.cs | 2.78125 | 3 | using System.IO.MemoryMappedFiles;
using RM.BinPatcher.Enumerators;
using RM.BinPatcher.Model;
namespace RM.BinPatcher.Cli
{
internal static class Program
{
private static void Main(string[] args)
{
var filename = @"e:\Downloads\World of Warcraft Chronicle Volume III (2018).cbr";
var pattern = Pattern.Par... |
09689aaa8fa96f314ddf2e5ab0643c656c7e043a | C# | LavaAurora/Lab3 | /2-FabriqueAbstraite/2-FabriqueAbstraite/Class/Factory/FabriqueAbstraite.cs | 2.96875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _2_FabriqueAbstraite
{
abstract class FabriqueAbstraite
{
public static FabriqueAbstraite getFabrique(string type)
{
if (type.ToLower().Equals("g"))
return (new FabriqueG... |
39f602f1bce4fe2e55e23c1eba1ad050a87a2d41 | C# | younusrahman87/C-Sharp | /Uppgift2 KLAR/Villkor_och_loopar/Program.cs | 3.171875 | 3 | using Microsoft.VisualBasic;
using System;
namespace Villkor_och_loopar
{
class Program
{
static int winner = 0, winner_startnummer = 0, antal_spelare = 0;
//------------------------------------------------------------HÄR PRINTER UT TILL KONSOLE-------------------------------------------------... |
d9f0805345845056d626b81b93adb4f3579f0be2 | C# | mhfayez/InterfaceExamples | /InterfaceExample1/Program.cs | 3.203125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SqlServer.Server;
namespace InterfaceExample1
{
class Program
{
static void Main(string[] args)
{
Article article = new Article("Interfaces", "Domini... |
3f64d8563e7012773ef8c04b73be81bf055d62ba | C# | EirikOsnes/EirikMastersApp | /Assets/Scripts/LaserPointerHandler.cs | 2.53125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// Class to handle the visuals of the laser pointer
/// If using laser pointers on each controller, use two LaserPointerHandlers
/// </summary>
public class LaserPointerHandler : MonoBehaviour
{
//Point to the Laserpoint... |
59122458032b97c9659231b0bd097d461a981bd6 | C# | SoloDevNet/NCommand | /SoloDev.NCommand/Helpers/ParameterContainer.cs | 2.75 | 3 | using SoloDev.NCommand.Commands.Definition;
using SoloDev.NCommand.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SoloDev.NCommand.Helpers
{
public abstract class ParameterContainer
{
public abstract List<CommandParameter> ParametersDefiniti... |
7041ee5b2870b115fb08b888e906372a84d1bf31 | C# | raghadnat/MyMvcApplication | /DAL/ClassesDL.cs | 2.796875 | 3 | using DAL.Entity;
using DAL.Entity.Context;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DAL
{
public class ClassesDL
{
Context DbContext = new Context();
public List<Classes> Get()
{
return D... |
1b48efd8b571d1b703492daa5511202488bb2557 | C# | AngelMurchison/HumansPandasAndRobots | /ClassLibrary1/All.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HumansPandasAndRobots
{
public abstract class HumansPandasAndRobots
{
public string DisplayName(string name)
{
string Name = $"{name}";
return N... |
78eec8582942bf27d6c783d04f33251acbefa349 | C# | tislam-mdsol/Copy.Medidata.Classification.RegressionTests | /Coder.TestSteps/StepDefinitions/StudyReportSteps.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Coder.DeclarativeBrowser;
using Coder.DeclarativeBrowser.ExtensionMethods;
using Coder.DeclarativeBrowser.Models;
using FluentAssertions;
using TechTalk.SpecFlow;
using TechTalk.SpecFlow.Assist;
namespace Coder.TestSteps... |
402ec8b51abc9f7c1ee721248c88e259352cdb9f | C# | entertthk/bool_loop_bottle-song | /bool/Program.cs | 3.5 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace kivipaber
{
class Program
{
static void Main(string[] args)
{
string name;
int cpuNumber;
int tries = 0;
bool gameOver = false;
... |
6d5daa0307bcdeb73fc865179e7f4d1cea7e960e | C# | emarkez/MetadataTypeApplication | /MetadataTypeApplication/Program.cs | 2.859375 | 3 | using System;
using Application;
using Model;
namespace MetadataTypeConsoleApplication
{
internal class Program
{
private static void Main(string[] args)
{
var myShop = new Shop();
var myCar = new Car {Color = "Red", Persons = 5, Price = (decimal) 25.3};
... |
93de4dff6dcbe3e0400e8b74c7f21d88a0d2c912 | C# | anttihaavikko/mildred | /Assets/Scripts/WallHolder.cs | 2.625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WallHolder : MonoBehaviour {
public GameObject lefts, rights;
// ==================
private static WallHolder instance = null;
public static WallHolder Instance {
get { return instance; }
}
// ==================
... |
2b80cc31d99399e0196d92b19f94bb251725b8c6 | C# | LucijaVSITE/04-DefiniranjeTipa | /KonstruktorKlase/KonstruktorKlase.cs | 3.265625 | 3 | using System;
using System;
namespace Vsite.CSharp
{
class MojaKlasa
{
public MojaKlasa(int a, string s)
{
this.a = a;
this.s = s;
}
public MojaKlasa()
{
a = 10;
s = "pero";
}
public int a;
public ... |
5c4f3aa88f5725c570dbd45e56b0a95b90f7a423 | C# | Autodesk/synthesis | /api/Patchbay/Commands/StartCommand.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using CommandLine;
namespace SynthesisServer
{
[Verb("start", HelpText = "Start the Synthesis Server")]
class StartCommand
{
#nullable enable
[Option('c', "config", Required = false, HelpText = "Specify a path to an appse... |
ed19220513b3cbb4743ed673d6923d266bd886da | C# | chillehh/Binding-of-Isaac-Tutorial | /Assets/Scripts/DungeonGeneration/Room.cs | 2.5625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Room : MonoBehaviour
{
public int Width;
public int Height;
public int X;
public int Y;
private bool updatedDoors = false;
public Room(int x, int y)
{
X = x;
Y = y;
}
pub... |
a4c0ef498ec9dc9bbe3b6b51d1c4e97399df44b4 | C# | SCK-Justa/Test-kassa | /Logic/Repositories/BankRepository.cs | 2.703125 | 3 | using System.Collections.Generic;
using Logic.Classes;
using Logic.Interfaces;
namespace Logic.Repositories
{
public class BankRepository
{
private IBankServices _bankServices;
public BankRepository(IBankServices bankServices)
{
_bankServices = bankServices;
}
... |
97e3d74127066ddfd6ac6c36729258668c628e23 | C# | callumcodes/functional-structures-refactoring-kata | /csharp/FunctionalRefactoring/Models/CartId.cs | 3.25 | 3 | using System;
namespace FunctionalRefactoring.Models
{
public class CartId
{
public String Value { get; }
public CartId(String value) => Value = value;
Boolean Equals(CartId other) => String.Equals(Value, other.Value);
public override Boolean Equals(Object obj)
{
... |
eb378683bf938aafc5d469d7f579e5e871362f6c | C# | Hamelioniya/Workshops.HW | /Day1.SOLID.HW/Rocket.BL.Common/Models/Subscription/Subscribable.cs | 2.609375 | 3 | using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace Rocket.BL.Common.Models.Subscription
{
/// <summary>
/// Представляет базовую модель ресурсов, на которые возможна подписка
/// </summary>
public abstract class Subscribable
{
/// <summary>
/// Уникал... |
b971f62498ab58d0f37b80a87bf4b079d41d5e16 | C# | JoelBarranzuela/Version-Final | /SistemaFarmacia/CAPA_USUARIO/frmStockActual.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using CAPA_NEGOCIO;
using System.Windows.Forms;
namespace CAPA_USUARIO
{
public partial class frmStockActual : Form
{
ConsultaNEG cneg = new Consu... |
346c2409a5bd3ffecf3a999d6622caffc5110d71 | C# | nuclearmeltd0wn101/ULearn-Game-YoungRevolutioneerAdventures | /ComradesSelectorModel.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace ulearn_game_YoungRevolutioneerGame
{
public class ComradesSelectorModel
{
public CommanderPerson[] GetChoices => chosenPeople.ToArray();
private ComradesSelectorScreen view;
private List<CommanderPers... |
a4e55dc2764c004eeb7faeeb2ad1c3673bac12fc | C# | shub-wub/LorRankedTwitchBot | /TwitchBot.cs | 3.0625 | 3 | using System;
using System.IO;
using System.Net.Sockets;
using System.Threading.Tasks;
namespace TwitchBot
{
public class TwitchBot
{
private string ip;
private int port;
private string nick;
private string password;
private string channel;
private... |
8c8d441df627056d8cb19de89fd31a6fee196e33 | C# | reubeno/NClap | /src/NClap/Types/BoolArgumentType.cs | 3.3125 | 3 | using System.Collections.Generic;
namespace NClap.Types
{
/// <summary>
/// Implementation to describe System.Boolean.
/// </summary>
internal class BoolArgumentType : ArgumentTypeBase
{
private static readonly BoolArgumentType Instance = new BoolArgumentType();
/// <summary>
... |
393f99488e218b193fa8c89333638929d11e58f6 | C# | ozanbatuhanozdal/Scrum-Board | /TestApplication.DataAccess/EntityFrameworkCore/Mapping/UserMap.cs | 2.703125 | 3 | using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TestApplication.Entities.Models;
namespace TestApplication.DataAccess.Mapping
{
public class UserMap : IEntityTypeConfiguration<User>
{
public void Configure(EntityTypeBuilder<User> builder)
{
... |
575527d0f91df7bc499b81b42f05f8805103b39d | C# | VladP97/NET.W.2017.Potapov | /NET.W.2017.Potapov.Test/Task2.Solution/RandomFileGenerator.cs | 3.1875 | 3 | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Task2.Solution
{
public abstract class RandomFileGenerator<T>
{
public string WorkingDirectory;
public string FileExtension;
public RandomFil... |
b232eae7bcb24219f7d177d1a7c4fb6d4a494242 | C# | dhamotharang/Vulcan | /DAL.Vulcan.NUnit.Tests/StateMachineTests/TrafficSystemTest.cs | 2.59375 | 3 | using System;
using System.Diagnostics;
using DAL.Vulcan.Mongo.Base.DocClass;
using DAL.Vulcan.Mongo.Base.StateMachine;
using DAL.Vulcan.Test;
using NUnit.Framework;
namespace DAL.Vulcan.NUnit.Tests.StateMachineTests
{
[TestFixture]
public class TrafficSystemTest
{
private StateMachine t... |
73d0cc551092deb7140df262edbd95c53c3cfdab | C# | shendongnian/download4 | /first_version_download2/100802-6818577-14919257-2.cs | 2.6875 | 3 | // base class with common functionality
public class MyUserControlBase : UserControl {
// derived class will initialize this property
public TextBox TextBox1 {get;set;}
// derived class will initialize this property
public Button Button1 {get;set;}
/* some code of us... |
a5f36c63cbdb8927d0e69afaede986abe72b7073 | C# | Drpepper93/Bidmas | /BODMAS/BODMAS.Tests/BODMASShould.cs | 2.703125 | 3 | using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Text;
namespace BODMAS.Tests
{
[TestFixture]
class BODMASShould
{
[Test]
public void Calc1CorrectAnswer()
{
string eq = "2*4/8+1-8*22-4";
var ans = BODMAS.BIDMA... |
5ad20da7d3b37e5d1ef77726a2c6aa83222b61d1 | C# | OliangchenO/NewTravelOnline | /TravelOnline/Class/SwfUpload/FileHelper.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
/// <summary>
///FileHelper 的摘要说明
/// </summary>
public class FileHelper
{
public FileHelper()
{
//
//TODO: 在此处添加构造函数逻辑
//
}
public static string GetUploadPath()
{
string path = HttpC... |
38474f032b624ddbb518ef7e0ac23e08ce44abce | C# | taghrid-mahdy/first_dotnet | /Controllers/MoviesController.cs | 2.796875 | 3 | using System.Collections.Generic;
using System.Diagnostics;
using Microsoft.AspNetCore.Mvc;
using code.Models;
using code.ViewModels;
namespace code.Controllers
{
public class MoviesController : Controller
{
private Movie movie = new Movie(){ Name = "shrek"};
private List<Customer> customers = ... |
1d1d6bc8af744c57ae3b68ba697e9817266a445a | C# | nove1398/DeliveryService | /Server/Services/UserService.cs | 2.546875 | 3 | using DeliveryService.Server.Data;
using DeliveryService.Shared.Models;
using DeliveryService.Shared.ViewModels;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace DeliveryService.Server.Services
{
public interface IUserS... |
8044ba833b82c3a741564bca864f92af09ce953f | C# | saibotshamtul/WabbitStudio | /Source/WabbitComp/WabbitC/Model/Statements/Math/Add.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using WabbitC.Model.Types;
namespace WabbitC.Model.Statements.Math
{
class Add : MathStatement, IMathOperator
{
public Add()
{
}
public Add(Declaration lValue, Datu... |
4bc8ae15758590f360925a3738cf5db435f0a2fb | C# | alegep93/NewGestioneCantieri | /Database/DAO/FattureAcquistoDAO.cs | 2.515625 | 3 | using Dapper;
using Database.Models;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
namespace Database.DAO
{
public class FattureAcquistoDAO : BaseDAO
{
public static List<FatturaAcquisto> GetAll()
{
List<FatturaAc... |
6f4c515ede5384307302d0953dc25f8ba6474135 | C# | world666/StrategyServer | /StrategyServices/Languages/LanguageService.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataRepository.Models;
using DataRepository.Services.DataBaseService;
namespace StrategyServices.Languages
{
public class LanguageService : ILanguageService
{
public LanguageServic... |
bacd0b40dc96b88f2d6cb8b690b0855be5dae62f | C# | mertgogersin/HRWebSiteProject | /HRWebApi/Validators/RegisterResourceValidator.cs | 2.546875 | 3 | using FluentValidation;
using HRWebApi.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace HRWebApi.Validators
{
public class RegisterResourceValidator : AbstractValidator<RegisterDTO>
{
public RegisterResourceValidator()
{
... |
c1bcc74eab198cd915404d41ec2c5e825abcc0e2 | C# | smileofdemon/AddressBook | /AddressBook/AddressBook.cs | 3.46875 | 3 | using System.Collections.Generic;
using System.Linq;
namespace AddressBook
{
public class AddressBook : IAddressBook
{
private List<Contact> _contacts;
public AddressBook()
{
_contacts = new List<Contact>();
}
public void Add(Contact contact)
{
... |
bc9c85f7baaf7a1528e60efea5e7f9bbc6561e63 | C# | twifno/algorithm-puzzles | /leetcode/425-word-squares.cs | 3.4375 | 3 | //https://leetcode.com/problems/word-squares/
//Backtracking…
//Can be solved by Trie as well.
public class Solution {
public IList<IList<string>> WordSquares(string[] words) {
List<IList<string>> res = new List<IList<string>>();
List<string> cur = new List<string>();
Dictionary<char, List... |
fd390c8e236fd250134563e28f0ce4cd2189bbb4 | C# | vdv7105131/Telegram.Bot | /src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/RevokeChatInviteLinkRequest.cs | 2.859375 | 3 | using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using Telegram.Bot.Requests.Abstractions;
using Telegram.Bot.Types;
// ReSharper disable once CheckNamespace
namespace Telegram.Bot.Requests
{
/// <summary>
/// Use this method to revoke an invite link created by the bot. If the primary link is revoke... |