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 |
|---|---|---|---|---|---|---|
da5cd1a72212c683947084681d446a6006b2ad74 | C# | musasesay/CodingChickUdemy | /CodingChick.UdemyUniversal/CodingChick.UdemyUniversal/CodingChick.UdemyUniversal.Shared/Controls/Custom/Loader.cs | 2.515625 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespace CodingChick.UdemyUniversal.Controls.Custom
{
[TemplateVisualState(GroupName = ITEMS_STATE_NAME, Nam... |
b12c2fbd0f5c0e86fa870d3664fda0353a8a0ab2 | C# | s4xack/Oop | /Race/Transport/Land/BactrianCamel.cs | 2.65625 | 3 | using System;
namespace Race.Transport.Land
{
public class BactrianCamel : LandVehicle
{
public BactrianCamel() : base(10, 30)
{
}
protected override Double CalculateRestTime(Int32 restCount) =>
restCount switch
{
0 => 0,
... |
e917dba03079f11b657feae0994d0b61826fe178 | C# | nguyenhoangbuu0911/HoangBuu | /Mang/ViTri_LonNhat/ViTri_LonNhat/Program.cs | 3.40625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ViTri_LonNhat
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Tim gia tri lon nhat cua cac phan tu: ");
int[] a = new int... |
76093dcbf90f29c9bf80810a62934ec792505423 | C# | sweeperq/Monona | /src/Monona.Web/Models/Stores/StoreFilter.cs | 2.65625 | 3 | using Monona.Core.Entities;
using Monona.Core.Helpers;
using Monona.Core.Specifications;
using Monona.Web.SearchFilters;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
namespace Monona.Web.Models.Stores
{
public class StoreFilter : BaseSearchFilter<... |
61a37afd980f237a8d161196789db0d48fd6f98a | C# | golubovicanita/Quhinja | /Quhinja/Quhinja.Services/Implementations/IngridientService.cs | 2.703125 | 3 | using AutoMapper;
using Microsoft.EntityFrameworkCore;
using Quhinja.Data;
using Quhinja.Data.Entiities;
using Quhinja.Services.Interfaces;
using Quhinja.Services.Models.InputModels.Ingridient;
using Quhinja.Services.Models.OutputModels.Ingridient;
using System;
using System.Collections.Generic;
using System.Linq;
usi... |
0658d738dc86a370cbf69130e73b508a2e4de1a5 | C# | ktanakaj/AspNetCoreApiExample | /AspNetCoreApiExample/Exceptions/BadRequestException.cs | 2.625 | 3 | // ================================================================================================
// <summary>
// 不正なリクエストの例外クラスソース</summary>
//
// <copyright file="BadRequestException.cs">
// Copyright (C) 2019 Koichi Tanaka. All rights reserved.</copyright>
// <author>
// Koichi Tanaka</author>
// =... |
49b663fe90a1f4a40aebaf083ca36a8ccc56d032 | C# | DamianSwierczek/Kurs | /Kurs/StudentDiary/Program.cs | 3.203125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StudentDiary
{
class Program
{
static void Main(string[] args)
{
Diary diary = new Diary();
diary.AddRating(5);
diary.AddRating(8.... |
c654aa5dae917ad0e34e747cb34fbcd9abbe0831 | C# | danimjr08/ghostyV003 | /GhostyHistory_V0.03/Assets/PennyPixel/Scripts/Player/LightBehaviour.cs | 2.515625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Experimental.Rendering.Universal;
public class LightBehaviour : MonoBehaviour
{
public Light2D AimLight;
// Start is called before the first frame update
void Start()
{
AimLight = GetComponent... |
2e31ee20177c0fec8951f29760827553925afbb4 | C# | hur1can3/VoidCore | /src/VoidCore.Model/Data/SearchCriteria.cs | 3.25 | 3 | using System;
using System.Linq;
using System.Linq.Expressions;
namespace VoidCore.Model.Data
{
/// <summary>
/// Build expressions for searching.
/// </summary>
public static class SearchCriteria
{
/// <summary>
/// Check entities string properties and return entities that contain ... |
dd29c9f036f6aa48d95c4ce8506e5d8d0605cffb | C# | ylmzertg/test | /MyBlog/Models/Mapping/CommentMap.cs | 2.84375 | 3 | using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
namespace MyBlog.Models.Mapping
{
public class CommentMap : EntityTypeConfiguration<Comment>
{
public CommentMap()
{
// Primary Key
this.HasKey(t => t.CommentID);
... |
5f8fb08a48ff65863464c668cad2ffafe30c5ec8 | C# | pmaner/PosProto | /POS/Models/SaleItem.cs | 3.265625 | 3 | using System;
using POS.Interfaces;
namespace POS.Models
{
/// <summary>
/// Defines an item in a sale in a Retail POS system.
/// A sale item is created when a Product is added to a sale
/// </summary>
public class SaleItem : ISaleItem
{
/// <summary>
/// Gets or sets the... |
e0d9422ff4174e5fd43d932e69294b8754e67f9e | C# | cst95/coinbasepro.net | /CoinbasePro/Http/Connection.cs | 2.703125 | 3 | using CoinbasePro.Authentication;
using System;
using System.Net.Http;
using System.Threading.Tasks;
namespace CoinbasePro.Http
{
public class Connection : IConnection
{
private readonly HttpClient _httpClient;
public Connection(IAuthenticationHandler authenticationHandler)
{
... |
10e4d82bd7791d314b94a51314e58d16739a61c6 | C# | Martin-Kotrulev/Telerik-Exercises | /02_CSharp_Part_2/07.Arrays/11.FindingIndexOfGivenElement/FindingIndexOfGivenElement.cs | 4.1875 | 4 | using System;
using System.Collections.Generic;
/* 11.Write a program that finds the index of given
* element in a sorted array of integers by using
* the binary search algorithm (find it in Wikipedia).*/
class FindingIndexOfGivenElement
{
static int BinarySearch(int[] arr, int key)
{
Arr... |
c4b2c2407e022951b5c7031e999bc94490619e8f | C# | SelesGames/Weave | /Windows Phone 7/HollywoodReport/Weave/Deprecated/Services/Facebook/FacebookMyProfileService.cs | 2.71875 | 3 | using System;
using System.Net;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Runtime.Serialization.Json;
namespace weave.Services.Facebook
{
public class MeJson
{
public string id { get; set; }
}
public static class FacebookMyProfileService
{
... |
8752d5576b9bfb19c0de1c044340e2768d05eb23 | C# | jbouduin/DerECoach.Util.Document | /Bouduin.Util.Document/Rtf/Contents/Table/RtfTableCellDefinition.cs | 2.921875 | 3 | using Bouduin.Util.Document.Rtf.Attributes;
namespace Bouduin.Util.Document.Rtf.Contents.Table
{
/// <summary>
/// Represents cell definition containing information about cell style and width.
/// </summary>
public class RtfTableCellDefinition
{
private readonly RtfTableCell _cell;
... |
919e9fce6c9e616beadff9e182246902bae74c40 | C# | CPLN/enigmos | /EnigmaReferencer.cs | 2.90625 | 3 | using Cpln.Enigmos.Enigmas;
using Cpln.Enigmos.Utils;
using System.Collections.Generic;
namespace Cpln.Enigmos
{
/// <summary>
/// Cette classe permet de référencer toutes les énigmes, ainsi que de tester une énigme lors du débugging.
/// </summary>
public abstract class EnigmaReferencer
{
... |
4260bcc6689e489c6fc26ac4c46700a867ba6e48 | C# | leandroribeiro/poc-dbquery | /Domain/Tarefa.cs | 3.09375 | 3 | namespace Domain
{
public class Tarefa
{
public Tarefa(int id, string nome, bool concluida)
{
Id = id;
Nome = nome;
if(concluida)
this.MarcarComoConcluida();
}
public Tarefa(int id, string nome)
{
... |
d5ede1b8b19c698770a55d1e73edad4b9833d1d5 | C# | makarenk0/InfoSearch | /Interface/Tools/FileFolderHelper.cs | 2.78125 | 3 | using System;
using System.IO;
namespace Interface.Tools
{
internal static class FileFolderHelper
{
private static readonly string AppDataPath =
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
internal static readonly string AppFolderPath =
Path.C... |
974aff19f27aa579f1531058a4a90af2ec3e99e2 | C# | Avatarchik/EntitiesBT | /Runtime/Nodes/SuccessionNode.cs | 2.546875 | 3 | using System;
using EntitiesBT.Core;
namespace EntitiesBT.Nodes
{
public static class SuccessionNode
{
public struct Data : INodeData
{
public int ChildIndex;
}
public static void Reset(int index, INodeBlob blob, IBlackboard blackboard)
{
blob.Ge... |
7b7375ec47b98bd7e33ace0944abfbcf8b72776b | C# | rdecastro/Data-Structures | /DataStructures/Stack.cs | 3.453125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DataStructures.Tests
{
public class Stack<T>
{
private LinkedList<T> list;
public Stack() {
list = new LinkedList<T>();
}
public void Push(T item)
... |
b4aea4ac649d33fd82fd50988164ad94e6330dd6 | C# | outhere/DirectOutput | /DirectOutput/Extensions/DoubleExtensions.cs | 3.734375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
/// <summary>
/// Extends the double type with additional functionality.
/// </summary>
public static class DoubleExtensions
{
/// <summary>
/// Limits the value to the supplied Min- and MaxValues
/// </sum... |
bee833d404304c8a38d51483a2eefbd49e39a1af | C# | thinguyendinh86/gitusageguide | /KY.KYV.Topology/Geometries/Coordinates.cs | 3.234375 | 3 | namespace KY.KYV.Topology.Geometries
{
/// <summary>
/// Useful utility functions for handling Coordinate objects.
/// </summary>
public static class Coordinates
{
/// <summary>
/// Factory method providing access to common Coordinate implementations.
/// </summary>
... |
a087d340dc38d0209e505fe6d1095b3695724d16 | C# | DyegoMaas/Faculdade | /TCC 2017/TCC II/Entrega/tcc_bcc_2017_2_dyegoam_DyegoAlekssanderMaas/fontes/Aplicacao/SmartOutlet.Outlet/Mqtt/ConfiguracaoMqtt.cs | 2.53125 | 3 | using System;
using System.Configuration;
namespace SmartOutlet.Outlet.Mqtt
{
public class ConfiguracaoMqtt
{
public string BrokerHostName { get; }
public int BrokerPort { get; }
public ConfiguracaoMqtt()
{
var mqttSection = ConfigurationManager.GetSection("mqtt") ... |
d8d23ecbebd3401786cf11216c05360c81fcc0b2 | C# | KnJbMfLAgdkwZL/codewars.com | /Kata/8 kyu/Welcome/Kata.cs | 3.09375 | 3 | // Welcome
// https://www.codewars.com/kata/577ff15ad648a14b780000e7
namespace codewars.com.Kata._8_kyu.Welcome
{
using System.Collections.Generic;
public static class Kata
{
public static string Greet(string language)
{
Dictionary<string, string> dic = new Dictionary<string, s... |
e0051b18b5e9be315fbbea631024ed267e2725b6 | C# | shendongnian/download4 | /code8/1509894-41637856-135923888-2.cs | 2.609375 | 3 | private void RequestCompleted(IAsyncResult result)
{
var request = (HttpWebRequest)result.AsyncState;
var response = (HttpWebResponse)request.EndGetResponse(result);
JObject jdoc = null;
Stream stream = response.GetResponseStream();
try
{
StreamReader ... |
f20ee95430eeccbd4f8f8ace6e28a1cf68a21f6a | C# | Infarh/MathCore.AI | /MathCore.AI/NeuralNetworks/ActivationFunctions/ActivationFunction.cs | 2.9375 | 3 | // ReSharper disable UnusedMember.Global
namespace MathCore.AI.NeuralNetworks.ActivationFunctions;
/// <summary>Функция активации</summary>
public abstract class ActivationFunction
{
/// <summary>Сигмоид (логистическая)</summary>
public static Sigmoid Sigmoid => new();
/// <summary>Линейная функция</summ... |
081a3fc1690157e1d2d780592a95b8bf0574b5f5 | C# | Majer9lazer/HackTest | /HackingTests_Interface/MainWindow.xaml.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
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 Sys... |
ca8dd577d1f3de94e73ce9f3cdafa184775c95cb | C# | green-fox-academy/kovacsnorb | /week-02/day-01/12-Cuboid/12-Cuboid/Program.cs | 4.375 | 4 | using System;
namespace _12_Cuboid
{
class Program
{
static void Main(string[] args)
{
// Write a program that stores 3 sides of a cuboid as variables (doubles)
// The program should write the surface area and volume of the cuboid like:
//
// Sur... |
bfc9893b5e9102ca4cb164de573412cfdbc7b917 | C# | irfannugraha/Game-Match-Three | /Game Match Three/Assets/Script/grid.cs | 2.59375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class grid : MonoBehaviour
{
public int gridSizeX, gridSizeY;
public GameObject tilePrefab;
[HideInInspector] public GameObject[,] tiles;
public GameObject[] candies;
[HideInInspector] public Vector2 offset;
... |
81ca650a2a18f76e8c980735c2879d1b585467fb | C# | Suzii/event-planner | /EventPlanner/EventPlanner.DAL/Repository/EventRepository.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using AutoMapper;
using System.Threading.Tasks;
using System.Data.Entity.Migrations;
using EventPlanner.Models.Domain;
using EventEntity = EventPlanner.Entities.EventEntity;
namespace EventPlanner.DAL.Repository
{
/// <su... |
84980a090381530bcc486416fd2f2935fe4627b4 | C# | RVinan/APKMaps | /mapsRVinanImp/mapsRVinanImp/MainPage.xaml.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.GoogleMaps;
using mapsRVinanImp.ViewModels;
namespace mapsRVinanImp
{
[DesignTimeVisible(false)]
pu... |
45cf667b8d4d000b2c040bd8828e3a24c5af3cdf | C# | aogaga/ClearMeasure- | /App/Program.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Fizzbuzz;
namespace App
{
public class Program
{
static void Main(string[] args)
{
var list = new List<FizBuzInputValues>
{
new Fiz... |
f6e7308addbcae647c533104f1008c772c0e0ec5 | C# | omurerdolu/adjustable_minefield_app | /minefieldProject/Mayin_tarlasi.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace MehmetOmurErdolu153311035
{
class Mayin_tarlasi
{
Size buyukluk_;
List<Mayin> mayinlar;
int dolu_mayin_sayisi;
Random rnd = new Random();
public Mayin_t... |
cc0097597f05d401d5476707da0336e123a77285 | C# | PresnyakovIgorDev/Patterns | /Patterns/Behavioral/Iterator/IAggregate.cs | 2.5625 | 3 | namespace Patterns.Behavioral.Iterator
{
public interface IAggregate<T>
{
IIterator<T> GetIterator();
int Count { get; }
T this[int index] { get; set; }
}
} |
080d753f66e8b8b2eab6f352e2de5ecd5d4cd861 | C# | hamptons/QueryConnections | /QueryServerConnections/QueryServerConnections/ActiveConnections.cs | 2.59375 | 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 QueryServerConnections
{
public partial class activeConnectionsForm : Form
{
p... |
12f989fd7966186a60495c896a925ee42b957f3d | C# | hackerlank/tomato-renderer | /Tomato/Network/Packetizer.cs | 3.25 | 3 | using System;
using System.Collections.Generic;
namespace Tomato.Network
{
/// <summary>
/// Defines a packetizer class.
/// A packet has a 4-bytes length header.
/// This is not thread-safe.
/// </summary>
public sealed class Packetizer
{
private Buffer<byte> m_buffer = null;
/// <summary... |
5d716083d84d11b6289b83d74f5646e200ff3714 | C# | jxw00100/Algorithm | /LearnAlgorithm/LearnAlgorithm.Test/MatrixMultiplication/Straightfoward.Test.cs | 2.96875 | 3 | using System;
using System.ComponentModel;
using LearnAlgorithm.MatrixMultiplication;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace LearnAlgorithm.Test.MatrixMultiplication
{
[TestClass]
public class StraightfowardTest
{
IMatrixMuliplier<Double> _multiplier = new Straightfoward<Do... |
1a6210099e52658708bb856196021de52fc7ef37 | C# | paulj/webgac | /WebGACForVS/LoadingControl.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Threading;
using System.Windows.Forms;
namespace WebGACForVS {
public partial class LoadingControl : Label {
private int mBusyCount = 0;
public L... |
35c2ac76a3e4fa86b87c5f7a717d991b1d4730ab | C# | viptalya/-introduction_C- | /lesson8/Program.cs | 3.5625 | 4 | using System;
using System.Configuration;
namespace lesson8
{
class Program
{
static void Main(string[] args)
{
/*
Создать консольное приложение, которое при старте выводит приветствие, записанное в настройках
приложения(application - scope).Запросить у пол... |
c10dc73888f9eb7226c6fea7019151cae600a400 | C# | Merwer/Dungeoneering | /Dungeoneering/Models/MyStatsData.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace Merwer.Chronicle.Dungeoneering.Tracker.Models
{
/*
* Stats to be calculated:
- General
- Total Drafts
- Total Games
- Win Rate
- Going First Win Rate
- Average Dun... |
30d7f9099ac5970af00d7b0cc7e241869968bdcf | C# | Danialjim/SA_TareaDevops | /ServiciosWeb/ServicioDePiloto/Controllers/AsignacionPilotoController.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace ServicioDePiloto.Controllers
{
public class AsignacionPilotoController : ApiController
{
/*
* public int get(); Retorna el id del piloto que le fue asig... |
3a47759af651ff16dfe6ec820cb7c80efe3b7a26 | C# | danvacam/Conto | /Conto.Wpf/CashFlow/CashFlowViewModel.cs | 2.578125 | 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.Data;
using System.Windows.Documents;
using System.Windows.Input;
using Conto.Data;
namespace Conto.Wpf.CashFlow
{
public class... |
0227db4a46c90c41f21f3a756c2653bac79d039d | C# | emiliaribeiro/CodilityChalenges | /WpfApp1/PermCheck.cs | 3.109375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WpfApp1
{
class PermCheck
{
public PermCheck()
{
}
public int solution(int[] A)
{
if (A.Length == 0)
{
... |
c6a97dee758483d69cf3c2bfbcd41cde3b5b5bc9 | C# | SimioLLC/RunSimioSchedule | /Source/RunSimioSchedule2/RunContext.cs | 2.703125 | 3 | using SimioAPI;
using System;
using System.IO;
namespace RunSimioSchedule2
{
/// <summary>
/// Everything needed for Running a Schedule headless.
/// </summary>
public class RunContext
{
public ISimioProject SimioProject { get; set; }
/// <summary>
/// The name of the proj... |
98f0c57451d8a2bf0599a612165fc938f60a357a | C# | jthelin/CsvHelper | /tests/CsvHelper.Tests/Mappings/Attribute/IgnoreTests.cs | 2.5625 | 3 | // Copyright 2009-2022 Josh Close
// This file is a part of CsvHelper and is dual licensed under MS-PL and Apache 2.0.
// See LICENSE.txt for details or visit http://www.opensource.org/licenses/ms-pl.html for MS-PL and http://opensource.org/licenses/Apache-2.0 for Apache 2.0.
// https://github.com/JoshClose/CsvHelper
... |
28fd2af4739fd67ff4e3ab0c9c71cad63d54bace | C# | AdrianoVerissimo/brackeys-jam-2020.1 | /Assets/Scripts/MusicController.cs | 3.015625 | 3 | using UnityEngine;
using UnityEngine.SceneManagement;
using System.Collections;
/* Description:
* This class plays is responsible for playing musics, and if necessary keeps them playing after changing scenes.
* */
public class MusicController : MonoBehaviour
{
// --- PROPERTIES ---
public static MusicContr... |
a043cfedeb534aab8e86eb42c9fb5e2b3fac7198 | C# | yuvanandag/Techm_Assessment | /Assignment/FileManager/Program.cs | 3.203125 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace FileManager
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Please provide valid input file path");
GenerateFile(@"E:\A_Tech_Interview... |
e704ee18b0dc3aba86880e773181dc470b73f793 | C# | BUUAVTeam/SimplySim | /PlayerServer/PlayerServer.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.IO;
using maths = SimplySim.Math;
namespace PlayerServer
{
public class PlayerInteraction
{
private IPAddress ipAddress;
private TcpListener listener;
... |
a55b0391628df9568131447d2a7d92c1f374abb5 | C# | pavenant/se-assignment | /Core/Services/AssignmentService.cs | 3.421875 | 3 | using Core.Interfaces;
using System;
using System.Collections.Generic;
using System.Text;
using Test.UnitTests.Services;
namespace Core.Services
{
public class AssignmentService : IAssignmentService
{
private IDataLoader _dataLoader;
private IStatsService _statsServic;
public Assignme... |
f8907ede2dc6461ea7308982c4d5f10486e6cbc4 | C# | tookig/EltokMessageCollector | /Lib/Listener.cs | 2.71875 | 3 | using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
//using System.Text;
//using System.Text.RegularExpressions;
namespace Eltok.MessageCollector.Lib {
public abstract class Listener {
/*public class StateObject {
public Socket Socket = null;
public const int BufferSize = 256;
... |
3c927fc1cdf1b5aea641ca0587bc017fb14e3a26 | C# | iamprovidence/University_Apps | /Parallel_And_Distributed_Computing/FourForms/FourForms/Drawing/Classes/PurpleRain.cs | 3.171875 | 3 | using System;
using System.Drawing;
namespace FourForms
{
class PurpleRain : DrawBase
{
// INNER CLASSES
struct Drop
{
// FIELDS
Random random;
Graphics graphic;
PointF point;
int dropLength;
float speed;
... |
ba4b2f179b7a9473169b5fb1fe0ac4124c9c5fb9 | C# | sabinecelina/Latex-Studienarbeit | /Latex-Studienarbeit/ExportData.cs | 2.96875 | 3 | using System;
using System.IO;
using System.Text;
using System.Data.SQLite;
using System.Collections.Generic;
namespace Latex_Studienarbeit
{
class ExportData
{
private static string[] texname;
public static void ExportUebungen(string userInput, SQLiteConnection m_dbConnection, string[] tex, ... |
6286aa217600352a27ce8ca210cb8202f8a5b685 | C# | vytckute/charp-paskaitos | /19 pavyzdziai/Gaisrininkas.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _19_pavyzdziai
{
class Gaisrininkas:Darbuotojas
{
public string Postas { get; private set; }
public Gaisrininkas(string vardas, string pavarde, int amzius, double alga... |
9b097d132bec2e2d980f59e0b0adb9a91cb2ece3 | C# | leejy811/shooting_test | /Assets/Script/Bullet.cs | 2.78125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/* Bullet Script
* 이 스크립트는 총알의 제거를 위한 스크립트입니다.
*/
public class Bullet : MonoBehaviour
{
public int damage; //총알의 데미지
public bool isRotate;
void Update()
{
if (isRotate)
transform.Rotate(Vector3.... |
1738b3470f57fb486d9310dc4e9ecc51939d42d4 | C# | themachinagod/Andgasm.AutoCivilization | /AutoCivilization.Abstractions/Models/WonderCardDecksModel.cs | 2.65625 | 3 | using System ;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
namespace AutoCivilization.Abstractions
{
// DBr: I think this is a good candidate for the record keyword...
// this should only be initialised at construction and should NEVER change its internal... |
9e2b0c2b7c9ec75b56ae99e4ef1ce465d7112565 | C# | Discretka/dis | /lab3/BFT.cs | 3.34375 | 3 | namespace BinarySeachTree
{
public class BFT<T>:Iterator<T>
{
private Queue<Node<T>> queue;
public BFT(Node<T> p)
{
queue = new Queue<Node<T>>();
BFS(p);
}
private void BFS(Node<T> p)
{
if (p == null)
{
... |
49574b738a2f086ce32303ab4b89b465c219e9f3 | C# | adamj537/AbstractVsInterface | /AbstractVsInterface/IEmployee.cs | 2.8125 | 3 | using System;
namespace AbstractVsInterface
{
/// <summary>
/// Summary description for IEmployee.
/// </summary>
public interface IEmployee
{
// Fields aren't allowed in an interface.
// just signature of the properties and methods.
// setting a rule or contract to be followed by implementations.
string... |
41a9056c6195a5db608498f141f8525d2026658c | C# | Imran4424/Unity-Game-Project---Escape-Spider | /Assets/Scripts/Camera Script/CameraFollow.cs | 2.65625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraFollow : MonoBehaviour
{
private Transform player;
private float minX = -24f, maxX = 267f, minY = -5.5f, maxY = 13f;
void Awake()
{
player = GameObject.Find("Player").transform;
}
// Update is called once p... |
d64d5951e129986985613b120bb859402bd98134 | C# | azb101/design-patterns | /DesignPatterns/Common.Maze/Door.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Maze
{
public class Door : MapSite
{
Room room1;
Room room2;
public Door(Room room1, Room room2)
{
this.room1 = room1;
t... |
f5ef2920553144aa8bae0fb37bd6f5f8a2b5418c | C# | RobertoCristo/teste_mc1 | /API/Business/ProductBusiness.cs | 2.84375 | 3 | using API.Data;
using API.Entities;
using System.Collections.Generic;
namespace API.Business
{
public class ProductBusiness
{
public IEnumerable<Product> Get()
{
var data = new ProductData();
return data.Get();
}
public Product Get(int sku)
{
... |
70595b2c055166ea28aec668e542510767c4b312 | C# | DiandraRocha/diandra.rocha | /Modulo06/EditoraCrescer/EditoraCrescer.Infraestrutura/Repositorios/AutorRepositorio.cs | 2.859375 | 3 | using EditoraCrescer.Infraestrutura.Entidades;
using System;
using System.Collections.Generic;
using System.Linq;
namespace EditoraCrescer.Infraestrutura.Repositorios
{
public class AutorRepositorio : IDisposable
{
private Contexto contexto = new Contexto();
public AutorRepositorio()
... |
3a32520b97fab5f7797e50eef02f260277bd1085 | C# | solglass/DataStructures | /DataStructures/LinkedList.cs | 3.4375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace DataStructures
{
public class LinkedList : IDataStructure
{
public int Length { get; private set; }
private Node _root;
public LinkedList()
{
Length = 0;
_root = ... |
1dceffdaccaec265bd2eb31e0cce5d04ede83ff8 | C# | handcraftsman/PgnFileTools | /src/PgnFileTools/Extensions/ExpressionExtensions.cs | 3.015625 | 3 | using System;
using System.Linq.Expressions;
namespace PgnFileTools.Extensions
{
public static class ExpressionExtensions
{
public static Expression<Func<T, bool>> AndWith<T>(this Expression<Func<T, bool>> expression1, Expression<Func<T, bool>> expression2)
{
if (expression1 == null... |
611278c774d12473dacb4bd44f7f81aef8b07480 | C# | Yennefer/Bubbles | /Assets/Scripts/Managers/GameManager.cs | 2.53125 | 3 | using UnityEngine;
public class GameManager : MonoBehaviour {
[SerializeField]
private Spawner spawner;
private int _points = 0;
private int points {
get {
return _points;
}
set {
_points = value;
PointsUpdate();
}
}
private void Awake() {
if (!spawner) {
Debug.LogError("You've forgotte... |
54844b7c4679e56b628afafc4f4bd5bd9c86428c | C# | D-Inventor/GoFish | /GoFish.Lib/GameActions/PassTurnGameAction.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using Game.Lib;
using GoFish.Lib.Models;
namespace GoFish.Lib.GameActions
{
public class PassTurnGameAction : GoFishGameActionBase
{
private readonly Player _from;
private readonly Player _to;
public PassTurnGameActi... |
391cab6b7c1506b0d6cfca7eec898109d62de6c6 | C# | MichaelWojo73/Vending-Machine-Software | /Capstone/VendingLogic/InventoryReader.cs | 3.296875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace VendingMachineProject.Vending_Logic
{
public class InventoryReader
{
public static Dictionary<string, Slot> GetInventory(string fileName)
{
Dictionary<string, Slot> inventory = new Diction... |
a58cfa15d8b9e8b3b2e93bf285d1494d103df3c6 | C# | dcuccia/ScrutorArgumentNullExceptionDemo | /ScrutorArgumentNullException.NetStandardLibrary/ClassFactory.cs | 2.515625 | 3 | using System;
using System.Linq;
using Microsoft.Extensions.DependencyInjection;
namespace ScrutorArgumentNullException
{
public static class ClassFactory
{
public static IClass[] GetAllImplementationsOfIClass()
{
var collection = new ServiceCollection()
.Scan(scan ... |
fc35bc0907703ac32271a62dfc21e304e209ad63 | C# | pvnetto/epojam-game-2018 | /CrownGame/Assets/Scripts/ImportedScripts/Modifier.cs | 2.609375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Modifier {
public GameObject source { get; private set; }
protected float stackValue = 0.0f;
public float totalValue {
get {
return stackCount * stackValue;
}
}
public flo... |
06ce12e38885d499de6f91217845987fc23b3fb0 | C# | salimcansatici/Shi-Manga | /Tray Manga Downloader/Launcher/Form1.cs | 2.546875 | 3 | using System;
using System.Net;
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;
using System.IO;
using System.Diagnostics;
namespace Launcher
{
p... |
a0627d9653645605df74ac88c55064caffa2a191 | C# | mono/coreclr | /tests/src/CoreMangLib/cti/system/string/stringcompareto1.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using TestLibrary;
namespace StringCompareTo1
{
public class StringCompareTo1
{
private const int c_MIN_STRING_LEN = 8;
private const int c_MAX_STRING_LEN = 256;
public static int Main()
{
StringComp... |
513c44a798b5cb295631e7e4d3a44b20661cb23f | C# | HeewonChae/PoseProject | /Common Library/DotNet_Framework/Repository/Mysql/Extensions.cs | 2.640625 | 3 | using Dapper;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Repository.Mysql
{
public static class Extensions
{
public static IEnumerable<T> Query<T>(this DbContext dbcontext, string sql, object p... |
b7bbfbd5aa30c00cd59d7f08c86c538bcf88facd | C# | MarcinSzyszka/KingOfTheBets | /BetsKing.Server/Services/Rounds/RoundService.cs | 2.546875 | 3 | using AutoMapper;
using BetsKing.Server.Data.Context;
using BetsKing.Server.Data.Entity;
using BetsKing.Shared.ViewModels.Matches;
using BetsKing.Shared.ViewModels.Rounds;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Be... |
68a01edfc1b3c9702666a4446f9934250dd8c569 | C# | redplane/Olive | /001 - SOURCE_CODE/002 - OLIVES_SYSTEM/MultipartFormDataFormatter/Converters/Original/HttpContentOriginalConverter.cs | 3.0625 | 3 | using System;
using System.IO;
using System.Net.Http.Headers;
namespace MultipartFormDataMediaFormatter.Converters.Original
{
public class HttpContentOriginalConverter
{
/// <summary>
/// This function is for checking whether a ContentDispositionHeaderValue instance is a file or not.
... |
e9427673db3fd6b85a2256dc041766c278f89e39 | C# | vain0x/wpf-nav-sample | /WpfNavigationExample/Views/LayoutFrames/INavigateRequest.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WpfNavigationExample.Views.LayoutFrames
{
/// <summary>
/// Request of navigation to go to new page.
///
/// Bind this to the command parameter of navigate command.
/// </s... |
e66becae5c7a500dc3b5218794e1ad0f4ba1c3e5 | C# | saurabhsjoshi/VITacademics-for-WindowsPhone | /VITacademics/Subject.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
namespace VITacademics
{
public class Subject
{
public String title, code, type, slot, regdate, classnbr, atten_last_status, atten_last_date,percen... |
26752b4ca92d5c6adc01c85feb0bbc20bffc3ebb | C# | PaBear666/BinaryTree | /DTreeNode.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LabThree
{
public class DTreeNode // Класс «Узел дихотомического дерева»
{
public char Info { get; set; } // информационное поле
public int Key { get; set; ... |
efb02a7a34a212731e2fe183542232355d68942a | C# | erik13121/CompuData | /CompuData/Controllers/ProjectArchivedController.cs | 2.5625 | 3 | using DataTables.AspNet.Core;
using DataTables.AspNet.Mvc5;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace CompuData.Controllers
{
public class ProjectArchivedController : Controller
{
// GET: ProjectArchived
public ActionRe... |
29e39f720a497ffce1d5fb0fe6b3f865600ce69b | C# | moacir9401/CursoUdemyC_Sharp | /GetHashCodeEquals/Program.cs | 3.515625 | 4 | using System;
using GetHashCodeEquals.Entites;
namespace GetHashCodeEquals
{
class Program
{
static void Main(string[] args)
{
Client a = new Client() { Name = "Maria", Email = "maria@gmail.com" };
Client b = new Client() { Name = "Alex", Email = "maria@gmail.com" };
... |
cdccc80b1e7c19e74e1a1660b41e4a17fbfea9f7 | C# | uwx/HSNXT.Greed | /HSNXT.Greed/Addon.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Cryptography;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using SysPath = System.IO.Path;
namespace HSNXT.Greed
{
/// <summary>
/// Represents an error with files checking against ignore list.
/// </summary>
[Seri... |
5bcb776fedbe1893e69edda7cad13e6018c088eb | C# | vovannn012347/AirTableXamarin | /App1/App1.Android/Workspace/Database/Table/Models/FilterStruct.cs | 2.96875 | 3 | namespace App1.Droid.Table.Models
{
public class FilterStruct
{
public enum FilterMode { NONE, IS, NOT_IS, CONTAINS, NOT_CONTAINS, ONE_OF, NOT_ONE_OF, EMPTY, NOT_EMPTY}
string columnId;
FilterMode mode;
string predicate;
public string ColumnId { get => columnId; set =>... |
9f3d07140fb583d00a2a4fc498f285450733b575 | C# | xDidier901/PLATZI | /Fundamentos de C#/PlatziSchool/Entities/Course.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
namespace PlatziSchool.Entities
{
public class Course
{
public string Id { get; }
public string Name { get; set; }
public ShiftTypes ShiftType { get; set; }
public List<Student> Students { get; set; }
public List<Subject> S... |
dd0d88f7d4153088c35c08e84466577ca491883d | C# | webdude21/Homework | /Data structures and algorithms/DictionariesHashTablesSets/ExtractWordsWithOddOccurrences/ExtractWordsWithOddOccurrences.cs | 3.71875 | 4 | /* Write a program that extracts from a given sequence of strings all
* elements that present in it odd number of times. Example:
* {C#, SQL, PHP, PHP, SQL, SQL } {C#, SQL} */
namespace ExtractWordsWithOddOccurrences
{
using System;
using System.Collections.Generic;
using System.Linq;
internal cl... |
d5b5063f19ea2c4a0253b7176b2d0ee72e9e2b91 | C# | IvanPavlov90/Football-Forum | /EPAM.FootballForum.Common.Entities/Message.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EPAM.FootballForum.Common.Entities
{
public class Message : Topic
{
private int _topicid;
public Message(int topicid, int creatorid, string text, DateTime createdAt, D... |
8ec76e7658fe3d5dc864117cd3e1777a1131882d | C# | Slootia/MailSender | /WpfMailSender/ViewModel/MainViewModel.cs | 2.546875 | 3 | using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Windows;
using System.Windows.Documents;
using EmailsToWord;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Ioc;
using WpfMailSender.Services;
namespace WpfMailSender.ViewModel
... |
8e423bab248ad92846e1879ff42661b98f5d0f79 | C# | MarcusQuigley/InterviewCake | /DataStructures/Trie.cs | 3.875 | 4 | using System;
using System.Collections.Generic;
using System.Text;
namespace DataStructures
{
public class Trie
{
readonly TrieNode root;
public Trie()
{
root = new TrieNode();
}
public void Insert(string word)
{
var node = root;
... |
22831fe87e03d4554c5316d6e6d03eb3991679c6 | C# | jimbosquash/Fabrication-Logger | /Libraries/Utilities/Utilities/Singleton.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace Utilities
{
public abstract class Singleton<T> where T : Singleton<T>
{
private static readonly Lazy<T> lazy =
new Lazy<T>(() => Activator.CreateInstance(typeof(T), true) as T);
public sta... |
de0568be4a4d1af28d5d0375a1e4444370a550c6 | C# | EliHunt98/NorthWindCustomerService | /CustomerService/Providers/CustomerProvider.cs | 2.796875 | 3 | using CustomerService.Classes;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
namespace CustomerService.Providers
{
public class CustomerProvider : ICusto... |
125c77904c09e12e16129f0fa35ab7edb595a929 | C# | cyrsis/MEF | /LifetimeManagementSln/LifetimeManagement/KeyProviderSingleton.cs | 2.625 | 3 | using System;
namespace LifetimeManagement
{
public class KeyProviderSingleton : IKeyProvider
{
private KeyProviderSingleton()
{
}
private static readonly KeyProviderSingleton _instance = new KeyProviderSingleton();
public static KeyProviderSingle... |
66096e89def1da09fcf91d7def69bbeb8d08802d | C# | rwahib/Doe.Ls.ProjectTemplateMini | /Doe.Ls.ProjectTemplate.Core/BL/UnitOfWork.cs | 2.734375 | 3 | using System;
using System.Linq;
using System.Data.Entity;
using System.Collections.Generic;
using Doe.Ls.EntityBase.RepositoryBase;
using IsolationLevel = System.Data.IsolationLevel;
namespace Doe.Ls.ProjectTemplate.Core.BL
{
public class UnitOfWork : IUnitOfWork
{
protected Data.SampleProjectTempl... |
03af35d63187aa650bb227fa565a33f882e9a240 | C# | Oconnery/Starship_Pilot | /Assets/#Scripts/HUD.cs | 2.5625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class HUD : MonoBehaviour {
public Text shieldCD;
public Text scoreTxt;
public Text dmgTxt;
public Text bltTxt;
private static float shieldCooldown;
private static int scoreMult;
p... |
9ab3412d2e79be3836828b41bb12f866644624b6 | C# | benzemann/RTSMovementKit | /Assets/RTSMovementKit/Scripts/Bullet.cs | 2.546875 | 3 | using UnityEngine;
using System.Collections;
public class Bullet : MonoBehaviour {
GameObject target;
float speed;
float damage;
Vector3 targetPos;
Vector3 dir;
bool noTarget = false;
public void Seek(GameObject t, float d, float s)
{
target = t;
damage = d;
sp... |
4f4bbf952945738a67eb2124ffcac5b8d4877842 | C# | rudi-bruchez/SQLTrismegiste | /SQLTrismegiste/SqlServer/CacheExtractor.cs | 2.609375 | 3 | using SimpleLogger;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Text;
namespace SQLTrismegiste.SqlServer
{
internal enum ExtractionType
{
QueryPlans,
SqlText
}
internal class CacheObje... |
91d908180beae7516ac26a459fe32a414a66b5d7 | C# | Ahmed63c/Aduit-view | /Program/Program.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using Microsoft.Win32;
using System.Management;
namespace audit
{
class Program
{
static void Main(string[] args)
{
//gets current user and computer name
... |
5d2499816042a5695ca7a021b741ec3f1d445c5e | C# | Trialp/Ressources_GETALP | /eske/INSAWars-master/UI/Views/GameView.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using INSAWars.Game;
using INSAWars.MVVM;
using System.ComponentModel;
namespace UI.Views
{
/// <summary>
/// Defines a ViewModel for Game.
/// </summary>
public class GameView : Observa... |
a4bf69d376331496e9079a3e99a6bf44232a1799 | C# | Kawser-nerd/CLCDSA | /Source Codes/AtCoder/arc021/C/4872858.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ARC_C
{
class _021
{
static void Main(string[] args)
{
Method(args);
ReadLine();
}
... |
1d8441b7fc3f854f9b136209413756f5e35420a9 | C# | shendongnian/download4 | /first_version_download2/268617-21526016-57112977-1.cs | 3.140625 | 3 | using System;
using System.Drawing;
using Microsoft.Win32
public static string GetSystemFontFileName(Font font)
{
string fontname = font.Name+" (TrueType)";
RegistryKey fonts = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\Windows NT\CurrentVersion\Fonts", false);
if(fonts == null)
{
fonts = R... |
56e2168a486ee0ea027975a868b4a5f88c844f27 | C# | git-custom-code/AutomatedTesting | /src/Test.AutomatedTesting.TestDomain/FuncDecorator/FooFuncValueTypeParameterOut.cs | 2.78125 | 3 | namespace CustomCode.AutomatedTesting.TestDomain;
/// <summary>
/// Test domain implementation of the <see cref="IFooFuncValueTypeParameterOut{T}"/> interface.
/// </summary>
/// <typeparam name="T"> The value type of the method's parameters. </typeparam>
public sealed class FooFuncValueTypeParameterOut<T> : IFooFuncV... |
bc403c3dd98968e6daf3af345f85a2829d276054 | C# | JamesGit1/Quack2020 | /Turns.cs | 2.6875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Turns : MonoBehaviour
{
private string state;
// Start is called before the first frame update
void Start()
{
setup();
}
public void setup()
{
// create ... |
76a064c395f816d235b094ac2aa977c49fa98183 | C# | Invenietis/CK-Sqlite | /CK.Sqlite.Setup.Model/SqliteHelper.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Globalization;
using System.Text.RegularExpressions;
using System.Reflection;
using CK.Core;
namespace CK.Sqlite
{
/// <summary>
/// Offers utility me... |
fa37561bd880246d92dcdba02af0e29ec5802aa1 | C# | SayCV/SayCV_Tools_SourceInsight | /NetFramework/StringConcat.cs | 2.609375 | 3 | public class StringConcat : System.ValueType
{
// Methods
public void Clear() {}
public void Concat(string value) {}
public string GetResult() {}
public virtual int GetHashCode() {}
public virtual bool Equals(object obj) {}
public virtual string ToString() {}
public Type GetType() {}
// Properties
public st... |