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 |
|---|---|---|---|---|---|---|
429e74e9978ea0f25a9b6b995ff15059a717a2c6 | C# | lemmit/CodeEval | /CodeEval6/Program.cs | 3.421875 | 3 | using System;
using System.IO;
using System.Linq;
namespace CodeEval6
{
class Program
{
private static void PrintMatrix(int[,] matrix)
{
for (int i = 0; i < matrix.GetLength(1); i++)
{
for (int j = 0; j < matrix.GetLength(0); j++)
{
... |
c4073a83db1507d971f651698c064b217f79cb38 | C# | hectormoreira/NET-Core-React-Hooks | /ProyectoCore/Aplicacion/Instructores/Consulta.cs | 2.671875 | 3 | using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using Persistencia.DapperConexion.Instructor;
namespace Aplicacion.Instructores
{
public class Consulta
{
public class Lista : IRequest<List<InstructorModel>>{
... |
3d4e83a767759ac1e7ba5453caa42b7546a31660 | C# | lyudoGO/SoftUniOpenCourses | /DataStructures/ExerciseShoppingCenter/ExerciseShoppingCenter/ShoppingCenterMain.cs | 3.4375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExerciseShoppingCenter
{
public class ShoppingCenterMain
{
private static ShoppingCenter shoppingCenter = new ShoppingCenter();
static void Main()
{
... |
b093c51d201aadecb8859574e201a6afb7614b50 | C# | jayvan/advent | /2020/06.cs | 3.578125 | 4 | using System;
using System.Collections.Generic;
public class Advent06 {
public static void Main() {
HashSet<char> answers = new HashSet<char>();
int sum = 0;
string line;
while (true) {
line = Console.ReadLine();
if (string.IsNullOrEmpty(line)) {
sum += answers.Count;
an... |
9afe7285753b3372680f0de621bdd12029a40b93 | C# | NahimRH/Simulador-Papeleria | /ProyectoFinal_EQ04/Clases/Tarjeta.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace Clases
{
public class Tarjeta
{
//Atributos
public string nombreBanco;
public string tipoTarjeta1;
public string tipoTarjeta2;
public string numeroTarjeta;
public string nombreTitular;
... |
020da23bdc41a0e0813ff0cfca1516b064fa3d75 | C# | ELalkovski/Software-University | /04. C# Advanced/01. Stacks and Queues Lab/02. Simple Calculator/SimpleCalculator.cs | 4.03125 | 4 | namespace _02.Simple_Calculator
{
using System;
using System.Collections.Generic;
using System.Linq;
public class SimpleCalculator
{
public static void Main()
{
string[] input = Console.ReadLine()
.Split(' ')
.ToArray();
Stack... |
16430d462dfc1dd6a3ae61f9e1bb6fc0eb508244 | C# | mycoville/hunting-the-arcane | /Assets/Scripts/ObjectPooler.cs | 3.078125 | 3 | /*
In this script:
- Pool setup for object pooling
- Method to spawn bullets
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ObjectPooler : MonoBehaviour
{
[System.Serializable]
public class ObjPool
{
public string name;
public GameObject pre... |
21a3472cf23b94c771bc8ad51d47ebcac7ddc548 | C# | zsoujiro/FluidMan | /FluidMan/Units.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Xml;
namespace FluidMan
{
public class Units
{
public static void Write_UnitTable(Stream fileStream)
{
XmlDocument xmlDocument = new XmlDocument();
XmlNode xmlNode;
... |
d3bfda00dbd6b4ec486a0c3af07f2c4316571080 | C# | VenciNanov/TechModuleSeptember2017 | /ExamPrep-ProgrammingFundamentlesJuneExam/04.Files/Program.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace _04.Files
{
class Program
{
static void Main(string[] args)
{
var n = int.Parse(Console.ReadLine());
List... |
3a67bec93e46e896e1de8fbfac851b81c58fc29a | C# | jeffhartley3925/Composer | /Composer.Messaging/Serialization.cs | 3.140625 | 3 | using System.IO;
using System.Runtime.Serialization.Json;
using System.Text;
namespace Composer.Messaging
{
/// <summary>
/// Serialization class.
/// </summary>
public static class Serialization
{
/// <summary>
/// From json.
/// </summary>
/// <typeparam name=... |
253879835bec8b42426d29247a6d17766bd97bb3 | C# | xeonye/Kaopu | /Ztop.Todo.Manager/BillAccountManager.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ztop.Todo.Model;
namespace Ztop.Todo.Manager
{
public class BillAccountManager:ManagerBase
{
public int Save(BillAccount billaccount)
{
using (var db = GetDbCon... |
f5a49375e823576c7ff19e7560fa732be5296c91 | C# | maclaren33/TestTaskLoading | /TestTasksLoading/FLoading.cs | 2.8125 | 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;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TestTasksLoading
{
public partial class FLoading : Form
{
... |
83d7e7a6bee2d33667d01aeea8f1bdfaee6867ab | C# | tomastomov/ORM | /ORM/ORM/Implementation/InternalDatabaseTable.cs | 2.671875 | 3 | using ORM.Contracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace ORM.Implementation
{
internal class InternalDatabaseTable<TEntity> : DatabaseTable<TEntity>, IQueryProvider
{
private readonly IExpressionVisitor visitor_... |
9e7d42c97d251144b18eb38f0547b23b565c4eb0 | C# | kenobit/MVC_person_phone | /Person_Phone/Person_Phone/NHibernateRepo/NHibernateRepository.cs | 2.65625 | 3 | using FluentNHibernate.Cfg;
using FluentNHibernate.Cfg.Db;
using NHibernate;
using PersonDB_project;
using PersonDB_project.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Person_Phone.NHibernateRepo
{
public class NHibernateRepository : IRepository<User>
... |
7b38d22549ca9a2c45faf80a9a55529496052216 | C# | sampletext32/Some3D | /Some3D/Utils/SomeMaths.cs | 3.03125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Some3D.Utils
{
public class SomeMaths
{
public static Vector3f Cross(Vector3f line1, Vector3f line2)
{
Vector3f v = new Vector3f();
v.X = line1.... |
9876a9882a8853a7e9f802bfa5952a2b35304560 | C# | ericbehughes/pacman | /Pacman/Game/Classes/Map/Wall.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Pacman.Characters.Interfaces;
namespace Pacman.Game.Classes.Map
{
public class Wall : Tile
{
public Wall(int x, int y) : base(x, y)
{
... |
3df27e2a2396f380a419857eaf022de8ea5a8798 | C# | FDlucifer/PowerShell | /src/Microsoft.PowerShell.Commands.Diagnostics/CounterSet.cs | 2.546875 | 3 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
namespace Microsoft.PowerShell.Commands.GetCounter
{
public class Counte... |
060407c6f60d30f2894ef5bb2b84e53f96bb7a10 | C# | AlexanderJohnston/ExpressionToString | /Visualizer.Shared/Converters.cs | 2.515625 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using static System.Windows.DependencyProperty;
using ExpressionToString.Util;
using static System.Windows.Visibility;
na... |
12231b37efee3d4ca00c85ccadc6af098f81913a | C# | Lisa1999/c-homework | /homework_3/program/Program.cs | 3.984375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace program
{
interface Shape
{
void printArea();
}
//Triangle
class Triangle : Shape
{
public Triangle()
{
Console.WriteLine("Please in... |
f335858e451132d04cf9454a8d1a190610f7c6a5 | C# | newpost/MasterChief | /MasterChief.DotNet4.WindowsAPI/Model/WindowInfo.cs | 2.96875 | 3 | namespace MasterChief.DotNet4.WindowsAPI.Model
{
using System;
using System.Text;
using Core;
/// <summary>
/// 窗口句柄信息
/// </summary>
public sealed class WindowInfo
{
#region Fields
/// <summary>
/// 句柄
/// </summary>
public readonly In... |
4e87739a9e342fd4e3288a9c6e31d7b7468cb315 | C# | juanpablofuentes/CSharp | /TiposGenericos/Interfaces/Interfaces/Regimiento.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Interfaces
{
class Regimiento<T> where T:IGiros
{
List<T> lista = new List<T>();
public void add(T pieza)
{
lista.Add(pieza);
... |
9eedeea254cfed301810fd5fffb4c8f732a0b0d4 | C# | COSTEMaxime/ProjetRecherche | /CovidSimulator/Model/HeightMapNode.cs | 2.890625 | 3 | using System.Drawing;
namespace Model
{
public class HeightMapNode : IPosition
{
public Point Position { get; }
public int ContactCount { get; private set; }
static public int MaxCountatCount { get; set; } = 0;
public HeightMapNode(Point position, int contactCount = 0)
... |
c2c1a6a6125f7aa7262a32957fd5608fb590d6b4 | C# | shevchenkobn/ProjectPractice | /unityApps/FeudalMonopoly/Assets/Scripts/Helpers/Logger.cs | 3.21875 | 3 | using System.IO;
public static class Logger
{
public static void Log(string path, string message)
{
message = message + System.Environment.NewLine;
if (!File.Exists(path))
{
File.Create(path);
}
File.AppendAllText(path, message);
}
}
|
caf35b8c67852fca9ecf49f39183f040c1504104 | C# | ZeroBin-dev/CSharp | /Other/예제소스/cs02/Ex02_17_LogicalOperatorApp/Program.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LogicalOperatorApp
{
class Program
{
static void Main(string[] args)
{
int x = 3, y = 5, z = 7;
bool b;
b = x < y && y < z;
... |
14b8cd0fd4d154b185d630d7d37a566bc9f8f4a0 | C# | jabinb/oyster-smiling | /WorkerServices/PhraseService.cs | 2.734375 | 3 | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using DSharpPlus;
using DSharpPlus.Entities;
using DSharpPlus.Interactivity;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Exten... |
bd44a0879d5b14af1e4945352cf82941ffc3fc66 | C# | iKadmium/OSCforPCL | /test/OSCMessageTester.cs | 2.625 | 3 | using OSCforPCL;
using OSCforPCL.Values;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace test
{
public class OSCMessageTester
{
[InlineData("/address", new object[] { 0, "stuff", 34f, true, null, new byte[] { 3, 5... |
ebdc51e04da4f7656ade27c8f4e64c0bc35ff9be | C# | AhmedSalem2020/Gioia-Api | /GioiaApi/Controllers/PostCommentController.cs | 2.59375 | 3 | using GioiaApi.Models;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace GioiaApi.Controllers
{
public class PostCommentController : ApiController
{
ApplicationDbContext db = new Applic... |
c823ae7dc5f9449ab7411483d1467849fc595727 | C# | duong-nguyen-fi/BachTuoc | /TinhTien/forms/Summary.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using System.Drawing.Printing;
using Microsoft.Reporting.WinForms;
namespace TinhTien
{
public partial class Summary : Form
{
int Num;
double sum... |
1b544397f5ec3b25ac80c79b8c531ce589452c4a | C# | zeha/nwconfig | /Startup.cs | 2.625 | 3 | using System;
using System.Windows.Forms;
namespace Hofstaedtler.Config
{
/// <summary>
/// Zusammenfassung fr Startup.
/// </summary>
public class Startup
{
/// <summary>
/// Der Haupteinstiegspunkt fr die Anwendung.
/// </summary>
[STAThread]
static void Main()
{
try
{
... |
3fa97e778b44d22c20306dbca78be0fa82a25c05 | C# | ShiLeiL/Algorithms-Notes | /Codes/Chapter 1-1/Practice 1-1-32 Formcode.cs | 2.953125 | 3 | using System;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
namespace AlgorithmsApplication
{
public partial class Form1 : Form
{
/* 算法(第四版) 1.1.32 */
//因为是这两天新学的winform,如果出错和遗漏,欢迎大家指正
public Form1()
{
InitializeComponent();
}
... |
5a0329bd7c70d872c275a4a21a48e3c520dfffd0 | C# | phanybien/University | /Study/LapTrinhTrucQuan/Do an/Hoan thanh/Megaman/New/New/Map/Platform.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
namespace New
{
class Platform
{
public Texture2D texture;
public Rectangle rectangle;
publi... |
bb318907d3f3eec5d35acad86311dc2594b7cb2a | C# | 2nnar/G.A.Nest-Web | /nest-service/src/NestService.Api/Models/NestGroup.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace NestService.Api.Models
{
public class NestGroup : NestObject
{
public IEnumerable<NestObject> Objects { get; set; } = Array.Empty<NestObject>();
public override NestObjectPoint MaxPoint
{
get
... |
562da351a7f459ccba08e549f44c4c6de292a0a6 | C# | IanJeannin/project-rpgrid | /Assets/Scripts/Pathfinding.cs | 2.96875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Tilemaps;
public class Pathfinding : MonoBehaviour
{
[SerializeField]
private Tilemap groundTilemap;
//After finding the shortest path, check how much movement it took in GridMovement, and if it takes too muc... |
01774dd5e0daf3b8c6a797c61ad3dcdf14765ef1 | C# | ralfw/presentationfeedback | /src/coapp/coapp.body/Mapper.cs | 2.703125 | 3 |
using Repository.data;
namespace coapp.body
{
using Contract.data;
using data;
using System.Collections.Generic;
using System.Linq;
internal class Mapper
{
internal static ConferenceFeedbackData Map(IEnumerable<ScoredSessionData> sessions)
{
var sessionAsList = sessions as IList<ScoredSessionData> ?? ... |
8d94a61f4fc9344818efce95ad608741850877df | C# | rid00z/Xamarin-Forms-Labs | /src/Xamarin.Forms.Labs/Plugins/DI/Xamarin.Forms.Labs.Services.TinyIOC/TinyContainer.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Xamarin.Forms.Labs.Services.TinyIOC
{
using TinyIoC;
/// <summary>
/// The tiny container wrapper
/// Allows registering a tinyioc container with the IDependencyContainer inte... |
510a84cb61d371668689a7d5aa9145ad53073b63 | C# | CreativeCodersTeam/Core | /source/Net/CreativeCoders.Net.WebApi/Specification/Parameters/ParameterDefinitionBase.cs | 2.625 | 3 | using System;
using System.Reflection;
using JetBrains.Annotations;
namespace CreativeCoders.Net.WebApi.Specification.Parameters;
[PublicAPI]
public abstract class ParameterDefinitionBase<TValue>
{
private readonly Func<object, TValue> _transformValue;
protected ParameterDefinitionBase(ParameterInfo paramet... |
42949ac53c0d67bd510cb3a834b2532d591cc77d | C# | maivantuit/Csharp-learning | /Cop25_Structure/Cop25_Structure/Program.cs | 3.28125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cop25_Structure
{
class Program
{
struct SinhVien
{
public int maSo;
public string hoTen;
public double diemToan;
public... |
c494ae3efc16fe307358df256a7d911ec58413e3 | C# | andreyfedoseev/game-utilities | /Lure of the Temptress/LureDisk.cs | 2.75 | 3 | using System;
using System.IO;
using System.Text;
namespace Vlure
{
class BinaryHelper
{
public static UInt64 read_LE(byte[] data, int ofs, int size)
{
UInt64 res=0;
for (int i = 0; i < size; i++)
res+=(UInt64)(((data[ofs+i])<<(i*8)));
return... |
741a01593304a9ff5819a2dac64a7605d9d4ad82 | C# | rauchcor/projectWorkFHRauch | /Libs/EntityFrameworkDataAccess/Repositories/BaseRepository.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using BusinessLogic.DataAPI;
using BusinessLogic.Models;
namespace EntityFrameworkDataAccess.Repositories
{
public class BaseRepository<TEnti... |
1417733aa35311cbd6edf3455cf1646f8234d653 | C# | GangCS/HomeWork-W4-B | /Assets/Scripts/Collisions/MoveToOtherSide.cs | 2.78125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MoveToOtherSide : MonoBehaviour
{
private float y; // vertical size of the camera
private float maxX; // horizontal size of the camera
// Start is called before the first frame update
void Start()
{
... |
83e9f5fed17c281ae570885b111589228ec40595 | C# | gvhung/BabyShopping | /Source Code/BabyShop.Service/Utility/Utility.cs | 2.765625 | 3 | using System.Text;
using System.Security.Cryptography;
using System.IO;
using System;
namespace BabyShop.Service.Utility
{
public static class Utility
{
//private byte[] IV = new byte[] { 0x12, 0x34, 0x56, 120, 0x90, 0xab, 0xcd, 0xef };
//private byte[] key = new byte[0];
//pub... |
223c20290fe5baf4fe63c4a70caac9bf283022fd | C# | Pondidum/Dockson | /src/Dockson/Storage/ViewStore.cs | 2.6875 | 3 | using System.Collections.Generic;
using System.IO;
using Dockson.Domain;
using Dockson.Infrastructure;
using Newtonsoft.Json;
namespace Dockson.Storage
{
public class ViewStore : IViewStore
{
private static readonly JsonSerializerSettings Settings = new JsonSerializerSettings
{
Formatting = Formatting.Indent... |
f82dee0768113a2d3c4f2226fae387e98fde9514 | C# | itester101/aspnetcore-fundamentals | /WebApplication1/WebApp.Data/InMemoryRestuaurantData.cs | 3.171875 | 3 | using System.Collections.Generic;
using WebApp.Core;
using System.Linq;
namespace WebApp.Data
{
public class InMemoryRestuaurantData : IRestaurantData
{
readonly List<Restaurant> restaurants;
public InMemoryRestuaurantData()
{
restaurants = new List<Restaurant>()
... |
7a6a1740dfa2600ddf3c635d25bf76ffde8e6c9b | C# | Igor-Rashyn/exercises | /BinaryTree/BinaryTree/BinaryTree/TreeWithoutRef.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BinaryTree
{
public class TreeWithoutRef : iTree
{
private TreeWithoutRef left, right, parent;
private int data;
//private Tree node;
private int width;
... |
be0853cf723e582e0e86c24b72a2a1a577dc8864 | C# | gitter-badger/x2clr | /x2/Consts.cs | 2.96875 | 3 | // Copyright (c) 2013-2015 Jae-jun Kang
// See the file LICENSE for details.
using System;
using System.Collections.Generic;
namespace x2
{
/// <summary>
/// Provides the common housekeeping methods for constants.
/// </summary>
public sealed class ConstsInfo<T>
{
private Dictionary<strin... |
3b947509ca14f4bd2878a5f7a8872d1c98cb8cc2 | C# | SotMSteamMods/CauldronMods | /CauldronMods/Controller/Villains/TheMistressOfFate/Cards/WarpedMalusCardController.cs | 2.53125 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Handelabra.Sentinels.Engine.Controller;
using Handelabra.Sentinels.Engine.Model;
namespace Cauldron.TheMistressOfFate
{
public class WarpedMalusCardController : TheMistressOfFateUtilityCardController
{
... |
5cb81095c70bb408c94cb90d9512edfcdfa78d96 | C# | EmiRing/ArtWebshop | /Repositories/OrderRepository.cs | 2.734375 | 3 | using ArtWebshop.Data;
using ArtWebshop.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
namespace ArtWebshop.Repositories
{
public class OrderRepository: IOrderRepository
{
private readonly ShoppingCart _shoppingCa... |
4954f41669b2362efe33f99f34554709200b3d98 | C# | raumfliege/TQVaultAE | /src/TQVaultAE.DAL/LootTableCollection.cs | 2.953125 | 3 | //-----------------------------------------------------------------------
// <copyright file="LootTableCollection.cs" company="None">
// Copyright (c) Brandon Wallace and Jesse Calhoun. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace TQVaultDa... |
117f0aede149a1d0cb0aa573cbee5a2fbba8ef60 | C# | kasikasi/AriasWall | /AriasWall/Controllers/HomeController.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using AriasWall.Models;
namespace AriasWall.Controllers
{
[HandleError]
public class HomeController : Controller
{
private AriasWallDBEntities1 _db = new AriasWallDBEntities1();
publ... |
2079bf4cd5a8d749a998d48fb198459327c80660 | C# | Wraithname/Magistr | /Magistr/Form1.cs | 2.609375 | 3 | using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Windows.Forms;
namespace Magistr
{
public partial class Form1 : Form
{
Point coordinateplace;
Engine runtet;
bool doClick;
public Form1()
{
Initial... |
8a3d04330ae28497ad7b86d08422d6adcd9b45b3 | C# | Rikux3/KH_PS4_Misc-Tools | /GnfHelper/MainWindow.xaml.cs | 2.828125 | 3 | using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.IO;
using System.Runtime.CompilerServices;
using System.Windows;
namespace GnfHelper
{
/// <summary>
/// Interaktionslogik für MainWindow.xaml
/// </summary>
public partial class MainWindow : Window, INotifyP... |
83459d2ee2483c3c6b95858a4e389fa50376bc17 | C# | crwgregory/GoingToTheStars | /Shootin/Shootin/Shootin/VectorPM.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Micro... |
36df0cb4ac7c4c7587959fcd0ed23263953fa04f | C# | 71/Albion | /Albion/Parsers/TimeSpanParser.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
#pragma warning disable 1591
namespace Albion.Parsers
{
[PhraseParser]
public class TimeSpanParser : TypeParser<TimeSpan>
{
public override int Coeff => 100;
public override IEnumerable<string> Examples
{
g... |
4d14924a5505068e1ea000200db6200ae0a4c1bd | C# | huntmj01/CodingSamples | /C#/ProjectEuler/ProjectEuler/Problem 2 Strategy Pattern/Strategies/StrategyHelper.cs | 3.0625 | 3 | using System;
namespace ProjectEuler.Problem_2_Strategy_Pattern
{
public static class StrategyHelper
{
public static int FailIfCheckedAdditionFails(int addend1, int addend2)
{
try
{
return checked(addend1 + addend2);
}
catch (OverflowException)
{
throw new FibonacciOverflowException();
... |
a421a22285bfbc76de4b2332fb05409a5f50ae8d | C# | DAXGRID/DAX.Cson | /DAX.Cson/Internals/CallbackStream.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.IO;
namespace DAX.Cson.Internals
{
class CallbackStream : Stream
{
public class CallbackStreamDataRequest : EventArgs
{
readonly CallbackStream _callbackStream;
internal CallbackStreamDataRequest(CallbackStre... |
f6aacc33aa6e365e2e9a124614112cdb7c819db3 | C# | Lrs121/WindowsDeviceRecoveryTool_components_decompiled | /System.Windows.Forms/System.Windows.Forms/Windows/Forms/DataGridViewTextBoxColumn.cs | 2.625 | 3 | using System;
using System.ComponentModel;
using System.Drawing;
using System.Globalization;
using System.Text;
namespace System.Windows.Forms
{
/// <summary>Hosts a collection of <see cref="T:System.Windows.Forms.DataGridViewTextBoxCell" /> cells.</summary>
// Token: 0x0200020D RID: 525
[ToolboxBitmap(typeof(Data... |
276fec79ac0f80b8a0acf6ddf8b979768f623132 | C# | usmansaleh/Point-of-sale | /Final Year Project/Main.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 System.Data.OleDb;
using MySql.Data.MySqlClient;
namespace Final_Year_Project
{
public partial class Main : Form
{
... |
a0bcca1de4148f42f2af611b64816234591360e0 | C# | Rewll/Kernmodule-prototype | /RapidPrototyping-main/Bomberman/Assets/Scripts/Variables/FloatVariable.cs | 2.828125 | 3 | using UnityEngine;
using UnityEngine.Events;
[CreateAssetMenu(fileName = "FloatVariable", menuName = "Variables/FloatVariable")]
public class FloatVariable : ScriptableObject
{
[SerializeField] private float value;
public float Value {
get => value;
private set {
float oldValue =... |
cde8084ab61e8fb2660acac60c0561c78d2e9d84 | C# | jeserra/TRSF | /sample16/Program.cs | 3.75 | 4 | using System;
using System.Collections.Generic;
namespace sample16
{
class Program
{
static void Main(string[] args)
{
Dictionary<int, string> listado = new Dictionary<int, string>();
listado.Add(7, "Messi");
listado.Add(9, "Luis Suarez");
if( l... |
ee76e9a63ffbacb1eb4ec9b7b8a30783a11a87d2 | C# | devkimchi/ASP.NET-Core-DevOps-Sample | /test/AspNetCoreDevOpsSample.WebApp.Tests/HomeControllerTest.cs | 2.5625 | 3 | using AspNetCoreDevOpsSample.WebApp.Controllers;
using AspNetCoreDevOpsSample.WebApp.Tests.Fixtures;
using FluentAssertions;
using Xunit;
namespace AspNetCoreDevOpsSample.WebApp.Tests
{
/// <summary>
/// This represents the test entity for the <see cref="HomeController"/> class.
/// </summary>
publi... |
a013c81b744a4b5e1116fb2e81f6e9c9ab349c55 | C# | shendongnian/download4 | /code7/1317720-35470461-111185085-2.cs | 2.734375 | 3 | namespace Test
{
public class Settings : ObservableSettings
{
private static Settings settings = new Settings();
public static Settings Default
{
get { return settings; }
}
public Settings()
: base(Applic... |
2ba17ff8e1c0015e38db02f258bdef45c7ebe0b0 | C# | Adasphere/aer-enigma | /AER.Enigma.Core.Tests/CoreExtensionsTests.cs | 2.625 | 3 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="CoreExtensionsTests.cs" company="Adasphere Incorporated">
// Copyright (c) 2018 Adasphere Incorporated. All rights reserved.
// </copyright>
// <summary>
// Represents a set ... |
368cdd0916840718c4b62e3c555cbbb36abc3a30 | C# | Ring-r/opt | /temp/Шамушкина/Многоугольник/ConvexPoligons.cs | 3.21875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Многоугольник
{
class ConvexPoligons:Triangulation
{
List<List<double[]>> Triangles;
List<double[]> ListPoints;
public ConvexPoligons() { ;}
public ConvexPoligons(List<List<double[... |
fe9171dbd7e5b1aae7ed57e21e09a5b78fdcae45 | C# | Maillein/CSharpNovel2 | /CSharpNovel2/GameSystem/SystemMain.cs | 2.578125 | 3 | using System.Threading.Tasks;
using CSharpNovel2.Components;
using SDL2;
namespace CSharpNovel2.GameSystem
{
public static class SystemMain
{
public static bool Initialize() { return GameCore.Initialize(); }
public static void FinalizeGame() { GameCore.FinalizeGame(); }
public static... |
d817a9616c6774dc4c3b1f42f529000afdd4e6b7 | C# | Dream2Sky/IC | /IC.Core.Utility/Extensions/ExtensionUtil.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using Microsoft.AspNetCore.Mvc.Filters;
namespace IC.Core.Utility.Extensions
{
public static class ExtensionUtil
{
public static string GetDescription(this Enum @enum)
{
var name = @enum... |
b8e7048fd331691fb4a6df37543584d387ccbc4f | C# | Agatolies/POO | /POO.ExSupplementaire/Prestation.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace POO.ExSupplementaire
{
public class Prestation
{
//-- STATIQUES (relatif à mon usine)
//-- Propriétés statiques
public static int ProchainNumero { get; set; }
public static decimal PrixDefautPar15Minu... |
1b5462ef4fc8a731966df9fd0f3cd216af4a6d34 | C# | seuribe/Logik | /src/logik/core/Value.cs | 3.421875 | 3 | namespace Logik.Core {
public struct Value {
private readonly string data;
private Value(string data) {
this.data = data;
}
public float AsFloat { get => (data == null) ? 0f : float.Parse(data); }
public int AsInt { get => (data == null) ? 0 : int.Parse(data);... |
3d6bdd8079ff2d77122c2e490e432babcde806f1 | C# | thesecondzorg/Marching-Cubes-Terrain | /Assets/Examples/Scripts/TerrainSettings.cs | 2.765625 | 3 | using System;
using UnityEngine;
namespace MarchingCubes.Examples
{
[System.Serializable]
public struct TerrainSettings : IEquatable<TerrainSettings>
{
[SerializeField] private float noiseFrequency;
[SerializeField] private int noiseOctaveCount;
[SerializeField] private float amplit... |
db1be63b30f76effb889db2761a9b960ec96b01a | C# | RaedJarrar/Chess | /Chess.Domain/Moves/MoveKind.cs | 2.546875 | 3 | // <copyright file="MoveKind.cs" company="RJ">
// Copyright (c) RJ. All rights reserved.
// </copyright>
namespace Chess.Domain
{
/// <summary>
/// Enumerates different move kinds.
/// </summary>
public enum MoveKind
{
/// <summary>
/// Move.
/// </summary>
Move,
... |
4bf8da510e83128ec1f87c987e30fd27a257a9e3 | C# | dsisco11/CssUI | /CssUI/HTML/Data Requests/Base/DataRequest.cs | 2.90625 | 3 | using CssUI.DOM.Enums;
using System.IO;
using System.Threading;
namespace CssUI.HTML
{
/// <summary>
/// Represents a request for data of some sort, it could be from a local file or from the web.
/// </summary>
public abstract class DataRequest
{/* Docs: https://html.spec.whatwg.org/multipage/imag... |
91b63f78bed478021a4bbefad4d59011a96e69aa | C# | wlljwxy/BehaviourTree | /Composite/ParallelNode.cs | 2.625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace BehaviourTree
{
public class ParallelNode : NodeComposite
{
public static string descript = "并行节点同时执行所有节点,直到一个节点返回Fail" +
"或者全部节点都返回Success才向父节点返回Faill或者Success,并终止执行其他节点" +
"其他情况返回Running"... |
eb39e8393d81876fb33a46f2683f104fbb77e00e | C# | matsurigoto/mvc-base-project | /Core/Utility/ReflectionHelper.cs | 3.109375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace Core.Utility
{
/// <summary>
/// Reflection相關的Helper方法
/// </summary>
public static class ReflectionHelper
{
/// <summary>
/// 取得某一... |
414c2b1b2ecedcfc1dedc65ebf203fd189564c83 | C# | pelsinkaplan/AsalSayilar | /AsalSayilar/Program.cs | 3.171875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AsalSayilar
{
class Program
{
static void Main(string[] args)
{
int kacAsalSayiVar = 0;
for (int sayi = 2; sayi < 10000; sayi++)
{
... |
fd7dc3bf0b46ab80c1a3dfa01d3d7cc037fb6712 | C# | AMSCarbon/Chess-speed-run | /Assets/Scripts/Model/MovementBehaviour.cs | 2.6875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "Movement", menuName = "Movement Type" )]
public class MovementBehaviour : ScriptableObject
{
public virtual List<TileData> DetermineValidTiles(PieceData data, BoardModel state) { return null; }
//utili... |
f3f25b7e8259903794d83b17dafe79a4ced61f79 | C# | yut23/AdvancedControlsMod | /AdvancedControlsMod/Blocks/Steering.cs | 2.546875 | 3 | using System;
using System.Reflection;
using UnityEngine;
namespace Lench.AdvancedControls.Blocks
{
/// <summary>
/// Handler for steering blocks; Steering and Steering Hinge.
/// </summary>
public class Steering : BlockHandler
{
private static FieldInfo angleyToBeField = typeof(SteeringWh... |
95f6eaf204322ae7e1a43a07d3d81a9a95798dc4 | C# | kevinpatton2015/HitThePrice | /BlockChain.aspx.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class BlockChain : System.Web.UI.Page
{
public string userId;
public int price;
public static int... |
2dcc00e0abf9919396ebddc30f8ef69b8afb23d5 | C# | giangnamnam/seemapcell | /Linq2SqlGeography/Geography/Geography/Conversion/ConversionDD2DMS.cs | 3.171875 | 3 | ///-----------------------------------
///作者: xgluxv@hotmail.com
///日期: 2010-8-12
///-----------------------------------
namespace Geography.CoordinateSystem
{
using System;
/// <summary>
/// 将经纬度转换成DMS坐标系的类
/// </summary>
public class ConversionDD2DMS:IConversion<DD,DMS>
{
... |
8dbbb9d1572740e0330af794b7fa2806bc80e6da | C# | deliveringsoftware/remote-mission-control | /App/Core/Support/Converters/StatusToColorConverter.cs | 2.59375 | 3 | using AzureDevops.Client.Services.Builds.Models;
using System;
using System.Collections.Generic;
using System.Globalization;
using Xamarin.Forms;
namespace AzureDevops.Support.Converters
{
public class StatusToColorConverter : IValueConverter
{
public object Convert(object value, Type targetType, obje... |
cf26068948b0d347f7b867d15be80d5bc1dc5fae | C# | DevelopmentSpace/TDP-TP5-2016-Grupo8 | /EJ8/PantallaListar.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;
namespace EJ8
{
public partial class PantallaListar : Form
{
public PantallaListar()
... |
614959859c0095f60d548f0ab824fece1dd1efb6 | C# | Jamiras/RATools | /Tests/Parser/Expressions/VariableExpressionTests.cs | 2.53125 | 3 | using NUnit.Framework;
using RATools.Parser.Expressions;
using RATools.Parser.Internal;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RATools.Tests.Parser.Expressions
{
[TestFixture]
class VariableExpressionTests
{
[Test]
public void TestAppendString()
... |
370f0b49d5102b392c1d0620eb2456ba9d3773ff | C# | gorova2006/Five_Philosophers | /Synchronizators/CustomLocker.cs | 2.859375 | 3 | using System.Threading;
namespace Five_Philosopher.Synchronizators
{
public struct CustomLocker
{
private int resourceInUse;
public void Lock()
{
while (true)
{
if (Interlocked.Exchange(ref resourceInUse, 1) == 0) return;
}
}
public void Release()
{
Volatile.Write(ref resourceInUse, 0)... |
1007b4f234f780b7a107396ece18218f42c4026e | C# | drooks/WMPlayer.Web | /WMPlayer.Web/Extensions/Serializer.cs | 2.828125 | 3 | using System.IO;
using System.ServiceModel.Dispatcher;
using System.Text;
using System.Xml.Serialization;
namespace WMPlayer.Web.Extensions
{
public class Serializer
{
//---------------------------------
// XML Methods
//---------------------------------
#region public static ... |
1a7376d8b0353c60230e3774be1ade672d471e45 | C# | davidmerkt/SamsTYCS2008 | /Hour03/CollectionsExample/CollectionsExample/CollectionsExampleForm.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace CollectionsExample
{
public partial class CollectionsExampleForm : Form
{
public CollectionsExampleForm()
{
... |
2d40e2bfaec51a09496b3804acb737c330974fc7 | C# | superjustin5000/Building-Brain-Version-4 | /Code/BB4/Assets/Scripts/Tasks/TaskStart.cs | 2.609375 | 3 | using UnityEngine;
using System.Collections;
public class TaskStart : MonoBehaviour {
void Awake() {
}
// Use this for initialization
void Start () {
SimulationManager.sharedSimManager.TimeTracker.onOneSecondPassed += OneSecond;
}
void OneSecond(float time) {
float realTime = time - SimulationMan... |
eb65eae347ffb3a23d9134b7d0947f5da3297b13 | C# | CMalone9008/Lab1a | /main.cs | 3.5625 | 4 | using System;
class MainClass {
public static void Main (string[] args) {
Console.Write("Enter a number:");
int num1 = Convert.ToInt32(Console.ReadLine());
Console.Write("Enter another number:");
int num2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Sum = " + (num1 + num2
));
... |
f27854be3e4c5f9a3867f07cb82843f418a6e233 | C# | grothem/Auction-Manager | /Angular/Context/DbInitializer.cs | 3 | 3 | using Angular.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Angular.Context
{
public class DbInitializer
{
public static void Initialize(AuctionContext context)
{
context.Database.EnsureCreated();
if ... |
598bd50f84770858e5ba9fc595161fce5de0bfc3 | C# | pappensdieter/VivesRental | /VivesRental.Repository/Core/UnitOfWork.cs | 2.515625 | 3 | using System.Threading.Tasks;
using VivesRental.Repository.Contracts;
namespace VivesRental.Repository.Core
{
public class UnitOfWork : IUnitOfWork
{
private readonly VivesRentalDbContext _context;
public UnitOfWork()
{
_context = new VivesRentalDbContext();
It... |
3d2852e83d250c100a0ccfaab5ff3b680a6a72e0 | C# | gitcseme/DevSkill-Solutions | /DCP_14.cs | 3.296875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DevSkill_Problems
{
class DCP_14
{
static void Main()
{
int t = int.Parse(Console.ReadLine());
double a, b, c, ad;
while (t-- > 0)
... |
2d4cfe060c3eed21f66d8f6aa288cc7d42f08931 | C# | prefrontalcortex/UnityGLTF | /GLTFSerialization/GLTFSerializationCLI/Program.cs | 2.765625 | 3 | using System;
using System.IO;
using GLTF;
using GLTF.Schema;
namespace GLTFSerializationCLI
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("GLTFSerialization CLI");
if(args.Length == 0)
{
Console.WriteLine("Usage:");
Console.WriteLine(" GLTFSerializationCLI [gltf_file]... |
d0788f8b6272325cdc4ef7b028015d534fe321c5 | C# | mehmetunal/ScoopFramework | /ScoopFrameworkBase/ScoopFramework.FileStream/File/FileStreamAccess.cs | 2.671875 | 3 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="FileStreamAccess.cs" company="">
//
// </copyright>
// <summary>
// The file stream access.
// </summary>
// -----------------------------------------------------------------... |
91fe5885948de635aac1eafdf276bfdd897df2f5 | C# | AIE-team/WorkingWithFiles | /WorkingWithFiles/FileManger.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace WorkingWithFiles
{
static class FileManger
{
static string path = @"C:\Users\Admin\Documents\AIE\SoftwareDevelopmentFundamentals\code\WorkingWithFiles\Users.... |
25a46436eba9fb9af2e8b6d8f975176f6de4a7a1 | C# | paytonrules/CubicleWarsLibrary | /Unit.cs | 2.53125 | 3 | using System;
namespace CubicleWarsLibrary
{
public delegate void WaitingEvent();
public delegate void DoneWaitingEvent();
public delegate void AttackedEvent();
public delegate void DeathEvent();
public interface Unit
{
void AttackWith(Unit enemy);
bool Alive();
int AttackStrengthAgainst(Unit enemy);
st... |
d73fec171445d5ee697d1dae9860ec97855e0419 | C# | dotnet/winforms | /src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/StringArrayEditor.cs | 2.65625 | 3 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#nullable disable
namespace System.Windows.Forms.Design;
/// <summary>
/// A collection editor that is specifically designed to edit arrays containing strings.
/// </summary>
int... |
34893b29bb3023a45b49b3961e118a3f28a6681b | C# | HoustonNguyen/RecursivelyDeleteEmptyFolders | /Program.cs | 3.828125 | 4 | using System;
using System.IO;
/// <summary>
/// This will look through each subdirectory, in a given directory, and delete any empty folder. It leaves files alone.
/// </summary>
namespace RecursivelyDeleteEmptyFolders
{
class Program
{
static void Main(string[] args)
{
string pat... |
59290026d7fa2c4a20a76d895111d20e11de6a13 | C# | oritzadok/AP2_ex1 | /ex1/MissionContainer.cs | 3.609375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Delegates;
namespace Excercise_1 {
//this class contains an indexer that receives name of a function and returns an appropriate action f:R->R
public class FunctionsContainer {
private... |
fd7163ce4ec3d006935dbacf66cb0d47f9c52066 | C# | lhazoume/SeaDog | /SeaDog/Board.cs | 3.296875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace SeaDog
{
public class Board
{
#region Variables
private readonly int _rows, _columns;
private readonly List<Location> _fish;
private readonly List<Boat> _boats;
#endregion
public Board... |
0312ea733b05710db27a6848fa0ed0b5a659f31e | C# | bisecom/BeSmarterApp | /OperatingRepo/Question.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace OperatingRepo
{
[Serializable]
public class Question
{
public string Subject { get; set; }
public string QuestionDescr { get; set; }
public List<st... |
4b639445375347c31bea478761217d1439307ed2 | C# | shendongnian/download4 | /code3/544058-12617505-29734336-2.cs | 2.71875 | 3 | IList<Days> list = new List<Days>();
if (list is IList<Days>)
{
Console.WriteLine("list has days");
}
|
d0c35b8797bd93238a9b7480434a2e928f1e1c09 | C# | decadestory/Configer | /Configer/Configer.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Configer
{
public class Configer
{
internal static string dbConnName;
internal static ConfigManage confm= new ConfigManage();
public static void Init(string dbC... |
b56e8d6ad1516d2a51a2f850d7d33373d9c63a0e | C# | Vigien/CardGame | /Assets/Scripts/Card/Persona.cs | 2.609375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Persona : Card{
private Spell freeCard;
private Manager.Arcana arcana;
private int HP, HPLeft, ATK;
private List<Manager.Types> weakness;
public Persona()
{
CardName = "Test";
freeCar... |