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 |
|---|---|---|---|---|---|---|
b8e3672b1dec0dcfbf5f6fc66fdc87ee16139416 | C# | shafin1984/task | /Assignment5/MyMVCApp/MyMVCApp/Controllers/CustomerController.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MyMVCApp.BLL.BLL;
using MyMVCApp.Models.Models;
namespace MyMVCApp.Controllers
{
public class CustomerController : Controller
{
CustomerManager _customerManager =new CustomerManager();
... |
c1143af337b166e79045ff1e7b7a63e718d43bab | C# | Mindkid/ProjDAD | /pacman/ConnectorLibrary/ChatRoom.cs | 2.59375 | 3 | using ConnectorLibrary;
using System;
using System.Collections.Generic;
using System.Threading;
namespace ConnectorLibrary
{
public class ChatRoom : MarshalByRefObject
{
private List<Message> conversation;
private List<ChatRoom> clientsChatRoom;
private Form1 conversationForm;
... |
03222c5b0a626c18dcc29980a11e4500adeebc21 | C# | arifulHoqueCse/SchoolManagementSoftware | /SchoolApp-arif-9/SchoolApp/Models/DbGateway/ExamDbGateway.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using SchoolApp.Models.View;
namespace SchoolApp.Models.DbGateway
{
public class ExamDbGateway:Common
{
SqlConnectionManager aConnectionManager = new SqlConnec... |
1f5f906a5ce86bcba121a0d6246149e4a75128e6 | C# | codemonkeycodes/ComputerVision | /AdvGraphics/Graphics.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace AdvGraphics
{
public class GraphicDisplay
{
private int[,] pixel_data;
... |
7f2a95bdc92e2b4c4c7a708435cc91fbb53386d2 | C# | atopos0627/SocketServer | /TestServer/Event/ClientEventArgs.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TestServer.Network;
namespace TestServer.Event
{
public class ClientEventArgs : EventArgs
{
#region Constructors
public ClientEventArgs(ClientConnection clientConnection)
: this(clientConne... |
3387d1db2d59918b55f4cf9d47531e6f5ebdd698 | C# | constanline/Magician | /Magician.Common/Util/LogUtil.cs | 2.96875 | 3 | using System;
using System.IO;
namespace Magician.Common.Util
{
internal class LogUtil
{
private static readonly object logLock = string.Empty;
public static void Log(string message)
{
lock (logLock)
{
if (!Directory.Exists("log")) Directory.Crea... |
8436110c6c59215f6b80a1f4b881c17b5de7926b | C# | ragnarstolsmark/Rstolsmark.PasswordHashTool | /Program.cs | 2.765625 | 3 | using System;
using static Rstolsmark.PasswordHashLib.PasswordHasher;
namespace Rstolsmark.PasswordHashTool
{
class Program
{
static void Main(string[] args)
{
if(args.Length == 0){
Console.WriteLine("\nUsage:");
Console.WriteLine("To genera... |
828151136efff527920da076bbeccf072839debd | C# | monoman/NugetCracker | /Nuget/test/VisualStudio.Test/RecentPackageTest.cs | 2.8125 | 3 | using System.IO;
using System.Linq;
using Xunit;
namespace NuGet.VisualStudio.Test
{
using PackageUtility = NuGet.Test.PackageUtility;
public class RecentPackageTest
{
[Fact]
public void TestTheFirstConstructor()
{
// Arrange
IPackage basePackage = PackageU... |
25f09fbe20dea45b3056ada06353a40b8dd8569c | C# | tbebekis/Tripous | /Tripous.Data/SqlCache.cs | 3.296875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
namespace Tripous.Data
{
/// <summary>
/// A cache of <see cref="DataTable"/> instances, containing schema of a named sql statement, per connection.
/// </summary>
static public class SqlCache
{
static ob... |
93b94e6b4784de6a7a83d31bbb2921ebeca3b8e6 | C# | XuRuiO/CrmWebApi | /CRM.Freamwork/Cache/MemoryCache/MemoryCacheExtension.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Extensions.Caching.Memory;
namespace CRM.Freamwork.Cache.MemoryCache
{
/// <summary>
/// 2019.08.10 Rui MemoryCache(内存缓存)的接口实现
/// 方法定义的比较少,需要的话,可以在加
/// </summary>
public class MemoryCacheExtension : IMemo... |
b9682d29261b90bdcc0f5199d3ecd7a7bf0090c1 | C# | ming91915/CADDev | /eZcad/Examples/SplineHandler.cs | 2.8125 | 3 | using Autodesk.AutoCAD.ApplicationServices.Core;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.Runtime;
namespace eZcad.Examples
{
/// <summary> 根据两条样条曲线创建出位于其中间的一条新样条曲线
/// Finding an AutoCAD spline between two o... |
426242a739d007f3ccba73b99184802680614355 | C# | mitchelltaylor159/InvoiceSystem | /InvoiceSystem/Controllers/InvoiceItemsController.cs | 2.8125 | 3 | using InvoiceSystem.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace InvoiceSystem.Controllers
{
public class InvoiceItemsController
{
/// <summary>
/// The current working InvoiceItem... |
28fb8274a0a3b0d1d7e7ca268d9f367a9cd3db6a | C# | alexccl/AutoTest | /Source_Code/AutoTest/AutoTestEngine/BoundaryType.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AutoTestEngine
{
/// <summary>
/// Enumeration of the different boundaries the interception occured on
/// </summary>
enum BoundaryType
{
/// <summary>
/// ... |
974618b3aa1324c71608a8d22466f14d627bbf96 | C# | yjd6808/_YJD_P2PFileShare_vs19 | /P2PTest/TestForFileCompressing.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using P2PShared;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace P2PTest
{
public class Block
{
... |
0d9b6f74928ec6148cc552abc8d2f53530be939c | C# | Garados007/IlarosLauncher | /IlarosLauncher/WriteAbleStreamFaker.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace IlarosLauncher
{
public class WriteAbleStreamFaker : Stream
{
Stream stream;
bool discardChanges, disposeBaseStream;
long virtualLength;
... |
9a3076429a1aaf31a65e8c94bebc92c23eb5203e | C# | ERNICommunity/ActivityContext.NET | /src/ActivityContext/Data/ActivityInfoList.cs | 2.59375 | 3 | using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;
namespace ActivityContext.Data
{
/// <summary>
/// Data object representing list of activities.
/// </summary>
[CollectionDataContract(Name = ElementName, Namespace = ElementNamespace)]
p... |
b65b6419fe32fb6c1df767193779fec8dbcd394f | C# | ProneDragonJohn/Class_Average | /CIS3343 Assignment2 Velazquez.John/CIS3343 Assignment2 Velazquez.John/Program.cs | 3.84375 | 4 | /**********************************
* CIS 3343
* John Velazquez
*************************************
* Assignment 2
* Class Average
* Date: 9/10/2019
*************************************
* Takes as many inputs as user wants
* and takes the average and displays
* both the numerical value and the
... |
bae544603d6295b896e347d2904b0fdce9fe9013 | C# | telerik/blazor-ui | /grid/batch-editing/Data/BatchEditingService.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace BatchEditing.Data
{
public class BatchEditingService
{
private List<BatchEditModel> Data { get; set; }
public BatchEditingService()
{
if (Data == null)
{
... |
7d20b1772fb8263e8fd239a163c6b87de4f18f54 | C# | ic-sys/SimplyMobile | /Core/SimplyMobile.Web/Extensions/HttpClientExtensions.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace SimplyMobile.Web
{
public static class HttpClientExtensions
{
public static async Task DownloadFile(this HttpClient httpClient, string u... |
0aa03cebfbf943ac285bb5984ca6b1123a57fa07 | C# | vivia1994/code_practice | /MyCSharp/RegularExpressions/Chinese character/Form1.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Chinese_character
{
public partial class Form1 : Form
{
pub... |
3969ddf30f68f56ee1e7039e3ab0e726b705efd1 | C# | Hassankashi/WebApplication1 | /WebApplication1/Controllers/HomeController.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace WebApplication1.Controllers
{
public class HomeController : Controller
{
public object MemoryCache { get; private set; }
class Cat
{
// Auto-implemented pr... |
c4fdefff3995cdc30937082d2e281693475ff6a1 | C# | fadookie/ggj2015 | /Assets/code/utility/IListExtensions.cs | 3.375 | 3 | using UnityEngine;
using System.Collections.Generic;
using System.Text;
static class IListExtensions {
public static void Swap<T>(this IList<T> list, int firstIndex, int secondIndex) {
T tmp = list[firstIndex];
list[firstIndex] = list[secondIndex];
list[secondIndex] = tmp;
}
/// <summary>
/// Shuffle the a... |
977989e216779deb08a6d497f021a9f2913a3e4d | C# | eshiett1995/Gambeat-Mimo | /Mimo/Assets/MimoAssets/Scripts/Tournament.cs | 2.71875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class Tournament
{
public string id;
public string tournamentName;
public int totalPlayers;
public int playerLimit;
public bool hasStarted;
public bool hasFinished;
public bool matchEnded;
... |
66132f7db00d2fdc7f27170697d4f1b5ddd5fdbf | C# | mashiro11/rChess | /Assets/Scripts/GridManager.cs | 2.59375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GridManager : MonoBehaviour {
public static List<List<TileInfo>> Tiles;
public static List<List<Token>> Tokens;
// Use this for initialization
void Start () {
Tiles = new List<List<TileInfo>>();
for(int i ... |
646150d4330943332afc43f22ec0fd620f1bbd65 | C# | arleyschrock/ScripTerasu.ManageAzureAD | /ScripTerasu.ManageAzureAD/Model/Automation/NewUser.cs | 2.75 | 3 | using ScripTerasu.ManageAzureAD.Properties;
using System;
using System.ComponentModel;
using System.Text.RegularExpressions;
namespace ScripTerasu.ManageAzureAD.Model.Automation
{
public class NewUser : IDataErrorInfo
{
#region Creation
public static NewUser CreateNewUser()
{
... |
0267ba2ab2df2458d2ed125e931c26cf97618963 | C# | Jddrago/PlannedProject-RPG- | /PlannedProject-RPG-/PlannedProject-RPG-/Die.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PlannedProject_RPG_
{
public class Die
{
private int numSides,lastRoll;
public Die(int numOfSides)
{
numSides = numOfSides;
}
publi... |
ce2e2ea24dd1cf1e7830adc74388c6f1ff8998fa | C# | ywl20013/ywl.web.v3 | /Ywl.Data.Entity.Models/NamedEntity.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Ywl.Data.Entity.Models
{
public class NamedEntity : Entity
{
[MaxLength(256)]
... |
b71492de0a008ac39aabfefb2f0cccc352f77a75 | C# | keganm/AndroidDev | /Assets/Scripts/Engine/FileLoader.cs | 2.8125 | 3 | using UnityEngine;
using System.Collections;
using System.Xml;
using System.Xml.Serialization;
using System.IO;
[XmlRoot("HighScoreCollection")]
public class HighScoreContainer
{
[XmlArray("HighScore"), XmlArrayItem("HighScore")]
public int[] HighScore;
public void Save(string path)
{
XmlSerializer serializer... |
141ed948136b2f7036fa04c74461a9646f2574bd | C# | danslapman/PatternMatching | /Patterns/Matcher.cs | 2.84375 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace Patterns
{
/// <summary>
/// Pattern matcher with void return type
/// </summary>
/// <typeparam name="T">Matcher argument type</typeparam>
public class... |
f0eb854970cceb1d03ef9ca53e5e8f1c3c719a15 | C# | Grimelios/LudumDare46 | /Engine/Shapes/3D/FlatShape3D.cs | 2.890625 | 3 | using System.Diagnostics;
using Engine.Shapes._2D;
using GlmSharp;
namespace Engine.Shapes._3D
{
// This represents any flat (i.e. 2D) shape with a 3D transform. Useful for combat calculations (plus probably
// other uses).
public class FlatShape3D : Shape3D
{
private Shape2D flatShape;
public FlatShape3D() ... |
9dc9ed124c3cba1ce2b556707e8694f2e2f9bd0a | C# | Fawnzz/TestPALM | /PalmBusinessLayer/Risk_RiskDB.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using PalmDataLayer;
using System.Data;
namespace PalmBusinessLayer
{
public class Risk_RiskDB
{
public void Insert_Risk(Risk myRisk) //insert method
... |
5ff3a9bc15a4cfba6514caf0b9ea65a65d733d50 | C# | aksu2612/WindowsForm-App | /Smartiys_/Gorevler.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Smartiys_
{
public partial class Gorevler : Form
{
... |
de2f040d52b1069cf802b4061beba82f6b4724e8 | C# | bungeemonkee/Configgy | /Configgy/Source/FileSource.cs | 3.03125 | 3 | using System;
using System.IO;
namespace Configgy.Source
{
/// <summary>
/// An <see cref="IValueSource"/> that looks for files with the extension '.config', '.json', or '.xml' in the application base directory and have the same name as the requested value.
/// </summary>
public class FileSource : Val... |
c1372b3ef82d69ce78a96f0a31312c908b150183 | C# | bartosz-macczak/recruitment-tasks | /C#_tasks.cs | 3.453125 | 3 | using System;
using System.Collections.Generic;
namespace RecruitmentTasks
{
class Program
{
static void Main(string[] args)
{
}
//Task1
static string[] ReverseArray(string[] text)
{
int textLength = text.Length;
string[... |
a110e44c970eebd517ffba90e2ee76e407d6fc1d | C# | IllusiveJack/Homeworks | /Arrays-HW/ArraysHW/Binary Search/Program.cs | 4.15625 | 4 | using System;
namespace Binary_Search
{
class Program
{
class BinarySearch
{
static void Search(int[] arr, int start, int end, int element)
{
if (end <= start)
{
Console.WriteLine("Not Found!");
ret... |
647a001449d568b4398f1ecdacc3d7ac953bebea | C# | awenonian/GameProject | /GameProject/Enemy.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace GameProject
{
class Enemy : Object
{
private Plan shot;
private double shotTimer;
... |
cc57664b1da532ca3a0dc3dd39ab57317d8da084 | C# | rex-xulander/sentiments-product-catalog | /Product Catalog User Interface/Product Catalog User Interface/Operations.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DataOperations
{
public class Operations
{
private string ConnectionString = @"Data Source=DESKTOP-... |
abf845c18f03a4f7a774c364df146236ada5b126 | C# | mathiasdose/master-thesis | /asp.net-mvc/asp.net-mvc/Models/SerialObject.cs | 2.546875 | 3 | using System.Collections.Generic;
namespace asp.net_mvc.models
{
public class SerialObject
{
public int Id { get; set; }
public int? aNull { get; set; }
public bool aBoolean { get; set; }
public int anInteger { get; set; }
public float aFloat { get; set; }
... |
44d2eb6dd3eb6e75245846ce26510ae250dad3d1 | C# | taerd/NetWork | /NetWork/Form1.cs | 2.75 | 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.Threading;
namespace NetWork
{
public partial class Form1 : Form
{
private ... |
e2dfcf0603788924eec83a15eab4a0284b527ea7 | C# | M-JM/ProjectScrum | /MielsJimmyScrumProjectDAL/Repositories/TaskRepository.cs | 2.703125 | 3 | using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using MielsJimmyScrumProjectDAL.Context;
using MielsJimmyScrumProjectDAL.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MielsJimmyScrumProjectDAL.Repositories
{
public class TaskReposi... |
12b0bf8ca21fe9c5df8eec8db74f6d3a7f040e5a | C# | SulfurAkaSera/Function | /ASYNC/ViewModel/ViewModel.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using ASYNC.Model;
namespace ASYNC.ViewModel
{
public class ViewModel : INotifyPropertyChanged
{
... |
ca3c052ccc325a63869cb2096ac28b2c9b69a686 | C# | arvidl02-edu/Programmering1 | /Glosor/Form1.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Glosor
{
public partial class Form1 : Form
{
public Form1()
{
... |
d130db3964b22b0fc407125df9addb12c07e5eb6 | C# | AntoniusBayu/SimpleMicroservicesArchitecture | /Application/BackEnd/CarService/Domain.Business/Business/mstSparePartDomain .cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Domain.DataAccess;
namespace Domain.Business
{
public class mstSparePartDomain : IMstSparePartDomain
{
private IUnitofWork _uow;
public mstSparePartDomain(IUnitofWork uow)... |
ca6e4963a54bc5d431389a2ea0570544acc1ffc1 | C# | sagarpatel2570/Bomberman-Prototype | /Assets/Bomberman/Scripts/Character/DamageOnTouch.cs | 2.71875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// attached this component to an object so that it can give damage when touch
/// </summary>
[RequireComponent(typeof(Collider2D))]
public class DamageOnTouch : MonoBehaviour
{
public LayerMask targetLayerMask;
pri... |
d443f117bd694ed497c30033db6972af92258d50 | C# | juninhodigital/Framework.Cryptography | /Framework.Cryptography/Cryptography.cs | 3.046875 | 3 | using System;
using System.Security.Cryptography;
using System.Text;
namespace Framework.Cryptography
{
/// <summary>
/// Computes the System.Security.Cryptography.MD5 hash value for the input data
/// using the implementation provided by the cryptographic service provider (CSP).
/// This cla... |
9c9f5cd53d9069e022d83586a8e1cb5f6751370d | C# | karashak1/fallCSharp | /LinqHomework/UnitTestProject1/PeopleTests.cs | 3.546875 | 4 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using LinqHomework;
using System.Linq;
using System.Collections.Generic;
namespace UnitTestProject1 {
[TestClass]
public class PeopleTests {
/* This is the #1 of the homework */
[TestMethod]
public void LoadNames() {
... |
6496f9a1a8e4f9c64f7414a764b907b0475efdac | C# | Curran-H/Soul-Wheel | /Soul Wheel/Assets/Dungeon Maker/Scripts/Objects/DungeonObject.cs | 3.1875 | 3 | using System.Collections.Generic;
using UnityEngine;
using DungeonMaker.Core;
namespace DungeonMaker
{
public class DungeonObject : MonoBehaviour
{
#region Private Variables
private DungeonData dungeon;
private RoomObject[,] map;
private List<RoomObject> rooms;
private int seed;
#endregion Private Varia... |
ca0dbfccc93de419ebc87fe753723522f66e44a5 | C# | renanuness/UriOnline | /matematica/csharp/ex1240/ex1240.cs | 3.4375 | 3 | using System;
class URI
{
static void Main(string[] args)
{
var casosDeTeste = Int32.Parse(Console.ReadLine());
while(casosDeTeste-- > 0)
{
var entradas = Console.ReadLine();
var a = entradas.Split(' ')[0];
var b = entradas.Split(' ')[1];
... |
29edebb326901c56b8c62c44f1e10d291c75f3d6 | C# | shainotshy1/iFractal-Cross-Platform | /iFractal/iFractal/Models/Pixel.cs | 3.5625 | 4 | using System;
using System.Collections.Generic;
using System.Text;
namespace iFractal
{
public class Pixel
{
private int red;
private int green;
private int blue;
public Pixel(int r, int g, int b)
{
red = r;
green = g;
blue =... |
a209b8262b673593068c03b2d2ec884e365fa7d2 | C# | ThansiJamal/MultiplicationConsole | /MultiplicationConsole/Program.cs | 3.578125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace MultiplicationConsole
{
class Program
{
static int i = 1;
static int n = 2;
static int [] arr = new int[] {1,9,2,8,3,7,4,6,5 };
... |
181848c27180e84900e32fe99f1679e3b24840c2 | C# | ionicpanda/custom-payloads | /csharp/shellcode_injection_reverse.cs | 2.546875 | 3 | //Creates a living off the land through by utilizing InstallUti.exe to execute payload
//to obtain reverse shell
using System;
using System.Net;
using System.Diagnostics;
using System.Reflection;
using System.Configuration.Install;
using System.Runtime.InteropServices;
public class Program
{
public static void Mai... |
1efe8c1b81914fb3b2634a9c690a227a0a5d5d8f | C# | shendongnian/download4 | /first_version_download2/59742-3643447-7615090-10.cs | 2.8125 | 3 | public class Test : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private string name;
public string Name
{
get { return this.name; }
set { this.name = value; OnNotifyPropertyChanged("Name"); }
}
protected virtual... |
71198dc437e6331abd98275b93ffb5b5446eba14 | C# | Ramcste/TestAngMvc | /AngularMvc/Controllers/BooksController.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using AngularMvc.Models;
namespace AngularMvc.Controllers
{
public class BooksController : Controller
{
private BookDBContext db = n... |
6bfb639fa0c23db318788d62d647e60e9f19a1b3 | C# | diamonds0805/diamond.github.io | /GitProjects/EmployeeTracker/EmployeeTracker/UI.cs | 3.078125 | 3 | using System;
namespace EmployeeTracker
{
public class UI
{
/* Sanford, Diamond
* 09/27/2020
* ADP
* Synopsis: This class contains the design and usability functions for the program
*/
//Create static method for header
public static void Header(strin... |
5ea1901c0b319d39435a67a03e7421864ce78e8c | C# | deepankarsharma/Flame | /Flame.Clr/TypeHelpers.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using Flame.TypeSystem;
namespace Flame.Clr
{
/// <summary>
/// Defines helper methods for bridging the gap between
/// IL's implicit reference types and Flame's explicit
/// box pointers.
/// </summary>
public static class Type... |
909bad2d6b2d972c22def462f684ef92bbcdf38c | C# | truongpnhattien0299/ATBMHTTT | /Server/Server.cs | 2.796875 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Threading;
using Client;
namespace Server
{
class Server
{
static string ADDRESS =... |
d38a569a282457251c7311d16476ef5c911dfaf2 | C# | glzbcrt/nethpc | /src/netHPC.Samples.PrimeNumbers/Range.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace netHPC.Samples.PrimeNumbers
{
[Serializable]
public class Range
{
private UInt64 m_start;
private UInt64 m_finish;
public Range()
{
}
public Ra... |
d2cb52b9b2ea814fbf4e8ed9c38517105bbfde00 | C# | goldmanpark/algorithm | /Baekjoon/String/10988.cs | 3.359375 | 3 | using System;
namespace Solution
{
public class Solution_10988
{
public static void Main(string[] args)
{
string str = Console.ReadLine();
int answer = 1;
for(int i = 0 ; i < str.Length / 2 ; i++){
if(str[i] == str[str.Length - 1 - i])
... |
1cc7c439858734ec36cf95ff8b86abe68acdc9f4 | C# | ch-sindhu/Logical8 | /Selectionsort/Selectionsort/Program.cs | 3.640625 | 4 | using System;
namespace Selectionsort
{
class Program
{
public static void Selection_sort(int[] ar)
{
for(int i=0;i<ar.Length;i++)
{
var min = i;
for(int j=i+1;j<ar.Length;j++)
{
if(ar[min]>ar[i])
... |
b4172c42c6f12438713a8f450382e57c735779eb | C# | Oswinakamura/OBLeasing | /OBLeasing.Web/Data/Entities/Owner.cs | 2.859375 | 3 | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace OBLeasing.Web.Data.Entities
{
public class Owner
{
public int Id { get; set; }
[Display(Name = "Documento")]
[MaxLength(20, ErrorMessage = "El c... |
a386021a64eb5c2feef984d578c82400e7c93777 | C# | JDjuxx/CadmusDistribuido | /CadmusCursosOnline/CadmusCursosOnline/Controlador/Curso.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CadmusCursosOnline.Controlador
{
class Curso
{
public String[] Select(String Select)
{
String[] data = new String[1];
... |
8f25a61062eb1605eef823834b71f75a58d3041a | C# | HellFinger-s/Surveillance | /Assets/Scripts/targetControl.cs | 2.53125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class targetControl : MonoBehaviour
{
public float speed;//скорость движения
public float lineChangeSpeed;//скорость перемещения между линиями
private float timer;
public int horizontalLineNumber;
... |
420143d9532793f8d6723614224b5771396d1382 | C# | Berzeger/MI-RUN | /paa5/paa5/Formula.cs | 3.71875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
namespace paa5
{
public class Formula
{
private readonly IList<Clause> clauses;
public Formula(IList<Clause> clauses)
{
this.clauses = clauses;
}
public int ClausesCount
{
get { return clauses.Count; }
}
public bool Satisfi... |
a133123a3e698021ac3d3f0fb66f595fdf326330 | C# | ryanninjasheep/MooTUI | /MooTUI/Drawing/Color.cs | 2.78125 | 3 | using System.Data.Common;
using System.Text;
namespace MooTUI.Drawing
{
public enum Color
{
/// <summary>
/// No color. Usually rendered as transparent.
/// </summary>
None,
/// <summary>
/// Darkest base color. Background in dark themes.
/// </summar... |
f4e303954df89be2792d82a227fff696f148422b | C# | kajacx/Zapoctak | /Zapoctak/game/events/Event.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Zapoctak.game;
namespace Zapoctak.game.events
{
public class Event
{
public Entity source, target;
public EventData data;
public Event(Entity source, Entity target, EventData data)
{
... |
b41d1aa62686984bec2f07b85608cfdec24764a8 | C# | thomas4019/TravelingSalesman | /BBWorker.cs | 2.578125 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Timers;
using System.Diagnostics;
namespace TSP
{
class BBWorker
{
public static int MaxWorkerCount = 8;
public static int MinAgendaSplitSize = 5... |
b06665e79b2a41e132188dbff77fb942e4f1c39e | C# | trongphan/AnemicDomainModel | /Source/Ticketing.Infrastructure/Domain/TypeSafeEnum.cs | 3.3125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace Ticketing.Infrastructure.Domain
{
public abstract class TypeSafeEnum<TDerived, TValue> where TDerived : TypeSafeEnum<TDerived, TValue>
{
private TValue _value;
p... |
e70d115cfbf4f8ac2a0a71595a928a5406b8d05c | C# | Kaiose/PacketGenerator | /PacketMaker/PacketMaker/PacketGenerator.cs | 2.625 | 3 |
using System.Collections.Generic;
using System.Text;
using System.IO;
using Microsoft.Office.Interop.Excel;
using System.Linq.Expressions;
namespace PacketMaker
{
class PacketGenerator
{
public static PacketGenerator instance = new PacketGenerator();
public string ExcelPath = Directory.GetC... |
4af2ae43570ca35fa574ba21238fc5f6a14359b0 | C# | Abdulmajeed-Almaymuni/Project04_Auth_CRUD_ASP.NET | /School/Controllers/RoomsController.cs | 2.6875 | 3 | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using School.Data;
using School.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace School.Controllers
{
[Authorize]
public class RoomsController : Controller
{
... |
8ede1a661bfe1d3d2b19befe33848fb2e9989c69 | C# | SzymonPobiega/NetMX | /NetMX/MBeanServerConnectionExtensions.cs | 2.6875 | 3 | namespace NetMX
{
///<summary>
/// Extension methods for <see cref="IMBeanServerConnection"/>.
///</summary>
public static class MBeanServerConnectionExtensions
{
///<summary>
/// Creates a new dynamic proxy object that forwards method invocations and property gets/se... |
c7c230b7ca0f0992bb02ac5662b5027d9d881582 | C# | C41-233/TypeName.Sharp | /project/TypeName.Sharp/MethodName/MethodNameExtend.cs | 2.625 | 3 | using System.Reflection;
using TypeName.Filter;
namespace TypeName
{
public static class MethodNameExtend
{
public static string GetDefinitionNameString(this MethodInfo method, TypeNameFlag flags = TypeNameFlag.Default)
{
return GetDefinitionName(method, flags).ToString();
... |
1bda5a8c7b34e72bcdd198ee4802e4aa9ea1fe42 | C# | YVEF/RssAtomFid | /RssAtomFid.Api/DAL/Interfaces/IAuthRepository.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using RssAtomFid.Api.DAL.Entity.Account;
namespace RssAtomFid.Api.DAL.Interfaces
{
public interface IAuthRepository
{
/// <summary>
/// Register method without cheking of user exists
/// </... |
5384eecaa5914652ddce20c51e8a531bd2485f95 | C# | NadiaKaradjova/SoftUni | /C# Advanced/Sets And Dictionaries - Exercises/10 Population Counter/Population Counter.cs | 3.453125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace _10_Population_Counter
{
public class _10_Population_Counter
{
public static void Main()
{
var result = new Dictionary<string, Dictionary<string, int>>();
var countryPopulation = new Dictionary... |
b8b7f300dc9e3d99b35e33e982a7673f3a2fc77d | C# | kimtz/CIKMovies | /CIK.Movies/CIK.Movies.Core/MovieCollection.cs | 3.328125 | 3 | using System.Collections.Generic;
using System.Linq;
namespace CIK.Movies.Core
{
public class MovieCollection
{
private readonly IStorage _storage;
public IEnumerable<Movie> Movies => _storage.GetAll();
public MovieCollection(IStorage storage)
{
_storage = storage;... |
ca810425ea610a9abd6e345104e63ff44d4fa2b8 | C# | Arugess/Crazy-Asteroid | /FireMissile.cs | 2.546875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//This will make a missile fire from the missle spawner.//
public class FireMissile : MonoBehaviour
{
public GameObject missile1;
public Transform earthArrow;
public static bool canFire;
void Start ()
{
... |
2b572c644186eb951088c3d825300685775eda25 | C# | paulmarrington/Able | /Assets/Askowl/Able/Scripts/Memory/Selector.cs | 2.796875 | 3 | // Copyright 2018 (C) paul@marrington.net http://www.askowl.net/unity-packages
using System;
using System.Collections.Generic;
using UnityEngine;
using Random = UnityEngine.Random;
namespace Askowl {
/// <a href="http://bit.ly/2OrRfQp">Pick one item from a list.</a> <inheritdoc />
public sealed class Selector<T>... |
0c8bac9e75701f229bddb97b190839dd9dd0ee3a | C# | jackjet870/DJS | /code/DJS/DJS.BLL/TriggerGroup.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DJS.BLL
{
public class TriggerGroup
{
#region 属性
/// <summary>
/// 触发器组接口
/// </summary>
private static IDAL.ITriggerGroup iTriggerGroup = null;... |
00d39990509f555477918a542ff6bdcaff716ef3 | C# | GermanKuber-zz/SweetMachine | /SweetMachine/Candies.cs | 3.53125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
namespace SweetMachine
{
public class Candies : ICandies
{
private readonly Queue<ICandy> _candies = new Queue<ICandy>();
public Candies(IEnumerable<ICandy> candies)
{
if (candies == null)
t... |
37a121c8783f8c5b14f463b177a636cdb5c0e667 | C# | RandomityGuy/PQ-Rewind-Prototype | /PQ-Rewind/RewindServer.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TcpFramework;
namespace PQ_Rewind
{
public class RewindService : TcpServiceClientBase
{
public static TcpService<RewindService> Instance;
internal Stack<F... |
b7ba6da775383dd338ef09ced18e452e2d678671 | C# | Odenysyuk/Learning | /Csharp/Troelsen/Core C# Programing/NullableTypes/Program.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NullableTypes
{
class Program
{
static void Main(string[] args)
{
//bool myBool = null; errror, because Boolean isn't reference type
Console.Wr... |
bcdbacae9832cad48cc836c3c83d4400a41cba73 | C# | Lutwidge/Procedural-2D-3D-caves | /Assets/Scripts/2D/MeshGenerator.cs | 3.03125 | 3 | using UnityEngine;
using System.Collections.Generic;
// Class reponsible for creating mesh with the marching squares method
public class MeshGenerator : MonoBehaviour
{
#region Nodes Squares and Triangles Declarations
public class Node
{
public Vector3 Position;
public int VertexIndex = -1... |
a6724785084de12a00ccfe4b9d2a506085a686f8 | C# | simosabba/alaska | /src/foundation/Alaska.Foundation.Core/Extensions/StringExtensions.cs | 3.25 | 3 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Alaska.Foundation.Core.Extensions
{
public static class StringExtensions
{
public static T ParseEnum<T>(this string value)
where T : str... |
147e205325a4f7fba3af0d1a8c0fe06dca7c5a42 | C# | ljubicaboneva/InternetTehnologii | /LAB3 VP/Koshnicka_VI_Lab4/NovProdukt.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 Koshnicka_VI_Lab4
{
public partial class Form2 : Form
{
public Product produkt ... |
ba1eb19588a58cc7c6f665cfd1b2f31a292de5e2 | C# | shendongnian/download4 | /first_version_download2/487132-44035551-145627735-2.cs | 3.59375 | 4 | static Bitmap DrawChart(float[] Values, int Width, int Height)
{
var n = Values.Count();
if (n % 2 == 1) throw new Exception("Invalid data");
//Split the data into lists for easy access
var x = new List<float>();
var y = new List<float>();
for (int i = 0; i < n - 1; i += 2)
{
x.Add(Values[i]);
y.A... |
ec65d1dea0f29af2f7f394307c46f79de06a78e5 | C# | DamCarduner/HGC.slicePizza | /perso.googleHashCode.slicePizza/Tools/RectangleComparer.cs | 3.109375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace perso.googleHashCode.slicePizza
{
/// <summary>
/// Class allowing to sort rectangles
/// </summary>
public class RectangleComparer : Comparer<int[]>
{
//Compare by... |
d695e0d2d1ece440a13a2a1d28723dbc0cde0caf | C# | Fyzxs/MicroObjectsCalculator | /MicroObjectsCalculator/MainWindow.xaml.cs | 2.65625 | 3 | using System.Windows;
using System.Windows.Controls;
using MicroObjectsCalculator.CalcNodes;
using MicroObjectsCalculator.Ops;
namespace MicroObjectsCalculator
{
public interface IMainWindow { }
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow... |
378db376d723af14476a98d1813883f4ae51df5e | C# | zhouhongjie/dnd-table-online | /DndTable.Core.Test/UnitTests/AttackRollTest.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DndTable.Core.Dice;
using NUnit.Framework;
namespace DndTable.Core.Test.UnitTests
{
[TestFixture]
public class AttackRollTest
{
[TestCase(0, 9, false)]
[TestCase(0, 10, true)]
... |
ce6c8d9b842b791c2c249de539f709e82abadd5d | C# | WoolMagician/8-Cores | /Assets/Sharp Text Mesh/Script/SharpText.cs | 2.765625 | 3 | using UnityEngine;
using System.Collections;
public class SharpText : MonoBehaviour {
public float sizeInUnits; // Set size of text in units. Most fonts have a lot of empty space above and below the characters. So it won't probably match the grid.
public TextMesh textMesh; //In inspector assign the Text Mesh... |
d2b47d0b9587c3e8cc78cd4d5c704fa857965bf3 | C# | NoricoG/MidiPianoRico | /MidiPianoRico/FileHandler.cs | 2.96875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Windows.Forms;
using System.Drawing;
namespace MidiPianoRico
{
static class FileHandler
{
public static Settings LoadSettings()
{
string... |
a15f28731e7acf2e42eb93da6165fb63120ba863 | C# | topfayez/gizmofort.connector.erpnext | /Libs/GizmoFort.Connector.ERPNext/PublicTypes/DocType.cs | 2.734375 | 3 | using System;
namespace GizmoFort.Connector.ERPNext.PublicTypes
{
public struct DocType
{
public static readonly DocType Customer = new DocType("Customer");
#region Internal
public string Name { get; }
public DocType(string name)
{
this.Name = name;
... |
15133f188ad5e548127aa8b47d6eca46c3acf090 | C# | Botyto/Magic | /Assets/Magic/Spell/SpellDescriptor.cs | 2.765625 | 3 | using System;
using System.Reflection;
using UnityEngine;
/// <summary>
/// Object used to describe a spell.
/// A wizard contains such objects in a list and needs one to cast it.
/// </summary>
[Serializable]
[CreateAssetMenu(fileName = "New Spell", menuName = "Magic/Spell Descriptor")]
public class SpellD... |
dd68c5033c2c22300780d8ebe4a2f0ee5936f200 | C# | tony-jang/PlurCrawler | /PlurCrawler/Format/JsonFormat.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using PlurCrawler.Format.Base;
using PlurCrawler.Search.Base;
namespace PlurCrawler.Format
{
/// <summary>
/// json 형태로 반환하는... |
0c5741396b97e41915f356ac16df6ceb085264dd | C# | brianmains/Nucleo.NET | /src_wip/Nucleo.Core/Collections/ObjectCollection.cs | 3.5 | 4 | using System;
using System.Collections;
using System.Collections.Generic;
namespace Nucleo.Collections
{
/// <summary>
/// A collection of objects to use in general situations.
/// </summary>
public class ObjectCollection : CollectionBase<Object>
{
#region " Constructors "
/// <summary>
/// Creates an emp... |
9b44666ffd8156c63c4fdc84e870fe35b9ac8c73 | C# | tchira/UBB.CS-Labs | /AI/AI-lab-2/AI-lab-2/Population.cs | 3.28125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AI_lab_2
{
class Population
{
Individual[] individuals;
public Population(int popSize, bool init, List<Cube> clist)
{
individuals = new Individual[... |
562cdbbe85a5bb4e2bb8ac13d4ed73d71b4d778a | C# | Webcontentor/Windows-SDK | /src/AccelaSDK/AccelaMobileLogger.cs | 2.5625 | 3 | /**
* Copyright 2014 Accela, Inc.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
* use, copy, modify, and distribute this software in source code or binary
* form for use in connection with the web services and APIs provided by
* Accela.
*
* THE SOFTWARE IS PROVI... |
ed3d286249b09111b4940feca5ac73c07a41da44 | C# | Vareniedimka/KIS | /Управление финансами/Приложение финансы/ERP_Fin/ClassLibrary/Oplata.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ClassLibrary
{
public class Oplata : Zapis
{
public int ID_oplati { get; set; }
public DateTime DataSdelki { get; set; }
public string Data { get { return DataSdelk... |
a9d99f1ae17649fe9ff18a47ec90fa43c9df9258 | C# | deep39/LFA.MVC | /Shared Project/LFA.Biz/LFA.Biz/Ado/UserRepository.cs | 2.5625 | 3 | using LFA.Data;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LFA.Biz
{
/// <summary>
/// User Repository to get all data related to users
/// </summary>
public class UserRepository
{
... |
615ca6cb8415204ced6a2ba894c4bdb6a9034b20 | C# | lpopodi/HumaneSociety- | /HumaneSociety/HumaneSociety/MainMenu.cs | 3.46875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HumaneSociety
{
public class MainMenu
{
string visitorChoice;
public MainMenu()
{
Console.WriteLine("Welcome to the Humane Society Application");
... |
29ca6fb02e5982eb693324351def0e1218d160b8 | C# | jun7th/TestFrom | /程序单例运行与重新启动/Program.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace 程序单例运行与重新启动
{
//使用线程互斥变量. 通过定义互斥变量来判断是否已运行实例. 把program.cs文件里的Main()函数改为如下代码:
static class Program
{
[DllImport("user32.dll")]... |
31ca3ba51c95ef760aa8e7ffb778274e6729a767 | C# | shendongnian/download4 | /code6/1109728-29074484-85933219-2.cs | 2.75 | 3 | List<DateTimeRange> availableTimes = new List<DateTimeRange>()
{
new DateTimeRange(new DateTime(2015, 3, 16, 00, 00, 00), new DateTime(2015, 3, 16, 1, 00, 00)),
new DateTimeRange(new DateTime(2015, 3, 16, 08, 00, 00), new DateTime(2015, 3, 16, 10, 00, 00)),
new DateTimeRange(new DateTime... |