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 |
|---|---|---|---|---|---|---|
a9a20cc608ab3c42f1724cc798b8bd39609a262e | C# | shakuu/Exams | /DBEXAM/Databases-and-sql-description/DbExam-10/DbExam/DbExam.Data.JsonImporter/Converters/SuperHeroConverter.cs | 2.75 | 3 | using System.Collections.Generic;
using DbExam.Data.JsonImporter.Converters.Contracts;
using DbExam.Data.JsonImporter.JsonModels;
using DbExam.Models;
using System;
using System.Linq;
namespace DbExam.Data.JsonImporter.Converters
{
/*{
"name": "Batman",
"secretIdentity": "Bruce Wayne",
"city": {
"name": "Gotham"... |
1470808e28971e01fc6b606b934ed623826f782e | C# | yogirajshakya/SMS | /iMailerData/code/iMailer/Emailer/MailMergeLib/PlainBodyBuilder.cs | 2.65625 | 3 | using System.Net.Mail;
using System.Net.Mime;
namespace Infolancers.iMailer.Emailer
{
internal class PlainBodyBuilder : BodyBuilderBase
{
private readonly string _plainText;
public PlainBodyBuilder(string plainText)
{
_plainText = plainText;
}
/// <summary>
/// Gets the ready made body part for a m... |
f814f79806665e699e76c48b68efbf6c2724ba12 | C# | NikiStanchev/SoftUni | /Algorithms/AlgorithmsExams/StarsInTheCube/Program.cs | 3.46875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StarsInTheCube
{
class Program
{
static char[,,] matrix;
static SortedDictionary<char, int> cubes = new SortedDictionary<char, int>();
static int count;
... |
9c31729cab6d590e177561d7f90506d27ee26882 | C# | fraga/randomizer | /Randomizer.Tests/RandomOrgV1Test.cs | 2.515625 | 3 | using System;
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
using Randomizer.Utils;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
namespace Randomizer.Tests
{
[TestClass]
public class RandomOrgV1Test
{
[TestMethod]
public void TestConstructor()
... |
2e92ba41569a9b3fc94bfdf43c393565b944b31d | C# | Alejandro10-28/T02-.RodriguezSolisDanielAlejandro | /IOperacion.cs | 3.25 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Calculadora1._2
{
//Se crea la interfaz , cabe destacar que una interfaz ya es publica por eso no necesita el "public"
interface IOperacion
{
//Se encapsulan la... |
d64ed35cfa6abc20c4dd693d97082eb47b941ab6 | C# | venkatpselvam1/chess | /ChessGameBusiness/Piece/Piece.cs | 3.03125 | 3 | using GameComponent.Enum;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GameComponent.Piece
{
public abstract class Piece
{
protected Board board { get; set;}
... |
e3a28cad05de5a1c978486df87e38efe1f9336f9 | C# | rickinator9/SimTecPracticums | /SIMTEC3D Prac1/SIMTEC3D Prac1/Scripts/Flipper.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
namespace SIMTEC3D_Prac1.Scripts
{
class Flipper : GameObject
{
prote... |
49827b2767b834edbcb82ccd88585c0d6594fe9e | C# | leomag/code_example_in_c_sharp | /code_example_in_c_sharp/Program.cs | 2.875 | 3 | using System;
namespace code_example_in_c_sharp
{
class MainTeacher
{
public static void Main(string[] args)
{
Teacher assistant = new Teacher("Илья", "Исаев", "тестирование программного обеспечения", 34000);
Console.WriteLine(assistant.GetInfoFull());
Conso... |
63f00eb16d1622406ff3c9cc8fb7ae1c2896ac19 | C# | SheikhULAB/TicTacToeWindowsForm | /Form1.cs | 2.9375 | 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 TicTac
{
public partial class TTT : Form
{
bool turn = true;
... |
82867f2a285bbaded61b7dcf10f658b0c608b32a | C# | AmirRiad/Singleton | /Lock/Lazy.cs | 2.890625 | 3 | using System;
namespace Singleton.Lazy
{
public class Logger: interfaceForLogger.ILogger
{
private static readonly Lazy<Logger> _instance = new Lazy<Logger>(() => new Logger());
public static Logger Instance
{
get
{
return _instance.Value;
... |
71f91bc5b02bf38649fe2f96f1b500a45d2fdc41 | C# | radtek/fileshare | /r_SaveAsTest/NotepadSaveAsTests_Intigration/NotepadSaveAsImitationTestsIntegration.cs | 2.734375 | 3 | using NUnit.Framework;
using NotepadSaveAs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Windows.Forms;
namespace ConsoleApplication1.Tests
{
[TestFixture()]
public class NotepadSaveAsImitationTests_integratio... |
01be59932a54206adb59a41d3fb2f10788e7abe9 | C# | HaykSargsyan13/Asp.net-MVC5 | /Homework7/Homework7/Models/Order.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace Homework7.Models
{
public class Order
{
[Required(ErrorMessage = "Please Enter Name")]
public string Name { get; set; }
[Required(ErrorMessage = "... |
97632d5c936bf0b683999fee750f7007d8f8fc0c | C# | reyou/Ggg.GitHub | /apps/apps-web/app-dataflow-block/GggDataflowBlockSpecifyTaskSchedulerWinForms/Form1.cs | 3.0625 | 3 | using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Threading.Tasks.Dataflow;
using System.Windows.Forms;
namespace GggDataflowBlockSpecifyTaskSchedulerWinForms
{
public partial class Form1 : Form
{
// Broadcasts values to an Action... |
081224c5fe4bc13cac9c0321b7403b81ebc3f7b3 | C# | Saroj404/FreeCodeCamp | /Freecodecamp/freecodecamp.cs | 3.140625 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Freecodecamp
{
class Codecamp
{
static void Main(string[] args)
{
#region functions
//Madlib();
// Array();
//SayHi();
... |
abef80fc1b7ac78e4bf562b8b67fdfc50b00b842 | C# | esandez93/untitled | /Assets/Scripts/Managers/CraftManager.cs | 2.75 | 3 | using UnityEngine;
using UnityEngine.UI;
using System;
using System.Collections;
using System.Collections.Generic;
public class CraftManager : MonoBehaviour{
private static CraftManager instance;
public bool initialized = false;
private Inventory inventory;
public static CraftManager Instance {
get {
if (ins... |
6237c054bf2c2bed29f5d84c9f4ef94a0b1cd2aa | C# | dotnet/dotnet-api-docs | /snippets/csharp/System.Timers/Timer/AutoReset/source.cs | 3.8125 | 4 | // <Snippet1>
using System;
using System.Timers;
public class Example
{
private static Timer aTimer;
public static void Main()
{
// Create a timer with a 1.5 second interval.
double interval = 1500.0;
aTimer = new System.Timers.Timer(interval);
// Hook up the event handle... |
8d3f24ec19356d5c19879ef396d4615dbce3143f | C# | ArkadiuszStanislawLega/SWAM | /SWAM/Exceptions/BasicException.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
namespace SWAM.Exceptions
{
/// <summary>
/// The basic class that inherits from Exceptions is compatible with the application GUI.
/// <... |
ee8c5ec283aee77f3f9ca32329086bfd67e36d1f | C# | kpocza/AbevWebForm | /src/WebForm/WebForm.Generator/Common/ContentBuilder.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.IO;
using WebForm.Generator.Model;
namespace WebForm.Generator.Common
{
internal class ContentBuilder
{
private string InputFile { get; set; }
internal ContentBuilder(string in... |
124324c6bb0375716867cc8ae3769bd5db2eee34 | C# | chivass/icoSPVenta | /icoSPVenta/icoSPVenta.Datos/Objetos/Base.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using icoSPVenta.Datos.Conexion;
namespace icoSPVenta.Datos.Objetos
{
public class Base
{
public Base(Connection conn)
{
}
private void Validate()
{
... |
857ceceadf5b90ab68063b78ff58096e10996ab6 | C# | PoshSec/PoshSecFramework | /poshsecframework/Systems/SystemsListViewItem.cs | 2.609375 | 3 | using System;
using System.Net;
using System.Windows.Forms;
using PoshSec.Framework.Strings;
namespace PoshSec.Framework
{
public class SystemsListViewItem : ListViewItem, INetworkNode
{
private SystemsListViewItem()
{
ImageIndex = 2;
SubItems.Add(new ListV... |
6486da7da10aacba8afac4e973847d6ff02fa375 | C# | dobrucki/PAS-project | /PAS-project/Models/UserManager.cs | 3.21875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace PAS_project.Models
{
public class UserManager
{
private readonly IDataRepository<User> _repository;
public UserManager(IDataRepository<User> repository)
{
_repository = repository;
}
... |
e2a6f97de5237dff43667a6233c0909b58d8017b | C# | ky2967/MVVM_Practice | /MVVM_Test/ViewModel/MainViewModel.cs | 3.28125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
namespace MVVM_Test.ViewModel
{
public class MainViewModel : INotifyPropertyChanged
{
#region > 생성자
... |
1c8367f6fdfaf7809e461c7157ed62c20e91df5a | C# | RaeezLachporia/GoblinHunter | /GoblinHunter/Map.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace GoblinHunter
{
class Map : Enemy
{
Map mmap = new Map(10, 10, " ", TileType.Empty,0,10,0,10,3,3);
//declaring all the variables for the class
private Tile [,] mapcontainer;
public Tile [,] MAP... |
d9bdc113b3a9a2ce8dc2ade75046e87ea756104d | C# | jamolpe/TiendeoAssesment | /Server/TiendeoAPI/TiendeoAPI/Core/ServiceCore/ServiceCore.cs | 2.828125 | 3 | using System.Collections.Generic;
using System.Linq;
using AutoMapper;
using ServicesLibrary.Interfaces;
using TiendeoAPI.Core.Interfaces;
using TiendeoAPI.Models;
namespace TiendeoAPI.Core.ServiceCore
{
public class ServiceCore : IServiceCore
{
private readonly ILocalService _localService;
pr... |
19e1206d5a63e463b7ebce5a0ceadd63f7803421 | C# | eiashy/Csharp01_codes | /שיעור 22 12-25-19/Visual Studio Projects/Q3 25 12 19/Q3 25 12 19/Program.cs | 3.59375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Q3_25_12_19
{
class Program
{
static int SumOf1ToNum(int num)
{
int sum = 0;
for (int i = 1; i <= num; i++)
sum += i;
... |
db530e2fc4fa09660b1b3fcd90673074ce73f271 | C# | It3rate/MLTest | /MLTest/Vis/Primitives/Node.cs | 2.96875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.ML.Probabilistic.Distributions;
namespace MLTest.Vis
{
public class Node : IPrimitive
{
public IPath Reference { get; } // if reference is a stroke, this must be a joint
publ... |
9256f3369e41479b0447025a66e3935d7c913b7e | C# | butoxors/SteamTradeNew | /PageObject/Widgets/BaseWidget.cs | 2.703125 | 3 | using OpenQA.Selenium;
using System;
namespace PageObject.Widgets
{
public abstract class BaseWidget<T> where T : BaseWidget<T>
{
protected IWebElement webElement;
protected BaseWidget(IWebElement webElement)
{
this.webElement = webElement;
}
public IWebEl... |
30e91a63f17bf9f63a4ce870146882975e8e637f | C# | MaksimGer/CSV_Cleaner | /CSV_Cleaner/CSV_Cleaner/forms/ShowDataForm.cs | 2.75 | 3 | using CSV_Cleaner.sources;
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 CSV_Cleaner.forms
{
public partial class ShowDataForm : Form
... |
9d41a995e763b6c93c7d7b0d616d2821005c188e | C# | ashburn-international/ecr-integration-samples | /src/windows/SingleThread/ConsoleGui.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace SingleThread
{
public class MenuItem
{
public string Key;
public string Title;
public Action Action;
}
public static class ConsoleGui
{
const ConsoleColor ConsoleColorEr... |
84d88e04b42fd9f26726472ef60de2a73438687c | C# | giokoguashvili/POOP | /SWIFT/SWIFT Integration/Swift.AltaSoftware.Wrapper/Swift/Common/SplitedByLines.cs | 2.734375 | 3 | using System;
namespace Swift.AltaSoftware.Wrapper.Swift.Common
{
public class SplitedByLines
{
private readonly string _str;
public SplitedByLines(string str)
{
_str = str;
}
public string[] Value()
{
return _str.Split(new[] {"\n", "\n... |
a1b1fbdcfa8d82fa23a09e42686fc6a6f2754272 | C# | WolfgangNS/scrabble-solver | /Program.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Linq;
using System.Text.RegularExpressions;
namespace scrabblerobot
{
class Program
{
static char[,] board = new char[15,15];
static int[,] LM = //letter multipliers
{{1,1,1,2,1... |
dd7f8810a1810c1c19dc4eb669d17067320cf8f2 | C# | hyuntaeng/UnitySimultaneousModifiers | /Assets/TimedEffect.cs | 2.859375 | 3 | using UnityEngine;
using System.Collections;
using System;
public class TimedEffect<V> : TemporaryEffect<V>
{
public float HoldTime = 0;
private float startTime; //The time since the level loaded that this object was created
public TimedEffect() : base()
{
startTime = Time.timeSinceLevelLoad... |
9bb019b4a569df176d0c3971bd1665f3eb4e5ed2 | C# | nalaugh/dino-diner | /MenuTest/Drinks/SodaSaurusTest.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
using DinoDiner.Menu;
namespace MenuTest.Drinks
{
public class SodaSaurusTest
{
//1.The ability to set each possible flavor
//2.The correct default price, calories, ice, and size
//3.The correct price and c... |
d8922e3ceaaad3986a1077d743243cbe35bc2b20 | C# | pablo2000/EliteDangerousDataProvider | /EliteDangerousDataDefinitions/Commander.cs | 2.671875 | 3 | using System.Collections.Generic;
namespace EliteDangerousDataDefinitions
{
/// <summary>
/// Details about a commander
/// </summary>
public class Commander
{
public static string[] combatRanks = new string[9] { "Harmless", "Mostly Harmless", "Novice", "Competent", "Expert", "Master", "Da... |
62133d1df8667ba8a5565cb2b7fae6afc3f74791 | C# | marabu4a/CarFactory | /CarFactory/Factory/CarPartsFactory.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using CarFactory.CarPart.ChassisModel;
namespace CarFactory.Factory
{
public abstract class CarPartsFactory : IFactory<CarPart.CarPart>
{
public string GetRandomManufacturer()
{
return listOfManufacturers[randomGenerator.GetRandomVa... |
0c62a17711880e26058b25005dc5b2bea57bdaa1 | C# | jb1361/Recipe-Backend | /Recipe.Api/Controllers/RecipeController.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace Recipe.Api.Controllers
{
[Route("api/v1/[controller]")]
[ApiController]
public class RecipeController : BaseController
{
... |
50f5c0a8ad2c45a2b9340be9dd55048c686b6e58 | C# | abhishekjhaa/coding-practice | /C#/ImmutableStrings/Program.cs | 3.765625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ImmutableStrings
{
class Program
{
static void Main(string[] args)
{
Compare();
Console.ReadLine();
}
public static void Compar... |
d110c6ad07b3526af075e092c62a33bf76c30700 | C# | amberolive/CoffeeShop | /CoffeeShop/AddForm.cs | 2.796875 | 3 | using System;
using System.Collections;
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 CoffeeShop
{
public partial class AddRemoveForm : Form
{
... |
383c8f968ce64d6235502257bdd073dfabab732e | C# | Pauta-Regional/refer | /win-prog/ProgKeyCS/Chap32/StructureAndMethodsTwo/StructureAndMethodsTwo.cs | 3.640625 | 4 | // -------------------------------------------------------------
// StructureAndMethodsTwo.cs from "Programming in the Key of C#"
// -------------------------------------------------------------
using System;
class StructureAndMethodsTwo
{
static void Main()
{
Date dateMoonWalk = new Date();
... |
87f301e0e121e9f41c4820db382b872ede2ad536 | C# | emiaj/fubumvc | /src/Serenity/Jasmine/SpecificationFolder.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using FubuCore.Util;
using FubuMVC.Core.Assets.Files;
namespace Serenity.Jasmine
{
public class SpecificationFolder : ISpecNode
{
private readonly Cache<string, SpecificationFolder> _children;
private readonly string ... |
15c2bfcdcf9df250846b48ad7f90dea9b01a2b60 | C# | EdouardGit/Formatio | /LePendu/Program.cs | 3.15625 | 3 | using System;
using System.Collections.Generic;
namespace LePendu
{
class Program
{
static void Main(string[] args)
{
#region version object
GameInstances game = new GameInstances();
#endregion
#region version proced... |
9dcef1cd8a0b1e4d74a0f33dd106226c6f7b5e47 | C# | genadi1980/SoftUni | /Fundamentals of proramming/Conditional Statements and Loops/08BonusScore/BonusScore.cs | 3.53125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _08BonusScore
{
public class BonusScore
{
public static void Main()
{
var input = Console.ReadLine();
var fiveEnd = input[input.Length - 1];
... |
5acc433861647da5f3438036b37ad0754f6ca529 | C# | YAFNET/YAFNET | /yafsrc/ServiceStack/ServiceStack/Common/Script/JsStatement.cs | 2.625 | 3 | // ***********************************************************************
// <copyright file="JsStatement.cs" company="ServiceStack, Inc.">
// Copyright (c) ServiceStack, Inc. All Rights Reserved.
// </copyright>
// <summary>Fork for YetAnotherForum.NET, Licensed under the Apache License, Version 2.0</summary>
//... |
9b4e2bfbaf7ebb1f0b967bd7a936942ab3369a0e | C# | cosminiv/CosminMisc | /CosminMisc/ConsoleApp1/Algorithms/BucketSort.cs | 3.671875 | 4 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1.Algorithms
{
class BucketSort
{
public int[] Sort(int[] data, int max) {
int bucketCount = max + 1;
int[] buckets ... |
ccb595f76347202ca8024060aaa0a5f83efa1d04 | C# | Dmitry-Bychenko/Gloson.Standard.Solution | /Gloson.Standard/Collections/Generic/Gloson.Collections.Generic.DisjointSets.cs | 3.28125 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Gloson.Collections.Generic {
//-------------------------------------------------------------------------------------------------------------------
//
/// <summary>
/// Union Find
/// ... |
9171eb6e9531bbc433844775e1e0290f62105172 | C# | pollo-garat/Technical-Challenge-Jam-City | /Assets/Pathfinding/Scripts/Gameplay/Domain/Views/WorldGrid.cs | 2.578125 | 3 | using System;
using Pathfinding.Scripts.Gameplay.Domain.Services;
using Pathfinding.Scripts.Gameplay.Domain.ValueObjects;
using UniRx;
using UnityEngine;
namespace Pathfinding.Scripts.Gameplay.Domain.Views
{
public class WorldGrid : MonoBehaviour
{
public IObservable<HexaTile> OnTileClicked => onTileCl... |
0c0dfe6c21080d8ba6ad06328a352889a2a7e9c9 | C# | gordonwatts/JetCutStudies | /libDataAccess/CutConstants.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace libDataAccess
{
/// <summary>
/// Some cut constants for the various files - this is common.
/// </summary>
public static class CutConstants
{
/// <summary>
... |
3d9fd367dad85ab0252c125fa92b75d5ec03b169 | C# | adhikari-chayan/dotnetcore | /ReactiveExtensions/ObserverPattern/ObserverPattern/Application.cs | 2.796875 | 3 | namespace ObserverPattern
{
public class Application
{
public int JobId { get; set; }
public string ApplicantName { get; set; }
public Application(int jobId, string applicantName)
{
JobId = jobId;
ApplicantName = applicantName;
}
}
}
|
0a27653aa81f8c93809f932352d94618b6248ed6 | C# | JeremyPlott/PWListHomework | /PWListHomework/Program.cs | 3.21875 | 3 | using System;
using System.Collections.Generic;
namespace PWListHomework {
class Program {
static void Main(string[] args) {
var PWDict = new Dictionary<string, string>(); //dictionary is good collection tool when you don't want to allow duplicates. Cannot duplicate Key values.
PW... |
55e00cb348ee4137b1f33b5a6fb050a44cbecfa7 | C# | radtek/IO2 | /DllProject/models/Messages/DivideProblemMessage.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace DllProject.Messages
{
[XmlRoot(ElementName = "DivideProblem", Namespace = "http://www.mini.pw.edu.pl/ucc/")]
public class DivideProblemMessage : Message... |
7fdb8f0b45f4d360d53f1befd9e03d10da8f6ed1 | C# | wernight/papps-manager | /PAppsManager/Core/PApps/EnvironmentVariables.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
namespace PAppsManager.Core.PApps
{
/// <summary>
/// Expand/contract common and extra environment variables.
///
/// Example: "%ProgramFiles%" to/from "C:\Program Files".
/// ... |
40113e8d22c3b92b08b077011175d866815cf481 | C# | Kawser-nerd/CLCDSA | /Source Codes/CodeJamData/09/11/10.cs | 3.5625 | 4 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace CodeJam
{
class MultibaseHappiness
{
int minHappyNumber(int[] bases)
{
int n = 2;
while (true)
{
bool allHappy = t... |
9cfc414eceb82a3397ca994332e65b3ee6d33d86 | C# | ivry216/dynamical-system-modeling | /LdeModeling/Models/Dynamical/SystemsS/CascadedPathawaySystemParameters.cs | 2.859375 | 3 | namespace TestApp.Models.Dynamical.SystemsS
{
public class CascadedPathawaySystemParameters
{
#region Fields
private int _numberOfInputs;
private int _numberOfOutputs;
private int _sumOfInputsAndOutputs;
private double[] _alpha;
private double[] _betta;
... |
c0ca00b03f122e200673f15dcf8ef5407ba73a35 | C# | tzachshabtay/MonoAGS | /Source/AGS.API/Misc/Geometry/RectangleF.cs | 3.453125 | 3 | using System;
namespace AGS.API
{
/// <summary>
/// Represents a rectangle in 2D space.
/// </summary>
public struct RectangleF
{
private readonly float _x, _y, _width, _height;
/// <summary>
/// Initializes a new instance of the <see cref="T:AGS.API.Rectangle"/> struct.
/// </summary>
/// <param name... |
2445f0672890b44e2aa36c25207a0c2efec0d117 | C# | mc-imperial/sctbench | /benchmarks/chess-m/UnitTest/UnitTest/badthread.cs | 2.75 | 3 | /********************************************************
* *
* Copyright (C) Microsoft. All rights reserved. *
* *
********************************************************/
using System;
using S... |
da373347889afdd5f380023627c1657c63598d97 | C# | chelseashin/C-language-study | /07_WalkController.cs | 2.703125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WalkController : MonoBehaviour
{
Animator animator;
void Start()
{
animator = GetComponent<Animator>();
}
void Update()
{
// Front
if (Input.GetKey(KeyCode.W) == true) {
... |
7fd072711a13542885653730b11c327e8e5f261a | C# | Taylor-Fowler/TheWorkforce2D | /Assets/Entities/EntityData.cs | 2.8125 | 3 | using System;
using UnityEngine;
namespace TheWorkforce.Entities
{
using Interfaces;
public abstract class EntityData : ScriptableObject, IEntityDisplay
{
public ushort Id;
public string Name;
public string Description;
public Sprite Sprite;
public byte MaxStac... |
6f8ca8cc248d31afe1b5d556e812437c9bb81c2d | C# | shendongnian/download4 | /first_version_download2/429227-37805112-120372419-4.cs | 2.921875 | 3 | static void Main()
{
// allow more connections at a time
ServicePointManager.DefaultConnectionLimit = 30;
// don't wait the 100ms every request do
ServicePointManager.Expect100Continue = false;
for (int i = 0; i <= 200; i++)
{
var lines = File.ReadAllLines(@"D:\file_" +... |
4b81f98a260fc51b34cd97f14f79d2d8cc4b07b5 | C# | donpp46/yogaa | /framework/core/Service.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using System.Web.Script.Serialization;
using System.Reflection;
using System.Linq;
namespace Medtrix.WebService
{
internal class Response
{
public Boolean iserror = false;
public String message = String.Emp... |
48e0356cecd856a98f3831534eb79a5059b04759 | C# | tgntr/emusic3-ddd | /Domain/Catalog/Models/MusicRecord.Fakes.cs | 2.6875 | 3 | namespace SimpleMusicStore.Domain.Catalog.Models
{
using Bogus;
using FakeItEasy;
using System;
using System.Collections.Generic;
using System.Linq;
public class MusicRecordFakes
{
public class MusicRecordDummyFactory : IDummyFactory
{
public bool CanCreate(Type... |
c60c19e86ef2157c604da647314a81e9ccd28be6 | C# | jcwmoore/ampache-net | /JohnMoore.AmpacheNet/TaskExtensions.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace System.Threading.Tasks
{
/// <summary>
/// http://blogs.msdn.com/b/pfxteam/archive/2011/11/10/10235834.aspx
/// </summary>
public static class TaskExtensions
{
inte... |
f7d9ab863c79d8e5f20475ba2cc3f83925bb040f | C# | EvertonSolon/ImpactaAspNetAvancado | /Loja.Dominio/Carro.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Loja.Dominio
{
public class Carro
{
public string Marca { get; set; }
public string Modelo { get; set; }
public string Cor { get; set; }
void Instanci... |
40b52f77182b2cddf2d0c666d034ca0c1fe80b42 | C# | shendongnian/download4 | /first_version_download2/507982-46533829-157470588-2.cs | 2.5625 | 3 | public static void btnSummary_Click(object sender, EventArgs e)
{
string currentText = lblUsers.Text;
int positionOfLastEntry = currentText.LastIndexOf("Name:");
string textWithoutLastEntry = currentText.Substring(0, positionOfLastEntry);
lblUsers.Text = textW... |
4f7b4a385545a9a794d35bbd82f496eb9094f2ae | C# | markVaykhansky/technionProjectRepository | /KinectServer/BusinessLogic/MatlabDriver.cs | 2.5625 | 3 | using csmatio.io;
using csmatio.types;
using KinectServer.Common;
using KinectServer.DTO;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Media3D;
namespace KinectServer.Business... |
8e463eca8bdecd91a66b0acbaaca2b7cc1c0ab8d | C# | yesbirs56/Assignment2 | /LatestInBuffer/Program.cs | 3.53125 | 4 | using Assesment2_BL;
using System;
namespace LatestInBuffer
{
internal class Program
{
public static void Main(string[] args)
{
FixedBuffer buffer = new FixedBuffer(10);
while (true)
{
Console.Write($"Enter the Data : ");
st... |
980f35e6ff3b00d8da70deb7d394a832211b131b | C# | shendongnian/download4 | /code4/703402-16948700-41728657-2.cs | 3.015625 | 3 | TreeView treeView = new TreeView();
TreeNode parentNode = treeView.SelectedNode;
if (parentNode.GetNodeCount(true) > 0)
{
foreach (TreeNode childNodes in parentNode.Nodes)
{
//// do stuff with nodes.
}
}
|
24c14e8eae3ac8484455be4fb1b0814a13b3acd7 | C# | PMExtra/EntityExcel | /src/DataMapper/Models/TableMapper.cs | 3.015625 | 3 | using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using DataMapper.Extensions;
namespace DataMapper.Models
{
public class TableMapper<T> : IEnumerable<T> where T : new()
{
public TableMapper(DataTable table)
{
Table = table;
}... |
53b34b72a6674c35c0780e0eaa62965a8e965a75 | C# | 1usama/Assigment-4 | /MainWindow.xaml.cs | 2.671875 | 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.Med... |
24a22f8b393a80c5469fb2901959ab5cdc6d327d | C# | legigor/GroceryStore | /C#/GroceryStore/GroceryStore.PoS/Products/ProductOffer.cs | 3.203125 | 3 | using System;
namespace GroceryStore.PoS.Products
{
public sealed class ProductOffer
{
public string Code { get; }
public string Title { get; }
public decimal OfferPrice { get; }
public string ProductCode { get; }
public int ProductQty { get; }
public ProductO... |
3b7c60f17a723b147f720ea91cbb16a56dc46a10 | C# | bakhyt/rsoi-lab3 | /MvcApplication1/Controllers/Orders2Controller.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Newtonsoft.Json;
using ModelLib;
using System.Web.Http;
using RestSharp;
namespace MvcApplication1.Controllers
{
public class Orders2Controller : ApiController
{
public ICollection<Order> Get(int page, int size)... |
f6d67f2a3e5f7c553270b7b1bfddf1211ff9093c | C# | edhaker13/DiscordEdBot | /DiscordEdBot/MainHandler.cs | 2.53125 | 3 | namespace DiscordEdBot
{
using System;
using System.Reflection;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using Microsoft.Extensions.DependencyInjection;
internal static class MainHandler
{
public static Task LogAsync(LogM... |
7d392e73fd6bc92b436a8fa667ddcb5b1cd5b7ef | C# | GeorgiPangev/C_Sharp-Fundamentals | /ObjectsAndClases/StoreBoxes/Program.cs | 3.421875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace StoreBoxes
{
class Program
{
static void Main(string[] args)
{
List<BoxInfo> boxes = new List<BoxInfo>();
List<PriceName> items = new List<PriceName>();
string[] input = Console.R... |
80bd139c9257f4470c699a0bd2268110cbe9bf6f | C# | nonnarat21/UnluckyDraw | /Implement/PointCardFactory.cs | 2.96875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnluckyDraw.Interface;
namespace UnluckyDraw.Implement
{
public class PointCardFactory : ICardFactory
{
public override IDrawCard CreateDrawCard(int playerScore)
{
... |
8b45645caa87ae20048ca61fbb874eb5a803dd98 | C# | rvpetkov/SimpleChessGame | /Simple Chess Game/Assets/Scripts/AI.cs | 3.15625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Linq;
/// <summary>
/// This class is a desperate attempt at creating an AI system that can play chess.
/// The result so far is a "player" that can randomly choose a chess piece and move it.
/// The move is chosen by the foll... |
7f35fe1b6bf5a741e0cacfcae400d4e5c09a0fe1 | C# | HT200/Spell | /Spell/Assets/Scripts/Dataset/Node.cs | 3.125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Node : MonoBehaviour
{
public char Value { get; set; }
public List<Node> Children { get; set; }
public Node Parent { get; set; }
public int Depth { get; set; }
public Node(char value, int depth, Node parent... |
09525c781dee91881035f00eac926659d4b47c38 | C# | Xavier227/Application | /GUI/Views/Game.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using WinEchek.Core;
using WinEchek.Engine;
using WinEchek.Model;
using WinEchek.Model.Piece;
namespace WinEchek
{
public class Game
{
private Player _currentPlayer;
public Player WhitePlayer { get; set; }
public Player BlackPlayer { ge... |
e63ae6a61d4dc964cc6bf24d2f4bcf311991397f | C# | drypa/FurnitureInRoom | /FurnitureInRoom.Tests/HomeStateTest.cs | 2.828125 | 3 | using System;
using System.Linq;
using FurnitureInRoom.Exceptions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace FurnitureInRoom.Tests
{
[TestClass]
public class HomeStateTest
{
[TestMethod]
public void CreateRoomShouldCreateNewStateIfDateNotExists()
{
H... |
7bc32df89fa03040eacdda48433fa34c45752522 | C# | NewLifeWorks/Software_-Bulgaria | /Software_University_Bulgaria/Fundamental_Level/C#[Advance]/HomeWorks/04_StringsandTextProcessing/02_StringLength/StringLength.cs | 3.890625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TaskTwo.cs
{
class StringLength
{
/*
* Task Two String Lenght
* */
static void Main(string[] args)
{
Console.WriteLine("Give me y... |
6ecac2aa2c410f78f6b8dc63aacaf5099829e42d | C# | nschott/EgneOpgaverFraCkursus | /indkapsling_egenskaber/Program.cs | 3.375 | 3 | using System;
namespace indkapsling_egenskaber
{
class Program
{
static void Main(string[] args)
{
Person p1 = new Person();
Console.WriteLine("Indtast fornavn");
p1.Fornavn = Console.ReadLine();
Console.WriteLine("Indtast efternavn");
... |
1bbdb81c4ef37a17bfdbd31ec3f47c9fa288f826 | C# | marklinmao/HoloGanttVR | /Assets/Scripts/POJOs.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
namespace HoloGanttVR
{
/// <summary>
/// POJO of a person (team member)
/// </summary>
public class Member
{
private string id;
private string name;
public Member(string id, string name)
{
... |
511e4a007b1d666e362b4c3e37eb24b17b44cf9a | C# | ccerbusca/ubb-cs | /Parallel and Distributed Programming/Lab4/Lab4/Lab4/examples/Await.cs | 3.25 | 3 | // A server that accepts pairs of numbers, transmitted as text and separated by whitespace, and sends back their sums
using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
class Session3
{
private Session3(Socket conn)
{
_conn = conn;
... |
42a4d9425d5883c9af75238ee501fdb35b1f6ce4 | C# | milescward/Data-Structures | /DataStructures/DoublyLinkedList/myDoublyLinkedList.cs | 3.484375 | 3 | using System;
using System.Collections.Generic;
using DataStructures.SinglyLinkedList;
namespace DataStructures.DoublyLinkedList
{
public class myDoublyLinkedList<T>
{
public DNode<T> Head { get; private set; }
public DNode<T> Tail { get; private set; }
public int Count { get; private ... |
567ad08f26c9e267f7eb35d7ec95bae833ad1161 | C# | StephaneVR/Website-Webshop | /Webshop.DAL/Repositories/CourseRepo.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
using Webshop.DAL.Entit;
namespace Webshop.DAL.Repositories
{
public class CourseRepo : IRepository<Course>
{
private WebshopContext _webshopContext;
public CourseRe... |
b432de53ec86ba1cc450eb484473751430ab89e9 | C# | HarbingTarbl/GGJ2013 | /src/AStar.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jammy.Collision;
using Microsoft.Xna.Framework;
namespace Memory
{
public class Pathfinder
{
public List<Vector2> FindPath (PolyLink Start, PolyLink End)
{
List<PolyLink> searched;
PolyLink currentNode = Start;
... |
dd10bbc6714559d1e6229796e82cb8f914be5a1c | C# | danieleg/cudumar-xmpp | /Frameworks/OAuth2/OAuth2Provider.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.Specialized;
using System.Text.RegularExpressions;
namespace Cudumar.Frameworks.OAuth2 {
public abstract class OAuth2Provider {
public string ClientID { get; protected set; }
public string Cli... |
783a5c1ce95771e996af4a35d54b44625e34c733 | C# | zyque-sys/aplicaciones-web | /visual studio repo/FUNPOO2020_2/ProyectoFinalCine/Ejecutable.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProyectoFinalCine
{
class Ejecutable
{
static void Main(string[] args)
{
#region Campos
int opcion;
int inicioMenu = 1;
... |
a79ff23307267ce769ca0ec25c887c781cc1cbb3 | C# | alexkikos/House_Building | /BuildingParts/Basement.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BuildingParts
{
class Basement : Ipart
{
string name_part;
bool finished;
int count;
float time_for_build;
public float Ti... |
fde02c4b3c5a51f191bc525e84503b18c46d53b7 | C# | shendongnian/download4 | /code11/1922384-57970687-205497410-1.cs | 2.71875 | 3 | private static readonly int beginIndex = 20;
private void Delimite_Btn_Click(object sender, RoutedEventArgs e)
{
string barcode = Original_Code_TxtBox.Text;
int endIndex = barcode.Length - 5;
if (endIndex > beginIndex)
{
var selectedText = barcode.Su... |
9dc9fa44c65b55561608e1db01e69507dc1f1d91 | C# | 3d1st/Pet | /TestWork/EquationProcessor/Rulers/CalculateAdditionVariableRule.cs | 2.890625 | 3 | using Contracts.Operations;
using Contracts.Terms;
namespace EquationProcessor.Rulers
{
public class CalculateAdditionVariableRule : IRule
{
public bool TermMatchRule(EquationTermBase term)
{
bool matched =
term is EquationBinaryOperationBase operation &&
... |
8af7685ef6310b748f672e38d4bb3e293af534e4 | C# | gozderam/PolygonEditor | /PolygonEditor/Definitions/Polygon.cs | 3.078125 | 3 | using PolygonEditor.Utils;
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Line = PolygonEditor.Definitions.Line;
namespace PolygonEditor.Definitions
{
//TODO IPolygon - o... |
598e2149f5bd6c1b23d2e679f4c89140e89cfb16 | C# | stephen-cornwell/Bard | /src/Bard/Internal/PipelineBuilder.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Bard.Infrastructure;
using Bard.Internal.Exception;
namespace Bard.Internal
{
internal class PipelineBuilder : IPipelineBuilder, IObserver<MessageLogged>
{
private readonly LogWriter _logWriter;
private... |
6833d8e4d3842b432c04bab416f330fe366496e7 | C# | esrasnck/BitirmeProjesi | /Project.MODEL/Entities/Product.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Project.MODEL.Entities
{
public class Product : BaseEntity
{
public Product()
{
Ca... |
8bfa030fc15e2bf14ce9c8860b5fb177c55acc2c | C# | tamaw/AGLWebBot | /HackathonBot/Phrases.cs | 3.09375 | 3 | using System.Collections.Generic;
namespace HackathonBot
{
public static class Phrases
{
private static readonly Dictionary<string, string> Responses;
static Phrases()
{
//A list of basic phrases and responses that end the conversation
//to be used to return gi... |
b3d534704763d3e2ebeafd667697b1ccd8301eb6 | C# | Csharp2020/csharp2020 | /pmrvic/7_2_2_unos_imena/Program.cs | 3.328125 | 3 | using System;
namespace _7_2_2_unos_imena
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Ispisuje ime i pozdrav");
Pozdrav("Pero");
Console.WriteLine();
Pozdrav("Pero","Perić");
Console.WriteLine();
... |
fe2c49d35f3035b084f6164cab5e6d0cb3c7951a | C# | davidwyao/Rhythm-Master | /src/Assets/Scripts/ButtonController.cs | 2.78125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/**
* @name ButtonController
* @brief Parses user inputs, applies effects to buttons, and checks validity of presses.
* @date April 12, 2021
*/
public class ButtonController : MonoBehaviour
{
/**
* @brief The key that this con... |
b59774cfedc2558b3ce3675110a414fb94f2bd64 | C# | Furysoft/DynamicQuery | /src/Component/Furysoft.DynamicQuery/Logic/Helpers/ParserHelpers.cs | 2.78125 | 3 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ParserHelpers.cs" company="Simon Paramore">
// © 2017, Simon Paramore
// </copyright>
// ------------------------------------------------------------------------------------------... |
cad797cd10c5100ccc024d3c7675270c2543bbcc | C# | pedroivoabsilva/Dioflix | /Dioflix/Classes/FilmeRepositorio.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using DioFlix.Interfaces;
namespace DioFlix.Classes
{
class FilmeRepositorio : IRepositorio<Filme>
{
private List<Filme> filmes = new List<Filme>();
public void atualiza(int id, Filme filme)
{
filmes[id] = f... |
cdb9373b96bb213631d1189b98bc40c33fbf1108 | C# | shawon2jg/Day05 | /HashtableApp/HashtableApp/Program.cs | 3 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HashtableApp
{
class Program
{
static void Main(string[] args)
{
Hashtable aHashtable = new Hashtable();
aHashtable.Ad... |
c6d5a43a22fe728380b1d47b788d64838fe93ca5 | C# | racoltacalin/cryoprison | /Test/Cryoprison.Test/Inspectors/FileNotDestructivelyWritableTests.cs | 2.515625 | 3 | using System;
using Cryoprison;
using Xunit;
using Cryoprison.Inspectors;
using System.IO;
namespace Cryoprison.Test.Inspectors
{
public class FileNotDestructivelyWritableTets
{
[Fact]
public void HasCorrectId()
{
var env = new Ex.Env();
var i = new FileNotDest... |
3c1a6447f6ed6f49a7f6d4df3a3c1348086c44e9 | C# | thenderson21/SocketClusterSharp | /SocketClusterSharp/Helpers/Timer.cs | 2.828125 | 3 | //
// Timer.cs
//
// Author:
// Todd Henderson <todd@todd-henderson.me>
//
// Copyright (c) 2015-2016 Todd Henderson
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without re... |