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 |
|---|---|---|---|---|---|---|
571cc795edee0296ac116b3bc81a8a21c269d776 | C# | urosradosavljevic/wpf-hospital-student | /ViewModel/AccountInfoViewModel.cs | 2.515625 | 3 | using Bolnica.Model;
using System;
using System.Linq;
using System.Windows;
namespace Bolnica.ViewModel
{
class AccountInfoViewModel : BindableBase
{
MainWindowViewModel mainWindowDataContext;
public string HelpText { get; set; }
private readonly App app;
private stri... |
5fc3b754cd8bf6014c71a73284cffc73beea3bed | C# | abulanadi/Lab8 | /GreedySalesman.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.IO;
using System.Text;
using System.Threading.Tasks;
namespace Lab8
{
public class GreedySalesman
{
Graph graph = new Graph();
MatrixGen matrixGen = new MatrixGen();
BruteSalesman brute = new BruteSalesma... |
d21d327079f21508072946c29ddf52d633ca091a | C# | 56840170/SocketWork | /UDP/UClient/UClient.cs | 2.578125 | 3 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Toys.NetWork
{
public class UClient : UBasic
{
/// <summary>
/... |
74565e7fa1a324b8cdc04621c0d54c43b26df955 | C# | tyler-mcwilliam/SPOJ | /Spoj.Library/Heaps/IHeap.cs | 2.796875 | 3 | using System.Collections.Generic;
namespace Spoj.Library.Heaps
{
public interface IHeap<TKey, TValue>
{
int Size { get; }
bool IsEmpty { get; }
KeyValuePair<TKey, TValue> Top { get; }
void Add(TKey key, TValue value);
void Add(KeyValuePair<TKey, TValue> keyValuePair);
... |
651d293a3512f1eee1df77aa7f9c94eb118cbe93 | C# | newmast/Telerik_2015-2016 | /CSharp-Two/Methods/SortingArray/SortingArray.cs | 4.21875 | 4 | //### Problem 9. Sorting array
//* Write a method that return the maximal element in a portion of array of integers starting at given index.
//* Using it write another method that sorts an array in ascending / descending order.
using System;
using System.Linq;
class SortingArray
{
static void Main()
{
... |
3f1241cb1bb501d12fef055a75c2f4c8e23bb1c9 | C# | leesq87/myCode | /Unity/----------/13.PlayerPrefs/Script/csGameManager.cs | 2.53125 | 3 | using UnityEngine;
using System.Collections;
using UnityEditor;
public class csGameManager : MonoBehaviour {
void OnGUI(){
if(GUI.Button(new Rect(30,50,180,30),"Set Value")){
SetData();
}
if(GUI.Button(new Rect(30,100,180,30),"Get Value")){
GetData ();
}
}
void SetData(){
//key, value
Player... |
bb7485ac14e3b4a48dfa4103dae31eae88c14a92 | C# | dvzghr/CSharpNutshell | /Polymorphism/Program.cs | 3.109375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Polymorphism
{
public class Program
{
static void Main(string[] args)
{
int x, y;
Console.WriteLine("\nbaseClass = new BaseClass()\n-----------... |
e4330d11cfc85987a0d6d9554e1dd1fba2687321 | C# | nadita/vj | /Obligatorio 2 PV/Practico/Game.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practico
{
public class Game
{
public Stage actualStage;
public int actual_stage;
public int actual_lives;
public String message;
public Boolean end_time;
... |
10e9d0754fdfdefe7c6c40ef09d3639850df9bd0 | C# | StefanIvanovIvanov/SoftUni | /Programming Fundamentals-Extended/MoreArraysExercise/17.JumpAround/Program.cs | 3.59375 | 4 | using System;
using System.Linq;
namespace _17.JumpAround
{
class Program
{
static void Main(string[] args)
{
int[] numbers = Console.ReadLine().Split().Select(int.Parse).ToArray();
int jump = 0;
int sum = 0;
bool hasMoved = true;
w... |
b80ea7de46ce4743fb66d8285f4c1846005fac80 | C# | ruthqv/SqLiteEF | /SqLiteEF/AgregateWindow.xaml.cs | 2.703125 | 3 | using Data.SqLiteEF;
using SqLiteEF.Data;
using System;
using System.Collections.Generic;
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 System.Windows.Input;
using System.Windows.... |
c6e2e0b1931180ff9956dd2e34e4f963f15607e0 | C# | dcornish84/Student-Exercises | /Program.cs | 3.4375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace StudentExercises
{
class Program
{
static void Main(string[] args)
{
// Exercises
var planYourHeist = new Exercise("Plan Your Heist", "C Sharp");
var designClassWebsite ... |
05b89f327663b27eb65a91ece0c3ce0bd38fd644 | C# | szp35/CefSharpDemo | /CefDemo/CefDemo/CefDemo/ThreadQueue.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace CefDemo
{
/// <summary>
/// 先入先出线程队列
/// </summary>
class ThreadQueue
{
#region 成员字段
... |
71244237438adf2a3a56e72d0dfd4f0e4a0c7cad | C# | Arctic94/c-sharp-Projects | /Venta pasajes Windows Forms + MySql/Pasajes.Negocio/PasajeMaritimo.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Pasajes.Datos;
namespace Pasajes.Negocio
{
public class PasajeMaritimo:Pasaje
{
private int _idMaritimo;
public int IdMaritimo
{
get { return _idMaritimo; }
set { _idMar... |
ff0615b66a917594ae28555d430faad6fbcebe21 | C# | qoollo/bob-client-net | /BobClient/Qoollo.BobClient/IBobApi.cs | 2.875 | 3 | using System.Threading;
using System.Threading.Tasks;
namespace Qoollo.BobClient
{
/// <summary>
/// Bob api
/// </summary>
public interface IBobApi
{
/// <summary>
/// Writes data to Bob
/// </summary>
/// <param name="key">Key</param>
/// <pa... |
f7ea4310ac64a6132f4a790e6d51b8ffb7c161c0 | C# | zawupf/aoc | /2021/csharp/Aoc2021/Day12.cs | 3.09375 | 3 | namespace Aoc2021;
public class Day12 : IDay
{
public override string Day { get; } = nameof(Day12)[3..];
public override string Result1()
{
return PathCount(InputLines)
.ToString(CultureInfo.InvariantCulture);
}
public override string Result2()
{
return ExtraPathCo... |
9fba4530efb0e45c07bdb4be61ab9dc516f95a73 | C# | kakaggarwal/Practice | /Practice/ProgProblems/Problem6.cs | 3.546875 | 4 | using System;
namespace Practice.ProgProblems
{
// Sum Square Difference
class Problem6
{
public static void Solution()
{
Console.WriteLine("Enter N: ");
int n = Convert.ToInt32(Console.ReadLine());
long sumOfSquares = 0;
long squareOfSum = ... |
c911f83b5ebc4232651bac18367deef1d850cf53 | C# | Morzkat/WebApplication | /BuyYourMovie/DataLayer/MovieData.cs | 3.375 | 3 | using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using Microsoft.Extensions.Configuration;
using BuyYourMovie.Models;
using System.Data;
namespace BuyYourMovie.DataLayer
{
//Class for comunicate with the DataBase
public class MovieData : IDataLayer<Movie>
{
//The connec... |
156f714108ccf15d0fda22b1b008b7d48c8e86dd | C# | vivaHappyCrab/dnd5 | /CharacterBase/Entities/Character.cs | 2.515625 | 3 | using System.Collections.Generic;
using System.IO.Compression;
namespace CharacterBase.Entities
{
public class Character
{
public string Name;
public Class Class { get; set; }
public Race Race { get; set; }
public Background Background { get; set; }
public Inventor... |
53f0e4f400d2aa056677f6d4d3dcef857fabd21d | C# | shendongnian/download4 | /code10/1749850-50884223-175690744-2.cs | 2.984375 | 3 | using System;
using System.Threading.Tasks;
using System.Threading.Tasks.Dataflow;
namespace ClassLibrary1
{
public class WorkerProducer
{
public async Task ProduceWorker()
{
//await ProductTransformer_Transformer.SendAsync(new Worker())
... |
d8edb0c846e553ef5654017b0b0b1149ad522e98 | C# | duarte25/uriSolution | /Uri1963.cs | 3 | 3 | using System;
class Uri
{
static void Main(string[] args)
{
string[] val = Console.ReadLine().Split(' ');
double a = double.Parse(val[0]);
double b = double.Parse(val[1]);
Console.WriteLine("Eerro "+b);
Console.WriteLine((((b - a) / a) * 100.0).ToString("F2")+"%");
}... |
042556dd9c84cc69c6bc5a4031fd404ee21cce9f | C# | linksdeity/Lab14 | /GrandCircusLab14/Alligatorcs.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GrandCircusLab14
{
class Alligator : ICountable
{
private int Count { get; set; }
public string Name { get; set; }
public void IncrementCount()
{
... |
9dbc4b2f9a8b9ea114198759711018ee8dfd34c3 | C# | jbojacob/jbosolution | /Egenskaber_demo/Program.cs | 2.734375 | 3 | using System;
namespace Egenskaber_demo
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
class Person
{
private int alder;
public int Alder
{
get { return Alder; }
... |
38271a5a195b6b770b55c8f4cbf1009a101dee13 | C# | Graunarmin/LostStation | /LostStation/Assets/Scripts/Inventory/Manager/ItemContainerManager.cs | 2.53125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class ItemContainerManager : MonoBehaviour
{
protected IItemContainer container;
protected ItemSlot[] slots;
public Transform itemsParent;
protected virtual void Start()
{
container = new Inven... |
0b3e6016815a21bb6bbfe194fd70e4c9ed22cce5 | C# | santiagovdk/MyMusic | /MyMusic/BusinessLogic/NewBusinessLogic/clsNewBL.cs | 2.546875 | 3 | using DataAccess;
using DTO;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Utility;
namespace BusinessLogic.NewBusinessLogic
{
public class clsNewBL
{
clsFacadeDA FacadeDA = new clsFacadeDA();
cl... |
1c95411e6bf0f294531931a6052562f6906a7ba9 | C# | MariaZhikhareva/var | /ConsoleApplication1/ConsoleApplication1/Program.cs | 3.3125 | 3 | using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Введите второе число для умножения");
//Ввод числа с клавиатуры
string s = Console.ReadLine();
int a = Convert.ToInt3... |
cc64066cc1e977c3f7b796831a34c97b4ecd8cf8 | C# | LordBigDuck/BenchCrisis | /BenchCrisis.Core/Models/ValueObjects/PersonName.cs | 3.046875 | 3 | using BenchCrisis.Core.Models.Generics;
using FluentResults;
using System;
using System.Collections.Generic;
using System.Text;
namespace BenchCrisis.Core.Models.ValueObjects
{
#nullable enable
public class PersonName : ValueObject
{
public string? FirstName { get; }
public string? LastName { ... |
daa8accc8873e02f7c054ad9d694cd3705689bbb | C# | vilkan32/SoftUniProjects | /IntroAndBasicSyntax/ForeignLanguages/Program.cs | 3.421875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ForeignLanguages
{
class Program
{
static void Main(string[] args)
{
Dictionary<string, List<string>> Languages = new Dictionary<string, List<string>>();
... |
041e9d0589d3499deb75c240e6264c56e5501f1a | C# | Coki32/ElfTaskScheduler | /Zadatak1/SharedResources.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using static Zadatak1.ElfTaskData;
namespace Zadatak1
{
/// <summary>
/// Class provides a single method used for consuming resources
/// shared between different tasks. It does locking and unlocking
/// and notifies who is holding wh... |
20868df8116732f01c3e8048c81095f712d63c33 | C# | ameejac/Sanke_ladder_game | /snake_ladder.cs | 3.25 | 3 | using System;
namespace snake__and__ladder_project
{
class Sanke_ladder_uc2
{
static void Main(string[] args)
{
//Constants
int NO_OPERATION = 0;
int SNAKE_POSITION = 1;
int LADDER_POSITION= 2;
//variables
int position = 0... |
c8aa7a0f0fb1f4faca56cdc26175d83fe8776c2e | C# | jalpendesai/Into-the-Space-Unity | /Assets/Scripts/GameController.cs | 2.515625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class GameController : MonoBehaviour {
public GameObject hazard; // Spawned enemies
public Vector2 spawnValue; // Where do enemies spawn?
public int hazardCoun... |
34a9006950c53e32eb9195bcc52a5fbde847a93e | C# | Cimpress/FomaSdk.Net | /src/Model/OrderRequestLinks.cs | 2.734375 | 3 | using System.Runtime.Serialization;
using System.Text;
using Newtonsoft.Json;
namespace Cimpress.Clients.Foma.Model {
/// <summary>
/// The Links associated with the order request
/// </summary>
[DataContract]
public class OrderRequestLinks {
/// <summary>
/// The fulfiller to create the order reque... |
23d948e03e266bcc8ca3ad371c1e313b326b2a03 | C# | bramerdaniel/ConsoLovers | /src/Toolkit/ConsoLovers.ConsoleToolkit/Console/FrequencyBasedColorAlternator.cs | 3.5625 | 4 | namespace ConsoLovers.ConsoleToolkit.Console
{
using System;
using System.Drawing;
using System.Linq;
/// <summary>
/// Exposes methods and properties used for alternating over a set of colors according to
/// frequency of use.
/// </summary>
public sealed class FrequencyBasedColorAlternat... |
bc197b009ff793f2761692e715e720ccf6f3d47a | C# | ewkonzo/Projects | /E-Ticket-System-master/ETicketSystem.Web/ETicketSystem.Services/Admin/Implementations/AdminTownService.cs | 2.828125 | 3 | namespace ETicketSystem.Services.Admin.Implementations
{
using AutoMapper.QueryableExtensions;
using Contracts;
using Data;
using Data.Models;
using Models;
using System.Collections.Generic;
using System.Linq;
public class AdminTownService : IAdminTownService
{
private readonly ETicketSystemDbContext db... |
443550bc618c2e5412a08e7c6a4a70c13c3980fc | C# | lkasana/TizenFX | /src/Tizen.NUI.Components/Controls/RadioButtonGroup.cs | 2.59375 | 3 | /*
* Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
dedd43e0a4684f4f9cccd2062c96923d71a61b2c | C# | oMERIDIANo/HW_917 | /GH_HW917_TurnIn/Assets/Assignment.cs | 3.53125 | 4 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Assignment : MonoBehaviour
{
public string string1 = ""; //Type inside inspector
public string[] stringArray; //Type inside inspector
// Start is called before the first frame update
void Start()
{
... |
bcff3aa8c093fffefe71c5de32a094f9ca5f0ba0 | C# | NNNIC/project_underdevelop | /excelapp/test2/excelapp/excelapp/ItemBoxElement.cs | 2.515625 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing;
namespace excelapp
{
public class ItemBoxElement
{
/*
box up/down
*/
public const int knob_button_width =... |
72f48e74b86ca34e543a7f9989a88e7ab845549d | C# | csharpstudy/lab | /Lab4_파일압축/Solution/FileCompress/Program.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.IO.Compression;
namespace FileCompress
{
class Program
{
//
// 실행방식 : C> FileCompress.exe input.txt
//
static void Main(string[] args)
{
// 입력... |
fd6c0a015a923461b63023f090b769c7e305392c | C# | mikmyers/IoTHackathon | /Hackathon.Repository/Repositories/HealthCentreRepository.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using Hackathon.Repository.Interfaces;
using Hackathon.Entities;
namespace Hackathon.Repository.Repositories
{
public partial class HealthCentreRepository : RepositoryBase<EntityContext>, IHealthCentreRepository
{
public HealthCentre ... |
985fde1802ed480d83d20ced507202eb5c4ab0b4 | C# | FSharpBristol/FSharpTurtleTutorial | /Solved-Versions/CSharp-Version/Commands/TurnLeftCommand.cs | 2.890625 | 3 | namespace TurtleRunner.Commands
{
using TurtleRunner.Models;
public class TurnLeftCommand : ICommand
{
private readonly int _quantityToTurn;
public TurnLeftCommand(int quantityToTurn)
{
_quantityToTurn = quantityToTurn;
}
public void ExecuteCommand(... |
2209e26c0a8c0203079a8903b58db58c4d4f79c9 | C# | lgarcia223/GoldBadgeChallenges | /Challenge_04/KBadgesRepository.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Challenge_04
{
public class KBadgesRepository
{
private List<string> _doorAccessList = new List<string>();
private Dictionary<int, List<string>> BadgeDic = new Dictiona... |
aa965f558bee43a8ac42ab645a348fa86fe752f5 | C# | shendongnian/download4 | /code3/532080-12290279-28862196-2.cs | 2.9375 | 3 | public class MyRow : INotifyPropertyChanged
{
public event PropertyChanged;
private string _stringValue = string.Empty;
public string StringValue
{
get { return _stringValue; }
set
{
if( _stringValue != value )
... |
6bce3ca09f111ec7889e46c28e43ee6122e94cc5 | C# | CatmanIta/DBGA_Ex | /Assets/Esercizi/Variabili1/BinaryConverter.cs | 3.296875 | 3 | using UnityEngine;
using System.Collections;
public class BinaryConverter : MonoBehaviour {
void Start () {
// START LOGIC
// We create an algorithm that will convert a binary number to an integer
// WARNING: we do so only for 8 bits
int bit0 = 1;
int bit1 = 0;
int b... |
870da30efa9f07794ff787e1271662c29fcc350a | C# | shendongnian/download4 | /first_version_download2/33761-1801159-3605740-5.cs | 3.203125 | 3 | private string lastName;
public string LastName
{
get
{
string s;
if (lastName == null)
{
s = string.Empty;
}
else
{
s = item.LastName.Substring(0, item.LastName.Length > 30 ? 30 : item.La... |
e718384bf8074ab267522a76b2690fda0a6ad088 | C# | MentulaGames/XnaGuiItems | /XnaGuiItems/XnaGuiItems/Drawing.cs | 2.609375 | 3 | #if MONO
extern alias Mono;
#else
extern alias Xna;
#endif
namespace Mentula.GuiItems
{
#if MONO
using Mono::Microsoft.Xna.Framework;
using Mono::Microsoft.Xna.Framework.Graphics;
#else
using Xna::Microsoft.Xna.Framework;
using Xna::Microsoft.Xna.Framework.Graphics;
#endif
using Core;
using Sy... |
8d9bc7f41a166c925399f4907a2dd7b91771b199 | C# | helnik/ORC | /ObjectRuleChecker/OrcResult.cs | 2.859375 | 3 | using System;
using ObjectRuleChecker.Interfaces;
namespace ObjectRuleChecker
{
public class OrcResult : IOrcResult
{
public bool IsSuccess { get; }
public string Rule { get; }
public Exception Exception { get; }
public OrcResult(string rule, bool isSuccess, Exception ex = nul... |
1458a0afcd025e9f546005afbe7fdeb77b727f53 | C# | HatchedMango/CreditCardInterestCalculator | /CreditCardInterestCalculator/CardInterestCalculator.cs | 2.921875 | 3 | using CreditCardInterestCalculator.models;
namespace CreditCardInterestCalculator
{
public class CardInterestCalculator
{
private readonly IInterestCalculator interestCalculator;
public CardInterestCalculator(IInterestCalculator interestCalculator)
{
this.interestCalculato... |
8879049e19a97ba4a7df6b7e8559e42ea2895c9e | C# | mandatvo1997/2DGame | /Assets/Scripts/BOX.cs | 2.53125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BOX : MonoBehaviour
{
public AudioSource audioSource;
public AudioClip BoxSound;
public int Health = 100;
void Awake()
{
audioSource = GetComponent<AudioSource>();
}
// Update is called once... |
ca9a6c7e5ffc10caa49d88c34d9d4349733c6278 | C# | vlydik/Task5 | /Task5/Controllers/StudentsController.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using System.Data.SqlClient;
using Task5.Models;
using System.Globalization;
using Task5.DAL;
namespace Task4.Controllers
{
[ApiController]
[Route("api/students")]
public class... |
7d82648149afc41fbcdc3302ff1f00754532fd0b | C# | Zazcallabah/IrcNotify | /IrcNotify/User.cs | 2.609375 | 3 | using System;
using System.Linq;
namespace IrcNotify
{
public class User
{
static readonly Random R = new Random();
readonly string[] _nicks;
public User( string[] nicks )
{
Nick = nicks.First();
Login = nicks.Last();
_nicks = nicks;
}
public string AltNick
{
get
{
return _nicks[R.Ne... |
97e39e9fd6c037ae1296aa758497fc975f3dd39c | C# | ratozumbi/traVRsal-sdk | /Runtime/Helpers/EDebug.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using Object = UnityEngine.Object;
namespace traVRsal.SDK
{
public static class EDebug
{
public static List<Tuple<string, string>> errors = new List<Tuple<string, string>>();
public static List<Tuple<string, ... |
240420e31c4678c367514c63138c945359d19c2d | C# | hanrick2000/GoogleInterviewPreparation | /CommonAlgo/InterviewBit/Tree/IsBalancedBst.cs | 3.375 | 3 | using System;
using NUnit.Framework;
namespace CommonAlgo.InterviewBit.Tree
{
public class TreeNodeIb
{
public TreeNodeIb left;
public TreeNodeIb right;
public int val;
public TreeNodeIb(int val)
{
this.val = val;
}
}
public class IsBalance... |
8018e187a6eb3f6a72a7b98975e359394838bac7 | C# | hristoenev92/Soft-Uni-Exercises | /upr strukturi ot danni/masiv nm/Program.cs | 3.453125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace masiv_nm
{
class Program
{
static void Main(string[] args)
{
int n = 0;
while (n<4||100<n)
{
n = int.Parse(Console.R... |
528a575f5a8a88d9de0cd21f3ce5450251fb34f2 | C# | boogie-org/symdiff | /Sources/SymDiffUtils/boogieUtils.cs | 2.625 | 3 | using Microsoft.Boogie;
using Microsoft.Boogie.GraphUtil;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SymDiffUtils
{
public class BoogieUtils
{
public static bool InitializeBoogie(string clo)
{
CommandLineOptions.Install(new Comma... |
1ebd81b4fd1860ae42325593f1faf851b6277ed2 | C# | NotHuza/Cerberus-v4 | /RivieraStudio.Magic/RivieraStudio.Magic.Titan/RC4Encrypter.cs | 3.015625 | 3 | namespace RivieraStudio.Magic.Titan
{
public class RC4Encrypter : StreamEncrypter
{
private byte[] _key;
private int _x;
private int _y;
/// <summary>
/// Initializes a new instance of the <see cref="RC4Encrypter" /> class.
/// </summary>
public RC4... |
83d2f89951ecffb913b5b50de7d70926e309ffcd | C# | swaphack/Kingdom | /Kindom/Assets/Football/Player/PlayerAI.cs | 2.546875 | 3 | using System;
using UnityEngine;
using Football.AI;
namespace Football
{
/// <summary>
/// 球员AI
/// </summary>
public class PlayerAI : Agent
{
/// <summary>
/// 球
/// </summary>
private Ball _Ball;
public Ball Ball {
get {
return _Ball;
}
set {
_Ball = value;
}
}
/// <summar... |
8f22f13883da63ea5e53330ff02661096697181a | C# | ICS3UProgrammingTishamI/Unit-5-Arrays-Lists- | /2DArraysTishamI/2DArraysTishamI/2DArraysForm.cs | 3.75 | 4 | /*
* Created by: Tisham Islam
* Created on: 19/04/2019
* Created for: ICS3U Programming
* Daily Assignment – Day #38 - 2D Arrays
* This program creates and displays a 2D array to the user's specifications
* then it adds up all the numbers within it,
* before returning the average of the array's numbers
*/
usi... |
95bc8e48e3ffac3223c94b2e8f75cc2e1e4c9e8d | C# | human-osaka-game-2018/ChatTools | /KinoshitaTatsuya/ChatTool/ChatTool/Bases/BindableBase.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Text;
namespace ChatTool.Bases
{
public abstract class BindableBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler? PropertyChanged;
protected ... |
0b0846434ddfdf8f767c82bb0403237708014dae | C# | shendongnian/download4 | /first_version_download2/85692-5651643-12146186-2.cs | 2.546875 | 3 | private void runner(int i)
{
int j = i;
bool loadFinished = false;
webBrowser1.DocumentCompleted += delegate { loadFinished = true; };
webBrowser1.Navigate("http://www11.itrc.hp.com/service/ewarranty/warrantyInput.do");
while (!loadFinished... |
5f08a044bc01e03705593cc33d6c5b24e86f493d | C# | SeniorProjectUF/Senior | /Assets/Scripts/ParticlePosition.cs | 2.65625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ParticlePosition : MonoBehaviour {
public float[] xPosPoly;
public float[] yPosPoly;
public float[] zPosPoly;
public float xPosShift;
public float yPosShift;
public float zPosShift;
public float disappearAf... |
a25fb38e5071d7b95cf82e4c2e7e074ada03be88 | C# | zdrigotti/Algorithm-Implementations | /BreadthFirstSearch/Node.cs | 3.78125 | 4 | using System.Collections.Generic;
namespace BreadthFirstSearch
{
class Node
{
public List<Node> Children { get; private set; }
public int Value { get; private set; }
public Node(int value)
{
Value = value;
Children = new List<Node>();
... |
4451a40c2afad5ecb05fe5ab44864ec395acd2ef | C# | chengzhongnan/MongoDBOrm | /ProjectCommon/Unit/EntityMgr.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectCommon.Unit
{
public class EntityMgr : DefaultEntityContainer, IEntityContainer<EntityBase, short>
{
protected Dictionary<short, EntityBase> _entityMap { get; private set; }
public EntityMg... |
82fd61b2a658167c6d645ffa49f340f982728b78 | C# | JetFire3201/Kroncky-Magik | /Assets/Scripts/CameraScript.cs | 2.609375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//This Script is for moving the camera around.
public class CameraScript : MonoBehaviour
{
//Camera Script is for moving the Camera around.
public float mouseSensitivity;
public bool invertMouse;
public bool autoLockCursor;
... |
638e96fbaa0b2d8e9f6aaeed01007aa850a50298 | C# | JCCervantes/Tech-Academy-Projects | /C# Visual Studio Projects/PostalCalculatorHelperMethods/PostalCalculatorHelperMethods/Default.aspx.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace PostalCalculatorHelperMethods
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
... |
13350c0020f5fc6f999ff95aff148f961cb6ff89 | C# | sebasb718/Poem-Generator | /Source Code/Poem Generator/Entities/RulesFactory.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace Poem_Generator.Entities
{
public class RulesFactory
{
public static Dictionary<string, Rule> GetDictionaryOfRules(string fileName)
{
Dictionary<string, Rule> rules = new Dictionary<string,... |
62e1de1db7c42b2f245d4e5ad7c7dd29a874397d | C# | kurthamilton/InvestmentTracker | /api/InvestmentTracker.Api/Prices/PricesController.cs | 2.546875 | 3 | using InvestmentTracker.ApplicationService.Prices;
using InvestmentTracker.Domain.Investments;
using InvestmentTracker.Domain.Prices;
using System;
using System.Collections.Generic;
using System.Web.Http;
namespace InvestmentTracker.Api.Prices
{
public class PricesController : ControllerBase
{
private... |
6bb4dd69e1b925c18ff4fcab01d99e20dd8fd522 | C# | logzio/logzio-dotnet | /src/UnitTests/Log4net/LogzioAppenderTests.cs | 2.53125 | 3 | using log4net.Core;
using Logzio.DotNet.Core.InternalLogger;
using Logzio.DotNet.Core.Shipping;
using Logzio.DotNet.Log4net;
using NSubstitute;
using NUnit.Framework;
namespace Logzio.DotNet.UnitTests.Log4net
{
[TestFixture]
public class LogzioAppenderTests
{
private LogzioAppender _target;
... |
b40dde456cec454c0c22d25aac6a57f3210f3ceb | C# | shendongnian/download4 | /first_version_download2/41756-6642468-14502557-2.cs | 2.984375 | 3 | private void ClearTextBoxes(Control control)
{
foreach (Control c in control.Controls)
{
if (c is TextBox)
{
((TextBox)c).Clear();
}
if (c.HasChildren)
{
ClearTextB... |
800c6faf4d4a956c1048e63e2faf7db08824e67e | C# | USAID-DELIVER-PROJECT/ethiopia-hcmis-warehouse | /Code/Windows/Infrastructure/Models/Models/Mapping/TransferMap.cs | 2.5625 | 3 | using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
namespace HCMIS.Concrete.Models.Mapping
{
public class TransferMap : EntityTypeConfiguration<Transfer>
{
public TransferMap()
{
// Primary Key
this.HasKey(t => t.ID);
... |
72c2526164385ef04a311677c6a52283aa6be13d | C# | richbryant/bonsai | /Bonsai.Shaders/CreatePerspectiveFieldOfView.cs | 2.59375 | 3 | using OpenTK;
using System;
using System.ComponentModel;
using System.Linq;
using System.Reactive.Linq;
namespace Bonsai.Shaders
{
[Description("Creates a perspective projection matrix from field of view information.")]
public class CreatePerspectiveFieldOfView : Source<Matrix4>
{
publi... |
1003c81ecc7190bbdf4db3d2c6cca75de9122145 | C# | j4zzlee/CommonLibraries | /src/DatabaseModelExtensions/DatabaseSchemaExtensions.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace DatabaseModelExtensions
{
/// <summary>
/// Determines if the Property should not be
/// </summary>
/// <seealso cref="System.Attribute" />
public class SchemaIgnoreAttribute : Attribute
... |
af3c76ec2aed565982be037725bcdb44bb2024c3 | C# | jebakani/Logical_Programming | /LogicalProgramming/PrimeNumberSeries.cs | 4.09375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LogicalProgramming
{
class PrimeNumberSeries
{
public void ReadInput()
{
Console.WriteLine("Welcome to Prime Number Series");
Console.WriteLine(... |
d4288f783154da2f73e88949a3aacc784c80bd48 | C# | KuffelHubert/AquaDroid | /AquaDroid/MainActivity.cs | 2.65625 | 3 | using Android.App;
using Android.Widget;
using Android.OS;
using Android.Bluetooth;
using System.Collections;
using System.Collections.Generic;
using Android.Content;
using System.Linq;
namespace AquaDroid
{
[Activity(Label = "AquaDroid", MainLauncher = true)]
public class MainActivity : Activity
{
... |
4ef85871f8058fb8270ed8043242b421db403734 | C# | Daviberas/ApiRestPersonaAJAX | /PruebaApiREST/src/ENT/clsPersona.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ENT
{
public class clsPersona
{
//Atributos
public int Id { get; set; }
[Required]
[Display (Name = "Nombre... |
7943bb010f32b9d7d853cdf16ede8549a6537fe8 | C# | trungdq88/FormulasTextBox | /FormulasTextBox.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
namespace Assignment4
{
public class FormulasTextBox : TextBox
{
/******************************************************/
... |
ab1b6f1b18722f0119c40e0a5bcb20cd1c5c813e | C# | howbigbobo/LagacyDotNetDailyCode | /Pineapple/Pineapple.Core.Web/Cache/RequestCache.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using Pineapple.Core.Cache;
namespace Pineapple.Core.Web.Cache
{
public class RequestCache : ICache
{
public bool Contain(string group, string key)
{
return HttpContext.Current.I... |
fea13d90a5ffcc9dc994aa8d7e543fe2d851bd3d | C# | RondonLeonR/2do-Cuatrimestre-2019 | /Rondon.Rodolfo/ENTIDADES.SP/Manzana.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using System.IO;
namespace ENTIDADES.SP
{
[Serializable]
public class Manzana : Fruta , ISerializar , IDeserializar
{
protected string _provinciaOrigen;
pub... |
7a7ce3421d4e80d6b1c8aef16bb1185026f23635 | C# | dilyanaGl/CSharp-OOP-Advanced | /Last Army/Core/GameController.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using Last_Army.Entities;
using Last_Army.Entities.Mission;
using Last_Army.Factory;
using Last_Army.Interfaces;
namespace Last_Army.Core
{
public class GameController
{
private MissionContro... |
ebee13ccc056ead35624912d10ac67ea1978b0e3 | C# | michalMalujdy/_UWP_Signal | /Signal.Core/Domain/DataProviding/Serial/SerialTransmission/SerialTransmission.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using Signal.Core.Domain.DataProviding.Serial.Message;
namespace Signal.Core.Domain.DataProviding.Serial.SerialTransmission
{
public class SerialTransmission
{
public event EventHandler<FullMess... |
83d4a8985248bcdafdf6bf42b22b20b44966898b | C# | Unity-Technologies/ProjectAuditor | /Editor/UI/Framework/TextFilter.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using Unity.ProjectAuditor.Editor.CodeAnalysis;
using Unity.ProjectAuditor.Editor.Core;
namespace Unity.ProjectAuditor.Editor
{
internal class TextFilter : IProjectIssueFilter
{
public bool ignoreCase = true;
public bool searchDependencies = false... |
8d43982cc4f613849dbbffc8a25f8efddac182c4 | C# | arizomo/HominiMVC | /HominiMVC/Models/Municipio.cs | 2.546875 | 3 | using System.ComponentModel.DataAnnotations;
namespace HominiMVC.Models
{
public class Municipio
{
public int Id { get; set; }
[Required(ErrorMessage = "Nombre es requerido")]
[StringLength(50, ErrorMessage = "Máximo 50 caracteres")]
[Display(Name = "Nombre Municipio")]
... |
d69af6252881a22df8573fce2980aa91762da37e | C# | MarianoVilla/Clipper | /FFMpegUT/WebR.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Webber.Core
{
public delegate void DownloadProgress(double progress, string file);
pub... |
24b545309288a6afb4e8de7469527ebe3413699b | C# | marclayson/cSharpProgrammingFundamentals | /methodsDebuggingAndTroubleshootingCode-Lab/drawAFilledSquare/Program.cs | 3.453125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace drawAFilledSquare
{
class Program
{
static void Main(string[] args)
{
int count = int.Parse(Console.ReadLine());
PrintHeader(count);
... |
927e2b294b42c0eca68cfe8b0e2f1f24218dd178 | C# | simirulless/MIDPS | /Lab#2/WindowsFormsApplication1/WindowsFormsApplication1/Form1.cs | 2.859375 | 3 | using System;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
float operant1, raspuns;
int opreatia;
private void button4_Click(object sen... |
e433398b66ef746063f6f1aa1a9433c7c10d4bc7 | C# | mihoci10/B4R73ND3R | /B4R73ND3R/B4R73ND3R/IndependendAssemblyDeserializationBinder.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using System.Reflection;
namespace Extendix.ItemReceiver
{
/// <summary>
/// Allows the <see cref="System.Runtime.Serialization.Formatters.Binary.BinaryFormatter"/> to deserialize received objects from a clas... |
74f980e70bede163f6c07d6b64557d19b67620fe | C# | evgenitsn/CSharp-Entity-ASP-Web-Development | /2.C#-Object-Oriented-Programming/00.Exercises/04.Encapsulation-and-Polymorphism/Battleships/Ships/Ship.cs | 3.40625 | 3 | using System;
namespace Battleships.Ships
{
public abstract class Ship
{
private string name;
private double lengthInMeters;
private double volume;
public Ship(string name, double lengthInMeters, double volume)
{
this.Name = name;
this.LengthInM... |
e602794ce2d8c097439e13d85b20ad59dd15b3a2 | C# | nzkelvin/timed-service | /src/TimedService/Logger/BasicLoggerFactory.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TimedService.Config;
namespace TimedService.Logger
{
public class BasicLoggerFactory : ILoggerFactory
{
private IDictionary<string, ILogger> _loggerRepository = new Dictionary<stri... |
3b5c23d93299d362797756704015246b1c42c1e2 | C# | NadaAlOtaibi/Codes | /asStringExample.cs | 3.25 | 3 | static void Main(string[] args)
{
object [] o = new object[5];
o[0] = "Hi";
o[1] = 1;
o[2] = "Hello";
o[3] = 534.0;
o[3] = null;
for (int i = 0; i < o.Length; i++)
{
string str = o[i] as string;
... |
529ea2afc9c79a14b0393a79afc317e2626c64ad | C# | kewos/CSharpNote | /CSharpNote.Data.CSharpPracticeMethod/Implement/TestAwait.cs | 3.171875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CSharpNote.Common.Attributes;
using CSharpNote.Core.Implements;
namespace CSharpNote.Data.CSharpPractice.Implement
{
public class TestAwait : AbstractExecuteModule
{
[AopTarget]
public overrid... |
1aa01b9a77ca8dae5d1c73330910425e0b01aca0 | C# | rudarobson/Chip-Burner | /Chip-Burner/Chip-Burner/Communicator/Commander.cs | 3.25 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ChipBurner.Communicator
{
public class Commander : IDisposable
{
/* Commands
* 0 -> Begin programming
* 1 -> Push Data (write)
* 2 -... |
dc8c68404a634545c147e7c3e6993a489684c9f5 | C# | sulmar/Patterns | /Factory Method Pattern - solution.linq | 3.609375 | 4 | <Query Kind="Program" />
void Main()
{
Console.WriteLine("Please choose objects from the below to built:");
Console.WriteLine("1. Door");
Console.WriteLine("2. Window");
Console.WriteLine("3. Walls");
int objectType = Convert.ToInt16(Console.ReadLine());
IObjectFactory objectFactory = ObjectFactory.GetObject(ob... |
3b7d6e34532866b57d4b7dd014dcd63c7a9e0ba4 | C# | LeszekBlazewski/BettingParlor | /BettingParlor-Refactor/Server.cs | 2.75 | 3 | using Microsoft.Owin.Hosting;
using System;
using System.Reflection;
using System.Windows.Forms;
namespace BettingParlor_Refactor
{
/// <summary>
/// Contains all methods which are used to host and close the server properly.
/// </summary>
/// <remarks>
/// All methods are implemented with the use... |
634018a661e9432d5df77fcebd46c108ec0f3c47 | C# | dimaplanoff/ProxyFinder | /Sql.cs | 2.5625 | 3 | using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProxyService
{
class Sql
{
private SqlConnection con = null;
public bool connecti... |
bec37df4d6700df806619cf426fb304b260a5398 | C# | PeteaNiprovo/Amdaris | /Functional Paradigm/Functional Paradigm/Program.cs | 3.625 | 4 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Functional_Paradigm
{
class Collection : IEnumerator<int>, IEnumerable<int>
{
private int size = 1;
private int lastIndex = -1;
privat... |
eafac4b36d18d0ca9272378298f7cfcd7d966ac0 | C# | Skaarji/SoftUni | /C# Web Developer/C# Tech Module/6 Objects and Classes/VehicleCatalogue/Program.cs | 3.671875 | 4 | using System;
using System.Linq;
using System.Collections.Generic;
namespace VehicleCatalogue
{
class Program
{
static void Main(string[] args)
{
List<string> command = Console.ReadLine().Split().ToList();
List<Cars> cars = new List<Cars>();
List<Trucks> tru... |
07fb1b850ba374b0a4cf6d647dec3b0b3207fa18 | C# | MufassalAmeer/demoProject | /DemoDB/DemoDB/DAL/SystemDAL.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
namespace DemoDB.DAL
{
class SystemDAL
{
public Boolean executeNonQuerys(string quary)
{
Boolean flag = ... |
526a5acf0c3bd7a73dead9aaba23c816d105866a | C# | Tankooni/OwlMan | /OwlMan/Scripts/Enemies/Enemy.cs | 2.5625 | 3 | using Godot;
using Atmo2.Enemy.AI;
using System.Collections.Generic;
namespace Atmo2.Enemy {
public abstract class Enemy : KinematicBody2D
{
// So this is maybe not the best design but it is by far the most convenient and not as hacky solution. This should eventually be replaced with some sort of AI player det... |
e987f226ff418b974c2533e4f5e967c53a66e34e | C# | communityus/procedural-planets-generator | /myengine/DataBinder.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
using Neitri;
namespace MyEngine
{
public class DataBinder
{
public string targetPropertyName;
public object targetObject;
public string sourcePr... |
f09e223bde76686beb655a82aa7d262d5e030e8e | C# | s13812/cw10 | /cw10/Controllers/EnrollmentsController.cs | 2.71875 | 3 | using cw10.DTOs;
using cw10.Models;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Linq;
namespace cw10.Controllers
{
[Route("api/enrollments")]
[ApiController]
public class EnrollmentsController : ControllerBase
{
private readonly Cw10Context _dbContext;
public Enrollmen... |
5760f6244e41838e99106d299969e1750f0aed24 | C# | ricklove/BushRun | /Assets/Code/Views/PlayerHeadView.cs | 2.65625 | 3 | using UnityEngine;
using System.Collections.Generic;
using System.Linq;
public class PlayerHeadView
{
//public HeadType HeadType { get; set; }
private HeadType _lastHeadType;
private PlayerData _playerData = null;
private Dictionary<HeadType, List<Sprite>> _heads = new Dictionary<HeadType, List<Sprit... |
0efabfefce0f41805f72b6950b019371df96c0cb | C# | zizhGuo/GSD2 | /Bus.cs | 3.25 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ElevationMaster
{
internal class Bus
{
static readonly DateTime globalStartTime;
static Bus()
{
globalStartTime = DateTime.Now;
Console.... |