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 |
|---|---|---|---|---|---|---|
d5f4e2b182b3658f4c6e5365aa54d086137c5b2e | C# | kubilayege/Untitled-Puzzle-Game | /Assets/Scripts/Level/LevelInfoUI.cs | 2.53125 | 3 | using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class LevelInfoUI : MonoBehaviour
{
public Text LevelNumberDisplay;
public GameObject contentParent;
public GameObject missionInfoPrefab;
public List<MissionInfo> missionInfos;
public static LevelInfoUI instance;
... |
2383cdbe8e9b1c54e4174c156157538b40c9e1b4 | C# | ppedvAG/ASPNETCORE_WebAPI_20211004 | /WebAPIKurs/MyFirstRestfulService/Controllers/PaggingSortingController.cs | 2.59375 | 3 | using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using MyFirstRestfulService.Data;
using MyFirstRestfulService.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace MyFirstRestfulService.Controllers
{
... |
6495a12ca3266bac5740e633b3c633836f065d8b | C# | shendongnian/download4 | /first_version_download2/274549-22072052-59123172-2.cs | 2.53125 | 3 | private void btnClickMe_Click(object sender, RoutedEventArgs e)
{
Popup popUp = new Popup();
// TODO: Add your elements to the popup here...
// open the popup at the same coordinates as the button
var point = CalcPopupOffsets((FrameworkElement)sender);
popUp.HorizontalOff... |
b6f6e607847376f2a9d39b81b6660790ef3d3cc4 | C# | sanekbel/SeleniumTests | /Steps/NavigationSteps.cs | 2.828125 | 3 | using BoDi;
using OpenQA.Selenium;
using SeleniumTests.Pages;
using System;
using TechTalk.SpecFlow;
using NUnit.Framework;
namespace SeleniumTests.Steps
{
[Binding]
public class NavigationSteps
{
private IWebDriver _driver;
private BasePage _page;
public NavigationSteps(IObjec... |
745d2aed1060fb084d7ab634e7bf8ac913c64fca | C# | jplane/TheMartaBus | /Marta.Runtime.Entities/Trip.cs | 2.53125 | 3 |
using Marta.Common;
using Marta.Runtime.Interfaces;
using Orleans;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Marta.Runtime.Entities
{
public class Trip : Grain, ITrip
{
private LinkedList<StopTimeInfo> _stoptimes = nu... |
cc6d46bbd4f3519a8e7321caadb0092419bb40f1 | C# | isyedhassanalii/App_master | /App_master.Service/StructuredService.cs | 2.96875 | 3 | using App_master.Data.Repository;
using App_master.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace App_master.Service
{
public interface IStructuredService {
IEnumerable<Structured> GetStructured();
Struc... |
cf17a1020253873427fdd4a4e37b54de03ab400a | C# | luilliarcec/Global-Azure-Bootcamp-2019-Milagro | /Logic/Business/LogicDemo.cs | 2.578125 | 3 | using Data.Dao;
using Entities.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Logic.Business
{
public class LogicDemo
{
private readonly DemoDAO dao = new DemoDAO();
public bool Save(Demo demo)
{
... |
43c5178cf0978ef54886a583fdeeaac6d06e00c2 | C# | roytown/Bag | /Web/ResourceElement.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;
using System.Globalization;
namespace Web
{
public class ResourceElement : ConfigurationElement
{
private static readonly ConfigurationProperty _Name;
... |
568fdf9343a436300eac18661ea4a5811db0c462 | C# | krisam2408/ColorRose | /ColorRoseWPF/Core/LayoutBehaviour.cs | 2.640625 | 3 | using System.Windows;
using System.Windows.Input;
namespace ColorRoseWPF.Core
{
public class LayoutBehaviour
{
public static readonly DependencyProperty ResizeCommandProperty = DependencyProperty.RegisterAttached("ResizeCommand", typeof(ICommand), typeof(LayoutBehaviour), new FrameworkPropertyMetadata... |
cc553951fa6d4da01b44bcf9efc5b2eec1691196 | C# | MigleVai/CinemaSimulation | /AntraTOPMigle/Class/WorkerList.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AntraTOPMigle.Class
{
class WorkerList<T>
{
List<T> listWorker = new List<T>();
public void AddObject(T thing)
{
listWorker.Add(thing... |
d3516eca633fe588f95198b2d32010b1ae657d26 | C# | stkromm/battlesystem | /GameObjectExtension.cs | 2.75 | 3 | using UnityEngine;
public static class GameObjectExtension
{
public static T GetSafeComponent<T>(this GameObject obj) where T : MyMonoBehaviour
{
var component = obj.GetComponent<T>();
if (component == null)
{
Debug.LogError("Expected to find component of type "
... |
225b606f8047c77732a5c463f70e9b85a5aab3ac | C# | PabloMuralles/Analizador | /Analizador/MetodosEstaticos.cs | 3.28125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Analizador
{
class MetodosEstaticos
{
/// <summary>
/// Metodo para realizar la tokenizacion de la cadena entrada
/// </summary>
/// <param name="CadenaEntrada">Cadena de... |
10bd566ceba0a1e05ca3c0b0a08f64c74fb3351d | C# | shlomoamor/OOP_Programming | /B19 Ex02 ShlomoAmor 000803254/B19_Ex02/Program.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace B19_Ex02
{
/** This class is responsible for creating a new game and calling the runGame method*/
public class Program
{
public static void Main(String[] args)
... |
e69eb1427afdf972288a79476258d051ae7820a2 | C# | archygupta/DS-Algo | /src/CodeWithMosh/DataStructures - Part-1/QueueUsingStack.cs | 3.84375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataStructures
{
class QueueUsingStack
{
private Stack<int> stack1;
private Stack<int> stack2;
private readonly int size;
public QueueUsingStack(int si... |
ac7f28673d71118d4ac5a049b19cd80e2b92b25f | C# | shendongnian/download4 | /code1/51188-6480414-14112453-4.cs | 3.09375 | 3 | enum HowNice
{
ReallyNice,
SortOfNice,
NotNice
}
/// <summary>
/// This method is for filling a listcontrol,
/// such as dropdownlist, listbox...
/// with an enum as the datasource.
/// </summary>
/// <typeparam... |
b384138cd7c74db658a1ca60f73ed3ea4b730d56 | C# | Kawser-nerd/CLCDSA | /Source Codes/AtCoder/abc030/C/4411226.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog
{
private const int INF = 1000000007;
public static void Main()
{
int N = NextInt();
int M = NextInt();
int X = NextInt();
int Y = NextInt();
int[] ... |
8a05297eb0caa2713c95ef53f00ab1da30301771 | C# | ripo4ek/SomeCode | /lesson 3/ActionsAndTriggers(5)/ActionsAndTriggers/TimerTrigger.cs | 2.765625 | 3 | using System.Timers;
using System.Windows.Forms;
namespace ActionsAndTriggers
{
//в секундах (int) сделал для разнообразия, понимаю что лучше datetime
class TimerTrigger : TriggerableEntity
{
private PowerStatus _powerStatus;
public int TriggerTime { get;}
private int... |
a32feddc397553102b1863d92b383e6fb8edebc5 | C# | FairPlayer4/CSharpUtils | /CSharpUtilsNETStandard/Utils/Collections/DictionaryList.cs | 2.96875 | 3 | #region Imports
using System;
using System.Collections;
using System.Collections.Generic;
using JetBrains.Annotations;
#endregion
namespace CSharpUtilsNETStandard.Utils.Collections
{
/// <summary>
/// Keeps the order of keys that are inserted into the DictionaryList.
/// Initially the keys are ordered a... |
e5e0951541d067e54e91e7206a57f4a9cfe15e48 | C# | shendongnian/download4 | /code5/943413-23775795-65578367-2.cs | 3.328125 | 3 | public static class ClassPropTextSearch
{
private static Dictionary<Type, List<PropertyInfo>> _stringProperties =
new Dictionary<Type, List<PropertyInfo>>();
public static bool Match(object item, string searchTerm)
{
// Skip null checking ...
if (!_str... |
c9cbe5c8146db1cf2cd6e5f971b5317a01a73e6f | C# | fearnoevil7/CSharp | /ORM/EntityFramework/Login/Controllers/HomeController.cs | 2.5625 | 3 | using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
using Login.Models;
using System.Linq;
using Microsoft.AspNetCore.Identity;
namespace Login.Controllers
{
public class HomeController : Controller
{
priv... |
aea40e97d61d31ccb0c91e087196638e29de8595 | C# | viniolimpio3/CSharp-Database-Connection | /Database_Connection/Util.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Database_Connection
{
class Util
{
private object response;
public void sair()
{
this.response = MessageBox.Show("Deseja... |
cc06a73091d64c573f2350dd8f421b6e958c7db4 | C# | ItsJustMeChris/IST-210 | /Lab 12 Array/Lab 12 Array/Program.cs | 3.640625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lab_12_Array
{
class Program
{
static void Main(string[] args)
{
int[] arr = new int[10];
arr[0] = 77; // insert 10 items
... |
3bf10d19954ff12c4d18579af18d61d27d306b8d | C# | vishaljain1981/CoachingManagementSystem | /DataContainerClasses/Class.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.OleDb;
namespace CoachingManagementSystem
{
class Class : CoachingBase
{
#region fields
// All fidels of table, name of these fields should be exactly
// same as table's field in th... |
531574c7a3645f82831fdc2dade136c26ce4d566 | C# | JelleStu/FontysSoftware | /Deelproducten_software/toolbox basis/MBO_Opdracht/opdracht_1/Form1.cs | 2.890625 | 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 opdracht_1
{
public partial class Form1 : Form
{
public Form1()
{
... |
bb511eb4813eb7d14fdd7be2f1ccfb70bb62dc60 | C# | jebcat1982/healthvault-samples | /dotNETStandard/HealthVault.Mobile/cs/Xamarin.Core/ViewModels/DataTypeFormatter.cs | 2.65625 | 3 | using System;
using Microsoft.HealthVault.ItemTypes;
namespace HealthVault.Sample.Xamarin.Core.ViewModels
{
public static class DataTypeFormatter
{
public static DateTime EmptyDate { get; } = new DateTime(1900, 1, 1);
public static string ApproximateDateTimeToString(ApproximateDateTime medicat... |
a3fbaa19e8905e1a0109a4ec3407d118971d7998 | C# | brian-reichle/Buffalo | /src/Buffalo.Core.Test/TestHelpers/Renderer.Lexer.cs | 2.578125 | 3 | // Copyright (c) Brian Reichle. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Text;
using Buffalo.Core.Lexer;
using Buffalo.Core.Lexer.Configuration;
namespace Buffalo.Cor... |
35c1778de0b5b0e7b8549eda043d7066abcde922 | C# | ChrisPam/CSharpAdvanced | /08.ManualStringProcessingExercise/09.TextFilter/Program.cs | 3.5 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
public class TextFilter
{
public static void Main()
{
var banWords = Console.ReadLine().Split(new string[] { ", " },
StringSplitOptions.RemoveEmptyEntries).OrderByDescending(x => x.Length).ToList();
var text = Cons... |
e07a7604d90efcd76f363af37b757643ee5e429e | C# | Batooon/BadgeFactory | /Assets/Plugins/VoodooPackages/TinySauce/TinySauce.cs | 2.625 | 3 | using GameAnalyticsSDK;
using Voodoo.Sauce.Internal;
using Voodoo.Sauce.Internal.Analytics;
public static class TinySauce
{
public const string Version = "3.2.1";
/// <summary>
/// Method to call whenever the user starts a game.
/// </summary>
/// <param name="levelNumber">The game Level, this ... |
935577475dc056b36b49d02458499fd714762e89 | C# | hstefanov/Telerik-Academy-Tasks | /1. Programming/1. C# - Part One/01. Introduction-To-Programming/PrintSquareOfNumber/PrintSquareOfNumber.cs | 3.015625 | 3 | using System;
class PrintSquareOfNumber
{
static void Main()
{
int number = 12345;
Console.WriteLine("Square of {0} is {1} ",number,Math.Sqrt(number));
}
}
|
23cac25128809ef9adba4fd6476982a2470c277b | C# | Bimmr/DXBall---Brick-Breaker | /DXBall/Ball.cs | 2.515625 | 3 | using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Media;
namespace DXBall
{
public class Ball : DrawableGameComponent
{
private int paddleCoolDown;
private Game1 _game;
private SpriteBatch _spriteBatch;
private Vec... |
a8e8135dec047da8f045b3533c760a2eac14ddcb | C# | cangunfer/AspNetWebApi_Json | /AspMvcWebApi/Models/Database.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace AspMvcWebApi.Models
{
public static class Database
{
private static List<User> _database;
static Database()
{
_database=new List<User>(){
new User() {... |
16f24a3bdca4322aa6aff6f4bfef882583ce77ea | C# | JakeJP/jCryption.NET | /App_Code/jCryption.cs | 2.765625 | 3 | /*
* jCryption.NET v 1.3.3
* is a server side implementation for jCryption v3.0 and ASP.NET
* written by Jake.Y.Yoshimura
* https://github.com/JakeJP/jCryption.NET
*
* MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* jCryption client side library is originally created by Daniel Griesser... |
26c6a34eaae885310de88b3f9571a1b84e150db3 | C# | vishvajit79/COMP3064_FINALPROJECT | /Assets/Scripts/Player.cs | 2.859375 | 3 | using UnityEngine;
public class Player {
//public variable
public CanvasController CanvasController;
//private variables
private int _score;
private int _life = 2;
private int _highScore;
private int _timer = 20;
private static Player _instance; //declaring player instance
... |
d2d0f809a8d979a9d7ca5b793c014d410b4e1782 | C# | artursolekss/sessionExamples | /BasicsExamples/StringExamples.cs | 3.0625 | 3 | using System;
namespace Basics
{
class StringExamples
{
static void Main(string[] args)
{
string testStrA = "Part";
string testStrB = "Part1";
string testAdd = "1";
// testStrA = testStrA + testStrB;
testStrA += "1";
Conso... |
be018c50d4658b59124eda6cb530743e61f254e5 | C# | agaddampalli/Algorithms | /Chapter 2 - Arrays/ReorderLogFiles.linq | 3.234375 | 3 | <Query Kind="Program" />
void Main()
{
var input = new string[] {"a1 9 2 3 1","g1 act car","zo4 4 7","ab1 off key dog","a8 act zoo"};
ReorderLogFiles(input).Dump();
}
public string[] ReorderLogFiles(string[] logs)
{
Sort(0, logs.Length-1, logs);
return logs;
}
public void Sort(int start, int end, string[] logs)
... |
7adfb1b56fb703da1e483cb8866cf429bdf8f92a | C# | holicoweve/kata-StringAverage | /StringAverage/Extensions.cs | 3.546875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
namespace Solution
{
public static class Extensions
{
private static readonly string[] Words = new string[]
{
"zero", "one", "two", "three", "four", "five",
"six", "seven", "eight... |
8ddc877f98273dcb78f98589ecb246aa80161adb | C# | elmahalawym/ProblemSolving | /LeetCode/15_3Sum.cs | 3.515625 | 4 | public class Solution {
public IList<IList<int>> ThreeSum(int[] nums) {
var result = new List<IList<int>>();
Array.Sort(nums);
for(int i=0; i<nums.Length; i++) {
if(i>0 && nums[i] == nums[i-1])
continue;
int l = ... |
e221fc8a24d310241480235c629693b17ea82a9f | C# | greck2908/DataStructures | /C#/Leetcode/String/CompareVersionNumbers.cs | 3.78125 | 4 | using System;
namespace LeetcodeSolutions.String
{
// Leetcdoe 165 - https://leetcode.com/problems/compare-version-numbers/description/
// Submission Detail - https://leetcode.com/submissions/detail/184165156/
public class CompareVersionNumbers
{
//public static void Main(string[] args)
... |
0b5511c0f8efd899f8d6fc79c9d0209c587188fb | C# | Asianatix/TheQuickerSnipper | /TheQuickerSnipper/Views/MainWindow.xaml.cs | 2.6875 | 3 | using System;
using System.IO;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;
namespace Knapcode.TheQuickerSnipper.Views
{
public partial class MainWindow
{
public MainWindow()
{
InitializeComponent();
SuffixSeperator = "_";
SelectionAre... |
97298851b59a63f8fb22cf3074e7c4ce6964a089 | C# | sebas77/Svelto.Tasks.Examples | /Assets/Svelto.Tasks/Svelto.Tasks/TaskContract.cs | 2.640625 | 3 | using System.Collections;
using System.Runtime.InteropServices;
using Svelto.Tasks.Enumerators;
namespace Svelto.Tasks
{
public struct TaskContract
{
TaskContract(int number) : this()
{
_currentState = states.value;
_returnValue.int32 = number;
}
Ta... |
18c8299c20f975adcabf1b0ecd3477bf09faf94d | C# | shendongnian/download4 | /code9/1593044-44513323-149225934-4.cs | 2.65625 | 3 | dynamic testObject = new LoggedPropertyAccess();
string firstname = testObject.FirstName;
string lastname = testObject.LastName;
foreach (var propertyName in testObject.accessedPropertyNames) {
Console.WriteLine(propertyName);
}
Console.ReadKey();
|
51d632d81d7e4cf0dfdc8ab063bb52e38714a30d | C# | pnjeffries/Nucleus | /Nucleus/Nucleus.Game/Components/Abilities/OpenDoorAbility.cs | 2.703125 | 3 | using Nucleus.Game.Actions;
using Nucleus.Geometry;
using Nucleus.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Nucleus.Game.Components.Abilities
{
/// <summary>
/// Data component which confers the ability to open doors
... |
ad7e930fe387f960a4f7152b1e9169d2ccc23031 | C# | bodommer/Monopoly | /Monopoly/Players/Player.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Monopoly.Main;
using System.Drawing;
namespace Monopoly.Players
{
/**
* A base container for both HumanPlayer and AIPlayer. Contains basic attributes the two types
* of players have ... |
92b591d1a9a16c139bf02b90b1322f980260f5b2 | C# | thanlong2910/XoamuLaptrinh01 | /ConsoleApp1/Bai28/Program.cs | 3.5625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bai28
{
// Viết chương trình nhập n là số thập phân(n <= 255), n sang số nhị phân có 8 chữ số.
// Ví dụ:
// 1 = 00000001
// 10 = 00001010
// 255 = 11111111
class Prog... |
d5e053e6980e4c80f5bb3837aa5a2e0fc7379235 | C# | Luizhbc/JurosCompostoSimples | /Program.cs | 3.484375 | 3 | using System;
namespace Juros_Compostos
{
class Program
{
static void Main(string[] args)
{
string i = "S";
while(i == "S")
{
Console.Clear();
JurosCalcMethod();
Console.WriteLine("Deseja continuar? [S/N]: ")... |
8124fbe77cb43630b3ac2e4fafa9c3306626981d | C# | Nekroido/modpackupdater | /Updater/Classes/Api.cs | 2.84375 | 3 | using Newtonsoft.Json;
using System;
using System.Net.Http;
using System.Threading.Tasks;
using Updater.Models;
namespace Updater.Classes
{
public class Api
{
public static async Task<VersionModel> GetModpackVersion()
{
return await Request<VersionModel>(Config.MODPACK_URL + Config... |
bae9bcd6324cf86fcbf199db14edb0c2078af1c2 | C# | ffhighwind/DapperExtraCRUD | /DapperExtraCRUD.Cache.Example/Program.cs | 2.84375 | 3 | using System;
using System.Data.SqlClient;
using Dapper.Extra.Annotations;
using Dapper.Extra.Cache;
using Dapper;
namespace Example
{
[Table("Employees")]
public class Employee
{
[Key]
public int EmployeeID { get; set; }
public string UserName { get; set; }
public string FirstName { get; set; }
public s... |
9a58cd2df4a6087ae9a6a34645880ede61925fef | C# | Danny000012/LawTrust | /Framework/Services/API.cs | 2.734375 | 3 | using System.Collections.Generic;
using System.IO;
using System.Linq;
using Framework.Models;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using RestSharp;
namespace Framework.Services
{
public class API<T>
{
public RestClient restClient;
public RestRequest restRequest;
public str... |
adcb459215bc0f200b2501d161750e42be414193 | C# | tmsang12a14tkn/VITV | /VITV.Data/Repositories/SettingRepository.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Linq.Expressions;
using System.Web;
using VITV.Data.DAL;
using VITV.Data.Models;
namespace VITV.Data.Repositories
{
public class SettingRepository : ISettingRepository
{
private readonly VITVConte... |
abc4be653c1f96dbc746b77324c2d462d7c22631 | C# | Centronics/DynamicMosaicExample | /DynamicMosaicExample/ConcurrentProcessorStorage.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Threading;
using DynamicMosaic;
using DynamicParser;
namespace DynamicMosaicExample
{
/// <summary>
/// Потокобезопасное хранилище карт <see cref="Processor"... |
f5d754fcb0e01478561ca0a9587d00339623e4ad | C# | ddrempe/uzdiz | /damdrempe_zadaca_2/damdrempe_zadaca_2/Sustav/Pomocno.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace damdrempe_zadaca_2.Sustav
{
class Pomocno
{
public static void ZavrsiProgram(string sadrzajPoruke, bool uspjeh)
{
string porukaZavrsetka = ... |
ba5c7fcb7b93146945bfa66338472bbdbc9dc08c | C# | codeacademymktoni/RestaurantManagement | /Repositories/TableRepository.cs | 2.765625 | 3 | using Microsoft.EntityFrameworkCore;
using RestorantManagement.Models;
using RestorantManagement.Repositories.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace RestorantManagement.Repositories
{
public class TableRepository : ITableRepository
... |
a4b02d12017d7174b02b5efc463ff9d5e62ce5b9 | C# | Dream2Sky/JCB | /com.jiechengbao.common/TimeManager.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace com.jiechengbao.common
{
public class TimeManager
{
protected static readonly DateTime unixTPStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));
//... |
118bb21d6325cda53a32f7bf20a2e327005bda31 | C# | shendongnian/download4 | /code6/1123189-29610135-88011962-2.cs | 2.75 | 3 | using (var ms = new MemoryStream())
{
using (var doc = new Document(PageSize.A4, 50, 50, 25, 25)) {
//Create a writer that's bound to our PDF abstraction and our stream
using (var writer = PdfWriter.GetInstance(doc, ms))
{
//Op... |
efee09a642627783f7d3300576d4cc74769b3cfb | C# | RosarioBrancato/DataInserter | /DataInserter/DTO/ReportMessage.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DataInserter.DTO {
public class ReportMessage {
public bool Success { get; set; }
public string Message { get; set; }
public ReportStatus Status { get; set;... |
a598d5ce7cfa35574496e96009699b129d1650f7 | C# | mili-tan/Something | /jwt.cs | 2.71875 | 3 | using System;
using JWT.Algorithms;
using JWT.Builder;
using Newtonsoft.Json.Linq;
namespace JWToken
{
class Program
{
static void Main(string[] args)
{
var secret = Guid.NewGuid();
var token = new JwtBuilder()
.WithAlgorithm(new HMACSHA256Algorithm())
... |
90b50a4fb0e87d9af5f6467749ebeca59563ee3a | C# | CrazyBread/TextAnalyzer | /TA.Claster/ClasterizeBigram.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TA.Claster
{
public class ClasterizeBigram
{
const int DIMENSIONS = 3;
private Claster _termClaster = new Claster("Термин", ... |
af7e902320937d66afbb54be417c940950d71a7f | C# | Coco-s/Nik_proj_1 | /Nik_proj_1/Program.cs | 3.640625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Nik_proj_1
{
class Program
{
static bool Prost(int value)
{
bool flag = true;
for (int i = 2; i <= value / 2; i++)
{
... |
9b861a4eefc24897f15eaecf7797c6d1c3d7f90a | C# | GitHubLyf/NSqlParser | /NSqlParser/NSqlParser/Statement/Create/Table/CreateTable.cs | 2.71875 | 3 | using System.Collections.Generic;
using NSqlParser.Statement.Select;
namespace NSqlParser.Statement.Create.Table
{
public class CreateTable : IStatement
{
private Schema.Table table;
private bool unlogged = false;
private List<string> createOptionsstrings;
private List<string> ... |
322104af5793d43dcdd8626443fcc4e7234b66aa | C# | shendongnian/download4 | /code11/1965888-59849991-213407795-8.cs | 2.609375 | 3 | public IQueryable<SpaceFunctionType> Get<TDomain>(Expression<Func<TDomain, bool>> predicate) where TDomain: IA
{
return _dbContext.Set<TDomain>().Where(predicate.Compile())
.Select(c => new SpaceFunctionType
{
... |
99b552afd76e19333fe5ee785202eb364c5985fc | C# | Sbilyanov/SoftUni | /C# Fundamentals/7. Associative Arrays-Exersice/CompanyUsers/Program.cs | 3.328125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace CompanyUsers
{
class Program
{
static void Main(string[] args)
{
SortedDictionary<string, List<string>> companies = new SortedDictionary<string, List<string>>();
string input = Console.ReadLine... |
8124d96129a997991d1e51eadb6ac62b8b6e28b3 | C# | Nima-abdoli/Mink-Player | /Mink Player/MusicPath.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mink_Player
{
public class MusicPath
{
public string Path { get; set; } // path property for MusicPath Class
}// End of MusicPath Class
/// <summary>
/// Show Pla... |
4fd4caa25d83d1ed172db3dca0b7ebb72dfc8a29 | C# | Qorpent/qorpent.sys | /Qorpent.Charts/Graphs/Dot/Types/GraphStyleType.cs | 2.703125 | 3 | namespace Qorpent.Graphs.Dot.Types {
/// <summary>
/// Стили узлов
/// </summary>
public enum GraphStyleType {
/// <summary>
/// Сплошная граница графа
/// </summary>
Solid,
/// <summary>
/// Пунктирная граница графа
/// </summary>
Dashed,
/// <summary>
/// ... |
5667cb6a86bfecac7ba6b26911448097859345ad | C# | grinvi04/TeklaPractice | /TeklaCommon/YWControlObject.cs | 2.921875 | 3 | using System;
using Tekla.Structures.Dialog;
using TSG = Tekla.Structures.Geometry3d;
using TSM = Tekla.Structures.Model;
namespace TeklaCommon
{
/// <summary>
/// TSM.ModelObject 하위의 참고객체 관련 클래스를 모듈화 한 클래스
/// </summary>
public class YWControlObject
{
/// <summary>
/// 참고객체 점 생성
... |
9a73ae95116343d205bab49890e91b450a83347e | C# | GMZRD71/Azure4Kinect_Base_4AILab | /Kinect Camera Test V 3.5/Assets/camMouseLook.cs | 2.890625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// CLASS - camMouseLook
public class camMouseLook : MonoBehaviour
{
// This keeps track of how movement the camera has made
// since the last update; we need to keep track of the
// total movement so we can add it to the contr... |
bf792ee92616e0d0b11a6a55efd5cb00240902ec | C# | DKatsarski/Homework | /CSharp/01. CSharp1/1. Intorudcion/Laboratory/Program.cs | 3.453125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Intorudcion
{
class HelloCSharp
{
static void Main(string[] args)
{
Console.Write("Please, enter your first name: ");
string a = Console.ReadLin... |
cf963ee0c42e62bc2cd1334e0f8a51842d62df05 | C# | FishTheCrusader/mongoose | /code/businessentities/collections/PollingPlaceCollection.cs | 3.03125 | 3 | using System.Data.Common;
using System.Collections.ObjectModel;
using noi.votinginfoproject.interfaces;
namespace noi.votinginfoproject.businessentities
{
/// <summary>
///
/// </summary>
public class PollingPlaceCollection : Collection<PollingPlace>, ICreateable
{
/// <summary>
/... |
774d4a31f53525b9e246fb987353bb1f69ad3436 | C# | guzlewski/Minesweeper | /Minesweeper.Common/Extensions/NetworkStreamExtensions.cs | 3.15625 | 3 | using System;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
namespace Minesweeper.Common.Extensions
{
public static class NetworkStreamExtensions
{
private const int headerSize = sizeof(int);
public static async Task SendAsync<T>(this NetworkStream stream, T ... |
4cb7b9aa0b65c47977b194e96e6788564bb01eb3 | C# | Watch-Later/PCLMock | /Src/PCLMock/It.cs | 3.421875 | 3 | namespace PCLMock
{
using System;
using System.Text.RegularExpressions;
using PCLMock.ArgumentFilters;
/// <summary>
/// Facilitates the filtering of arguments when interacting with mocks.
/// </summary>
/// <remarks>
/// <para>
/// This class provides a number of methods that can ... |
31cdd06fff6af60c739ef88aa52d36bcf0c0d9e7 | C# | cnechifor/EtmilanAutomation | /EtmilanAutomation/CoreFramework/Utils/XMLDataManagement.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Xml;
namespace EtmilanAutomation.CoreFramework.Utils
{
public class XMLDataManagement
{
private XmlDocument xmlDoc;
private String str1;
public XMLDataManagement(String... |
c52bf82c57eab2c4f5614524d16112678a1b1953 | C# | shendongnian/download4 | /first_version_download2/364020-31213847-94295323-2.cs | 2.765625 | 3 | private List<Socket> samp = new List<Socket>();
private void button1_Click(object sender, EventArgs e)
{
//If you don't want the error
//if(samp.Count > 0) return;
IPHostEntry host = null;
Socket sock;
host = Dns.GetHostEntry(entered_ip);
... |
615b305bc09dd464cd654a2ed769300544a27bd0 | C# | 42Spikes/F2S | /F2S.MvvmX.Glass.LiveCardDemo.Plugins.Compass.Core/Model/Landmarks.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using F2S.MvvmX.Glass.LiveCardDemo.Plugins.Compass.Core.Util;
using Newtonsoft.Json;
namespace F2S.MvvmX.Glass.LiveCardDemo.Plugins.Compass.Core.Model
{
public cla... |
f101bbdaa710748434f289b1ee2a043f8651186e | C# | joaohiago01/space-shooter | /Assets/Scripts/EnemyGenerator.cs | 2.5625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyGenerator : MonoBehaviour {
//
public Enemy enemy;
public float timeCreate;
public bool canCreate = true;
void Update() {
if (canCreate == true){
canCreate = false;
... |
b225ae1115bf87e5c01fe8c40f7db755ee485983 | C# | avmgan/Alchemy4Tridion | /Alchemy4Tridion.Plugins/Clients/AlchemyCoreServiceClient201603.cs | 2.546875 | 3 | using Alchemy4Tridion.Plugins.Clients.CoreService;
using System;
using System.ServiceModel;
using System.Threading.Tasks;
using System.Xml.Linq;
using Alchemy4Tridion.Plugins.Utilities;
namespace Alchemy4Tridion.Plugins.Clients
{
/// <summary>
/// Provides a wrapper of the Tridion SessionAwareCoreServiceClien... |
2f8e23484d84845f47fccde5a3d32d018125e488 | C# | velev1/HomeworkTA | /UnitTesting/UnitTestingHomework/StudentsAndCourses/Course.cs | 3.34375 | 3 |
namespace StudentsAndCourses
{
using System.Collections.Generic;
using CoursesEnum;
public class Course
{
private ICollection<Student> programmingList;
private ICollection<Student> mathList;
private ICollection<Student> algorithms;
public Course()
{
... |
bcc539e658dee08f0f96d0a0d8567e7e73e63b2a | C# | brendonwanderlust/TicTacToeCSharp | /TicTacToeCSharp/UI.cs | 3.234375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TicTacToeCSharp.Players;
namespace TicTacToeCSharp
{
public static class UI
{
public static void DisplayGameBoardComponent(GameState game)
{
Console.WriteLine(... |
02401cfcc10e81c16e03eced237d9c28e1af9036 | C# | ThatMadMf/nmcs | /labs_nmcs/LabsFactory.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace labs_nmcs {
class LabsFactory {
public static Lab getLab(Labs lab) {
switch (lab) {
case Labs.Eluler:
return new Lab6.Euler(1, 0, 0... |
a29e31ca8aff6f9bd69be2425e701b2d9c069c19 | C# | TheDotaWeirdo/Extensions | /Extensions/Extensions/Threading Extensions.cs | 3.484375 | 3 | using System;
using System.Threading;
namespace Extensions
{
public static partial class ExtensionClass
{
/// <summary>
/// Runs an <see cref="Action"/> in the background
/// </summary>
/// <param name="Priority">The <see cref="ThreadPriority"/> of the background <see cref="Thread"/></param>
public static ... |
dc202dc2d54b47332c607d448a90d7ee849f5d25 | C# | SenkoVlad/Patterns | /Core/Patterns/Structural Design Patterns/Adapter/RoundHole.cs | 2.75 | 3 | using Patterns.Structural_Design_Patterns.Adapter;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Patterns.Structural_Design_Patterns.Addapter
{
public class RoundHole
{
protected int radius;
public RoundHole(int ra... |
944878cd85583d4a3bd8c7dd3a6ae5a379497a90 | C# | dimitri20/davaleba4 | /calculatorWithSwitch/calculatorWithSwitch/Program.cs | 3.59375 | 4 | using System;
namespace calculatorWithSwitch
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("kalkulatori: \n\n");
while (true)
{
Console.Write("sheiyvanet pirveli ricxvi: ");
double firstNumber = Conv... |
5363d19f9d541f962df0dca56308bd311679eed7 | C# | dotlogix/DotlogixCore | /WebServices/WebServices.Core/Terms/ManyTerm.cs | 2.546875 | 3 | #region
using System.Collections;
using System.Collections.Generic;
using DotLogix.Core.Extensions;
using DotLogix.WebServices.Core.Serialization;
using Newtonsoft.Json;
#endregion
namespace DotLogix.WebServices.Core.Terms;
[JsonConverter(typeof(ManyTermJsonConverter<>))]
public class ManyTerm<T> : IReadOnlyList<T>... |
42d9669bc1ef7e8e39a64efeb920f44aea5cbe55 | C# | madilynsimons/Snakes | /Attack.cs | 3.171875 | 3 | // Attack.cs
using System;
public class Attack
{
readonly int DEFAULTID = -1;
readonly int DEFAULTPP = 20;
readonly string DEFAULTNAME = null;
readonly int DEFAULTSIZE = 1;
public int Id;
public string Name;
public int Slots;
public int MaxPP, CurrentPP;
/** Constructors **/
public Attack()
... |
243cd8a7757aa9757227942e7c2ebc71d1ca50dc | C# | owenbartley/logbook | /NewTrip.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;
using System.IO;
using System.Xml;
using System.Xml.Linq;
namespace DriversLogbookApp
{
public parti... |
302ed052dd344342a68adc2e42b275d18ab14c7b | C# | njg/songlyricsstatis | /phoneticTable/repairer/EndingRepairerEd.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LyricThemeClassifier
{
class EndingRepairerEd : EndingRepairer
{
#region Public Methods
public override bool IsMatchEndingType(string wordVariant, string shortHomophone)
{
... |
6c8777f9c735818b40bed6e0013210bd6805e00a | C# | Bozhikov99/Csharp-Fundamentals | /03. Arrays/Arrays - Exercise/3. Zig Zag/Program.cs | 3.5 | 4 | using System;
using System.Linq;
namespace _3._Zig_Zag
{
class Program
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
int[] up = new int[n];
int[] down= new int[n];
for (int i = 0; i < n; i++)
{
... |
a688b95e040179ad6027ee058d92c5499507a1ff | C# | AndreaQuintero20104/SolucionFinal | /Presentacion/PantallaGraficoDueño.cs | 2.53125 | 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 LogicaNegocio;
using AccesoDatos;
using System.Windows.Forms.DataVisualization.Charting;
namespace... |
66cb70d66fbea213738c8a880c4dec01d51b9220 | C# | thebluecode/SOLID-Samples | /SingleResponsibilityExample/AfterRefactoring/Example.cs | 3.390625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AfterRefactoring
{
public class Product
{
public string Name { get; set; }
public int Price { get; set; }
public Product(string name, int price)
{
... |
8eaa347d0a69754bda4b9986aa7e6518fe508b51 | C# | KevinCRR/KingWilliamHotel | /KingWIlliamApp/KingWilliamApp/frmViewStaff.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 KingWilliamApp
{
public partial class frmViewStaff : Form
{
public frmViewStaf... |
e46dfdd9db8e76c389b0956f105e5857e8251749 | C# | Nobuna-no/Unity-Tools | /Unity-Tools/Assets/00-UNITY-TOOLS/Production/Sources/UtilityModules/Physics/Physics2DUtility.cs | 2.6875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public static class Physics2DUtility
{
public static class CollisionMatrixLayerMasks
{
private static Dictionary<int, int> masksByLayer;
public static void Init()
{
masksByLayer = new Dictiona... |
e14781b23c4382f21ced4ff861d8736899ddb129 | C# | renber/AvisNet | /Avis.Common/IO/Messages/ErrorMessage.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Avis.IO.Messages
{
public class ErrorMessage : SyntheticMessage
{
public const int ID = -1;
public Exception Error { get; private set; }
public Message Cause {... |
8452bef5ff98a0a15511e1865b25196bc611449b | C# | a-n-n-i-e/CognitiveCustomVision-TrainFinderBot | /TrainFinderBot/Dialogs/RootDialog.cs | 2.75 | 3 | using System;
using System.Threading.Tasks;
using Microsoft.Bot.Builder.Dialogs;
using Microsoft.Bot.Connector;
using Microsoft.Cognitive.CustomVision;
using System.Net.Http;
using Newtonsoft.Json;
using TrainFinderBot.Models;
namespace TrainFinderBot.Dialogs
{
[Serializable]
public class RootDialog : IDialog... |
011aacc66a3e01eaf87199feee23975c52df6c34 | C# | velev1/HomeworkTA | /C#1/Loops/HexToDecimal/HexToDecimal.cs | 3.625 | 4 | //Using loops write a program that converts a hexadecimal integer number to its decimal form.
//The input is entered as string. The output should be a variable of type long.
//Do not use the built-in .NET functionality.
//Input
//The input will consists of a single line containing a single hexadecimal number as string... |
7685be9e272d2d5dcd5f1646f5ddb2ea005e63c5 | C# | AgmasGold/anno-designer | /AnnoDesigner/BrushCache.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using AnnoDesigner.model;
namespace AnnoDesigner.Helper
{
public class BrushCache : IBrushCache
{
private static Dictionary<Color, SolidColorBrush> _cachedBru... |
94fb17ab9a80affd61498a0d75a927990bb7cb38 | C# | JakeBR72/Code-Examples | /CSE 3902 Mario Game/sprint3/Items/ItemObjects/OneUp.cs | 2.53125 | 3 | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MarioGame
{
public class OneUp : IItem
{
public bool ShouldUpdate { get; set; }
public Vector2 Lo... |
23588f3fa6e7f7c780b4548b18f76cc903fde3fd | C# | Petrakisos/TelerikAcademy | /CSharpPart2/04.NumeralSystems/03.DecimalToHexadecimal/DecimalToHexadecimal.cs | 3.953125 | 4 | using System;
class DecimalToHexadecimal
{
static string ConvertDecimalToHexadecimal(long decimalValue)
{
string sum = "";
string[] hexDigits = "0 1 2 3 4 5 6 7 8 9 A B C D E F".Split(' ');
int baseValue = 16;
do
{
long bit = decimalValue % baseValue;
... |
19675487cd4f0168257c63210b711d972ec03f5f | C# | shendongnian/download4 | /code6/1056478-27336074-146726206-6.cs | 2.90625 | 3 | public string ReadPage(string path, string method = "GET")
{
var request = (HttpWebRequest)WebRequest.Create(path);
request.Method = method;
request.Host = "somehost.de";
request.CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore);
request.R... |
4461d09cc29cc1c49417d2bcbf08f17f81f4c896 | C# | solarwinds/OrionSDK | /Src/Contract/Serialization/XmlStrippedSerializerCache.cs | 2.6875 | 3 | // Important:
// This file has a copy that needs to be kept in sync:
// //depot/Dev/Main/Platform/InformationService/Src/InformationService/Core/Serialization/XmlStrippedSerializerCache.cs
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace SolarWinds.InformationService.Cont... |
2361c59dfef40397a2c7a74916781c30aee707c8 | C# | SonicTheCat/ProgrammingBasics-SoftUni | /CSharpExamPrep/2016.November-20-Morning/02.Pets/Program.cs | 3.5625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _02.Pets
{
class Program
{
static void Main(string[] args)
{
int daysAway = int.Parse(Console.ReadLine());
int leftFoodInKg = int.Parse(Console.... |
ab0b0e1ed6d3adfb3c91fee8952d2eae1f268b19 | C# | soomker/Task8Searcher | /Searcher/SearchProvider.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;
using System.Reflection;
using Search;
using Searcher.OwnSectionRead;
namespace Searcher
{
class SearchProvider
{
private SearchProviderSection searchSection;
... |
9226e324c1771e258ab6b23715b62c2ee394e4e3 | C# | mohdnat91/Titan_old | /Titan/Resolution/PropertyResolutionHandler.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Serialization;
using Titan.Utilities;
namespace Titan.Resolution
{
internal class PropertyResolutionHandler : IResolutionHandler
{
public Reso... |