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 |
|---|---|---|---|---|---|---|
3c672f2f137bd0dc58111ca802ac4ab9d407f288 | C# | kostyaqz/Kos | /ULearn/Генерация текстов/Program.cs | 3.234375 | 3 | using System;
using System.IO;
using NUnitLite;
namespace TextAnalysis
{
internal static class Program
{
public static void Main(string[] args)
{
// Запуск автоматических тестов. Ниже список тестовых наборов, который нужно запустить.
// Закомментируйте тесты на те задач... |
e019a7ef3bc5a7b4f9c5897289940a8f0d0f4ee8 | C# | renierb/adventofcode | /2017/csharp/Day12/QuickUnionGraph.cs | 3.375 | 3 | using System.Collections.Generic;
using System.Linq;
namespace Day12
{
public class QuickUnionGraph
{
private int[] _connections;
private readonly Dictionary<int, int> _values = new Dictionary<int, int>();
public QuickUnionGraph(int size)
{
_connections = Enumerabl... |
8c751345faa1bc2ad12a1f1f180364999239a097 | C# | MartinSStewart/UnityGame | /Assets/TriangleEdge.cs | 3.53125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Assets
{
public class TriangleEdge
{
public readonly int StartIndex, EndIndex;
/// <summary>
/// Get the start and end index as an array.
/// </summary>
public int[] Indices ... |
c689c8e7609dfce1ef7b04ff3e502e08e31c6f1b | C# | ehasis/alsing | /MyMeta/VistaDB/Source/vnParameterEnumerator.cs | 2.921875 | 3 | using System;
using System.Data;
using System.Collections;
using System.Globalization;
namespace Provider.VistaDB
{
/// <summary>
/// Used Internally.
/// </summary>
public class VistaDBParameterEnumerator: MarshalByRefObject, IEnumerator
{
private ArrayList parameters;
private int currentIdx;... |
961e301f98365851fc5fb1221a9eeb647964f639 | C# | tamcb2708/pizza-vizzo | /DAO/ContentDao.cs | 2.890625 | 3 | using PagedList;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using webMVC1.EF;
namespace webMVC1.DAO
{
public class ContentDao
{
Model2 db = null;
public ContentDao()
{
db = new Model2();
}
public Content GetByID(l... |
3eab97f3936b18e46b6b0d370e7786dc945b4076 | C# | AppMetrics/AppMetrics | /src/MetaPackages/build/Program.cs | 2.515625 | 3 | using System;
using System.IO;
using System.Linq;
using McMaster.Extensions.CommandLineUtils;
using static Bullseye.Targets;
using static SimpleExec.Command;
namespace build
{
class Program
{
private const string Prefix = "MetaPackages";
private const bool RequireTests = true;
private c... |
3cf1d094a36210727137df3defdfbc9f2996d6cb | C# | sid22seth/EmployeePayroll | /EmployeePayrollService/Program.cs | 3.296875 | 3 | using System;
using System.Collections.Generic;
namespace EmployeePayrollService
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Welcome To Employee Payroll Service System");
EmployeeRepo repo = new EmployeeRepo();
int loop = 1;
... |
5f71a4e0288b5dcb80ce9b1f5de0b788f8012893 | C# | rivkazi/Mini-project-C- | /GroupHostByHostingUserControl.xaml.cs | 2.578125 | 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... |
748b1f67692b17b883cdb109a9a16c3675242e49 | C# | Marc19/orders-and-payments-backend | /API/Controllers/OrdersController.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using API.Extensions;
using Application.IServices;
using Domain.Common;
using Domain.DTOs;
using Domain.Entities;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namesp... |
124bd2b06ece2fb4d36ef96b9aa768eedbe7fcf7 | C# | microsoft/BuildXL | /Public/Src/Tools/PipExecutionAnalyzer/PipExecutionSimulator/ProgressStream.cs | 2.734375 | 3 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PipExecutionSimulator
{
class ProgressStream : Stream
{
private Stream... |
3860f4552fdcfd143e4c94984344b0a43495f448 | C# | lupingsu236/GDipSA-AD-Project-.NET | /SA51ADWebApp1/Validation/isPositive.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace SA51ADWebApp1.Validation
{
public class isPositiveAttribute : ValidationAttribute
{
public isPositiveAttribute()
{
}
public st... |
648f8c7fcfd950cdcffac46f771db44bc6188434 | C# | sdeming/fastfingers | /FastFingers/Launching/Launchable.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace FastFingers.Launching
{
public interface ILaunchable
{
string Name { get; }
string FullName { get; }
string DirName { get; }
string BaseName { get; }
System.Drawing.Image Preview { get; }
string[] ... |
91d44a4b9bff4ed43b8cb1374a840de62b1ecacf | C# | NelsonBN/demo-csharp-yield-ienumerable | /src/Demo.PrimeNumbers/Program.cs | 4.0625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Demo.PrimeNumbers
{
public class Program
{
public static void Main(string[] _)
{
Console.Write("Total of prime numbers: ");
var input = Console.ReadLine();
var max = Convert.ToInt32... |
dd7c7a3cfbd5aaa42a8cd81e8558947795d3debf | C# | wenhx/CodingInterviewQuestions | /implementation/src/IPCounting/IPCounting/LogLine.cs | 3.03125 | 3 | using System;
namespace IPCounting
{
public class LogLine
{
public LogLine(DateTime created, string ipAddress)
{
Created = created;
IPAddress = ipAddress;
}
public DateTime Created { get; private set; }
public string IPAddress { get; private se... |
3c200d8d7cbc453aad10a20b09f265be2acc6eb6 | C# | KonnnoEmiki/KCCTD_R1 | /unity/unity/Assets/Scripts/ObserverPattern/Observable.cs | 3.359375 | 3 | using System.Collections.Generic;
// 複数のオブジェクト(Observer)に通知を送りたいオブジェクトは
// このObservableを、通知を受け取りたいオブジェクトはIObserverを継承し使う
public class Observable<T>
{
// 通知対象
protected List<IObserver<T>> m_Observers= new List<IObserver<T>>();
// 通知対象へ追加
public void AddObserver(IObserver<T> observer)
{
m_Observers.Add(observe... |
286a7449de41deba401dc8ab5b2948538062ed10 | C# | wesleyyoung10/Inheritance | /ConsoleApp6/Program.cs | 3.328125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace inheritanceApp
{
class Program
{
static void Main(string[] args)
{
var newHuman = new Human("James");
Console.WriteLine($"Hi, i'm {newHuman.Name... |
ceec0a3e4a21631a71c3288a662f9c779a7d7dac | C# | cs2b01/EC1_Christian_Ledgard | /S3-02 Juego de Ratones TCP:IP/Laberinto-master/C#/Form1.cs | 2.90625 | 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.Net;
using System.Net.Sockets;
using System.Collections;
namespace LaberintoTest
{
public partial class Form1 : Form... |
80f53a07bc8ca6c1e37efb24f0591ea38ab4e19d | C# | nshm99/EDX_String_Processing_and_Pattern_Matching_Algorithms | /week_1/Q1ConstructTrie.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TestCommon;
namespace A5
{
public class Q1ConstructTrie : Processor
{
public Q1ConstructTrie(string testDataName) : base(testDataName)
{
this.Verif... |
15a8ddd3b66117dc6a9ea0cd4cbc74925dc17451 | C# | GuyKh/WatchDogWP8 | /WatchDogWebApplication/WatchDogWebApplication/Models/EyeDetector.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Web;
namespace WatchDogWebApplication.Models
{
public class EyeDetector
{
/// <summary>
/// Returns true if there are atleast one face and two eyes in the picture.
/// </summary>
... |
857c80b6f8bb7823797fa87d420d18e188c858ce | C# | shendongnian/download4 | /code7/1167146-30867198-93006977-8.cs | 2.609375 | 3 | try
{
var userList = service.Users.List();
userList.MaxResults = 10;
userList.Execute();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
Console.ReadLine();
|
a0dec8566e5690b4db7a82a918e82ff177c2a538 | C# | Powertr1p/VaniaGame | /Assets/Scripts/Environment/Platforms/Abstract/MovableObject.cs | 2.65625 | 3 | using System.Collections;
using UnityEngine;
public abstract class MovableObject : MonoBehaviour, ITriggerable
{
[SerializeField] private float _delayBeforeStart = 0f;
protected Transform[] Waypoints;
protected float Speed = 10f;
protected bool LoopBackwards;
protected Transform Target;
... |
92dac93e46aec3ac002b825581745d71050669d7 | C# | bialka104b/Kto_Mi_Wisi_Kase_Csharp | /LogikaAplikacji.Core/DluznikMenager.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace KtoMiWisiKase.Core
{
public class DluznikMenager //Borrower Menager
{
private List<Dluznik> Dluznicy { get; set; } = new List<Dluznik>();
private string PlikZDanymi { get; set; } = "ktoMiWisiKase.txt"... |
5fa917c853aacb5ebe09a00ceeeac34a21e7dff7 | C# | Viajero124/Proyecto_Final2020 | /Entidades_Compartidas/Entidades_Publicas.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Entidades_Compartidas
{
public class Entidades_Publicas
{
private string _NombreE;
private List<string> _MisTelefonos;
private string _Direccion;
public string Direccion
... |
453fa1e3789a535e44989f0712a86552cc0ac4a0 | C# | MaxChernyaev/GeoVR_OculusQuest2 | /Assets/Scripts/NOUSED/SaverObject.cs | 2.75 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.IO;
/// <summary>
/// Класс для сохранения и загрузки позиций объекта.
/// </summary>
public class SaverObject : MonoBehaviour
{
public Vector3 position;
public Quaternion rotation;
/// <summary>
/// Относитель... |
a504d1a5f95fdae5ee06e6d47958af16ea2fbbe4 | C# | valeria20/.NET | /Task 1/Task 1/Task 1/Fibonacci.cs | 3.609375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Task_1
{
class Fibonacci
{
/* count of numbers in the seria*/
public ulong[] getFibonacciNumbers(int n)
{
ulong[] fib_numbers = new ulong[n + 1];
... |
ae86578fc4f3289331d2439cc78b2ea518a02cbd | C# | emilia98/TU-OOP | /OOP/Lab-05/Problem-02-Static-Complex-Number/StaticComplexNumber.cs | 3.40625 | 3 | using System;
namespace Problem_02_Static_Complex_Number
{
class StaticComplexNumber
{
static void Main()
{
ComplexNumber cn1 = new ComplexNumber();
ComplexNumber cn2 = new ComplexNumber();
Console.WriteLine("First Complex Number");
cn1.InputNum... |
4c83b684afa21aded8f7ad6b26afbf4815e786d8 | C# | Imiolak/StochasticCheckers | /Checkers.Engine/Actions/ActionBase.cs | 2.90625 | 3 | using Checkers.Engine.Display;
namespace Checkers.Engine.Actions
{
public abstract class ActionBase
{
protected ActionBase(IPiece piece, int deltaRow, int deltaColumn)
{
Piece = piece;
StartingRow = Piece.Row;
StartingColumn = Piece.Column;
Delta... |
71d236178569af158a9c7c3a359a82ab0a0189e4 | C# | StreetGamer50/FortuneAvenue | /Lib/Conversion/Optional.cs | 3.265625 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace MiscUtil.Conversion
{
public class Optional<T> : IEnumerable<T>
{
private readonly T[] data;
private Optional(T[] data)
{
this.data = data;
}
public stat... |
b5ff79b40bb4c7f336bad89be5ef64a79e668670 | C# | jbirkel/jhblib | /src/cs/jhbCommon.cs | 2.890625 | 3 | // File Header
// ----------------------------------------------------------------------------
//
// Common.cs - miscellaneous classes of the Common assembly
//
// ----------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Reflection;
us... |
e8b375103c1b8f9a21aee47c6ba3f3e9927d772f | C# | praeclarum/CLanguage | /CLanguage/Compiler/TranslationUnitContext.cs | 2.546875 | 3 | using System;
using CLanguage.Syntax;
using CLanguage.Types;
using System.Linq;
namespace CLanguage.Compiler
{
public class TranslationUnitContext : BlockContext
{
public TranslationUnit TranslationUnit { get; }
public TranslationUnitContext (TranslationUnit translationUnit, ExecutableContext... |
a7d92467475651d721f9f8f597c5327dc3d40bc0 | C# | mindsoft/Resque.Net | /src/ExceptionThrowingJob.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Resque
{
/// <summary>
/// This Job intentionally throws an exception so that we
/// can test the work flow of exception handling.
/// </summary>
public class ExceptionThrowingJob : IResqueJob
{
public string Desc... |
29c0b82101bcc3992eba30ff2e169eeb736aaa35 | C# | danail2003/CSharp-OOP | /OOP Training/SpaceStation/Core/Contracts/Controller.cs | 2.8125 | 3 | namespace SpaceStation.Core.Contracts
{
using System.Linq;
using SpaceStation.Models.Mission;
using System;
using System.Text;
using SpaceStation.Repositories.Contracts;
using SpaceStation.Models.Planets;
using SpaceStation.Models.Astronauts.Contracts;
using SpaceStation.Utilit... |
8bdbce2c03a4914a208f1618d669bc44c3c54e35 | C# | nashikunov/Csharp_course | /PrimeFinder/PrimeFinder.ConsoleUI/Program.cs | 3.359375 | 3 | using PrimeFinder.Core;
using System;
using System.Threading.Tasks;
namespace PrimeFinder.ConsoleUI
{
class Program
{
static void Main(string[] args)
{
Console.Write("Enter n: ");
int n = int.Parse(Console.ReadLine());
// Find nth prime here
var locator = ... |
0e4ec292bfde96e3474ac543d86878155c4707c2 | C# | ulquik/desafio_06 | /desafio_06/ultilitario.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace desafio_06
{
public class CarroUtilitario : tipo
{
public override void CalcularSeguro(decimal valor)
{
Console.WriteLine($"O valor do seguro sobre o carro ... |
df45cdb9eaf162ef0444169641fa80f829516c04 | C# | MurphyKyle/unicord | /Community-Discord-BOT-master/CommunityBot/Modules/Favorites.cs | 3.0625 | 3 | using CommunityBot.Features.GlobalAccounts;
using Discord;
using Discord.Commands;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
namespace CommunityBot.Modules
{
public class Favorite... |
ab26c2e6c5332874bbcd9fd42d2b9cbe0253c408 | C# | plainionist/Plainion.Flames | /src/Plainion.Flames.Tutorial/Program.cs | 3 | 3 | using System;
using System.Threading;
namespace Plainion.Flames.Tutorial
{
class Program
{
public static int myDummyGlobalCounter = 0;
static void Main( string[] args )
{
var t1 = new Thread( obj => Thread.Sleep( 5000 ) );
var t2 = new Thread( obj =... |
3b9511099710d5f9bd05ffc69b39753629621af7 | C# | angelaDesbois/TPCSharp | /TP1/Entities/Cercle.cs | 3.15625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TP1.Entities
{
public class Cercle : Forme
{
private int rayon;
public int Rayon { get => rayon; set => rayon = value; }
public override double Aire()
... |
78842116e133fc6c3e12887baefe5f738cd0c88b | C# | ErDhruveshAkhani/Dhruv | /EssentialPractice/Basic/Project4/Project4/Program.cs | 2.953125 | 3 | ///<simmary>
/// Diffrent Literals
/// Created By Dhruvesh Akhani
/// Created On 16-07-2014
/// </summary>
using System;
class literalsdemo
{
public static void Main(String[] args)
{
unchecked//c# Compiler Ignore Type Boundray Value,Defaut Mode is Checked ,Only Examine For Integer Expression
... |
3eb457b0ba26900b56d978c9964e31e28cf9b197 | C# | shoftee/OpenStory | /Server/OpenStory.Server/Processing/ClientBase.cs | 2.6875 | 3 | using System;
using System.Timers;
using OpenStory.Common;
using OpenStory.Common.IO;
using OpenStory.Framework.Contracts;
using OpenStory.Framework.Model.Common;
using OpenStory.Networking;
using OpenStory.Services.Contracts;
using Ninject.Extensions.Logging;
namespace OpenStory.Server.Processing
{
/// <summary>... |
df61508bd72d6dd521c6907288211a5a86657df2 | C# | akesseler/Plexdata.LogWriter | /code/src/Plexdata.LogWriter.Persistent/Internals/Extensions/SettingsPoliciesExtension.cs | 3 | 3 | /*
* MIT License
*
* Copyright (c) 2023 plexdata.de
*
* 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 restriction, including without limitation the rights
* to use,... |
898d3c7dcd8f4c624b22be9d3aa48530bd29d3d5 | C# | congxinhhe99/cinema.net-core-api | /Utils/Schedule/Cronjob.cs | 2.609375 | 3 | using cinema_core.Repositories;
using cinema_core.Repositories.Interfaces;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using NCrontab;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace cinema_core.... |
b97675ff1c699d707b609aa28689e9b1dd2a7e91 | C# | FireAlkazar/BotsPlayground | /Trasher/src/Trasher/CommandHandlers/LurkCommandHandler.cs | 2.71875 | 3 | using System;
using System.Net.Http;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
namespace Trasher.CommandHandlers
{
public class LurkCommandHandler
{
private const string BaseUri = @"https://lurkmore.co";
private const string Query = @"/api.php?format=json&action=qu... |
9d9d0eca73135d7c032e2b4e4bda23074b173554 | C# | shendongnian/download4 | /code11/1928642-58219976-206532961-2.cs | 3.3125 | 3 | using System.Linq;
...
int groupSize = 5;
var result = MyList
.Select((item, index) => new {
item,
index
})
.GroupBy(pair => pair.index / groupSize,
pair => pair.item)
.Select(group => group.ToList())
.ToList();
|
8cd52a007960ad92c33753d3e454cff6b387d46d | C# | kimmignon/Luchthaven | /Luchthaven/Model/ControleToren.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Luchthaven.Model
{
internal class ControleToren
{
public List<Vliegtuig> Vliegtuigen;
public List<Baan> Banen;
//constructor: bij aanmaak toren worden de lijst... |
f0df75f2b096d644f78086e2ad52982fed472fcc | C# | EvgenL/Wpf_3d_Viewer | /Wpf3d/Engine/Data/Vector3d.cs | 3.421875 | 3 | using System;
using System.CodeDom;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Wpf3d.Engine.Data
{
public class Vector3d : ICloneable
{
public float x, y, z;
public float w = 1;
public Vector3d()
{
... |
a02295638744b256bb3fc864da709d9ad748640e | C# | sergey-rush/TaxBot | /StepProvider.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace TaxBot
{
public class StepProvider
{
private static StepProvider current;
public static StepProvider Current
{
get
{
if (current == null)
{
... |
3ee66301229868a26c2955daf221234b4db8f70a | C# | guptavaibhav05086/shapenprintsharecode | /mLearnBackend/Helper/AmazonS3Access.cs | 2.625 | 3 | using Amazon;
using Amazon.S3;
using Amazon.S3.Model;
using Amazon.S3.Transfer;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
namespace mLearnBackend.Helper
{
public static class AmazonS3Access
{
private const string... |
a0259f7ff0e062f8642577aa5b8163259f2dd879 | C# | ravs23/Sklad-SQLServer | /Sclad/DataBase.cs | 2.671875 | 3 | using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Threading;
namespace Sklad
{
static class DataBase
{
public static readonly string dbName = "OriSklad";
public static string ConStrServ { get; private set; } = @"Data Source=... |
bccb0991207c7f419cd5dff06cd52ea8d0a0b823 | C# | theazgra/VIS_project | /Aplikace/DistilleryDbLib/DistilleryLogic/CustomerLogic.cs | 2.765625 | 3 | using DataLayerNetCore;
using DataLayerNetCore.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
namespace DistilleryLogic
{
public class CustomerLogic
{
public static bool GoodPersonalNumber(string personalNumber)
{
if (string.IsNullOrEmpty(personalNumbe... |
d00ddd5badbc922e067f10e772ca7b80d7b4ce7b | C# | stoian1929/SoftUni | /AdvancedCSharp/Homework/Strings_and_Text_Processing/04_TextFilter/TextFilter.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class TextFilter
{
static void Main()
{
string text = Console.ReadLine();
string[] bans = Console.ReadLine().Split(',').Select(p => p.Trim()).ToArray();
StringBuilder sb... |
f36a0dec195c8e9e86707dc65bf6e53081c9e4a8 | C# | arrate7/Modulo1 | /Calculadora/Calculadora/Program.cs | 3.65625 | 4 | using System;
namespace Calculadora
{
class Program
{
static void Main(string[] args)
{
//int numOperacion;
//do
//{
// Console.WriteLine("*****************");
// Console.WriteLine(" Calculadora");
// Consol... |
64268dccace90b3773feae5cda77aa2d9e3cef45 | C# | vijayvepa/DotNetTimeZoneDb | /Src/TimeZoneDb/ValueObjects/UtcTime.cs | 2.734375 | 3 | using System;
namespace TimeZoneDb.ValueObjects
{
public class UtcTime : AbstractTime
{
#region Ctors
public UtcTime(TimeSpan timeSpan) : base(timeSpan)
{
}
public UtcTime(int hours = 0, int minutes = 0, int seconds = 0,
int milliseconds = 0)
:... |
646730b595b6fc620ac48680adc27df8ae942de0 | C# | jamescosborn/csharp-to-do2 | /ToDoList.Tests/Models.Tests/TaskTests.cs | 3.078125 | 3 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using ToDoList.Models;
using System;
using System.Collections.Generic;
namespace ToDoList.Models.Tests
{
[TestClass]
public class TaskTests : IDisposable
{
public TaskTests()
{
DBConfiguration.ConnectionString = "server=localho... |
0ce2b306eaf6eb44cbeac41bc4306d6a89f79c48 | C# | mannkind/seattlewaste2mqtt | /SeattleWasteTest/DataAccess/SourceDAOTest.cs | 2.5625 | 3 | using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using SeattleWaste.DataAccess;
using SeattleWaste.Models.Source;
namespace SeattleWasteTest.DataAccess;
[TestClass]
... |
aed384f71692e909fc0140f13b60f937a3a60386 | C# | vgabi94/Lava-Engine | /Sources/Engine/Camera/PerspectiveCamera.cs | 2.703125 | 3 | using Lava.Mathematics;
namespace Lava.Engine
{
public sealed class PerspectiveCamera : Camera
{
protected override void ComputeProjection()
{
Projection = Matrix4.CreatePerspectiveFieldOfView(fov, aspect, nearPlane, farPlane);
}
public float FoV
{
... |
afb93779fb094d38a37d452a0201a4e359821789 | C# | Hslayer121/3114GFS_Lawless | /3114GFS_Lawless/Assets/Scripts/PlayerMovement.cs | 2.796875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour {
//For Movement
private Vector3 pos; // This is used to move the player to a new position
private float distance; // Float used to check the distance between the player an... |
e7bc5e2e91bf5d96925d7e32d53d31e3ccdd44e9 | C# | fujimmy/ExcelUpload2 | /Infrastructure/Helpers/ImportDataHelper.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Web;
using ExcelUpload.DateSouce;
using ExcelUpload.Models;
using LinqToExcel;
namespace BlogSample.Infrastructure
{
public class ImportDataHelper
{
/// <summary>
/// 檢查匯入的 Excel... |
e144eafad1467baa61f04655422d8b531f6a546b | C# | Tlepkali/TestNet | /ConsoleApp1/Program.cs | 3.25 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
public class Lift
{
public Lift(int numOfFloors,double capacity)
{
numberOfFloors = numOfFloors;
currentFloor = 1;
lif... |
a5db6791b2c17129c4b79c82819f41ce912a715b | C# | rpparas/FastCode | /Edit.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace SampleApp
{
public partial class Edit : Form
{
private bool successful;
public Edit(String contents)
{
... |
318fced098420c6e6307863d25a3d327427888d9 | C# | shendongnian/download4 | /code5/910468-22746065-61665145-2.cs | 2.9375 | 3 | class Program
{
static void Main(string[] args)
{
using (var webClient = new WebClient())
{
webClient.DownloadStringCompleted+=webClient_DownloadStringCompleted;
webClient.DownloadStringAsync(new Uri("http://mp3skull.com/mp3/eminem.html")... |
d9d595ca89bd87a2bad75a2a08d9c0f7966bd5f2 | C# | dariawisniowska/ProjektKWDM | /EyeStation/PACSserwer/PACS.cs | 2.578125 | 3 | using EyeStation.PACS;
using gdcm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace EyeStation.PACS
{
public class PACSObj
{
private string ip;
private ushort port;
private string aet;
... |
c6c5054c7ef2749a7981beb778446f7ff3bf24dc | C# | jeffcogswell/DevBuildWeek4 | /ObjectDemo1/Program.cs | 4.09375 | 4 | using System;
namespace ObjectDemo1
{
class MyClass
{
// member variables
public int L;
public int W;
// member functions (methods)
public int Area()
{
return L * W;
}
}
class Program
{
static void Main(string[] args)
{
int x; // Our basic types such as int, double, decimal, etc. are ... |
412f2fa7cfcdbd8341561d853d97145a46c8f50b | C# | clusta/publishr | /PublishR.Social/Facebook/FacebookClient.cs | 2.671875 | 3 | using PublishR.Abstractions;
using PublishR.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
namespace PublishR.Social.Facebook
{
public class Facebook... |
7fc1adc7a9354ee3e0a94ddad87dff109001a948 | C# | kabirules/ANP | /Assets/AndroidGoodies/Example/Scripts/GPSTest.cs | 2.515625 | 3 |
#if UNITY_ANDROID
namespace AndroidGoodiesExamples
{
using System;
using DeadMosquito.AndroidGoodies;
using UnityEngine;
using UnityEngine.UI;
public class GPSTest : MonoBehaviour
{
public const double AmsterdamLatitude = 52.3745913;
public const double AmsterdamLongitude = 4.8285751;
public const double... |
cef95bcf97d4adce4923153743aa8b218932a5c6 | C# | jasaleja/SDD_projekat | /SDDLibrary/EventGraph/EventBlocks/Entity.cs | 3.1875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace EventGraphLib.EventGraph
{
/// <summary>
/// Klasa koja opisuje entitet. Druge implementacije entiteta treba da nasledjuju ovu klasu.
/// </summary>
public class Entity : IComparable<Entity>
{
p... |
9af59152fc81595af50da2f92167d3371f64deee | C# | mayaleh/Maya.SendSms | /Controllers/TransactionalController.cs | 2.515625 | 3 | using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Threading.Tasks;
using Maya.BulkGate.Sms;
namespace SendSms.Controllers
{
[ApiController]
[Route("api/[controller]")]
public class TransactionalController : ControllerBase
{
private readonly IClient ... |
c6ba4d85990ac7019e5a04340aeaf38e4595e3d3 | C# | Strije/WinVK | /VK.GenericUI/FormTransform.cs | 2.8125 | 3 | using System;
using System.Diagnostics;
using System.Drawing;
using System.Threading;
using System.Windows.Forms;
namespace VK.GenericUI
{
public static class FormTransform
{
public static void Transform(Form frm, int newWidth, int newHeight)
{
Transform(frm, new Size(newWidth, new... |
9d7d776beb133a436044263ef0e47a1e775a7af1 | C# | netintellect/PluralsightSpaJumpStartFinal | /Telerik/DemoApp/Examples/Diagrams/Dashboard/PageManager/FileManager.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.IO.IsolatedStorage;
using System.Linq;
using Telerik.Windows.Controls;
namespace Telerik.Windows.Examples.Diagrams.Dashboard
{
/// <summary>
/// File management utility geared towards RadDiagram.
/// When using WPF the user's temp folde... |
8e470ea3a2dcd4bc0907d8c66e281005ed277175 | C# | Rabosa616/NetConf2019_MicroservicesGeneratingChaos | /src/0.BuildingBlocks/Microservices.GeneratingChaos.BuildingBlocks/Helpers/BaseCommandResponse.cs | 2.890625 | 3 | namespace Microservices.GeneratingChaos.BuildingBlocks.Helpers
{
/// <summary>
/// Base command execution response
/// </summary>
/// <typeparam name="T"></typeparam>
public abstract class BaseCommandResponse<T>
{
/// <summary>
/// Gets or sets the response dto.
/// </su... |
87f8bbf57d69b5d391fc9d594765af33b5995abb | C# | InjectionMap/InjectionMap.Configuration | /src/InjectionMap.Configuration/InjectionMappingElement.cs | 2.578125 | 3 | using System.Configuration;
namespace InjectionMap.Configuration
{
public class InjectionMappingElement : ConfigurationElement
{
/// <summary>
/// The contract type that is used to mark the mapping
/// </summary>
[ConfigurationProperty("contract", IsKey = true, IsReq... |
ad51f5a486ea9f2320c90fc4773c3fb609fccd78 | C# | samcragg/Crest | /src/Crest.Host/Security/SecurityKeyCacheInitializer.cs | 2.515625 | 3 | // Copyright (c) Samuel Cragg.
//
// Licensed under the MIT license. See LICENSE file in the project root for
// full license information.
namespace Crest.Host.Security
{
using System;
using System.Threading;
using System.Threading.Tasks;
using Crest.Abstractions;
using Crest.Core.Logging;
//... |
7971fd45e3f77978c4ab87a58686d192dc1f40e1 | C# | dalefugier/Rockfish | /RockfishServer/RockfishRecord.cs | 2.8125 | 3 | using System;
using RockfishCommon;
namespace RockfishServer
{
/// <summary>
/// RockfishRecord class
/// </summary>
public class RockfishRecord : IDisposable
{
private bool m_disposed;
/// <summary>
/// Public constructor
/// </summary>
public RockfishRecord(RockfishHeader header)
... |
90eb260cffbb9726082f6e839d45ee818fba5921 | C# | ywscr/drawingboard | /DrawingBoard/Shapes/ShapesCollection.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
namespace DrawingBoard
{
/// <summary>
/// shapes collection
/// </summary>
[Serializable]
public class ShapesCollection
{
// List of objects on the canvas
public... |
de80fd5e1bc8a4e8eb5f2681687b24768ac7f97f | C# | MurphyDownpour/SignIn | /SignIn/Program.cs | 3.375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SignIn
{
class Program
{
static void Main(string[] args)
{
int usernameFail = 0;
int passwordFail = 0;
for (int i = 0; i <= username... |
f5fe3a7742911ecc12cc64f445130e2f4cfbc588 | C# | shendongnian/download4 | /code6/1031293-26491813-75996483-6.cs | 2.859375 | 3 | public class CollectionContainsConverter : IValueConverter
{
public IEnumerable<object> Collection { get; set; } //This is actually a DP
public object Convert(...)
{
return Collection.Contains(value);
// or possibly, to allow for the Object.Equals override
... |
d2f43746a6222947ef21b43208af3edf60fac4b3 | C# | hvp/Gemgine | /Gem/StateMachine/State.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Gem.StateMachine
{
public class State
{
public List<Transition> transitions = new List<Transition>();
public Action<Machine> update = null;
public Action<Machine> onEnter = null;
pu... |
f9804970f83bdefd4e7c8af412d1061f3d969426 | C# | genctuuba/MCSD-AZ-204-01 | /MCSD-AZ-204-01-Solution/NYP03/KonutCreditManager.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace NYP03
{
class KonutCreditManager : ICreditManager
{
public void KrediDosyaMasrafiHesapla()
{
//Hesaplama işlemleri
Console.WriteLine("Konut kredisi dosya masrafı 3.800TL'dir.");
}
... |
b496eaea3e2edd1b824f146a27bcf15e304199e3 | C# | EyriCho/Learning | /Leetcode/1768.merge-strings-alternately.cs | 3.375 | 3 | /*
* @lc app=leetcode id=1768 lang=csharp
*
* [1768] Merge Strings Alternately
*/
// @lc code=start
public class Solution {
public string MergeAlternately(string word1, string word2) {
var array = new char[word1.Length + word2.Length];
int i1 = 0, i2 = 0, j = 0;
while (i1 < word1.Leng... |
a29a21925538cba1180fd9dd69e97bbaafd064ae | C# | jecolasurdo/Excercises | /getLongestString/csharp/getLongestStringSpecs/LongestStringSpecs.cs | 3.328125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using NUnit.Framework;
using NUnit.Framework.Constraints;
namespace Katas
{
[TestFixture]
public class LongestStringSpecs
{
public List<string> TestInputList = new List<string>... |
379fbbde42b7e8ce30042abe3bfd6733706d5eb0 | C# | PlebanIrina/DrawRectangle | /DrawLibrary/CLine.cs | 3.0625 | 3 | using System.Windows.Controls;
using System.Windows.Shapes;
namespace DrawLibrary
{
public class CLine : CAbstractFigure
{
protected Line _lineObject;
public CLine(double startX, double startY, double finishY, double finishX) : base(startX, startY, finishY, finishX)
{
_lin... |
f2af239b9c01956f84072be1782d853f58a6425d | C# | JohnnieMiralda/Compiler | /Compiler.Parser/Parser.cs | 2.703125 | 3 | using Compiler.Core;
using Compiler.Core.Expressions;
using Compiler.Core.Interfaces;
using Compiler.Core.Statements;
using System;
using System.Collections.Generic;
using System.Linq;
using Type = Compiler.Core.Type;
namespace Compiler.Parser
{
public class Parser : IParser
{
private readonly IScanne... |
869c8a4fabb569175fc7c7e34622d72ebf76fbf8 | C# | kotikavoori/Back2Basics | /DelegateEx/SimpleDelegate.cs | 3.1875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DelegateEx
{
internal class RealTimeStatus
{
private static void Main(string[] args)
{
Client1 c1 = new Client1();
c1.RxRealtimeStaus();
... |
392300ee04dfbce167068d182aa4b5353fd098b8 | C# | TLeonardUK/buildsync | /Source/VersionUpdater/Source/Program.cs | 2.828125 | 3 | /*
buildsync
Copyright (C) 2020 Tim Leonard <me@timleonard.uk>
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 pur... |
a9183794ac9f0f7cbf610d05de161a88b930a9d8 | C# | ACMH1/OOPCSWorkshop4 | /OOPwithCsharpDay3/BankAccount2.cs | 3.53125 | 4 | using System;
namespace OOPwithCsharpDay3
{
class BankAccount : Account
{
//Attributes
protected double InterestRate;
//Constructors
public BankAccount() : this("", "", 0)
{ }
public BankAccount(string AccountNumber, string AccountName, double AccountBalance) :... |
e9105cef430b7bd6dce4906d92d13b5369a53118 | C# | Infragistics/winforms-samples | /Applications/Elemental/Elemental/Data/GeoData.cs | 2.75 | 3 | using System;
using System.Data;
using System.Runtime.InteropServices;
using System.IO;
using System.Diagnostics;
using System.Drawing;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Elemental;
namespace Elemental.Data
{
#region GeoData class
/// <summary>
/// Provi... |
1c2b3d8ff3ca68b5cddb68c34493398d4c51c7f3 | C# | FullStackSmartDev/CSharp-ASP.NET-Core-Angular-Medical-Management-System | /medico/Infrastructure/Data/Medico.Data/UoW/UnitOfWork.cs | 2.609375 | 3 | using System.Threading.Tasks;
using Medico.Data.Context;
using Medico.Domain.Interfaces;
namespace Medico.Data.UoW
{
public class UnitOfWork : IUnitOfWork
{
private readonly MedicoContext _context;
public UnitOfWork(MedicoContext context)
{
_context = context;
}
... |
efd73f23a4a292db290559b3510aa56b2789a580 | C# | mkurdziel/BitHome-Hub-CSharp-V1 | /SyNet Controller/MessageTypes/MsgZigbeeATCmd.cs | 2.578125 | 3 | using System;
namespace SyNet.MessageTypes
{
/// <summary>
/// Message type for a Zigbee AT Command
/// </summary>
public class MsgZigbeeATCmd : MsgZigbee {
/// <summary>
/// Payload offset
/// </summary>
public new const int PAYLOAD_OFFSET = 4;
private EsnXbeeAtCmd m_a... |
d5e7a571b4ecf016c0fcb504c8c7699089c184ed | C# | vivianacampos/reciclemos_v2 | /Controladores/UsuarioControlador.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using reciclemos_v2.Clases;
using System.Data;
using System.Data.SqlClient;
using System.Security.Cryptography;
using System.Text;
namespace reciclemos_v2.Controladores
{
public class UsuarioControlador
{
private stat... |
46bcc8a80f19d86c8d26dd7b63e40efe9469911e | C# | plasroom46/CtCI-6th-Edition-CSharp | /Ch 05. Bit Manipulation/Q5_03_Flip_Bit_to_Win/Q5_03_Flip_Bit_to_Win_D.cs | 3.421875 | 3 | using ctci.Contracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Chapter05.Q5_03_Flip_Bit_to_Win
{
// 最佳化演算法
// Time complexity: O(b)
// Space complexity: O(1)
// b: 序列長度
public class Q5_03_Flip_Bit_to_Win_D : Question
{
pub... |
b73298a8f3fa519aa79f6b338adbd24c7dea2b28 | C# | omidmokhtari93/Amar | /DaftarFanni/Sabt.aspx.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class DaftarFanni_Sabt : System.Web.UI.Page
{
public string FilesSize { get; set; }
protected void Page_Load(object sender, EventArgs e)
... |
3c75f649f02cfdc127ab4dafc662d512635155a9 | C# | tbayart/design-pattern-examples | /ProxyPattern/SerieAPlayer.cs | 3.171875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProxyPattern
{
public class SerieAPlayer : Player
{
/// <summary>
/// This method is used in proxy
/// </summary>
public override void Shoot()
{
Con... |
de35003d2d0ff53096dfaea31d4c6d4137c5efe1 | C# | bidyut-patra/dot-net | /ConsoleApp/ConsoleApp/Riddles/Executor.cs | 3.171875 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp.Riddles
{
public class Executor<In, Out>
{
public IAlgorithm<In, Out> Algorithm { get; private set; }
public IInput<In> Input { get... |
16da7596974cf8ff795815ba6ab678a10da9e18d | C# | MinMaxed/Data-Structures-and-Algorithms | /challenges/MultiBracketValidation/MultiBracketValidation/Queue.cs | 3.421875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MultiBracketValidation
{
public class Queue
{
public Node Front { get; set; }
public Node Rear { get; set; }
//public Node Current { get; set; }
//queu... |
148e27b028ebd7b9c82d8b61beb5b73bde345917 | C# | WQywy/C-sharework | /homework5/Ordertest/Ordertest/OrderService.cs | 3.125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ordertest {
/// <summary>
/// OrderService:provide ordering service,
/// like add order, remove order, query order and so on
/// 实现添加订单、删除订单、修改订单、查询订单(按照订单号、商品名称、客户等字段进行查询)
/// </sum... |
080515f477985c25ec82a699bb384ebc19311558 | C# | kralle333/DungeonsOfGrimstone | / dcascii/RPGAsci/ConsoleDrawing/MenuItem.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RPGAsci
{
public class MenuItem
{
int level = 0;
MenuItem parent;
public MenuItem childSelected;
public List<MenuItem> children = new List<MenuItem>();
public string text;
public int index = 0;
... |
57e3c2e7bc231b0574c2e9143bb0759d396a3853 | C# | rafaeldias97/EntityFrameworkCore | /Context/MSSQLContext.cs | 2.765625 | 3 | using Microsoft.EntityFrameworkCore;
namespace EFConsole {
public class MSSQLContext : DbContext
{
public DbSet<Pessoa> Pessoa { get; set; }
// Método de configuração
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
// String de conex... |
f6a87b2ba29fe5077c5a789656d2d1d8dc5ef4f0 | C# | b11p/Bleatingsheep.Osu.ApiV2 | /Bleatingsheep.Osu.ApiV2/Authorization.cs | 2.671875 | 3 | using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Bleatingsheep.Osu.ApiV2
{
internal class Authorization
{
private readonly string _username;
private readonly string _password;
private TokenInfo _tokenInfo = TokenInfo... |
c8862cc59292b83595122c4cd28f7b54cbf20672 | C# | wymillerlinux/DeskHubSharp | /DeskHubSharp/BusinessLayer/Request.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DeskHubSharp
{
public class Request
{
private ApiDataService _api;
private string _query;
/// <summary>
/// Override constructor for the class
... |
5413aeade5f154cf6ef3cba900e0ac05bce0f8a8 | C# | EmilisDolgov/neo4j | /Neo4JLogistics/Program.cs | 2.84375 | 3 | using Neo4jClient;
using Neo4jClient.Cypher;
using System;
using System.Collections;
using System.Collections.Generic;
namespace Neo4JLogistics
{
class Program
{
static void Main(string[] args)
{
string uri = "bolt://localhost:7687/";
var client = new BoltG... |
6a643bc6007a36d3aa412554fd98793bc2b93ba3 | C# | mtachot/WPF | /WpfApplication1/WpfApplication1/Classes/Converters/BooleanToVisibilityConverter.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;
namespace WpfApplication1.Classes
{
public class BooleanToVisibilityConverter : IValueConverter
{
// Convertir les données po... |