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 |
|---|---|---|---|---|---|---|
ade30d4cf4bba1ef3d8fb5cebc0a5939bd29ef9e | C# | t7160304/Smartkernel | /Framework/CSharp/Framework/Framework/Xml/SmartXml.cs | 2.546875 | 3 | /*
* 项目:Smartkernel.Framework
* 作者:曹艳白
* 邮箱:caoyanbai@139.com
*/
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Linq;
using System.Xml.Serialization;
using System.Xml.Xsl;
namespace Smartkernel.Framework.Xml
{
/// <summary... |
d3e3ed3656bdc9b36b08fb36b04d5dd17236c348 | C# | dotnet-architecture/eShopOnWeb | /src/BlazorAdmin/Services/HttpService.cs | 2.625 | 3 | using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
using BlazorShared;
using BlazorShared.Models;
using Microsoft.Extensions.Options;
namespace BlazorAdmin.Services;
public class HttpService
{
private readonly HttpClient _httpClient;
private readonly ToastService ... |
ac787351df76b59d56e3b7460a18703d6cf6773f | C# | TheGostKasper/RDNEXAMS | /StatesExam/Assigner.cs | 2.671875 | 3 | using StatesExam.Helper;
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 StatesExam
{
public partial class Assigner : Form
{
S... |
f7ac475482b23c972e9a2795002bfadd724e1ac3 | C# | xardison/Shaman | /src/Shaman.Common/Exc/ShamanObservableExceptionHandler.cs | 2.515625 | 3 | using System;
using System.Diagnostics;
using System.Net.Mail;
using Shaman.Common.Extension;
using Shaman.Common.Mail;
using Shaman.Common.Messages;
namespace Shaman.Common.Exc
{
public interface IObservableExceptionHandler : IObserver<Exception>
{
void SetDefaultMethodToShowError(Action<Exception> a... |
5e295e337b0b158b16efc9a65ff11cf7889d5c98 | C# | ivar-blessing/ConstructionLine.CodingChallenge | /ConstructionLine.CodingChallenge.Tests/SearchEngineTests.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using NUnit.Framework;
namespace ConstructionLine.CodingChallenge.Tests
{
[TestFixture]
public class SearchEngineTests : SearchEngineTestsBase
{
[Test]
public void Test()
{
var shirts = new List<Shirt>
{
... |
832a54e2a755d588330e649dc6eb9af92f26f760 | C# | PabloGarciaGrossi/Moviles-P2 | /Assets/Scripts/BoardManager.cs | 2.671875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MazesAndMore
{
public class BoardManager : MonoBehaviour
{
public Tile tile;
private LevelManager _lm;
public Camera cam;
bool[,,] walls;
//Inicialización del map y cada uno de sus... |
53160bbfeb189fd7a422b4797e2ab4dc7475c582 | C# | johnsonhaovip/DapperExt | /XNY.DataAccess/DapperExtensions/Lambda/LambdaSql/Where/IWhere.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace DapperExtensions.Lambda
{
public interface IWhere<T> : IWhere where T : class
{
void And(Expression<Func<T, bool>> lambdaWhere);
void A... |
f9c2d61c9a295fd02c41a1196ee47cfa3d5fb1a7 | C# | ghorsey/SHHH.Infrastructure.Web.AntiXss | /src/SHHH.Infrastructure.Web.AntiXss.Tests/AntiXssProcessorTestFixture.cs | 2.609375 | 3 | namespace SHHH.Infrastructure.Web.AntiXss.Tests
{
using System;
using NUnit.Framework;
/// <summary>
/// The test fixture for the <see cref="IAntiXssProcessor"/> object
/// </summary>
[TestFixture]
public class AntiXssProcessorTestFixture
{
/// <summary>
/// Tests the ... |
1ba413e81f1658e6798d0b5515fd949fae531787 | C# | fabriceleal/ImageProcessing | /Framework/Core/Filters/Spatial/Kernel2DBatch.cs | 3.421875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Framework.Core.Filters.Spatial
{
/// <summary>
/// Provides functionality for applying several kernels to calculate an image.
/// </summary>
/// <remarks>
/// It follows a pattern resembling the Map-Red... |
db093dc69bf4e55d36a185747f536d944dbb2273 | C# | markovood/SoftUni---Tech-Module-4.0 | /Objects and Classes - Lab/05. Students/Students.cs | 3.765625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
namespace _05._Students
{
public class Students
{
public static void Main()
{
List<Student> students = new List<Student>();
while (true)
{
string[] tokens = Console.ReadLine()... |
8a05b70fdfba560954e401a223091bc92dd792f0 | C# | Janluke0/opendiagram | /Previous_Versions/Version_4.1/Examples/C#/Tutorial/CustomRender.cs | 2.6875 | 3 | using System;
using System.Drawing;
using System.Drawing.Text;
using Crainiate.ERM4;
namespace WindowsApplication1
{
public class CustomRender: Render
{
private string mWatermark;
//Constructor
public CustomRender(): base()
{
Watermark = string.Empty;
base.DrawSelections = true;
base.DrawGrid ... |
862092058598c89582738aba4923df2ec4057714 | C# | shendongnian/download4 | /first_version_download2/306682-41503774-135365514-2.cs | 2.546875 | 3 | public class MyTableSource : UITableViewSource
{
string SectionIndentifer = "mySection";
string CellIndentifer = "myCell";
public List<MyItem> vList { get; set; }
List<bool> expandStatusList; // Maintain a list which keeps track if a section is expanded or not
public MeasurementsDeta... |
edbe74b4dd19bedd3a83fd612d2ad9f70d3fb6b1 | C# | tedKarabeliov/Telerik-Academy | /Data Structures and Algorithms/Trees and Traversals/3. File Tree/Folder.cs | 3.484375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
namespace FileTree
{
public class Folder
{
public string Name { get; set; }
public File[] Files { get; set; }
public Folder[] ChildFolders { get; set; }
public Folder(string name)
{
//Assign... |
887bd117ecc4efa05677dc4b567dcfba1f55ff32 | C# | IvanChepik/TAT_2019.1 | /DEV-5/DEV-5/EntryPoint.cs | 3.53125 | 4 | using System;
using System.Collections.Generic;
using Points;
using Flying;
namespace DEV_5
{
/// <summary>
/// Class EntryPoint
/// gets fly time for 3 object of this classes.
/// </summary>
public class EntryPoint
{
/// <summary>
/// Method Main
/// entry point.
... |
38b80900bc72db1135366fa578004b527631921a | C# | itplamen/Telerik-Academy | /Programming with C#/5. C# Data Structures and Algorithms/01.LinearDataStructures/11.ImplementDataStructureLinkedList.Tests/LinkedListTests.cs | 3.09375 | 3 | namespace _11.ImplementDataStructureLinkedList.Tests
{
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class LinkedListTests
{
private LinkedList<string> linkedList;
[TestInitialize]
public void TestInitialize()
{
th... |
6be0c48bb3e6f39b7d1322b1162b4b7edd575d40 | C# | arey1124/ConsoleApplication-Examples | /EmployeeNew.cs | 3.46875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Linq;
namespace ConsoleApp1
{
class EmployeeNew
{
public int id { get; set; }
public string ename { get; set; }
public string job { get; set; }
publi... |
7a57678642bf961b600e433808aea3f37c092225 | C# | allwinvinoth/RS-ECL-Server-master | /LIS.Data/Repositories/DepartmentRepository.cs | 2.875 | 3 | using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using LIS.DataContracts.Entities;
using LIS.DataContracts.Repositories;
using Microsoft.EntityFrameworkCore;
using System.Linq;
namespace LIS.Data.Repositories
{
public sealed class DepartmentRepository : IDepartmentRepository
... |
c0e6f98e5aa484f39d480c882e8a774ae26863e4 | C# | manasachervirala/Assignmentpractice | /anonymous methods/lamdaexpresions.cs | 3.8125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lamda_expresions
{
//DEfine the delegates with respected methods with the code
public delegate double AddnumsDelegate(int x,float y,double z);
public delegate void Addnums... |
242b9d24597f08bceeb600eb07c4b0eba5fc635d | C# | delimaxdev/DX.CQRS | /src/DX.Contracts/ContractAttribute.cs | 2.609375 | 3 | using System;
namespace DX.Contracts {
[AttributeUsage(
AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Enum,
AllowMultiple = false,
Inherited = false)]
public sealed class ContractAttribute : Attribute {
public string? Name { get; set; }
publi... |
58427bfb71d19b478d70cdec602986b930356be1 | C# | aj-r/Utils | /Sharp.Utils/Linq/UtilsEnumerable.cs | 3.421875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using Sharp.Utils.Transactions;
namespace Sharp.Utils.Linq
{
/// <summary>
/// Contains methods for querying objects that implements IEnumerable.
/// </summary>
public static class UtilsEnumerable
{
/// <summary>
//... |
f5585f8ecffc8b8586bad48c683d1dc37b7367d7 | C# | veenabkatte/functionsAndException | /FunctionsAndExceptions/FunctionsAndExceptions/CustomExcepDemo.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace FunctionsAndExceptions
{
class CustomExcepDemo
{
static void Main()
{
try
{
Employee employee = new Employee();
employee.ValidateEmployeeCode(0, "Scott");
... |
dea340de1edc643a7cd037e0f8177dfd0fbd0298 | C# | jkoefoed21/PhysicsStats | /PhysicsStats/Player.cs | 3.671875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PhysicsStats
{
class Player
{
public string First { get; }
public string Last { get; }
public Player(string LastName, string FirstName)
{
i... |
34ad6add951945cf9ce6370da175fbb382fcec52 | C# | JohnnyKapps/fubumvc | /src/FubuMVC.Spark/SparkModel/SparkFileReader.cs | 2.625 | 3 | using System;
using System.IO;
using System.Xml;
using FubuMVC.Core.View.Model;
namespace FubuMVC.Spark.SparkModel
{
public class SparkFileReader
{
private readonly string _file;
public SparkFileReader(string file)
{
_file = file;
}
// <vie... |
ebea935146fee37ef7e4ee501c9d0f81eac36865 | C# | 1993Max/MxFrameWork | /MFrameWork/Assets/Scripts/GameLibs/CodeExtend/TypeEx.cs | 2.859375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
namespace MFrameWork
{
public static class TypeEx
{
/// <summary>
/// 获取默认值
/// </summary>
/// <param name="targetType"></param>
/// <returns></returns>
public static ob... |
6ccd19958b24de97fff0d3a02d4285824bb641ce | C# | azhurba/stockcalculation | /StockProductivityCalculation/StockCalculator.cs | 3.09375 | 3 | using StockProductivityCalculation.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace StockProductivityCalculation
{
public static class StockCalculator
{
public static IList<decimal> Calculate(IStockData data)
{
var totalRecords ... |
29f37777129946821a748db6ec4174bbc9d30725 | C# | mithila451/bank_2 | /bank_2/Checking account.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace bank_2
{
class Checking_account:account
{
public override void ShowAccountInformation()
{
base.ShowAccountInformation();
}
public override ... |
ee713081064c27854ca87c34ed009a2620202d25 | C# | Bshowg/QuarantineJam | /Assets/Scripts/TextManager.cs | 2.640625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class TextManager : MonoBehaviour{
public GameObject text;
public List<string> possibleLines;
public void requireTexts(List<GameObject> subjects) {
foreach (GameObject g in subjects) {
... |
f498c4122ba854b255042ce91b9ff97e1bc31c73 | C# | janalvares/Tugas-Delegete-dan-Event | /CalculatorDelegate/Perhitungan.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CalculatorDelegate
{
public partial class Perhitungan : Form
{
public Perhitun... |
72f83eeca206fac2600d418e15d26b3d0aa5ccb8 | C# | MindfireTechnology/Bonobo-Git-Server | /Bonobo.Git.Server/Owin/WindowsAuthenticationHandshakeCache.cs | 2.8125 | 3 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Caching;
using System.Web;
namespace Bonobo.Git.Server.Owin.Windows
{
internal class WindowsAuthenticationHandshakeCache
{
private static readonly int expirationTimeInMinutes = ... |
6f6ab9d58f716badd6c75dd30ddc06efca2d52fd | C# | Elian173/tp_laboratorio_2 | /Elian_Rojas_TP2_2C/TP-02/Entidades/Leche.cs | 3.0625 | 3 | using System;
using System.Text;
namespace Entidades_2018
{
public class Leche: Producto
{
#region Atributos
public enum ETipo
{
Entera, Descremada
}
private ETipo tipo;
#endregion Atributos
#region Constructores
/// <summary>
... |
45946457e91e10c9375ef9438359c7f2701ac10e | C# | ArkadyPL/Multiagent-Action-Language | /MultiAgentLanguageModels/Reasoning/Structure.cs | 2.515625 | 3 | using System.Collections.Generic;
namespace MultiAgentLanguageModels.Reasoning
{
public class Structure
{
public HashSet<State> InitialStates { get; }
public HashSet<State> PossibleStates { get; }
public Dictionary<Triple, HashSet<State>> Res { get; }
public Structure(HashSet<S... |
860b21004381f75d78a862f322b731d98f21416b | C# | g-stoyanov/BattleField2 | /CurrentVersion/BattleField.Common.Tests/GameFieldTest.cs | 2.703125 | 3 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace BattleField.Common.Tests
{
[TestClass]
public class GameFieldTest
{
[TestMethod]
public void TestGameFieldConstructor()
{
FieldCell fieldCell = new FieldCell();
byte fiel... |
8b9c711f1b482bf5e3e3945648e2506d0f1e9434 | C# | IPA3211/JumpMonkey | /simple android/Assets/Script/SwipeManager.cs | 3.015625 | 3 | using UnityEngine;
using System;
public class SwipeManager : MonoBehaviour
{
[Flags]
public enum SwipeDirection
{
None = 0, Left = 1, Right = 2, Up = 4, Down = 8
}
private static SwipeManager m_instance;
public static SwipeManager Instance
{
get
{
if ... |
06c5135c20f963d529656e138867767e379c5421 | C# | shendongnian/download4 | /first_version_download2/192694-14713525-35527848-2.cs | 3.140625 | 3 | static void Main(string[] args)
{
List<String> datestrings = new List<string>() {
"12/23/2012 09:51",
"9/27/2012 11:36",
"10/2/2012 12:28",
"10/3/2012 10:51" };
... |
5aecf2ab84706abde9ee6d45b29e549686450e18 | C# | Stevie-O/SharpLua | /SharpLua/NewParser/XmlDocumentation/ExtractDocumentationComments.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpLua.Ast;
using SharpLua.Ast.Statement;
using SharpLua.Ast.Expression;
namespace SharpLua.XmlDocumentation
{
public class ExtractDocumentationComments
{
public static List<DocumentationComment> Extract(Chun... |
620c605bc11fd0ea7c200561dcc0f68a81a2b65d | C# | tripathi-error/LibraryManagement | /LibraryManagmentDataAccessLayer/Repositories/UserActionDbRepository.cs | 2.734375 | 3 | using LibraryManagmentDataAccessLayer.Interfaces;
using LibraryManagmentDomainLayer.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LibraryManagmentDataAccessLayer.Repositories
{
public cla... |
c59b2a6b5ff6e53ed758ebe33be02a8c42916d47 | C# | modelse/DojoQuotes | /UserFactory.cs | 3 | 3 | using System.Collections.Generic;
using System.Linq;
using Dapper;
using System.Data;
using MySql.Data.MySqlClient;
using quotes.Models;
namespace quotes.Factory
{
public class UserFactory
{
private string connectionString;
public UserFactory()
{
connectionString = "server... |
84547d94fb20cc1f9aef57d08b5030640700aa9f | C# | dhtweb/dht | /DhtCrawler/Encode/Exception/DecodeException.cs | 2.890625 | 3 | using System;
using System.Text;
namespace DhtCrawler.Encode.Exception
{
public class DecodeException : System.Exception
{
public byte[] ErrorBytes { get; }
public int ErrorIndex { get; }
public DecodeException(byte[] errorBytes, int errorIndex, string msg, System.Exception innerExcep... |
e9293c3685e195c55a4a8de59b944d7b13127c66 | C# | coniturbo/miniSqlParser | /MiniSqlParser/Exprs/AggregateFuncExpr.cs | 2.625 | 3 |
namespace MiniSqlParser
{
public class AggregateFuncExpr : Expr
{
public AggregateFuncExpr(string name
, QuantifierType quantifier
, bool wildcard
, Expr argument1
, Expr argument2) {
... |
386d70272829a1ae045d2bb6bf17cee4eaa9f768 | C# | shendongnian/download4 | /code1/100781-1706472-3408924-2.cs | 2.78125 | 3 | int WS_CHILD = 0x40000000;
int WS_VISIBLE = 0x10000000;
// paint wpf on int hParentWnd
myWindow = new MyWpfWindow();
// First it creates an HwndSource, whose parameters are similar to CreateWindow:
... |
cec73e5b9206e0b4313dafe0a2080a36cbe2faec | C# | ASHWINI-GUPTA/LeadX.NET | /example/Program.cs | 2.734375 | 3 | using System;
using System.Threading.Tasks;
using LeadX.NET.Entities;
namespace Example
{
class Program
{
static async Task Main(string[] args)
{
Console.WriteLine("Application Started...!!!");
var cred = new LeadXCredential("YOUR ACCESS TOKEN");
var leadX... |
39114bf410be6c0d4476cdc85305aed74b549ed5 | C# | jtlai0921/AEL013700 | /範例程式 (1)/C#範例程式/PageRedirect/SessionState.aspx.cs | 2.84375 | 3 | using System;
using System.Web.UI;
public partial class SessionState : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
//儲存Session狀態資料
protected void btnSave_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(txtName.Text) && !string.IsNullOrEm... |
4fb40b7c514d13f9d5220d74fc2b88af573bf29c | C# | dhunt3/FizzBuzz | /Program.cs | 3.46875 | 3 | namespace FizzBuzzDoro
{
class Program
{
static void Main(string[] args)
{
int fizz = 3;
int buzz = 5;
int fizzBuzz = fizz * buzz;
int num = 15;
for (int counter = 1; counter <= num; counter++)
{
if (counter... |
079c09a6f823f7ef9ec22326d0e97f7cf5a14781 | C# | chertpong/PhaSom-Ecommerce | /Model/Concrete/EFPostRepository.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Linq.Expressions;
using Model.Entity;
using Model.Repository;
namespace Model.Concrete
{
public class EFPostRepository : IPostRepository, IDisposable
{
private readonly EFDbContext _context;
... |
66681cd9f42c964852b61f1ef7944f855f0b5431 | C# | dcarles/PurchaseOrderRuleEngine | /PurchaseOrderRuleEngine/Models/PurchaseOrder.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
namespace PurchaseOrderRuleEngine.Models
{
public class PurchaseOrder
{
public int PONumber { get; set; }
public decimal TotalAmount { get; set; }
public Customer Customer { get; set; }
public List<PurchaseOrderItem> Items { get; ... |
10ec8ba50719aabf13d0f527ec55ff3aef234db0 | C# | maxappdevelopement/Labb3_VatCalculator | /VATCalculator/VATCalculator/MainPage.xaml.cs | 2.9375 | 3 | using System;
using System.ComponentModel;
using Xamarin.Forms;
namespace VATCalculator
{
// Learn more about making custom code visible in the Xamarin.Forms previewer
// by visiting https://aka.ms/xamarinforms-previewer
[DesignTimeVisible(false)]
public partial class MainPage : ContentPage
{
... |
e8c442a738be756ebfa6e031fd2f969fec44effc | C# | ArchitectNow/TypeScripter | /TypeScripter.Tests/TypeScriptCompiler.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace TypeScripter.Tests
{
public static class TypeScriptCompiler
{
#region Internal Constructs
/// <summary>
/// A class representing the compiler result
/// </s... |
1358d258ba945f4e1cac394a7ab252ded5b58168 | C# | twistedstream/FluentSiteMap | /src/FluentSiteMap.Core/Builders/TargetNodeBuilder.cs | 3.078125 | 3 | using System;
namespace TS.FluentSiteMap.Builders
{
/// <summary>
/// A <see cref="DecoratingNodeBuilder"/> class
/// that sets the node target.
/// </summary>
public class TargetNodeBuilder
: DecoratingNodeBuilder
{
private readonly Func<Node, BuilderContext, string> _targetG... |
d92ba0bf7c0f80b66dfa5373e16d1c0ccaa9ea2a | C# | gvishu2003/BRENew | /BRE/BusinessEngineService.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BRE.Interfaces;
using BRE.Repository;
namespace BRE
{
public class BusinessEngineService : IBusinessRule
{
private List<IRules> rules = new List<IRules>();
private List<st... |
a4129a41061e9229b543f14169f14835f5a5de42 | C# | zarusz/LightDataInterface | /LightDataInterface.Core/DataSessionAwareExtensions.cs | 2.71875 | 3 | namespace LightDataInterface.Core
{
public static class DataSessionAwareExtensions
{
/// <summary>
/// Retrieve the <see cref="IDataSession"/> from the <see cref="IDataSessionAware"/>.
/// </summary>
/// <param name="dataSessionAware"></param>
/// <returns></returns>
... |
6444452b724d681e9572481242dab32a887f9296 | C# | lakhtak/WalrusEnglish | /WalrusEnglish/NewGameDialog.cs | 2.65625 | 3 | using System;
using System.Linq;
using System.Windows.Forms;
using WalrusEngishLogic;
namespace WalrusEnglishGui
{
public partial class NewGameDialog : Form
{
private int _playerOneAvatarNumber = 1;
private int _playerTwoAvatarNumber = 1;
public NewGameDialog()
{
I... |
da64f3afb9a9026cae2077a19fff40393e2b1689 | C# | csetep/damil84 | /week-04/day-1/Exercise_Farm/Program.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
namespace Exercise_Farm
{
class Program
{
static void Main(string[] args)
{
var Animals = new Animals();
var dog = new Animals();
var cow = ne... |
066263c2cb7f2d71d4e6a07c6ee43300a69df2b4 | C# | kuangwei8/ExercsimPractice | /csharp/scrabble-score/ScrabbleScore.cs | 3.40625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
public static class ScrabbleScore
{
enum Alphabets
{
AEIOULNRST = 1,
DG = 2,
BCMP = 3,
FHVWY =4,
K =5,
JX =8,
QZ=10
}
public static int Score(string input)
{
... |
ba885e789e3925a2590e7a5f71a8cee89cc51fbb | C# | edsaedi/Self-Balancing-Trees | /Self-Balancing Trees/AVL_With_Parents/AVLTree.cs | 3.421875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AVL_With_Parents
{
public class AVLNode<T>
{
public T Value;
public AVLNode<T> Parent;
public AVLNode<T> Right;
public AVLNode<T> Left;
public i... |
38e78ceda5e3dfb53bb3c33007cc7aa5a98f4b40 | C# | vag1830/clean-code-paella | /UnitTests/ProductTests/GetAllUseCaseTests.cs | 2.65625 | 3 | using System.Collections.Generic;
using FluentAssertions;
using Moq;
using Paella.Application.Persistence;
using Paella.Application.ProductUseCases.GetAll;
using Paella.Domain.Entities;
using Xunit;
namespace UnitTests.ProductTests
{
public class GetAllUseCaseTests
{
[Fact]
public void NoProduc... |
3726b4bbbad27213f6f589bb195d084017d9bfb7 | C# | Knist-Larsen/Trekantsruten | /Rejsen_Pa_Trekantsruten/Assets/Scripts/ShipPlayer.cs | 2.8125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ShipPlayer : MonoBehaviour
{
//string som fra start at srger for at der ikke er et baneskift igang
private string baneSkift = "n";
public GameObject obj;
Vector3 startPos;
public float height;
// Start ... |
200d81b60ab4d61014605d491101c220f637a982 | C# | rodrigosousa1/rest-aspnetcore-lab | /RestAspNetCoreLab/RestAspNetCoreLab/Repository/Generic/GenericRepository.cs | 2.90625 | 3 | using Microsoft.EntityFrameworkCore;
using RestAspNetCoreLab.Model.Base;
using RestAspNetCoreLab.Model.Context;
using System;
using System.Collections.Generic;
using System.Linq;
namespace RestAspNetCoreLab.Repository.Generic
{
public class GenericRepository<T> : IRepository<T> where T : BaseEntity
{
... |
37985b6e704d386b5d4beeeead567026b38a2af5 | C# | MishoMihaylov/SoftUni-Projects | /Homemade/Homemade.Services/Models/ShoppingCartService.cs | 2.59375 | 3 | namespace Homemade.Services.Models
{
using System.Linq;
using Homemade.Models.EntityModels;
using Homemade.Services.Contracts;
public class ShoppingCartService : BaseService, IShoppingCartService
{
public void AddOrUpdate(ShoppingCart shoppingCart)
{
this.Unit... |
9a08f741853eeb8ea1a4dcc5a409920798149621 | C# | TeodorKostadinov/TelerikCSharp6 | /CalculateVariations/CalculateVariations.cs | 3.4375 | 3 | using System;
class CalculateVariations
{
static void Main(string[] args)
{
Console.Write("Enter N= ");
int n = int.Parse(Console.ReadLine());
Console.Write("Enter K= ");
int k = int.Parse(Console.ReadLine());
int nFactor = 1;
... |
d2444c304fb57a52112ef4f7fd5f9713f2f94d05 | C# | caok168/Cit_Library | /AdvancedCalculation/WaveFormProcess.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MathWorks.MATLAB.NET.Arrays;
using DataProcessAdvance;
using System.IO;
namespace AdvancedCalculation
{
public class WaveFormProcess
{
//DataProcessAdvanceClass ppmc;
public WaveFormProcess... |
1c2254a81948a21265e044630dbf69a6d6cd4895 | C# | chmitkov/SoftUni | /C#/TrainingLab/Program.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TrainingLab
{
class Program
{
static void Main(string[] args)
{
var w = double.Parse(Console.ReadLine());
var h = double.Parse(Console.ReadLine(... |
4c1f98e388d4b99cbf9f951825f9c438a71211eb | C# | hasankhan/DraggerGame | /MapInverter/Player.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace Dragger
{
enum Direction
{
UP,
Down,
Left,
Right,
Unknown
}
class Player
{
Point location;
Map map;
readonly Point ... |
1e78cfb3166a2366c4d9a66d3fe46996e9ab33a2 | C# | jamunabalamurugan/CTSDN016 | /C#_Day5/PropertyEg/PropertyEg/Employee.cs | 3.515625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PropertyEg
{
class Employee
{
private int eno;//Private member variable
public Employee()
{
eno = 100;
}
public int GetEmpNo()
... |
ecdf6ee9549e2b652bc8f07e78862963ddc2e587 | C# | nagyist/HealthTracker-1 | /HealthTracker.Infrastructure/UndoRedoManager.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HealthTracker.Infrastructure.Interfaces;
namespace HealthTracker.Infrastructure
{
public class UndoRedoManager
{
#region Constructors
public UndoRedoManager()
{
_undoItems = new Stack<IUndoRedo... |
3d56a772e91dd7da843cd9711c9488c7ab6b25a4 | C# | Deven-D07/CS_Chapter2 | /CS_Chapter2/Room/Program.cs | 3.203125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Room
{
class Program
{
static void Main(string[] args)
{
int length = 15;
int width = 25;
Console.WriteLine("The floor space is:");
Console.WriteLine... |
01d83291441350a79957d5d893e3cb6f3ec35dab | C# | Karlashenko/dark-bestiary | /Values/Damage.cs | 2.734375 | 3 | using DarkBestiary.Skills;
using UnityEngine;
namespace DarkBestiary.Values
{
public struct Damage
{
public float Amount { get; set; }
public float Absorbed { get; set; }
public DamageType Type { get; set; }
public DamageFlags Flags { get; set; }
public DamageInfoFlags ... |
9b1e7f97ab6f234a3440728c109d57fae601f3fe | C# | hteinlinaung1423/Security | /AddCredits.aspx.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class AddCredits : System.Web.UI.Page
{
string USER_TEMP = "nyan";
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
... |
e77b83af1e95238d6db34da4e74a9b911149494b | C# | VermassenJonas/SBU_Backend | /SBU_API/Models/Monster.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SBU_API.Models
{
public class Monster
{
public int Id { get; set; }
public String Name { get; set; }
public String Size { get; set; }
public String MonsterType { get; set;... |
d690acd83378bd4b53eb041e44ae2e0c37ce9911 | C# | vygantas-meskauskis/DesignPatternExamples | /Bridge/Program.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Bridge
{
class Program
{
static void Main(string[] args)
{
var standartFormatter = new StandartFormatter();
var backwardsFormatter = new BackWardsFormatter();
var ... |
416e3d63690d2c097344002727f223d4c6e3485d | C# | BogdanPinchuk/C_sharp_Essential-PBY_HW_AT11 | /LesApp1/Class1.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LesApp1
{
class Class1 : IInt
{
/// <summary>
/// Відобразити тип класу
/// </summary>
public void ShowClassType()
{
Console.WriteLi... |
81dc657c6756e09c8ed574b512fe264be815f6c2 | C# | IstanbulBoy/gis-dij-proj | /gis1/gis/Projects/GiS/Backup/2/App_Code/TspAlgorithm.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
/// <summary>
/// Summary description for TspAlgorithms
/// </summary>
public class TspAlgorithm
{
const int INF = 2147483647;
int bestResult = INF;
int[] bestPath;
int[] result;
/// <summary>
/// Zwraca wyni... |
5e35f1b3c18e68b4eeac748fae52cd053031351b | C# | GameDevProject-S20/Pre-Production | /4900Project/Assets/Scripts/Tooltip/Tooltip.cs | 2.5625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class Tooltip : MonoBehaviour
{
private Component[] texts;
public int rightClickStage = 0;
void Awake()
{
gameObject.GetComponent<Image>().enabled = false;
texts = ... |
292bd87cac117605e003b5cfb132d2083834ae9e | C# | jimmygogo/jimmygogo.github.io | /fruitmail/fruitmail/App_Code/FruitServ.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
public class FruitServ
{
List<Fruit> fruitList;
List<Category> categories;
int pageNum = 1;
public FruitServ()
{
fruitList = GetAllFruits();
categories = GetAllCatego... |
edad924f94e5a4a71f4345a968f5bf663af9d563 | C# | BenGab/ParrallelProgramming | /WikiediaArticleAnalyzer/Program.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace WikiediaArticleAnalyzer
{
class Program
{
static void Main(string[] args)
{
TestWrite();
Console.ReadLine();
}
... |
ff502d5d5fc7d4e6cc5f23a0e39dd3b2e582863b | C# | shendongnian/download4 | /code10/1725221-49910646-171602834-2.cs | 2.984375 | 3 | var gems = new HashSet<string>();
gems.Add('ruby');
gems.Add('diamond');
if (gems.Contain(want))
{
Console.WriteLine($"Your wedding ring will feature your selection: {want}");
}
else
{
Console.WriteLine(""Im sorry that was not a valid selection.");
}
|
db026bb4c4d9fd4b5b49da254feafde2bfe9f6d1 | C# | FearfulFlamingos/fear_valley_client | /fear_client/Assets/Scripts/CharacterClass/ICharacterFeatures.cs | 2.8125 | 3 | namespace Scripts.CharacterClass
{
/// <summary>
/// This script is largely used to keep track of information on each of the game objects
/// vital to making the game work.
/// </summary>
public interface ICharacterFeatures
{
/// <summary>Armor bonus of the character.</summary>
... |
fbcc2542899da815db6092fd84c3c91d3bf2d42d | C# | GearsAD/zasteroids | /SharedContent/ContentSections/MusicContent.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Shared_Content;
using Microsoft.Xna.Framework.Media;
namespace ZitaAsteria.ContentSections
{
/// <summary>
/// A static class containing r... |
e2f2510e37ddfbad914450e1a10e9232612d8191 | C# | programmerNacho/LanityKalkigi-CursoValladolid | /Assets/Scripts/Drawing/DrawingDifficultySelector.cs | 2.609375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DrawingDifficultySelector : MonoBehaviour
{
[SerializeField]
private DrawingBlock drawingBlock;
private int roundsCompleted;
public Texture2D SelectDrawing()
{
if(roundsCompleted < 3)
{
... |
b4b8b0f1a61163efd203c83bc7899adb4545c8a2 | C# | CWEB2010/nfl-coaches-draft-program-project-1-joebrenny | /project1/Program.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace project1
{
class Program
{
//need to create a class so i can make the objects of players
//use a bool value once the a player is selected so they user can use it twice
static void Main(string[] a... |
9bb2bbafac8f24a8abc104cfea240df978ee446b | C# | andrei-ga/spotyplace | /Server/Spotyplace.Entities/DTOs/CustomerSubscriptionDto.cs | 2.578125 | 3 | using ChargeBee.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace Spotyplace.Entities.DTOs
{
public class CustomerSubscriptionDto
{
/// <summary>
/// Identifier of the plan for this subscription.
/// </summary>
public string PlanId { get; set;... |
3ad75dcb897a9369d752acd95be75553749a04c1 | C# | mdobson2/Lab-02-Repo | /Tools/Assets/Editor/CreateAnimations.cs | 2.609375 | 3 | using UnityEngine;
using System.Collections;
using UnityEditor;
/* A tool for creating sprite sheet animations quickly and easily
* @author Mike Dobson
*/
public class CreateAnimations : EditorWindow {
public static Object selectedObject;
int numAnimations;
string controllerName;
string[] animatio... |
52d89e260505e3b13c79782157b0d245314469dd | C# | mfmmac/GC-Exercises | /Exercise26/Exercise26/Program.cs | 3.703125 | 4 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
namespace Exercise26
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Please enter some text");
var userInput = Console.ReadLine();
bool us... |
31379deaca77cde07bf72bc5a29554940053c722 | C# | BenBBO/GestionClient | /GestionClient/GestionClient.Manager/Manager/CrudManager.cs | 2.84375 | 3 | using GestionClient.Manager.Interface;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Linq.Expressions;
namespace GestionClient.Manager
{
public abstract class CrudManager<C, T> :
ICrudManager<T> wh... |
9fced6c3de7b29786baa89f4ec8b85f5dd9090ae | C# | BenjaminRSergent/Warlord | /Warlord/Warlord/GameTools/Graph/Vector3i.cs | 3.265625 | 3 | using System;
using Microsoft.Xna.Framework;
namespace GameTools.Graph
{
struct Vector3i
{
int x;
int y;
int z;
public Vector3i(int X, int Y, int Z)
{
x = X;
y = Y;
z = Z;
}
public Vector3i(Vector3i source)
{... |
73562a3fb0068efd850039754817d27c5a5eecdd | C# | Yiomo/acafe | /αcafe/Functions/GetTips.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace αcafe.Functions
{
class GetTips
{
public static string GetRdTips()
{
List<string> AllTips = new List<string>();
AllTips.Add("最佳的变焦镜便是你自己的脚");
... |
8c8a7abc1bdbae7a376afe91458806b92b711cc7 | C# | joebir/csharplibrary | /0.20_Interfaces/ListClass.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _0._20_Interfaces
{
class ListClass : IEnum, IList, ICollect
{
public void IterateOverCollection()
{
Console.WriteLine("Iterating over the collection.");
... |
a35aa5dcb26e228e2b796d9bdc419ad68956deb8 | C# | Ctor1994/AspApp | /tHISiStHEsHOP/Data/Repository/CarRepository.cs | 2.578125 | 3 | using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using tHISiStHEsHOP.Data.Interfaces;
using tHISiStHEsHOP.Models;
namespace tHISiStHEsHOP.Data.Repository
{
public class CarRepository : ICars
{
private readonly Applica... |
51dc4509c6888381931791bb669592cf17170a04 | C# | woger/teste2 | /Settings/Configuracoes/Helper.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace Settings.Configuracoes
{
public static class Helper
{
public static Image Resize(Image img, int iWidth, int iHeight)
{
Bitmap bmp = new Bitmap(iWidth, iHeight);
... |
bff84cf9babfde51175d6e9dab160bdb0cfedbe9 | C# | RodolfoZamora999/Gauss_Seidel | /Gauss_Seidel/Form1.cs | 3 | 3 | using System;
using System.Drawing;
using System.Windows.Forms;
namespace Gauss_Seidel
{
public partial class frmMetodos : Form
{
//Esta matriz almacena los valores de "x" calculados.
private double[] valoresX;
private ArrayDynamic arrayDynamic;
public frmMetodos()
{
... |
1e9c7ca0bd2862ccaf05e25f79431814c10d0ab8 | C# | shendongnian/download4 | /code6/1119637-29401381-87196730-2.cs | 3.109375 | 3 | string fetchContentString(object o)
{
if (o == null)
{
return null;
}
if(o is string)
{
return o.ToString();
}
if(o is ContentControl)
... |
7922a1fa7d668dd063a4a5e45c7da349f87cced0 | C# | mwlk/dicsys-academy-.net | /solution-academy/Services/IngredienteService.cs | 2.828125 | 3 | using Microsoft.EntityFrameworkCore;
using Persistencia.Database.Models;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Services
{
public class IngredienteService
{
public void Add(Ingrediente ingrediente) {
using ApplicationDbContext db = new ApplicationDbCon... |
555be99f1234a0a0dd67206d2afbf46270f7f49b | C# | shendongnian/download4 | /first_version_download2/403135-35105261-109683084-2.cs | 3.21875 | 3 | public static List<string> GetBetweenAll(this string main, string start, string finish, bool preserve = false, int index = 0)
{
List<string> matches = new List<string>();
Match gbMatch = new Regex(Regex.Escape(start) + "(.+?)" + Regex.Escape(finish)).Match(main, index);
while (gbMatch.Success)
{
matches.A... |
4f0b7a7d7a169f6d6c634407173b370c6e646290 | C# | yusuflateef/dotnetRecap | /CustomerAppDAL/UOW/UnitOfWorkMem.cs | 2.71875 | 3 | using System;
using CustomerAppDAL.Context;
using CustomerAppDAL.Repositories;
namespace CustomerAppDAL.UOW
{
public class UnitOfWorkMem : IUnitOfWork
{
public ICustomerRepository CustomerRepository { get; internal set; }
private InMemoryContext context;
public UnitOfWorkMem()
... |
3980fde287157df5cf313577d38a6c906433702b | C# | rkvtsn/sch-dev | /Mvc_Schedule.Models/DataModels/Repositories/RepositorySubjects.cs | 2.625 | 3 | using System.Collections.Generic;
using System.Data.Entity.Migrations;
using System.Linq;
using System.Text;
using System.Web;
using Mvc_Schedule.Models.DataModels.Entities;
namespace Mvc_Schedule.Models.DataModels.Repositories
{
public class RepositorySubjects : RepositoryBase<ConnectionContext, Subject... |
b9ca4fce9c9710c4d16dfe50bca7f02bbdc6478e | C# | Devjoeri/Memory | /App/Memory/Memory/MemoryGrid.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace Memory
{
/// <summa... |
035da99969dd19d65b5df775060edf524c2e47ba | C# | jharnack79/EECS393Project | /GetThiqqq/GetThiqqq/Repository/ForumTopicRepository.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;
using GetThiqqq.Constants;
using GetThiqqq.Models;
using GetThiqqq.Services;
namespace GetThiqqq.Repository
{
public interface IForumTopicRepository
{
List<ForumTopic> GetAllForumTopics();
ForumTop... |
108914098f0f5b7201c96a9b7ba2b08ec7ed5215 | C# | j-a-rave/monogame-demo | /MGLib/ParallaxManager.cs | 2.75 | 3 | /*a class for parallax-scrolling environment elements and backgrounds, as well as a manager for them, using Camera2D.
Jacob Rave Dec 2015*/
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace MGLib
{
public static class ParallaxManager
... |
cd760bd41067e8c34dd1571e804985bc3fdc93b2 | C# | vladkinoman/information-security | /src/Lab_2(CaesarCipher)/MainForm.cs | 3.078125 | 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.IO;
namespace InfoProtection
{
public partial class MainForm : Form
{
publi... |
d73aaf0fb2901ef97314169a928565e611b9c22e | C# | r-Larch/MouseTrap | /MouseTrap/src/Logger.cs | 2.828125 | 3 | using System.ComponentModel;
using System.Diagnostics;
using System.Text;
using MouseTrap.Models;
namespace MouseTrap;
internal class Logger : SettingsFile {
private readonly string _datetimeFormat = "yyyy-MM-dd HH:mm:ss.fff";
private readonly object _fileLock = new();
public readonly string LogFilename... |
b4f167a5ff97a26bce0db92156ae5ddb549e5ba7 | C# | shendongnian/download4 | /code4/696981-30118206-116030877-2.cs | 3.296875 | 3 | bool IsTheSameCellValue(int column, int row)
{
DataGridViewCell cell1 = dataGridView1[column, row];
DataGridViewCell cell2 = dataGridView1[column, row - 1];
if (cell1.Value == null || cell2.Value == null)
{
return false;
}
... |