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 |
|---|---|---|---|---|---|---|
e80faaf869acdb6abc10c17f101f79f9a58d8efb | C# | JTOne123/Toolkit.NET | /src/CodeChange.Toolkit.EF6/AzureEfConfiguration.cs | 2.578125 | 3 | namespace System.Data.Entity
{
using System.Data.Entity.Infrastructure;
using System.Data.Entity.SqlServer;
using System.Threading;
/// <summary>
/// Represents an Azure Entity Framework database configuration
/// </summary>
public class AzureEfConfiguration : DbConfiguration
{
... |
b17e8cdf6e6bf12cd3c4c3f0556479f35cbc20fa | C# | shendongnian/download4 | /code1/149834-2711873-5566314-4.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApplication2
{
class Competition
{
public int CompetitionID;
public int ParentCompetitionID;
public List<Competition> Children=new List<Competition>();
... |
ec87032786252d5b23191028f4c0f1722bcaf030 | C# | EvgeniyShvetcov/WebLearning | /ReactChatApp/Services/ChatService.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using ReactChatApp.Data;
using ReactChatApp.Models;
namespace ReactChatApp.Services
{
public class ChatService : IChatService
{
private r... |
6f3886deca8b9067d246ec96ba91e79614c1b44a | C# | negative-seven/smb-randomizer | /smb-randomizer/utils/RandomExtensions.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace smb_randomizer.utils
{
public static class RandomExtensions
{
public static void ShuffleInPlace<T>(this Random random, ref IList<T> collection)
{
for (var firstSwapIndex = collection.... |
2162665e34360403e8be78d40bd87734c4cf96db | C# | fakhr245/alsyedAcademy | /Controllers/NewsController.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Threading.Tasks;
using System.Net;
using System.Web;
using System.Web.Mvc;
using alsyedAcademy.Models;
using System.IO;
using System.Web.Helpers;
namespace alsyedAcademy.Controllers
{
publi... |
849d217205a5a11aa349cf586558f6d0cb83fcc5 | C# | ggracia1030/RedVoxels_Jjam2019 | /Assets/Scripts/Generic/GameManager.cs | 2.5625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameManager : Singleton<GameManager>
{
const int MAX_LEVEL = 4;
public enum GameState { MainMenu, InGame, Pause, Credits};
GameState gameState;
int currentLevel;
public bo... |
791d5a9a60711ff8864ddb81ba85182c72955720 | C# | ARLM-Attic/head-tracking-rossetta | /Windows/Text/GlyphEnumerator.cs | 3.21875 | 3 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace OpenHeadTrack
{
class GlyphEnumerator : IEnumerator<Glyph>
{
#region Fields
string text;
Font font;
IEnumerator<char> implementation;
#endregion
... |
6ab89d54b285aa7aad9fbb9a3a85853ee29aeb70 | C# | NASOKILA/02.Programming-fundamentals | /11.Strings And Regex/UseYourChainsBuddy/UseYourChainsBuddy.cs | 3.71875 | 4 | namespace UseYourChainsBuddy
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
class UseYourChainsBuddy
{
static void Main(string[] args)
{
string inpu... |
451e92f26e399f194b8215e5605c9f60c5f4c435 | C# | charanasree1166/MYCODINGTEST | /Q3/Program.cs | 3.78125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Q3
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("How many random numbers you want generate?: ");
var val = Console.ReadLine();
... |
b0810cdec95b39cfa68fb98b7503b7484f65ca38 | C# | jasperx3m/EntityFramework | /QuickReach.ECommerce.Infra.Data.Tests/CategoryRepositoryTest.cs | 2.765625 | 3 | using QuickReach.ECommerce.Domain.Models;
using QuickReach.ECommerce.Infra.Data.Repositories;
using System;
using Xunit;
using System.Collections;
using System.Linq;
namespace QuickReach.ECommerce.Infra.Data.Tests
{
public class CategoryRepositoryTest
{
[Fact]
public void Create_WithValidEntity... |
0fed924ad44f907cefaa88ea386e04301bcdf686 | C# | martinkresta/UhaMaster | /Err.cs | 2.875 | 3 | /* Static Class: Err */
/* Project: Universal */
/* Author: Martin Kresta */
using System;
using System.Windows.Forms;
namespace UhaMaster
{
... |
3d29f2f745604fd1dc38c3a60cc0179bb3c481b0 | C# | ValentineGladyshko/KPI-ParallelProgramming-labs | /Lab2/ConsumerController.cs | 3.453125 | 3 | using System;
using System.Collections.Generic;
using System.Threading;
namespace Lab2
{
internal sealed class ConsumerController
{
private readonly Thread thread;
private List<Consumer> consumers;
private Task task;
public int count;
public ConsumerController(Task tas... |
149ace779559873c0e6b23d5137f2b0b27847698 | C# | kmuhumed/Student-Grades-Manager | /Program.cs | 3.25 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Student_Grades_Manager_2
{
class Program
{
static void Main(string[] args)
{
string selector = "0";
List<string> firstname = ne... |
87ef1106c9c2631ad6d1bfa19fabe39ca1d11ae6 | C# | marcelomtds/logatti-tasi-avaliacao-p1 | /Conexao/SQLServer.cs | 2.90625 | 3 | using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
namespace Conexao
{
public class SQLServer : IDisposable
{
private SqlConnection conexao;
public SQLServer()
{
conexao = new SqlConnection(ConfigurationManager.ConnectionStrings["SQLSe... |
fe7259257c75eca2834adcfe95c22a667ef653d2 | C# | cvet-/Telerik_Academy | /CSharp2/Arrays/05.Maximal increasing sequence/MaximalIncreasingSequence.cs | 4.1875 | 4 | /* Write a program that finds the maximal increasing sequence in an array. */
using System;
class MaximalIncreasingSequence
{
static void Main(string[] args)
{
Console.Write("Enter the length of the array: ");
int length = int.Parse(Console.ReadLine());
int[] array = new int[length];
... |
e105bb7d0a81d3493cf1bbb85685121761799118 | C# | nickt1990/rougelike-game | /Rougelike/Assets/Scripts/Classes/Paladin/Paladin.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class Paladin : ClassType
{
Character thisCharacter;
/// <summary>
/// Sets the class name and adds skills to the class
/// </summary>
///
/// Base: This is the ClassBase, which takes care of adding ... |
5c483b987eb372797490e6176d47957d3c1b46a2 | C# | Vladislavzaharevich/Pogoda | /WindowsFormsApp6/Form1.cs | 2.5625 | 3 | using Newtonsoft.Json.Linq;
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 WindowsFormsApp6
{
public partial class Form1 : F... |
f480aa9739d687c9fd7788e45a7c6c6c4ce70056 | C# | da451/PhotoApp | /PhotoApp/MVVMPhotoApp/Extention/CollectionOfModelExtensions.cs | 2.828125 | 3 | using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using DALC.Entities;
using MVVMPhotoApp.Model;
namespace MVVMPhotoApp.Extention
{
public static class CollectionOfModelExtensions
{
public static ObservableCollection<ImageModel> ToModel(this IEnumerable<Image>... |
4cf21b3cea38e5e92cd5976fb5826c47af36e1eb | C# | D10221/ScriptingHost | /ScriptingHost/ScriptConfigManager.cs | 2.78125 | 3 | using System.Collections.Generic;
using System.Linq;
namespace ScriptingHost
{
public class ScriptConfigManager : IScriptConfigManager
{
readonly IEnumerable<IScriptConfig> _configs;
private readonly IScriptConfig _defaulConfig;
public ScriptConfigManager(IEnumerable<IScriptC... |
7d4999a26ad2f546cad80598a057ad247763505b | C# | YakumoYukari/RobotSim | /RobotSim/RobotMath.cs | 3.40625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RobotSim
{
public static class RobotMath
{
public static double AngleDifference(double ang1, double ang2)
{
double Diff = RobotMath.NormalizeAngle(ang1 - ang2);
if (Diff <= 180)
... |
f5555555078d7d2f15490fc89559c161d05f9788 | C# | freaxnx01/StringKing | /StringKing.Functions/FileDescriptionTableCsvToXml.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StringKing.FunctionInterface;
using System.Xml;
using System.IO;
using System.Reflection;
namespace StringKing.Functions
{
[StringFunction("FileDescriptionTableCsvToXml")]
public class FileDescriptionTableCsvToXml : St... |
737a39d296f4c84ca992e3e7e8f3600f6f2b4196 | C# | ITGlobal/CLI | /src/CLI.Parser/Impl/ValueParsers/CharValueParserImpl.cs | 2.859375 | 3 | using System;
using ITGlobal.CommandLine.Parsing.Help;
namespace ITGlobal.CommandLine.Parsing.Impl.ValueParsers
{
internal sealed class CharValueParserImpl : IValueParser<char>
{
public CliTypeInfo TypeInfo { get; } = CliTypeInfo.String;
public string Format(char value) => value.ToString();
... |
4f3728867487751501bbe5287c24442665f6dcd3 | C# | YiZhang-Paul/Mock_Up_Calculator | /Calculator/ExpressionsClassLibrary/ExpressionParser.cs | 3.5625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ConverterClassLibrary;
namespace ExpressionsClassLibrary {
public class ExpressionParser : IExpressionParser {
private IOperatorConverter Converter { get; set; }
public Expre... |
d50d84ccf3d2edb4c2013df25ee5607aa95cf0b1 | C# | smetad/WoodCalculator | /Service/TreeService.cs | 2.953125 | 3 | using System.Collections.Generic;
using WoodCalc_WPF.Service.DataServices;
using System;
using WoodCalc_WPF.Model;
using System.Linq;
namespace WoodCalc_WPF.Service
{
public class TreeService : BaseService<Tree>
{
private readonly IDataService<Tree> dataService;
private readonly List<Tree> tre... |
ffd57c517333df037c1d0529a4460f9020f76045 | C# | sreelekha-09/Collections | /CollectionConcurrentExampleClass.cs | 3.484375 | 3 | using System;
using System.Collections.Concurrent;
namespace CollectionsExamples
{
/// <summary>
/// Class to implement Concurrent Collections
/// </summary>
class CollectionConcurrentExamplesClass
{
BlockingCollection<int> blockingcollection;
ConcurrentDictionary<int, s... |
4dc977e241053b7cb3e4275b6b4a3fdb4e8df484 | C# | moisio/Tetris | /Tetris/Tetris/Settings.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tetris
{
public enum Direction
{
Null,
Left,
Right
};
class Settings
{
public static int Width { get; set; }
public static int Heig... |
cb97ec0e69d667f272c2067de181323cd23651c3 | C# | AlexBilonog/a2toh | /FRS.Common/AutoMapperHelper.cs | 2.671875 | 3 | using AutoMapper;
using AutoMapper.QueryableExtensions;
using FRS.Common.Contracts;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace FRS.Common
{
public static class AutoMapperHelper
{
public static void Configure()
{
var soluti... |
615403caa1e0948140ed11e9940caf92caa5ad7a | C# | melmarin/ucr-proyecto3 | /SistemaCAMEL/Business/CursoBusiness.cs | 2.765625 | 3 | using Data;
using Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Business
{
public class CursoBusiness
{
private CursoData cursoData;
public CursoBusiness(String cadenaConexion)
{
cursoD... |
31c1641345da29cb1d97f7f298bf02e8bfc1dd3e | C# | rmaake/rmaake_2018 | /BaseAPI/Repository/Internal/Projects/Invoices/InvoiceItemRepo.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using BaseAPI.Models.Internal.Projects.Invoices;
using BaseAPI.Models;
namespace BaseAPI.Repository.Internal.Projects.Invoices
{
public class InvoiceItemRepo : IInvoiceItemRepo
{
private BaseApiContext _co... |
55cf5b455ccfc621687dedc9d36ad5f240dc42c5 | C# | jogibear9988/CompoundFileStorage | /BinaryTree/NodeList.cs | 3.0625 | 3 | using System.Collections.ObjectModel;
/*
The contents of this file are subject to the Mozilla Public License
Version 1.1 (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.mozilla.org/MPL/
Software distributed ... |
c6bda15a489289eb5280cf6c1ac5812ecce4de8a | C# | p1x/Toeplitz | /P1X.Toeplitz/NormalizedToeplitzMatrixDouble.cs | 3.046875 | 3 | using System;
using System.Runtime.CompilerServices;
namespace P1X.Toeplitz {
public readonly struct NormalizedToeplitzMatrixDouble : IReadOnlyToeplitzMatrix<double> {
private readonly double[] _values;
private NormalizedToeplitzMatrixDouble(int size, double[] values) => (Size, _values) = (size, ... |
b93d2d36b352ba6409086cdd0904769eda9e6ac2 | C# | TeamOrg/WorkPackRestructured | /WorkpackCore/BusinessLibrary/BLTaskDeatilsRepository_Contract.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using DataAccessLibrary;
using DomainModelLibrary;
namespace BusinessLibrary
{
public class BLTaskDeatilsRepository_Contract
{
//private readonly ITaskDetailsRepository_Contract TaskDetailsRepository_Contract;
//publi... |
6ea31e129c4eed7436f7ef202d24ad54c7ce0316 | C# | NatthawutChaipimol/LapWeek2 | /Lab0302 Data Binding/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;
namespace Lab0302_Data_Binding
{
public partial class Form1 : Form
{
apd621_60011212153E... |
12729d1212139a6181c2c3c14656e92d7a90c412 | C# | kvnmach/pigDie | /making decisions/making decisions/Program.cs | 3.484375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace making_decisions
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Kevins Lawn Mowing Service");
Console.WriteLine("Please ... |
3bdc570f6f01f0c643f0c8ad6583663ef1cd0a0f | C# | ravisaxena4181/DBToBackEndGenerator | /Util.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WinDBToBackEndGenerator
{
public static class Util
{
internal static string GetConnection()
{
throw new NotImplementedException();
}
internal static double ToDoubl... |
cb1dd6cb613c1105551c50756d04697af35e0a8b | C# | DaniilTom/git_homework | /CSharp_Part_2/WPF/WpfApp2/WpfApp2/MainWindow.xaml.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using... |
d74276b80c3777f9660b1d51612fee638836b829 | C# | smietanka/RisonNet | /RisonNet/Rison.cs | 2.703125 | 3 | using Newtonsoft.Json;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Dynamic;
using System.Globalization;
using System.Text.RegularExpressions;
namespace RisonNet
{
public class Rison
{
public Rison()
{
Table = GetTable();
Encode... |
38510e6900d0eeb66ccbf87397980ffc4d47e263 | C# | Nicolavickh/OCBC-H8 | /sesi 4/string2.cs | 3.328125 | 3 | using System;
public class string2{
public static void Main(string[] args){
string str1 = "Untuk pemrograman .NET C# adalah #1.";
string str2 = "Untuk pemrograman .NET, C# adalah #1.";
string str3 = "String C# sanagt tangguh.";
string strAtas, strBawah;
int hasil, idx;
... |
3bafc6a6780d17596bd4d56bc8bf45cbce95fe3d | C# | shendongnian/download4 | /code1/50821-790566-1524124-2.cs | 3.03125 | 3 | string html;
using (WebClient client = new WebClient()) {
html = client.DownloadString("http://www.google.com");
}
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(html);
foreach(HtmlNode img in doc.DocumentNode.SelectNodes("//img")) {
Console.WriteLine(img.GetAttribut... |
146a7ed215431a0ed01f78d8cd745b5df217c7c6 | C# | synsayer/synsayer | /Assets/Scripts/Framework/Util/ListExtension.cs | 2.9375 | 3 | //using UnityEngine;
using System.Collections.Generic;
public static class ListExtension
{
public static void Shuffle<T>(this IList<T> list)
{
System.Random rng = new System.Random();
int n = list.Count;
while (n > 1)
{
n--;
int k = rng.Next(... |
160a2c380efc08a819a7260f01af87bbc4502128 | C# | sfinktah/vhddirector | /src/main/CSharp.cc/DirSearch.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace CSharp.cc
{
public class DirSearch
{
public delegate void CompleteHandler(object source, object eventArgument);
public event CompleteHandler completed;
public delegate void... |
52099b875f2eca399f1fb8fdd88ef2c5cbc44eea | C# | Kant8/IOp | /Kuchik.ORLab2/DualSimplexMethod.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using MathNet.Numerics.LinearAlgebra.Double;
using MathNet.Numerics.LinearAlgebra.Generic;
namespace Kuchik.ORLab2
{
public class DualSimplexMethod
{
private const double Eps = 1.0e-07;
private static DenseMat... |
fe59d12a905f65fdb303f9a3ea2fb25f4aecd193 | C# | wcavell/Anony | /Anony/Primitives/CookieSetting.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using Windows.Storage;
namespace Anony.Primitives
{
internal class CookieSetting
{
private static string CookieFile = "cookie.cfg";
public static async void Sa... |
494f700dcd506a3ca9d92424ca20df968402a043 | C# | GhadaHaniiSamra/QuoteToday | /list.cs | 2.515625 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Microsoft.WindowsAzure.MobileServices;
using Newtonsoft.Json;
using Android.Preferences;
namespace ... |
b065bc06d502c8248ecbd1d5a0c5ad329c1377d3 | C# | kimryu/MagiPieceProject01 | /Assets/Script/Common/ComponentAccesser.cs | 2.53125 | 3 | #region File Description
//********************************************************************
// file name : ComponentAccesser.cs
// infomation : 標準的なGetComponentへのアクセサー
//********************************************************************
#endregion
#region Using Statements
using System;
using UnityEngine;... |
5a73134eae07f4a3404e0a39e3499548d4f281c4 | C# | Yotsev/CSharpAdvanced | /07.ImplementingStructures/ImplementingLinkedList/CustomDoublyLinkedList/CustomDoubleLinkedList.cs | 3.96875 | 4 | using System;
namespace CustomDoublyLinkedList
{
public class CustomDoubleLinkedList
{
private Node head;
private Node tail;
public int Count { get; private set; }
public void AddFirst(int element)
{
if (Count == 0)
{
head = tai... |
9f0a0b0c1a99a00c561672f181a442bad24aad72 | C# | danielicy/EzerLaMoreh | /CommonClasses/Interfaces/IEzerContext.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;
namespace CommonClasses.Interfaces
{
public interface IEzerContext : IDisposable
{
string CurrentPath { set; get; }
bool isCanceled { set; get; }
ICollec... |
5819c26943ecf5d80fd57f23808c3a92d51ed080 | C# | NikolayNanev/TelerikAcademy | /CSharpFundamentals/7.Arrays/04.MaxSequenceOfEqualElementsInAnArray/MaxSequenceOfEqualElementsInAnArray.cs | 3.84375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
class MaxSequenceOfEqualElementsInAnArray
{
//Write a program that finds the maximal sequence of equal elements in an array.
//Example: {2, 1, 1, 2, 3, 3, 2, 2, 2, 1} --->>> {2,... |
dd5fb92417b8d092d089e29833e50de99e211632 | C# | gokhanadn/CSharp_MyDictionary | /MyDict/Program.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
namespace MyDict
{
class Program
{
static void Main(string[] args)
{
Dictionary<string, string> EmployeeList = new Dictionary<string, string>();
MyDictionary<string, string> EmployeeList2 = new MyDictionary<string, string>... |
33aeb88a7fd151e9fbf911f973da024887d2b86a | C# | mc-carthy/basketballThrow | /Assets/scripts/gameControllers/GameController/BallCreator.cs | 2.515625 | 3 | using UnityEngine;
using System.Collections;
public class BallCreator : MonoBehaviour {
[SerializeField]
private GameObject ball;
[SerializeField]
private Sprite[] ballImages;
private float minX = -4.7f, maxX = 8f, minY = -2.5f, maxY = 1.5f;
public void CreateBall (int index) {
GameObject gameBall = Instan... |
590785592152039f90ad921c0bd3685a03d44226 | C# | ninoehidan/ArtFocalManager | /SiteManager.Persistencia/Grupos.cs | 2.515625 | 3 | using System;
using System.Linq;
using SiteManager.Model;
using SiteManager.Entidades;
namespace SiteManager.Persistencia
{
public class Grupos
{
public IQueryable<Model.grupos_produto> RetornaTodos()
{
var db = new artfocalEntities();
return (from gru in db.grupos_pro... |
54feefd0d3ebb8213ec8119c998443846971d40c | C# | shiranfe/hm | /BL/EmployeeLogBL.cs | 2.921875 | 3 | using DAL;
using Microsoft.Practices.Unity;
using Repository;
using System;
namespace BL
{
public class EmployeeLogBL
{
private readonly IUnitOfWork _uow;
private readonly IRepository<EmployeeLog> _employeeLogDal;
public EmployeeLogBL([Dependency]IUnitOfWork uow)
{
... |
47952e659b563a6c00e8a6072e810e90f5f5336b | C# | reguluskinglet/products-inventory | /ProductsFacadeApi/ProductsFacadeApi.DDD/Repository.cs | 3.1875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ProductsFacadeApi.DDD
{
public abstract class Repository <T> : IRepository<T> where T : BaseEntity
{
private readonly UnitOfWork _unitOfWork;
protected Repository(UnitOfWork unitOfWork)
... |
4caab694c3af485a984ccb14e88db7848429c057 | C# | Colm-Reilly/ThreadingExamples | /MonitorTutorial/Program.cs | 3.1875 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace MonitorTutorial
{
class Program
{
static object locker = new object();
static void ThreadMain()
{
Thread.Sl... |
1d5218fb5f014100b316d0e570c3093d2c50c0ee | C# | fernandonakagawa/CatalogoFilmes | /CatalogoFilmes/Form1.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 CatalogoFilmes
{
public partial class Form1 : Form
{
public Form1()
{
... |
2ec89922a1f1fd7ac54bd0901bc3e76205745836 | C# | Sprunker/EM5P | /El_Mundo_de_5_Peso/Conexion.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace El_Mundo_de_5_Peso
{
class Conexion
{
string cadena = "Data Source=.;Initial Catalog=M5PDB;... |
eb2eba26573f0898fdb4a24f9a9afd22aa5b6952 | C# | krispaks/MessageHub2 | /MessageHub.Lib/Service/RavenChatMessageService.cs | 2.640625 | 3 | using MessageHub.Lib.DTO;
using MessageHub.Lib.UnitOfWork;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MessageHub.Lib.Service
{
public class RavenChatMessageService : IChatMessageService
{
private IRavenChatMessageUoW _u... |
a77b948b360be8afac0a6fba23b52c3bad77c051 | C# | awoniyimuyiwa/muyiwa_algorithms_and_data_structures | /Console/Runners/BinarySearchTreeTraverseRunner.cs | 3.515625 | 4 | using AlgorithmsAndDataStructures.DataStructures;
using System;
using System.CommandLine;
using System.CommandLine.IO;
namespace Console.Runners
{
class BinarySearchTreeTraverseRunner
{
public static int Run(string[] items, IConsole console)
{
if (items == null)
{
... |
0a94be38eb0075b22648fa13557f4b5f9d6ab9c6 | C# | MarketKernel/webmoney-business-tools | /Src/WMBusinessTools.Extensions/Utils/FileUtility.cs | 3.046875 | 3 | using System;
using System.Globalization;
using System.IO;
using System.Text;
namespace WMBusinessTools.Extensions.Utils
{
internal static class FileUtility
{
public static string MakeRelativePath(string fileAbsolutePath, string baseDirectory)
{
if (null == fileAbsolutePath)
... |
459ff9955681b8e22d1a330300ff3f2e41b8d9c0 | C# | Vassagio/TicTacToe.Old | /TicTacToe.Core.Test/Players/PlayersFactoryTest.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using FluentAssertions;
using TicTacToe.Core.AI;
using TicTacToe.Core.AI.Human;
using TicTacToe.Core.Players;
using TicTacToe.Core.Test.Mocks;
using Xunit;
namespace TicTacToe.Core.Test.Players {
public class PlayersFactoryTest {
[Fact]
... |
4ed64509dfd55f9b714e8e8dac07356fd9f66e84 | C# | jasonmitchell/event-store-samples | /Aggregates/AggregateRepository.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using EventStore.ClientAPI;
namespace Aggregates
{
public class AggregateRepository
{
private static readonly Dictionary<Type, List<Type>> AggregateEventMap = new Dictionary<Type, List<Type>>();
p... |
659d6adcf7d7b36f97a08817ecdf73ac52e7b3ee | C# | 10012199/LuckyCats | /SlotPage.xaml.cs | 2.890625 | 3 | using System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media.Imaging;
namespace Assignment1App
{
public sealed partial class SlotPage : Page
{
int funDollars = 0; // Variable to store the dollars
Random numb... |
5c91a571e5acc51d5092bafebd8990b359dd392f | C# | cddjr/Among-Us-Config-Editor | /Among Us Config Editor/Settings.cs | 2.828125 | 3 | using System;
using System.ComponentModel;
using System.IO;
using System.Runtime.CompilerServices;
namespace Among_Us_Config_Editor
{
public class Settings
: IDisposable
{
private readonly string _path;
private string[] _settings;
private FileSystemWatcher _watcher;
pu... |
f39eb3aab329330b23206f65bd3b0a5051b6f8f6 | C# | paysonblackwell/TaxWebApp | /Data/excelReading.cs | 3.03125 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using OfficeOpenXml;
using OfficeOpenXml.Table;
using TaxWebApp.Models;
namespace TaxW... |
2ffb5cd2ee3e3b43b6b0fe382432402807ddcc86 | C# | XamarinControls/xamarin-samples | /Translate/Translate/Services/TranslationXmlReader.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using System.Xml.Linq;
using Translate.Core.Contracts;
using Translate.Core.Model;
namespace Translate.Services
{
public class TranslationXmlReader : ITranslationXmlReader
{
public async Task<IEnumerable<Tra... |
ce2dbed9d0aa3aa6f688d106eb970b57451f06b7 | C# | KennyDizi/DNTScheduler | /DNTScheduler.TestWebApplication/WebTasks/DoBackupTask.cs | 2.703125 | 3 | using System;
using System.Threading.Tasks;
namespace DNTScheduler.TestWebApplication.WebTasks
{
public class DoBackupTask : ScheduledTaskTemplate
{
/// <summary>
/// If you have multiple jobs at the same time, this value indicates the order of their execution.
/// </summary>
p... |
d180abcde7d50ed3f9f40d5d4c82bc0b28cef262 | C# | mateuszchrzanowski/FightingHeroes | /FightingHeroes/Character/Opponent/Troll.cs | 2.78125 | 3 | using FightingHeroes.Sound;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FightingHeroes.Character.Opponent
{
class Troll : Hero
{
public override int Attack()
{
return rnd.Next(2, AttackMax);
}... |
488b66f51bf428a528e53a58bdeeba8945cfb8c7 | C# | MrHarrisonBarker/OpenEvent | /OpenEvent.Data/Models/Event/EventDetailModel.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using OpenEvent.Data.Models.Category;
using OpenEvent.Data.Models.Promo;
namespace OpenEvent.Data.Models.Event
{
/// <summary>
/// Event data needed for displaying an event page.
/// </summary>
public class EventDetailModel
{
/// <summary>
... |
68420f9df698e9427bac57600558063e75ff0def | C# | ben-bina-work/NUnitFramework | /Framework/PageElement.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using log4net;
using NUnit.Framework;
using NUnitAutomationFramework.Framework.IO;
using NUnitAutomationFramework.Framework.Spreadsheet;
namespace NUnitAutomationFramework.Framework
{
public class PageElement
{
private static readonly IL... |
49c3895043c0546c14f4ba15efdee890e0408b55 | C# | edchang2/CIS2561 | /RadioButton/RadioButton/HarryPotterQuiz/Question.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HarryPotterQuiz
{
class Question
{
public Question()
{
}
public Question(string cat, string ques, string ans)
{
Category = cat;
... |
4600233254e132c82a373a32553e4dc61c83eb66 | C# | lavacca/Kata---a---Day | /day027 and OnWards/day027/day027/day070/Valid Parentheses.cs | 3.359375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CodeWars5Kata
{
class Valid_Parentheses
{
public static bool ValidParentheses(string input)
{
int bracketBalance = 0;
... |
3eca295e38fd63951fd6392136ceb4a68def3dc7 | C# | Bhaskar8sharma/Nova-Sirius | /Assets/Scripts/EnemyShooter.cs | 2.703125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyShooter : MonoBehaviour {
public float speedFactor;
public GameObject EnemyBullet;
public float delay;
// Use this for initialization
void Start () {
StartCoroutine(Shoots());
}
// Update is ca... |
b984d670f19fde53c90066806b2008e790a040c6 | C# | talbert1209/CardSorter | /CardSorter/Program.cs | 3.734375 | 4 | using System;
using System.Collections.Generic;
namespace CardSorter
{
internal class Program
{
public static void PrintCards(List<Card> cards)
{
foreach (var card in cards)
Console.WriteLine(card.Name);
}
private static void Main()
{
... |
f3f3ea5dab395c2dbb9f0d4fd1014e4198ce159b | C# | bcgit/bc-csharp | /crypto/src/bcpg/ElGamalPublicBcpgKey.cs | 2.640625 | 3 | using System;
using Org.BouncyCastle.Math;
namespace Org.BouncyCastle.Bcpg
{
/// <remarks>Base class for an ElGamal public key.</remarks>
public class ElGamalPublicBcpgKey
: BcpgObject, IBcpgKey
{
internal MPInteger p, g, y;
public ElGamalPublicBcpgKey(
BcpgInputStream bcpgIn)
{
this.p = new MPInteg... |
364343bd45209b23e0a921392c30e94f1361bcc1 | C# | shendongnian/download4 | /code2/327497-6931891-147326130-6.cs | 2.6875 | 3 | private static void DisplayXmlDocument(XmlNode xmlDoc)
{
var wayPoints = xmlDoc.SelectNodes("TrafficPattern/WayPoint");
if (wayPoints == null)
{
return;
}
foreach (XmlNode wayPoint in wayPoints)
{
var radial = wayPoint.SelectSingleNode("Rad... |
50f53038137390818e75276fdc57cba854eb4fc4 | C# | Alexander-Kulikov97/WebApi-Payroll-preparation | /sibentek/Models/Factory/EmployeeFactory.cs | 3.140625 | 3 | using Sibintek.Models.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
namespace Sibintek.Models.Factory
{
public class EmployeeFactory
{
public IEmployee Create(JObject data)
{
var position = d... |
b1a6e6dd82fec130df9b205a1b7611b4ecda0f95 | C# | jwmarsden/Kinetic3 | /Kinetic/Kinetic/Render/Camera.cs | 2.546875 | 3 | #region License
// Copyright 2010-2011 J.W.Marsden
//
// 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
//
// ... |
9c715d9ebc145e359340dbf4dcae708354fd5d39 | C# | mrcodechef/libmoonage | /Arch/TopLevelProcessing.cs | 2.640625 | 3 | using System;
namespace Arch {
public class TopLevelProcessing : Builtin {
public override void Define() {
Expression("defm", _ => EType.Unit, _ => throw new NotSupportedException()).NoInterpret();
Expression("def", _ => EType.Unit, _ => throw new NotSupportedException()).NoInterpre... |
8033f6e1315d1035524e3f9be55be958a2f28127 | C# | kennethcochran/CSharpTo2600 | /VCSCompiler/StackTracker.cs | 2.578125 | 3 | #nullable enable
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using VCSFramework;
namespace VCSCompiler
{
public sealed class StackTracker : IStackTracker
{
public sealed record StackElement(IExpression Ty... |
cc51bfa65a763f7c7bba62cca3a2cfcc7a508625 | C# | VeselinTz/All-Projects | /Programming Fundamenals/09_Files/09_Files/Program.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _04_Fix_Emails
{
class Program
{
static void Main(string[] args)
{
File.Delete("output.txt");
var dict = new Dictionary<string,... |
3c66cd74b804e94e9b58c81d0d3ea05663e3d1ff | C# | praveenraghuvanshi/covid-19 | /src/covid-19/covid-19/eda/ExploratoryDataAnalysis.cs | 2.796875 | 3 | using Microsoft.Data.Analysis;
using XPlot.Plotly;
using System;
using System.Collections.Generic;
using System.Linq;
using covid_19.utilities;
namespace covid_19.eda
{
/// <summary>
/// Performs exploratory data analysis
/// </summary>
public class ExploratoryDataAnalysis
{
string dataFi... |
0a4f5f06a66eee35f6dac610917062c12e55d269 | C# | metalbass/CSharpTexturePacker | /src/CSharpTexturePacker/Packer.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSharpTexturePacker
{
internal class Packer
{
private Packer()
{
m_padding = 1;
m_allowRotate = true;
... |
e2b92d8912db34a1835c634b6b57a83057fa6bcf | C# | ReillyBrogan/Memoria | /Memoria.EventEngine/Instructions/BGARATE.cs | 2.796875 | 3 | using System;
namespace FF8.JSM.Instructions
{
/// <summary>
/// SetTileAnimationSpeed
/// Change the speed of a field tile animation.
///
/// 1st argument: background animation.
/// 2nd argument: speed (256 = 1 tile/frame).
/// AT_TILEANIM Tile Animation (1 bytes)
/// AT_SPIN Speed (... |
946e4de0b4ab8442274924367ab4020daf9c00de | C# | smddharani/Paatashala-Mobile-API-Framework-4.0 | /WebAPI3/Models/Mapping/tblAssignmentQuestionMap.cs | 2.5625 | 3 | using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
namespace WebAPI3.Models.Mapping
{
public class tblAssignmentQuestionMap : EntityTypeConfiguration<tblAssignmentQuestion>
{
public tblAssignmentQuestionMap()
{
// Primary Key
... |
b9232e2a630d1a075c642e87747760564a29c735 | C# | susingh/questions | /Questions/Algorithm/KMP.cs | 3.484375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Questions.Algorithm
{
/// <summary>
/// Knuth-Morris-Prat
/// </summary>
public class KMP
{
public int[] FindMatches(string word, string pattern)
{
... |
167df3f30ce1eafba537c4922d08c2dccc49cd1c | C# | yutuer/BehaviourTree-1 | /src/BehaviourTree.Demo/UI/RenderHealthBarSystem.cs | 2.640625 | 3 | using BehaviourTree.Demo.GameEngine;
using BehaviourTree.Demo.Nodes;
using System.Collections.Generic;
using System.Drawing;
namespace BehaviourTree.Demo.UI
{
public sealed class RenderHealthBarSystem : IRenderSystem
{
private readonly Graphics _graphics;
private readonly IEnumerable<HealthBar... |
e5e8e10b348a5526e40741d576f10600f6b468e0 | C# | RAJARATHINAM-S/File_IO_Program | /Day20_File_IO/Program.cs | 3.546875 | 4 | using System;
using System.IO;
namespace Day20_File_IO
{
class Program
{
static void Main(string[] args)
{
FileExists();
ReadAllLines();
// ReadAllText();
Console.ReadKey();
}
public st... |
426ce2c102b35d71a15831a765eb55cd391761cd | C# | dterracino/fluent-image | /app/src/ImageNet/Filtering/Hsls/HslFiltersFactory.cs | 2.671875 | 3 | namespace ImageNet.Filtering.Hsls
{
using ImageNet.Filtering;
internal class HslFiltersFactory : IHslFilters
{
public IFilter Brightness(int luminance)
{
return new BrightnessFilter(luminance);
}
public IFilter Contrast(sbyte factor)
{
retur... |
c42bbdac1480b47c793abedd740c36d1cd68cfd5 | C# | Joy011024/PickUpData | /BaseHelper/ExtHelper/Reflactor/FluorineFx/Json/JsonReader.cs | 2.796875 | 3 | namespace FluorineFx.Json
{
using System;
using System.Collections;
using System.Globalization;
using System.IO;
public class JsonReader : IDisposable
{
private StringBuffer _buffer;
private char _currentChar;
private State _currentState;
private char _quoteChar... |
4c042e313694d7b2fec5b96711cf0045ad849094 | C# | olatief/OGS-Closed-Loop | /CID_USB_BaseStation GUI/BaseStationTests/ParserTest.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using CID_USB_BaseStation;
namespace BaseStationTests
{
[TestFixture]
public class ParserTest
{
[Test]
public void realStartPositionsTestHandle14bitPattern()
{... |
860a2bf5051fb16b6bd07b5b8dd838b6274a0536 | C# | bubdm/NoStringEvaluating | /NoStringEvaluating/Functions/Excel/Date/WeekDayFunction.cs | 3.21875 | 3 | using System.Collections.Generic;
using NoStringEvaluating.Factories;
using NoStringEvaluating.Functions.Base;
using NoStringEvaluating.Models.Values;
namespace NoStringEvaluating.Functions.Excel.Date
{
/// <summary>
/// Takes a date and returns a number between 1-7 representing the day of week
/// <para>... |
68d93dab57d9e3ccddb596c9bd584ae4f0c14dd9 | C# | DoBi/kraken.net | /src/Kraken.Net/Api.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using Kraken.Net.Models;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable ... |
3e4f7d878ea3860294c089ed8e0074a329acf27a | C# | pomtom/GenericFramework | /Generic.Business/Service/EmployeeService.cs | 2.734375 | 3 | using Generic.Database.Poco;
using Generic.Database.Repository;
using System.Collections.Generic;
namespace Generic.Business.Service
{
public class EmployeeService : IEmployeeService
{
private readonly IEmployeeRepository _employeeRepository;
public EmployeeService(IEmployeeRepository employe... |
ec4d960a34de1b96061f2569f76492445153d5e2 | C# | shendongnian/download4 | /code8/1464360-41262563-137721631-4.cs | 2.71875 | 3 | // _service: Valid, authenticated Drive service
// _uploadFile: Full path to the file to upload
// _parent: ID of the parent directory to which the file should be uploaded
public static Google.Apis.Drive.v2.Data.File uploadFile(DriveService _service, string _uploadFile, string _parent, strin... |
1f198d3e07c16fad6b911d0604fec188fa872b68 | C# | 15831944/AR_Zhuk | /BeetlyVisualisation/ImgHouse.cs | 3.109375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Drawing.Drawing2D;
namespace BeetlyVisualisation
{
class ImgHouse : IDisposable
{
/// <summary>
/// Список изображений секций
/// </s... |
1b66f8104f1cc017ce403d78c548cf83494a3b48 | C# | newtnewtnewt/Personal-Projects | /CSE570 - Mobile Application Development/LectureCode/Lecture 1 + 2/cs/Complex.cs | 3.453125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace cs {
public class ComplexNumber {
private double r, i;
public ComplexNumber() : this(0, 0) {
}
public ComplexNumber(double real, double imag) {
r... |
71d80b5f384bdf446ac9a030e2d135fd3cbb54c6 | C# | SpillChek2/PnP-Tools | /Solutions/SharePoint.Modernization/SharePointPnP.Modernization.Framework/Transform/HtmlTransformator.cs | 2.734375 | 3 | using AngleSharp.Dom;
using AngleSharp.Dom.Html;
using AngleSharp.Parser.Html;
using System;
using System.Linq;
namespace SharePointPnP.Modernization.Framework.Transform
{
/// <summary>
/// Transforms the received Html in html that can be displayed and maintained in the modern client side text part
/// </... |
93a25260128ffff42ead96a20cdd4fef178b01c2 | C# | dwaffle/dragonlorddamagecalc | /Dragonlord Damage Calculator/MainWindow.xaml.cs | 2.9375 | 3 | using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Documents;
namespace Dragonlord_Damage_Calculator
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
... |
3b7c1ffe3b2655190d0f4151852ad4e7db1d4f57 | C# | calumroy/lumpskit | /test game/Assets/coAdjoint/Action/CoAdjointProjectAsset.cs | 2.609375 | 3 | using UnityEngine;
using System.Collections;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using System;
[Serializable]
public class CoAdjointProjectAsset
{
private const int currentVersion = 1;
private byte[] data;
public static byte[] GetData(ActionLibrary library)
{
CoAdjointProject... |
2183607adca8cf292cf8a3b2a4f5d6836a620d65 | C# | cjwarren3000/Tech-Elevator-Work | /Final Capstone/dotnet/Capstone/DAO/SqlDAO/PlanSqlDAO.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Capstone.Models;
using System.Data.SqlClient;
namespace Capstone.DAO
{
public class PlanSqlDAO : IPlanDAO
{
private readonly string connectionString;
private string sqlSelectAllPlans = "SELEC... |