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 |
|---|---|---|---|---|---|---|
87bfe4ee5e7b2c4937d91e1235e5b0a72f39ff10 | C# | Tacha-S/jiro | /WindowsFormsApplication1/WindowsFormsApplication1/Form1.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApplication1;
namespace Jiro {
public partial class Form1 :Form {
staff Mr... |
aa26c812e8cf8de9278e0e338d030b52bf8e429c | C# | bbqchickenrobot/atomic-bomberman-xna | /BomberEngine/Core/Events/EventHandlerList.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BomberEngine.Core.Events
{
public class EventHandlerList : BaseList<IEventHandler>, IEventHandler
{
public static readonly EventHandlerList Null = new NullEventHandlerList();
private static readonly... |
010f7cdc5c8cc216df0af0133e35f8dc80d11866 | C# | asfdfdfd/Ludum-Dare-46 | /Assets/Common/Scripts/GameState.cs | 2.640625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameState
{
public const int ArthurMaxHealth = 100;
public const int LancelotMaxHealth = 100;
public static readonly GameState Instance = new GameState();
private bool _hasApple = false;
private ... |
120d7150ab29de88b5ef7c42a11c55b2e8616d36 | C# | bigQY/BankManageWPF | /BankManage/money/bank/BankCustom.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using BankManage.common;
namespace BankManage.money.bank
{
public class BankCustom
{
public BankEntities bankEntities = new BankEntities();
public AccountIn... |
178eee075294327b96049d56ae8db6639aa73c2d | C# | 0re5ama/blankWebApp | /BlankWebApp/DLLclass.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using System.Data;
namespace BlankWebApp
{
public class DLLclass
{
string connString = "Data Source=.\\SQLEXPRESS;Initial Catalog=studentdb;Integrated Security=... |
a3d59bc2cbda6faefa8efd4787f17a36b452975e | C# | SeeminglyScience/ILAssembler | /src/ILAssembler/ReadOnlyListSegment.cs | 2.96875 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace ILAssembler
{
internal readonly struct ReadOnlyListSegment<T> : IReadOnlyList<T>, IEquatable<ReadOnlyListSegment<T>>
{
private readonly IReadOnlyList<T> _source;
private r... |
215c02bf6d69095905738fa7639307909300fde7 | C# | Dyr-El/advent_of_code_2020 | /jofafrazze-csharp/day06/Day06.cs | 3.421875 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using AdventOfCode;
namespace day06
{
public class Day06
{
readonly static string nsname = typeof(Day06).Namespace;
readonly static string inputPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"..\.... |
0a824a74651c92a5cbe021bc146571d349e25661 | C# | BoysGang/MaterialSupplyDepartment | /src/MTO/FormAnalysis.cs | 2.578125 | 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.Globalization;
using MTO.Models;
namespace MTO
{
public partial class FormAnalysis : F... |
62a21c803078a0826a137f4738e7dbd40a7853a5 | C# | ridgew/fmq | /Fanmaquar.Common/Configuration/XmlSerializeSectionHandler.cs | 2.859375 | 3 | using System;
using System.Configuration;
using System.Xml;
using System.Xml.Serialization;
using System.Xml.XPath;
namespace Fanmaquar.Configuration
{
/// <summary>
/// Configuration section handler that deserializes connfiguration settings to an object.
/// </summary>
/// <remarks>The configuration ... |
26fe1cb2b36caafac5b4983f5b1ef1620719a2f3 | C# | MohammadDaneshvar/VehicleTrackingSystem | /VehicleDomain/3-Infra/Vehicle.Infra.Persistance.EF/Mapper/PermissionMapper.cs | 2.53125 | 3 | using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Vehicle.Domain;
namespace Vehicle.Infra.Persistance.EF.Mapper
{
public class PermissionMapper : IEntityTypeConfiguration<Permission>
{
public void Configure(EntityTypeBuilder<Permission> builder)
... |
d57d3d937dd1882f5d8503f257ea3fe8e1ecc9b9 | C# | david-denis/Investment | /Investment/SQLite/DBManager.cs | 2.75 | 3 | using SQLite;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.IO;
namespace Investment
{
public class DBManager : SQLiteConnection
{
public DBManager(String dbPath) : base(dbPath)
{
}
public List<TblInvestmentType> GetInvestmentTypes()
... |
b4c536a2f0cfa94a495a01c3a54f30d790e247e8 | C# | maxim2347/Work | /WpfProject/WpfProject/Common/BaseCommand.cs | 2.984375 | 3 | using System;
using System.Windows;
using System.Windows.Input;
namespace WpfProject.Common {
public class BaseCommand : ICommand {
public event EventHandler CanExecuteChanged;
readonly Action action1;
readonly Action<object> action2;
readonly Func<object,bool> canExecuteParamete... |
ac224694c2751969ae415cdfbe2fbe033791ac02 | C# | shendongnian/download4 | /code8/1400187-38012343-121188274-2.cs | 3.4375 | 3 | public static bool TryChangeType<T, TR>(T input, out TR output)
{
bool result = false;
try
{
Type type = Nullable.GetUnderlyingType(typeof(TR));
output = (TR)Convert.ChangeType(input, type);
result = true;
... |
6056052d5978af8f7584c3c3af7fca904c6564d0 | C# | ilyadubovis/BuildingManager | /Data/DataContext.cs | 2.640625 | 3 | namespace Data
{
using Data.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Microsoft.Extensions.Options;
using System;
public class DataContext : DbContext
{
private readonly IOptions<DataSettings> options;
public D... |
1dac8e60d82f08bc2ad4eaa37662319114683e12 | C# | CarlosNaranjoMx/ProgramacionCSharp | /series/05-Contactos/05-Contactos/Program.cs | 3.5625 | 4 | using System;
using System.Collections.Generic;
using Functions;//Importamos nuestras propias funciones
namespace _05_Contactos{
class Program{
//Decalaracion del diccionario
static Dictionary<string,int> dic = new Dictionary<string,int>();
/////////////////////////////////////////////////////////... |
70e55a54bb652df422583eda078b8d2475ac5c2c | C# | MK4H/MHUrho | /MHUrho/MHUrho/UserInterface/MenuScreen.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using MHUrho.StartupManagement;
using Urho.Gui;
namespace MHUrho.UserInterface
{
abstract class MenuScreen {
protected abstract class ScreenBase : IDisposable {
MenuScreen proxyBase;
protected MHUrhoApp Game => proxyBase.Game;
protec... |
6019e499d0cdc91c4fd301e15ca5e66d9bdf4ce7 | C# | daihongbin/NetCoreStudy | /DockerSample/PostgresSample/MyContext.cs | 2.8125 | 3 | using Microsoft.EntityFrameworkCore;
using System;
namespace PostgresSample
{
public class MyContext : DbContext
{
public MyContext(DbContextOptions<MyContext> options) : base(options)
{
}
public DbSet<Student> Students { get; set; }
}
public class Student
{
... |
f7f601e1bbf83449d3dc101a0cff6c07adcb82ed | C# | nickzava/gddProject2 | /Assets/Tiles/TileManager.cs | 2.609375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TileManager : MonoBehaviour
{
public static TileManager Instance;
int width = 10;
int height = 10;
public float tileSize;
public GameObject tilePref;
public GameObject noRotPref;
private Tile[,] til... |
9fb05e2a53a9d5739e4c9fc37e0f265195c6a682 | C# | Epicguru/GVS | /AnimationPacker/Program.cs | 3.15625 | 3 | using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
namespace AnimationPacker
{
internal static class Program
{
private static void Main(string[] args)
{
try
{
// TODO allow for passing of max width and output ... |
4c187402c6c42b6b23c909c588941c9f95ecbe04 | C# | thomas1329/Website-for-school | /maimai progect/maimai progect/profileEdit.aspx.cs | 2.546875 | 3 | using System;
using System.Data;
namespace maimai_progect
{
public partial class profileEdit : System.Web.UI.Page
{
public string greeting = "";
public string userMsg = "";
public string tableStringAll = "";
protected void Page_Load(object sender, EventArgs e)
{
... |
1353712104752c67eb933a9ee9fb3a1642c9843d | C# | howadoor/BizInfo | /devel/BizInfo/Perenis.Core/Reflection/AssemblyGlobalInitializer.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using Perenis.Core.Reflection.Configuration;
namespace Perenis.Core.Reflection
{
/// <summary>
/// Handles global initialization of assemblies being loaded within the curre... |
d9f7a80c4764f53b883216466a25b99fea24746b | C# | LazyTarget/Lux | /src/Lux/IO/Models/DirectoryMock.cs | 3.15625 | 3 | using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
namespace Lux.IO
{
public class DirectoryMock
{
private readonly SortedDictionary<string, FileMock> _files;
private readonly SortedDictionary<string, DirectoryMock> _directories;
... |
ac5a930d67ff693a7df9607e35e040f7d2145112 | C# | NastyaGalaeva/2kurs-c- | /LICENSE.md/lab1/lab1/Program.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace lab1
{
class Program
{
static void Main(string[] args)
{
Console.SetWindowSize(50, 50);
Console.BackgroundColor = ConsoleColor.Yell... |
a8e9fb46e2cdc426c9af0e5c41282859a5b3d340 | C# | gmiller6310/Software-Development-I-Labs | /Lab7/Lab7/Form1.cs | 3.328125 | 3 | //Grading ID: B9073
// Lab #: 7
// Due Date: November 6, 2016 11:59 P.M.
// Course Section: CIS199-75
// Brief Description: User inputs a desired month number and selects a language and the program returns the corresponding month in the selected language
using System;
using System.Collections.Generic;
using Sys... |
b7843f0a59b9c9f599821613b343d37d5dcfc283 | C# | matinaTwinkl3/JsonReader | /JsonReader/Controllers/HomeController.cs | 2.515625 | 3 | using JsonReader.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
n... |
78c14b4331bbe7162d6917eb2c9ee20bbe6fa8d8 | C# | omerkirecligol/Urun-Yedek-Parca- | /Entity/DataInitializer.cs | 2.875 | 3 | using MyChallenge.Entitiy;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
namespace MyChallenge.Entity
{
public class DataInitializer:CreateDatabaseIfNotExists<DataContext>
{
//Veritabanına ilk değerleri atamak için oluşturdumuz sınıf
... |
ec6aa1191a3de4514fe6f96a65d4c5254c1b8e26 | C# | Arikatamo/Students | /DAL/Student.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Configuration;
namespace DAL
{
[Serializable]
public class Student
{
private string idCounter;
private string _name;
// Ключ предмет... |
6f90082d5bc44a287f84234adff7e90c6878eb09 | C# | devon-wright/comp329-database-project | /comp329-database-project-master/comp329-database-project/New_Employee.cs | 2.96875 | 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 comp329_database_project
{
public partial class New_Employee : Form
{
OracleAc... |
72cd5957e64d408afa032851b4d8a5511c1a8590 | C# | mingslogar/dimension4 | /Daytimer.Controls/DatePickerControl.xaml.cs | 2.65625 | 3 | using System;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
namespace Daytimer.Controls
{
/// <summary>
/// Interaction logic for DatePickerControl.xaml
/// </summary>
[ComVisible(false)]
public partial class DatePickerControl :... |
a1410049ccc9eb812b74d2be5fc0c44756c1fa7b | C# | huashu91/- | /final/BallGameManage/dal/dal_users.cs | 2.71875 | 3 | using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using Entity;
namespace Dal
{
/// <summary>
/// 数据访问类:users
/// </summary>
public partial class dal_users
{
#region BasicMethod
/// <summary>
/// 管理员登录
/// </summary>
/// <param na... |
becf434a408aac59f69b3e9a36113f7dbb9d5eae | C# | vicenteconejerosdelacruz/UMayor-Proyecto-Titulo-SoulAvenger-2012 | /Assets/Scripts/Gui/FancyLabel/Utils/HexUtil.cs | 3.53125 | 4 | using UnityEngine;
public static class HexUtil
{
/// <summary>
/// Convert an hexadecimal value into an integer value
/// </summary>
/// <param name="value">The hexadecimal value</param>
/// <returns>The integer value</returns>
public static int HexToInt(string value)
{
int intValue;... |
9cab060ef5c60eaa0bb1b5abd245c43dd2b76089 | C# | spaki/microservices-demo | /MSD.Product/MSD.Product.Domain/Models/Product.cs | 2.625 | 3 | using MSD.Product.Domain.Models.Common;
using MSD.Product.Infra.Warning.Dtos;
using System;
namespace MSD.Product.Domain.Models
{
public class Product : EntityBase
{
public Product()
{
}
public Product(string name, string externalId, DateTime createdAtUtc)
{
... |
99be6d88e2457207580d669f5c0f070cb77c72fa | C# | Luka73/Maxime-CSharp | /Maxime/Entities/Calculadora.cs | 3.515625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Maxime.Entities
{
public class Calculadora
{
public static double Soma(double n1, double n2)
{
return n1 + n2;
}
public static double Subtr... |
0e2e4d3dc4520ce84243663d6626ca3e66237ca3 | C# | shmoaslam/webapi | /NationalCriminal/BusinessEntities/CriminalEntity.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;
namespace BusinessEntities
{
public partial class CriminalEntity
{
public long Id { get; set; }
[StringL... |
9381654a32c2bf43d06b8e6d765e40156ef12fec | C# | therealjordanlee/Octopus.Migrate | /src/Clients/OctopusDeployClient.cs | 2.546875 | 3 | using Microsoft.TeamFoundation.Common;
using Octopus.Client;
using Octopus.Client.Model;
using Octopus.Migrate.Models;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Octopus.Migrate.Clients
{
public interface IOctopusDeployClient
{
IEnumerable<VariableModel> GetLibraryVar... |
0d98946901feb99747191ce1390021eb98da8acc | C# | UnVoiding/UnicornInTheCloset | /Assets/_game/Scripts/Engine/UI/Widgets/Counter.cs | 2.578125 | 3 | using TMPro;
using UnityEngine;
using UnityEngine.UI;
using System;
namespace RomenoCompany
{
public class Counter : Widget
{
[SerializeField] public int order = 0;
[SerializeField] protected Image icon = null;
[SerializeField] protected TextMeshProUGUI text = null;
[SerializeF... |
a2813839a0e5f04ee37aafda2fdc0a85337ec0f4 | C# | dotliquid/dotliquid | /src/DotLiquid.Tests/Util/ExpressionUtilityTest.cs | 2.65625 | 3 | using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
namespace DotLiquid.Tests.Util
{
[TestFixture]
public class ExpressionUtilityTest
{
private Dictionary<Type, (double, double)> typeLimits;
[SetUp]
public void Setup()
{
type... |
f01f0c85becf9cfbf7cec233721d0e6885a4fb4a | C# | sergeybykov/orleans | /test/Grains/TestGrains/DeadlockGrain.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Orleans;
using Orleans.Concurrency;
using Orleans.Runtime;
using UnitTests.GrainInterfaces;
namespace UnitTests.Grains
{
internal class DeadlockGrain
{
internal static Task CallNext(I... |
f0a5ec55dada77a4436b3a4ab6d5bd7ed0db6dcf | C# | jashif/excellibrarywinrt | /MergeCell.cs | 2.53125 | 3 | // ***********************************************************************
// Assembly : ExcelManager
// Author : Dheeraj
// ***********************************************************************
// <copyright file="Cell.cs" company="">
// Copyright (c) . All rights reserved.
// </copyright>
// ... |
0db41b38407a43769cda95e075ae321728bec0e1 | C# | NaskoVasilev/Algorithms | /COMBINATORIAL ALGORITHMS/CombinatorialAlgorithms-Exercise/Snakes/Program.cs | 3.5625 | 4 | using System;
using System.Collections.Generic;
namespace Snakes
{
class Program
{
private const char Start = 'S';
private const char Right = 'R';
private const char Left = 'L';
private const char Down = 'D';
private const char Up = 'U';
private readonly static ... |
763bd0d35299e12d9e814eeae1af3c4f1f0d64a6 | C# | frank198008/CsharpDesignPattern | /DesignPatternCom/Entity/SUV.cs | 2.578125 | 3 | namespace DesignPatternCom.Entity
{
public abstract class SUV : Car
{
public SUV()
{
}
public SUV(string driver) : base(driver)
{
}
}
} |
67e77b666ab5b1bb080c4c62a3a8307f077e2e4e | C# | plcart/starter-c-sharp-web-api | /Starter.Infra.Data/Repositories/RepositoryBase.cs | 2.625 | 3 | using Starter.Domain.Interfaces.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Starter.Infra.Data.Context;
using System.Data.Entity;
namespace Starter.Infra.Data.Repositories
{
public class RepositoryBase<T> : IRepositoryBase<T> where T : clas... |
9f3a09346d8a468279b7ca22268122b641772ddd | C# | mrlst16/CommonCore | /CommonCore.Tests/RuleTrees/GenericComparisonRuleTests.cs | 2.59375 | 3 | using CommonCore2.RuleTrees.Comparison;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace CommonCore.Tests.RuleTrees
{
public class GenericComparisonRuleTests
{
[Theory]
[InlineData("one", "two")]
[InlineData(1, 2)... |
f9171f30ae0756206edb3ca1ed70382f36089f29 | C# | 1905-may06-dotnet/Coombs_Daniel_Project0 | /01-CSharp/VS2019proj/BankingInterfacesExample/BankingExampleInterfaces/BankingExampleInterfaces/Company.cs | 3.453125 | 3 | using System;
namespace BankingExampleInterfaces
{
public class Company : IBankOfAmerica, IChaseBank
{
decimal ICreditCard.CreditScore { get { decimal CreditScore; }; set { CreditScore = value; }; }
bool IBankOfAmerica.Offer(decimal CreditScore)
{
if (CreditScore > 7M) {
... |
812056d48711687f11f88283892468e0bf6ae1c2 | C# | LottePitcher/CSharp-IP2Location | /Demo/Program.cs | 3 | 3 | using IP2Location;
using System;
using System.Collections.Generic;
namespace Demo
{
internal class Program
{
private static void Main(string[] args)
{
List<IPRangeCountry> range = IP2LocationHandler.Download();
//Save to database or whatever your backend st... |
9767f89ef8115384570dc4094b9291ad8d995dad | C# | mkbiltek/TelerikAcademy-4 | /OOP/OOP-4-Object-Oriented-Programming-Principles-Part1/01. School/School.cs | 3.46875 | 3 | using System;
using System.Collections.Generic;
public class School
{
private List<Class> classes;
public School()
{
this.classes = new List<Class>();
}
public Class[] Classes
{
get
{
return this.classes.ToArray();
}
}
public void AddClass... |
a66081b198ee5e5a4d6e48f243942fe196759eb5 | C# | rwkama1/BackendProyectoAnalistaSistemas | /Logica/Clases/OrdenesTaller/ControladorOT.cs | 2.609375 | 3 | using Datos;
using Logica.Clases.GestionProductos;
using Logica.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Logica.Clases.OrdenesTaller
{
internal class ControladorOT : IControladorOT
{
private static Control... |
c8ff1ab7d7cc52cdb0605d7029d35717912261d6 | C# | microsoft/MSBuildPrediction | /src/BuildPrediction/Extensions.cs | 2.59375 | 3 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Build.Prediction
{
using System;
/// <summary>
/// Code helpers.
/// </summary>
internal static class Extensions
{
... |
89b8538a1fd4ed44bb3a77f4527f3b89c1d23a5d | C# | luongnd2000/APStore | /APStore/APStore/Models/DAO/DiscountDAO.cs | 2.84375 | 3 | using APStore.Models.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace APStore.Models.DAO
{
public class DiscountDAO
{
APStoreEntities db = null;
public DiscountDAO()
{
db = new APStoreEntities();
}
pub... |
b30e0a1dbdda0cfcaa801b032dc4044ca1d1763c | C# | paladino3/C-Profissional-Dr.Nelio-Alves | /Ex31 Classes abstratas/Ex28/Program.cs | 3.65625 | 4 | using Ex31.Entities;
using System;
using System.Collections.Generic;
using System.Globalization;
namespace Ex31
{
class Program
{
static void Main(string[] args)
{
// Account acc1 = new Account(080, "Wesley", 580.00); nao funciona porque a classe e Abstract
List<Acco... |
e53442ff14eddb5774f8fd15da6d27e396476b9b | C# | JoseAngelAz/CASS-tarea-tarde-miercoles-13-enero | /Ejercicios/Tablas15.cs | 3.375 | 3 | using static System.Console;
namespace Jueves13.Ejercicios
{
public class Tablas15
{
//variables
int numero;
//controlador de la clase
public void ControladorTablas()
{
PedirNumeroTabla();
CrearTablas();
}
//pedir valor al usuario
... |
a34cbeeb3e07c88d2e97a0fac627f4b288e4023f | C# | amcguinness056/VeterinaryPracticeAssignment | /VeterinaryPractice/VeterinaryMenu.cs | 3.1875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
namespace VeterinaryPractice
{
class VeterinaryMenu
{
static void Main(string[] args)
{
VeterinaryMenu veterinaryMenu = new Vete... |
8395727ed1843903291c0187543ebce76bec20e8 | C# | DimchoLakov/Domain-Driven-Design-with-ASP.NET-Core-Microservices | /OreonCinema/OreonCinema.Application/Identity/Commands/ChangePassword/ChangePasswordCommand.cs | 2.515625 | 3 | namespace OreonCinema.Application.Identity.Commands.ChangePassword
{
using Common;
using Common.Contracts;
using MediatR;
using System.Threading;
using System.Threading.Tasks;
public class ChangePasswordCommand : IRequest<Result>
{
public string CurrentPassword { get; set; } = defa... |
d87ecd688691e32b173f9bdb37d4ed5888a5fe56 | C# | TommyForsberg/TommyForsberg-Labbar | /Grundläggande ASP/CatHome/CatHome/Models/Entities/CatHomeContext.cs | 2.53125 | 3 | using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
using AutoMapper;
namespace CatHome.Models.Entities
{
public partial class CatHomeContext : DbContext
{
public virtual DbSet<Cat> Cat { get; set; }
protected override void OnModelCreating(ModelBui... |
545d796ceb6c411c43b3b915182303cf8c835279 | C# | seavan/oilring | /trunk/database/DataServiceBehavior.cs | 2.640625 | 3 | using System.Linq;
using Database.Entities;
namespace Database
{
public class DataServiceBehavior<_T> where _T : IDatabaseEntity
{
public DataServiceBehavior()
{
OnlyApproved = false;
OnlyPublished = false;
LangOrDefault = false;
Lang... |
ba4fc634e9070f6576507033a02c7afcbd6d0061 | C# | q4a/Flummery | /Flummery.Core/ExtensionMethods.cs | 3.15625 | 3 | using System;
namespace Flummery.Core
{
public static class ExtensionMethods
{
public static long NextLong(this Random random)
{
return random.NextLong(0, long.MaxValue);
}
public static long NextLong(this Random random, long min, long max)
{
... |
cb15f51408a7fcf9a275c67acdc8de70368103b9 | C# | devkhan/MedSetAPI | /MedSet.RESTAPI/Utils.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Web;
using System.Web.UI.WebControls;
namespace MedSet.RESTAPI
{
/// <summary>
///
/// </summary>
public class Utils
{
private static FileStream F = new FileS... |
c90847a9b53c571ab3d135e35276e554ff628e63 | C# | shendongnian/download4 | /code1/168605-3146408-6516249-2.cs | 2.84375 | 3 | public class Foo {
public static const int DefaultSpeed = 100;
private int _speed = DefaultSpeed;
[DefaultValue(DefaultSpeed)]
public int Speed { get { return _speed; } set { _speed = value; } }
}
----
public class Foo {
public static Color DefaultForecolor { ... |
478bdc10ae06f38325846267da0251cce0f36a0e | C# | mkbiltek/Ashor | /Modules/AshorStandardModule/AshorStandardModule/CopyCommand.cs | 2.96875 | 3 | using System;
using System.IO;
using System.Linq;
using System.Text;
using LibMothership;
using LibMothership.Networking;
namespace AshorStandardModule
{
public class CopyCommand : ICommand
{
public string Name { get { return "cp"; } }
public string Syntax { get { return "cp <source> <dest... |
53b568474d9133584bd87dd4b314a6763a3aa85a | C# | MasaMatsu/AhpNet | /AhpNet/AHP.cs | 2.96875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using MathNet.Numerics.LinearAlgebra;
namespace AhpNet
{
public class AHP<T> where T : struct, IEquatable<T>, IFormattable
{
#region Properties
/// <summary>
/// The matrix for pairwise comparison of Problem-Evaluation... |
1308933d0b8a5978aff289a7df050445bba16e7a | C# | jtomes123/ProgrammingLanguage | /SchoolProject/Program.cs | 3.28125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using MathParserLib;
namespace SchoolProject
{
class Program
{
static string currentVersion = "0.1";
static void Main(string[] args)
{
... |
e76144e892889314ea1fd8118369bdb3d7731364 | C# | kleberandrade/arret-game | /Assets/Scripts/Helpers/SemVer.cs | 2.671875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum ClientMaturity
{
MATURITY_ALPHA, MATURITY_BETA, MATURITY_RC, MATURITY_STABLE
}
public class SemVer : MonoBehaviour {
/**
* MAJOR version when you make incompatible API changes,
* MINOR version when you add fu... |
67af5fba1e8549d479d4f034e73770d142895737 | C# | Veysileth/LearningCsharp | /LearningLibrary_CSharp/Patterns/Design/Behavioral/Iterator/Storage/ConcreteCollection.cs | 3.59375 | 4 | using System.Collections.Generic;
namespace LearningCsharpLibrary.Patterns.Design.Behavioral.Iterator
{
internal class ConcreteCollection : AbstractCollection
{
private List<Storage.Employee> listEmployees = new();
//Create Iterator
public Storage.Iterator CreateIterator()
{
... |
3d8f6949add5348f7c1a6788283dda36e008e5c9 | C# | AyleenOwO/WebUPA | /Core/Controllers/Sistema.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using Core.DAO;
using Core.Models;
using Microsoft.EntityFrameworkCore.Migrations.Operations;
namespace Core.Controllers
{
/// <summary>
/// Implementacion de la interface ISistema.
/// </summary>
public sealed class ... |
46f531884d61142c83bc50d232ba7af81f2e4ab3 | C# | cbohan/LudumDare37 | /Assets/UI Scripts/StoreScript.cs | 2.78125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class StoreScript : MonoBehaviour
{
public Text GoldText;
public GameObject[] Boxes;
void Start ()
{
UpdateGoldText();
}
public void UpdateGoldText... |
5b8adbebd6523debc2aa789eea4eaaff910235cc | C# | JaCraig/Craig-s-Utility-Library | /Utilities/IO/Encryption/Default/RSA.cs | 2.6875 | 3 | /*
Copyright (c) 2014 <a href="http://www.gutgames.com">James Craig</a>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, ... |
0ac6e73544fa292db42fba5b73511b39fc97698d | C# | leszekkoc/azure-cosmos-dotnet-v3 | /Microsoft.Azure.Cosmos/src/Resource/CosmosIdentifier.cs | 2.8125 | 3 | //------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
namespace Microsoft.Azure.Cosmos
{
using System;
using System.Globalization;
using System.Text;
/// <summary>
... |
88b296a242c22daae8ad23f43a136b1db3e7d745 | C# | rabotodatel/OnlineRadioStation | /RadioStation/ObjectStructure.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RadioStationMiddleware
{
class ObjectStructure
{
private List<IPlaylist> _playlists = new List<IPlaylist>();
public void Add(IPlaylist playlist)
{
_... |
3852e30bd0ef51c3bc6af417d1b377b5d541da66 | C# | Lucas-Araujo15/Exercicios | /Sistema de Produtos1/Program.cs | 3.046875 | 3 | using System;
using System.Threading;
namespace Sistema_de_Produtos1
{
class Program
{
static int tamanho = 2;
static int tamanho2 = 2;
static string[] nomesReserva = new string[tamanho2];
static float[] precosReserva = new float[tamanho2];
static bool[] promocaoReser... |
3c3a9e2b6ba43e6e668d39ce3ce146e7fdb14c20 | C# | HristoRaykov/Algorithms07.2019 | /04.DynamicProgramI-Lab/Dynamic-ProgI-Lab/P01Fibonacci/Program.cs | 3.34375 | 3 | using System;
namespace P01Fibonacci
{
internal class Program
{
public static void Main(string[] args)
{
var n = int.Parse(Console.ReadLine());
var f1 = 1;
var f2 = 1;
int fn;
var counter = 2;
while (counter <= n)
... |
4d64850b5488c2080ba204a0320662669749668e | C# | lrecht/ParadigmComparison | /benchmarks/huffman_coding/oop_c#/Program.cs | 3.21875 | 3 | using System.Text;
using System.Collections.Generic;
using System;
using System.IO;
using benchmark;
namespace oop_c_
{
class Program
{
static void Main(string[] args)
{
var iterations = args.Length > 0 ? int.Parse(args[0]) : 1;
var bm = new Benchmark(itera... |
2e9c9a62fb4601052f513bdaffbb4f23a7695070 | C# | ahung89/TreeGame | /Assets/Scripts/Interaction/Interactable.cs | 2.625 | 3 | using UnityEngine;
public class Interactable : MonoBehaviour {
bool isInteracting = false;
Renderer renderer;
public bool IsInteracting()
{
return isInteracting;
}
public virtual bool CanInteractWith(Pickupable heldItem)
{
// By default, the object should not be interact... |
3e89d6df33e5f04d4ae2f641fcbcabe4dd30a368 | C# | djnbud/TheJourneyAheadMap | /TheJourneyAhead/InputManager.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
namespace TheJourneyAhead
{
public class InputManager
{
#region Variables
//public static extern short GetKeyState(int keyCode... |
b91ec0fbd150db56b6bf5131a3606719fdb49346 | C# | aminakhtar/LFU | /LFU/Views/GridViewLoadfile.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Data.SQLite;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
namespace LFU.Views
{
public class GridViewLoadf... |
6d17930c9e61ddb750bd8681b288c91314f6f5ad | C# | kktseng/CritterCampClient | /CritterCamp/CritterCamp.Droid/Lib/TCPConnection.cs | 2.953125 | 3 | using CritterCamp.Core.Lib;
using Java.IO;
using Java.Net;
using System;
using System.Threading;
namespace CritterCamp.Droid.Lib {
class TCPConnection : ITCPConnection {
private static readonly int TIMEOUT = 4000; // timeout is 4s
Socket mSocket = null;
BufferedWriter writer;
Buff... |
bc28bf6b3fc805aa8bc8c533e1af7db51ecbd95e | C# | zsterling13/IS413_Provo_Rest_Assignment4_ZS | /Models/Restaurants.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace IS413_Provo_Rest_Assignment4_ZS.Models
{
public class Restaurants
{
//Constructor that sets the rank of each entered restaurant so that it is not edi... |
583f00dcff0eadfd9e40fbca4a90cd6c0fb38fc8 | C# | codefellows/seattle-java-401d5 | /class-35-graphs/implementation-examples/c-sharp/Classes/Graph.cs | 3.953125 | 4 | using System.Collections.Generic;
namespace Graphs.Classes
{
class Graph<T>
{
public Dictionary<Vertex<T>, List<Edge<T>>> AdjacencyList { get; set; }
private int _size = 0;
public Graph()
{
AdjacencyList = new Dictionary<Vertex<T>, List<Edge<T>>>();
}
... |
49815ddf62b40ece77c482a4ce5748407c023811 | C# | aptemhh/CollectionSort | /Omgtu.CollectionSortExcercise/Omgtu.CollectionSortExcercise/PersonComparer.cs | 3.296875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Omgtu.CollectionSortExcercise
{
public static class PersonComparer
{
public static int CompareByName(Person leftPerson, Person rightPerson)
{
if (leftPerson... |
24cee728483f8e649554f7c76b94aa5b15181aaf | C# | davidemoraschi/PivotTable | /Microsoft.Samples.WPF.CustomControls.PivotTable/IMember.cs | 2.640625 | 3 | //---------------------------------------------------------------------
// Copyright (c) Microsoft Corporation, 2006
//
// Description: IMember interface.
// Creator: t-tomkm
// Date Created: 07/20/2006
//---------------------------------------------------------------------
using System;
using System.Collections.G... |
6c2c8d4bff511bb8a92d14992b9f0b852b543423 | C# | Martin-BG/SoftUni-Algorithms | /10. Dynamic Programming/Lab/02. Longest Increasing Subsequence/02. Longest Increasing Subsequence.cs | 3.640625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
namespace _02.Longest_Increasing_Subsequence
{
internal class Program
{
private static void Main()
{
var readLine = Console.ReadLine();
if (readLine == null)
{
return;
... |
1621080fd736a9267f5e1e5188b1846cdf68e3f5 | C# | SelinaWernike/VuforiaTierpark | /Assets/Scripts/Event.cs | 2.9375 | 3 | using System.Collections;
using System;
using System.Collections.Generic;
using UnityEngine;
public class Event
{
private int id;
private string name;
private DateTime time;
private double distance;
private double lat;
private double lng;
public Event(int id, string name, DateTime time, d... |
f483d8a0b90f220db0e383963d497fbc3db7e9f8 | C# | mjozwiak-kpmg/hierarchyWizard | /HierarchyWizard/HierarchyWizard/DummyParser.cs | 2.609375 | 3 | using HierarchyWizard.Interfaces;
using System.Collections.Generic;
using HierarchyWizard.enums;
using WordParser;
namespace HierarchyWizard
{
public class DummyParser : IDocumentParser
{
public DummyParser()
{
}
public PageBatch GetPages()
{
return new Pag... |
aa53b2e9165dbbf3aad5e3a84b2a654f20f646df | C# | juancollsoler/ex.tv.player.app.v2 | /MediaPortal-1-master/Common-MP-TVE3/External/Gentle.NET/Source/Gentle.Common/Reflection/MethodDispatcher.cs | 2.578125 | 3 | /*
* Helper class for determining the best method given a list of available parameters
* Copyright (C) 2005 Morten Mertner
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License 2.1 or later, as
* published by the Free Software Foun... |
fc37c25db76c4fe92f263d3ebe87aa8815206f07 | C# | JoeMariner/Bank-Account | /Savings Account.cs | 3.03125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bank_Account
{
class Savings_Account : BankAccount
{
//fields
public double MinBalance;
public double SavingsGoal;
//properties
public double M... |
e11a5e797424f096957b6497f2595699efe1a765 | C# | motios/BinaryCalcGit | /BinaryCalculator/Entities/Controller.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/// <summary>
/// // last soldier must go to end
//1. set current soldier = last element
// IsPositionChanged = false
// until(hasNext board indx)
// current soldier(last elem... |
3ea16381b5ac2b1c2ab6b5ea6e840ec7a44ee1ad | C# | yuki1900/Projects | /TextAPP/TEXT/findWordForm.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using Microsoft.VisualBasic;
using System.Runtime.InteropServices;
using System.Diagnost... |
a097d6320d36838cc0a413ff951f8470e4b34ac2 | C# | Wolfsblvt/SwitchConfig | /Program.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SwitchConfig
{
public class Program
{
static string RelevantDirectory;
static void Main(string[] arguments)
{
RelevantDirectory = Environment.CurrentDirectory;
Dictionary<string, string> args = Helper.Valida... |
faabb140843d0a85e0424ee567ec0af20f534645 | C# | sweetfa/BushLifeCSCommon | /BushLifeCommon/BushLife/Framework/Clone/ICloneableShallow.cs | 2.515625 | 3 | /**
* Copyright (C) 2014 Bush Life Pty Limited
*
* All rights reserved. No unauthorised copying or redistribution without the prior written
* consent of the management of Bush Life Pty Limited.
*
* www.bushlife.com.au
* sales@bushlife.com.au
*
* PO Box 865, Redcliffe, QLD, 4020, Australia
*
... |
26484ec25e10d0f5c4533c7cd00304cab9fd3d33 | C# | mikepacker/simple_unity_strat_game | /Assets/Scripts/HexGrid.cs | 2.546875 | 3 | using System;
using System.IO;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class HexGrid : MonoBehaviour
{
/// <summary>move grid slightly up so its always visible, and not colliding with the terrain it generates over.</summary>
public const float GRIDYTRANSLATE = 0.03f;
... |
467c1990032f2ea1668077d429db66a46a03b3f7 | C# | jrperez525/2D-Platformer-Puzzle-Game | /SlowTimeCircleBehavior.cs | 2.9375 | 3 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class SlowTimeCircleBehavior : SlowTimeObjBehavior {
private List<MovingObjBehavior> slowedObjects; // List of moving objects that are currently being slowed down
public LayerMask whatIsCollidable; // Layers that can be checked ... |
c222f6d1e049f3d70c9125d41127a9cfccfd254a | C# | yy1985710/SupremeEcsRx | /SupremeEcsRx/Assets/EcsRx/EcsRx/Groups/Group.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using EcsRx.Entities;
namespace EcsRx.Groups
{
public class Group : IGroup, IHasPredicate
{
public Type[] RequiredComponents { get; }
public Type[] ExcludedComponents { get; }
public Predicate<IEntity> EntityPredicate { get; }
... |
970dbe4e2b7651a9d18129d4f51f8cc7e65bbe99 | C# | ryukocn2008/FinTechTest | /CSharp_Tutorial/Properties/Person.cs | 3.703125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Properties
{
class Person
{
private string myName = "N/A";
private int myAge = 0;
public string Name
{
get { return myName; }
s... |
6726b6a8b0dd57452b63585428cdd180cc46150d | C# | Iancic/Karting | /Karting/Assets/Scripts/Menu_Controller.cs | 2.8125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Menu_Controller : MonoBehaviour
{
public int state = 1;
// 1 = Start; 2 = Play; 3 = Game; 4 = Pause
void Update()
{
//folosim getkeydown la animatiile cu vecine care folosesc aceeasi tasta pentru tranzi... |
6187301b1d9cc62fa794e42d37e1c3a175647db4 | C# | WinniePooh-dev/MyProjects | /Drawing/Drawing/Rectangle.cs | 3.203125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace Drawing
{
class Rectangle : Shape
{
public Rectangle()
{
//point_1 = new Point(0, 0);
//point_2 = new Point(0, 0);
... |
fa0955f57f86cb927baf04751915cc20dfe99254 | C# | Walter2054/vrrr | /Teleport_Lauri/Assets/Manager.cs | 2.59375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Manager : MonoBehaviour
{
public GameObject enemy;
private int xPos, zPos;
// Start is called before the first frame update
void Start()
{
StartCoroutine (EnemySpawnCO());
}
// Update is c... |
c93a2975331d1974701110133a7c2675e22ec076 | C# | shendongnian/download4 | /code5/833939-26474882-75935052-2.cs | 2.859375 | 3 | public class InterfaceCollectionAdapter<TConcrete, TInterface> : ICollection<TInterface> where TConcrete : TInterface
{
private Func<ICollection<TConcrete>> _gettor;
private Action<ICollection<TConcrete>> _settor;
private Func<ICollection<TConcrete>> _factory;
private ICollection... |
2589f8ed26f546b32dddec0d4b2bb7c637e18207 | C# | mbrenn/datenmeister-new | /src/DatenMeister.HtmlEngine/HtmlTableCell.cs | 3.265625 | 3 | namespace DatenMeister.HtmlEngine
{
/// <summary>
/// Defines a single html cell which is used in a table row
/// </summary>
public class HtmlTableCell : HtmlElement
{
private readonly HtmlElement _content;
public bool IsHeading { get; set; }
public HtmlTableCell(HtmlEleme... |
af36361592402a6a8c439277c8f02a5b69c566e2 | C# | PaulKolozsvari/Figlut-Suite | /source/trunk/MonoDroid/SDK/Json50r8/Source/Src/Newtonsoft.Json.Tests/Documentation/Samples/Linq/CreateJsonAnonymousObject.cs | 2.96875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json.Linq;
namespace Newtonsoft.Json.Tests.Documentation.Samples.Linq
{
public class CreateJsonAnonymousObject
{
#region Types
public class Post
{
public string Title { get; set; }
public... |
bf72ead6001dd834b668ea4ad9e4ebad41898102 | C# | 0xCM/Meta.Core | /src/Meta.Core.Floor/Common/TransformationKind.cs | 3.140625 | 3 | //-------------------------------------------------------------------------------------------
// MetaCore
// Author: Chris Moore, 0xCM@gmail.com
// License: MIT
//-------------------------------------------------------------------------------------------
namespace Meta.Core
{
/// <summary>
/// Classifies a tra... |
785288451fc11ccdaf19e33b82d01beefe7a8baf | C# | dgarciaap/Estructura-de-datos | /LiebreTortuga/LiebreTortuga/Corredor.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LiebreTortuga
{
abstract class Corredor
{
protected string _nombre;
protected static Random rnd = new Random(DateTime.Now.Millisecond);
public Cor... |