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 |
|---|---|---|---|---|---|---|
66a817808860e0931c7bcb9622ba9f3cf106df8c | C# | GoverMP1990/FishyNotesRedux | /FishyNotesRedux/Forms/FishyNotes.cs | 2.78125 | 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;
// Program packages
using FishyNotesRedux.Interfaces;
using FishyNotesRedux.Logic;
using Fi... |
a09a4f44d2b4c4fd122ebeff44dca5d4eb5569d1 | C# | prohause/OOP-Basic-October-2018 | /Exercise/DefiningClasses/DefiningClasses/Rectangle.cs | 3.65625 | 4 | namespace DefiningClasses
{
internal class Rectangle
{
private string _id;
private double _width;
private double _height;
private double _positionX;
private double _positionY;
public Rectangle(string id, double width, double height, double positionX, double posi... |
2263d9e9be7af65c0292d542bbd6485a4cf3eb0c | C# | DanielStephens/Turn | /Assets/Routines/Routine/Promise.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
public class Promise<OUTPUT, PROGRESS> : Future<OUTPUT, PROGRESS> {
private readonly object syncLock = new object();
private List<Action<PROGRESS>> onProgressActions = new List<Action<PROGRESS>>();
private List<Action<OUTPUT>> onCompletionActions = new Lis... |
58e3308a6f111a931bf161c49fc19c7ce6d6da02 | C# | artemmukhin/Glass | /Glass/Field.cs | 3.046875 | 3 | /*
*************************************************************************
* Judge for AI ("Connect Five" game). *
* *
* This program should be used for Connect Five Competition. *
* Connect Five ... |
e79648cd0a4c104f383fb73a2badd6ee35de971b | C# | skarakasoglu-zz/Cet.PrinciplesOfDistanceEducation | /Cet.PrinciplesOfDistanceEducation.Service/CreditsService.cs | 2.890625 | 3 | using System;
using System.Linq;
using Cet.PrinciplesOfDistanceEducation.Data;
using Cet.PrinciplesOfDistanceEducation.Data.Models;
namespace Cet.PrinciplesOfDistanceEducation.Service
{
public class CreditsService : ICredits
{
private CetDbContext _context;
public CreditsService(CetDbContext c... |
050b27ac951d18faa10f118a4a0a212497d979f5 | C# | ArturoMora/SIGCOFOO | /INEEL.DataAccess.GEN/Repositories/CH/DesNivelCompetenciaRepository.cs | 2.515625 | 3 | using INEEL.DataAccess.GEN.Contexts;
using INEEL.DataAccess.GEN.Models.CH;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace INEEL.DataAccess.GEN.Repositories.CH
{
public class DesNivelCompetenciaRepository : ID... |
1d194a9d7c7b46b53e92e64330ac9630b27b6979 | C# | SuraaKara/C- | /Clebra.Loopus.Service/Yarn Type Data Service/YarnTypeDataService.cs | 2.53125 | 3 | using Clebra.Loopus.DataAccess;
using Clebra.Loopus.Model;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace Clebra.Loopus.Service
{
public class YarnTypeDataService : IY... |
a2c5f3fa32c5773cba6c32fa803fa4f40ff6aef9 | C# | sunston/NetStudio | /LanguageForm.cs | 2.515625 | 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 NetStudio.Document;
namespace NetStudio
{
public partial class LanguageForm : Form
{
private bool m_Result = f... |
b55d325baa80f22098562eb709d29e7ac9fcf9eb | C# | pirocorp/CSharp-Fundamentals | /13. Files Directories and Exceptions - Exercises/03. User Database/User Database.cs | 3.5 | 4 | using System;
using System.Collections.Generic;
using System.IO;
namespace _03.User_Database
{
class Program
{
private static string dbPath = "users.txt";
private static Dictionary<string, string> users = new Dictionary<string, string>();
private static bool isLogged = false;
... |
e5af294ef84c44a3c9cd830dce931631dcc30c4a | C# | DS2107/AesEncryption | /AesEncryption-main/AES_encryption/AES_encryption/Form1.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Text.RegularExpressions;
using System.Threading;
using System.S... |
a906369f50fd73640530305f8a3e1720cc3ef419 | C# | bradygetson/Notes-Application | /NoteApp/Commands/DeleteCommand.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespace NoteApp
{
public class DeleteCommand : ICommand
{
public event Even... |
99177062b2d7afd19754eec0ae8d05f0fc1d7582 | C# | emphasis87/Emphasis.Algorithms | /src/Emphasis.Algorithms.Tests/TestHelper.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace Emphasis.Algorithms.Tests
{
public static class TestHelper... |
a5fa8f65c03e3da5489b95e1218c1c71291af441 | C# | raj153/C-AlgoDS | /AlGoLiv/OOP/ChessCompo.cs | 3.234375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AlGoLiv.OOP1
{
public class Board
{
int boardSize;
Cell[][] cells;
public Board(int boardSize, Cell[][] cells)
{
this.boardSize = boardSize... |
df2f684366bc01a63f6712d611c5297454fdb851 | C# | romos/funcprog | /14_1/14_1/14_1/Program.cs | 3.640625 | 4 | /*
* Задача 14-1
* Одеров Роман, 545 гр.
*/
using System;
using System.Linq;
namespace _14_1
{
class Program
{
static int[] nonZeroLastDigits(int[] a)
{
return a.Select(x => x % 10).Where(x => x > 0).ToArray();
}
static void Main(string[] args)
... |
0cc19e2bd5533db14b9956d4394127af7391c846 | C# | Supernaught/UnityTest | /Assets/Attackable.cs | 2.671875 | 3 | using UnityEngine;
using System.Collections;
public class Attackable : MonoBehaviour {
public Transform sparkParticle, dieParticle;
public int hp;
public bool isFlash;
public float flashCounter;
// Use this for initialization
public virtual void Start () {
}
// Update is called once per frame
public ... |
2d91ba993ad06d8f728865e2e80991223e1c96d1 | C# | swipswaps/UnityFx.Async | /src/UnityFx.Async.Tests/Tests/UnwrapTests.cs | 2.6875 | 3 | // Copyright (c) Alexander Bogarsukov.
// Licensed under the MIT license. See the LICENSE.md file in the project root for more information.
using System;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
namespace UnityFx.Async
{
public class UnwrapTests
{
[Fact]
public async Task Unwrap_Succe... |
7902fe77fb7189a849d5f7287d68bbf7b7b7424c | C# | harishkmr2006/Harish | /Operational routines/XMLUtil.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace BOPO.NUnit.ParallelTests
{
public class XMLUtil
{
public string readXmlData_SignleNode(string Node)
{
try
... |
3c37a0f5e96958ecd7105be354bf314c63920788 | C# | logisketchUCSD/Old_6 | /Old Recognizers/ClassifyWGL.cs | 3.578125 | 4 | using System;
using System.Collections.Generic;
using System.Text;
namespace Svm
{
/// <summary>
/// Class to classify Wires, Gates, and Labels
/// </summary>
public class ClassifyWGL : ClassifySVM
{
/// <summary>
/// Constructor
/// </summary>
/// <param name="model... |
4ef5dc68ce01a725f92737da0487047f5c8a2566 | C# | chrisgeeraedts/Icarus | /Icarus.Logic.Shared/Managers/EnemyManager.cs | 2.65625 | 3 | using System.Collections.Generic;
using Icarus.Logic.Support.Enums;
namespace Icarus.Logic.Shared.Managers
{
public class EnemyManager : IManager
{
private readonly IGameWorldManager _gameWorldManager;
public List<IEnemyInstance> Enemies { get; set; }
public IEnemyInstance ActiveEnem... |
a787855352cad943129bdad7c6231ba6749010de | C# | daveaglick/NiceThreads | /NiceThreads/DisposableLock.cs | 2.765625 | 3 | /*
* Copyright 2012 WildCard, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
bce67af33fa90d262f66e4e1b1d907423d22aafc | C# | praveenpX/data-structures | /numberswithoddfrequency.cs | 3.78125 | 4 | using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
{
int[] arr = new int[]{2, 3, 5, 4, 5, 2, 4, 3, 5, 2, 4, 4, 2};
getOddOccurrence(arr);
}
public static void getOddOccurrence(int[] arr)
{
int length = arr.Length;
Dictionary<int, int> keyfreqmap = new Diction... |
52ff85ec52da1cde393961e080b524c526d7af2a | C# | myclr08/SOLID-rnek-al-ma | /SolidPrinciples/DIP/BadPractice/MusteriServis.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SolidPrinciples.DIP.BadPractice
{
//Musteri bilgilendirilmek ister
//SMS, Email ürünler ile ilgili.
public class MusteriServis
{
//Bir sınıfın içerisinde başka bir sın... |
5edbda0c41a23406de57f06bfeea6c5508621cd7 | C# | IntelliTect-Samples/SpokaneNETUserGroupSamples | /2020.02.12-UnitTesting/UnitTestingExamples/Example7.cs | 2.953125 | 3 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq.AutoMock;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace UnitTestingExamples
{
[TestClass]
public class Example7
{
#region SUT
public interface ILineSource
{
... |
3645377d07607e4958ee6d63b47535507774d97a | C# | rashadulrakib/Online-Exam-tool | /Entity/CandidateForExam.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace Entity
{
/// <summary>
/// This is CandidateForExam entity class.
/// It defines, which candidate is apeared for which exam
/// </summary>
[Serializable]
public class CandidateForExam
{
public Candidat... |
d45dbb051998b5694310a1fa42657b626327d563 | C# | Pathoschild/smapi-mod-dump | /source/What Are You Missing/PublicStardewMods/WhatAreYouMissing/LocationDisplayNames.cs | 2.71875 | 3 | /*************************************************
**
** You're viewing a file in the SMAPI mod dump, which contains a copy of every open-source SMAPI mod
** for queries and analysis.
**
** This is *not* the original file, and not necessarily the latest version.
** Source repository: https://github.com/LukeSeewald/Publ... |
9fcce5e70efab40e03e4f96d38b704ebc934bc8d | C# | jbautistam/ChessDataBase | /Libraries/LibChessGame.ViewModels/Pgn/PgnLibraryViewModel.cs | 2.796875 | 3 | using System;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
using Bau.Libraries.BauMvvm.ViewModels;
using Bau.Libraries.LibChessGame.Models.Games;
namespace Bau.Libraries.LibChessGame.ViewModels.Pgn
{
/// <summary>
/// ViewModel para un <see cref="LibraryModel"/>
/// </summary>
public clas... |
0e80d43a6d5f1f427cde322ef9b177625042c7ae | C# | MaximeCrp/C17-Developer | /C17e_BotFactory/BotFactory/Factories/UnitFactory.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BotFactory.Interfaces;
using BotFactory.Common.Tools;
using BotFactory.Models;
using System.Threading;
namespace BotFactory.Factories
{
public class UnitFactory : IUnitFactory
{
p... |
c17c6903d016bff5b69a81cf594fa4aee7c431d5 | C# | ZilvinasTomkevicius/NoStarve4UApp_rep | /NoStarve4U/NoStarve4U/APITesting/UnitTestAsyncRecipeSerivices.cs | 2.578125 | 3 | using ClientServices;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BusinessServices;
using BusinessEntities;
namespace APITesting
{
[TestClass]
public class UnitTestAsyncRecipeSeriv... |
c3daa0518a297f44f993756331ecda86ff4c8cf6 | C# | nkarg/rcadenasedu.net | /Back End/Pokedex Edu/InformatorioPokedexNextGen/InformatorioPokedex.Data/Pokemon.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InformatorioPokedex.Data
{
public class Pokemon: IBug, IDark, IDragon, IElectric, IFairy, IFighting, IFire, IFlying, IGhost, IGrass, IGround, IIce, INormal, IPoison, IPsychical, IRock, ISt... |
20100f67ce042406e18c8c408a9287c9994cbc09 | C# | Berryvr/Whatsup | /Whatsup-Her/Whatsup-Her/Models/MessageView.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Whatsup_Her.Models
{
public class MessageView
{
public int ChatId { get; set; }
public string Message { get; set; }
public string ContactName { get; set; }
public string TimeSent { ge... |
3582d83d5c4a18752a629710cbd6192c7d59a7f3 | C# | shendongnian/download4 | /first_version_download2/24802-49489466-169829552-2.cs | 2.921875 | 3 | public int myInt;
public int MyInt
{
get { return myInt; }
set { myInt = value }
}
|
426528b0d04f1e363ec5a48728c3198e65168b19 | C# | shorstok/musically-challenged-bot | /musicallychallenged/Services/Sync/TelegramPayloadExtractor.cs | 2.53125 | 3 | using System.IO;
using System.Threading;
using System.Threading.Tasks;
using log4net;
using musicallychallenged.Logging;
using musicallychallenged.Services.Telegram;
using Telegram.Bot.Types;
using File = System.IO.File;
namespace musicallychallenged.Services.Sync
{
public class TelegramPayloadExtractor : Payload... |
a8a86a45364f05b2d434e393c5f273ab07304a17 | C# | Kibolabs/SFCDentalGame | /SFCDentalGame/Models/DentalPractice.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using SFCDentalGame.DAL;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using SFCDentalGame.DAL.Entities;
using System.Linq;
using Microsoft.EntityFrameworkCore;
namespace SFCDentalGame.Models
{
public class DentalPractice
{
... |
45f806fab8cbe5c70be1ac505f05c2cb75db68a3 | C# | JonSnowbd/CoffeeMate | /CoffeeMate/AlternateGUI.xaml.cs | 2.765625 | 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.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using ... |
d290e642d37771403219f53cc7b2df25a548cd1a | C# | TySatkowiak/Hearthstone | /Game.cs | 3.15625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Hearthstone
{
public class Game
{
public static int Player1Mana = 0;
public static int Player2Mana = 0;
public static int Player1Health = 30;
public static int Player2Health = 30;
... |
cdc2a5c199c52bd9a719b723854d2eaed4ce5b7b | C# | vladosfi/SoftUni | /C#/C# Advanced/C# Advanced - May 2019/Exam - 24 February 2019/01.ClubParty/StartUp.cs | 3.46875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace _01.ClubParty
{
class StartUp
{
static void Main(string[] args)
{
int hallsCapacity = int.Parse(Console.ReadLine());
string[] input = Console.ReadLine().Split(" ", StringSplitOptions.RemoveEmpt... |
414af8a915bee30d2161a78b9930252235b5827d | C# | turanbstc/MyDevop | /OOP2/Program.cs | 2.75 | 3 | using System;
namespace OOP2
{
class Program
{
static void Main(string[] args)
{
IndividualCustomer individualCustomer = new IndividualCustomer();
individualCustomer.Id = 1;
individualCustomer.CustomerNumber = "12345";
individualCustomer.Name = "... |
4d1706970669a583f06e93c2d9da7391b4f5c319 | C# | tekavec/TaskListKata | /TaskListKata.Tests/ShowCommandShould.cs | 2.6875 | 3 | using NSubstitute;
using NUnit.Framework;
namespace TaskListKata.Tests
{
[TestFixture]
public class ShowCommandShould
{
private IConsole _fakeConsole;
private TaskRepository _taskRepository;
private ShowCommand _showCommand;
[SetUp]
public void Init()
{
... |
d2b599914d401376309aa1b05faa44c632e5aafd | C# | Raw-Bert/NetworkingPractical | /Networking Practical (Unity)/Networking Practical/Assets/_Scripts/Networking.cs | 2.578125 | 3 | using Unity.Collections.LowLevel.Unsafe;
using System.Runtime.InteropServices;
using System;
public class Networking
{
public enum IPVersion : int
{
IPUnknown,
IPv4,
IPv6
};
public enum SocketOption : int
{
TCP_NoDelay
};
public enum SocketType : int
{
... |
cc225a30e801f127a67cb0fc0aa403559680fe7c | C# | Mosatt/CV | /Szakdolgozat/Projekt/Szakdolgozat_RZD/Szakdolgozat_RZD/Controller/C_Login.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Text.RegularExpressions;
using MySql.Data.MySqlClient;
using System.Security.Cryptography;
namespace Szakdolgozat_RZD
{
class C_Login
{
... |
2f91b7828cd0837447e3b3a70e3b98e2d74a3904 | C# | hoilaptrinhgame/OpenMU | /src/MUnique.OpenMU.Launcher/Models/DownloadTask.cs | 2.609375 | 3 | using System;
using System.ComponentModel;
using System.IO;
using System.Net;
using MUnique.OpenMU.Launcher.Enumerations;
using NLog;
namespace MUnique.OpenMU.Launcher.Models
{
public class DownloadTask : IDisposable
{
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
... |
78163275f393a5f7b44472216160c6d03f82c1ff | C# | mindisk/C5 | /C5/concurrent/lists/SprayList.cs | 2.96875 | 3 | using System;
using SCG = System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace C5.concurrent
{
public class SprayList<T> : IConcurrentPriorityQueue<T>
{
internal class Node
{
internal object nodeLock = new object();
intern... |
c8d020c37cad4af6410fe9372608338ec410b920 | C# | mgruesen/patient-portal | /PatientPortal.Api/Services/UserService.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using PatientPortal.Api.Domain;
using PatientPortal.Api.Extensions;
using PatientPortal.Api.Mappers;
using PatientPortal.Api.Models;
namespace PatientPortal.Api.Services
{
public interface IUserService
{
Us... |
3b6a1ebc76b234e2be9f945a0d7e1d5f7501aeec | C# | royvandertuuk/unleash-client-dotnet | /src/Unleash/IUnleash.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
namespace Unleash
{
/// <inheritdoc />
/// <summary>
/// Unleash Feature Toggle Service
/// </summary>
public interface IUnleash : IDisposable
{
/// <summary>
/// Gets a value indicating a feature is available or not.
/// <... |
07400cf546f2b2b60e7df2876379f3293e8d8b69 | C# | olivelliputelli/EsCSharp_2016_17 | /SoluzioneEserciziBase/EsFattoriale/Matematica.cs | 3.859375 | 4 | using System;
namespace EsFattoriale
{
public static class Matematica
{
public static ulong Fattoriale(int n)
{
if (n > 64) //ulong non riesce a contenere 65!
throw new ArgumentOutOfRangeException();
ulong fat = 1;
for (ulong i = 1; i <= (ul... |
edba404866b8b8c3f97e1dcd54e4859c61b61c99 | C# | angelofgrace/holbertonschool-csharp | /0x03-csharp-hashset_stack_queue_linkedlist/12-linkedlist_insert/12-linkedlist_insert.cs | 3.40625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
class LList
{
public static LinkedListNode<int> Insert(LinkedList<int> myLList, int n)
{
LinkedListNode<int> current;
if (myLList.First == null)
{
myLList.AddFirst(n);
}
current = myLList.Fi... |
d1056b1e45f52c59b68f6caa90655192ef7a1884 | C# | Miahsmith45/codewars | /Csharp/Holiday viii duty free.cs | 2.75 | 3 | // https://www.codewars.com/kata/57e92e91b63b6cbac20001e5/train/csharp
public class Kata
{
public static int DutyFree(int normPrice, int Discount, int hol)
=> hol * 100 / normPrice / Discount ;
} |
80413c458beb624123a6a212bba8d8679386a1a6 | C# | ccollie/taste.net | /src/Taste/Common/FastMap.cs | 2.640625 | 3 | /*
* Copyright 2007 and onwards, Sean Owen
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
21962a9f44049201e8c4c8d9b40a26476b952f02 | C# | wander0220/Linq | /Linq/Program.cs | 3.4375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Linq
{
class Program
{
static void Main(string[] args)
{
List<int> input =
new List<int>() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
va... |
946367a426d44d85bfe2d32805e822e022cdc7d0 | C# | Kopanskyi/TestTasks | /TestTasks/RailFenceCipher.cs | 3.328125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Rail_Fence_Cipher
{
static class RailFenceCipher
{
public static string Encode(string stringToEncode, int railsNumber)
{
if (string.IsNullOrEmpty(stringToEncode))
{
... |
9538ec8ff4e518f7fc86793e14044a0dc997af8e | C# | rohanvraju/apple-picker | /Assets/Scripts/PlayerMovement.cs | 2.515625 | 3 | using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
public float moveSpeed;
public GameObject KOstars;
public float maxSpeed = 5f;
private Vector3 input;
private bool isHit = false;//if... |
aaabb04d257d481399003ed1ce1e929f7379a785 | C# | RagingKore/Raging.Toolbox | /Raging.Toolbox/Net/RouteAttribute.cs | 2.609375 | 3 | using System;
namespace Raging.Toolbox.Net
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class RouteAttribute : Attribute
{
public RouteAttribute(string address)
{
Guard.NullOrWhiteSpace(() => address);
this.Address = address;
}
... |
bcf93c4c3fbfcc742837239c762855a114768a12 | C# | shendongnian/download4 | /first_version_download2/102144-6936197-15197666-2.cs | 3.140625 | 3 | public class Node
{
abstract void print();
}
public class AddExpression : Node {
Node Left;
Node Right;
virtual void print() {
Left.Print();
Console.WriteLine("+");
Right.Print();
}
}
|
7f3d8a94cdee8f540c7855bbfd46520c5059b804 | C# | n4n0byte/LaraBar | /Topic4/Topic4/Services/Utility/CaptainsLogger.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NLog;
namespace Topic4.Services.Utility
{
public class CaptainsLogger : ILogger
{
private static CaptainsLogger _instance;
private static Logger _logger;
public static CaptainsLogger getInstace(... |
2599d61e79e555a9403108d4e7792ec47f0ffb9e | C# | HassanNahhal/CS_Proj | /SourceCode/ConsoleApplication1/ConsoleApplication1/GameBoard.cs | 2.921875 | 3 | /* GameBoard.cs
* Final Project
* Revision History
* Changho Choi, 2015.07.28: Created
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace Monopoly
{
public class GameBoard
{
const int NUM_OF_C... |
b8ac3d7b6eaee8bf834f56b0bdc10fa34aee8e7b | C# | datvtp/CarSales | /Source Code/CarManagement/DataSource/daos/CustomerDAO.cs | 2.8125 | 3 | using DataSource.dtos;
using DataSource.utils;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataSource.daos
{
public class CustomerDAO
{
public List<CustomerDTO> GetListCust... |
3607c5358b8d3730f786569015232ced9580e762 | C# | jcanderson195/AnimalShelter | /AnimalShelter/SystemOperations.cs | 3.328125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AnimalShelter
{
class SystemOperations
{
Dog dog = new Dog();
Cat cat = new Cat();
public SystemOperations()
{
... |
0a0f659e45d25788183a8c4859749f8e2851ebdb | C# | Hual/LetterInvaders | /LetterInvaders/Invader.cs | 3.171875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace LetterInvaders
{
class Invader : Entity
{
private ulong m_lastMoved;
private Random seed;
public ulong LastMoved
{
get
{
return m_lastMoved;
}
... |
03bfc917f04b61dc93fa60cfe2f81b594fa323dd | C# | manitra/dependency-reader | /src/DependencyReader.CLI/IStyleManager.cs | 2.515625 | 3 | using DependencyReader.CLI.Entities;
namespace DependencyReader.CLI
{
/// <summary>
/// Provides methods to set the Console style using semantics
/// </summary>
public interface IStyleManager
{
/// <summary>
/// Set the style of the console
/// </summary>
... |
e5358bf79ba5f8c04a5661dea3757edf6c85d0da | C# | eSuiteInterfaceBootcamp/CS_eSuiteApiWrapper | /eSuite API Wrapper/RestApi.cs | 2.59375 | 3 | using System;
using System.IO;
using System.Net;
using System.Text;
namespace eSuiteApiWrapper
{
public class RestApi
{
private string _baseURL;
private string _userAuthToken;
public RestApi(string baseURL, string userAuthToken)
{
if (baseURL.EndsWith... |
9bd11c7d2bccefffb4d37a071e1e5004b6925e16 | C# | BenBtg/HybridStats | /HybridStats.Core/ViewModels/BaseViewModel.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using HybridStats.Core.ViewModels;
namespace HybridStats.Core
{
public abstract class BaseViewModel : BaseNotifyPropertyChanged
{
public virtual string Title { get; set; }
bool _isBusy;
... |
7d1b97bb1de3cb937f0d963bf03471201bbeefb2 | C# | KondoSuguru/LoopGame | /LoopGame/LoopGame/Utility/Timer.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
namespace LoopGame.Utility
{
abstract class Timer
{
protected float mLimitTime;
protected float mCurrentTime;
public Timer(float second)... |
47040d0b0e91fb2e4097fda341b709ffa0a62f36 | C# | senolakkas/ferrybooking | /ferrybooking/ByteCore.FerryBooking.Core/Dto/SeasonDto.cs | 2.671875 | 3 | using System;
namespace ByteCore.FerryBooking.Core
{
[Serializable]
public partial class SeasonDto
{
#region Fields
private System.Int32 _SeasonID;
private System.Int32? _OperatorId;
private System.Int32? _StartMonth;
private System.Int32? _StartDay;
... |
d011b29370be188dc1db8d400e4be715c92a183f | C# | lohbot/GLOH_Source | /Assembly-CSharp-firstpass/NkValueParse.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
public class NkValueParse<Type_>
{
private Dictionary<string, Type_> m_kDicValue;
public NkValueParse()
{
this.m_kDicValue = new Dictionary<string, Type_>();
}
~NkValueParse()
{
}
public void InsertCodeValue(string strCode, Type_ tCodeValue)
{
string key ... |
721a23c63aa04fec9662b47b239385bf665a2bcf | C# | natinusala/Steam-Apps-Manager | /Steam Apps Manager/SteamUtils/App.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Steam_Apps_Manager.SteamUtils
{
public enum SteamAppStatus
{
READY_TO_MOVE,
UPDATE_NEEDED
}
public class App
... |
1dd7e2ccc5753e527a97c8d867e487816d15e5d5 | C# | evan-erdos/thermonuclear-darts | /Assets/Scripts/Elevator.cs | 2.515625 | 3 | using UnityEngine;
using System.Collections;
public class Elevator : MonoBehaviour {
bool once;
Vector3 speed;
[SerializeField] float height;
Vector3 initialPosition;
void Start() {
initialPosition = transform.position;
}
void OnTriggerEnter(Collider other) {
if (!once &... |
44a5667107073d24570d47007c46d418c0763c50 | C# | ThomasPiskol/battleship | /Network/GetIPAddress.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Text;
namespace Network
{
public class GetIPAddress
{
public static string GetHostName()
{
UnicastIPAddressInformation localIP = FindLocalIp... |
21ad0292c88e622247a58fecb1daca45beb40a56 | C# | Cysharp/MagicOnion | /src/MagicOnion.Client.Unity/Assets/Scripts/MessagePack/Resolvers/CachingFormatterResolver.cs | 2.59375 | 3 | // Copyright (c) All contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using MessagePack.Formatters;
using MessagePack.Internal;
namespace MessagePack.Resolvers
{
/// <summary>
/// A base class for <see cref="IFormatterRes... |
cd06c1da36357697f1fbb6b0af7b90ee4bd8565b | C# | samuelsoares27/Jogo-da-matem-tica | /Jogo/Jogador.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace Jogo
{
public class Jogador
{
private string nome;
private int ponto;
private Bitmap foto;
private string dtinicio;
publi... |
b520a70a4d18c5697a9ac0507efaf1b7a722b083 | C# | Andrewsiii/msaproject | /msaproject/Data/AppDbContext.cs | 2.515625 | 3 | using Microsoft.EntityFrameworkCore;
using msaproject.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace msaproject.Data
{
public class AppDbContext: DbContext
{
public AppDbContext(DbContextOptions options) : base(options) { }
pu... |
0e602c45766f4abcde102efc96e145c2ff4a61d7 | C# | eliasmichalczuk/study | /repos/Alura.Filmes/Alura.Filmes.App/ProgramParaFilmes.cs | 2.734375 | 3 | using Alura.Filmes.App.Dados;
using Alura.Filmes.App.Extensions;
using Alura.Filmes.App.Negocio;
using System;
using Microsoft.EntityFrameworkCore;
using System.Linq;
namespace Alura.Filmes.App
{
class ProgramParaFilmes
{
static void Main3(string[] args)
{
using(var co... |
b3504970731ab69568df5b3dc6b82e804055794a | C# | Loopc/Loopc | /Foundation/Loopc.Foundation/Log/LogManager.cs | 2.65625 | 3 | using System;
using log4net;
using log4net.Config;
namespace Loopc.Foundation.Log
{
public class LogManager
{
private static ILog _log;
private static ILog Log
{
get
{
if (_log == null)
{
XmlConfigurator.Confi... |
d67ec4a27d09044c384bb939610b3e3c473ffad6 | C# | Maior1998/kmzilibrary | /OSULib/Maths/GamesTheory/GameWithNature.cs | 3.125 | 3 | using System;
using System.Linq;
namespace OSULib.Maths.GamesTheory
{
public class GameWithNature
{
/// <summary>
/// Представляет собой матрицу весов выйгрышей (A).
/// </summary>
private readonly Matrix strategiesWeights;
public GameWithNature(Matrix strategiesWeights... |
82b0e19e4b7023ecad3850dfb982ef262487238f | C# | shendongnian/download4 | /code1/56886-8222312-18365255-1.cs | 4.09375 | 4 | using System;
class demo
{
static void Main()
{
int number;
Console.WriteLine("Enter Number you Should be Checked Number is Prime or not Prime");
number = Int32.Parse(Console.ReadLine());
for(int i =2;i<number/2;i++)
{
... |
687de3467f74932778cd4548f86a54a49ad7b3e4 | C# | Dannyyyy/ValueConverter | /ValueConverter/ValueConverter/Sagen.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ValueConverter
{
//Сажень
public class Sagen
{
double M = 2.134;
double Dm = 21.34;
double Sm = 213.4;
double Mm = 2134;
double Vershok = 48;
doubl... |
64d00ba1b78eecb1ef3b4ff71eaf228c1bcd01cd | C# | neochen168/Algorithm | /Coding/Coding/ReverseWordsInString.cs | 3.578125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Coding
{
public class ReverseWordsInString
{
public static string ReverseWords(string str)
{
char[] tempWithSpaces = str.Trim().ToCharArray();
c... |
7cfa3086061d1c9fcf4e78cfd0c868b0c30a7824 | C# | 1059444127/Xian | /ImageViewer/Configuration/MultiValuedDictionary.cs | 2.828125 | 3 | #region License
// Copyright (c) 2011, ClearCanvas Inc.
// All rights reserved.
// http://www.clearcanvas.ca
//
// This software is licensed under the Open Software License v3.0.
// For the complete license, see http://www.clearcanvas.ca/OSLv3.0
#endregion
using System;
using System.Collections;
using S... |
b2034e700bb0d86b0ade0674d2863cf0f12a4cee | C# | harounhajem/QuizGroupProject_WPF | /Quiz_WPFVersion/ViewModels/StatisticsViewModel2.cs | 2.546875 | 3 | using Quiz_WPFVersion.Data;
using Quiz_WPFVersion.Models;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Quiz_WPFVersion.ViewModels
{
class StatisticsViewModel2
{
Repository<Course> r... |
6ec2b57a64d4d036a257e9501ee1dab65270d07b | C# | Thifall/Siedlisko | /pSiedlisko/Siedlisko/Models/DayModel.cs | 2.9375 | 3 | using SiedliskoCommon.Models.Enums;
using System;
namespace Siedlisko.Models
{
public class DayModel
{
#region Fields and Properties
public DateTime Date { get; }
public bool IsRegularMonthDay { get; }
public ReservationStatus ReservationState { get; set; }
public int R... |
e4c67da1ece5076d90bd6504dcaad6b0ca069de7 | C# | pkucherov/PerpetuumServer | /src/Perpetuum/Zones/Terrains/Materials/Minerals/GravelLayer.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using Perpetuum.IO;
using Perpetuum.Zones.Terrains.Materials.Minerals.Generators;
namespace Perpetuum.Zones.Terrains.Materials.Minerals
{
public class GravelConfiguration : IMineralConfiguration
{
public GravelConfig... |
6c7f5256c222591af2d50a98bd46176aaa8216ac | C# | olegbondur/CSC_T | /CSC_T.BusinessLayer/DAL/Repositories/CountryBusinessRepository.cs | 2.78125 | 3 | using CSC_T.BusinessLayer.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
namespace CSC_T.BusinessLayer.DAL.Repositories
{
class CountryBusinessRepository : IRepository<CountryBusiness>
... |
d266e9f501437276bcbedb9284ef285541c7c097 | C# | crawson7/CodeClass | /Assets/DevTools/RedTween/RedTween.cs | 2.875 | 3 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Red
{
public delegate void TweenFunction(float value);
public class RedTween : MonoBehaviour
{
private static List<Set> _sets;
public static Set CreateSet(string tag="", System.Action end=null)
{
// Creates and retu... |
597fa9381259afe6144f0145ce66ebace0e69dce | C# | tanghaijun/Fcuk | /DsModels/Models/Mapping/DsBuildingHouseNumberMap.cs | 2.515625 | 3 | using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
namespace DsModels.Models.Mapping
{
public class DsBuildingHouseNumberMap : EntityTypeConfiguration<DsBuildingHouseNumber>
{
public DsBuildingHouseNumberMap()
{
// Primary Key
... |
6a832d7079aaaf7e1dc888286919c52fc17991b2 | C# | pscal4/DesignPatterns | /PizzaSimpleFactory/Program.cs | 2.65625 | 3 | using System;
namespace PizzaSimpleFactory
{
class Program
{
static void Main(string[] args)
{
SimplePizzaFactory oFactory = new SimplePizzaFactory();
PizzaStore oStore = new PizzaStore(oFactory);
oStore.OrderPizza("cheese");
oStore.OrderPizza("p... |
77c31bab712ceb8fb40141a7544fd23612204142 | C# | SiddharthMishraPersonal/StudyMaterials | /Documents/Common/Projects/StringCombination/StringCombination/StringCombination.cs | 3.8125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace StringCombination
{
class StringCombination
{
public static void GetCombinations(string str)
{
List<string> strColl = new List<string>();
char[] delimeter = " ".ToArray();
strColl.AddRange(st... |
20d17f4198f9ad4b73d795230a4d31a761a0a97a | C# | rahuljain5/WPFSampleProjects | /SimpleCalculatorApp/MainWindow.xaml.cs | 3.03125 | 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.Media.Imaging;... |
a18098a71f04addfef1caa675a5a369e0bfba2f7 | C# | KevinGuedes/FinancialControl | /FinancialControl.DAL/Repositories/CategoryRepository.cs | 2.71875 | 3 | using FinancialControl.BLL.Models;
using FinancialControl.DAL.Interfaces;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace FinancialControl.DAL.Repositories
{
public class CategoryRepository : ... |
a116c12f0872cd7a205b9852f7bbff161993fb22 | C# | KoutaFurusawa/oci-sdk-net | /OCISDK.Core/LoadBalancer/Model/RuleDetails.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace OCISDK.Core.LoadBalancer.Model
{
/// <summary>
/// An object that represents an action to apply to a listener.
/// </summary>
// TODO: Cannot parse JSON with multiple subtype structures.
public class RuleDetails
{
... |
192cfbed1adf752ec7e78a6c58bac56277ed45aa | C# | clemzizer/VisualStudioProjects | /SocketProj/SocketProjClient/Program.cs | 3.140625 | 3 | using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace SocketProjClient
{
class MainClass
{
public static void Main(string[] args)
{
Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
IPEndPoint iep... |
8060515efaa1cf4ef6a1d079ca1cd6b43dccc9c4 | C# | huwyss/KataCatalog | /KataTicTacToe/TicTacToe/PlayerManager.cs | 3.3125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TicTacToe
{
public class PieceManager
{
public PlayerType FirstMover { get; set; }
public Piece GetPiece(PlayerType player)
{
if (FirstMover == Pla... |
ead0f9d92fe92c0db084033f6d4706c7dcfa3021 | C# | shendongnian/download4 | /code8/1480335-40592825-131527736-2.cs | 2.96875 | 3 | public class MyNullableTextBox : TextBox
{
public bool IsEmpty {get{return String.IsNullOrEmpty(base.Text);} }
public decimal Value
{
get
{
if (this.IsEmpty)
return 0M;
else
{
decimal... |
074ee28009e9a7d2259524de7cb471e4f15a5117 | C# | JKorf/CoinEx.Net | /CoinEx.Net/Converters/KlineIntervalConverter.cs | 2.78125 | 3 | using CoinEx.Net.Enums;
using CryptoExchange.Net.Converters;
using System.Collections.Generic;
namespace CoinEx.Net.Converters
{
internal class KlineIntervalConverter : BaseConverter<KlineInterval>
{
public KlineIntervalConverter() : this(true) { }
public KlineIntervalConverter(bool quotes) : ... |
e71e55efb0fe5bbafc80332dfe82f2629c1eb377 | C# | ZJU-CC98/Medal | /CC98.Medal/src/CC98.Medal/Data/MedalDataModel.cs | 2.546875 | 3 | using System.Collections;
using JetBrains.Annotations;
using Microsoft.EntityFrameworkCore;
namespace CC98.Medal.Data
{
/// <summary>
/// 为勋章系统提供数据库模型。
/// </summary>
public class MedalDataModel : DbContext
{
#region 构造方法
/// <summary>
/// 用指定的选项初始化一个数据连接的新实例。
/// </summary>
/// <param name="options"... |
daf9957b35576d86a01bcfc81ad51320f4940251 | C# | CCClaudiu/LibraryManagementSystem | /Proiect biblioteca/Carte.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Collections;
namespace Proiect_Biblioteca
{
class Carte
{
... |
beefe2646373bd3f5b9077388aa2e16e1a0c26b6 | C# | RodmanII/Tutorial | /Tutorial/Models/Person.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Tutorial.Utils;
namespace Tutorial.Models
{
public class Person
{
public int Id { get; set; }
[Required(ErrorMessage = ErrorMessages.required)]
... |
26d58318d4bca9756b998b2c1575739974a0938d | C# | igorskir/MyTestProjects | /7. Patterns/Decorator/IceCreamDecorator/Program.cs | 3.3125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IceCreamDecorator
{
class Program
{
static void Main(string[] args)
{
IComponent a = new PlainIceCream();
IComponent b = new CandyTopping(a);
... |
d3b378236ea185cd713f1ceaca8e8ffd925f6bc5 | C# | iskorotkov/matrix-multiplication | /src/TestGenerator/MatrixGenerator.cs | 3.78125 | 4 | using System;
namespace TestGenerator
{
/// <summary>
/// Generator for creating random matrices
/// </summary>
public class MatrixGenerator
{
private readonly double _min;
private readonly double _max;
private readonly Random _random = new Random();
/// <summary>
... |
4c7d2c98a50b577fea4d831a592b98af4d874444 | C# | entvex/GoFSchoolCode | /GoFStateNasted/FlashlightStates.cs | 2.84375 | 3 | namespace GoFStateNasted
{
/// <summary>
/// This is the abstract state
/// </summary>
public class FlashlightState
{
public virtual void OnEnter(Flashlight context) { }
public virtual void HandlePower(Flashlight context) { }
public virtual void ModePressed(Flashlight co... |
2ec662e7215f6d07df3b864216365cafc3401da2 | C# | n02378281/Algorithms | /Prep/ArrPartitionLabels.cs | 3.828125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InterviewPrep.Prep
{
// 763. Partition Labels
/*You are given a string s.
* We want to partition the string into as many parts as possible so that each letter appears in at most o... |
51120aff050c585fe366a0a182466600b260d1c8 | C# | EnjiRouz/2D-Fantasy-Game | /Assets/Inventory/InventorySlot.cs | 2.671875 | 3 | using Assets.FantasyHeroes.Scripts;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// Слот инвентаря. Интерфейсный элемент
/// </summary>
public class InventorySlot : MonoBehaviour {
/// <summary>
/// Кнопка с изображением предмета в слоте
/// </summary>
public GameObject imageButton;
/... |