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 |
|---|---|---|---|---|---|---|
3ed0ecfe354969a6b3e2c6be695727d29b1c9cd7 | C# | RocketNine/ATP_starter | /csharp/spaceport/Spaceport/LaunchOrderListingTest.cs | 2.546875 | 3 | using NUnit.Framework;
namespace SpacePort
{
[TestFixture]
public class LaunchOrderListingTest
{
//TODO - Use the Stub Recipe to test that launches are sorted correctly
[Test]
public void LaunchesAreSortedByDestination_DestinationsAreUnique()
{
// Step ... |
05a8edb54f5360e881fea04620be246a394de855 | C# | wsv-accidis/sjoslaget | /WebServicesShared/Auth/AecUserManager.cs | 2.515625 | 3 | using System;
using System.Threading.Tasks;
using Accidis.WebServices.Models;
using Microsoft.AspNet.Identity;
namespace Accidis.WebServices.Auth
{
public class AecUserManager : UserManager<AecUser, Guid>
{
public AecUserManager() : base(new AecUserStore())
{
}
public new AecUserStore Store => (AecUserStor... |
a5f84c626c641255b735522492077fd69d85843f | C# | syedshean/CalculatorWithWindowsWebForm | /Assignment_2/Form1.cs | 2.921875 | 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 Assignment_2
{
public partial class Form1 : Form
{
private bool equalButtonPr... |
3f8d8133af1d8a26dc5652f7bc1c220d76f80d94 | C# | AlexanderNovakovic/CSharpTasks | /Task2_5UnitTests/Task2_5Tests.cs | 2.90625 | 3 | using System.Collections.Generic;
using Xunit;
using Task2_5;
using static System.Math;
namespace Task2_5UnitTests
{
public class Task2_5Tests
{
[Theory]
[MemberData(nameof(SolveTestsParams))]
public void SolveEquationTest(Equation equation, double[] expected)
{
dou... |
853e2acc674ade641ae57ae08522bcda616e9628 | C# | 8561549/Arithmetic2.0 | /Arithmetic2.0/Arithmetic2.0/Form1.cs | 2.828125 | 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 Arithmetic2._0
{
public partial class Form1 : Form
{
public Form1()
{
... |
e30ad972132fc05b62025b5b232e1ef25b2c633d | C# | gerocs96/starwars | /oenik_prog4_2020_1_a8rp05/RogueOne/RogueOne/MainWindow.xaml.cs | 2.6875 | 3 | // <copyright file="MainWindow.xaml.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace RogueOne
{
using System.Windows;
using GameModel;
using GameRepository;
using RogueOne.ViewModels;
/// <summary>
/// Interaction logic for ... |
bff4cf52199810cb5cac26af714c84cde7745d97 | C# | coverinis/Sara_VR | /ECE_Text_Analyzer/ECE_Text_Analyzer/MyCouchAL.cs | 2.9375 | 3 | /*
* File : MyCouchAL.cs
* Project : Capstone - ECE_Text_Analyzer
* Programmer : Gurkirt Singh
* Date : 2019-04-07
* Desc : This file holds the class that is an Database Access Layer for other classes
*/
using System;
using System.Collections.ObjectModel;
using System.Thre... |
59a47315d2335c0ba52ba6b4fd8d1cc765717598 | C# | TThorpe1/dotNETBootcamp_July2018 | /TestFileIOJuly2018/TestFileIOJuly2018/Program.cs | 3.546875 | 4 | using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Collections.Generic;
namespace TestFileIOJuly2018
{
class Program
{
static void Main(string[] args)
{
// write to a file
StreamWriter wr = new StreamWriter("... |
63fa91ddf6d6edf6ba5e0a8a92f19217e5c7d50d | C# | linq2db/linq2db | /Source/LinqToDB/DataProvider/DB2/DB2MappingSchema.cs | 2.578125 | 3 | using System;
using System.Data.Linq;
using System.Globalization;
using System.Text;
namespace LinqToDB.DataProvider.DB2
{
using Common;
using Mapping;
using SqlQuery;
sealed class DB2MappingSchema : LockedMappingSchema
{
#if NET6_0_OR_GREATER
private const string DATE_FORMAT = "{0:yyyy-MM-dd}";
#endif
... |
eb47ebfe5ddde34813deea1d76eb62993da0d503 | C# | likeye/ItEventsParser | /EventLibrary/Services/EventsParser.cs | 2.875 | 3 | using System.Collections.Generic;
using EventLibrary.EventClasses;
using EventLibrary.Interfaces;
using EventLibrary.Model;
using HtmlAgilityPack;
namespace EventLibrary.Services
{
public class EventsParser : IParse
{
private readonly List<Event> _eventsList = new List<Event>();
public IEnume... |
8e1137ca5f2cf2e13de2b397c0d2682e4037e61c | C# | Lobo88/Unity-Subclass-Sandbox-pattern | /SuperPower.cs | 2.65625 | 3 | using UnityEngine;
using System.Collections;
using System;
namespace SubclassSandbox
{
public abstract class SuperPower
{
public string name { get; set; }
public abstract void Activate();
protected void nameOfPower(string name)
{
... |
03b3f0ec426f699169024822005b0f306d760531 | C# | iAmDorra/GameOfLife | /CSharp/GameOfLife.Tests/GridManagerTest.cs | 3.109375 | 3 | using NFluent;
using Xunit;
namespace GameOfLife.Tests
{
public class UnitTest1
{
[Fact]
public void Should_not_change_cells_if_all_cells_are_dead()
{
GridManager gridManager = new GridManager();
var grid = new Cell[1, 1];
var newGrid = gridManager.Ge... |
7abf7724b00196a75862fb70758f48b2959719c8 | C# | eto4detak/Kingdom | /Assets/Scripts/Game/FormationsManager.cs | 2.515625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FormationsManager : Singleton<FormationsManager>
{
private List<Formation> allFormations = new List<Formation>();
protected void FixedUpdate()
{
CheckFormations();
}
public void DieUnit(Unit dead)
... |
f45fd913df0c7b200612b2af0e5bb88a6e80db97 | C# | norleaf/Nemesis | /Project/NemesisMonoUI/NemesisConsole.cs | 2.859375 | 3 | using MonoGameLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
namespace NemesisMonoUI
{
public class NemesisConsole
{
public Rectangle rectangle;
publ... |
6ef3d495cf99959d8d7598d9bd9b4e3487c672c9 | C# | lucasbrendel/bitnetly | /Bitnetly/BitNetlyService.cs | 2.6875 | 3 | using RestSharp;
using System;
using System.Web;
using RestSharp.Authenticators;
namespace BitNetly
{
public class BitNetlyService
{
private string accessToken;
private string clientID;
private string clientSecret;
public enum LoginRoute
{
Basic,
... |
bcdaf5af791c238ee277fd2121a98342ece06449 | C# | TeamControlium/Controlium.net | /Controlium.net/Source/SeleniumDriver/ObjectMappingDetails.cs | 2.84375 | 3 | using OpenQA.Selenium;
using System;
using System.Collections.Generic;
using TeamControlium.Utilities;
namespace TeamControlium.Controlium
{
public class ObjectMappingDetails
{
public enum ByType { Id, Class, Css, LinkText, Name, Partial, Tag, XPath, Unknown };
/// <summary>
/// Find ... |
74c2a77a9452737d4ace2d2492c2dd64ec62bfb8 | C# | moserarthur/Exercises | /ManipulandoTextos/Program.cs | 3.703125 | 4 | using System;
namespace ManipulandoTextos
{
class Program
{
static void Main(string[] args)
{
//utilizando replace
string textoAntigo = "esse texto é um texto antigo";
string textoNovo = textoAntigo.Replace("antigo","novo");
Console.WriteLine(te... |
d0bca1c4a9a66a29f506bf0a637d3f6dc956c1e6 | C# | PedroHumberto/Inheritance | /Herança/Program.cs | 2.96875 | 3 | using System;
using Herança.Entities;
namespace Herança
{
class Program
{
static void Main(string[] args)
{
Account acc = new Account(1001, "Alex", 100.0);
Account acc2 = new SavingsAccount(1002, "Jorge", 100.0, 0.01); //UPCASTING
acc.WithDraw(10);
... |
8435dd286cfb28c567637ccab52921f163ebe26a | C# | SeanMaclochlainn/UFC-Picks-Analysis | /Domain/FightData.Domain.Test/TestNameParser.cs | 2.890625 | 3 | using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace FightData.Domain.Test
{
[TestClass]
public class TestNameParser
{
[TestMethod]
public void TestParseChampionName()
{
string name = "José Aldo(c)";
NameParser nameParser = new NameParser(name);
... |
3e176575195f25d6b0cb76b7a14fe021d44e8ec8 | C# | squahtx/Routecraft | /Routecraft/Minecraft/Storage/NBTTag.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace Routecraft.Minecraft.Storage
{
public class NBTTag
{
public delegate void NameChangedHandler(NBTTag Tag, string NewName);
public event NameChangedHandler NameChanged;
... |
37daa676405ae3d06c5dd21a3ea950e85e3711d1 | C# | Kyoto-Engineering/BoardSecretariatSystem | /BoardSecretariatSystem/UI/BoardCreation.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using BoardSecretariatSystem.DBGateway;
namespace BoardSecretariatSystem.UI... |
ae1eb360e7a62336c2bc04179db28257b0e0ff4c | C# | cihatcni/Cover-The-Earth | /Assets/Scripts/EarthScript.cs | 2.578125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EarthScript : MonoBehaviour {
public GameObject soilCube;
public GameObject seaCube;
public GameObject kernelCube;
public GameObject star;
public int yaricap;
public float rotSpeed = 20;
bool drag ... |
3a270f5fb08accce2f6cf987ca356b3129fee214 | C# | jurajorlicky/OpenLab-02.6 | /OpenLab 02.6/Program.cs | 3.359375 | 3 | using System;
namespace OpenLab_02._6
{
class Program
{
public static bool delitelne(int x)
{
if (x % 100 == 0)
{
return true;
}
else
{
return false;
}
}
static void Main(str... |
3220b29c67421b178e764d573b2759dded5e0949 | C# | ryanstuckey0/legend-of-zelda | /LegendOfZelda/Enemies/OldMan.cs | 2.703125 | 3 | using LegendOfZelda.Enemies.Sprite;
using LegendOfZelda.Interface;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace LegendOfZelda.Enemies
{
internal class OldMan : INpc
{
private readonly ISprite sprite;
private readonly SpawnSprite spawnSprite;
private ... |
56459837972e0afa58dd458aa82153c8a447ced0 | C# | KamenYu/Csharp-Advanced | /CSharp OOP/SOLID_Exercise/Logger/Models/Logg.cs | 2.8125 | 3 | using System.Collections.Generic;
using Logger.Models.Contracts;
namespace Logger.Models
{
public class Logg : ILogger
{
private readonly ICollection<IAppender> appenders;
public Logg(ICollection<IAppender> appenders)
{
this.appenders = appenders;
}
publi... |
d7c46d04ce2d23229d5bca72487e4b00ffe260cf | C# | Lenarqa/Cocomo1 | /COCOMO/PoluNezMetod.cs | 2.6875 | 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 COCOMO
{
public partial class PoluNezMetod : Form
{
public PoluNezMetod()
... |
30c91c0ce84f11cd4229c87606a4a0bc65076fcb | C# | jeffvella/Deform | /Code/Runtime/Data/NativeCurve.cs | 2.734375 | 3 | using System;
using UnityEngine;
using Unity.Collections;
using static Unity.Mathematics.math;
using Beans.Unity.Mathematics;
namespace Beans.Unity.Collections
{
/// <summary>
/// Handles the caching of animation curve data for use with the job system.
/// </summary>
public struct NativeCurve : IDisposable
{
/... |
2b8c28e586e8b7fc66b98fc9b1b89699f71d03fa | C# | apetrut/structurizer | /src/projects/Structurizer/StructureSchemaFactory.cs | 2.5625 | 3 | using EnsureThat;
using Structurizer.Schemas;
namespace Structurizer
{
public class StructureSchemaFactory : IStructureSchemaFactory
{
protected IDataTypeConverter DataTypeConverter { get; }
public StructureSchemaFactory(IDataTypeConverter dataTypeConverter = null)
{
DataT... |
7d19eef29a46073fa302e8204537f3197b80c9d9 | C# | plzm/azure-cognitive | /Libraries/face.console.demo/Program.cs | 2.65625 | 3 | using System;
using System.IO;
using System.Threading.Tasks;
namespace face.demoapp
{
class Program
{
static async Task Main(string[] args)
{
string apiUrl = "https://eastus.api.cognitive.microsoft.com/face/v1.0/detect";
string apiKey = "";
Demo demo = new Demo(apiUrl, apiKey);
Cons... |
a65c20f60bdc8c98dfa1a55464ef90f2d16a460a | C# | dotnet/pinvoke | /src/User32/User32+CURSORINFO.cs | 2.546875 | 3 | // Copyright © .NET Foundation and Contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace PInvoke
{
using System;
using System.Runtime.InteropServices;
/// <content>
/// Contains the <see cref="CURSORINFO"/> ne... |
f52a9d54a9bf3893d7d92cf5833d31dccff9be08 | C# | GustavoRosauro/hackathonhealth | /App11/App11/IProdutos.cs | 2.96875 | 3 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace App11
{
public class IProdutos
{
HttpClient client = new HttpClient();
public async Task<List<Produto>> GetProdutosAsync()
{
... |
23f021a582a4e4082c33509645b5bb10b2e2b67b | C# | gisinka/TSP | /TSP/Tests/TSPTests.cs | 2.78125 | 3 | using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using TSP.Core;
namespace TSP.Tests
{
[TestFixture]
internal static class TSPTests
{
private static readonly Dictionary<string, int[,]> MatricesStorage = new Dictionary<string, int[,]>
{
{
... |
01fdab57298d7a1e84371e1483e12569cdb2dd96 | C# | exqzmepls/TradingBaseInfSystem | /DbConnection/EntityProperty.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DbConnection
{
public enum PropertySpecimen
{
STRING,
FOREIGN_KEY,
QUANTITATIVE
}
public class EntityProperty
{
public PropertySpecimen Spe... |
eafa2f75786a56505e68a74aaff41c7542b96cab | C# | SyrnikovEK/csharp | /homework3/homework3/Task2.cs | 3.34375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace homework3
{
public class Task2
{
public void DoSomething()
{
Player player = new Player();
player.Play();
(player as IPlayable).Paus... |
937cd5e01046c89b7afe609a982914c349a9c793 | C# | andrii-p/Program6ClassSolutions-My | /Week1Review/Week1Review/Program.cs | 3.546875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Week1Review
{
class Program
{
static void Main(string[] args)
{
SpaceRemover("a dog is a great pet");
// a build in space remover
s... |
d31cb2f003a1e20d83a85f22a0de87c0e35e179a | C# | brooklynbressler/techElevator | /module-1/06_Introduction_Objects_Strings/exercise-student/dotnet/Exercises/07_FirstHalf.cs | 4.03125 | 4 | namespace Exercises
{
public partial class StringExercises
{
/*
Given a string of even length, return the first half. So the string "WooHoo" yields "Woo".
FirstHalf("WooHoo") → "Woo"
FirstHalf("HelloThere") → "Hello"
FirstHalf("abcdef") → "abc"
*/
public ... |
20726f86f070fb43f263cc146432e32403109a95 | C# | alphacheng/IvyFEM | /src/IvyFEM/IvyFEM/LineFE1stInterpolate.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IvyFEM
{
public class LineFE1stInterpolate : IInterpolate
{
public LineFE Owner { get; set; }
public LineFE1stInterpolate()
{
}
public LineF... |
2d6df9177c8679ca595300c6c767f34a7481c8ae | C# | dangngoctau/taudangblog-spa-angular2-webapi-sts | /ambition-backend/Ambition.Product/Services/ProductService.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Data.Entity;
using System.Threading.Tasks;
using Ambition.Framework.EntityFramework;
using Ambition.Framework.Exceptions;
using Ambition.Product.Models;
using Ambition.Product.ViewModels;
namespace Ambition.Product.Serv... |
f6905e558ba0fbfbedd38ba9ae913c501ac32c9b | C# | AleksandarMironov/TelerikHomeworks | /C# part 2 (Advanced)/01ArraysHomework/07SelectionSort/SelectionSort.cs | 3.5 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _07SelectionSort
{
class SelectionSort
{
static void Main()
{
int n = int.Parse(Console.ReadLine());
double[] mass = new double[n];
... |
8ab11152e808a67b4d285166d2f75eec0809f34f | C# | malt2586/repos | /S2_Rutinering/w3resources_Recursion/Program.cs | 3.90625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace w3resources_Recursion
{
class Program
{
static void Main(string[] args)
{
////Excersise 1
//int n = 1;
//NaturalNumbers(n);
... |
552a0e378a9f87885a36032078dd593b0332bacb | C# | MelvinDeve/Pc_PartPicker | /Pc_PartPicker/Database.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SQLite;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pc_PartPicker
{
class Database
{
public static SQLiteConnection CreateConnection()
{
SQLiteConnection... |
35a3998d7a6260337fd24dfe278e9746e5a5fd7f | C# | qquser/Project1 | /Project1.Client/Workshop.cs | 2.828125 | 3 | using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Project1.Client
{
internal class Workshop : StandardEntity
{
private readonly string _name;
private readonly Guid _id;
private readonly Guid _c... |
fcbd219f6c501a4379659128ae49fb5d18f5c82d | C# | miratyrrell/GradeBook | /src/GradeBook/Program.cs | 3.84375 | 4 | using System;
namespace GradeBook
{
class Program
{
static void Main(string[] args)
{
var gradeBook = new Book("Scott's Grade Book");
var gradeBook2 = new Book("Mary's Grade Book");
var gradeBook3 = new Book("Jack's Grade Book");
Console.Writ... |
99066c2f1986f3c10f809b1d78a5ceadf4e75f0e | C# | HeikkiDev/EjemplosExchangeWebServices | /EnvioCorreoEnBucle/EnvioCorreoEnBucle/Program.cs | 2.84375 | 3 | using Microsoft.Exchange.WebServices.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace EnvioCorreoEnBucle
{
class Program
{
static string ExceptionMessage { get; set; }
static void Main(s... |
d1072f3ecd2ccb59d25f7d46ff7bbab8deadb18d | C# | naveenkrsh/TameOfThrones | /Test/Sources/BallotMessageTest.cs | 2.515625 | 3 | using Core.Sources;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Test.Sources
{
[TestClass]
public class BallotMessageTest
{
BallotMessage ballotMessage;
Kingdom sender;
public BallotMessageTest()
{
sender = new Kingdom("LAND", "Panda");
... |
c694a2350c11227576eba6a2be3166c197820197 | C# | Cloet/SimpleSockets | /Tests/Test.Sockets.Basic/Utils/EventMonitor.cs | 2.65625 | 3 | using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
// Source: https://jqno.nl/post/2013/07/28/testing-events-in-c-sharp/
namespace Test.Sockets.Utils
{
public enum Mode
{
MANUAL,
AUTOMATIC
}
public clas... |
85e62881b1422f28a7705226bc8da1215f3c8047 | C# | mcci0097/labNuMaiStiuCare | /lab2_restapi_1205_taskmgmt/Models/TaskDbSeeder.cs | 2.765625 | 3 | using System;
using System.Linq;
namespace lab2_restapi_1205_taskmgmt.Models
{
public static class TaskDbSeeder
{
public static void Initialize(TasksDbContext context)
{
context.Database.EnsureCreated();
// Look for any tasks.
if (context.Tasks.Any())
... |
ad637b79fc43480fafb71de27208db93753ebba8 | C# | DumDumin/TymelineASP | /src/Tymeline.API/Daos/DataRolesDao.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using MySql.Data.MySqlClient;
public class DataRolesDao : IDataRolesDao
{
private MySqlConnection sqlConnection { get; set; }
private IAuthDao _authDao;
private ITymelineObjectDao _tymelineObjectDao;
public DataRole... |
57bca7565add3a9d1a77bf767d2e9d1341c43816 | C# | lulzzz/ElecFlow | /src/ElecFlow/Layers/MatMul.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Numerics;
using System.Text;
namespace ElecFlow.Layers
{
public class MatMul : Layer
{
public InputConnector<double> A { get; }
public InputConnector<double> B { get; }
public OutputConnector<double> Y { get; }
pub... |
6d3ac6f7332e3f0109b9c366b1a14f445f20b2d4 | C# | abhishek4official/ThreadBasedJobQueue | /ThreadBasedJobQueue/Program.cs | 3.09375 | 3 | using System;
using System.Threading;
using System.Threading.Tasks;
using abhi.TaskQueueLib;
namespace ThreadBasedJobQueue
{
class Program
{
static void Main(string[] args)
{
IThreadJobQueue obj=new ThreadJobQueue(maxParallelizationCount:4);
//Test Job Queue
... |
2b46857e5f22fb8235b405bcfe382582074a669d | C# | RichieLuo/Yizhan | /YiZhan.Entities/BusinessManagement/Commodities/YZ_CommodityState.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace YiZhan.Entities.BusinessManagement.Commodities
{
/// <summary>
/// 商品状态枚举
/// 状态说明:用户上架(添加)商品,进入已经待审核状态,管理员审核完成 状态改为审核通过
/// </summary>
public enum YZ_CommodityState
{
/// <summary>
/// 正在审核当中(未进行... |
273560e0036726c9c250d5e7c8d56abc6e175382 | C# | SharpKit/SharpKit-SDK | /Defs/ExtJs/Ext.chart.series.Cartesian.cs | 2.71875 | 3 | //***************************************************
//* This file was generated by tool
//* SharpKit
//* At: 29/08/2012 03:59:39 p.m.
//***************************************************
using SharpKit.JavaScript;
namespace Ext.chart.series
{
#region Cartesian
/// <inheritdocs />
/// <summary>
/// <p... |
c8ddac624b123bf0ec4605b4a31c7d9955415dad | C# | MingxuanJiang/FM5091-5092 | /HW_TrinomialTree/HW_TrinomialTree/OutputValues.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HW_TrinomialTree
{
//output all option prices
class OutputValues
{
public static double[,,] readdata(double[,] inputdata1, double[,] inputdata2, double[,] inputdata3, doubl... |
31f203db00b271a69c4c477e173cbbb618322bd4 | C# | shifty13626/Compil | /Compil/Compil/Analyzer/SyntaxAnalyzer.cs | 2.875 | 3 | using Compil.Utils;
using Compil.Tokens;
using Compil.Nodes;
using System;
using System.Collections.Generic;
using System.Data;
namespace Compil {
/// <summary>
/// Instance of class SyntacticAnalyzer
/// </summary>
public class SyntaxAnalyzer {
public LexicalAnalyzer LexicalAnalyzer { get; }
... |
431dfe9150730a6f8bdec652e3ad9476a1bf5b25 | C# | fabianguidobaldi/DesignPatterns | /DesignPatterns/Strategy/Viaje.cs | 3.53125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DesignPatterns.Strategy
{
public class Viaje
{
public double Distancia { get; set; }
public IEstrategia Transporte { get; private set; }
public Viaje(int dista... |
aa1bff89dc6f89759a644562caf98040960a119a | C# | buddybu/NertzTest1 | /NertzTest1/ViewModel/PlayingArea.cs | 3.484375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StandardCardDeck;
using NertzTest1.Model.Players;
namespace NertzTest1
{
class PlayingArea
{
private List<CardStack> stacks;
private List<CardStack> completedStacks;
public PlayingArea()
... |
6afcf633b46da00ff03f08b85de8f161fb0dc0df | C# | Harold-Morgan/BicycleShopApi | /src/ApplicationCore/Interfaces/IRepository.cs | 2.609375 | 3 | using ApplicationCore.Entities;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationCore.Interfaces
{
//Репозиторий очень условный, общий для всех, поддерживающий только асинхронные методы и никак не оптимизирующий (а в вызовах даже ухудшающий) EF... |
f9f413c5f54408d7ee1859741d38f5342af7d806 | C# | EshuMarabo/telegrambots | /BotManager/BotManager.cs | 2.578125 | 3 | using BaseTelegramBot;
using DefferedPosting;
using Microsoft.Extensions.Hosting;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using Telegram.Bot.Arg... |
f324b94aec1d6f7853761985fa46063a4ed78345 | C# | Lyubo03/OOP-Algorithms | /Inheritance/CarsETC/StartUp.cs | 3.03125 | 3 | using System;
namespace NeedForSpeed
{
public class StartUp
{
public static void Main(string[] args)
{
//var sportCar = new SprotCar(100, 100);
//var raceMotorcycle = new RaceMotorcycle(100, 100);
//var car = new Car(100,100);
//var crossMotorcyc... |
631ef3df1af062f56c189b4efe6e249574421613 | C# | CalleSolution/Multifabriken | /Havremjölk.cs | 3.203125 | 3 | using System;
namespace Multifabriken
{
public class Havremjölk
{
//skapar en instans av klassen kvitto
Kvitto kvitto = new Kvitto();
//variabel för storlek på paketet
private double sizeOfHavremjölk = 0;
// variabel för fetthalt
private double... |
c73ada43f3d36dff7dfff882fd2a9f3841d74a13 | C# | palome06/psd48 | /PSDGamepkg/Artiad/Clothing.cs | 2.671875 | 3 | using System;
using System.Linq;
using PSD.Base;
using PSD.Base.Card;
using Algo = PSD.Base.Utils.Algo;
namespace PSD.PSDGamepkg.Artiad
{
public class EquipStandard
{
public ushort Who { set; get; }
// the provider, source = 0 means from sky
private ushort mSource;
public ushort... |
4ff7de00c09626c02af4c23287ad2e2818833e55 | C# | SyunsukeGoto/PikkaPokka | /CESA2019/Assets/Scrips/playscene/Command.cs | 2.59375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class Command : MonoBehaviour
{
[SerializeField, Header("コマンド")]
private string command;
public UnityAction Function;
private int commandLenght;
private int currentNum;
privat... |
f102e26e41c94fdb6bd309e04654a3009744bde3 | C# | robertjbass/IAmTimCCourses | /Class Libraries in .NET Core (Lesson)/ClassLibraryDemoApp/StandardLibrary/PersonModel.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace StandardLibrary
{
// .NET STANDARD
public class PersonModel
{
// Make Class Public
// Deleted Class1, added new class to Class Library named PersonModel
// 'prop' + tab x2 is auto-property. Creates default... |
6682ca8f42c5c3265461f9de94fd257fe8663c71 | C# | DaniCordova/Proyecto-Escuela | /ProyectoEscuela/ProyectoEscuela/AdministraMaestro.cs | 3.171875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProyectoEscuela
{
class AdministraMaestro
{
public static int numMaestro = 0;
public Maestro[] ArrMaestro = new Maestro[10];
public void MenuMaestro(Maestro[]... |
577de574ed6ebf824ee6f9b12435025e5dcbd9b8 | C# | danielsaidi/Cloney | /Cloney.Core/ContextMenu/ContextMenuRegistryWriter.cs | 2.671875 | 3 | using System;
using Microsoft.Win32;
namespace Cloney.Core.ContextMenu
{
public class ContextMenuRegistryWriter : IContextMenuRegistryWriter
{
public void RegisterShellExtension(string registryPath, string menuText, string command)
{
RegisterShellExtensionKey(registryPath,... |
ab3768594fcbeab82fa1c4c25e360e1f34907592 | C# | wuzerun-888/LearnCSharp | /CSharpFeatures/Tools/SolutionMaker.Core/Utils.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.IO;
using Microsoft.Win32;
namespace SolutionMaker.Core
{
public static class Utils
{
private static SolutionMaker.Core.Model.SolutionFileVersion _preferredSolution... |
58486eb6cefae480490048fd9057df291a1a9b71 | C# | nigelmcintyre/CodingChallenges | /CodingChallenges/CheckMagazineSolution.cs | 3.40625 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Text;
namespace CodingChallenges
{
class CheckMagazineSolution
{
static void checkMagazine(string[] magazine, string[] note)
{
... |
02ea7574b736ef49790e95dcc5c6bf664a0dc9a9 | C# | widovd/NEUNET | /Neulib/Obsolete/ParamBounds.cs | 2.59375 | 3 | using System;
using System.IO;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.Xml;
using Neulib.Exceptions;
using static System.Math;
namespace Neulib.Numerics
{
public struct ParamBounds
{
// -----------------------------------------------------------------------------... |
eec8af303c7fe13a6999446cc70f95b98f665aa5 | C# | cantoniazzi/mocking-objects-csharp | /MockProjetct/MockProjetct/infra/FakeAuctionDAO.cs | 2.734375 | 3 | using MockProjetct.domain;
using System.Collections.Generic;
using System;
namespace MockProjetct.infra
{
public class FakeAuctionDAO : AuctionRepository
{
private static List<Auction> auctions = new List<Auction>();
public virtual List<Auction> Closed()
{
List<Auction> fi... |
36a215d965f85ea7ec72b9097a1fe67130f88d6f | C# | juleya/UnityProjects | /Hangman/Assets/Scripts/Player.cs | 2.5625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour {
public float walkSpeed;
public float jumpSpeed;
public float horizontalSpeed = 5.0F;
public float verticalSpeed = 5.0F;
Vector3 movement;
private float yaw = 0.0f;
private float pitch = 0.0... |
6fefde22f62cca40b12fe2a4eea6fd3f3f30dc5b | C# | thedillonb/Gistacular | /Gistacular/Elements/NoItemsElement.cs | 2.515625 | 3 | using MonoTouch.UIKit;
namespace Gistacular.Elements
{
public class NoItemsElement : StyledElement
{
public NoItemsElement()
: this("No Items")
{
}
public NoItemsElement(string text)
: base(text)
{
}
public override UITableViewCe... |
a8ffc85b39b115416d86eea9fbeb3ee4c72ab6da | C# | nubasikOk/NetMentoring_HttpClient | /GUI/DomainConstraint/CrossDomainTransitionConstraint.cs | 2.75 | 3 | using NetMentoring_HttpClient.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GUI.DomainConstraint
{
class CrossDomainTransitionConstraint : IDomainConstraint
{
private readonly Uri parentUri;
private rea... |
1837df31d8cb48108b2118221023796b1894f6d9 | C# | lenhart2008/Snatch3D | /Script/CoinEffect.cs | 2.515625 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class CoinEffect : MonoBehaviour {
public GameObject coinPrefab;
public float rangeX = 0.1f;
public float rangeY = 2;
public float rangeZ = 0.1f;
public int maxCoinNum = 100;
... |
065f5229cb650ac653cb4ddcd9b10e555b14e246 | C# | iceprinc/Tests-Unit-UI-Selenium- | /UnitTests/ChuguiLab1/Application/Triangle.cs | 3.859375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Application
{
public class Triangle
{
double a, b, c;
public void SetSides(double A, double B, double C)
{
a = A;
b = B;
c = C;
}
public d... |
a94110c19e29af93f7b985be6706df1568277145 | C# | dwhathaway/AzurePipelinesToGitHubActionsConverter | /src/AzurePipelinesToGitHubActionsConverter.Core/Extensions/Helpers.cs | 2.53125 | 3 | using System;
namespace AzurePipelinesToGitHubActionsConverter.Core.Extensions
{
public static class Helpers
{
public static string[] Split(this string input, string sep)
{
return input.Split(new[] { sep }, StringSplitOptions.None);
}
}
} |
f0f8f2a9997efa68502c6a8c6d7049bb1baa9289 | C# | LiminalVR/LiminalSdk-UnityPackage | /PlatformViewer/Scripts/App/UnzipTest.cs | 2.5625 | 3 | using System.Collections;
using System.IO;
using System.IO.Compression;
using UnityEngine;
using UnityEngine.Networking;
namespace Experimental
{
public class UnzipTest : MonoBehaviour
{
public bool Zip;
IEnumerator Start()
{
//yield return DownloadAndExtractExperience(3... |
4fef52d803d771fd6c0db53852b666f543076cee | C# | razaman2/Questpond-Projects | /CustomerProjectPhase1/FactoryCustomer/Factory.cs | 3.203125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MiddleLayer;
using InterfaceCustomer;
namespace FactoryCustomer
{
// Design Pattern :- Simple Factory
public static class Factory
{
private static Dictionary<string, ICustomer> custs = new Dictionary<string... |
8f2371019cb666336dfe07fc5b4287c0e398fa3b | C# | facetraro/documents-manager | /DocumentsManager/DocumentsManager.Web.Api/Models/FooterModel.cs | 2.65625 | 3 | using DocumentsManager.BusinessLogic;
using DocumentsMangerEntities;
using DocumentsManager.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace DocumentsManager.Web.Api.Models
{
public class FooterModel
{
public Guid Id { get; set; }
public str... |
0a68da3588bdd0cbe086f898a51d05e6e2176408 | C# | V-Modder/Belegleser | /Belegleser/Database.cs | 3.140625 | 3 | using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
namespace Belegleser
{
public enum DBType { MySQL, MsSQL }
class Database
{
public static string ExecuteQuery(string sql, Dictionary<string, string> parameter, DBType dbType)
{
... |
06334b3809b22a79e7b52e2cd2d7a6885f01b2ca | C# | rolfmichelsen/dragontools | /DragonTools/IO/Disk/ISector.cs | 2.578125 | 3 | /*
Copyright 2011-2020 Rolf Michelsen
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... |
8a997c3a2d6ae360ab47fe4e8be5331d70de2519 | C# | YHZX2013/exchange_diff | /Microsoft.Exchange.MailboxReplicationService.Common/MailboxReplicationService/LatencyInfo.cs | 2.640625 | 3 | using System;
using System.Runtime.Serialization;
using System.Xml.Serialization;
namespace Microsoft.Exchange.MailboxReplicationService
{
[DataContract]
[Serializable]
public class LatencyInfo
{
[DataMember(Name = "Current", IsRequired = false)]
[XmlElement(ElementName = "Current")]
public int ... |
f2697966959f2386efcfc9d3df17a89850b51d58 | C# | SoyBeckyOK/WebAppRebeca2 | /WebAppRebeca2/Models/RepositoryMemoryData.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Entities;
namespace WebAppRebeca2.Models
{
public class RepositoryMemoryData : IRepositoryProducts
{
private List<Products> Products = new List<Products>();
private static int NextID;
public Rep... |
a82c8379b0df896c032a803b1c900ca06ee71f6b | C# | trak2021z/orlikapp-tr | /OrlikApp/BusinessLayer/Helpers/StringExtensions.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BusinessLayer.Helpers
{
public static class StringExtensions
{
public static string FirstLetterToUpper(this string text)
{
if (string.IsNullOrEmpty(text))
{
r... |
ce3cfaf7cd79dc9456ddda900a6ac8b057183b4a | C# | ArvinZJC/BUAAHND_G3T2_GU2 | /NewEraFlowerStore/Areas/Admin/Pages/Colours/Create.cshtml.cs | 2.59375 | 3 | // csharp file that contains actions of the page for creating a colour
#region Using Directives
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
using NewEraFlowerStore.Data;
#endregion Usi... |
8bc4c059378102aa026a9fcb33a7b7482712dcc1 | C# | MadMks/Wpf_Exam_KeyboardSimulator | /Task_KeyboardSimulator/ButtonAndKey.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
namespace Task_KeyboardSimulator
{
public class ButtonAndKey: Button
{
public static readonly DependencyProperty IsKeyPressedProperty... |
026bf7c8a6eeabc64bbd222c8a27d83e581ad276 | C# | JamesSherrattCCC/DotnetCoreEmail | /EmailDaemon/Auth/AuthApp.cs | 2.59375 | 3 | using EmailReader;
using Microsoft.Graph;
using Microsoft.Identity.Client;
using System;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
namespace EmailDaemon.Auth
{
/// <summary>
/// Retrieves the authorisation tokens required to use microsoft graph.
/// </summary>
public clas... |
5ba7f63e3b94146625eea8183c7bd6e18cc056c9 | C# | zyj0021/CLinq | /CLinq.IntegrationTests/ExtensionExpressionTest.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Testing.Database;
using Testing.Database.Model;
namespace CLinq.IntegrationTests
{
[TestClass]
public class ExtensionExpressionTest
{
[TestMeth... |
8f541a606d9cea9f9a67ad2b2124a98ce873263b | C# | breerey19/bleakwind-buffet | /Data/Combo.cs | 2.71875 | 3 | /*
* Author: Bree Reynoso
* Class name: Combo.cs
* Purpose: Used to set up a combo (entree, side, and drink) with discounted price
* and updated totals of cost, calories, and customizations
*/
using BleakwindBuffet.Data.Drinks;
using BleakwindBuffet.Data.Entrees;
using BleakwindBuffet.Data.Enums;
using Bleakwin... |
b3a77e3763173e049acb80d10f31c33ecd48758c | C# | yyljt/CarSystem | /Commons/LogServer.cs | 2.8125 | 3 | using System;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;
namespace Commons
{
public class LogServer
{
static string _logfilename = "logfile";
public static string LogFileName { get { return _logfilename; } set { _logfilename = value; } }
//public static ... |
511b5fb262c83c764e4004dc847bd57b4ae4c0a5 | C# | PacktPublishing/Mastering-Windows-Presentation-Foundation | /CompanyName.ApplicationName.Managers/DependencyManager.cs | 3.421875 | 3 | using System;
using System.Collections.Generic;
namespace CompanyName.ApplicationName.Managers
{
/// <summary>
/// Provides a way to register interfaces and link them with specific concrete implementations and to later resolve them from their linked interface types.
/// </summary>
public class Depende... |
c551d3458c6f592bb1f429723778096bcf6e0325 | C# | Cxyda/RayTracingDemo | /RayTracerDemo/Core/Models/Vector.cs | 3.1875 | 3 | using System;
namespace RayTracerDemo.Core.Models
{
public struct Vector
{
public static Vector Zero = new Vector();
private double _magnitude;
private double _sqrMagnitude;
public readonly double X, Y, Z, W;
public double Magnitude
{
... |
23dbd2fcddda36846ff4123000fc8132e0b59828 | C# | ignhans/DotnetMessageBroker | /src/MessageBroker.Common/Async/AsyncPayloadTicket.cs | 2.71875 | 3 | using System;
using MessageBroker.Common.Binary;
using MessageBroker.Common.Pooling;
namespace MessageBroker.Common.Async
{
/// <summary>
/// Ticket that can be subscribed to for checking if payload was successfully sent or not by <see cref="IClient" />
/// </summary>
public class AsyncPayloadTicket :... |
89938389ef3ebe8e4e85e04b754778b082bd6031 | C# | analyzer2004/Bagle-BI | /src/libs/Bagel.BI.Olap/Instance/Attribute/Attribute.cs | 2.671875 | 3 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace Bagel.BI.Olap
{
public class Attribute : DimensionObject, IHierarchical
{
public Attribute(AttributeDef definition, string name) : base(name)
{
Definition = definition;
L... |
ce46fc53c1d8e33f7f8bf1c08cb2ba7cebbe96c3 | C# | AngleSharp/AngleSharp | /src/AngleSharp/Scripting/IScriptingService.cs | 2.640625 | 3 | namespace AngleSharp.Scripting
{
using AngleSharp.Io;
using System;
using System.Threading;
using System.Threading.Tasks;
/// <summary>
/// Defines the API of an available engine for running scripts provided in
/// the code.
/// </summary>
public interface IScriptingService
{
... |
36d9fb4006d5125ba2cfd6ef5f62a49889a0204b | C# | ssujithsnair/CrackingCode | /TopologicalSort.cs | 3.453125 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CrackingCode.TopologicalSort
{
public class StackMin : Stack<int>
{
public void Push(int val)
{
base.Push(val);
}
}
class TopologicalSort
... |
681101d8c7a0e1e50c99832a04db29710d0087e3 | C# | 8800720273/Task-Parallel | /Thread2.cs | 3.421875 | 3 | using System;
using System.Threading;
namespace ThreadingApp
{
class MyThread
{
public void Thread2()
{
for(int i = 0;i <10;i++)
{
Console.WriteLine("Child {0}",i);
}
}
}
class Thread2
{
static void Main(string[] a... |
788beeccb720ca4e57304570470ac41d5af53c75 | C# | shendongnian/download4 | /code8/1489641-40886064-132750169-4.cs | 2.71875 | 3 | public static void GetMostUsedColor(Bitmap theBitMap)
{
/*unchangeable code here*/
Console.WriteLine(dctSortedByValueHighToLow.First().Value);
}
|
7b2d0c964e151ed35f2d1a617bfff46b8f30a8cd | C# | nht178/EnglishCenterManagementSystem | /DTO/TabManager.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DTO
{
public class TabManager
{
String mIdTab;
String mNameTab;
public TabManager()
{ }
public TabManager(String idTab, String nameTab)
... |
415b7d0d19a242040b7657ec8c50b467cac43ca6 | C# | DeLiS/CourseWork | /FiniteStateMachines/Utility/IdStepSignature.cs | 3.25 | 3 | using System;
using FiniteStateMachines.Interfaces;
using System.Diagnostics;
namespace FiniteStateMachines.Utility
{
///<summary>
/// Сигнатура перехода конечного автомата.
///</summary>
///<typeparam name="TIn">Тип входного символа.</typeparam>
///<typeparam name="TOut">Тип выходного сим... |
f7e7295f75e86ff83f8414ed4075a33e25c4fd44 | C# | shendongnian/download4 | /code1/98737-1604049-3194577-4.cs | 3.625 | 4 | using System;
using System.Collections.ObjectModel;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
SomeClass.TellMeAboutYourself();
}
}
public class Identifiers : Attribute
{
private string[] names; ... |