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 |
|---|---|---|---|---|---|---|
dd681b2a7fac2f2d127880c44041972aedb8a227 | C# | EWSoftware/PDI | /Source/EWSPDI/RecurFrequency.cs | 2.53125 | 3 | //===============================================================================================================
// System : Personal Data Interchange Classes
// File : RecurFrequency.cs
// Author : Eric Woodruff (Eric@EWoodruff.us)
// Updated : 10/22/2014
// Note : Copyright 2003-2014, Eric Woodruff, All rig... |
d92bcca52e43f4e3a956ce66edda0c9810bdc58c | C# | Susuo/rtilabs | /files/asobiba/omegarti_v3_src/CodeBox.cs | 2.796875 | 3 | /*
* Copyright (c) Daisuke OKAJIMA All rights reserved.
*
* $Id$
*/
using System;
using System.Windows.Forms;
namespace Zanetti.Forms
{
/// <summary>
/// CodeBox ̊Tv̐łB
/// </summary>
internal class CodeBox : TextBox
{
public event EventHandler CodeComplete;
private int _code;
public int StockCode ... |
a6942c4d4ea01d2121663f2e987e81683152254f | C# | emote-project/Scenario2 | /Code/Thalamus/Example Modules/ThalamusSpeechClient/WindowsSpeechEngine.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Speech.Synthesis;
using System.Speech.Synthesis.TtsEngine;
namespace ThalamusSpeechClient
{
public class WindowsSpeechEngine : SpeechEngine
{
public WindowsSpeechEngine() : base(SpeechEngineType.Windows)... |
3a9b3b201e855aa27bd466740d5ff795720a10b6 | C# | Nicoleyuan/Why-do-not-you-study-from-now-on | /.net/src/TestIndexer.cs | 3.5 | 4 | //TestIndexer.cs -- 索引器;Property与自动Property
using System;
using System.Collections.Generic;
namespace ByPoints.Indexer
{
//第1个类:Student
public class Student
{
//三个私有字段(属性)
private int id;
private string name;
private int age;
//另外有一个属性由编译器提供,被自动属性Political操纵
//属性courses:放多门课程被该生修的课程的名字,
... |
9ed83c0bc1490557f7cf1883301f2b0198e7e466 | C# | 329277920/Snail.Collector | /Snail.Collector.Storage/DB/StorageModel/BaseModel.cs | 2.53125 | 3 | using Newtonsoft.Json.Linq;
using Snail.Collector.Core.Storage.DB;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Dapper.SqlMapper;
namespace Snail.Collector.Storage.DB.StorageModel
{
public abstract class BaseMod... |
cab1075567de9e1cc56701b29c7bbb17272fccd4 | C# | tdong503/Bridge | /Bridge/Program.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using Bridge.CardTypeHandler;
using Bridge.Model;
using Microsoft.Extensions.DependencyInjection;
namespace Bridge
{
public class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
public... |
0566055fa773bf47a2f10808bac935410bb2fe14 | C# | Measurity/MonoGame.Extended | /Source/MonoGame.Extended/RenderTarget2DExtensions.cs | 2.625 | 3 | using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace MonoGame.Extended
{
public static class RenderTarget2DExtensions
{
public static IDisposable BeginDraw(this RenderTarget2D renderTarget, GraphicsDevice graphicsDevice, Color backgroundColor)
{
... |
1858ace7bf8f764eaad32fa8f7ad757abaf6ef2f | C# | soethan/AlgorithmsExamples | /AlgorithmsExamples/BubbleSort.cs | 3.890625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AlgorithmsExamples
{
/// <summary>
/// On Each Pass
/// Compare each array item to it’s right neighbor
/// If the right neighbor is smaller then Swap right and left
... |
657618e86fdfa71d0f9e0324e6b30f4158b6d068 | C# | nishi-yuki/VmplayerUtility | /MonoTest/BatchLancherMaker.cs | 2.515625 | 3 | using System.IO;
using VmplayerUtilityCore;
using File = System.IO.File;
namespace MonoTest
{
class BatchLancherMaker : ILauncherMaker
{
const string batchFileExtension = @".bat";
public void MakeLauncher(string command, string args, string launcherPath)
{
string filePath ... |
c700c93ab62138290e2ce920cab91c1977267c62 | C# | kennh/ninjasamurai | /wizard.cs | 3.546875 | 4 | using System;
using System.Collections.Generic;
namespace ConsoleApplication
{
// Wizard should have a default health of 50 and intelligence of 25
// Wizard should have a method called heal, which when invoked, heals the Wizard by 10 * intelligence
// Wizard should have a method called fireball, which wh... |
ae984b317a912b3deb7bb185e4101ccf199b85b3 | C# | matelopez2012/ServicesGo | /ServicesGo/Business_Layer/Controllers/ControladorasCuenta/ControladorActualizarCuenta.cs | 2.71875 | 3 | using ServicesGo.Business_Layer.Models;
using ServicesGo.Persistence_Layer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace ServicesGo.Business_Layer.Controllers.ControladorasCuenta
{
public class ControladorActualizarCuenta
{
// Instancia del contexto qu... |
024b55b0ecf8a726c173bae0fdf791b14cd06064 | C# | babizhu/dafeiji_client | /Assets/script/sound/Sound.cs | 2.765625 | 3 | using UnityEngine;
using System.Collections;
/**
* 控制整个游戏的声音系统
*/
public class Sound {
/**
* 游戏是否静音
*/
private bool isSilence;
public bool Silence
{
get { return isSilence; }
set { isSilence = value; }
}
private static Sound m_instance = null;
privat... |
aca0f094bcab621fbba0407acf2ef741668eaf25 | C# | IreNox/tiki1 | /Components/Elements/Events/DoWhatIWantEvent.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TikiEngine.Elements.Graphics;
using Microsoft.Xna.Framework;
using TikiEngine.Elements.Trigger;
namespace TikiEngine.Elements.Events
{
public class DoWhatIWantEvent : GameEvent
{
#region Vars
private Ac... |
767c6c64692360c668f7f84838d7def8131149b9 | C# | nguyendinhandp/econhom3 | /ecoNhom3/Controllers/NhaCungCapsController.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using ecoNhom3.Models;
namespace ecoNhom3.Controllers
{
public class N... |
7763550ccc93ac320d480810cc2e5a548b24a041 | C# | kleopatra999/Aspose.Pdf-for-.NET | /Examples/CSharp/AsposePdfGenerator/Headings/SystemBullets.cs | 3.109375 | 3 | using System;
using System.IO;
using Aspose.Pdf;
namespace Aspose.Pdf.Examples.CSharp.AsposePdfGenerator.Headings
{
public class SystemBullets
{
public static void Run()
{
// ExStart:SystemBullets
// The path to the documents directory.
string dataDir = RunEx... |
7d9098373c49f298333e6c3ab8b38d6aa43dfb58 | C# | shendongnian/download4 | /first_version_download2/5811-306406-486312-2.cs | 3.421875 | 3 | public delegate bool ItemFilterDelegate(MyItem item);
public IEnumerable<MyItem> FilterItems(ItemFilterDelegate filter)
{
var result = new List<MyItem>();
foreach(MyItem item in AllItems)
{
if(filter(item))
result.Add(item);
}
... |
598a918af1371008e8563073558efc6596694a86 | C# | shendongnian/download4 | /code1/120781-55692375-195878993-4.cs | 2.78125 | 3 | public static string GetCommonPrefixParallel ( IList<string> strings )
{
var stringsCount = strings.Count;
if( stringsCount == 0 )
return null;
if( stringsCount == 1 )
return strings[0];
var firstStr = strings[0];
var finalList = new List<string>()... |
af435d45b8419b649fc9515723b2b05c8beb1490 | C# | khoiquyenvn/DetectPropertyChange | /ConsoleApp1/Extension.cs | 3.25 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.Linq;
namespace ConsoleApp1
{
static class Extentions
{
public static List<Variance> DetailedCompare<T>(T val1, T val2)
{
List<Variance> variances = new List<Variance>();
... |
43b08a23dcff3c24db579c1090eecce05218470c | C# | AugustFrank/OrchidSecure | /OrchidSecure/OrchidSecure/Models/Address/Address.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace OrchidSecure.Models.Address
{
public class Address
{
private int id;
private string address;
private int zipcode;
public Address() { }
public Address(int pId, string pAddress... |
a1b7453ce4100006e184536491382425ef318507 | C# | BMGDigitalTech/abhilash-projects | /dataIFD/dataIFD/Program.cs | 3.671875 | 4 | using System;
namespace dataIFD
{
class Program
{
static void Main(string[] args)
{
int inum1 = 54;
int inum2 = 51;
int isum = inum1 + inum2;
double d1 = 3.51;
double d2 = 5.65;
double dsum = d1 + d2;
float f... |
fb6412d95a0590a6fae1386379a86273813b8b3d | C# | vknez95/GreedKataGame | /Utility/IListExtensions.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
namespace GreedKataGame.Utility
{
public static class IListExtensions
{
public static void AddIfNotNull<T>(this IList<T> source, T value)
{
if (value != null)
{
source.Add(value);
}
}
... |
f4dd9c53b7bb81ba05625dd05c4ad39d80dc4de5 | C# | richrd77/EFCrud | /EFCrud/EFCrud/Controllers/WeatherForecastController.cs | 2.75 | 3 | using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace EFCrud.Controllers
{
[ApiController]
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
... |
e42dbd3cc8125df5cad9d160d904691e86e33222 | C# | TatoSoftware/SudokuAnalyzer | /App_Code/clsSK.cs | 2.953125 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Xml;
// This class is the workhorse of the Soduku solving engine and is the only interface to the various techniques
// that are used to solved a puzzle. Think of it as pure Sudoku solving and nothing to do... |
1d08bf181fb749bb441c92e79dfd0b47e1167bf4 | C# | NikolayKertev/SoftUni-Fundamentals | /Exercises/03_Methods/08_Factoriel Divider/Program.cs | 3.96875 | 4 | using System;
namespace Factoriel_Divider
{
class Program
{
static void Main(string[] args)
{
decimal a = int.Parse(Console.ReadLine());
decimal b = int.Parse(Console.ReadLine());
decimal facA = facSum(a);
decimal facB = facSum(b);
... |
b23e6a86e546354747daf808eb0d38e4045d1312 | C# | alexbasic/Lototron | /Lototron/Program.cs | 3.28125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace SimLoto
{
partial class Program
{
static void Main(string[] args)
{
while (true)
{
Console.Clear();
ConsoleExtension.WriteLine(Cons... |
a28590e8a64274113520986ebf57455c28cc008e | C# | MCVitzz/Lamp | /Lamp/Rendering/Buffers/VAO.cs | 2.515625 | 3 | using Lamp.Models;
using OpenTK.Graphics.OpenGL4;
namespace Lamp.Rendering.Buffers
{
public class VAO
{
private readonly int Id;
public VBO Vbo;
public BufferLayout Layout;
public IBO Ibo;
protected int Size;
public VAO()
{
Id = GL.GenVertex... |
6ef97b0d74988e0b53a50b585bd4786934aec8c1 | C# | redplane/iConfess | /A-SOURCE_CODE/A-SERVICE/Administration/Notification/Models/CloudBasicQueue.cs | 2.609375 | 3 | namespace NotificationManagement.Models
{
public class CloudBasicQueue
{
#region Properties
/// <summary>
/// Name of queue which is used for exchanging messages.
/// </summary>
public string Exchange = "account-registration";
/// <summary>
/// Kind of ... |
5ae200de910d498df05d58b10748b414e949b6b7 | C# | YouriPeusen/SimonSaysApp | /SimonSaysApp/Model/Game/NormalGame.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimonSaysApp.Model.Game
{
class NormalGame : Game
{
private readonly string _gameLevel;
private TimeSpan _gameOverTime;
private double _sequenceSpeed;
private List<int> _lightIds;
... |
8c07b6cb00d60527d300c1c1c418ce85d1f42809 | C# | avjgit/notes7 | /csharp/yelllowbook-threads.cs | 3.546875 | 4 | // http://www.robmiles.com/c-yellow-book/ 5.4 Threads and Threading
using System;
using System.Threading;
class Threading
{
static private void busyLoop()
{
Console.WriteLine(DateTime.Now);
long count;
for (count = 0; count < 10000000000; count++)
{
}
}
static v... |
f0418795575d41f527629e49a31aed5d7344f9ee | C# | cleytonferrari/PadraoDeRepositorio | /TISelvagem/TISelvagem.RepositorioMongo/AlunoRepositorioMongo.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using MongoDB.Bson;
using MongoDB.Driver.Builders;
using MongoDB.Driver.Linq;
using TISelvagem.Dominio;
using TISelvagem.Dominio.Contratos;
namespace TISelvagem.RepositorioMongo
{
public class AlunoRepositorioMongo : IRepositorio<Aluno>... |
9f571a8ad3c654c5caadaf5506cbaf059532cb4f | C# | snegdaholoda/cSharp | /DZ 9 Serialization. Attribute/DZ9/DZ9/Entities/Casino.cs | 2.734375 | 3 | using System;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using System.Runtime.Serialization.Formatters.Soap;
using System.Xml.Serialization;
using System.Runtime.Serialization.Json;
using System.Runtime.Serialization;
using System.Web.Script.Serialization;
using Newtonsoft.Json;
namespace... |
6022c71f6b5f545a78b5a8bb311bcaaf437f1f0c | C# | niralprj/Italy-Software-Engineer-Challenge | /PokemonItaly/Middlewares/Excecption/ExceptionMiddleware.cs | 3.03125 | 3 | using Microsoft.AspNetCore.Http;
using PokemonItaly.API.Models;
using System;
using System.Net;
using System.Threading.Tasks;
namespace PokemonItaly.API.Middlewares.Excecption
{
/// <summary>
/// Custom middleware class to handle exception globally
/// </summary>
public class ExceptionMiddleware
... |
95ad98f190d9bfd3ec939d927846ad93a3af9cee | C# | OpenLocalizationTestOrg/ECMA2YamlTestRepo2 | /fulldocset/add/codesnippet/CSharp/e-system.windows.forms.d_38_1.cs | 3.15625 | 3 | // Create an instance of the 'CaptionVisibleChanged' EventHandler.
private void CallCaptionVisibleChanged()
{
myDataGrid.CaptionVisibleChanged +=
new EventHandler(Grid_CaptionVisibleChanged);
}
// Set the 'CaptionVisible' property on click of a button.
private voi... |
9fffd3235d7fdc42d5a060a1c3cd0660eb21f22b | C# | ledferoz/Parcial | /Inventario/Inventario/frmConsultarCliente.cs | 2.65625 | 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;
using Linq;
namespace Inventario
{
public partial class frmConsultarCliente : Form
{
pu... |
85804c4a9736bd0198a7de689fcb84f386a4f898 | C# | wes977/Lily-Systems- | /back-end/LS_APIs/LS_APIs/SchedulePrint/SchedulePrint.cs | 3.109375 | 3 | /*
File Name : SchedulePrint.cs
Date : March 15, 2017
Description : Gets the appropriate information in a datetable thats needed to create a downloadable schedule.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
namesp... |
91ad1ae90aa0ebd80ad50494f486efb1b938a446 | C# | Dzavialov/OOP2_lab2 | /lab2_ind_2/Form1.cs | 2.640625 | 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 lab2_ind_2
{
public partial class Form1 : Form
{
delegate void d... |
a8df4caf7950d248adba8bb535a638268da9639d | C# | pratapladhani/PratapContactList | /PratapContactList/ContactList/Models/Contact.cs | 2.53125 | 3 |
using System;
namespace ContactList.Models
{
public class Contact
{
/// <summary>
/// The ID of the contact.
/// </summary>
public int Id { get; set; }
/// <summary>
/// The Contact's full name.
/// </summary>
public string Name { get; set; }
... |
ca60fd6d7dd76ef04305028087864bca66ec83e5 | C# | DenysGoncharov/ProfDZ5 | /HomeWorkPr13/ConsoleApp2/Program.cs | 3.359375 | 3 | using System;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApp2
{
class Program
{
static void MyTask1()
{
Console.WriteLine("MyTask1: is start");
for (int i = 0; i < 80; i++)
{
Thread.Sleep(10);
... |
a0b5dd4c7ad50eadbf6f3d5246c5f2c4ccba55c5 | C# | windcalm/Fly.IM | /Src/Fly.Handler/Channels/Channel.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Fly.Handler.Channels
{
public class Channel
{
private static readonly Random Random = new Random();
private readonly IClient _client;
private int _readTimeoutTranscationLevel;
... |
9baa887ee1d5172114ae63bab957a7fed290652a | C# | maddxyz/ZZ2_WEBProject | /DAL & API/ApiGOT/Controllers/TerritoryController.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using EntitiesLayer.DTOs;
using BusinessLayer;
namespace ApiGOT.Controllers
{
public class TerritoryController : ApiController
{
public IHttpActionResult GetAllTerritorys... |
57cb3f09c9e6564277a2e7e71f4ee86bb35fa0ea | C# | A-Hoernchen/Game1 | /Game1/Controls/Icon.cs | 2.71875 | 3 | using System;
using Game1.Components;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
namespace Game1.Controls
{
/// <summary>
/// Icon Control
/// </summary>
internal class Icon : Control
{
/// <summary>
/// Die zu anzeigende Textur.
/// </summary>
... |
3116da00aa008734df61d049a3b93ad2b6f9bbc5 | C# | callumlawson/Sellout | /Assets/Framework/Entities/EntityManager.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Reflection;
using Assets.Framework.States;
using Assets.Framework.Util;
using JetBrains.Annotations;
namespace Assets.Framework.Entities
{
public class EntityManager
{
private readonly Bag<Entity> entities = new Bag<Entity>();
privat... |
feaff7c7e38b5df8c324132549c417507ab0ae37 | C# | soakes84/WarriorGame | /WarriorGame/Equipment/Weapon.cs | 3.234375 | 3 | using System;
using WarriorGame.Enum;
namespace WarriorGame.Equipment
{
class Weapon
{
private int GOOD_GUY_DAMAGE = 25;
private int BAD_GUY_DAMAGE = 23;
static Random rng = new Random();
private int damage;
public int Damage
{
get
{... |
726c59277e575e46bf4e06d82713b3b5dee72963 | C# | SamsonMychael/FoodOrdering | /FoodOrdering/FoodOrdering/ViewModel/TotalCartVM.cs | 2.96875 | 3 | using FoodOrdering.Model;
using FoodOrdering.ViewModel.Helpers;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Text;
namespace FoodOrdering.ViewModel
{
public class TotalCartVM : INotifyPropertyChanged
{
private Observabl... |
a786fe557a67dbf196e63816b20d0232accd7ed8 | C# | shendongnian/download4 | /code2/304039-6331421-13760697-4.cs | 2.75 | 3 | public bool IsValid<T>(T propertyvalue)
{
Type fieldType = Nullable.GetUnderlyingType(typeof(T));
if (object.ReferenceEquals(fieldType, typeof(bool))) {
return true;
}
return false;
}
|
0b3c84f81a19cafcb4976da8b7761aa1d38c1fd8 | C# | s19911/cw3 | /WebApplication1/WebApplication1/Controllers/StudentsController.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Cwiczenie3.Models;
//using Cwiczenie3.Serivices;
using Cwiczenie3.DAL;
using Microsoft.AspNetCore.Mvc;
using System.Data.SqlClient;
using Cwiczenie3.Services;
namespace Cwiczenie3.Controllers
{
[ApiController]
... |
ceec3a723c500da96e2799710831ee2b2a6b2755 | C# | archangelmichael/TelerikAcademyCSharpPart1 | /C Sharp Part 1 Homework/6. Loops/14.SpiralNumbers/SpiralNumbers.cs | 4 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SpiralNumbers
{
class SpiralNumbers
{
static void Main(string[] args)
{
/* * Write a program that reads a positive integer number N (N < 20)
... |
71a48033f9f85810a53a4b1b164e9e939dc6d705 | C# | manuel2258/timed | /Assets/src/level/initializing/ElementInitializer.cs | 2.5625 | 3 | using System;
using src.element;
using src.level.parsing;
using UnityEngine;
namespace src.level.initializing {
public class ElementInitializer {
private readonly ElementType _elementType;
private readonly Vector2 _position;
private readonly float _angle;
public readonly int Id;
... |
6b71ba765dfe99ae954ff2b37926a2e4f7d3f07e | C# | sergiobd01/OMSCampaings | /OMSService.WSCustomer/Business/DALBase.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using OMSService.WSCustomer.Models;
using OMSService.WSCustomer.Payload;
namespace OMSService.WSCustomer.Business
{
public class DALBase
{
protected static string ConnectionStrin... |
b352fd19f4772a9790e8a196c45ea085d592b4e3 | C# | mad5226/PracticeSeleniumFramework | /SeleniumFramework/Properties/Configuration.cs | 2.5625 | 3 | using System;
namespace SeleniumFramework.Properties
{
public static class Configuration
{
public static string baseURL = "http://www.todorvachev.com";
public static class Credentials
{
public static class Valid
{
public static string username = ... |
4d99c86051e1ae54eba11ab12c2c23842985b54d | C# | Doug-Murphy/C-Sharp-Project-Cleaner | /StaticContentFileRemover.cs | 2.84375 | 3 | using System.Collections.Generic;
using System.Xml;
namespace CsprojCleaner
{
public class StaticContentFileRemover : IFileRemover
{
private readonly string _fileExtension;
public StaticContentFileRemover(string fileExtension)
{
_fileExtension = fileExtension;
}
... |
fd4dd3c337a6d96c3ad3ee3c16ff60f5cc45c8f2 | C# | cashwu/ProjectTestSession02_AutoFixture | /AutoFixtureSample/UnitTest1.cs | 3.265625 | 3 | using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Ploeh.AutoFixture;
using System.Collections.Generic;
using System.Linq;
namespace AutoFixtureSample
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
// 使用 Au... |
16926360663ec5ace5471ea8e125d3e2240a093d | C# | MMaxam/Workfolder | /CarsRUs/CarsRUs/AppDevAssignment/FrmSearch.cs | 2.78125 | 3 | using AppDevAssignment.Classes;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AppDe... |
f82b6ef85336641ffc2ac8b831a03d9788d32cc7 | C# | andriusstatkevicius/IMDB_Storage | /IMDB_Storage.Data/IMDB_StorageDBContext.cs | 2.578125 | 3 | using IMDB_Storage.Core;
using Microsoft.EntityFrameworkCore;
namespace IMDB_Storage.Data
{
public class IMDB_StorageDBContext : DbContext
{
public IMDB_StorageDBContext(DbContextOptions<IMDB_StorageDBContext> options)
: base(options) { }
// This is the type that I want to tell E... |
f548c070adc5fd0e44fc161f06edb43e2729ce72 | C# | Thunkar/Complejos | /Complejos/Model/BinomicForm.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Complejos
{
class BinomicForm: INotifyPropertyChanged
{
private double x;
private double y;
public double X {
get {
... |
db084f7101a3f4e04d9d523edcaa31823b8e90bb | C# | thadmuchnok64/Firebenders-Final | /Hold The Fort/Assets/Scripts/Container.cs | 2.546875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Container : MonoBehaviour
{
[SerializeField] InventorySlot[] slots;
[SerializeField] SoundMaster SM;
[SerializeField] AudioClip click;
public bool insertItem(Item item)
{
bool foundMin = false;
... |
7388c9896622e45dc2866c1d4cde0141884b93e0 | C# | shyoutarou/Exam-70-483_Gerenciar_fluxo | /Exemplos/2_Gerencia_multi/Monitor Example/Monitor Example/Program.cs | 3.359375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Monitor_Example
{
class PingPong
{
public void ping(bool running)
{
lock (this)
{
if (!running)
... |
46ce2d834579c30a8b5da118fa4f9e9506860b94 | C# | grecojoao/Pratice | /Test/HackerRank/Sorting/FraudulentActivityNotificationsTests.cs | 2.765625 | 3 | using HackerRank.Sorting;
using NUnit.Framework;
namespace Test.HackerRank.Sorting
{
public class FraudulentActivityNotificationsTests
{
[Test]
public void ActivityNotifications01()
{
var expenditure = new int[]
{
2, 3, 4, 2, 3, 6, 8, 4, 5
... |
45713e5f106d1ae5308cdfff7e8fed3a88780cd0 | C# | Grzesiaczek/Brain | /Brain/Charting/ChartedNeuron.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Windows.Forms.DataVisualization.Charting;
namespace Brain
{
class ChartedNeuron : Layer
{
Neuron neuron;
Series ser... |
8acf08e39cee082b12168b8aa3eedd7c7ea6766e | C# | rafaleals/teste-api-caminhoneiro | /API_JSL/API_JSL/Controllers/CaminhoesController.cs | 2.625 | 3 | using API_JSL.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace API_JSL.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class CaminhoesController : Controller... |
c6f55a6515211625bf16b1dfc00a6ba0e3c41843 | C# | AldiyarUaliev/University-Information-System | /ASP-NET-Project-Assignment/UniversityInformationSystem.Services/StudentsService.cs | 2.6875 | 3 | namespace UniversityInformationSystem.Services
{
using System.Collections.Generic;
using System.Linq;
using AutoMapper;
using Contracts;
using Data.Contracts;
using Data.Mocks.Repositories;
using Models.EntityModels.Users;
using Models.ViewModels.Student;
public class StudentsServi... |
4882d16d1543c50882a51ded0298d4da175c37db | C# | oliverbooth/X10D | /X10D.Unity/src/WaitForFrames.cs | 3.1875 | 3 | using System.Collections;
namespace X10D.Unity;
/// <summary>
/// Represents a yield instruction that waits for a specific number of frames.
/// </summary>
public struct WaitForFrames : IEnumerator
{
private readonly int _frameCount;
private int _frameIndex;
/// <summary>
/// Initializes a n... |
18a4570923ad3a2567142c963cfb2080d1bfba68 | C# | fdbva/ADSL20M3.Mvc2 | /Infrastructure.Data/UoW/UnitOfWork.cs | 2.671875 | 3 | using System;
using System.Threading.Tasks;
using Data.Infrastructure.Context;
using Domain.Model.Interfaces.UoW;
namespace Infrastructure.Data.UoW
{
public class UnitOfWork : IUnitOfWork, IDisposable
{
private readonly BibliotecaContext _bibliotecaContext;
private bool _disposed;
pub... |
4eb60002d985aedac13bedd4f8098dba6547539d | C# | HumanGamer/GenericNotifier | /GenericNotifier/InternetNotifier.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace GenericNotifier
{
public class InternetNotifier : NotificationService
{
private readonly WebClient _web;
private bool _isConnected;
public I... |
e865e91b870c2472c9f60305b452010bf34d7e89 | C# | Augustojf98/Biblioteca | /Biblioteca.Entidades/Libro.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Biblioteca.Entidades
{
[DataContract]
public class Libro
{
private int _id;
private string _titulo;
private string _auto... |
01a8b844d63e8402c1da25766bd56fcd87fc48de | C# | 1907931256/MasterProject | /BarrelLib/TwistProfile.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FileIOLib;
namespace BarrelLib
{
/// <summary>
/// contains barrel twist dat as array of twistValue types
/// </summary>
public class TwistProfile
{
public enum TwistType
{
... |
5b3dfbb81be2bb10b3e79c224502af0d769fa866 | C# | megarage9000/RedSky-GameJam-2019 | /Assets/SCripts/Collsion/BaseScript.cs | 2.625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine;
public class BaseScript : MonoBehaviour
{
public Slider energyBar;
public Text status;
public float energy;
float currentEnergy;
public bool dead;
// Start is called before the first frame upd... |
6970a5da1d350530fd383c5be0908caa0280f389 | C# | commercetools/commercetools-dotnet-core-sdk | /commercetools.Sdk/commercetools.Sdk.Linq/Query/Converters/BinaryLogicalPredicateVisitorConverter.cs | 2.8125 | 3 | using System.Linq.Expressions;
using commercetools.Sdk.Linq.Query.Visitors;
namespace commercetools.Sdk.Linq.Query.Converters
{
// | ||
// & &&
public class BinaryLogicalPredicateVisitorConverter : IQueryPredicateVisitorConverter
{
public int Priority { get; } = 4;
public bool CanConv... |
d0731837da636b2fe1ae1bdffe2635f9976ff0a7 | C# | Entropia-dev/Generando-Entropia | /Entidades/Clientes.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Entidades
{
public class Clientes
{
//escribo todos los campos que va a tener la entidad.
String Correo_Cli;
String Nombre;
String Apellido;
... |
b50b08694adb2f46b4b93e96a4a2bf97c63cb3c1 | C# | GabrielGui13/PEOO_2020 | /Lista 2/Exercicio 0.7/Program.cs | 3.546875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exercicio_7
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Digite os coeficientes a, b e c de uma equação do II grau");
... |
11f6d3fa466defa76e60a3a07889319bc3f8b569 | C# | Packo0/SoftUniProgrammingFundamentals | /exercise/t05_DataTypesAndVariablesMoreExercises/p13_DecryptingMessage/p13_DecryptingMessage.cs | 3.453125 | 3 | using System;
namespace p13_DecryptingMessage
{
class p13_DecryptingMessage
{
static void Main(string[] args)
{
int key = int.Parse(Console.ReadLine());
int n = int.Parse(Console.ReadLine());
string message = string.Empty;
for (int i = 0; i < n;... |
e7cbd6dc8f2c37da64e352326820631d7c8549a2 | C# | Morebis-GIT/CI | /xggameplanAPI/src/domain/ImagineCommunications.GamePlan.Domain.Generic/Helpers/EnumerableCastHelper.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace ImagineCommunications.GamePlan.Domain.Generic.Helpers
{
public static class EnumerableCastHelper
{
private static readonly MethodInfo CastGenericMethodInfo =
typeof(EnumerableCastHelper).G... |
d28572b42df17f3613c742785a48c9ded291fc3d | C# | Vengarioth/XAMLTools | /src/XAMLTools/Scanner/StringSampler.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace XAMLTools.Scanner
{
class StringSampler : ISampler
{
public DocumentState State { get; set; }
private string content;
private int position = 0;
public... |
3f324cef898afe226b80851a558ca8ffa4e2fdaf | C# | NazarOnischenko/FactoryMethod | /FactoryMethod/Program.cs | 3.171875 | 3 | using System;
using System.Text;
namespace FactoryMethod
{
class Program
{
static void Main(string[] args)
{
Console.InputEncoding = Encoding.Unicode;
Console.OutputEncoding = Encoding.Unicode;
Deliver deliver = new DeliverOfFood("Олександр Сочинський");
... |
46d5bb442e27abc4eaba258378b73dd501e306be | C# | ERGeorgiev/TrAIngle | /TrAIngle Unmodified/Assets/Scripts/EdsLibrary/Extensions/MathfExt.cs | 2.75 | 3 | using UnityEngine;
namespace Extensions
{
public class MathfExt
{
public static Vector2 RadianToVector2(float radian)
{
return new Vector2(Mathf.Cos(radian), Mathf.Sin(radian));
}
public static Vector2 DegreeToVector2(float degree)
{
return Radi... |
5f331b3708bfcfc992db844c8d8f3d5980caef3a | C# | omccully/FutScript-cs | /FutScriptFunctions/Screen/ColorDetection.cs | 3.53125 | 4 | using System;
using System.Drawing;
using System.Diagnostics;
using System.Threading;
namespace FutScriptFunctions.Screen
{
// TODO: make code generator to generate method overloads for
// methods that accept Point or Rectangle objects for coordinates.
public static class ColorDetection
{
///... |
d7f2c6525a93d8620dd8a4c3ab227249521dfec1 | C# | chloe-zen/yamldotnet | /YamlDotNet.RepresentationModel/Serialization/ObjectConverter.cs | 3.140625 | 3 | using System;
using System.ComponentModel;
using System.Globalization;
namespace YamlDotNet.RepresentationModel.Serialization
{
/// <summary>
/// Performs type conversions.
/// </summary>
public static class ObjectConverter
{
/// <summary>
/// Attempts to convert the specified value to another ty... |
0b1e907c3428d07786707a05060c557489c18a0d | C# | dotnet/runtime | /src/libraries/System.DirectoryServices/src/System/DirectoryServices/ActiveDirectory/ReadOnlyDirectoryServerCollection.cs | 2.75 | 3 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections;
namespace System.DirectoryServices.ActiveDirectory
{
public class ReadOnlyDirectoryServerCollection : ReadOnlyCollectionBase
{
internal Rea... |
f78c65aa4bd223e675463a9059148d8ec9abb9f7 | C# | twyblade64/Sacred-Cellar | /Assets/Scripts/Tools/Runtime/PersistanceManager.cs | 2.578125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
/// <summary>
/// Singleton used to save and load data between play sessions
/// </summary>
public class PersistanceManager : MonoBehaviour {
// Default data used w... |
193558188fcfe491638c52b8a26aeba9dc728598 | C# | microsoft/Partner-Center-DotNet-Samples | /sdk/SdkSamples/DevicesDeployment/DeleteDevice.cs | 2.5625 | 3 | // -----------------------------------------------------------------------
// <copyright file="DeleteDevice.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
namespace Microsoft.Store.P... |
f806ce35e552916adda607b7c0e60bb3525fcc6d | C# | mikkokok/HeatedIdon | /Helpers/Impl/TimeConverter.cs | 2.9375 | 3 | using System;
using System.Globalization;
namespace HeatedIdon.Helpers.Impl
{
public static class TimeConverter
{
private static readonly CultureInfo _cultureInfo = new CultureInfo("fi-FI");
public static string GetCurrentTimeAsString()
{
return GetCurrentTime().ToShortTim... |
f966f537e71ae66711c375bfe907097b964004af | C# | MislavLesin/internship-7-architecture | /DUMP7Architecture.Presentation/Actions/Reports/ReportCategories.cs | 2.9375 | 3 | using DUMP7Architecture.Domain.Repositories;
using DUMP7Architecture.Presentation.Abstractions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DUMP7Architecture.Presentation.Actions.Reports
{
public class ReportCategories : IAction
... |
64aa5a3f9c12355c9c46c965612334567342271f | C# | FranckyLandry/Plagiarism | /ForGitHupb/LargeAttempt/TheBank/TheBank/Bank.cs | 3.296875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TheBank
{
class Bank
{
public List<Account> accounts;
private String name;
public Bank(String Name)
{
this.name = Name;
... |
a6e2a7c2ca54fdd23c1ed30c5d5917450aae967f | C# | tavisca-dshrivastav/TraineeTrainerCrud-Web-Api-Project- | /TraineeTrainerModel/Services/CredentialService.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using TraineeTrainerModel.Services;
using TraineeTrainerModel.Dal;
using TraineeTrainerModel.Models;
namespace TraineeTrainerModel.Services
{
public class CredentialService
{
private UserCredentialsDal _cr... |
16eb71cc79a502100a223830bd74d39c442aa16c | C# | QaitQQ/PC2 | /SiteApi/IntegrationSiteApi/ApiBase/Post/AbstractPOSTBase.cs | 2.546875 | 3 | using System;
using System.IO;
using System.Net;
namespace SiteApi.IntegrationSiteApi.ApiBase.Post
{
public class AbstractPOSTBase : BaseV1Api
{
public AbstractPOSTBase(string Token, string SiteUrl) : base(Token, SiteUrl)
{
Method = "POST";
}
internal void pPost(stri... |
587fd9f49ae3fb634b7f7401b7bc99030d0d30f5 | C# | MartinIvanov90/trainingPurposes | /OOP Part 2/OopPartTwo/Resources/Matrix.cs | 3.28125 | 3 | using System;
using System.Linq.Expressions;
namespace OopPartTwo.Resources
{
public class Matrix<T>
where T : struct, IEquatable<T>, IComparable<T>
{
private readonly int rowSpan;
private readonly int colSpan;
private T[,] matrix;
public T this[int row, int col]
... |
4219bb047d53161513dd4ffd685e97d8eb283f9d | C# | saggett/ReligionsTree | /TreeBrowser/TreeBrowser.SilverlightLib/Controls/Tooltip/ToolTipTimer.cs | 2.96875 | 3 | using System;
using System.Windows.Threading;
namespace Silverlight.Controls
{
internal sealed class ToolTipTimer : DispatcherTimer
{
/// <summary>
/// This event occurs when the timer has stopped.
/// </summary>
public event EventHandler Stopped;
public... |
8fd3a506f88fa69ee9e71cbeb3d5ebb406d36575 | C# | rfilgueras/Underwater-Creatures | /Player.cs | 3.53125 | 4 | using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using static System.Console;
namespace CreaturesOfTheSea
{
class Player
{
public string Name;
public int Score;
public Player()
... |
ba7ac046fcaa72275e53b43a1b40bbb4d99f21aa | C# | Martinkarv/SnakeGame | /Point/Program.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace Point
{
class Point
{
public int x;
public int y;
public string symbol;
public Point(int _x, int _y, string _symbol)
... |
2eac3a67516ee6ed5871c21c1755bb2e5b30af4c | C# | opendata-heilbronn/victron-data-adapter | /src/VictronDataAdapter/ConfigValidator.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
namespace VictronDataAdapter
{
public static class ConfigValidator
{
public static IList<string> ValidateConfig<TConfig>(this ... |
a20f28a074c8af49fa5869a451d7cb07fd9cb8b2 | C# | Obelixx/TelerikAcademy | /OOP/4.OOP_Principles-Part1/2.Students_and_workers/TestProgram.cs | 3.109375 | 3 | namespace _2.Students_and_workers
{
using System;
using System.Collections.Generic;
using Students_and_workers.Models;
using Students_and_workers.Extensions;
class TestProgram
{
static void Main()
{
var students = new List<Student>();
students.Add(new S... |
9a2d5bfe693a06892b6aa6a5dfbd1457d25a3a94 | C# | NewellClark/SUnit | /Solutions/SUnit/SUnit/Assertions/Defaults.cs | 2.921875 | 3 | using SUnit.Constraints;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
namespace SUnit.Assertions
{
/// <summary>
/// The return value of <see cref="That{T}.Is"/>.
/// </summary>
/// <typeparam name="T">The type of the value that is under test.</typeparam... |
42c551d349c0ccda6a8f8d6ef79d382206a6ac95 | C# | SoftUni/Web-Services-and-Cloud | /6. Unit-Testing-and-Mocking/CustomGenericList/GenericList.cs | 3.671875 | 4 | using System;
namespace CustomGenericList
{
// TODO: Finish testing, still bugs to fix
public class GenericList<T> where T : IComparable<T>
{
private T[] arr;
private int count;
public GenericList()
{
this.arr = new T[16];
this.Count = 0;
}
... |
cc704643131b58c5dbaeb5dc0270a2e5d154ff84 | C# | mirmostafa/OldLibrary | /SharedProjects/CoreLib/Helpers/EnumerableHelper.Async.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using Mohammad.Threading;
namespace Mohammad.Helpers
{
partial class EnumerableHelper
{
[Obsolete]
public static void ForEachAsync<TSource>(this IEnumerable<TSource> source, Action<TSource> actor)
{
ForEachAsync(source, actor, ... |
dfcca812bc174c20304afee33e4307bb16334d57 | C# | alnicolaou96/NewVirtualPetShelter | /VirtualPetShelter/Program.cs | 3.59375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VirtualPetShelter
{
class Program
{
static void Main(string[] args)
{
string VolunteerOrAdopt;
do
{
Console.WriteLin... |
840100b70a2b7b80a39ca3580a61c5e59d4c702c | C# | shendongnian/download4 | /code2/263617-5333634-11398759-2.cs | 2.859375 | 3 | private static instanceLock = new object();
private static _refreshing = true;
public static PageData Instance
{
get
{
if (_refreshing)
{
lock (instanceLock)
{
if (_refreshing... |
d6d2bde09698321199cae2f85a3f6d85645afd74 | C# | THplusplus/AdventOfCode2020 | /AoC06/Program.cs | 3.25 | 3 | using System.Linq;
using static System.Console;
using static System.IO.File;
string[] groups = ReadAllText("input.txt").Split("\r\n\r\n");
char[][] anyoneAnswers = groups.Select(g => g.ToCharArray().Except(new[] { '\r', '\n' }).ToArray()).Distinct().ToArray();
char[][] everyoneAnswers = groups
.Select(g =>
g.Split... |
e84e3429dce1709a68c37e89a2990c78cb9467e3 | C# | YashDengre/Practice_C-Sharp | /CSharpe Learning and Practice/Generics.cs | 3.453125 | 3 | using System;
using System.Collections.Generic;
namespace SimpleGenerics
{
//we can declare delegates any where
delegate T GenericDelegateNumberChage<T>(T number);
/// <summary>
///
/// </summary>
public class Generics<TKey, TValue>
{
public TKey Key { get; set; }
... |
b8019fc3895834f54dbc227680ec742b1e0e5bc6 | C# | Chris1415/Hach.Library | /Hach.Library/Hach.Library/Services/Mail/IMailService.cs | 2.71875 | 3 | using Hach.Library.Repositories;
namespace Hach.Library.Services.Mail
{
/// <summary>
/// General Mail Service
/// </summary>
/// <author>
/// Christian Hahn, Okt-2016
/// </author>
public interface IMailService
{
#region Properties
/// <summary>
/// Mail Repos... |
921e555d59daa973e390931443d39fc6af876ad5 | C# | tkh-tegus/Charades | /Charades/Utils/Utilitaire.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
namespace Charades.Utils
{
public static class Utilitaire
{
public readonly static List<s... |