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 |
|---|---|---|---|---|---|---|
aa667437cc994c5de19b3e0bb1c93dc5fdad717a | C# | culley-aidan/csharp-chapter-03 | /PayrollGUI/PayrollGUI/PayrollGUI.cs | 2.859375 | 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 PayrollGUI
{
public partial class PayrollGUI : Form
{
public PayrollGUI()
... |
980e2c1c5892c0690414d36718a7210555999fbd | C# | MyMyroslav/Lesson001_HT | /Lesson001_HT/Program.cs | 2.890625 | 3 | using System;
namespace Lesson001_HT
{
class MainClass
{
public static void Main(string[] args)
{
double pi = 3.141592653;
double eyl = +2.7182818284590452;
Console.WriteLine($"Pi={pi},Eyl=+{eyl}");
}
}
}
|
1afed73835404db7bf47902bfbce5f50f2433e8d | C# | Razevel/TestYST_Rodionov | /TestYST_Rodionov/Models/ProductsListViewModel.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using TestYST_Rodionov.Models.Entities;
namespace TestYST_Rodionov.Models
{
public class ProductsListViewModel
{
public IEnumerable<Product> Products { get; set; }
public PaginationInfo PaginationInfo { get; set; }
}
public class Paginat... |
728a8510a4beb1152c5d57fb4457cc3663d64bb6 | C# | jyee0012/GCS-Nov2019GameJam | /GCSGameJam/Assets/Scripts/StartMenu.cs | 2.53125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class StartMenu : MonoBehaviour
{
[SerializeField]
GameObject LoadingScreen = null;
[SerializeField]
AudioSource bgMusic = null;
[SerializeField]
float fadeTime = 0.5f;
... |
5aa32543733f000ea0937ed4f389a773b1c4f77a | C# | babadro/algorithms-problems-tests | /problems_and_tests/11_SieveOfEratosthenes_00_Theory/Program.cs | 3.71875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _11_SieveOfEratosthenes_00_Theory
{
class Program
{
static bool[] solution(int n)
{
var sieve = new bool[n + 1];
for (var j = 2; j < sieve.Lengt... |
6085946e25d88ac661e0b293ce8bbd44cf16246e | C# | shendongnian/download4 | /first_version_download2/582836-56094673-197553800-2.cs | 3.3125 | 3 | public static string ToDecimalString(this BigInteger value)
{
if (value == 0) return "0";
var digits = 10000;
var divider = BigInteger.Pow(10, digits);
var parts = new Stack<string>();
while (true)
{
BigInteger remainder;
value = BigInteger... |
aadf6d698224aba69507f6dc88130be323d0ad61 | C# | Diamss107/Diamss-shooter | /Src/Text.cs | 2.96875 | 3 | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
namespace Diamss_shooter
{
public class Text : Sprite
{
public ... |
b17ddbe156dbd535670945730ec63de41a441243 | C# | ac132998/Chapter-2 | /InteractiveSalesTax/InteractiveSalesTax/Program.cs | 3.53125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InteractiveSalesTax
{
class Program
{
static void Main(string[] args)
{
//Sales Tax Calculator
double itemPrice;
double total;
... |
9092ee73263e4a53fb0a8c7666d8fcc49d91fe48 | C# | Trey-Craig/Mathtastic-Voyage | /Stack.cs | 3.59375 | 4 | using System;
using System.Collections.Generic;
using System.Text;
namespace Mathtastic_Voyage{
class Stack <T> {
private Node<T> _head;
private int _size = 0;
public int Size {
get {return _size; }
}//end property
public bool Empty {
... |
7a86cd3a3dc8655762bdafbf9add14fd2c4136df | C# | Zhunity/Supplement | /补番计划4.0/Assets/Scripts/SqilteTest.cs | 2.671875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SqilteTest : MonoBehaviour
{
// https://www.jianshu.com/p/381ed9d59654
public SqliteDatabase Sqlite;
void Start()
{
//打开测试数据库
Sqlite = new SqliteDatabase("Sqlite.db");
PrintData();
}
private void PrintData... |
5e044c45dc709c19e73d8381d2b90fc80a2e129e | C# | steven-p-sutton/INFRASTRUCTURE | /DATABASE-Model/ConnectionMSSQLString.cs | 2.84375 | 3 | using System;
public class ConnectionMSSQLStringBuilder : ConnectionStringBuilder
{
public string Server { get; set; }
public string Database { get; set; }
public string UserName { get; set; }
public string Password { get; set; }
public ConnectionMSSQLStringBuilder(string Database)
{
//... |
8f5ced71b0a480ab99530f4803cdc318a61c660a | C# | juancarlosgonzaleztorres/BabysitterKata | /Babysitting/Babysitting.cs | 3.4375 | 3 | using System;
namespace BabysittingBusinessLogic
{
public class Babysitting
{
DateTime startTime, endTime, bedTime;
public Babysitting()
{
startTime = new DateTime();
endTime = new DateTime();
bedTime = new DateTime();
}
public Date... |
eeb28bd725b223d4eb20c89e5de4c64c4865cd8d | C# | slatalison/TamaTamaParadise | /Assets/Scripts/Commands/AttackCommand.cs | 2.546875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AttackCommand : Command {
private int attacker_id;
private int target_id;
private int damage;
public AttackCommand(int _attacker_id, int _target_id, int _damage) {
this.attacker_id = _attacker_id;
... |
d74e49925a1b6fcb705acc5e5bb92b62d5035a02 | C# | BAD-AL/NFL2K5Tool | /DepthChart.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NFL2K5Tool
{
public class DepthChart
{
public DepthChart() { }
List < PlayerDepthData> mPlayers = new List<PlayerDepthData>();
public void AddPlayer(string fname, string lname, string posit... |
dfd62bc27ebc2d40fa19af2a5ca3dcd4fdffe3ee | C# | tsnest/nvpatch | /Topten.nvpatch/PEExportTable.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace nvpatch
{
/// <summary>
/// Packs and unpacks PE export tables
/// </summary>
unsafe class PEExportTable
{
/// <summary>
/// Constructs a new export table ... |
09d8125a0efdbd44f50f8eb2a77a448bfe6a2387 | C# | zjn4530/NewsReader | /NewsReader/Article.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NewsReader
{
class Article
{
public Article()
{
}
public Article(string title, string url)
{
this.title = title;
this.ur... |
04899232983e18214983847c5e1c04c33be5954f | C# | wallisto/DevMentor | /Labs/gc/before/pooling/Program.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace DevelopMentor.ObjectPooling
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
... |
5d57c1a08baf91de41122d35bffc7c5fe95f98af | C# | Phonibologna/CodingPractice | /StackAndQueue/Program.cs | 3.84375 | 4 | using System;
namespace StackAndQueue
{
class Program
{
static void Main(string[] args)
{
}
}
public class Stack
{
const int max = 20;
object[] arr = new object[max];
int arrCount = 0;
public void Push(object ob)
... |
18193369c2c5008c00e66e4333370969f70bcc72 | C# | yuchenwuhen/ngame | /Assets/Scripts/Framework/Timer/Timer.cs | 2.890625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Timer {
private bool m_Ticking; // 当前状态
public float m_curTime { get; private set; }// 当前时间
private float m_triggerTime;// 触发时间
public delegate void EventHandler();
public event EventHandler m_tick;// 触... |
62153e091264a0557e681750986b16970df8248a | C# | wangxue0314/AxePractice.StepByStep | /src/WebApi/90_streaming_upload_multipart/test/StreamingFacts/FixedLengthStream.cs | 3.015625 | 3 | using System;
using System.IO;
namespace StreamingFacts
{
public class FixedLengthStream : Stream
{
long position;
public FixedLengthStream(long length)
{
Length = length <= 0
? throw new ArgumentOutOfRangeException(nameof(length))
: length;... |
a6584240d0ca796f668e6c708a19ef9f0090bb59 | C# | ccpowell/mvc4-examples | /OmbMvc4/Ef5Data/Models/Mapping/DocumentMap.cs | 2.59375 | 3 | using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
namespace Ef5Data.Models.Mapping
{
public class DocumentMap : EntityTypeConfiguration<Document>
{
public DocumentMap()
{
// Primary Key
this.HasKey(t => t.DocumentI... |
dc659ca82b9fd4bf3d5e65336f9b7827a4df4ed3 | C# | Shogun121/cis237assignment3 | /cis237assignment3/Utility.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace cis237assignment3
{
class Utility:Droid
{
//backing fields
protected bool toolbox;
protected bool computerConnection;
protected bool arm;
prote... |
1b950015cc70560b1c2b3d0359e73c0639b67a9b | C# | nara70/Csharp | /PatternsLab1/lab1_patterns/Works.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace lab1_patterns
{
class Works : Factory
{
public delegate void Method(Unit unit);
public event Method onCreating;
public override Unit create()
... |
42b931b547eba3bd1ac2540febe583798427fc22 | C# | lengye49/SchoolContest | /GameServer/GameServer/Servers/Server.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//using System.Threading.Tasks;
using System.Net.Sockets;
using System.Net;
using GameServer.Controller;
using Common;
namespace GameServer.Servers
{
class Server
{
IPEndPoint ipEndPoint;
Sock... |
1b3d2739dfe3a3574d2e33b490ac87e5be57f1fe | C# | dawoodhanna/dawood-projects | /hello-world/hello-world/Program.cs | 2.8125 | 3 | /*
* Created by SharpDevelop.
* User: dawood
* Date: 2016-07-01
* Time: 10:43 AM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
namespace hello_world
{
public class Program
{
public static int number;
public static void SetUp()
{
number=105;
... |
2504012f78733d7352a77c243d89b9c33cd12847 | C# | Spacebreak/UnityGame | /Language Systems/LocalizationManager.cs | 2.84375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
using System.IO;
using UnityEngine.SceneManagement;
public class LocalizationManager : MonoBehaviour
{
public static LocalizationManager localizationManagerInstance; //For ensuring only one instan... |
1817d093c529bb3b85e3a215ffe5933cd684debd | C# | JoseNoriegaa/ProjectBiblioteca | /ProjectBiblioteca/ChartData.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BIBLIOTECA
{
class ChartData
{
public string AxName { get; set; }
public int ColumValue { get; set; }
public ChartData(string name, int value)
{
... |
e800a9b87a6467ab9cd83f6b58f015e7d7147f10 | C# | Zephni/MugHeadXEngine | /MonoXEngine/MonoXEngine/TileMap.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using MonoXEngine.EntityComponents;
using System.Diagnostics;
using MonoXEngine.Structs;
namespace MonoXEngine
{
public class TileMap
{
private Texture2D[,] tileset... |
ad963c6efd8aa73a2bad7f7371fcbc97cd482328 | C# | shendongnian/download4 | /first_version_download2/606478-59356236-211368273-4.cs | 2.859375 | 3 | static void Main(string[] args)
{
var (a, b) = GetMultipleValue();
Tuple<int, int> tuple = GetMultipleValue();
}
public static Tuple<int, int> GetMultipleValue()
{
return Tuple.Create(1, 2);
}
|
d4cfa6abdcee1e27712318ff4b006721cacc292b | C# | ant-tkachov/kfzteile24-coding-task | /kfzteile24.CodingTask.Web/Controllers/CounterController.cs | 2.59375 | 3 | using System.Net;
using System.Threading.Tasks;
using kfzteile24.CodingTask.BusinessLayer;
using Microsoft.AspNetCore.Mvc;
using NSwag.Annotations;
namespace kfzteile24.CodingTask.Web.Controllers
{
/// <summary>
/// Contains counter API methods.
/// </summary>
[Route("api/counter")]
[ApiController... |
c504e46b07323a6df65f93d85d03c291a6be62f8 | C# | oreze/DesignPatterns | /Composite/Button.cs | 3.171875 | 3 | using System;
namespace ConsoleApp1.Composite
{
public class Button : Component
{
private int Column { get; set; }
private int Row { get; set; }
public Button(int column, int row)
{
Column = column;
Row = row;
}
public void Pack()
... |
7ac46985864ce7da72565f111f5366a966fe7c24 | C# | nar12/OldCalc | /OldCalc/Calc.cs | 3 | 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 OldCalc
{
public partial class Calc : Form
{
public Calc()
{
... |
0a4a4e77bbd68e4824be74cf0b15e56829bfa6f5 | C# | NazarSSSS/KyrsovaNazar | /Zoo-master/ZooConsole/Program.cs | 3.296875 | 3 | using System;
using System.Threading;
using ZooConsole.Animals.Settings;
using ZooConsole.ZooManagement;
namespace ZooConsole
{
internal class ZooConsoleApp
{
private static Zoo _zoo;
private static Timer _timer;
static void Main(string[] args)
{
var eventInterval ... |
bd5754afae80888dccc5fb4000c5696256de4263 | C# | SevenPok/OCL2-Proyecto2-201800586 | /OCL2-Proyecto2-201800586/Arbol/Instrucciones/For.cs | 2.671875 | 3 | using OCL2_Proyecto2_201800586.Arbol.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OCL2_Proyecto2_201800586.Arbol.Instrucciones
{
class For : Instruccion
{
public int linea { get; set; }
public int colu... |
42a002e35acf8bf5d6f74ccb0339a905d7ab6a69 | C# | AnyutaSolomatina/Labs | /array/array/Program.cs | 3.65625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace array
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Введите количество столбцов массивов");
int n = int.Parse(Co... |
ca00333fdd0791b89fc3e09bcaf0e162f49f14ab | C# | befirst/iadip_apartments_kmeans | /iadip/iadip/Forms/SourceDataInput.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace iadip
{
public partial class SourceDataInput : Form {
IEstimator estimator = new SimpleEstimator();
List<Cluster> clustersForEstimator = new List<Cluster>();
public SourceDataInput() {
Initi... |
df8fab71c1236114e4602e7931e512d558448d59 | C# | Dennis-Koch/ambeth | /ambeth/Ambeth.IoC/ambeth/ioc/PostProcessorOrder.cs | 2.640625 | 3 | using De.Osthus.Ambeth.Util;
using System;
namespace De.Osthus.Ambeth.Ioc
{
public class PostProcessorOrder : IImmutableType
{
public static readonly PostProcessorOrder DEFAULT = new PostProcessorOrder("DEFAULT", 3);
public static readonly PostProcessorOrder HIGHEST = new PostProcessorOrder("H... |
732755970e2c40b6e4c88826fbd3d3490f388fc7 | C# | loning/OrderMatchingEngine | /OrderMatchingEngine/OrderBook/Stats/Statistic.cs | 2.90625 | 3 | using System;
using System.Threading;
namespace OrderMatchingEngine.OrderBook.Stats
{
public class Statistic
{
private long m_Value = 0;
private readonly Object m_Locker = new Object();
public long Value { get { lock (m_Locker) return m_Value; }}
public void Reset()
{... |
9662005669586a9e4b7a9d984f96d11047b6222b | C# | LIYINHAI/shauke | /DAL/SqlServerNewsInfo.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using Models;
using IDAL;
namespace DAL
{
public class SqlServerNewsInfo : INewsInfo
{
//存表的信息
public int Insert(NewsInfo newsinfo)... |
0f00500a7c4eafa9d74642dcfa032fda52e78fe4 | C# | Im2Slow/Zombillenium | /Sorcier.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
namespace Zombillenium
{
public class Sorcier : Personnel
{
List<string> pouvoirs;
string tatouage;
public string Tatouage
{
get { return tatouage; }
}
public List<string> Pouvoirs
{
get { return... |
5075ef06284cd81bdd0a32162c8fa385f3a233c8 | C# | Ryan-Afzal/Whalculator | /Whalculator/Whalculator.Core/Calculator/Equation/ExpressionBuilder.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Threading.Tasks;
using Whalculator.Core.Calculator.Equation.Simplifiers;
namespace Whalculator.Core.Calculator.Equation {
/// <summary>
/// Represents arguments passed during the generation of an <c>ISolvable<... |
bfc40bef3a57fdadea11bab0cc2d47ad3eee050a | C# | stumathews/UnderstandingLanguageExt | /Tutorial01_monad/Box.cs | 3.609375 | 4 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices.ComTypes;
namespace Tutorial01
{
/// <summary>
/// A box can hold a thing only
/// </summary>
/// <typeparam name="T">The type of the thing</typeparam>
public class Box<T>
{
p... |
9c1f60b32eab1d7239a579ab0e8fc0eba88483a8 | C# | jcwrequests/btw-gtd | /Source/Gtd.PublishedLanguage/ValueObjects.cs | 2.625 | 3 | using System;
using System.Diagnostics.Contracts;
using System.Runtime.Serialization;
namespace Gtd
{
[Serializable]
public sealed class TenantId : AbstractIdentity<long>
{
public const string TagValue = "tenant";
public TenantId(long id)
{
Contract.Requires(id > 0);... |
6436732a99b894eacf9ee185825444d60b6b9a81 | C# | tanyta78/CSharpOOPAdv | /01_InterfacesAndAbstraction/BorderControl/Program.cs | 3.3125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
public class Program
{
public static bool isRunning = true;
public static void Main()
{
var enters = new List<ICheckable>();
while (isRunning)
{
var commandLine = Console.ReadLine().Split().ToList();
... |
8a37874be28da0e3acaf07a77eb111b7d508dddf | C# | patrickjamescarr/Evolutionary_Neural_Network_Unity | /Assets/Scripts/ANN/NeuralNetwork.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
enum ActivationType
{
Sigmoid = 0,
ReLU = 2
}
public class NeuralNetwork : IComparable<NeuralNetwork>
{
// containers for the elements in the network
private readonly int[] layers; // contains the layers in the networ... |
40daed3166a5c3e260e8230009b9aec7f6dbd13b | C# | llenroc/InterviewPrep | /InterviewPrep/Amazon/CheckForBST.cs | 3.640625 | 4 | namespace InterviewPrep.Amazon
{
/* Check if Binary Tree is a Binary Search Tree */
/* Given a binary tree, return true if it is BST, else false */
/* https://practice.geeksforgeeks.org/problems/check-for-bst/1 */
class CheckForBST
{
public bool IsBST(MyTree.TreeNode root)
{
... |
d0cd901eaf02492f98e779df94f0fc72e8f642d6 | C# | CK-k1vv9/Sitecore.AdvancedContentSecurity | /AdvancedContentSecurity.Core/ItemSecurity/ItemSecurityManager.cs | 2.640625 | 3 | using System;
using Sitecore.Data.Items;
using Sitecore.Security.Accounts;
namespace AdvancedContentSecurity.Core.ItemSecurity
{
public class ItemSecurityManager : IItemSecurityManager
{
public ItemSecurityManager(IItemSecurityRepository itemSecurityRepository)
{
ItemSecurityReposi... |
fcfedaaf506f9ac6a9fcc91d64e03f06286becc8 | C# | tayduivn/SocialPayments | /SocialPayments.DomainServices/ApplicationService.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SocialPayments.Domain;
using SocialPayments.DataLayer;
using SocialPayments.DataLayer.Interfaces;
using System.Collections.ObjectModel;
namespace SocialPayments.DomainServices
{
public class ApplicationService
{
... |
a0cdcba7de4819eedd7a86dd69d55bc271ad10cf | C# | valkin88/Technologies-Fundamentals | /Programming Fundamentals/Program Fundamentals - Dictionaries, Lambda and LINQ - Exercises/LegendaryFarming/LegendaryFarming/Program.cs | 3.359375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace LegendaryFarming
{
class Program
{
static void Main(string[] args)
{
SortedDictionary<string, int> listOfMaterials = new SortedDictionary<string, int>();
SortedDictionary<string, int> listOfJun... |
e0cd1353fb2b2afb510d054b16ebbcfbe0535799 | C# | kristen-howton/GradeBook | /src/GradeBook/Program.cs | 3.703125 | 4 | using System;
//need namespace to not conflict with MS
namespace Gradebook
{
class Program
{
static void Main(string[] args)
{
//used to instantiate a class, contructor method
InMemoryBook book = new InMemoryBook("Gradebook");
book.GradeAdded += OneGradeAd... |
bce51fb0fec500cc549f108616cffb5c03b8881a | C# | SaraBachiPaMeGo/MCSD | /ProyectoMVCDatos/Repositories/RepositoryEmpleado.cs | 2.796875 | 3 | using ProyectoMVCDatos.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
namespace ProyectoMVCDatos.Repositories
{
public class RepositoryEmpleado
{
ContextoHospitalDataContext context;
public RepositoryEmpleado() {
... |
cee7afb847b4f3ac37169ee527912640e1ad5def | C# | Microsongs/CSharp_Self_Study | /CSharp_Self_Study/day28_직렬화와 역직렬화1/BitConverterString.cs | 3.53125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSharp_Self_Study.day28_직렬화
{
class BitConverterString
{
static void Main(string[] args)
{
//숫자의 직렬화/역직렬화
byte[] buf = new byte[4];
... |
c9d49bdea777a6dae1e89b5e0718e19e30a30636 | C# | pieiscool32/CIS297-Winter2017 | /MoreCSharp/ConsoleApplication1/Program.cs | 3.296875 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
public class Program
{
private static Primes primes;
static void Main( string[] args )
{
primes = new Primes();
primes.PrimeFound += Handle... |
7ecf0076395bb473d8a5d1ffe62be5982b631e89 | C# | SoniaCH/CroppingIOS | /CroppingIOS/CroppingIOS.iOS/CropperView.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoreGraphics;
using Foundation;
using UIKit;
namespace CroppingIOS.iOS
{
class CropperView : UIView
{
CGPoint origin;
CGSize cropSize;
public CropperView()
{
origin = new CG... |
cfd6c9931a05a6be02d5f4d7357de6b0a731e00c | C# | priceLiu/resource | /CN100.Public.Common/FileHelper.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace CN100.Public.Common
{
public class FileHelper
{
public static string ReadFile(string filePath)
{
using (StreamReader reader = new StreamRe... |
3e06eb7cc96c1fdbcc061526311bab0ad8ad5aac | C# | shaopard/AspNetCoreMVCRequestLifeCycle | /src/SampleMVCRequestLifeCycle/Model Binding/CSVModelBinder.cs | 2.90625 | 3 | using Microsoft.AspNetCore.Mvc.ModelBinding;
using SampleMVCRequestLifeCycle.Models;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace SampleMVCRequestLifeCycle.Model_Binding
{
public class CSVModelBinder : IModelBinder
{
public Task BindModelAsync(ModelBindingCon... |
9f88bee26e7f7105f56dbc77cb6d7b057cd09322 | C# | wIksS/SoftuniExcersises | /OOP-October-2022/07.Reflection/TypeofVsGetType/Program.cs | 3.40625 | 3 | using System;
namespace TypeofVsGetType
{
internal class Program
{
static void Main(string[] args)
{
Student student = new Student();
//Type typeofType = typeof(Student);
//Type type = student.GetType();
PrintObjClassName(student);
P... |
ff00582deb583623ed0fcf6a7cddf1d90ec1f48d | C# | mipyykko/MiniPascal | /Common/CFG/CFG.cs | 2.53125 | 3 | using System.Collections.Generic;
using System.Linq;
namespace Common
{
public class CFG
{
public Function Function;
public List<Block> Blocks;
public override string ToString()
{
return $"{Function}\n{string.Join("\n", Blocks)}";
}
}
} |
4fe7ea533f0b31764416378e9ffea9509b54c455 | C# | nguyennc28/Test | /Backup/DataLayer/ApartmentDA.cs | 2.640625 | 3 | using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.Common;
using RealEstate.BusinessObjects;
namespace RealEstate.DataAccess
{
public class ApartmentDA
{
#region ***** Init Methods *****
public ApartmentDA()
{
}
#endregion... |
8a3039a018f707bf01ab11be1b6d19d715d086a4 | C# | KyssKyss/SoftUni | /CSharpBasics/OperatorsExpressionsAndStatements/ModifyBitAtPosition.cs | 3.703125 | 4 | using System;
namespace ModifyBitAtPosition
{
class ModifyBitAtPosition
{
//TODO: Ex.14 We are given an integer number n, a bit value v (v=0 or 1) and a position p. Write a sequence of operators (a few lines of C# code)
//that modifies n to hold the value v at the position p from the binary rep... |
69887e519d93f929cc1c499a2b744d1ed592367e | C# | shendongnian/download4 | /code4/620259-14664942-35395224-4.cs | 2.953125 | 3 | public class Sort2<T> : ObservableCollection<T>
{
Type keyType;
object key1;
public void Sort<TKey>(Func<T, TKey> selector, int skip = 0)
{
//...
}
public void SetKey<TKey>(TKey val)
{
keyType = typeof(TKey);
key1 = val;... |
a2c5eeb924bd657c15af88607ce34672b2a3ee2e | C# | madengtao/server-sdk-dotnet | /io/rong/models/MsgObj.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace donet.io.rong.models {
/**
* 用于Push中的message。
*/
public class MsgObj {
// push 消息中的消息体。
[JsonProperty]
String content;
// 聊天室名称。
[Json... |
e4d3be2732ce9f83f1e5b5b0d2038f33b0bb7886 | C# | A00230109/LabApi | /WebLabApi/Controllers/RandomController.cs | 2.75 | 3 | using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Routing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace WebLabApi.Controllers
{
[Route("[controller]")]
[ApiController]
public class RandomController ... |
de80975e0fa123eec35574a10f44222eddaf70ab | C# | AndersonAluiz12/GitC | /15-07-19_19-07-19/AdicionandoValoresEmUmaLista/Program.cs | 3.46875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//Adicionando valores em uma lista
namespace AdicionandoValoresEmUmaLista
{
class Program
{
static void Main(string[] args)
{
//Criação da lista
string[,... |
aa35db4ccd26ee6ec36c19262b561d983bd9919c | C# | sav-dev/SpriteHelper | /SpriteHelper/Dialogs/BackgroundTilesetCreator.cs | 2.515625 | 3 | using SpriteHelper.Contract;
using SpriteHelper.NesGraphics;
using SpriteHelper.Utility;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Windows.Forms;
namespace SpriteHelper.Dialogs
{
public partial class BackgroundTilesetCreator : Form
{... |
9cd20a95f36027d817e8fac3b884e5d0cac730d5 | C# | dwmkerr/sharpshell | /SharpShell/SharpShell/Interop/IShellDetails.cs | 2.828125 | 3 | using System;
using System.Runtime.InteropServices;
namespace SharpShell.Interop
{
/// <summary>
/// Exposed by Shell folders to provide detailed information about the items in a folder. This is the same information that is displayed by the Windows Explorer when the view of the folder is set to Details. ... |
0937569c01068536f323927dad39e8904cdd9f7c | C# | swayammishra/OCR | /OCR.DigitConversion/DecisionQueries/OnePartInFirstPositionQuery.cs | 2.734375 | 3 | using OCR.Common.Extensions;
using OCR.Core.Common;
namespace OCR.DigitConversion.DecisionQueries
{
class OnePartInFirstPositionQuery : DecisionQueryBase
{
public override char Evaluate(char[][] input)
{
char result;
int numberOfCharactersInSecondPosition = input.CountC... |
df91388ed9cb1f618e19f2521ddffc5e9bf2e340 | C# | hastekne/newperma | /BusinessModel/Business/ModuloBP/AutoresBL.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//
using BusinessModel.Persistence.BD;
using BusinessModel.DataAccess.ModuloBP;
namespace BusinessModel.Business.ModuloBP
{
/// <summary>
/// Clase para el acceso de datos a tblAutores
/// ... |
f11eead3a26652bdad18fd389192e69ebd8db5cd | C# | brd6/LudumDar35 | /LudumDar35/Assets/Scripts/Game Controllers/GameManager.cs | 2.59375 | 3 | using UnityEngine;
using System.Collections;
using System;
public class GameManager : MonoBehaviour {
public static GameManager instance;
[HideInInspector]
public int playerLife = 3;
[HideInInspector]
public int score = 0;
[HideInInspector]
public int hightScore = 0;
void Awake()
... |
3a5a59deb9d80df85fe7109449776242fb84c9ee | C# | abramowitzK/KTracerSharp | /KTracerSharp/Camera.cs | 2.625 | 3 | using System;
using System.Linq.Expressions;
using System.Runtime.CompilerServices;
using OpenTK;
using OpenTK.Audio.OpenAL;
namespace KTracerSharp {
public class Camera {
public static int numRecursions=7;
public static float Tolerance = 0.05f;
public Vector4 BaseColor;
public Camera(Vector3 pos, Vector3 ri... |
74a3d30ba680221d1f4e3269bfa00270de0bed23 | C# | matthewvelie/libeveapi | /libeveapi/ResponseObjects/MapSovereignty.cs | 2.78125 | 3 | namespace libeveapi
{
/// <summary>
/// Returns a list of solarsystems and what faction or alliance controls them.
/// http://wiki.eve-dev.net/APIv2_Map_Kills_XML
/// </summary>
public class MapSovereignty : ApiResponse
{
/// <summary>
/// API Version Compatibility
... |
f442783ff661a940660cd0c3553aefa8aff1d091 | C# | SvyatoslavFedynyak/Fifth-Term | /Information Defence/Lab1/Lab1/Program.cs | 3.546875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
// Task1: Афінна система підстановок цезаря
// Task2: Шифр "подвійний квадрат Уітстона"
namespace Lab1
{
struct ElementPosition
{
public int row, col;
public El... |
c3f9270e6c17c5e7673c313c79a41a2e9e923b13 | C# | akhena1/SENAI-Backend-CSharp | /Aula09-1Exercicios_Funcoes/ex4/Program.cs | 3.78125 | 4 | using System;
namespace ex4
{
class Program
{
static void Main(string[] args)
{
double[] v1 = {1234, 1234, 1234, 1234, 6534};
Console.WriteLine(MaiorIndice(v1));
}
/// <summary>
/// Função que capura o maior número de um vetor
... |
5743d7981421478241da06d666bbc8120a0932f7 | C# | slcnyagmurnew/lecture-notes-sharing-site | /Moon_/Models/MailSender.cs | 2.53125 | 3 | using Limilabs.Client.SMTP;
using Microsoft.AspNetCore.Identity.UI.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Threading.Tasks;
namespace Moon_.Models
{
public class MailSender : IEmailSender
{
private string _host;... |
a6906f39ace2726486ebbc5f92ada9db84997a23 | C# | NameInikita/Snake | /Snake/Snake/VerticalLine.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Snake
{
class VerticalLine: Figure
{
public VerticalLine(int yUp,int yDowm, int x, char ch)
{
newList = new List<Point>();
for (int y = yUp; y ... |
b3f62aef243f118f30e7d59b4a6e1a0721763c35 | C# | mbattaini/StockLoan-Products | /Sendero 1.2/Email/PopFetch.cs | 2.75 | 3 | using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using Anetics.Common;
namespace Anetics.Email
{
public struct EmailHeader
{
public string From;
public string Subject;
public string Date;
public bool OkToDelete;
}
public cla... |
2504ad1a7ca31b734560318c029ee1e3d6b3448b | C# | JACKSHINE2/Unity-projectpritice | /FPS/UIScripts/UI/UICommon/UIScene.cs | 2.59375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 管理所有需要被监听的子物体UI
/// </summary>
public class UIScene : MonoBehaviour {
/// <summary>
/// 管理所有需要被监听的子物体
/// </summary>
public Dictionary<string, UIEventListener>
listener = new Dictionary<string, UIEven... |
c2c00109dc6fdcec9a75538f26355807c3aff5e2 | C# | ajunlonglive/MarketDataConsumer | /RealTime/RealTimeQuoteView.xaml.cs | 2.515625 | 3 | using System.Windows;
namespace TroyStevens.Market.Client
{
public partial class RealTimeQuoteView : Window
{
public RealTimeQuoteView()
{
InitializeComponent();
}
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
... |
0895f51a91a08164c87cda46e01ae6674146a08f | C# | Zilleplus/expressionTemplatesCSharp | /Demo/Program.cs | 3.203125 | 3 | using LinAlg;
using System;
using System.Text;
namespace Demo
{
class Program
{
static void Main(string[] args)
{
var vec1 = new Vector(1, 1, 1);
var vec2 = new Vector(2, 2, 2);
var vec3 = new Vector(3, 3, 3);
var sum = MathOperations.Sum(vec1, ... |
26f1c0d1cec576941849cf2fafc54e84c3f9fe30 | C# | hadewa/charp-latihanerico | /Bab4.1/Latihan/Latihan2/Program.cs | 3.28125 | 3 | using System;
namespace Latihan2
{
class Program
{
static void Main(string[] args)
{
/* Bab 4 - Latihan2
Menghitung Luas Segitiga v1 */
int alas, tinggi, luas;
string input;
Console.Write("Menghitung luas s... |
a3bce3125a929ecaf524bb43a95fbaebb4523d27 | C# | lucafilippodangelo/OOP-Patterns-Refresh | /PatternsRefresh/Program.cs | 3.0625 | 3 | using AbstractFactoryDesignPattern;
using MediatorDesignPattern;
using SingletonCreationalPattern;
using System;
using static FactoryDesignPattern.Program;
using BuilderCreationalPattern;
using PrototypeCreationalPattern;
using AdapterStructuralPattern;
using System.Collections.Generic;
using BridgeStructuralPattern;
... |
c53fe5d9b6cf34dfd9fa10f2ecd52a7115d50f49 | C# | EnTeeGee/AdventOfCode2018 | /AdventOfCode2018/Common/Mapper.cs | 3.484375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AdventOfCode2018.Common
{
class Mapper
{
public static string[] ToLines(string input)
{
return input.Split(new[] { '\n', '\r' }, StringSplitOptions.RemoveEm... |
99c054acef84783566c0479623788284607b9b71 | C# | dave55man/ProductMonitor | /Model.Test/DataAccess/ProductUpdateDaoTest.cs | 2.5625 | 3 | using Microsoft.WindowsAzure.Storage.Queue;
using NUnit.Framework;
using System.Threading;
using Trek.ProductMonitor.Model.DataAccess;
using Trek.ProductMonitor.Model.DataAccess.Contracts;
namespace Model.Test.DataAccess
{
[TestFixture]
public class ProductUpdateDaoTest
{
private readonly IProduct... |
05d5e61be1f621393b47c74ba468d82c76611307 | C# | rnull/ManejadorDeDatos | /ManejadorDeDatos.Core/DataManager.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ManejadorDeDatos.Core
{
public class DataManager
{
private string[] _columnas;
public List<string[]> _registros;
public string _dato;
p... |
f7f755f74305797c5e1471ecfae70a79ab271c95 | C# | volenpopov/SoftUni | /C# OOP/Exam preps/C# OOP Exam 14.th April .2019/01. Structure_Skeleton/Skeleton/MortalEngines/Core/CommandInterpreter.cs | 2.859375 | 3 | using MortalEngines.Core.Contracts;
namespace MortalEngines.Core
{
public class CommandInterpreter
{
private IMachinesManager machineManager;
public CommandInterpreter()
{
this.machineManager = new MachinesManager();
}
public string ParseCommand(string com... |
7679669a62b536a562550267e99e978c88b162bf | C# | gcvalderrama/Jarvis | /Lincoln/07Summarization/JarvisSummarization/JarvisSummarization/RST/RSTReader.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace JarvisSummarization.RST
{
public class RSTReader
{
public RSTDocument ReadDocumentContent(string str, string name)
{
... |
1b750e333b093d6b5e93d529a2b4a3d57038068f | C# | hoangvinhtien123/hoc_tieng_anh | /English_Quiz/Controllers/TipController.cs | 2.515625 | 3 | using English_Quiz.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace English_Quiz.Controllers
{
public class TipController : BaseController
{
English_QuizEntities db = new English_QuizEntities();
[CheckPermission(Permis... |
ada2202753b78dcaaaa5d8ec98e1127e3ce13371 | C# | WhitefangStudio/Neutral-Point | /Assets/MyScripts/PartList_Struct.cs | 2.578125 | 3 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class PartList_Struct: MonoBehaviour {
public ArrayList part;
string Name;
public void ParList_Struct(){
part = new ArrayList ();
}
public void add<T>(T param){
part.Add (param);
}
public void setName(string name){
Na... |
4488c5f9617f2f5077e886f203acfdfd17941da2 | C# | GamSaHam/CSharp | /2_6. IComparable의 활용.cs | 3.828125 | 4 | // IComparable의 활용
using System;
class Car:IComparable
{
public Car(int id)
{
m_id = id;
}
int IComparable.CompareTo(object obj)
{
Car temp = (Car)obj;
if (this.m_id > temp.m_id)
{
return 1;
}
else if (this.m_id < temp.m_id)
{
... |
f9d323eccddd89a9fe754f8a01c9e78db2ddf884 | C# | TruongduyMan/DSA | /ConsoleApp1/Program.cs | 3.5 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1
{
class Program
{
static int Menu(string[] items)
{
int choice;
int len = items.Length;
do
{
for (int i = 0; i < len; i++)
... |
694feec9e939eb5972363e86b8ec761c53ae10ae | C# | TrungNghia1998/Hotel-Website | /QuanLyKhachSan/BusinessLogic/Repository/Base/UnitOfWork.cs | 2.671875 | 3 | using DataProvider.Model;
using System;
namespace BusinessLogic.Repository.Base
{
public class UnitOfWork : IDisposable
{
private QuanLyKhachSanEntities _dbContext = new QuanLyKhachSanEntities();
public void Save()
{
_dbContext.SaveChanges();
}
private boo... |
43ed15a0ca1123c242834fcb6f79fcf2520a10f5 | C# | AbdoMahfoz/Student-Prerequisite-Course-System | /Student prerequisite course system/DataStructures/ArrayList.cs | 3.578125 | 4 | using System;
using System.Collections;
using System.Collections.Generic;
public class ArrayList<T> : IEnumerable<T>
{
//private
T[] arr;
int count;
int capacity;
void CheckIndex(int index)
{
if (index >= count || index < 0)
{
throw new IndexOutOfRangeException();
... |
39d896361fd84077679de0815d8b23db26a361d4 | C# | bubdm/CSharpScripts-1 | /src/NewInCSharp/CSharp7/discards.csx | 3.671875 | 4 | // Calling methods with out parameters
var input = "7";
if (int.TryParse(input, out _))
WriteLine(input);
else
WriteLine("Could not parse input");
// Deconstructing tuples
var person = new Person() { Name = "James", Company = "Microsoft" };
(string name, string company, _) = person;
WriteLine($"Person: {name},... |
0f165308dd1c83f2c21779f19c0623b03675484d | C# | addictedcode/Mathelandia | /Assets/Scripts/Gameplay/Cake/ConveyorBelt.cs | 2.625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ConveyorBelt : MonoBehaviour
{
public int digitsToSpawn = 1;
public float numberSpawnInterval = 2.0f;
private float timeSinceLastNumber = 0.0f;
private int maximumSpawnedNumbers = 4;
private List<int> spaw... |
f65d4c1eb07c6db8e42e15d82fb516a3904cd41e | C# | wdolek/parallelator | /src/Parallelator.Loaders/Raw/TaskContinuousBatchRawLoader.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
namespace Parallelator.Loaders.Raw
{
public class TaskContinuousBatchRawLoader : IThingyLoader<string>
{
private readonly int _batchSize;
public TaskContinuousBatchRawLoader(int batchSize)
... |
4f1991d6c5333bdd54ae81ac8885bd3f254a0e80 | C# | GammaG/HW2-NGrams | /NGrams/NGramTable.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace NGrams
{
class NGramTable
{
private Dictionary<String, List<int>> ngramTable = new Dictionary<String,List<int>>();
private volatil... |
0f2e8ae35be21d966f7344f36656f35b8e45aea5 | C# | vishalishere/nsynth | /source/NSynth/Codec.cs | 2.90625 | 3 | /******************************************************************************
* NSynth - A Managed Multimedia API - http://nsynth.gearedstudios.com/ *
* Copyright © 2009-2013 William 'cathode' Shelley. All Rights Reserved. *
***************************************************************************... |
4a34b68b7bb25d3a201dadb5182af78fb2abd1c6 | C# | GrzegorzSzwed/ForestGladeApp | /Classess/Service.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Drawing;
using System.Data.SqlClient;
namespace ForestGladeApp.Classess
{
class Service
{
private int id;
private string Name;
private str... |
ce6bc4416fc8001e400f77cd0ae212c1da7a7522 | C# | VB10/Sifirdan-C-dersleri-2 | /AyseLearn2/Program.cs | 3.296875 | 3 | using System;
using System.Collections.Generic;
namespace AyseLearn2
{
class MainClass
{
static int x;
//dinamik liste olusturma deger
//global değişken 10 uzunlugunda bir dizi
static int[] list = new int[10];
public static void Main(string[] args)
{
//listler
//listeler içersinde birden çok
... |
d1544bc6daac8fef17e7a889f54d5e827588a022 | C# | GabrielDyck/GDD-2018-1C | /RegistrarConsumible/AgregarConsumible.cs | 2.53125 | 3 | using FrbaHotel.Modelo;
using FrbaHotel.Repositorios;
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 FrbaHotel.RegistrarConsumible
{
publ... |