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 |
|---|---|---|---|---|---|---|
9fb30af008f2a1900ae5d5ea59c344cd0e9becb4 | C# | opap-jp/OpapPsdSplitter | /OpapPsdSplitter/LayerTreeParser.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PhotoshopFile;
namespace OpapPsdSplitter
{
public static class LayerTreeParser
{
public static LayerNode ParseLayerTree(PsdFile psd)
{
LayerN... |
f56aeae76bf4d16abdf71e29369055ef149d53e7 | C# | drewkeller/SkippyLab | /Skippy/Extensions/StringExtensions.cs | 3.203125 | 3 | namespace Skippy.Extensions
{
public static class StringExtensions
{
/// <summary>
/// Gets whether the string is not null and not empty.
/// </summary>
/// <param name="this"></param>
/// <returns></returns>
public static bool HasData(this string @this)
... |
1c7a9a4b3b938e03f21d9ed18276414414fc6681 | C# | FrancisChung/fixie | /src/Fixie.Cli/Dotnet.cs | 2.765625 | 3 | namespace Fixie.Cli
{
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
static class Dotnet
{
public static readonly string Path = FindDotnet();
static string FindDotnet()
{
var fileName = OsPlatformIsWindows() ?... |
40e092fce295bf9459f52c790b17d581ea1a861e | C# | Abc-Arbitrage/ZeroLog | /src/ZeroLog.Tests/BufferSegmentProviderTests.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using NUnit.Framework;
using ZeroLog.Tests.Support;
namespace ZeroLog.Tests;
[TestFixture]
public unsafe class BufferSegmentProviderTests
{
private BufferSegmentProvider _bufferSegmentProvider;
private const int _segmentCount = 4;
private const int _segmen... |
4b63b970730283b0af817487aa328a31b84c49df | C# | Alex236/TestTask | /PriceChecker/ProductUpdater/CatalogReader.cs | 3.046875 | 3 | using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Net;
using PriceChecker.Models;
using System;
using HtmlAgilityPack;
namespace PriceChecker.ProductUpdater
{
public class CatalogReader
{
public List<Product> ReadCatalog(string catalogUrl)
... |
b7eaa264f13c6c767fa1544baab24d46ed843ee8 | C# | eqinox/SoftwareUniversity | /Course-Level-0/4.ConsoleInputOutput/09.SumOfNNumbers/SumOfNNumbers.cs | 3.765625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _09.SumOfNNumbers
{
class SumOfNNumbers
{
static void Main(string[] args)
{
Console.Write("Write num: ");
int num = int.Parse(Console.ReadLine()... |
6e226992d314cd3538485b81d5ec2a2787d88da7 | C# | IbrahimFahdah/MLDemo | /MLModelBuilder/DataBuilder/Helper.cs | 3.125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace MLBuild.DataBuilder
{
public class Helper
{
public static double CalcXc(List<Square> seqList, int squareSize)
{
var A = seqList.Where(x => x.IsFull).Sum(x => x.A);
var sum = 0.0;
fo... |
c73cb5b436c48cba9979d5cf5f7279eb6fcc0a25 | C# | thilinanjana/io-reboot | /Assets/Scripts/Managers/MusicManager.cs | 2.640625 | 3 | using UnityEngine;
public class MusicManager : MonoBehaviour
{
private AudioSource audioSource;
public AudioClip[] audioTracks;
private int index;
private float elapsed;
private float checkInterval = 15.0f;
void Awake()
{
audioSource = GetComponent<AudioSource>();
index = R... |
b6c3f0e898909e20bd16c03a44f695ba9f3f219e | C# | ericakimdev/sprintapp | /SprintApp/Models/Project.cs | 2.59375 | 3 | using System;
using MongoDB.Bson;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SprintApp.Models
{
// Project class for use with MongoDB
public class Project
{
/*************************
* PROPERTIES *
*... |
9219fe7876eae08e83164fdc34775a31fcbec726 | C# | TheNumerus/Duckify | /Duckify/Classes/Models.cs | 2.75 | 3 | using SpotifyAPI.Web.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Duckify {
public class SpotifySearchResult {
public string Id { get; set; }
public string Name { get; set; }
public string ImageUrl { get; set; }
... |
a25bd86b4912943b71877c7fbedb1a508ef3145a | C# | Drumev00/CSharp-Advanced | /Sets and Dictionaries/Lab/Cities by Continent and Country/Program.cs | 3.671875 | 4 | using System;
using System.Collections.Generic;
namespace Cities_by_Continent_and_Country
{
class Program
{
static void Main(string[] args)
{
int commands = int.Parse(Console.ReadLine());
var destinations = new Dictionary<string, Dictionary<string, List<string>>>();
for (int i = 0; i < commands; i++)
... |
e2d285052ca70d2847d15cd7f7f3f5b67dfdef14 | C# | annasirach/ISMConditionalStatements-2 | /WhileConsole2/WhileConsole2/Program.cs | 3.375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WhileConsole2
{
class Program
{
static void Main(string[] args)
{
Console.OutputEncoding = Encoding.Unicode;
Console.InputEncoding = Encoding.Un... |
534c823f44221eda521ec65325c69d272104d270 | C# | itovkach95/TulsiAp | /TulsiAp-master/Tulsi/Tulsi/Controls/CustomFrame.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace Tulsi.Controls
{
public class CustomFrame : ContentView
{
public readonly static BindableProperty BorderRadiusProperty = BindableProperty.Create("BorderRa... |
b3d71e6e5ccf3333b010508882df541d2d35d33a | C# | faheywf/FPToolbox | /FPToolbox.Test/Utility.Test.cs | 3 | 3 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using static FPToolbox.Utility;
namespace FPToolbox.Test
{
[TestClass]
public class Utility
{
[TestMethod]
public void OptionReturnsSome()
{
Option option = Option(5);
int value = option.Match(0);
... |
aa4d7f29e2747f608a6fad72cff604ba7040c0d6 | C# | mitkokazakov/C---Fundamentals---SoftUni | /Final Exam - April 2020/1. Activation Keys/Program.cs | 3.765625 | 4 | using System;
namespace _1._Activation_Keys
{
class Program
{
static void Main(string[] args)
{
string input = Console.ReadLine();
string command = Console.ReadLine();
while (command != "Generate")
{
string[] commandsArgs = comm... |
f6522d33b5cf872d8d3c7f02f0c3df31153c1cc4 | C# | Becc-s/super-barnacle | /Library/Library/Models/LibraryDbInit.cs | 2.609375 | 3 | //Rebecka Åkhagen Holm
//V. 1.0
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Library.Models {
/// <summary>
/// Derived database strategy
/// </summary>
class LibraryDbInit : DropCre... |
ffb000d8eef7be044cf0c13512c98242288f8ec6 | C# | matragorn/PV138_RSS_reader | /PV138_RSS_Reader/PV138_RSS_Reader/RenameBox.cs | 2.71875 | 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 PV138_RSS_Reader
{
public partial class RenameBox : Form
{
publi... |
b2438e8dd49f66eecaaebf698fdd984bd0d7d27a | C# | alexeygavrilov/PocketMoney | /PocketMoney.Model/Internal/Roles.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PocketMoney.Data;
namespace PocketMoney.Model.Internal
{
public static class Roles
{
public static Role Empty = new Role();
public static Role Children = new Role(0x1, "Chi... |
7ab3d78d650c3731a5efd0ef1b77e1c7d165d029 | C# | o2co2/AffinityUI | /AffinityUI/Control.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace AffinityUI
{
/// <summary>
/// The absolute base class for all controls, provides little functionality
/// and mostly serves as a handle for referencing all other types of controls.
/// <... |
68a2a6e212f817108c3daab316a2267777664e31 | C# | TheEliForbes/CS321-Projects | /BSTtree/BSTtree/Program.cs | 3.484375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Math; //allows direct calling of Log function
using static System.Console; //allows direct calling of Write, WriteLine, etc.
class Node {
private int data; //node value
pub... |
bac7cb73330a5ba1bcf85f63988dc3288dd8b8a8 | C# | gleroi/k-rabbit | /Rabbit.Tests/Client/SocketFake.cs | 2.765625 | 3 | using System.Collections.Generic;
using System.Text;
using Rabbit.Client;
namespace Rabbit.Tests.Client
{
class SocketFake : ISocket
{
public List<byte[]> SendedData = new List<byte[]>();
public List<string> ReceiveData = new List<string>();
int currentReceivedData = 0;
publ... |
4b44982d26c33f69c4e514ecffbb9f3b4f14fd6f | C# | ndomitio/InheritanceAndPolymorphismPractice | /Vehicle.cs | 3.625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InheritanceAndPolymorphismPractice
{
public class Vehicle
{
//fields
private string color;
private int wheels;
//properties
public s... |
7212a571bfd35ada62fdee3e036aa7b28e4ad273 | C# | smokingpc/CSharpTest | /src/MSAccessTest/FRMmAIN.cs | 2.5625 | 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 System.Data.OleDb;
namespace MSAccessTest
{
public partial class frmMain : Form
{
... |
aa6e8786db42614c4562c82cbbfb7847593fbc31 | C# | frankhaugen/Frank.Libraries | /src/Frank.Libraries.Time/Frank.Libraries.Time/Types/YearMonth.cs | 2.984375 | 3 | namespace Frank.Libraries.Time.Types;
public readonly partial struct YearMonth
{
public YearMonth(int year, int month)
{
// Guard
if (year < DateOnly.MinValue.Year)
{
throw new ArgumentOutOfRangeException(nameof(year));
}
if (year > DateOnly.MaxValue.Year)
... |
b620827d3d852938e6be81453acef4bb7ba58b1e | C# | 090820-dotnet-uta/WongAlex | /Demos/RPS_Game_NoDB/Program.cs | 3.421875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace RPS_Game_NoDB
{
public enum Choice
{
Rock,//can be accessed with a 0
Paper,//can be accessed with a 1
Scissors//can be accessed with a 2
}
class Program
{
static void Main(string[] args)
... |
f10e00d0f835123aa7cd6d2e8b1df5b90807c968 | C# | Objia/Altman2.2.1 | /Altman/Logic/ShellExtra.cs | 2.90625 | 3 | using System.Net;
using System.Xml;
namespace Altman.Logic
{
/// <summary>
/// 保存和提取shell扩展字符串(包括指定http头部字段和数据库连接字符串格式)的相关信息(调用了ShellExtraHandle类的方法)
/// </summary>
internal class ShellExtra
{
private string _shellExtraString;
public ShellExtra(string shellExtraString)
{
... |
2835290f3f33429d50e9aabdbf4689a7a93738f8 | C# | aserowy/hackathonblazor_prosr_adminui | /BlazorHub/Client/Business/MessageResolver.cs | 2.5625 | 3 | using prosr.Parser.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
namespace BlazorHub.Client.Business
{
public interface IMessageResolver
{
Message GetByName(string ident);
Type GetType(string ident);
object GetObject(string ident, st... |
70af4b206fd9a10dfdddd04c320e7b83774b7da4 | C# | mohaanwrites/play-csharp | /Class/SampleInherited.cs | 3.171875 | 3 | using System;
namespace MasteringCSharp.Class
{
public class SampleInherit : SampleBase
{
private protected SampleHelper GetHelperInstance()
{
return new SampleHelper();
}
public SampleInherit(int id) : base(id)
{
ChildMessage = nameof(SampleInhe... |
1f615bf625359bb9461ae58d758b6e7951357f87 | C# | tuncayalt/vscode-cs-exercises | /Actions.cs | 3.640625 | 4 | using System;
using System.Reflection;
public class Actions
{
public static void useActions()
{
Console.WriteLine("using Action");
Calculate(1,2,add);
Calculate(1,2,subtract);
Calculate(1,2, (a,b) => {
Console.WriteLine(a * b);
});
}
private static v... |
37aedfb85c9637c1683b1479e7e4030626ca101b | C# | ChrisMissal/Bender | /src/Bender/DeserializeExceptions.cs | 2.859375 | 3 | using System;
using System.Reflection;
using System.Xml;
using System.Xml.Linq;
namespace Bender
{
public class DeserializeException : Exception
{
public DeserializeException(PropertyInfo property, XObject node, Format format, string message, params object[] args) :
base(property... |
66fcd8312ab2527cb16089ac0d0087fa027ddd03 | C# | IvanPopik05/PrototypeMultiplayer2D | /Assets/Scripts/Bullet.cs | 2.640625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Bullet : MonoBehaviour
{
[SerializeField] private float speed;
Rigidbody2D _rb;
private void Start()
{
_rb = GetComponent<Rigidbody2D>();
StartCoroutine(Shoot());
}
private IEnumerator... |
0aebf88445d9031f0a9dbeaaaa17c7a470883121 | C# | SimonDarksideJ/XNAGameStudio | /Samples/TouchThumbsticksSample_4_0/TouchThumbSticks/TouchThumbSticks/Ship.cs | 2.890625 | 3 | //-----------------------------------------------------------------------------
// Ship.cs
//
// Microsoft Advanced Technology Group
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
using Microsoft.Xna.Framework;
using Microsoft... |
bb1a8fac4d682e4e9b7c43c035cb749b8eae79e5 | C# | zduan001/BusAroundMe | /Console/3sum/004_ClimbStairs.cs | 4.15625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace console
{
public class _004_ClimbStairs
{
/// <summary>
/// You are climbing a stair case. It takes n steps to reach to the top.
/// each time you can either climb 1 or 2 steps. In how many ... |
ee02175c6aca9da67c18057ac20d9c843fe75e4c | C# | danielavillamar/LAB8 | /Flashlight.cs | 2.5625 | 3 | using System.Collections;
using UnityEngine;
using System.Collections.Generic;
public class Flashlight : MonoBehaviour
{
public KeyCode flashlightkey = KeyCode.Mouse0;
public float batterylifesec = 60f; //(60 segundos dura bateria de la camara)
public float maxIntensity = 1f;
private rea... |
db068b2a306a3df16ebefb923583afc03fd1085d | C# | KavinduT/CodeTest | /CodeTestAPI/CodeTestAPI/Services/MoviesService.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Headers;
using CodeTest.Models.DataRepo;
using Newtonsoft.Json;
namespace CodeTest.API.Services
{
public class MoviesService : IMoviesService
{
public IEnumerable<FilmDTO> GetMovies()
{
... |
1330b78c2c1055e39f639f913944c14c40bd4006 | C# | Still34/RaffleBlazor | /RaffleBlazor/Utility/EnumerableUtility.cs | 3.28125 | 3 | using System;
using System.Collections.Generic;
namespace RaffleBlazor.Utility
{
public class EnumerableUtility
{
private readonly Random _random;
public EnumerableUtility(Random random)
=> _random = random;
/// <seealso href="https://stackoverflow.com/a/12626... |
e3628763cc641408062b0e99e82cebf89f0693b7 | C# | pgillett/AdventOfCode2020 | /Advent/AdventTest/Day25Test.cs | 2.578125 | 3 | using Advent;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace AdventTest
{
[TestClass]
public class Day25Test
{
private Day25 _day25;
[TestInitialize]
public void Setup()
{
_day25 = new Day25();
}
[TestMeth... |
d249b0b1ba8330f58b4580110691caa3d174c5ed | C# | icameisawibeatboxed/DownWithTheMonarchJulia | /Assets/CubeManager.cs | 2.828125 | 3 | using UnityEngine;
using System.Collections;
public class CubeManager : MonoBehaviour {
public GameObject[] cubes;//= new GameObject[4];
int theCubeNumberYoureLookingFor=0;
// Use this for initialization
void Start () {
for(int i = 0; i < cubes.Length; i++)//look up for loops
{
cubes[i].renderer.enable... |
c4abed399f064ef5da08a264f6a6c662a7220667 | C# | ramanmiddha90/PeerIsland-SqlParser | /PeerIsland.SqlQueryGenrator/QueryGenerators/IQueryGenerator.cs | 2.546875 | 3 | using PeerIsland.SqlQueryGenerator.Configuration.SqlClauses;
using System;
using System.Collections.Generic;
namespace PeerIsland.SqlQueryGenrator.QueryGenerators
{
/// <summary>
/// Implement this interface for generated query for other provider
/// </summary>
public interface IQueryGenerator
{
... |
3092c8181adefe92a9f8da2deaa1614c4e219671 | C# | ctrlcommunity/Ctrl.Framework | /src/CtrlCloud.Framework.Domain.Shared/OperateStatus.cs | 2.625 | 3 | using System.Collections.Generic;
using CtrlCloud.Framework.Core.Properties;
namespace Ctrl.Core.Entities
{
/// <summary>
/// 调用服务或业务逻辑返回标识枚举,使用DataContract特性,表示可序列化
/// </summary>
public enum ResultSign
{
/// <summary>
/// 操作成功
/// </summary>
Successful,
... |
ee06a1aefacb823e9e1f86a7756edfe0ee7c5a09 | C# | pafik13/SOPtemp | /SalesOfPharmacy/fListDrugs.cs | 2.671875 | 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 MySql.Data.MySqlClient;
namespace SalesOfPharmacy
{
public partial class fListDrugs : Form
{
Dictionary<string, ... |
8133baa135ac5e339d32e68f21354103dd8fc810 | C# | mkubasz/other | /DumbSearchEngine/DumbSearchEngine/Stemmer.cs | 3.1875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DumbSearchEngine
{
public class Stemmer
{
public static IEnumerable<Stem> Stem(string word)
{
int len = word.Length;
for (var i = 1... |
1e850e7c9555cc4781c926818dfad3d9dd0040df | C# | philanderson888/c-sharp | /ASP_MVC_Core_ContosoUniversity_03/Pages/About.cshtml.cs | 2.578125 | 3 | using ContosoUniversity.Models.SchoolViewModels;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ContosoUniversity.Models;
namespace ContosoUniversity.Pages
{
public class AboutModel : PageMode... |
c4f2ffa62602fca083ba876147f44343239e3959 | C# | agaddampalli/Algorithms | /Chapter 7 - Tree/IsValidBST.linq | 2.9375 | 3 | <Query Kind="Program" />
void Main()
{
var root = new TreeNode(2147483647);
root.left = new TreeNode(1);
// root.right = new TreeNode(30);
// root.right.left = new TreeNode(1);
// root.right.left.right = new TreeNode(15);
// root.right.left.right.right = new TreeNode(45);
IsValidBST(root).Dump();
}
public class... |
90813350ca2dc59a4b9e0a7704720cf05f7f5918 | C# | thailyn/LootGainAnalysis | /LootGainLib/DecisionTreeNode.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LootGainLib
{
public class DecisionTreeNode
{
private DataSourcesCollection _sources;
public DataSourcesCollection Sources
{
get
{
... |
bd182b04cf7a2c7b77f023761f49eedeab2887b9 | C# | melari/DATreconstruct | /DATreconstruct/Program.cs | 3.375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DATreconstruct
{
class Program
{
static void Main(string[] args)
{
if (args.Length < 2 || args.Length > 3)
{
Console.WriteLine("Syntax: DATreconstruct infile.... |
32e7e6e31494c043baf3befb09e724307e798391 | C# | war-man/Cfood | /V308CMS.Data/LinkRepository.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Security.Cryptography;
using System.Text;
namespace V308CMS.Data
{
public interface LinkInterfaceRepository
{
string Insert(string url, int uid, string source, string taget, string n... |
2bec4c8e04f648174541658b266e516744db567b | C# | BardenSAE/tankymctankface | /Assets/Chris/GAM112v4 - Chris Scripts - Git/Assets/Scripts/MouseSelector.cs | 2.671875 | 3 | using UnityEngine;
using System.Collections;
public class MouseSelector : MonoBehaviour
{
private GameObject target;
// Update is called once per frame
void Update ()
{
// define a ray from the camera to the mouse cursor
// beginning at the screen and extending to infinity
Ray ray = GetComponent<Ca... |
2f13df3a2d38179d2d243bad83d91d9d2e76c614 | C# | Lakthinda/CSVFileReader | /ReadCSV.Test/ServiceManagerTest.cs | 2.671875 | 3 | using Moq;
using ReadCSV.Contracts.Models;
using ReadCSV.Requests;
using ReadCSV.Responses;
using ReadCSV.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace ReadCSV.Test
{
public class ServiceManagerTest
{
private readonly ServiceManager sut;
pri... |
73ec5d023ccb375b30a29db18a82c6d7b41dfd91 | C# | LightBDD/LightBDD | /src/LightBDD.Framework/Formatting/DefaultNameFormatter.cs | 3.34375 | 3 | using LightBDD.Core.Formatting;
namespace LightBDD.Framework.Formatting
{
/// <summary>
/// Default implementation of <see cref="INameFormatter"/> interface.
/// </summary>
public class DefaultNameFormatter : INameFormatter
{
private DefaultNameFormatter()
{
}
/// <... |
a606e215f6765847f457e0368849ae822991056d | C# | ivanginov7/WebForms3 | /WebForms3/Contact.aspx.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebForms3
{
public partial class Contact : Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
... |
efc001dce57c4edfb72a81e6782951478cc23c6b | C# | LucasDotEXE/RHIndividueel | /RHIndividueel/ErgoClient/BluetoothLowEnergy/BLESimulator/BLESimulator.cs | 2.890625 | 3 | using Client;
using System.Collections.Generic;
using System.IO;
namespace ErgoConnect
{
/// <summary>
/// The WriteOption enumeration defines two options to help identify actions. These are Ergo and Heartrate.
/// </summary>
public enum WriteOption
{
Ergo, Heartrate
}
/// <summary>
/// BLESimulator replic... |
7790e803f37d9ab5ae69b8ff5f3311051172f067 | C# | bradmdesign/OoT2DUnity | /Assets/Scripts/Carriable.cs | 2.546875 | 3 | using UnityEngine;
[RequireComponent(typeof(Collider2D))]
[RequireComponent(typeof(Rigidbody2D))]
[RequireComponent(typeof(SpriteRenderer))]
public class Carriable : MonoBehaviour
{
public Vector2 carryOffset;
public Collider2D Collider2D { get { return m_Collider2D; } }
public SpriteRenderer SpriteRender... |
4a9ee2d619a2c28044d1f3138fce7962524aa2e7 | C# | TimeToPlay/Orbitality | /Assets/Scripts/Controllers/LocalSaveController.cs | 2.640625 | 3 | using System;
using System.IO;
using Models;
using UniRx;
using UnityEngine;
namespace Controllers
{
/// <summary>
/// Serialize/deserialize json into game model
/// </summary>
public class LocalSaveController
{
private string gameDataFileName = "saves.json";
private string saveFil... |
a5e53fc00a876602919fa4f15a2d3f9ddbc46451 | C# | denisb1/mono-studentska-praksa | /Day4/Day4.Repository/EnrollmentRepository.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using Day4.DAL;
using Day4.Models;
using Day4.Models.Common;
using Day4.Repository.Common;
namespace Day4.Repository
{
public sealed class EnrollmentRepository : IGenericRepository<EnrollmentDto>
{
public void Add(EnrollmentDto e... |
e4c532e9b83714b353f96e583502da3d2b25be99 | C# | Benova11/Gotcha | /Gotcha/Assets/Bank/Bank.cs | 2.703125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Bank : MonoBehaviour
{
[SerializeField] int startingBalance = 150;
[SerializeField] int currentBalance;
GameManager gameManager;
public int CurrentBalance { get { return curr... |
efadbe13249de86c423ae5887eec1957b33c3800 | C# | sanfengliao/uwp | /todolist/Model/ListItem.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using Windows.Data.Json;
using Windows.Storage;
using Windows.Storage.AccessCache;
using Windows.Storage.Streams;
using Windows.UI.Xaml.Me... |
61b869a9ae0521ef89166facf59e074f247555ee | C# | ipritt/CodeFights | /Arcade/SortByHeight/SortByHeight/Program.cs | 3.46875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SortByHeight
{
class Program
{
static void Main(string[] args)
{
int[] a = { -1, 150, 190, -1, -1, 160, 180 };
Console.WriteLine(SortByHeight(a)... |
9793318a2359ab6f7b5b91430cf91621799e6299 | C# | computerline1z/sstore-vn | /Source code/sourcecode 19.5/BusinessObjects/PaymentMethodsInfo.cs | 2.8125 | 3 | using System;
namespace BusinessObjects
{
public class PaymentMethodsInfo
{
#region ***** Fields & Properties *****
private int _MethodID;
public int MethodID
{
get
{
return _MethodID;
}
set
{
_MethodID = value;
}
}
private string _MethodName... |
2821e815cef19ce49e4807e30e16b18e723309ad | C# | Pranay-bit/ActivityClass-DiagnosticSource | /ActivityClass-DiagnosticSource/ActivityClass.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace ActivityClass_DiagnosticSource
{
public class ActivityClass
{
private static readonly DiagnosticSource diagnosticSource
= new Diagnostic... |
bb2bcd067d27eba3a4089907aae30fc7aeff5a2c | C# | nescafe2002/AoC-2020 | /10 Adapter Array.linq | 3.015625 | 3 | <Query Kind="Statements">
<Reference Relative="10 input.txt">C:\Drive\Challenges\AoC 2020\10 input.txt</Reference>
<NuGetReference>morelinq</NuGetReference>
<Namespace>MoreLinq</Namespace>
</Query>
var input = @"28
33
18
42
31
14
46
20
48
47
24
23
49
45
19
38
39
11
1
32
25
35
8
17
7
9
4
2
34
10
3".Split("\r\n").... |
18829bb508456436be1da89d2e41267279639966 | C# | ParallaxOW/BookAPIForGraphDemo | /BookGraphAPI/BookData.cs | 2.6875 | 3 | using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using Microsoft.Azure.Documents.Client;
using System.Linq... |
f1cbee81e7d768f6bd9825bd2d538de17582d328 | C# | hueblerw/CavemanWorld | /DynamicCavemanWorld/Assets/Classes/Editor/GeneratorTester.cs | 2.671875 | 3 | using UnityEngine;
using UnityEditor;
using NUnit.Framework;
public class GeneratorTester {
[Test]
public void ElevationGeneratorTester()
{
// Set the world size
DataGenerator generator = new DataGenerator(20, 15);
// Generate the tested world
float[,] array = generator.CreateEleva... |
2cbdf4bb0735b0b3da8391917c722cd6a8a2d02d | C# | snownz/Virtual-Intelligence | /VI/VI.Neural/Factory/LayerBuilder.cs | 2.546875 | 3 | using System;
using VI.Neural.ActivationFunction;
using VI.Neural.ANNOperations;
using VI.Neural.Node;
using VI.Neural.OptimizerFunction;
namespace VI.Neural.Factory
{
public class LayerBuilder
{
private int size, connections;
private float lr, mo, std;
private ANNOperationsEnum operat... |
273f933b90ac99fb5a5f0c7cdafa6eeaaf580a1f | C# | grzabrodskiy/BoxingGame | /First/FighterRanking/EloFighterRanking.cs | 2.796875 | 3 | using System;
using System.Collections.Concurrent;
using log4net;
using Main;
using Newtonsoft.Json;
namespace Boxing.FighterRating
{
[Serializable]
[NewGame]
public class EloFighterRating : IFighterRating
{
[JsonProperty] private ConcurrentDictionary<string, double> Ratings { get; set; }
... |
43ba4cb7bcf8e24326619e328171810e57f45b74 | C# | davidwmartines/MushMud-Archive | /src/Core/Factories/ImageFileInfoFactory.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.IO;
using MusicCompany.Core.Services;
namespace MusicCompany.Core.Factories
{
#region Interface
public interface IImageFileInfoFactory
{
/// <summary>
/// Returns a new ImageFileInfo instan... |
a62ac9d4ed3e977c882cc8fba15a5b87e2a3041c | C# | johncobley/stock_deprecator | /StockDeprecator/CurrentStock.Tests/StockLineServiceTests.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using CurrentStock.DataAccess;
using CurrentStock.Models;
using CurrentStock.Service;
using Moq;
using Xunit;
namespace CurrentStock.Tests
{
public class StockLineServiceTests
{
private IStockTypeRepository DefaultStockTypeRe... |
c91ee250fc4769e01f62f32bc3895d5095c9f7ee | C# | Clouddevelopmentstudios/SlimCanvas | /Shared/SharedDroid/View/DrawInBitmap.cs | 2.546875 | 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;
using Android.Graphics;
namespace SlimCanvas.Droid
{
internal class DrawInBitmap
{
Bitmap... |
45d18e50bdb27074b1a5726eee271d8f4c0ba4b2 | C# | ikamusume7/CSharpStudy | /CSharpStudy/EssentialCSharp/Interface.cs | 3 | 3 | using System;
using Xunit;
using Xunit.Abstractions;
namespace EssentialCSharp.Interface
{
public class Interface
{
private readonly ITestOutputHelper _testOutputHelper;
public Interface(ITestOutputHelper testOutputHelper)
{
_testOutputHelper = testOutputHelper;
}
... |
87eda41667b070d9d346f6e45e722f5c12f57619 | C# | javierfil/SocketServer | /SocketServer/LENELBadgeAccessLevels.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace ServerComunicacionesALUTEL
{
public class LENELBadgeAccessLevels
{
Dictionary<string, string> badgesAccessLevels; // Asociacion de badge a accessLevels (1,2,3,4)
int orgID;
public ... |
96e4453743ef4b87b2d9ff7f9ae11391a3e5b237 | C# | fpapouin/tntpro | /oneTap2/oneTap2/Form1.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Timers;
using System.Diagnostics;
using System.IO;
namespace oneTap2
{
public partial class Form1 : Form
... |
21cbd53823403297abef30483b4f5bb8e9eafc65 | C# | kvarik/yaat | /libYaAT/Window.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace libYaAT
{
public class Window
{
private static IntPtr hWnd;
private static string title;
public string Title
{
get ... |
2b4af9bd6a943c86e1b5e8c339bd70ae6d3c433d | C# | JoaLampela/Giants-Kettle | /Assets/Script/MapGeneration/Rooms/Classes/BossRoom.cs | 2.65625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BossRoom : Room
{
public BossRoom(Coord centre, int[,] map)
{
CentreTile = centre;
roomType = 10;
width = 30;
height = 20;
for (int x = -width / 2 + centre.tileX; x < width / 2 + ... |
713327d067dc72a99c2e15c0ff62045ea17e9f49 | C# | PSNS-IMF/security-clientcerthandling | /src/ClientCertificateHandling/DodUser.cs | 2.765625 | 3 | using Psns.Common.Functional;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using static Psns.Common.Functional.Prelude;
using static Psns.Common.Security.ClientCertificateHandling.Constants;
namespace Psns.Common.Security.ClientCertificateHandling
{
/// <summa... |
c9eb929a981411160e9dd8388cb2723f2a402597 | C# | shendongnian/download4 | /first_version_download2/527326-49041984-167940533-4.cs | 3.609375 | 4 | public class Cache : ICache
{
private readonly ConcurrentDictionary<string, object> _cache
= new ConcurrentDictionary<string, object>();
public T Get<T>(string key)
{
object cached;
if(_cache.TryGetValue(key, out cached) && cached is T)
{
... |
67cef0b0649407ce39ad701f2ab74b58a1b4b286 | C# | TESSkyblivion/Skyblivion.ESReader | /src/Skyblivion.ESReader/Struct/Trie.cs | 3 | 3 | using Skyblivion.ESReader.PHP;
using Skyblivion.ESReader.TES4;
using System;
using System.Collections.Generic;
namespace Skyblivion.ESReader.Struct
{
/*
* Class Trie
* Based off implementation of https://github.com/fran6co/phptrie/
*/
public class Trie
{
private Dictionary<string, Tr... |
b937eb189229eceac2c04a7f7a3d60f064fa9fe9 | C# | coder-of-night/GameFramework | /MidnightCoder/Script/GameObjectPool/GOPoolMgr.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using UnityEngine;
namespace MidnightCoder.Game {
public class GOPoolMgr {
//
// Fields
//
public Dictionary<string, GOPool> pools = new Dictionary<string, GOPool> ();
//
// Constructors
//
public GOPoo... |
7b3d8b7bfd80bbc4ab1bff9782ebcdf529027117 | C# | Karlmikaelb/SOLID_LSP | /SOLID_LSP/Calculator.cs | 2.640625 | 3 | namespace SOLID_LSP
{
public abstract class Calculator
{
protected readonly int[] Numbers;
public Calculator(int[] numbers)
{
Numbers = numbers;
}
public abstract int Calculate();
}
} |
d2420f9818545a5a7683f2e282be76d54e62f65b | C# | RusyaOne/NetCore_09.12.2020 | /Infestation/Infestation/Services/ImageProcessingChannel.cs | 2.75 | 3 | using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Channels;
using System.Threading.Tasks;
namespace Infestation.Services
{
public class ImageProcessingChannel
{
private Channel<(string, byte[])> _channel;
public ImageProce... |
a01214ae1aec9a82c1af593cbab1f410a07276cd | C# | lhmarcondes2511/ProjetoTeste | /ProjetoTeste/Models/Cliente.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace ProjetoTeste.Models {
public class Cliente {
[Key]
public int Id { get; set; }
[DisplayName("Nome do Cliente... |
01b9ce7351895c8c5d6a0ecbaf7ff278d23e67bf | C# | anna4615/Lektion7 | /200917 Lektion7 Visual/NameArray/Program.cs | 3.796875 | 4 | using System;
namespace NameArray
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hur många namn vill du registrera? ");
string[] names = new string[int.Parse(Console.ReadLine())];
for (int i = 0; i < names.Length; i++)
{
... |
caee5a180c4d9da24b4cdb19a7a9ebfc432d1868 | C# | ChristopherRamos/monotouch-samples | /NSZombieApocalypse/NSZombieApocalypse/ZombieMeter.cs | 2.609375 | 3 | using System;
using System.Drawing;
using MonoTouch.UIKit;
using MonoTouch.Foundation;
using MonoTouch.CoreGraphics;
namespace NSZombieApocalypse
{
public class ZombieMeter : UIView
{
float zombieLevel;
public float ZombieLevel {
get {
return zombieLevel;
}
set {
zombieLevel = Math.Max (0, valu... |
c23c6c5e9675ef8e19f676102fd2cd4e7c3455df | C# | modland/proto-event-delegates-real | /Assets/Scripts/Delegate.cs | 3.234375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// example code
public class Delegate : MonoBehaviour
{
// a delegate is just a variable that holds a method.
// here is how to declare one.
// note the Method Signature ie. input and returning parameter types
// in this exa... |
ce7bda9a275430fb8ba376139c56f50349c084b8 | C# | jmontes495/YouHadOneJob | /YouHadOneJob/Assets/Scripts/Content/Snake.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using UnityEngine;
namespace YouHadOneJob
{
public class Snake
{
public event Action<Tile> OnCreateFood;
public event Action<Tile, Tile> OnCreateSnake;
public event Action<Tile, Tile, SnakeDirection> OnMoveHead;
public event Action... |
33b312c48bfe5a14e1f433a00a2f5a3d12e5d054 | C# | GuMiner/CommonNet | /CommonNet/Tree/RedBlackCore/RedBlackTreeNode.cs | 3.0625 | 3 | namespace CommonNet.Tree.RedBlackCore
{
/// <summary>
/// Defines a node in a Red-Black Tree
/// </summary>
public class RedBlackTreeNode<T>
{
public const bool Red = false;
public const bool Black = true;
public RedBlackTreeNode(T data, bool isBlack)
{
... |
86da313035a2e08a9d67fe031f8083d45e5f65b8 | C# | AnejL/Persons.NET | /Persons.NET.Tests/FileServiceTests.cs | 2.875 | 3 | using NUnit.Framework;
using Persons.NET.Model;
using Persons.NET.Services;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace Persons.NET.Tests
{
public class FileServiceTests
{
private FileService fileService;
[SetUp]
... |
1cb7ab145393d5b95380c40d9351c1543a5fa3fe | C# | JediChou/jedichou-study-backend | /csharp-study/cs4-power/ch15/other-apply/nonfunc.cs | 3.40625 | 3 | // File name: nonfunc.cs
// Description: How to use anonymous method with delegate
class Program
{
delegate void TestDelegate(string name);
static void Main()
{
TestDelegate d2 = delegate(string name) {
System.Console.WriteLine("Hello, {0}", name);
};
d2("Jedi");
}
} |
8d3040abc12a6399fd8df52296a32cde680800fa | C# | Sequenta/MailChat | /MailChat/Messages/Message.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace MailChat.Messages
{
public class Message
{
private readonly string sender;
public string Sender
{
get { return sender; }
}
private readonly string messageText;
publi... |
9d6e3de5e621b054624309de8b42ce8128c2d979 | C# | dabbertorres/Minesweeper | /Minesweeper/ChangedCell.cs | 2.703125 | 3 | namespace Minesweeper
{
/// <summary>
/// Represents a Cell that had its status changed
/// </summary>
/// <remarks>Where <see cref="Cell.Flagged"/> or <see cref="Cell.Cleared"/> changed</remarks>
public struct ChangedCell
{
public ChangedCell(Coordinate coord, int mines)
{
... |
caeb3bbee3dc2dab1f0dabf14b9c625a11ee155f | C# | ShawkyZ/Social-Me | /Post.cs | 2.703125 | 3 | /*
* Social Me Project
* Developed By : Abdelrhman Shawky
* fb.com/shawkyz1
*/
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 Facebook;
names... |
2a4a5b76a2bb5c90d05c43df76084478f310291c | C# | Treebotx/DataStructures | /DataStructures.Tests/ArrQueueTests.cs | 3.21875 | 3 | using DataStructures.Library;
using System;
using Xunit;
namespace DataStructures.Tests
{
public class ArrQueueTests
{
[Fact]
public void QueueStartsEmptyWithALengthOfZero()
{
var q = new ArrQueue<int>();
Assert.Equal(0, q.Length);
Assert.True(q.IsE... |
bbe79524e19d33314edb7bd6e433ebcee63830c2 | C# | sandalkuilang/wb | /Container/Common.Document/Workbook.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using System.Net;
namespace Common.Document
{
public abstract class Workbook
{
public abstract Stream FileStream { get; protected set; }
... |
050a79e92e80535e1050a0bfb99951eed7e39c5d | C# | programming-653501/maksim_medunetski | /lab4_2.cs | 3.5625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace lab4_2
{
class Program
{
static bool Check(string s)
{
string symbols = "ABCEKMHOPTX";
foreach (char c in s)
... |
bb4fafc3997bec0abf0f471f22e6c9d47eb4867f | C# | NikitaPW/Ray-Tracing | /WindowsFormsApp9/Matrix4d.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Net.NetworkInformation;
using System.Text;
using System.Threading.Tasks;
namespace WindowsFormsApp9
{
public class Matrix4d
{
public float[,] mat;
int size = 4;
public float... |
2daaa58e4d7b57841101b70aa8adcddc30f9acef | C# | AGGP-NHTI/GinyuForce | /Assets/Nicole/falling debri/falling_objects.cs | 2.65625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class falling_objects : Actor
{
//length to right
[SerializeField]
private float limit = 0;
//amount of spawners and their x-locations
[SerializeField]
private float[] positions = null;
//enemy prefab hol... |
70b225df59fc14b85394585a502a63e88c084f77 | C# | Geronius/BizTalk-Software-Factory | /BizTalkSoftwareFactory for BizTalk Server 2010/BizTalkSoftwareFactory/References/SolutionFolderRecipeReference.cs | 2.640625 | 3 | using System;
using EnvDTE;
using EnvDTE80;
using VSLangProj;
using System.Runtime.Serialization;
using Microsoft.Practices.RecipeFramework;
namespace BizTalkSoftwareFactory.References
{
/// <summary>
/// UnBoundRecipe that allows to be executed only on Solution Folders
/// </summary>
[Serializable]
... |
bd72eda8034f61974c30155b6f9124e1e09528d1 | C# | EdgeKing810/SphereShooter | /Assets/Scripts/playerMovement.cs | 2.5625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using SimpleInputNamespace;
public class playerMovement : MonoBehaviour {
public Transform rotator;
private Rigidbody cubeRb;
public float speed = 5.0f;
private Vector2 input;
void Start() {
cubeRb = GetCompon... |
e1d7750f70cb3100b69a2fb014b6b9bcdfb881fc | C# | atman/CSharp-DotNet | /OOPS Assignment/PolymorphismChallenge/PolymorphismChallenge/Program.cs | 3.15625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolymorphismChallenge
{
class Program
{
static void Main(string[] args)
{
Employee perEmp = new PermanentEmployee();
Employee conEmp = new Contr... |
3f7989a516b68d0f8ae838c85deee55d32707709 | C# | AndrewColbeck/CSharp_ObjectOrientedGame | /Tests/TestInventory.cs | 3.171875 | 3 | // Title: 5-1C - TestInventory.cs
// Author: Andrew Colbeck © 2018, all rights reserved.
// Version: 1.0
// Description: Unit Tests for Inventory Class in Swinadventure
// Last modified: 6/04/2018
// To Fix: Complete!
using NUnit.Framework;
namespace SwinAdventure
{
[TestFixture()]
public clas... |
f630e04bc3bdf348978736a9df4c97df46a419b9 | C# | krolu/TowerDefenseColab | /TowerDefenseColab/GamePhases/StartScreen.cs | 2.671875 | 3 | using System;
using System.Drawing;
using System.Windows.Forms;
namespace TowerDefenseColab.GamePhases
{
public class StartScreen : GamePhase
{
private readonly GamePhaseManager _gamePhaseManager;
private readonly Image _background;
public StartScreen(InputManager inputManager, GamePh... |