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 |
|---|---|---|---|---|---|---|
c3c753cb31366cb26f957e50bb96a93e99690895 | C# | 2She2/CSharpOOP | /2.DefiningClassesPart2/ExercisesTests/Path.cs | 4.125 | 4 | // 04. Create a class Path to hold a sequence of points in the 3D space...
namespace Exercises
{
using System;
using System.Collections.Generic;
/// <summary>
/// Class to hold a sequence of points in the 3D space
/// </summary>
public class Path
{
// List where point will be hold... |
dd1812440307003b927a7448d0272fef4955b933 | C# | facybenbook/HexagonTowerDefense | /Assets/Scripts/InGame/Ranges/Range.cs | 2.890625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Range : MonoBehaviour
{
protected GameUnit gameUnit;
protected GameUnit target;
protected SphereCollider sphereCollider;
protected HashSet<GameUnit> gameUnitsInRange = new HashSet<GameUnit>();
bool tri... |
75891d7d2c178e50f805e54a940c5512e8b342e8 | C# | BlueChilli/ChilliSource.Mobile.UI | /src/ChilliSource.Mobile.UI/Controls/FormsExtensions/ExtendedSwitch.cs | 2.546875 | 3 | #region License
/*
Licensed to Blue Chilli Technology Pty Ltd and the contributors under the MIT License (the "License").
You may not use this file except in compliance with the License.
See the LICENSE file in the project root for more information.
*/
#endregion
using Xamarin.Forms;
namespace ChilliSource.Mobile.U... |
07e99eb2c22ecbae12187c9da699a2084c7c533b | C# | ChillyYep/SpaceTimeTraveller | /Assets/Main/Scripts/Global/ReadWriteArchive.cs | 2.578125 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEngine;
using UnityEngine.SceneManagement;
public class ReadWriteArchive{
public List<Archive> archives;
private List<string> fileList;
private static ReadWriteArchive read... |
f36e351b234c4d858f0a4d6c6ed14b1c0cdc5864 | C# | laddon/Laddon | /DafnyCodeGen/MethodGenerator.cs | 2.96875 | 3 | using Common;
using DafnyCodeGen.Enums;
using Microsoft.Dafny;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DafnyCodeGen
{
public class MethodGenerator : CodeGeneratorBase<Method>
{
/// <summary>
/// Generates the code for a new Da... |
22546f4467bb384121e5cf65e9a6b26c6278785b | C# | OrleansContrib/Orleankka | /Source/Orleankka.Runtime/Behaviors/Transition.cs | 2.921875 | 3 | namespace Orleankka.Behaviors
{
class Transition
{
public static readonly Transition Initial = new Transition(null, null);
internal Transition(State from, State to)
{
From = from;
To = to;
}
public State From { get; }
public State To { g... |
a57fbd748ccdc29ca14433403321addd4eaae8fe | C# | Adrrei/Kattis-Challenges | /CityDestruction.cs | 3.453125 | 3 | /*
Problem: https://open.kattis.com/problems/city
Author: Adrian Reithaug
Submitted: September 5th, 2017
Time: 0.96s / 9.00s
*/
using System;
namespace Kattis
{
public class CityDestruction
{
private static long damage;
private static House[] houses;
private static long[,] houseMoves;... |
5b0b391d92372523c841dd88f69b3ccff3a6f4ac | C# | expries/TourPlanner | /TourPlanner.BL/Services/ReportService.cs | 2.75 | 3 | using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Threading.Tasks;
using QuestPDF.Fluent;
using TourPlanner.DAL.Repositories;
using TourPlanner.Domain.Documents;
using TourPlanner.Domain.Exceptions;
using TourPlanner.Domain.Models;
namespace TourPlanner.BL.Services
{
public class Re... |
83b6ebfed3731cd1718f2078b4246f42324f34c1 | C# | NikolaPineda/Telerik | /C# OOP/OOP Principles - Part 2/Problem 2-Bank accounts/Loan.cs | 3.375 | 3 | using System;
namespace Bank
{
public class Loan : Account, IDeposit
{
public Loan(Customer inputClient, decimal inputBalance, decimal inputInterest)
: base(inputClient, inputBalance, inputInterest)
{
}
public void Deposit(decimal amount)
{
if (... |
11dfe48047d27fdb3611efbb8c63e3f12c1ef841 | C# | hiloteam/seinjs-cli | /templates/unity/Assets/SeinJSUnityToolkit/Dependencies/BinPacker.cs | 2.765625 | 3 | using System;
using System.IO;
using System.Drawing;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace SeinJS
{
public class BinPacker
{
internal class Node
{
public Node rightNode;
public Node bottomNode;
p... |
79fd9e5563ad96c54f9f7c83620b3f5203b85e12 | C# | Kirisada/study-homeworkapp | /Workapp01/Workapp01/Form1.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace Workapp01
{
public partial class Form1 : Form
{
public Form1()
{
... |
1bef83594a5bd3801151c140d1e7ddadacbf3f25 | C# | MinaGe/CarRacing | /Form1.cs | 2.65625 | 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 carracing
{
public partial class Form1 : Form
{
public Form1()
... |
91485ed19842a8491bc8f7af2b75167dee2ae0e2 | C# | toddmeinershagen/Demo.MasterData | /Demo.MasterData.Consumer/Program.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Data.Services.Client;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using Demo.MasterData.Consumer.Demo.MasterData.Services;
namespace Demo.MasterData.Consumer
{
internal class Program
{
private static void Main(st... |
b22e876ae667023f90b3139be69510b6d8e2ff5a | C# | maciortea/AlgorithmicSolvedProblems | /src/IntersectionOfTwoArrays/IntersectionOfTwoArraysUnitTest.cs | 3.890625 | 4 | using Xunit;
namespace IntersectionOfTwoArrays
{
// Given two sorted arrays arr1 and arr2 of passport numbers, implement a method FindIntersection(arr1, arr2)
// that returns an array of all passport numbers that are both in arr1 and arr2.
// Note that the output array should be sorted in an ascending orde... |
e18a62480574b8e4817cc45305c152c036a379c9 | C# | Nick-seeber/SeedPathsSolutions | /DragonSlayerV2-Class/DragonSlayerV2-Class/Player.cs | 3.984375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DragonSlayerV2_Class
{
class Player
{
//enum for attack types
public enum AttackType { Sword = 1, Magic, Heal }
//Health of our player
private int _hp;... |
593e597894566a56436cc2356680273bbb8abde4 | C# | kalinmarkov/SoftUni | /Programming Basic/ProgrammingBasic-EXAMS/03.Flowers/Flowers.cs | 3.59375 | 4 | using System;
class Flowers
{
static void Main()
{
int numberOfChrysanthemums = int.Parse(Console.ReadLine());
int numberOfRoses = int.Parse(Console.ReadLine());
int numberOfTulips = int.Parse(Console.ReadLine());
string season = Console.ReadLine().ToLower();
char holid... |
01f8c4d213abd51f96518b755a31fd4ff35d2052 | C# | dehghani735/TransactionTest | /TransactionTest/Plan.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TransactionTest
{
public abstract class Plan // TODO: as Command
{
private TransactionConfig _transactionConfig;
private string _description; // each plan has a descrip... |
dca395fa3e92bca89e9985bb487040b65d941ecd | C# | Tikhomirov-Sergey/thesis | /WindowsFormsApplication8/WindowsFormsApplication8/Classes/CalculationOfSurface/ClassesToCalculate/DeviationOfInstallation.cs | 3 | 3 |
namespace WindowsFormsApplication8.ClassesToCalculate
{
class DeviationOfInstallation
{
private int numberOfOperations;
private double lengthOfPart;
private double diameterOfPart;
private string[] typeOfInstrument;
private int[] idOperation;
private Inaccurac... |
421715a97282b8a6bf3912a0a188b6312e9fad6e | C# | tavisca-agundawar/ChatApp | /ChatApp/Message.cs | 2.5625 | 3 | using System;
namespace ChatApp
{
public class Message
{
public string message { get; set; }
public DateTime timeStamp { get; }
public Message(string message)
{
this.message = message;
timeStamp = DateTime.Now;
}
}
}
|
e881e5154d499f22f64866cf9f95d29e6145e9d2 | C# | Reddeyfish/ThereIsNeverEnough | /ThereIsNeverEnough/Assets/Terrain/Directions.cs | 3.28125 | 3 | public enum Directions
{
None = 0,
Up = 1,
Down = 2,
Left = 3,
Right = 4
}
public static class DirectionsExtension
{
public static Directions inverse(this Directions d)
{
switch (d)
{
case Directions.Up:
return Directions.Down;
case Directions.Down:... |
9d4bc3d84f96d7d29a28018cd1f82c3ff992dbae | C# | cyberis/TingTing | /TingTing/src/TingTingException.cs | 2.53125 | 3 | using System;
namespace TingTing
{
public class TingTingException : Exception
{
public TingTingException(string pMessage) : base(pMessage)
{
}
}
public class CantFindTingException : Exception
{
public CantFindTingException(string pMessage) : base(pMessage)
... |
05b4bfb7089169877704b5a6034471d5d696383f | C# | Kanakaiah/Algorithms | /Algrthm.Test/Array/EqualSidesOfAnArrayTest.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Algrthm.Test.Array
{
[TestClass()]
public class EqualSidesOfAnArrayTest
{
[TestMethod()]
public void GenericTest... |
0056b6ede62fcdccf62385d4c199ff7697ff8186 | C# | yuu-electrum/CollectCode | /Assets/Preferences.cs | 3.09375 | 3 | using System;
using UnityEngine;
/// <summary>
/// PlayerPrefsのラッパー
/// </summary>
public static class Preferences
{
public class Preference
{
public Type Type { get; set; }
public object Content { get; set; }
}
/// <summary>
/// 設定を読み込む。ない場合は作成する
/// </summary>
/// <... |
81be75a8ee8e951f270db0213ae24b2d3db328be | C# | HappyLuckyAkira/NumericalUpDown | /DoubleValidationRule.cs | 2.6875 | 3 | using System;
using System.Globalization;
namespace NumericalUpDownSample
{
public class DoubleValidationRule
{
public static bool IsCanInputKey(string inputkey)
{
string InputEnableKey = "0123456789-";
//private static void DoubleUpDown_PreviewTextInput(object sender, ... |
166979cb828c2e588f2147a03680e78a2e42a9ac | C# | rprouse/exercism-csharp | /twelve-days/TwelveDaysSong.cs | 3.640625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class TwelveDaysSong
{
private static readonly string[] DAYS =
{
"first", "second", "third", "fourth", "fifth", "sixth",
"seventh", "eighth", "ninth", "tenth",... |
b17201a6c33bb0b4739f28bac5519dabb69c6b09 | C# | brnor/CarpoolManagementCA | /src/Application/Rideshares/Queries/GetRideshareDetail/EmployeeDto.cs | 2.515625 | 3 | using Application.Common.Mappings;
using AutoMapper;
using Domain.Entities;
namespace Application.Rideshares.Queries.GetRideshareDetail
{
public class EmployeeDto : IMapFrom<Employee>
{
public int Id { get; set; }
public string FullName { get; set; }
public bool IsDriver { get; set; }
... |
ef667386048c64a86a140a06233833edde12b580 | C# | bardarlands/Proiect_Muresan_Andrei-Cristian | /Models/GameGenresPageModel.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Proiect_Muresan_Andrei_Cristian.Data;
namespace Proiect_Muresan_Andrei_Cristian.Models
{
public class GameGenresPageModel : PageModel
{
public List<Assigned... |
952d2c23318fbcd4f17344c03ca31d9aa2a00739 | C# | gibbed/Gibbed.TreeOfSavior | /projects/Gibbed.TreeOfSavior.FileFormats/ArchiveCrypto.cs | 2.578125 | 3 | /* Copyright (c) 2016 Rick (rick 'at' gibbed 'dot' us)
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any pu... |
609f012945ac3e9621b33e04becbacc639f57209 | C# | jeremybeavon/CSharpDom | /CSharpDom/BaseClasses/Editable/Statements/EditableDoStatement.cs | 2.53125 | 3 | using CSharpDom.Common.Editable.Expressions;
using CSharpDom.Common.Editable.Statements;
using CSharpDom.Common.Statements;
namespace CSharpDom.BaseClasses.Editable.Statements
{
public abstract class EditableDoStatement<TExpression, TStatement> :
EditableStatement,
IEditableDoStatement<TExpression... |
1900ea73513a67774b5cc8a17a0d08613849bdb8 | C# | neochen2701/TQCPans | /程式語言 V2答案檔/C#/210.cs | 3.421875 | 3 | using System;
public class TQC210
{
public static void Main(string[] args)
{
int a, b, gcd, lcm;
a = int.Parse(Console.ReadLine());
b = int.Parse(Console.ReadLine());
gcd = ComputeGCD(a, b);
lcm = ComputeLCM(a, b, gcd);
Console.WriteLine(gcd);
Console.W... |
a47cef798e28b31a652aec2d5d09ad03e28d7858 | C# | pabloaberbuj/ESAPI | /WinForms/ExploracionPlanes Eclipse15/ExploracionPlanes/Metodos.cs | 2.921875 | 3 | using System;
using System.Globalization;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ExploracionPlanes
{
public static class Metodos
{
public static void habilitarBoton(bool test, Button bt)
{
bt.Enabled = test;
... |
eb9db17bffc79586071a9c07f45aab0d3f9551e6 | C# | PlamenaMiteva/OOP | /Common Type System Homework/02. Customer/Models/Customer.cs | 3.015625 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mime;
namespace _02.Customer.Models
{
public class Customer : ICloneable
{
public string FirstName { get; set; }
public string MiddleName { get; set; }
public string LastName... |
f5f8fa333754eb7163dd583d3bfaa252000ea1a1 | C# | hoducanh1988/MEScalibWlanPcba | /MeshDemoCalibrationBoard/MeshDemoCalibrationBoard/Function/TestingInformation.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MeshDemoCalibrationBoard.Function {
public class TestingInformation : INotifyPropertyChanged {
public event PropertyChangedEventHandler PropertyChanged... |
fef0d1f4007e52ba68227558e073b3cc5a9e672c | C# | khalifa005/NIIC | /NIIC.API/Controllers/BaseController.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using MediatR;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
namespace NIIC.API.Controllers
{
[Route("api/[controller]")]
[ApiController]
publ... |
fc9046b51437602312feca03eed03a46716b6c17 | C# | mejiajuanbta/blazor-telerik-form | /TelerikBlazorApp1/Server/Controllers/CustomerController.cs | 2.59375 | 3 | using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using TelerikBlazorApp1.Shared;
// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
namespace TelerikBlazorApp1.Server.Cont... |
8cc158be4f36ed35b1857fc874158e30759f7c62 | C# | kirurobo/CharmedPointerVSTO | /CharmPointerVSTO/PointerForm.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace CharmPointerVSTO
{
public partial class PointerForm : Form
{
/// <summary>
... |
d6632cf87fb560626b9507b7b096302dc45defa8 | C# | kenenalmat/PT | /Snake/Snake/Models/Snake.cs | 3.296875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Snake.Models
{
public class Snake : Drawer
{
public Snake()
{
color = ConsoleColor.Yellow;
sign = 'o';
random();
... |
bb6d2c5f408b7d1f115e39c238a9c8c00ae0145f | C# | faraday58/EjemplosTP-2018 | /BugGame/BugGame/Form1.cs | 2.6875 | 3 | using System;
using System.Drawing;
using System.Windows.Forms;
namespace BugGame
{
public partial class Form1 : Form
{
//Creando objeto para dibujar
Graphics graphics;
Comida micomida;
Cola siguiente;
//Creando la cabeza de la víbora
Cola cabeza;
//Vari... |
beaba3911493678d0a186c55116de1a2306e8534 | C# | AlfarLatypov/FILE_SYSTEMS | /FILE_SYSTEMS/Program.cs | 3.1875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading.Tasks;
using System.IO;
using static System.Net.WebRequestMethods;
namespace FILE_SYSTEMS
{
class Program
{
static void Main(string[] args)
{
... |
c4d9773ab17350e7b176dd830221bfd23eef43e2 | C# | wangyoutian/nilnul.collection.set._public | /lib/lib(y/Equal.cs | 3.125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace set.collection.nilnul
{
public partial class Equal<T>: IEqualityComparer<T>
{
private Func<T,T,bool> _comparer;
public Equal(Func<T,T,bool>comparer)
{
this._comparer = comparer;
}
static public bool E... |
1c33cf8862421e3e64ce0b5163be568f8458537a | C# | Abbossbek/Foto | /Foto/Form1.cs | 2.890625 | 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 Foto
{
public partial class Form1 : Form
{
public Form1()
{
... |
1a534071a3ebb95badb72a0a8033ae72eba67e71 | C# | vasilvalkov/High-Quality-Code-Part-2 | /01-Defensive-Programming-and-Exceptions/Exceptions-Homework.UnitTests/ExceptionsHomework_Tests/PrimeCheck_Should.cs | 2.9375 | 3 | using Exceptions_Homework;
using NUnit.Framework;
using System;
namespace Exceptions_Homework.UnitTests.ExceptionsHomework_Tests
{
[TestFixture]
public class PrimeCheck_Should
{
[TestCase(1)]
[TestCase(0)]
[TestCase(-1)]
[TestCase(-33)]
public void ThrowArgumentExce... |
d669bcba5c3b5d0607f27c91805c05623aa21c02 | C# | Yikai0121/Csharp-Basic | /里氏替換原則練習/Program.cs | 3.703125 | 4 | using System;
namespace InheritancePractice
{
class Program
{
// 里氏替換原則
// 1.子類可以賦值給父類:如果有一個地方需要一個父類做參數,我們可以給一個子類替代
// 2.如果父類中裝的是子類對象,那也可以講這個父類強轉為子類
// 3.is:表示類型轉換,如果轉換成功,返回一個true,否則返回false
// as:表示轉換類型,如果轉換成功,返回一個對應類型,否則返回null
static void Main(stri... |
a3869c1769178d33c9c96fee7c848f0573a34920 | C# | rohitkat/ezeelo | /ModelLayer/Models/ObjectToXml.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
namespace ModelLayer.Models
{
public static class ObjectToXml
{
public static string GetXMLFromObject(object o)
... |
d79a34f7168f2bf0d816c3550fc4fc5101d2c7f0 | C# | duhowise/ValueReference | /ValueReference.Tests/ReferenceTypeTests.cs | 3.359375 | 3 | using Xunit;
namespace ValueReference.Tests
{
public class ReferenceTypeTests
{
[Fact]
public void StringRemainsUnchangedUnlessReassigned()
{
var name = "scott";
MakeUpper(name);
Assert.NotEqual("SCOTT", name);
}
[Fact]
... |
a0fea4e6f50c9151049cbbe0bd87e4769b93f81b | C# | UMPH-Devs/Dashboard | /DashboardComm/DashboardComm/Logging/EventLogLogger.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
namespace DashboardComm.Logging
{
public class EventLogLogger : Logger, ILogger
{
private readonly StringBuilder _messagesWritten;
private readonly StringBuilder _messageSummary;
private readon... |
7fccf57f42d376ade31636774c9cc4825c14600c | C# | davelyons-4ob/codeKata | /CheckoutKata/CheckoutKata.Business/BasketManager.cs | 2.921875 | 3 | using System;
using System.Linq;
using System.Threading.Tasks;
using CheckoutKata.Business.Interfaces;
using CheckoutKata.Common.Exceptions;
using CheckoutKata.Data.Interfaces;
using CheckoutKata.Entities;
using CheckoutKata.Models;
namespace CheckoutKata.Business
{
public class BasketManager : IBasketManager
... |
9be969687370d3503db609869b455741f1062141 | C# | yongzhe54/JCGL | /TestPart/JCGLMIS/JCDAL/UserService.cs | 2.578125 | 3 | using System;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using JCModel;
namespace JCDAL
{
public class UserService
{
/// <summary>
/// 是否存在该记录
/// </summary>
public bool Exists(long Usersqid)
{
StringBuilder strSql = new StringBuilder... |
75085f82d2ff7baa861b1bc4e49f1cdcfa11046c | C# | paulmcmillon/Fluent-API-in-Entity-Framework-Core | /FluentApi/ModelConfigurations/CustomerProfileConfiguration.cs | 2.5625 | 3 | using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace GroundzKeeper.Data.EntityConfiguration
{
//-------------------------------------------------------------------------------------------------------
// Entity Framework Core Fluent API configuration for model c... |
35d1392cd91666b31f242585f4ef754152deb5ab | C# | ElinamLLC/SharpVectors | /Source/SharpVectorModel/BasicTypes/SvgLengthList.cs | 2.8125 | 3 | using System;
using System.Text.RegularExpressions;
namespace SharpVectors.Dom.Svg
{
/// <summary>
/// This interface defines a list of SvgLength objects
/// </summary>
public sealed class SvgLengthList : SvgList<ISvgLength>, ISvgLengthList
{
#region Private Fields
private... |
b6652aceda30491673d6f2db66417de7581b941a | C# | Ellamanate/ConnectDots | /Assets/Scripts/Game/Dot.cs | 2.59375 | 3 | using System.Collections;
using UnityEngine;
[RequireComponent(typeof(SpriteRenderer))]
[RequireComponent(typeof(Collider2D))]
public class Dot : MonoBehaviour
{
[SerializeField] private int _speed;
private SpriteRenderer _renderer;
private Coroutine _move;
private ColorInfo _colorInfo;
private i... |
960fb76fbb0d5b4cc2463ccc421122e00415a818 | C# | ilnurshug/VSGraphVis | /VSGraphViz/graphs/Radial.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Radial
{
using Graph;
using GraphAlgo;
using Vector;
using Layout;
using GraphLayout;
public class RadialLayout : GraphLayout
{
public List<List<Vector>> s... |
6531746f2a846af866c6a7b5e37e0ca5449334e0 | C# | Abunie/PeripheralShop | /PeripheralShop/Data/OrdersDAO.cs | 2.953125 | 3 | using Microsoft.Data.SqlClient;
using PeripheralShop.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace PeripheralShop.Data
{
public class OrdersDAO
{
private string connectionString = @"Server=tcp:abuni466.database.windows.net,1433;Initi... |
0c80a566594fb49d94e8660bf78799da1b124199 | C# | swiftkron/partners | /Partners/Samples/Sample.cs | 2.734375 | 3 | var sortedSubscriptionItems = subscription.RatePlans.OrderByDescending(i => i.RatePlanName).GroupBy(i => i.ProductRatePlanId);
//Act! Pro discounts don't mean anything on a Perpetual License model, so no need to surface
return (from groupedItems in sortedSubscriptionItems
l... |
4a8dec0d8baa1fa001106241b8206c3b6d3327ea | C# | thorio/FirmwareToolkit | /Triggers/ParametricTrigger.cs | 3.0625 | 3 | using IngameScript.Actions;
using System.Collections.Generic;
namespace IngameScript.Triggers
{
class ParametricTrigger<T> : Trigger
{
protected List<IParametricAction<T>> _parametricActions;
protected ParametricTrigger()
{
_parametricActions = new List<IParametricAction<T>>();
}
/// <summary>
/// ... |
477d87b899268105da620687a79ad34ceae1ebfd | C# | yahelnachum/MQP_Unity_Project | /Assets/Scripts/OurUtils.cs | 3.171875 | 3 | using UnityEngine;
using System.Collections;
public class OurUtils {
public static string Capitalize (string input) {
return input[0].ToString().ToUpper() + input.Substring(1);
}
public static string CapitalizeEachWord(string input)
{
string[] words = input.Split(' '),
... |
7ed372ed767bd4668b2a0f5d1b6497c429ba40f3 | C# | KoenZoon/hexagrid | /hexgrid/hexgrid/Form1.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics.Eventing.Reader;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace hexgrid
{
public partial class Form1 : Form
... |
701a785efc0056064983bdb540449bef01eb56b6 | C# | PomeloButter/PomeloButter | /PomeloButter.Business/PostBusiness.cs | 2.515625 | 3 | using System.Collections.Generic;
using System.Threading.Tasks;
using PomeloButter.IBusiness;
using PomeloButter.IRepository;
using PomeloButter.Model.EntityParameters;
using PomeloButter.Model.Pager;
using PomeloButter.Model.TableModel;
namespace PomeloButter.Business
{
/// <summary>
/// 文章业务逻辑服务
///... |
9fa9542e1755d272a2c4b52dc27383861fb83592 | C# | shoy160/Shoy.Common | /Common/Shoy.AjaxHelper/AjaxUtils.cs | 2.6875 | 3 | using System.Web;
using Shoy.AjaxHelper.Core;
using Shoy.AjaxHelper.Model;
namespace Shoy.AjaxHelper
{
public static class AjaxUtils
{
public static object ExecutinonMethod(string ass, string className, string method, HttpContext context)
{
var result = new AjaxResult();
... |
90438bd6a4a6f77ea2864e26f5b7530a4a5687d2 | C# | Ples3fan/All_projects | /Clock/Clock/Form1.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Clock
{
public partial class Form1 : Form
... |
7e32a2b22f39eae9f9c83ecf9839f6673fc34be0 | C# | polkabunny/MoshCSharpFundamentals | /Section8/DuplicateNumber/Program.cs | 3.78125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
namespace DuplicateNumber
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter a series of numbers separated by a hyphen.");
var input = Console.ReadLine();
if (input ... |
7250086343a51094b9915163f90ab833f89636d7 | C# | Kiefer7126/SignalAnalyzer | /SignalAnalyzer/GenerateWave.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SignalAnalyzer
{
public class GenerateWave
{
/*
* beat
* 概要:波を生成する処理
* @param data
* @param flag
* @return なし
*/
... |
c88ca8badae4b17ee4c0fd74284f4ba8f3e63a68 | C# | inrg/jinxbot | /dev-old/projects/JinxBot.Controls/Design/EnumTypeConverter.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.Globalization;
namespace JinxBot.Controls.Design
{
/// <summary>
/// Implements the type converter for the enumeration specified in the type argument <typeparamref name="T">T</typeparamref>.
... |
8b69ab0b5bf0dc74d1e223fe8869bff513145cc9 | C# | diegocantelli/Linq | /LinqDemo/LinqDemo/Employee.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace LinqDemo
{
public class Employee
{
public int EmployeeId { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Gender { get; set; }
public int A... |
4d9b7e731c762aa2be2a29d98c004ff64a4f3fab | C# | kyang29/three-card-poker-assessment | /Poker/Evaluator.cs | 2.765625 | 3 | using Poker.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Poker
{
public static class Evaluator
{
public static List<Player> GetWinners(List<Player> players)
{
var topPlayers = new List<Player>();
var orderedPlayer... |
257cb4e2a8d916857e1be613ab8c76e39673bf2a | C# | aloneguid/parquet-dotnet | /src/Parquet.Test/Types/ListTest.cs | 2.734375 | 3 | using System.Threading.Tasks;
using Parquet.Data;
using Parquet.Schema;
using Xunit;
namespace Parquet.Test.Types {
public class ListTest : TestBase {
[Fact]
public async Task List_of_structures_writes_reads() {
var nameField = new DataField<string>("name");
var line1Field ... |
fa80df39ae73a61da5ee5d9fc82b26428b1c01fd | C# | cathode/Serenity | /Serenity/Web/Cookie.cs | 2.890625 | 3 | /******************************************************************************
* Serenity - Managed Web Application Server. ( http://gearedstudios.com/ ) *
* Copyright © 2006-2015 William 'cathode' Shelley. All Rights Reserved. *
* This software is released under the terms and conditions of the MIT/X11 ... |
a96159be56ba4d9ee19fc1aa427403c779150867 | C# | 104512708/Lx02 | /DAL/UserInfo.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using MySql.Data.MySqlClient;
using System.Data;
using Dapper;
using Microsoft.Extensions.Configuration;
//using System.Linq;
namespace DAL
{
public class UserInfo
{
public static string cns = AppConfigurtaionServices.Configuration.GetC... |
3e0c8315be833ee89d3cd44b45cdaa17045514c6 | C# | DnfsJ2W/Sumeet | /Day_One/LinqQuery/Join.cs | 3.296875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LinqQuery
{
class Join
{
class Employee
{
public int EmpId { get; set; }
public string EmpName { get; set; }
public decimal Salary {... |
c66796ee0a48b7696d8b7ea84bfccb1f0577efb4 | C# | hanssens/imaginarium | /Source/Imaginarium/Application/Logic/PictureCatalog.cs | 3.296875 | 3 | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
namespace Imaginarium
{
public class PictureCatalog
{
public List<Picture> Pictures { get; private set; }
public PictureCatalog ()
{
Pictures = new List<Picture> ();
}
/// <summary>
/// Initializes a filled PictureC... |
13c393406bd62f7ec0c26b69c0e7e77ec1787782 | C# | AGorbunovas/RobotuZaidimuProjektas | /Zaidimas/Program.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Zaidimas
{
class Program
{
static void Main(string[] args)
{
//Programos vykdymo komandos
#region AutomatinisValdymas
//Konstravima... |
9263fc1e7c041869feb88a2fd131f0516eacd943 | C# | ToyReid/365project1 | /Print.cs | 3.25 | 3 | using System;
using System.Collections;
//Print inherits the IInstruction interface
public class Print : IInstruction {
protected BitArray bc;
//ByteCode Property defined.
public BitArray ByteCode {
get {
return bc;
}
}
public Print() {
//alloc 32 bit bitarray
bc = new BitArray(32);
//Set the i... |
f49ebbe5eda7ef335f45b6e964c8e0dff47064e5 | C# | hoangphuong230/Excercise5 | /Excercise05/Excercise5a/Program.cs | 3.5 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Excercise5a
{
class Program
{
static void Main(string[] args)
{
Print_a_2_z_v1();
while (true)
{
char c = Console.R... |
bf0d2d5eaad8c05a7b6b0675bc4e8daec629fd5f | C# | AldiyarUaliev/EcommerceDDD | /src/EcommerceDDD.Domain/Products/Product.cs | 2.796875 | 3 | using EcommerceDDD.Domain.SeedWork;
using EcommerceDDD.Domain.SharedKernel;
namespace EcommerceDDD.Domain.Products;
public class Product : AggregateRoot<ProductId>
{
public string Name { get; private set; }
public Money Price { get; private set; }
public DateTime CreationDate { get; }
public static ... |
7037e1dbd0ad5e8e036c812ea8ead26d4f2caa17 | C# | tuanfriend/C-.NET-Core | /WizardNinja/Wizard.cs | 3.359375 | 3 | using System;
namespace WizardNinja
{
class Wizard: Human
{
public Wizard(string name): base(name)
{
health = 50;
Intell = 25;
}
public override int Attack(Human target){
int dmg = Intell*5;
base.Attack(target,dmg);
he... |
401db19750c080c902cee951072cefead192869e | C# | PetarPenev/Telerik | /TelerikAcademy/WebTrack/ASP.NET Web Forms/07.Sessions/04.DeleteViewstate/DeleteViewstate.aspx.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace _04.DeleteViewstate
{
public partial class DeleteViewstate : System.Web.UI.Page
{
protected void Page_PreRender(object sender, EventArgs e)
{
... |
fa418e33603c1181ea51a51adee1d4275a15e6fb | C# | IulianaUser23/StoreAPI | /StoreAPI/Models/SeedData.cs | 2.796875 | 3 | using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace StoreAPI.Models
{
public class SeedData
{
public static void Initialize(IServiceProvider serviceProvider)
... |
aad83947619b48bfcbff17bbf90177ed1986954e | C# | daveraine/pdf-index | /PdfIndex/ViewModels/RecordsViewModel.cs | 2.5625 | 3 | using System.Collections.Generic;
using Caliburn.Micro;
using PdfIndex.Core;
namespace PdfIndex.ViewModels
{
public class RecordsViewModel : PropertyChangedBase
{
private readonly IEventAggregator _events;
private readonly IPdfRecordReader _reader;
public RecordsViewModel(IEventAggreg... |
53e8a1f46042f1299a630c6b015e590e67fea2ba | C# | sandramkimball/corner-ramen-be | /ramen-BE/Controllers/ProductControllers.cs | 2.65625 | 3 | using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using ramen_BE.Models;
using ramen_BE.Data;
namespace ramen_BE.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class ProductController : ControllerBase
{
private readonly ProductContext _context;
public ... |
aaa3ab1ee2d195a6b97eb75ba3dd3d873ffa8c0e | C# | twpol/fxcop | /Immutability/Utils.cs | 2.53125 | 3 | //------------------------------------------------------------------------------
// http://james-ross.co.uk/projects/fxcop
// License: New BSD License (BSD).
//------------------------------------------------------------------------------
using System.Linq;
using Microsoft.FxCop.Sdk;
namespace Immutability {... |
6b1d6cad8af619889970cb8181fb181595382f12 | C# | dmitry5sekator/StepServer | /StepServer/Parser/json.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
namespace StepServer.parser
{
class json
{
// и это нихера не парсер а класс и методы которые будут вызываться в контроллерах и формировать на каких-то входных данных типа
... |
d4de10b94c2b4c20dad2b69c4715d9fc0da0bbdf | C# | QuantumCores/Mathema | /Mathema/Program.cs | 3.125 | 3 | using Mathema.Algorithms.Handlers;
using Mathema.Algorithms.Parsers;
using Mathema.Interfaces;
using Mathema.Texts;
using System;
using System.Linq;
namespace Mathema
{
class Program
{
static void Main(string[] args)
{
string del = System.Globalization.CultureInfo.CurrentCulture.Nu... |
efdf78ef566498c1b37e604230e614d7151f1616 | C# | yashashmi/UserAuthenticationKata | /CSharp/UserAuthenticationKata/UserAccountCreator.cs | 2.984375 | 3 | using System.Collections.Generic;
namespace UserAuthenticationKata.Tests
{
public class UserAccountCreator
{
private readonly UserValidator validator_;
public Dictionary<string, string> Users { get; }
public UserAccountCreator()
{
validator_ = new UserValidator();
... |
23c67f9f62a87bbe2ebd6bc060374f688591c6dd | C# | mminio/PlataformaWebApi_ddd | /src/PlataformaWebApi/Usuarios/Application/Commands/Handlers/UpdateUsuarioCommandHandler.cs | 2.515625 | 3 | using MediatR;
using PlataformaWebApi.Usuarios.Application.Services;
using PlataformaWebApi.Usuarios.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using static PlataformaWebApi.Usuarios.Application.Commands.UpdateUsua... |
5d20c1bcd82886787406eb06590e3512dae05da1 | C# | LamDoon/CShape_CuoiKy | /NgoLamDoon_CuoiKi/ModelEF/DAO/userDAO.cs | 2.59375 | 3 | using ModelEF.Model;
using PagedList;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ModelEF.DAO
{
public class userDAO
{
private NgoLamDoonContext db;
public userDAO()
{
db = new... |
e7bec71bdd9a7e9750e5f4974884a18002376b0d | C# | ZuBsPaCe/unity-smooth-movement-test | /Assets/Log.cs | 2.765625 | 3 | using System;
using System.Diagnostics;
namespace zs
{
public abstract class Log : IDisposable
{
private static Stopwatch _totalStopwatch = Stopwatch.StartNew();
public Log()
{
RestartStopwatch();
}
public void RestartStopwatch()
{
_tot... |
7794f2d055841b4c4803ac8144e00ebe6294419c | C# | Go2bad/Room-Guide-WPF-Csharp | /7_Interfaces_Ex_9/Form1.cs | 3.03125 | 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 _7_Interfaces_Ex_9
{
public partial class Form1 : Form
{
public Form1()
... |
0fee90669f27285ae4e9f59495ad17eefbf42fbf | C# | Rob2K2/KataLCD | /KataLCD/LED.cs | 3.21875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KataLCD
{
public class LED
{
//Tipos de led
public static readonly string _NONE = " ";
public static readonly string _LEFT = " |";
public static read... |
7ccfe1df5be343d90f9434ba165bac4471c86c81 | C# | asyade/RaidBot | /RaidBot.Protocol/messages/game/achievement/AchievementListMessage.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using RaidBot.Protocol.Types;
using RaidBot.Protocol.Messages;
using RaidBot.Common.IO;
namespace Raidbot.Protocol.Messages
{
public class AchievementListMessage : NetworkMessage
{
public const uint Id = 6205;
public override uint MessageId { get { ... |
3a874ebf594c7e2fed21c0848ffb5baa668102c3 | C# | MechanicalMen/Mechanical3 | /source/Mechanical3.Portable/IO/FileSystems/StreamTrackingFileSystemBase.cs | 2.734375 | 3 | using System;
using System.IO;
using System.Threading;
using Mechanical3.Core;
namespace Mechanical3.IO.FileSystems
{
/// <summary>
/// Notifies implementers when a stream
/// (created by the implementing abstract file system) is being closed.
/// </summary>
public abstract class StreamTrackingFil... |
f36327978b4bad5340eabfbb066f1d53cb6bd7c9 | C# | imsisojib/TodoManagerApi | /TodoData/SQLTodoData.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using TodoManagerApi.Models;
namespace TodoManagerApi.TodoData
{
public class SQLTodoData : ITodoData
{
//for database context
private TodoContext _todoDbContext; //our db will be called by _todoDb... |
6680f956272c4d8a5a1af70d41807a0593491a90 | C# | Zharrazh/RESTStoreAPIwithTests | /Tests/Services/RoleServiceTests.cs | 2.671875 | 3 | using NUnit.Framework;
using RESTStoreAPI.Services;
using System;
using System.Collections.Generic;
namespace Tests.Services
{
[TestFixture]
public class RoleServiceTests
{
[Test]
public void GetAllRoleKeys()
{
var roleService = new RoleService();
Collection... |
2833616cad8c033e3eb95b6f90d5bc590a416fdd | C# | matsumoto36/LetterProduct2017 | /Assets/Matsumoto/Scripts/Audio/AudioClipInfo.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
class AudioClipInfo {
public const int MAX_PLAY_COUNT = 50;
const float INIT_VOLUME = 0.2f;
public AudioClip clip;
public SortedList<int, SEInfo> stockList = new SortedList<int, SEInfo>();
public float att... |
57241707879b813d0fc375a96eb841ef7be1a321 | C# | AimeeCasden/Dojodachi-Coding-Dojo | /Controllers/HomeController.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Dojodachi.Models;
// ADD THIS LINE U BITCH
using Microsoft.AspNetCore.Http;
namespace Dojodachi.Controllers
{
public class HomeController :... |
48e1100a9515a7e3abea8131f70ce72e718d9abf | C# | DevrexLabs/OrigoDB | /src/OrigoDB.Core/Storage/InMemorySnapshotStore.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using OrigoDB.Core.Storage;
namespace OrigoDB.Core.Test
{
/// <summary>
/// Like a FileSnapshotStore except the snapshots are stored in memory as byte arrays. Intended for tests.
/// </summary>
public class InMemorySnapshotStore : Snap... |
de74f57c4c84094d6b54917afce3940006544941 | C# | Marynok/Martyuk_Labs | /lb_3/DeliveryService/Controllers/FoodTypeService.cs | 2.765625 | 3 | using DeliveryService.Interfaces;
using DeliveryServiceEF.Data.Interfaces;
using DeliveryServiceEF.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DeliveryService.Controllers
{
public class FoodTypeService : IFoodTypeService
... |
662809ffc1dd8ebf37f19b411b98cef8efc78043 | C# | alkozlov/Indigo | /Indigo.BusinessLogicLayer/Account/LoginException.cs | 2.578125 | 3 | namespace Indigo.BusinessLogicLayer.Account
{
using System;
public enum LoginExceptionReason
{
EmailOrPasswordInvalid,
AccountDisabled
}
public class LoginException : ApplicationException
{
public LoginExceptionReason Reason { get; private set; }
public LoginExcepti... |
b53e7fd8d653a379b01ed875b6cedf62ccb08d31 | C# | vsbus/fsim | /dev/fsim/UpdateHandler/fsLabeledProgressBar.cs | 2.671875 | 3 | using System.Windows.Forms;
namespace UpdateHandler
{
public partial class fsLabeledProgressBar : UserControl, IUpdatable
{
public fsLabeledProgressBar()
{
InitializeComponent();
}
#region fsIUpdatable Members
public int Value
{
... |
180c273a7bc8745a88684cecc636b5761bfd7989 | C# | ycek21/Software-engineering | /Lab2/Program.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Lab2
{
class Program
{
static void Main(string[] args)
{
TcpServer server = new TcpServer("127.0.0.1",8080);
server.AddC... |
c188293b948dcbcd4a2963907f4c4b675e674e28 | C# | JFronny/Glitch | /Misc/Beep.cs | 2.890625 | 3 | using System;
using System.IO;
using System.Media;
namespace Misc
{
public class Beep
{
public static void BeepBeep(int amplitude, int frequency, int duration)
{
double a = amplitude * Math.Pow(2, 15) / 1000 - 1;
double deltaFt = 2 * Math.PI * frequency / 44100.0;
... |