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 |
|---|---|---|---|---|---|---|
bd1baccedeec3b95bebbe98b11479774ed485cfd | C# | AttieMonakali/Coin_Jar1 | /Coin_Jar1/Program.cs | 2.953125 | 3 | using Microsoft.EntityFrameworkCore.Metadata.Internal;
using PayPal.Api;
using PayPal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using SharpCompress.Common;
using System.Globalization;
namespace Coin_Jar1
{
interface ICoinJar
{
void AddCoi... |
faffdc89211c3d4f2e790b977668546ae42763c6 | C# | wmaxclark/SourdoughSidekick | /SourdoughSidekick/PresentationLayer/frmMain.cs | 3.125 | 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 DataObjects;
using LogicLayer;
namespace PresentationLayer
{
public partial class frmMain : Fo... |
d729ee87f521e7c4d2a58c783cbd4d6714a9c49a | C# | dotnet/EntityFramework.Docs | /samples/core/Modeling/Relationships/FluentAPI/ManyToManyPayload.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
namespace EFModeling.Relationships.FluentAPI.ManyToManyPayload;
#region ManyToManyPayload
internal class MyContext : DbContext
{
public MyContext(DbContextOptions<MyContext> options)
: base(options)
{
}
publ... |
00b66ea65ac4c4e4f43d202fa3101a06ed9eb8c7 | C# | DanyilMalko/PR_Lab1 | /PR_Lab1/MathHelper.cs | 3.375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PR_Lab1
{
static class MathHelper
{
public static int GetMaxElementOfTheRow(int[,] matrix, int rowNumber)
{
var row = new List<int>();
for (int i = 0; i < matrix.GetLength(1)... |
ef055ec0af33cb55ad691ea6aaa4faac62d6bd16 | C# | anna7777/BrickBreaker | /BrickBreaker/BrickBreaker/Experts/DesignExpert.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace BrickBreaker.Experts
{
/// <summary>
/// DesignExpert is a class, which contains different design parameters and background images
/// </summary>
class DesignExpert
{
#... |
687550b3b68be1b303fb217155b98ea1fb07e421 | C# | vv-b-s/SoftUni | /C# Advanced/Stacks and Queues/Exercises/BasicQueueOperations.cs | 3.65625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class BasicQueueOperations
{
static void Main(string[] args)
{
var manipulation = ParseArray();
var queueSize = manipulation[0];
var dequeueTimes = manipulation[1];
var numberToFind ... |
8ccfe040a361488e39a3a173cd01e238d5ee4111 | C# | smitting/lptoolkit | /LPToolKit Library/GUI/Renderers/SequenceRendererBackground.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace LPToolKit.GUI.Renderers
{
/// <summary>
/// Types of background for the sequencer
/// </summary>
public enum SequencerBackgrounds
{
... |
3ce9c21d47512961a53f4de7c7a439e5fe375261 | C# | uiouio/L | /Assets/Scripts/Util/TrollDrawCircle.cs | 2.578125 | 3 | using UnityEngine;
using System.Collections.Generic;
using System.Collections;
public class TrollDrawCircle : MonoBehaviour
{
public int PointCount = 50;
public float Radius = 10f;
private float m_angle;
private List<Vector3> m_points = new List<Vector3>();
private LineRenderer m_rende... |
80c12999ab01a07fae9288c3aff9fc8d441cb1e0 | C# | CodeGarten/CodeGarten | /CodeGarten.NET/CodeGarten.Data/Access/ContainerTypeManager.cs | 2.765625 | 3 | using System.Linq;
using CodeGarten.Data.Model;
namespace CodeGarten.Data.Access
{
public sealed class ContainerTypeManager
{
private readonly DataBaseManager _dbManager;
public ContainerTypeManager(DataBaseManager db)
{
_dbManager = db;
}
public IQueryabl... |
10705c2ad5d103ef91026da8064b1f4189f9f4dd | C# | korcosin/BOOKS | /CsharpBasic/RoadBook.CsharpBasic.Chapter09/Examples/Ex021.cs | 2.734375 | 3 | using System;
using System.Linq;
namespace RoadBook.CsharpBasic.Chapter09.Examples
{
public class Ex021
{
public void Run()
{
using (UserDataContext context = new UserDataContext())
{
var query = context.TB_USER.Select(u => u);
foreach (... |
87b09f54cd2e881442f6f3251c7bddc009deab8a | C# | teddydamian/CSharp-data-structures-algorithms | /BreadthTraversal/BreadthTraversal/Classes/BinaryTree.cs | 3.609375 | 4 | using System;
using System.Collections.Generic;
using System.Text;
namespace BreadthTraversal.Classes
{
public class BinaryTree
{
public Node Root { get; set; }
public BinaryTree()
{
Root = null;
}
/// <summary>
/// This method will return a list o... |
7e40a670e5e9dd75541263a92ad72cdc1b849c15 | C# | anegostudios/vsapi | /Client/Model/Mesh/CustomMeshDataPartInt.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Vintagestory.API.Client
{
/// <summary>
/// Holds arbitrary int data for meshes to be used in the shader
/// </summary>
public class CustomMeshDataPartInt : CustomMe... |
d214ecc3c53a2b5f3ee41ced3d75f55a6ae842d4 | C# | KellyCristinaAires/areatriangulo | /Program.cs | 3.03125 | 3 | using System;
namespace areatriangulo
{
class Program
{
static void Main(string[] args)
{
double B;
double H;
double A;
Console.Write("Digite o valor da base ");
B = double.Parse(Console.ReadLine());
Console.Write("Digite o valor da al... |
8f6485068f072307eea5a6f8bde406d11b44ed36 | C# | d3v3l0p3r1/Post | /src/Post.Server.Web/Controllers/MessagesController.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Post.Server.Services.Abstract;
namespace Post.Server.Web.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class MessagesCo... |
d0880c887c0136799ba2368eea1be57b9b657cb6 | C# | k-boyle/Project-Euler | /1-9/_6_Difference/Program.cs | 4.03125 | 4 | using System;
namespace _6_Difference {
class Program {
static void Main(string[] args) {
//difference is quartic sequence https://oeis.org/A052149
//a(n) = n*(n-1)*(n+1)*(3*n+2)/12
Func<int, int> a = i => i * (i - 1) * (i + 1) * (3 * i + 2) / 12;
Console.Wr... |
109c7290b5c8bc3fb22296f69f7a6c6dc09f6ca8 | C# | KingDistributionsIncorporated/esendex-dotnet-sdk | /source/rest/RestResource.cs | 2.5625 | 3 | namespace com.esendex.sdk.rest
{
internal abstract class RestResource
{
public abstract string ResourceName { get; }
public abstract string ResourceVersion { get; }
public string Content { get; protected set; }
public string ResourcePath { get; protected set; }
public s... |
a3ad3309e94f61653ee2505ae33e41498c449527 | C# | mark-sch/QuantResearchDev | /src/Moon/Moon/Data/Provider/CandleExtension.cs | 2.578125 | 3 | using Moon.Data.Extender;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Moon.Data.Provider
{
public static class CandleExtension
{
public static double Dpivot (this Trady.Core.Candle candle)
{
double Pi... |
74fc768562146fa799c28bdc4264d07a3b822867 | C# | Bomnamul/DataStructureAlgoCSharp | /Homework/24-Homework-Hashtable/main.cs | 3.1875 | 3 | using System;
using System.Collections.Generic;
class MainClass {
public static void Main (string[] args) {
Action<object> print = Console.WriteLine;
Hashtable<string, string> ht = new Hashtable<string, string>(5);
ht.Add("txt", "notepad.exe");
ht.Add("bmp", "paint.exe");
ht.Add("dib", "paint.e... |
3976135ea7325e03cb1f0434656b91db819c25df | C# | mgnush/Square-World-Robot-Navigation | /Node.cs | 3.21875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ai_ass1
{
public class Node : IDisposable
{
private Coords _coords; // Current coords
private Move _move; // The move that got us here
private Node _parentNod... |
0197dd20db0d4a71f49653d1d50d2b0548420b14 | C# | EmilPopov/C-Sharp | /C# Part1/IntroToProgramming/HelloWorld/Program.cs | 3.046875 | 3 | //Creeate, compile and run a “Hello C#” console application.
//Ensure you have named the application well (e.g. “”HelloCSharp”).
using System;
namespace HelloWorld
{
class HelloCSharp
{
static void Main()
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine(... |
48ed01413871c4d89d54072f8369581ab45affe1 | C# | kobrynsky/aoc-2020 | /day10/Program.cs | 3.234375 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
namespace day10
{
class Program
{
static ListOfIntsComparer comparer = new ListOfIntsComparer();
static void Main(string[] args... |
d573c1dfb5471b87f8b4b1993327bca7bda39459 | C# | Cardman/tutorials | /csharp/2015/Projects/SimpleApplicationTer/UnitTestProject1/UnitTest1.cs | 3.109375 | 3 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
private Chut chut;
[ClassInitialize]
public static void ecole(TestContext con)
{
Console.WriteL... |
f68bd0f88434b2f7bfe6215047b245a844a48115 | C# | gbehnam/csharp | /Codes/Survival/002_InputtingKeysPress.cs | 2.78125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Main : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
//Input.GetKey
//Input.GetKeyUp
... |
9e8bcd8339d01af315355874e4e6c363b5fa61fa | C# | loudej/civcalc | /src/CombatSimulator/Model/Unit.cs | 2.734375 | 3 | using System;
using CombatSimulator.Model.Categories;
using CombatSimulator.Model.CategoryBonuses;
using CombatSimulator.Model.SpecialRules;
using CombatSimulator.Model.TerrainBonuses;
namespace CombatSimulator.Model
{
public abstract class Unit
{
public abstract Unit Self { get; set; }
... |
d7031ab09639793c0b07fb16e9f1575c3bc6e088 | C# | HenryHYH/Demo | /DapperDemo/ConsoleApp/TestOrm.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
using ConsoleApp.Infrastructure;
using ConsoleApp.Model;
namespace ConsoleApp
{
public class TestOrm : BaseTest
{
[Fact]
public void TestInsert()
{
... |
27a7f13663c6918f3795d015171d7193470f3244 | C# | Tordesillas/SI4_Velib_Gateway | /AppAdmin/Program.cs | 3.203125 | 3 | using AppAdmin.ServiceReference1;
using System;
namespace AppAdmin
{
class Program
{
/// <summary>
/// Launches a console for the admin of Célib.
/// Proposes to the admin influencing the server cache.
/// </summary>
static void Main(string[] args)
{
... |
d4123a3353b19878743be17955489c5ddf865a5b | C# | paolaTorres123/sisinfogeo2020 | /19.Listasv1/Program.cs | 3.546875 | 4 | using System;
using System.Collections.Generic;
namespace _19.Listasv1
{
class Program
{
static void Main(string[] args)
{
//Definir una lista con valores iniciales
List<string> materias = new List<string>(){
"Calculo I",
"Redaccion Avanz... |
feb9929de2896c5ab69598aabcd05c1ed1f4e9cf | C# | klaening/newton_exercises | /SohailOvningarSvar/Exercises/Arrays/Övning67.cs | 3.578125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
namespace SohailOvningar.Exercises.Arrays
{
class Övning67
{
public void Print()
{
Console.WriteLine(@"Övn67: Avgör med personnr... |
cd56a2aa6bcf4fe675f594d702cdb8a6d2b7d012 | C# | JMS-1/DVB.NET---VCR.NET | /DVB.NET/TS/TSParser.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using JMS.DVB.EPG;
using JMS.DVB.EPG.Tables;
using JMS.DVB.TS.TSBuilders;
namespace JMS.DVB.TS
{
/// <summary>
/// Diese Klasse analyisiert einen DVB <i>Transport Stream</i> und zerlegt ihn in
/// die individuellen ... |
ca08db50d0cb7d89dd20a4c3cd1ba2427485fb65 | C# | subramanir2143/MADE-App-Components | /MADE.App.Mvvm/RelayCommand`1.cs | 3.109375 | 3 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="RelayCommand{T}.cs" company="MADE Apps">
// Copyright (c) MADE Apps.
// </copyright>
// <summary>
// Defines an implementation of the ICommand for running an action on executi... |
513f1175b3077c01bf6dd6943ed8ec67c042b3f3 | C# | MichalFlax/CellularAutomaton | /CellularAutomaton/Rules/GameOfLife.cs | 3.28125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
namespace CellularAutomaton.Rules
{
class GameOfLife : DefaultRule
{
/// <summary>
/// Returns cell default state, which is value 0.
/// </sum... |
3fb3930ee65d8b522b9d03fcd46c10191ea53633 | C# | lbllbl9527/yuanma | /WowCNData/Helper/LegionAssault.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace WowCNData.Helper
{
public class LegionAssault
{
class Time
{
internal static int GetCurrentTimeStamp()
{
return (int)(DateTime.Now - TimeZone.CurrentTimeZone.T... |
49cf4c73c1ded856aa91f94163c1a03853dc326e | C# | kosmonafta666/C-Advanced | /Sets and Dictionaries/Sets and Dictionaries-Exercise/Count Symbols/CountSymbols.cs | 3.90625 | 4 | namespace Count_Symbols
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class CountSymbols
{
public static void Main(string[] args)
{
//read the input string;
var inputStrin... |
09c1a7851e49a0d9886d36d93f5ad451ba80be33 | C# | nwheels-io/MetaPrograms | /Source/MetaPrograms/ImperativeCodeModel.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using MetaPrograms.Expressions;
using MetaPrograms.Members;
namespace MetaPrograms
{
public class ImperativeCodeModel
{
private readonly HashSet<AbstractMember> _topLevelMembers;
private read... |
50969ba7bd5df498d3a8a50dc93976d8ccf1e9bd | C# | danigirl244/A5 | /A5Starter/GameLibrary/Board.cs | 3.5625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GameLibrary
{
public class Board
{
public ITicTac t;
public char[,] board = new char[3, 3];
public void PrintBoard()
{
Console.WriteLine(... |
7a3daa97b619d1f0b2df3fd60e1c8fe8919dbe1e | C# | bookorz/SanwaMarco | /SanwaMarco/CommandConvert/Encoder_Robot.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Threading.Tasks;
using System.IO;
namespace SanwaMarco.CommandConvert
{
public class EncoderRobot
{
private string Supplier;
/// <summary>
/// Robot E... |
0b570a306a95f340f127ea4dcbec1d7ac9d53155 | C# | larryoatmeal/verse-one | /Gestures/MoveForwardGesture.cs | 2.78125 | 3 | using System;
using Microsoft.Kinect;
namespace ShapeGame.Gestures
{
public class MoveForwardGesture: Gesture
{
readonly int WINDOW_SIZE = 50;
IGestureSegment[] _segments;
int _currentSegment = 0;
int _frameCount = 0;
float lastGestureTime = 0.0f;
... |
b028ffaded747645ca91cea57c4a0ae5ea835609 | C# | gwalek/UnityExamples | /RunnerDemo/Assets/RunnerScript.cs | 2.671875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RunnerScript : MonoBehaviour {
public GameObject targetA;
public GameObject targetB;
public float movementSpeed = 4.0f;
public bool HasDynamicDirection = false;
public bool HasFacingUpdate = true;
... |
46d1c88a49fe124b6b6bb24f723de7853b0518af | C# | using-system/TaxiChain | /TaxiChain.App/TaxiChainAppService.cs | 2.6875 | 3 | namespace TaxiChain.App
{
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Text;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using TaxiChain.Services.Contracts;
public class TaxiChainAppService : IHostedService, IDisposable
... |
878d600a4907377c303dbec0f10f03893e78caeb | C# | astanchev/C-Sharp-Basics | /Izpit_01_12_2018/02. School Trip/Program.cs | 3.515625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _02.School_Trip
{
class Program
{
static void Main(string[] args)
{
int daysOfAbsence = int.Parse(Console.ReadLine());
int leftFoodInKilos = int... |
3b895c8f96fc86f692b83d80fa2be330fb8dbe74 | C# | eduardobobato/Sky-Invaders | /Assets/Scripts/GameController.cs | 2.59375 | 3 | using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using UnityEngine.SceneManagement;
public class GameController : MonoBehaviour {
public GameObject[] enemies; // array de inimigos
public GameObject[] spawnPoints; // pontos de spawn
public float timeToSpawn = 2;
private float curren... |
cae6f27b551c7dd2c9a98b4946636745d5159bc6 | C# | smancebo/coopmovil | /ibanking/Services/CheckConnection.cs | 2.625 | 3 | using System;
using System.Net;
using System.Threading.Tasks;
namespace ibanking.Services
{
public static class CheckConnection
{
public static async Task<bool> IsOnline(){
string checkUrl = "http://google.com";
try{
HttpWebRequest iNetRequest = (HttpWebRequest... |
0986b8377ea0559ddcbb0393209406559cd85d5f | C# | SourceHorse/C-Sharp-Studies | /anagram deletions/anagram deletions/Program.cs | 3.515625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace anagram_deletions
{
class Program
{
static void Main(string[] args)
{
string a = Console.ReadLine();//cdefjkl
string b = Console.ReadLine();//ab... |
0ae4a7736d9c5aa88e1d926ce323a76d2b32ab2e | C# | bmjoy/wowedit_unity | /Assets/CASC/BLTE.cs | 2.625 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Security.Cryptography;
using System.Text;
using UnityEngine;
public static class BLTE {
public static MemoryStream OpenFile (Stream stream, int size)
{
MemoryStream mem... |
b48898cb63490b08d5cafb9cac75de1b84032a53 | C# | i7657043/WebApiTemplate | /WebApiTemplate/WebApiTemplate/Program.cs | 2.53125 | 3 | using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using System;
using System.IO;
using System.Reflection;
using Serilog;
namespace WebApiTemplate
{
public class Program
{
public static void Main(string[] args)
{
try
... |
dc757cce1de5439f74864e89bfb8dfa7fd517a06 | C# | JztZ3/OnlineInstituteManagementSystem | /AdminLeavePage.aspx.cs | 2.59375 | 3 | using System;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
namespace AkaarInstitute
{
public partial class AdminLeavePage : System.Web.UI.Page
{
SqlConnection conn = new SqlConnection(ConfigurationManager.AppSettings["SQLConn"])... |
34a5241147278fc56303d2b711451b3edc4f4f16 | C# | phuchgg/WebKhachSan_ASP.NET | /HaLongParadise/Booking.aspx.cs | 2.578125 | 3 | using HaLongParadise.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace HaLongParadise
{
public partial class Booking : BasePage
{
HaLong... |
0184a0555c3c2039e0a67b6fe790000f201c0ed8 | C# | auxilium/JelloScrum | /JelloScrum/JelloScrum.Web/Helpers/BurnDownHelper.cs | 2.578125 | 3 | // Copyright 2009 Auxilium B.V. - http://www.auxilium.nl/
//
// 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 ... |
5919c30eb430e7e74dfe30bca687604301689de1 | C# | HEIWA-IT/EventModelingParisWorkshop | /cleaningRequest/Infrastructure/Storage.cs | 3.25 | 3 | using System;
using System.IO;
using Newtonsoft.Json;
namespace Infrastructure
{
public class Storage<T>
{
private readonly string pattern;
private readonly Func<T, object> keyProp;
public Storage(string pattern, Func<T, object> keyProp)
{
this.pattern = pattern;
... |
f0e04483fa1d714f210aa38ae0ff75f8c017a93c | C# | DecosInformationSolutions/FixiClient-dotnet | /Models/ListPage.cs | 3.3125 | 3 | using System;
using System.Collections.Generic;
namespace Decos.Fixi.Models
{
/// <summary>
/// Represents a single page of results.
/// </summary>
/// <typeparam name="T">The type of element in the list.</typeparam>
public class ListPage<T>
{
/// <summary>
/// Initializes a new instance of the <s... |
1353f35430556d750713b3914914e680aeacf2b1 | C# | hardcoded2/SpritePackExample | /Assets/Scripts/RectAtlas.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using UnityEngine;
namespace DefaultNamespace
{
[Serializable]
public class RectAtlas
{
//public List<Texture2D> Tex;
public Texture2D Tex;
public List<RectSprite> RectSprites;
//TODO: use .userdata to eliminate hard reference... |
6b18f138d56cb9c3a9d278a0480bb1c655009be7 | C# | zookae/Microgames | /Assets/Code/Control/ClickSelectParent.cs | 2.5625 | 3 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Tracks a collection of objects and registers clicks.
/// TODO (kasiu): Should this be a component attached to the global state or a single object?
/// </summary>
public class ClickSelectParent : MonoBehaviour {
... |
06eaa74ef8d9c20c70e70d3677c31316040467ea | C# | sunghwan2789/Bible2PPT | /Bible2PPT.Services.BibleService/Sources/GodpiaBible.cs | 2.65625 | 3 | using System.Globalization;
using System.Text.RegularExpressions;
using Bible2PPT.Bibles;
using Bible2PPT.Services.BibleIndexService;
namespace Bible2PPT.Sources;
public class GodpiaBible : BibleSource
{
private const string BASE_URL = "http://bible.godpia.com";
private static readonly HttpClient client = n... |
580565e5d5e5ad7b18b149948ed1d76915557101 | C# | acarn/alfredcarnpublic | /dotnet/blot/blot/RPC/MQ/ServerStub.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Blot.DataStructures;
namespace Blot.RPC.MQ
{
public class ServerStub
{
private static CacheByID stubs = new CacheByID();
public readonly int StubID;
public ServerS... |
afb44b63f11600fd8744bc46efa179bb156a812d | C# | NicolasIstea/ParcialDosProgramacionWeb | /PagoServiceWebApi/Services/GenericService.cs | 2.90625 | 3 | using DataAccess.Repositories;
using Models;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Services
{
public abstract class GenericService<T> : IGenericService<T> where T : BaseEntity
{
private readonly IGenericRepository<T> _genericRepository;
public GenericServic... |
e00888eeffed3d0bbfb9c862cab1903f7f02b674 | C# | Nch88/.NET-practice | /HelloCalculator/HelloCalculator/Program.cs | 3.359375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloCalculator
{
class Program
{
static void Main(string[] args)
{
int result = AddNumbers(3, 7);
Console.WriteLine(result);
result... |
418b68434b81c1da4501e90f6bc79694e257deb1 | C# | HeroSmurf/AudioKNIGHT | /AudioRecorder/WpfExtensions/ObservableCollectionExtensions.cs | 3.125 | 3 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AudioKnight.WpfExtensions
{
public static class ObservableCollectionExtensions
{
public static void RemoveAll<T>(this ObservableCollection<T> collecti... |
723a513dbb36f9f77f86222ba03fcd500863f5f8 | C# | Lu000000/Bsvdairy | /dairy/login1.cs | 2.671875 | 3 | using BitcoinSVCryptor;
using System;
using System.IO;
using System.Windows.Forms;
using NBitcoin.DataEncoders;
namespace dairy
{
public partial class login1 : Form
{
public login1()
{
InitializeComponent();
}
//登录
private void button1_Click(object sender, E... |
830cfe283db6b9fc170644f2286229f0b52d12ca | C# | TheOnlySaleel/A.I-s-Labyrinth-v2.0 | /Scripts/PlayerController.cs | 2.6875 | 3 | using UnityEngine;
using System.Collections;
public class PlayerController : MonoBehaviour {
public int speed; //Change speed in Inspector
// Using FixedUpdate over Update for Physics calculations
void FixedUpdate () {
float moveHorizontal = Input.GetAxis ("Horizontal");
float moveVertical = Input.GetAx... |
92061c1a4467cc72a678cf20d6249d347cdff75c | C# | VoBilyk/BookStore | /BookStore.BLL/Serializers/JsonFileSerializer.cs | 3.046875 | 3 | namespace BookStore.BLL.Serializers
{
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Newtonsoft.Json;
using BookStore.BLL.Interfaces;
/// <inheritdoc/>
public class JsonFileSerializer : IFileSerializer
{
/// <inheritdoc/>
public string Name... |
5b24cacce713a3e0e88766294e4e230b7eada820 | C# | Kbolan/MortgageCalculatorWebService | /MortgageCalculator/App_Code/Service.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
[WebService(Namespace = "http://tempuri.org/",
Description="A Simple Web Monthly Mortgage Calculator Service",
Name ="MortgageCalculatorWebService")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfil... |
b3230d76b6e9691b6af09c3555d9007b5f9aaf11 | C# | Sandrem/FlyCasual | /Assets/ImportedAssets/Mirror/Runtime/Transport/Telepathy/ThreadExtensions.cs | 3.15625 | 3 | using System.Threading;
namespace Telepathy
{
public static class ThreadExtensions
{
// helper function to abort a thread and not return until it's fully done
public static void AbortAndJoin(this Thread thread)
{
// kill thread at all costs
// -> calling .Join wo... |
506b0ddd921648b6f9bc8e6325aace3421242123 | C# | madiyar99/PP2_labs | /лаб 2/работа с файлами/2/ConsoleApp1/ConsoleApp1/Program.cs | 3.5 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
FileStream file1 = new FileStream(@"C:\Users\Asus\Desktop\PP2_labs_local\ла... |
0e1a98ebbd5b299bb5d68549eb208e23c0ba6117 | C# | Tilto82/space-run-2d-1 | /Library/PackageCache/com.unity.mobile.notifications@1.3.2/Runtime/Android/AndroidNotificationIntentData.cs | 2.59375 | 3 | using UnityEngine;
namespace Unity.Notifications.Android
{
/// <summary>
/// Wrapper for the AndroidNotification. Contains the notification's id and channel.
/// </summary>
public class AndroidNotificationIntentData
{
/// <summary>
/// The id of the notification.
/// </summa... |
cc38e11f508141506cd98d17589e090754fac2c1 | C# | euvolen/Practice | /TestPractice/Anagrams.cs | 3.828125 | 4 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace PlayWithAnagrams
{
public class ExamleAnagrams
{
class Anagram
{
public List<Anagram> Anagrams { get; set; }
public char Ch { get; set; }
public Anagram()... |
788a7ad154036b67053e557779ff284e4be06c9d | C# | liulei-cherry/SITC | /LsShipmis/CommonOperation/Functions/SqlServerAccess.cs | 2.578125 | 3 | using System;
using System.Data;
using System.IO;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Text;
using CommonOperation.Interfaces;
using CommonOperation.BaseClass;
using System.Drawing;
namespace CommonOperation.Functions
{
public class SqlServerAccess : IDBAccess
{
... |
672ec3c6212073f71c8a0f2e93d5e4a1ac6a4ab3 | C# | Vanish66/LibrarySearch | /LibrarySearchService.Core/Cqs/CommandHandler.cs | 2.71875 | 3 | using System;
using System.Diagnostics;
using System.Threading.Tasks;
using LibrarySearchService.Core.Cqs.Data;
using LibrarySearchService.Core.Services.Contracts;
namespace LibrarySearchService.Core.Cqs
{
public abstract class CommandHandler : ICommandHandler
{
protected readonly ILogService logServi... |
bec0268f7e729ceb2ee156c26b4356adb91380a0 | C# | kishoref22/SoftUni-Homework-Projects | /Algorithms/DynamicProgramming/05_SumWithLimitedCoinsSubsetSum/Program.cs | 3.65625 | 4 | namespace _05_SumWithLimitedCoinsSubsetSum
{
using System;
using System.Linq;
class Program
{
static void Main()
{
int targetSum = int.Parse(Console.ReadLine());
int[] coins = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[,] possibleSum... |
3e669a65441b1557ba49116bd4c69d6677e43755 | C# | jspinella/DapperTest | /DapperTest/Program.cs | 2.859375 | 3 | using Dapper;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Threading.Tasks;
namespace DapperTest
{
class Program
{
public static readonly string CONNSTRING = "Server=localhost; Database=Test; Trusted_Connection=True;";
static void Main(string[] arg... |
a0af7ef6beafbc9afc0129f05b0640c96ae34100 | C# | TenYearsADream/S7ConnectionTester | /S7ConnectionTester/DataViewViewModel.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
namespace S7ConnectionTester
{
public class DataViewViewModel : INotifyPropertyChanged
{
#region fields
StorageLocation location;
string fileLocation;
DateTime? ... |
67af87053160e066afabdc3e3a838e3853fe36d9 | C# | user-xat/ca-aatree | /AATree/AANode.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AATree
{
class AANode<T> where T : IComparable<T>
{
public T value { get; set; }
public int level { get; set; }
public AANode<T> left { get; set; }
publ... |
9d8bf6a1ec4d61bfd9d64d8b5ee76962b5fcf881 | C# | MinkovskyMichael/CIS3309 | /Hospital_System/Hospital demo/frmAddDoctor.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;
namespace Hospital_demo
{
public partial class frmAddDoctor : Form
{
Engine eng = new En... |
9a0fa7658bf744a4a60d12e85d19695004a7b74c | C# | kiketo/Ware-house-MS | /WHMS/Commands/Deleting/DeletePartnerCommand.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using WHMS.Commands.Contracts;
using WHMS.Core.Contracts;
using WHMS.Services.Contracts;
using WHMSData.Models;
namespace WHMS.Commands.Deleting
{
public class DeletePartnerCommand : ICommand
{
IOrderService orderService;
IPart... |
6b14f59ca6df217bfbdb631f419fb3cd80b38c65 | C# | LesPolys/Break | /Zenny/Assets/Scripts/MouseFollow.cs | 2.6875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MouseFollow : MonoBehaviour {
LineRenderer lr;
public RectTransform stage1;
public RectTransform stage2;
public float speed;
void Awake()
{
lr = GetComponent<LineRenderer>();
}
void Start()
{
lr.SetVertexCou... |
98378c3553b9e7d0e5786517e5b4feceefbd44d8 | C# | tngraf/Tethys.Logging | /Tethys.Logging/LogViewFactoryAdapter.cs | 2.5625 | 3 | // -------------------------------------------------------------------------------
// <copyright file="LogViewFactoryAdapter.cs" company="Tethys">
// Copyright (C) 2009-2023 Thomas Graf
// All Rights Reserved.
// </copyright>
//
// Licensed under the Apache License, Version 2.0.
// Unless required by applicable la... |
84189d0f403a43f02645a0d83f8e27d0de6ee8b2 | C# | tomekplewniak/hackerrank-csharp-solutions-22 | /ProblemSolving/Implementation/GradingStudents/Program.cs | 3.890625 | 4 | using System.Collections.Generic;
using System;
class Result
{
public static List<int> GradingStudents(List<int> grades)
{
var result = new List<int>();
for (int i = 0; i < grades.Count; i++)
{
if (grades[i] >= 38)
{
if ((grades[i] % 5) > 2)
... |
dc817a2a0a74833f632815bfae18452abbbc1b1c | C# | morkeleb/onchange | /onchange/Settings.cs | 3.125 | 3 | using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace onchange
{
public class Settings
{
public static Settings ParseArguments(string[] args)
{
string filter=null;
var reactions = new List<Reaction>();
for (int i = 0; i < args.Length; i++)
{
switch (args... |
9df814776ed528fcc177411e3740bc20fb3e98ea | C# | besumi/FolderReplicator | /FolderReplicator/Folder.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using DTOs = kCura.Relativity.Client.DTOs;
using kCura.Relativity.Client;
using Relativity.API;
namespace FolderReplicator
{
class Folder
{
public static int? _templateRootFolder = 0;
public static int? _targetRootFolder = 0;
... |
d9cdcfda6e346947259a90a8fb4b9f9b22171e9c | C# | JazPin/Exercise-2018 | /Work Schedule Excercises/WorkSchedule/Entities/Employee.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WorkSchedule.Entities
{
public class Employee
{
public Employee()
{
Active = true;
}
[Key]
... |
442dfbf6e3e567f8350492343ccc00f7f15980ea | C# | VBaricHB/AggregatedNanoparticleFilmFormation | /ANPaX.Core/PrimaryParticleExtensionMethods.cs | 3.171875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace ANPaX.Core
{
public static class PrimaryParticleExtensionMethods
{
public static double GetMaxRadius(this IEnumerable<PrimaryParticle> primaryParticles)
{
return primaryParticles.Max(p => p.Rad... |
7e8c99fdc97db8a4751afc974be5147fb91aab5d | C# | alxeli/ACExpertAdvisor | /ACExpertServer/ACExpertServer.cs | 2.53125 | 3 | using System;
using System.IO;
using System.IO.Pipes;
using System.Threading;
using Color = System.Drawing.Color;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NQuotes;
using NamedPipeWrapper;
namespace ACExpertServer
{
/// <summary>
/// Core log... |
3c76041d78d3dbe0fbe9e1975ce34af9ce622d66 | C# | zhanlianglucky/csharp | /ClassTest.cs | 3.484375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
//单继承
class Second : Time
{
public void printTime()
{
Console.WriteLine("Second time = {0}", currentTime);
}
}
class Time
{
public Time()
{
Console.WriteLine("Time() 无参构造执行!");
}
public Time(string time)
... |
14bec5536e0c06ae275043ce66fe475e59df486a | C# | pranavjdev/Windows-Phone-8-In-Action | /Chapter10/MotionSensor/Bar.xaml.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using System.Windows.Media;
namespace MotionSensor
{
public partial class Bar : Us... |
f27484579b748be2179963c8016198ab1b253258 | C# | exKAZUu/ProgrammingContests | /Codeforces/CSharp/Codeforces113/ProblemD.cs | 3.109375 | 3 | #region License
// Copyright (C) 2011-2012 Kazunori Sakamoto
//
// 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
//
// Unle... |
ab85e49b98a3de089c9ab277aa089a05d88c507f | C# | web-design4every/SomeProjectCSharp | /SE1421_Book/DAL/DAO.cs | 2.90625 | 3 | using Entity;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
namespace DAL
{
public class DAO : BaseDAO<Book, Book_Author, Author>
{
public override void insertBook(Book entity)
{
string sql = "I... |
87bdffd76a1ae117346fd363d940ff11ff70f4de | C# | Handy94/asteroid | /Assets/Frameworks/EventSignal/!Core/!Scripts/!Extensions/EventSignalUnityEventExtension.cs | 2.515625 | 3 | namespace HandyPackage
{
using System;
using UnityEngine.Events;
public static class EventSignalUnityEventExtension
{
public static IDisposable SetupListener(this UnityEvent evt, UnityAction call)
{
evt.AddListener(call);
return new EventSignalDisposable(
... |
bd65ea3969424ad07dba9e866a7ec8780a42bfa6 | C# | macressler/sharp-context | /OCR/MidValueFilterDenoise.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Jim.OCR {
/// <summary>
/// 中值滤波
/// </summary>
public class MidValueFilterDenoise : IDenoise {
/// <summary>
/// 滑动窗口的大小,这个大小是正负两向的,即WindowSize为1时窗口大小为3x3,为2时窗口大小为5*5。
/... |
742c7f4eec1e5de0937633103b14af707a913538 | C# | datskovskiy/FamilyBudget | /FamilyBudget.DAL/Models/IdentityModels.cs | 2.546875 | 3 | using System.Collections.Generic;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
namespace FamilyBudget.DAL.Models
{
// You can add profile data for the user by adding more properties to your ApplicationUser class, p... |
4ad8711205bf71b89663c0b4c23cdba3298d7538 | C# | shendongnian/download4 | /code7/1163096-30747570-92470115-2.cs | 2.84375 | 3 | float someSmallValue = 0.5f; // Adjust this as per your needs
if (Vector3.Distance(transform.position, patrolPoints[currentPoint].position) < someSmallValue)
{
switch (moveType)
{
case MoveType.Forward:
currentPoint++;
if (currentPoint > patrolPoints.Length - 1)
{
currentPoint -= 1;... |
3844943456c55e5b3c3d36a963c2d627d0f3f28b | C# | thunderstormwang/LeetCode | /LeetCode/Solution0301_0500/Solution0343.cs | 3.046875 | 3 | namespace LeetCode.Solution0301_0500;
public class Solution0343
{
public int IntegerBreak(int n)
{
var dp = new int[n + 1];
dp[1] = 1;
dp[2] = 1;
for (var i = 3; i <= n; i++)
{
for (var j = 1; j < i; j++)
{
dp[i] = Math.Max(dp[i]... |
b154cfb9397c43c394e7c16a3ccbbbbface9ae47 | C# | NgKayChung/just-ripe-farm | /JustRipeFarm/classes/Fertiliser.cs | 2.96875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JustRipeFarm
{
class Fertiliser : Stock
{
private bool is_organic;
public Fertiliser() : base()
{
}
public Fertiliser(string id, string name,... |
6f0e18c6344789b441802a934af052a4039306f5 | C# | vladimirpetukhov/Soft_Uni_Studies | /Programing_Fundamentals_C#/3.C#Conditional Statemants and Loops Lab/12. Number Checker/Number Checker.cs | 3.25 | 3 |
namespace NumberChecker
{
using System;
public class Program
{
public static void Main()
{
string input = Console.ReadLine();
int number;
bool isNumeric = int.TryParse(input, out number);
if (isNumeric)
{
Conso... |
0e74ce69e0f75b7e850949e29c27db640a55b8f0 | C# | moamlrh/AspNetMicroservices | /src/Services/Basket/Basket.API/Controllers/BasketController.cs | 2.71875 | 3 | using Basket.API.Entities;
using Basket.API.Repositories;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Basket.API.Controllers
{
[Route("api/[controller]")]
[ApiController]
public ... |
2651db8f02f9da5d50e1e00ebe28b8682693394d | C# | medaliMs/Backend | /Backend/Controllers/CategoriesController.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Backend.Models;
using Backend.Models.Interfaces;
namespace Backend.Controllers
{
[Route("api/[controller]")]
... |
c83bc2a9e4640a47dbd90bb1f4830828ea5e3ee2 | C# | praschl/Ruler | /Ruler/Converters/OrientationToMarginConverter.cs | 2.75 | 3 | using System;
using System.Globalization;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
namespace MiP.Ruler.Converters
{
public class OrientationToMarginConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo cu... |
0532eed88d66ec304ca6d7fb394375364e9ee29e | C# | sidsoft2014/HostFileManager | /HostFileManager/MainWindowViewModel.cs | 2.75 | 3 | using hfm.core;
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Input;
namespace HostFileManager
{
public class MainWindowViewModel : INotifyPropertyChanged
{
private IHostFil... |
e644cb0623694eb4c240b4800bda7c0caa3d8349 | C# | DinoChan/UWP-Samples | /PathDemo/Microsoft.Expression.Drawing/Drawing/Core/PolylineHelper.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Microsoft.Expression.Drawing.Core
{
internal static class PolylineHelper
{
public static IEnumerable<PolylineData> GetWrappedPolylines(IList<PolylineData> lines, ref double startArcLength)
{
int num = 0;
for (int i = 0; i < lines.... |
f56dff795f9948f93012672aebbdf4eca0f3eaf5 | C# | 953506/css-953506 | /IliaLuksha/5/Student.cs | 3.5625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Student:Human
{
//поле
protected string _faculty, _specialty, _number;
protected int _group, _course;
//конструктор
... |
8bdb15a6368e9b0be6dcf308b41e7c9cf1fac678 | C# | 1wz/snake | /point.cs | 3.578125 | 4 | using System;
using System.Collections.Generic;
using System.Text;
namespace змея
{
class point
{
public int x;
public int y;
public char sym;
public point()
{
Console.WriteLine("создал точку??????????");
}
public point(int _x,int _y,cha... |
4ba01a592d255efcec95d90b9a2248279817c6fd | C# | CSharpFundamentals/CSharp-OOP-Advanced_July2017 | /07.Iterators, Comparators, Enums, Attributes - Exercise/Pet Clinic/Entities/Clinic.cs | 3.578125 | 4 | namespace Pet_Clinic.Entities
{
using System;
using System.Text;
public class Clinic
{
private int roomsNumber;
private RoomsRegister roomsRegister;
private int occupiedRooms;
public Clinic(string name, int roomsNumber)
{
this.Name = na... |