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 |
|---|---|---|---|---|---|---|
1c93e3c6d5e536c7d18d9d586a139d59b70c4228 | C# | luungoc2005/Asclepius_v2 | /Asclepius/User/DailyRecord.cs | 3.171875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Asclepius.User
{
public class DailyRecord
{
public List<Record> Records = new List<Record>();
public DateTime Date { get; set; }
public Record GetHour... |
abb5695bfb6480262720bca41f68bd4664efd825 | C# | MahBoiDeveloper/Preprocessor | /dataSet/MyCircle.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace ModelComponents
{
[Serializable]
public class MyCircle
{
private int id;
public int Id
{
get { return id; }
set { id = value; }
}
private MyPoint centerPoint;
... |
9f104641ed1d6ee52198eb3286c9101027e37530 | C# | DonBeck69/HackerRank | /HackerRank/DeterminingDnaHealth.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using HackerRank.AhoCorasick;
namespace HackerRank
{
public class DeterminingDnaHealth
{
//int GeneCount, string[] Genes, int[] Health, string[] FirstLast, int S... |
b8edfaf0e68ba604fde5b4cd9fbd0b50d02dd096 | C# | bonneyab/BookingBug | /Source/BookingBugBookingIntegration/BookingBugOperations/GetBookings.cs | 2.71875 | 3 | using Core;
using DataAccess;
namespace BookingBugBookingIntegration.BookingBugOperations
{
class GetBookings : IBookingBugOperation
{
private readonly IBookingBugApi _bookingBugApi;
private readonly IBookingRepository _bookingRepository;
private readonly IParameterHandler _parameterHa... |
1cb92b1e9a6d00091e8d480be6f138ae8480dda8 | C# | dbremner/hycs | /hycs/threading/helloThread.cs | 3.359375 | 3 | using System;
using System.Threading;
class HelloThread {
static void Main() {
int n = 100;
Thread t = new Thread (WriteY);
t.Start();
while (0 != n) {
Console.Write("x");
n--;
}
}
static void WriteY() {
int n = 100;
while (0 ... |
7124953ba05cefe20d84d98143cd6d6008e649ed | C# | tarilevente/Flotta | /Flotta/Presenters/LoginPresenter.cs | 2.59375 | 3 | using Flotta.Models;
using Flotta.Properties;
using Flotta.ViewInterfaces;
using Flotta.Views;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Flotta.Presenters
{
class LoginPresenter
{
private ILoginForm view;
pri... |
1b277485ba8a4cba46bf3206261ea3aefb5cb311 | C# | cchildr1/ClinicAppt | /Clinic/View/MainDashboardNurse.cs | 2.515625 | 3 | using Clinic.UserControls;
using Clinic.Model;
using System;
using System.Windows.Forms;
namespace Clinic.View
{
/// <summary>
/// This class is the main location for all tabpages and usercontrols for the Clinic application
/// </summary>
public partial class MainDashboardNurse : Form
{
pu... |
ae4b52f20bab6d4ba8a2a1bc2761c979fcf0fc49 | C# | mennowo/TLCGen | /TLCGen.Dependencies/TLCGen.Dependencies/Integrity/TLCGenIntegrityChecker.cs | 2.578125 | 3 | using System;
using System.Collections;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using TLCGen.Models;
using TLCGen.Models.Enumerations;
namespace TLCGen.Integrity
{
public static class TLCGenIntegrityChecker
{
public static int CompareSignalGroups(string sg1Nam... |
ead3519d5222b80d5197b719b7a195a5dce7e24e | C# | SheldonGlass/hello-world | /NUnit3Samples/5. Parameterized Tests/B. TestCaseSource/1. Arrays/GivenWeHaveACalculatorObject.cs | 3.15625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using NUnit3Samples._5._Parameterized_Tests.A._TestCase;
namespace NUnit3Samples._5._Parameterized_Tests.B._TestCaseSource._1._Arrays
{
[TestFixture]
public class GivenWeH... |
df292090356229b345fac66d8d7cb22497395b2f | C# | Azure/azure-webjobs-sdk | /src/Microsoft.Azure.WebJobs.Host/Triggers/ITriggerBindingStrategy.cs | 2.78125 | 3 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using Microsoft.Azure.WebJobs.Host.Bindings;
namespace Microsoft.Azure.WebJobs.Host.Triggers
{
/// <summary>
/... |
abfe48c8bcf1ec1f48cd75031f3a4fba6a3dadce | C# | grancala/ASQL-Group-Project | /project/project/Logging.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace project
{
/// <summary>
/// Logs to a file specified in the config file
/// </summary>
public static class Logging
{
public static string FileName ... |
74494226bf52724be62cd16cb47ab439fdba516e | C# | praschl/Ruler | /Ruler/Converters/OrientationToBooleanConverter.cs | 2.984375 | 3 | using System;
using System.Globalization;
using System.Windows.Controls;
using System.Windows.Data;
namespace MiP.Ruler.Converters
{
public class OrientationToBooleanConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
... |
9cb55d5c6be755504042bfe31b50cff5cd4cb4c8 | C# | MeckeJadeHS/Datenstrukturen | /FormDemo/Quadrat.cs | 3.359375 | 3 | using System;
namespace FormDemo
{
public class Quadrat : Form
{
private double x, y;
private double seitenlaenge;
public Quadrat()
{
seitenlaenge = 0;
x = 0;
y = 0;
}
public Quadrat(double a)
{
seitenlae... |
6bb761c4ed24123c38750942f21ebadc7d05bfb3 | C# | SanLin-He/MeshSample | /Assets/02CreateSimple3dObj/Scripts/N04_CreateTetrahedronUVMappng.cs | 2.640625 | 3 | using UnityEngine;
using System.Collections;
//https://blog.nobel-joergensen.com/2011/04/05/procedural-generated-mesh-in-unity-part-2-with-uv-mapping/
//UV mapping 基础:
//1.所谓UV mapping指的是3D物体的表面与2D文理图片的坐标映射
//2.3D物体mesh的每个顶点都有个UV坐标(地球仪上经纬线)
//3.UV坐标体系中(0.0,0.0)对应文理图片左下角,(1.0,1.0)对应文理图片右上角
//4.如果坐标超出了0~1的范围,那么坐标的算法要么a... |
d7c608d62fe36b0554d72bd8accfc405bea2b46f | C# | SefNJ/HCatalystTest | /TestAPI.cs | 2.828125 | 3 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text.Json;
using Newtonsoft.Json;
namespace HCatalystTest
{
[TestClass]
publ... |
bd003a8ce6efba50c95d0da61882e162b9defb43 | C# | stpr18/kcipher2-expr | /Kcipher2Expr/Expression/FuncCall.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Kcipher2Expr.Expression
{
public class FuncCall : Expr
{
private string name;
private Expr[] exprs;
private FuncCall() { }
public FuncCall(string name,... |
836c6be75cea6af8d3fe81ad348f66c1fec67c41 | C# | exceptionless/Exceptionless.Net | /src/Exceptionless/Extensions/ExceptionExtensions.cs | 2.59375 | 3 | using System;
using System.Linq;
using System.Reflection;
using Exceptionless.Models;
using Exceptionless.Plugins;
namespace Exceptionless {
public static class ExceptionExtensions {
/// <summary>
/// Creates a builder object for constructing error reports in a fluent api.
/// </summary>
... |
685df928da99be4912ca8319961d9230ec5d8e3a | C# | SergeyBednyuk/Patterns | /CreationPatterns/DZCreatePatterns/FactoryMethod/IDay.cs | 3.484375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FactoryMethod
{
abstract class IDay
{
Dictionary<DateTime, string> _dailyRoutine = new Dictionary<DateTime, string>();
public void SetDailyRoutine(DateTime time, strin... |
5dd5f0fc6413b92967788a613086cbe0d901e166 | C# | bubdm/ULogViewer | /ULogViewer/Converters/RatioToPercentageConverter.cs | 2.984375 | 3 | using Avalonia.Data.Converters;
using System;
using System.Globalization;
using System.Text;
namespace CarinaStudio.ULogViewer.Converters
{
/// <summary>
/// <see cref="IValueConverter"/> to convert ratio to percentage.
/// </summary>
class RatioToPercentageConverter : IValueConverter
{
// Fields.
readonly i... |
6c9cac1f371ef5f4e2935300d77a9edee380ec00 | C# | thienbv1301/RabbitMQ-Tutorial | /Topic/EmitLogTopic/Program.cs | 3.03125 | 3 | using RabbitMQ.Client;
using System;
using System.Linq;
using System.Text;
namespace EmitLogTopic
{
class Program
{
public static void Main(string[] args)
{
var factory = new ConnectionFactory() { HostName = "localhost" };
using(var connection = factory.CreateConnection())
... |
2926aa59c4a0853ac527690cc81f00e0102cd246 | C# | wishywashychamp/codeReviewGameDev | /Scripts/TradingTowers/UpgradeTowerScript.cs | 2.609375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
// Inheriting from parent abstract class to share the same functionality
public class UpgradeTowerScript: GeneralTowerTradeScript
{
// Overrideing the parent`s OnPointerClick function, if this ... |
54d5384acf61963915cff3ce77df88d4b40a7846 | C# | plhandfield/TP_Graphisme | /Arkanoid/Entities/Paddle.cs | 2.78125 | 3 | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Arkanoid.Entities
{
public class Paddle : IWorldObject
{
private const float z = 29; //Position ... |
016b92c270bb18912d4b9fc6a324179846edd5e3 | C# | Tee787/WEEK.7 | /Tsk1MedalsArray/Tsk1MedalsArray/Program.cs | 3.84375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tsk1MedalsArray
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("*******************************************************");
... |
b0729e732f8d81b7fe433b9a7dd7f8503eb73d7d | C# | mattreynolds84/MyCoolApp | /MyCoolApp/Person.cs | 3.328125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace MyCoolApp
{
public class Person
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName... |
167fa31b06c6ab8b50189f67bbb2e05398a3bdce | C# | awsassets/MeshNetwork | /MeshNetwork/MessageResponseResult.cs | 3.171875 | 3 | using System.Threading;
namespace MeshNetwork
{
/// <summary>
/// Represents the result of sending a message and waiting for a response.
/// </summary>
public class MessageResponseResult
{
/// <summary>
/// An object to lock on.
/// </summary>
private readonly objec... |
15c503077eaf4c456524a19dd5715b07e2615753 | C# | TohaMakarenko/PZKS | /ExpressionEngine/NodeBinary.cs | 3.546875 | 4 | using System;
namespace ExpressionEngine
{
// NodeBinary for binary operations such as Add, Subtract etc...
public class NodeBinary : Node
{
// Constructor accepts the two nodes to be operated on and function
// that performs the actual operation
public NodeBinary(Node left, Node r... |
3d21b7d4ae28774d03288ea6d2dd10c85eb51628 | C# | PlumpMath/DesignPatternSamples-5 | /DesignPatternSamples/com/headFirst/designpatterns/creational/absfactory/Sample2/SpareParts/Transmission.cs | 2.65625 | 3 | namespace Com.HeadFirst.DesignPatterns.Creational.AbstractFactory.Sample2.SpareParts
{
abstract class Transmission
{
protected abstract string getString();
public override string ToString()
{
return getString();
}
}
class AutoTransmission : Transmission
... |
4768437e747362ad743d31bd4048b706f40b748b | C# | HamletHakobyan/tomsoft | /ProjectEuler/ProjectEuler/Problem39.cs | 3.21875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Developpez.Dotnet.Collections;
namespace ProjectEuler
{
class Problem39 : IEulerProblem
{
#region IEulerProblem Members
public object GetSolution()
{
// ABC triangle, ... |
bc0aa92e5ad34009c631425fe6b2d1714ba7a153 | C# | MehrajLatifli/Point-and-Counter-class | /Point and Counter class/Program.cs | 3.484375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace XY
{
class Point
{
private int x;
private int y;
public Point(int x, int y)
{
SetX(x);
SetY(y);
... |
22ba32c2721fdc29e67ec87ef1611b8bfede4660 | C# | saveenr/saveenr | /Demos/genetic_autorectlayout-1.0/geneticfx-1.0/geneticutil.cs | 2.859375 | 3 | using System;
using System.Diagnostics;
namespace geneticfx
{
public class GeneticUtil
{
public static void PickCrossOverPoints( IChromosome cs, out int left, out int right )
{
System.Random r = new Random();
int chromosome_length = cs.GetLength();
left = r.Next(0,chromosome_length-1);
right = r.Nex... |
afe5102d495659f28e40b420905bb3b243c0e625 | C# | WorkinNTN/EntertainMe | /EntertainMe/Infrastructure/Repositories/EntertainMeRepository.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using LiteDB;
using LiteDB.Engine;
using EntertainMe.Domain.Abstracts;
using EntertainMe.Domain.Entities;
using EntertainMe.Domain.ValueObjects;
using EntertainMe.Infrastructure;
namespace EntertainMe.Infrastructu... |
eb464d35331e064ea8a4e9d788aaff8c22fd9f0c | C# | qube7/qcomposite | /Qube7.Common/ComponentModel/CancelableEventArgs.cs | 3.234375 | 3 | using System;
using Qube7.Threading;
namespace Qube7.ComponentModel
{
/// <summary>
/// Provides data for an event that conditionally supports cancellation.
/// </summary>
public class CancelableEventArgs : EventArgs
{
#region Fields
/// <summary>
/// A value indicating wh... |
d7ed4337383255d9bead66cf4ed615756b890739 | C# | aydinfurkan/Tesodev-Staj | /ConsoleApp1/Titanic/Stats/ByPclass.cs | 2.96875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Titanic.Stats
{
public class ByPclass : IStat
{
private List<int> SurviveByPClass;
private List<int> DeathByPClass;
public int Size { get; }
public ByPclass()
{
SurviveByPC... |
4cc1ddf2e755bdd9a9316167ad63400133d7227f | C# | bryanlayderos/decorator | /Decorator.Tests/LoggingBehaviorTests.cs | 2.828125 | 3 | namespace Decorator.Tests
{
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
[TestClass]
public class LoggingBehaviorTests
{
private readonly string sampleString = "ABCD";
private readonly Mock<ILogger> debugLoggerMock = new Mock<ILogger>()... |
389e52dd129bfb8ed481dc7c50879ef086fb8c49 | C# | gsanchezolea/SweepstakesProject | /Sweepstakes/Sweepstakes.cs | 3.625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sweepstakes
{
public class Sweepstakes
{
//Member Variables
private Dictionary<int, Contestant> contestants;
private string name;
public string Na... |
363e2f55f406fa0e5bd9eaa1f6da57c10e2b370d | C# | MatheusPetrachin/LinearSystemCalculator | /GaussJacob/Program.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
namespace GaussJacob
{
class Program
{
static int N = 0;
static double erro = 0;
static double[] B = new double[30];
static double[] G = new double[30];
static double[] X0 = ne... |
01d3d763d820fc4bf5c8fc91d56e9f545d50f927 | C# | stoian1929/SoftUni | /CSharpBasics/Loops/Odd_and_Even_Product/OddandEvenProduct.cs | 3.984375 | 4 | using System;
class OddandEvenProduct
{
static void Main()
{
string[] numbers = Console.ReadLine().Split();
int sumOdd = 1;
int sumEven = 1;
for (int i = 0; i < numbers.Length; i++)
{
if (i % 2 == 0)
{
sumEven *= int.Parse(numbers... |
f44b90f46b0dd618fffd7d92bb5c31fcf677c90b | C# | sebdeveloper6952/EstructuraDatosYAlgoritmos | /S (7)/PrimerParcial/CUtilities.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
namespace PrimerParcial
{
public class CUtilities
{
public static void FillListView<T>(ListView lv, List<T> list)
{
lv.Items.Clear();
... |
1bd82c122ae2cf1569a7a002b7dc7a1df7dd7704 | C# | TinyTeaTree/Crimson-Land | /Assets/Arsenal/Managers/Input Manager/KeyCodeDriver.cs | 2.5625 | 3 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.Events;
public class KeyCodeDriver : MonoBehaviour {
[System.Serializable]
public class EventKeyPair {
public UnityEvent keyDownEvent;
public UnityEvent keyUpEvent;
public KeyCode key;
... |
10369eafccebb34a7ccd2b5cbaf310af2a523fc9 | C# | try-inf/XT-2018Q4 | /Epam.Task01/Epam.Task01.AverageStringLength/Program.cs | 4.03125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Epam.Task01.AverageStringLength
{
public class Program
{
public static void Main(string[] args)
{
string str = "\"woman, without her man, is nothing\" (emph... |
d617830f45908aeac63b8c72e75b919d6778530a | C# | WatsonJay/student-system | /LibraryDAL/bookop.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
namespace LibraryDAL
{
public class bookop
{
#region 书本数据
public static SqlDataReader bookinfoout()
{
SqlConnection conn = LibraryDAL.Dbconn... |
32690f9df8771eb605fd7bb87710b64b07a3b8f2 | C# | HarunDilukaHeshan/KnBPrototype01 | /Knb.DataStorage/Storage/ProcessedDataFilesStorage/ProcessedDataFilesEnum.cs | 2.796875 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace Knb.DataStorage.Storage
{
class ProcessedDataFilesEnum : IEnumerable<byte[]>
{
protected string FileUri { get; }
protected int ChunkSize { get; }
public ProcessedDat... |
113d3e3d069d37b7e27edc8a2a79ef431a7c8479 | C# | BrianGeraghty/BankMachineApplication | /BizLogic/TransferFundsException.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BizLogic
{
public class TransferFundsException : Exception
{
private BankAccount account;
public TransferFundsException(BankAccount account)
: base("FromAc... |
d001234a5149908457f993d4b88146f0335f965b | C# | slabit/MicroGameFramework | /Assets/Bento/GK/0/Angle/Angle2DUtility.cs | 3.109375 | 3 | using UnityEngine;
namespace gk
{
public static class Angle2DUtility
{
public static float DistanceBetweenAngleSigned(float angleFrom, float angleTo)
{
return ExpressAngleBetween180AndMinus180(angleTo) - ExpressAngleBetween180AndMinus180(angleFrom);
}
public static float ExpressAngleBetween180AndMinus180... |
7159fb06ff3771b114a5e22a4c313a2d929398fa | C# | eduardocs09/back-end-take-home | /src/Routes.Application/Validation/Validator.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using Routes.Core.Entities;
namespace Routes.Application.Validation
{
public class Validator
{
public static void Validate(string origin, string destination)
{
string message = string.Empty;
if (string.... |
7b2e6a868300733bf36c3579657f8c8928805185 | C# | kostyrin/StoreMVC | /StoreMVC/Controllers/AdminController.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using StoreMVC.Domain.Abstract;
using StoreMVC.Domain.Entities;
namespace StoreMVC.Controllers
{
public class AdminController : Controller
{
private IProductRepository _repository;
publi... |
c0f6273647ea79b394326d96d4a727f5ab364efa | C# | isukces/isukces.UnitedValues | /app/UnitGenerator/+algebraMultiplication/OperatorGenerationKey.cs | 3.0625 | 3 | using System;
using iSukces.UnitedValues;
namespace UnitGenerator
{
internal class OperatorGenerationKey : IEquatable<OperatorGenerationKey>
{
public OperatorGenerationKey(string left, string right, string oper)
{
left = left.TrimToNull();
right = right.TrimToNull();
... |
262db4aee7e60b67d7b9b50ce0a4ad5b05033636 | C# | frostitvte/SAS | /BusinessObjects/AutoNumberBAL.cs | 2.546875 | 3 | using System;
using System.Text;
using System.Transactions;
using System.Collections.Generic;
using HTS.SAS.Entities;
using HTS.SAS.DataAccessObjects;
namespace HTS.SAS.BusinessObjects
{
/// <summary>
/// Business Class to handle all the AutoNumber Methods.
/// </summary>
public class AutoNumberBAL
... |
8c70b52d4e420a942a0009cdeed8703409dfa210 | C# | teobaranga/VikingMaze | /Assets/_Common/Scripts/ScreenFlasher.cs | 2.546875 | 3 | using UnityEngine;
using System.Collections;
public class ScreenFlasher : MonoBehaviour {
public float ScreenFlashDuration = 0.1f;
private float elapsedTime = 0;
private bool flashScreenNow = false;
// Update is called once per frame
void Update () {
elapsedTime += Time.deltaTime;
if(flashScreenNow) {
... |
352245997dfe47d60e8bdbe5fadd0bcfc727a194 | C# | AutomaticRun/Ponytail | /Ponytail.Core/Signal.cs | 3.34375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ponytail.Core
{
/// <summary>
/// Signal class, it can detect rising edge and falling edge.
/// </summary>
public class Signal
{
/// <summary>
/// The old s... |
151c1feb77d89e2e2dfaab0e9de4441eb1875b63 | C# | baijinshuo/Snake-Game | /Snake Game/Snake/snake.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Drawing;
namespace 贪食蛇
{
public class snake
{
public ArrayList alist;
public ArrayList plist;
public Point headpoi... |
250996d3c3e4d285f64b9f180b8f46650c5a478d | C# | StephenMcFarland/GoldBadgeChallenges | /03_Challenge/OutingRepository.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _03_Challenge
{
public class OutingRepository
{
List<Outing> _outingsList = new List<Outing>();
Outing _outing = new Outing();
public void AddOuti... |
2bd9a091ff6140415ac97f30b40766d60d0e7c50 | C# | Nu11Undefined/GameOfLife | /GameOfLife/Renderers/GLRenderer.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing;
using SharpGL.Enumerations;
using SharpGL;
namespace GameOfLife
{
public class GLRenderer:RenderWindow
{
Op... |
5572523700e9286b58697c960ecb16ae685735ba | C# | Silvenga/UnitTestingExample | /UnitTestingExample.Tests/BaseExamples/E2_XUnit_Helpers.cs | 2.703125 | 3 | namespace UnitTestingExample.Tests.BaseExamples
{
using System;
using System.Threading;
using Xunit;
// ReSharper disable once InconsistentNaming
public class E2_XUnit_Helpers
{
// [ ] Log to console using ITestOutputHelper
[Fact]
public void Write_to_console()
... |
9e3b612510ff11a0d344d8be20203e96ad622827 | C# | hornoo/IN710hornerb1 | /StackStringPractical/UnitTestStackClass/UnitTest1.cs | 3.09375 | 3 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using StackStringPractical;
namespace UnitTestStackClass
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void Count_ofAnEmptyStack_Returns0()
{
Stack testStack;
tes... |
b7c028a89e5ce6431bb5565673f9b10f28af5d05 | C# | eddiealien/Sprint | /SprintWebCS/CadastrarMateria.aspx.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SprintWebCS.Models;
namespace SprintWebCS
{
public partial class CadastrarMateria : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)... |
e5d909b2492aab2f3e1d91077ac3fbdc167aaf86 | C# | ProstOleg/Interactive-guide-3D | /Assets/Scripts/Main.cs | 2.546875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Linq;
/// <summary>
/// Основной управляющий скрипт. Должен присутствовать на игровой сцене
/// </summary>
[DisallowMultipleComponent]
public sealed class Main : MonoBehaviour
{
public InfoPanel infoPanel;
public TopPan... |
0abddd853eb0e41b42a2e7b202e6c54139a35e18 | C# | LudmilD/C-Sharp-1 | /ExamPrep/Exam 1 problems 5/Lines01/Lines01.cs | 3.421875 | 3 | using System;
class Program
{
static void Main()
{
int n = 8;
char[,] grid = new char[n, n];
char[] line = new char[n];
for (int row = 0; row < n; row++)
{
int num = int.Parse(Console.ReadLine());
line = Convert.ToString(num, 2).PadLeft(n, '0').T... |
348768984170bc6da0771df16994028f37a4d7b4 | C# | Iamabdul/day3_cSharp | /polymorphism1/polymorphism1/Program.cs | 4.28125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace polymorphism1
{
class Program
{
class Car1
{
//using the virtual keyword on the METHOD to state that it can be overridden
public virtual void... |
e9957cac091808fd545871194cffab657627624a | C# | rushfive/DDD_Eval | /Campaigns/Campaigns.Domain/ValueObjects/CampaignName.cs | 2.703125 | 3 | using Framework;
using System;
using System.Collections.Generic;
using System.Text;
namespace Campaigns.Domain.ValueObjects
{
public class CampaignName : Value<CampaignName>
{
public string Value { get; }
public CampaignName(string value)
{
if (string.IsNullOrWhiteSpace(value))
throw new ArgumentExcep... |
a544956f2ad20f1178dfe55f751f71cdd170dca7 | C# | Nelvin73/Schule | /Model/Stundenplan.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Groll.Schule.Model
{
public enum Wochentag { Montag = 1, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag, Sonntag }
public struct Stundenbez... |
9df1e7aa3bb914fc2167d5cb038a02836a58390f | C# | gsongX/security_tool_plugins | /Finger/Finger/Webrequester.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
namespace FingerCheck
{
//web请求类
class Webrequester
{
public static string url = "";
public static WebHeaderCollection Header = new WebHeaderCollection();
publi... |
e887d909c6ab9e7aad62789812585a5d8bd24f7a | C# | shendongnian/download4 | /code3/497820-11402865-26516817-2.cs | 3.359375 | 3 | byte[] byteArray = new byte[1000000];
for (int i = 0; i < byteArray.Length; i++)
{
byteArray[i] = Convert.ToByte(DateTime.Now.Second);
}
Stopwatch stopWatch = new Stopwatch();
//#1 Manually creating and populating a new array;
stopWatch.Start();
... |
c5010d9658500233c1caec0feaa92c51126b762e | C# | x0y14/JsonLoaderCS | /JsonLoaderCS/String2NumberConverter.cs | 3.296875 | 3 | using System;
namespace JsonLoader
{
public class String2NumberConverter
{
private string Original { get; }
private int Pos { get; set; }
private static string Target { get; set; }
private bool Minus { get; }
private bool Float { get; }
private int DecimalPoint {... |
d8f1f8684ac2aae9a7c2e317c997e192a2b527de | C# | marcobarao/Alexandria | /Alexandria/Logic/Bucket/BucketFactory.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Alexandria.Logic.Player;
namespace Alexandria.Logic.Bucket
{
interface IBucketFactory : IFactory<Bucket>
{
Dictionary<int, Bucket> Create(string response, int quantity);
}
... |
eaac9479f779d327ea73fae9f9eae57b3cb461ba | C# | JulesAaelio/labyrinth-dotnet | /Cell.cs | 2.984375 | 3 | using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Shapes;
namespace LABYRINTH
{
public class Cell
{
private int posX;
private int posY;
private int client... |
b05e9e0d4e7d971acc415cca24044f59fe09848b | C# | ijrussell/Outside-In-TDD | /BankKataOutsideInTDD/BankKata/StatementPrinter.cs | 3.3125 | 3 | using System.Collections.Generic;
namespace BankKata
{
public class StatementPrinter : IStatementPrinter
{
private readonly IConsole _console;
public StatementPrinter(IConsole console)
{
_console = console;
}
public void PrintStatement(List<Transaction> tra... |
eb6bcd5d61780d1ded4a2f38f5e0aecf2855d927 | C# | Nimaoth/3DPlatformer | /3DPlatformer/Assets/Scripts/GameData.cs | 3.28125 | 3 | using System.ComponentModel;
public class GameData
{
private static GameData instance;
public delegate void LivesChangedHandler(int lives, int old);
public delegate void ScoreChangedHandler(int score, int old);
public delegate void PausedChangedHandler(bool paused);
private int _score;
priv... |
62c101379d23407905ab1f088da870e69d10a5dc | C# | aserialbug/SortingDemo | /sort/Infrastructure/FileMerger.cs | 2.78125 | 3 | using System.Collections.Generic;
using System.IO;
using sort.Application;
namespace sort.Infrastructure
{
public class FileMerger
{
private readonly LineTransformer _lineTransformer;
private readonly Options _options;
public FileMerger(LineTransformer lineTransformer, Options options... |
ae836571953b86edd9ecef9385685fea2750848f | C# | shendongnian/download4 | /first_version_download2/176850-13310363-31623803-2.cs | 3.203125 | 3 | namespace SchoolXml
{
using System.Xml.Linq;
using System.Collections.Generic;
class Program
{
private const string xml =
@"<educationSystem>
<school>
<name>Primary School</name>
<students>
<student id=""1234567... |
b5fa89786e8174c2ec7e9b3129f4f3d1d4481f05 | C# | ahmad2smile/DSystem | /GrpcClient/Program.cs | 2.765625 | 3 | using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Cart;
using Grpc.Net.Client;
namespace GrpcClient
{
class Program
{
private const string CartServer = "http://cart:5001";
static void Main(string[] args)
{
Console.WriteLine("W... |
8aeceb5c7f3ddba4253a700ea9d22e076742ecfc | C# | al-co-js/Lucid-Dream | /Lucid Dream/Classes/Picture.cs | 3.109375 | 3 | using System;
using System.Globalization;
using System.IO;
using System.Linq;
namespace Lucid_Dream.Classes
{
public static class Picture
{
public static void Delete()
{
var pic = Directory.GetFiles(@"C:\Lucid Dream\", "*.png").Select(Path.GetFileName).ToArray();
foreac... |
303e989b9dc158fda88eac2b7d36115929d26623 | C# | tophatsteve/ToyRobot | /ToyRobot/Logic/PositionValidator.cs | 3.09375 | 3 | using ToyRobot.Models;
namespace ToyRobot.Logic
{
public class PositionValidator : IPositionValidator
{
private int _minimumX;
private int _maximumX;
private int _minimumY;
private int _maximumY;
public PositionValidator(int length, int width)
{
_mi... |
2dcf372ff4572c5ce16162fa068a0fb5b0316add | C# | julien-ur/TakeTheBroom | /Assets/Scripts/Player/BroomHardwareInput.cs | 2.625 | 3 | using System.Collections;
using UnityEngine;
using UnityEngine.VR;
/*
* This script parses a textfile containing sensor data which was generated by an external python script.
* The textfile is formatted "int int int int " and the data is ordered top, bottom, left, right.
* The unit of each int in the textfile is k... |
5818824ea6a190ddf744c4b5c0949327a31b0785 | C# | vgdcokstate/LastPinataStanding | /Assets/Scripts/GameManagers/Loader.cs | 2.546875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
/*
* Loads scenes through load function
*/
public class Loader : MonoBehaviour {
public Image loadingScreen;
public Text percent;
public float transitionRate = 0.1f;
... |
69e2e3ff07dc03d5e29657d83cb1a0d0d861102d | C# | rxDerek96/MovieShop | /Infrastructure/Services/MovieService.cs | 2.65625 | 3 | using ApplicationCore.Models.Request;
using ApplicationCore.Models.Response;
using ApplicationCore.RepositoryInterfaces;
using System.Collections.Generic;
using ApplicationCore.ServiceInterfaces;
using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ApplicationCore.Entities;
namespac... |
2c6010ca8ee47cb5c985328d31843b4f40b7224b | C# | rhom6us/Mime | /Butler.Schema.Globalization/Charset.cs | 2.515625 | 3 | namespace Butler.Schema.Globalization {
[System.Serializable]
public class Charset {
internal Charset(int codePage, string name) {
this.CodePage = codePage;
this.Name = name;
this.Culture = null;
available = true;
mapIndex = -1;
}
... |
36639c2e8119822c8e83a20b76e2988af3f46d5a | C# | Snjeza2104/Learning-C- | /Proizvod klasa/Proizvod klasa/Program.cs | 3.5 | 4 | using System;
namespace Proizvod_klasa
{
class Program
{
static void Main(string[] args)
{
Proizvod proizvod = new Proizvod();
proizvod.NaIzracunCijene += new Proizvod.NaIzracunCijeneDelegat(proizvod_NaIzracunCijene);
Console.Write("Unesite naziv proizvoda: ... |
b475e846873b95b05f67fdb9ff6db001476f95c8 | C# | cakhanif/Pemilukada2015 | /Sosialisasi_Pemilukada/Source/berita.cs | 2.65625 | 3 | using Sosialisasi_Pemilukada.Database;
using System.Data.SQLite;
namespace Sosialisasi_Pemilukada.Source
{
public class berita
{
private db_connect connect;
private string _query;
public string nama { get; set; }
public string headline { get; set; }
public string url_v... |
535e82eec84bdaffae7f6e928927480751e0c85b | C# | mameyer/SpotifyApi.NetCore | /src/SpotifyApi.NetCore/ArtistsApi.cs | 2.796875 | 3 | using SpotifyApi.NetCore.Authorization;
using SpotifyApi.NetCore.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
namespace SpotifyApi.NetCore
{
/// <summary>
/// Endpoints for retrieving information about one or more artists from ... |
858ba654d1d3bd49652a82e3f58404375bcae230 | C# | scalablecory/NetworkToolkit | /NetworkToolkit/IntrusiveLinkedList.cs | 3 | 3 | using System.Diagnostics;
namespace NetworkToolkit
{
internal struct IntrusiveLinkedList<TNode> where TNode : class, IIntrusiveLinkedListNode<TNode>
{
private TNode? _first, _last;
public TNode? Front => _first;
public TNode? Back => _last;
public void PushFront(TNode node)
... |
8762bec23f1d0b1b229233df475cec1c62ce0605 | C# | Jangelovski91/CSharp---Homeworks | /Basic/Class 07 Homework - Inheritance/VehicleLibrary/Models/WheeledVehicle.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace VehicleLibrary
{
public class WheeledVehicle : Vehicle
{
public int NumberOfWheels { get; set; }
public string Type { get; set; }
public virtual void Repair()
{
Console.WriteLine($"The vehi... |
83952fd004d778f153f27c09021d16f9dbac1f58 | C# | jvinyl/scripting-1600 | /Enumerations/Assets/EnumDemonstrate.cs | 2.609375 | 3 | using UnityEngine;
using System.Collections;
public class EnumDemonstrate : MonoBehaviour {
enum Weekdays {Sunday, Monday, Tuesday};
Weekdays myday1;
// Use this for initialization
void Start () {
myday1 = Weekdays.Sunday;
myday1 = nextDay (myday1);
}
Weekdays nextDay (Weekdays next)
{
if (next =... |
907e0d27bd5d3fd1d8a8472e8efb17264c93c145 | C# | adlerpagliarini/EFCoreSamples | /EFCoreSamples/Dtos/SkillDto.cs | 2.65625 | 3 | namespace EFCoreSamples.Domain
{
public class SkillDto
{
public SkillDto(string title)
{
Title = title;
}
public string Title { get; set; }
public static SkillDto Map(Skill domain) => domain is null ? default :
new SkillDto(domain.Title);
}
... |
c3048e3fa3959bd750a43865f86890ff212e5b8d | C# | AlexeyRabochy/DotNet | /Palindrome/Palindrome/Main.cs | 3.859375 | 4 | using System;
namespace Palindrome
{
class Program
{
public static void Main()
{
while(true)
{
Console.WriteLine("Type a string to check it for palindrome, type 'quit' to exit the program");
var s = Console.ReadLine();
... |
a495eb7006062abddae0f3ea6e8ab47fd8bc51a2 | C# | Krzysztof101/ASE_Gryko_project2 | /RecommendorsSystem/RecommendorsSystem/FormViewBook.cs | 2.734375 | 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 RecommendorsSystem
{
public partial class FormViewBook : Form
{
public FormVie... |
cdce3952b33f69c45cba46937002fc447a880f80 | C# | andrew10042001/FootballTeam | /FootballTeam/InfoAboutForm.cs | 2.796875 | 3 | using FootballTeam.Entities;
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 FootballTeam
{
public partial class InfoAboutForm : Form
... |
e62192b0c99cf64466c99f412e4c2df6674b0a48 | C# | BradleyNeild/CSProjReal-master-master | /Game3/Room Related/Walls.cs | 2.515625 | 3 | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace Game3
{
public class Walls:BaseObject
{
public static int wallSize = 64;
... |
95325b85787a1045feb699d73c6e619acf078dc5 | C# | janfokke/MonoGame.Extended | /src/dotnet/MonoGame.Extended.Graphics/Batcher.cs | 2.5625 | 3 | using System;
using System.Runtime.CompilerServices;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace MonoGame.Extended.Graphics
{
/// <summary>
/// Minimizes draw calls to a <see cref="GraphicsDevice" /> by sorting them and attempting to merge them together
/// bef... |
4bcbc584a0fe8f060bf728d0d1a999697011977d | C# | pchaderton/DomainDrivenGameEngine.Media.OpenTK | /src/DomainDrivenGameEngine.Media.OpenTK/Models/LoadedMusic.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using DomainDrivenGameEngine.Media.Models;
using OpenTK.Audio.OpenAL;
namespace DomainDrivenGameEngine.Media.OpenTK.Models
{
/// <summary>
/// A loaded piece of music.
/// </summary>
... |
40f7d75b7a2c2c74cef765462784d59adc8bb2b1 | C# | Bronzite/NetworkingSimulation | /NetworkSimulation/EthernetFrame.cs | 3.078125 | 3 | using System;
namespace NetworkSimulation
{
public class EthernetFrame
{
public MACAddress SourceAddress { get; set; }
public MACAddress DestinationAddress { get; set; }
public UInt16 Length { get; set; }
private byte[] mPayload;
public byte[] Payload {
get... |
014e3ca1a6615123ad741987877f8755c1056151 | C# | gpavlovych/SampleDesktopApp | /MyApplication.Desktop/ViewModels/TTbCRowViewModel.cs | 2.671875 | 3 | using MyApplication.Desktop.Data;
using MyApplication.Desktop.Services;
namespace MyApplication.Desktop.ViewModels
{
/// <summary>
/// View model for TTbC Row
/// </summary>
/// <seealso cref="MyApplication.Desktop.ViewModels.RowViewModelBase" />
public class TTbCRowViewModel : RowViewModelBase
... |
55a013fee1907c2e36528662d11c1974ffa52f58 | C# | hristinaStanoeva/TelerikWorkshops | /Conditionals/DogAge/DogAge.cs | 4.34375 | 4 | using System;
namespace Practice
{
class DogAge
{
static void Main(string[] args)
{
//Most people believe that 1 human year(HY) equals 7 dog years(DY), however, dogs reach adulthood in approximately 2 human years.
//So it's better to count the first two HY as 10 DY each... |
1a5f5c91a919de909de1c0984ec57d5a53227022 | C# | box/box-windows-sdk-v2 | /Legacy/Box.V2.Controls.WP/BoxItemPicker.cs | 2.546875 | 3 | using Box.V2.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
#if NETFX_CORE
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls.Primitives;
#endif
#if WINDOWS_PHONE
using Microsoft.Phon... |
f90f07edb8090454899cb0846def96eba0bd7430 | C# | oliverhanappi/valeq | /src/Tests/Reflection/TypeComparatorTests.cs | 2.546875 | 3 | using System;
using System.Linq;
using NUnit.Framework;
namespace Valeq.Reflection
{
[TestFixture]
public class TypeComparatorTests
{
[TestCase(typeof(A), typeof(B), ExpectedResult = -1)]
[TestCase(typeof(B), typeof(A), ExpectedResult = 1)]
[TestCase(typeof(A), typeof(A),... |
4d5cc337a3ace202c19fd31786527117157c0333 | C# | psliurt/HttpRS | /HttpRS/HttpSender.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
using Newtonsoft.Json;
namespace HttpRS
{
/// <summary>
/// 用來發送Http Request的物件
/// </summary>
public class HttpSender
{
private HttpWebRequest _request;
... |
cd4cd42fe174d3211f8aba15eeebb28e338a6374 | C# | asine/DownmarkerWPF | /src/MarkPad/Document/SpellCheck/SpellingService.cs | 2.796875 | 3 | using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using NHunspell;
namespace MarkPad.Document.SpellCheck
{
public class SpellingService : ISpellingService
{
static readonly Dictionary<SpellingLanguages, string> LangLookup;
readonly MultiHunspell spel... |
9cd25fa53ae15bd738ad47067cde847f2f4c198a | C# | nimnimnim/Terrence | /Terrence/Services/GoogleSearchByImage.cs | 2.53125 | 3 | using System;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Text;
namespace Terrence.Services
{
[TerrenceService("google")]
class GoogleSearchByImage : ITerrenceService
{
private const string RequestUrl = "http://www.google.com/searchbyimage/upload";
private con... |
17d501007b585da26c6f6df50c9ab569ab476db6 | C# | handiman/fail-better | /src/fail-better-tests/CustomAsserts/XElementEquivalentToConstraint.cs | 2.71875 | 3 | using Microsoft.XmlDiffPatch;
using NUnit.Framework.Constraints;
using System.Xml.Linq;
namespace Fail.Better.CustomAsserts
{
public sealed class XElementEquivalentToConstraint : Constraint
{
private readonly XElement _expectedElement;
private readonly XmlDiff _diff;
internal XElement... |
476bcb6438f473dd77adfa204de7b8e26496ecdc | C# | StefanWentink/SoftWareEssentials | /SWE.Http/Extensions/TokenExtensions.cs | 2.984375 | 3 | namespace SWE.Http.Extensions
{
using SWE.Http.Interfaces;
public static class TokenExtensions
{
/// <summary>
/// Returns if <see cref="ISecurityToken"/> is unusable when <see cref="ISecurityToken.Schema"/> or <see cref="ISecurityToken.Parameter"/> are empty.
/// </summary>
... |