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 |
|---|---|---|---|---|---|---|
508dd4e2d457db842c5bba3c683fc7d2e588b521 | C# | HanseSecure/Projects-MS-SQL-Server-DBA | /MailOutExcel/ExcelBiblio/CWorkbook.cs | 3.0625 | 3 | using System;
namespace ExcelBiblio
{
public class CWorkbook : IDisposable
{
protected dynamic __workbook;
protected CWorkbook() { }
public CWorkbook(dynamic workbook)
{
this.__workbook = workbook;
}
~CWorkbook()
{
Dispose();
... |
78a3941829780486ddfd1bfd3ba321ede9fc903a | C# | PJATK-EPG-SNM/S18620_Prace_Domowe | /Praca_Domowa_01/Assets/Scripts/Rotation.cs | 2.625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Rotation : MonoBehaviour
{
bool started;
// Start is called before the first frame update
void Start()
{
StartCoroutine(Move());
}
// Update is called once per frame
public float speed;
... |
b76372c9e6a04027374fcfbf6d9b13205c56b9df | C# | dogasp/Projets | /FinCoursApp code source/FinCoursAppV2/FinCoursAppV2/Graphe.xaml.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microcharts;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using SkiaSharp;
namespace FinCoursAppV2
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class Graphe : ContentPage... |
3b68a6557a60a85408a7be55861e8b94d933179c | C# | rev3r/ProperHelloWorld | /tests/FunctionalTests/DisplayHelloWorld.cs | 2.78125 | 3 | using System;
using System.IO;
using ConsoleApp;
using Xunit;
namespace FunctionalTests
{
public class DisplayHelloWorld
{
[Fact]
public void Invokation_DisplaysHelloWorld()
{
using (var sw = new StringWriter())
{
Console.SetOut(sw);
Program.Main();
var expected = string.Format("Hello Worl... |
72ada04afef3a6590e4f0f9aaa1447369fd55328 | C# | TobiasSjoholm1995/Csharp_Practice | /FacadePattern/CarFacade.cs | 3.21875 | 3 | using System;
namespace FacadePattern {
public class CarFacade {
private Engine engine;
private SubEngine subEngine;
private Body body;
private Tires tires;
public CarFacade() {
tires = new Tires();
subEngine = new SubEngine();
body = ne... |
bfd5e15537584a0e5325a2de427ee912616d8db6 | C# | IchanskijOleg/FirstStepGit | /ConAppIteaLes6/ConAppIteaLes6/Adress.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConAppIteaLes6
{
class Adress
{
/*private string index;
private string country;
private string street;
private string house;
private string apar... |
4544d87225d6f2248974ecbd9ef1af78a4c0d953 | C# | BryanTai/ggj2021 | /Assets/Scripts/Interactable.cs | 2.765625 | 3 | using UnityEngine;
using UnityEngine.AI;
/*
This component is for all objects that the player can
interact with such as enemies, items etc. It is meant
to be used as a base class.
*/
//[RequireComponent(typeof(ColorOnHover))]
public class Interactable : MonoBehaviour {
public float radius = 1f;
public Transfo... |
d8475c2f6b9415b873949d2255a3038fe964b1df | C# | particleinabox/dscs | /ParticleInaBox/DataStructures/LinkedList.cs | 3.4375 | 3 | using System;
using System.Text;
namespace ParticleInaBox
{
namespace DataStructures
{
public class LinkedList<T> where T : IComparable
{
private LinkedListNode<T> _head = null;
public LinkedListNode<T> Head
{
get
{
... |
a2438f0f799cfcea8756beed51f0192b2244253f | C# | pecolynx/Ginger | /Ginger/main/Models/FileCreationEventArgs.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ginger.Models.Io
{
/// <summary>
/// ファイル生成
/// </summary>
public class FileCreationEventArgs : EventArgs
{
/// <summary>
/// Initializes a ne... |
d78a59b2e586e307d07687d44c743e045ba3b977 | C# | qkmaxware/Geometry | /Geometry/src/Geometry/Primitives/Cube.cs | 2.859375 | 3 | using System.Collections.Generic;
namespace Qkmaxware.Geometry.Primitives {
/// <summary>
/// Cubic mesh
/// </summary>
public class Cube : ParameterizedMesh {
private static Vec3[] cubeCoordinates = new Vec3[]{
new Vec3(-0.5,-0.5,0.5),
new Vec3(-0.5,0.5,0.5),
new Vec3(-0.5,-0.5,-0.5),
... |
f23b7b64365385ca6edf9fb628f6ddf2e00a0e23 | C# | janwiesemann/WPF-Translate | /src/WPF-Translate/IO/ResourceDictionaryFile.cs | 2.71875 | 3 | using System.Collections.Generic;
using System.Diagnostics;
namespace de.LandauSoftware.WPFTranslate.IO
{
/// <summary>
/// Stellt ein WPF-Ressource-File dar.
/// </summary>
[DebuggerDisplay("{FileName} {Entrys.Count}")]
public class ResourceDictionaryFile
{
/// <summary>
/// E... |
4d577dec1ffc06424bff400de214e9cfea56c1fd | C# | IvanBitunjac/OOM-Seminar-app | /OOM Seminar/ConcreteMediator.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OOM_Seminar
{
public class ConcreteMediator : IMediator
{
List<User> users = new List<User>();
User sender;
public List<User> Users
{
... |
e3d02e91fe16097dfc490f98dd2cfec0ffd0dc7d | C# | vacatrin/simple-shopping-cart | /simple-shopping-cart-source/Controllers/ShoppingListController.cs | 2.71875 | 3 | using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
using Newtonsoft.Json;
using simple_shopping_cart_source.Models;
namespace simple_shopping_cart_source.Controllers
{
public class ShoppingListController : ApiController
{
#region Region creating a mo... |
44805e7c4103f1551a81bfa648149b8eeb16cd87 | C# | ekutsenko-softheme/clouduri | /CloudUri.DAL.Tests/Database/DbExceptionTests.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Data;
using CloudUri.DAL.Database;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace CloudUri.DAL.Tests.Database
{
/// <summary>
/// Tests the <see cref="DbException"/> class
/// </sum... |
456da24fc2da3a00226e797a84b2a2b9b970ee5a | C# | cang2016/RMS | /Logging/Appender/IAppenderAttacher.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RMS.Logging
{
/// <summary>
/// 要添加的附加器接口.
/// </summary>
public interface IAppenderAttachable
{
/// <summary>
/// 添加一个附加器.
/// </summary>
/// <param name="appender">要添加的... |
f3ad5d7ed9ffee26dc6696de6029ea0ff726dee9 | C# | Educational-Repos/Lemma | /Lemma/GeeUI/Views/ImageView.cs | 2.578125 | 3 | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace GeeUI.Views
{
public class ImageView : View
{
public Texture2D Texture;
public override Rectangle BoundBox
{
get
{
return new Rectangle(RealX, RealY, (int)ScaledIma... |
e1f4fc8d8820c306681aaeda3983d11bab080702 | C# | jboullion/BetaBrew | /BetaBrew.Web/Serialization/CustomerMapper.cs | 2.71875 | 3 | using BetaBrew.Data.Models;
using BetaBrew.Web.ViewModels;
namespace BetaBrew.Web.Serialization
{
public static class CustomerMapper
{
/// <summary>
/// Serialize Customer Data Model to a Customer View Model
/// </summary>
/// <param name="customer"></param>
/// <return... |
289cf24e71e2fb4e2e853cd8913b4a277b396217 | C# | shendongnian/download4 | /code11/1959017-59551102-212251326-2.cs | 2.875 | 3 | public virtual void SetCredentials(
string email, string plainTextPassword)
{
EMail = email;
SetPassword(plainTextPassword);
}
public virtual void SetPassword(string plainTextPassword)
{
HashedPassword = _passwordHasher.HashPassword(
EMail, plainTextPassword);... |
41b073783727dbd7fd4df7733e8cb9c0322cba6c | C# | shendongnian/download4 | /first_version_download2/216158-16814361-41355537-2.cs | 3.453125 | 3 | Console.WriteLine("Enter your Name");
Console.WriteLine("Enter your Pswrd");
string name = Console.ReadLine();
string pswrd = Console.ReadLine();
string[] names = "James,John,Jude".Split(Convert.ToChar(","));
string[] passes = "Pass1, Word2, Password3".Split(Convert.ToChar(","));
for (int i ... |
20cad2e8ab9be4518d0b65bdaa6a9d04b8542fe2 | C# | art-Tests/Cli-pipeline-sample | /Cli.Model/DataModelHelper.cs | 2.578125 | 3 | using System;
using System.Threading;
namespace Cli.Model
{
public static class DataModelHelper
{
public static bool ProcessPhase1(DataModel data)
{
if (data == null || data.Stage != DataModelStageEnum.INIT) return false;
Console.Error.WriteLine($"[P1][{DateTime.Now}] ... |
5ae1ee32d4c2e9d0292450088cf3d1df92aa760b | C# | redd20/Click-world | /Idle click world/Assets/LevelGen.cs | 2.59375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LevelGen : MonoBehaviour
{
#region Variables
[SerializeField] public GameObject[] Land; // [SerializedField] is an UnityEditor Wi... |
6d9fb62a22bad847636f411f2e37cb0d95eea0a0 | C# | ptychan/MOBA | /Assets/Scripts/TargetingSystem.cs | 2.5625 | 3 | using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class TargetingSystem : MonoBehaviour
{
List<Health> targetInRange = new List<Health>();
Health targetHealth;
Team team;
private void Start()
{
team = GetComponent<Team>();
}
public void UpdateTarget()... |
02e39a5b6b99ef2c13dafb1c5a392749a52ea522 | C# | ewertonews/EwsChat | /EwsChat.Data/ChatUserRespository.cs | 2.8125 | 3 | using EwsChat.Data.Exceptions;
using EwsChat.Data.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace EwsChat.Data
{
public class ChatUserRespository : IChatUserRespository
{
private readonly HashSet<ChatUser> chatUsers;
... |
5e985ac4b123c80523ec6191938c538b5ff91655 | C# | shendongnian/download4 | /first_version_download2/192936-14734778-35584438-2.cs | 2.796875 | 3 | Array.Sort(properties, (pi1, pi2) =>
{
if (pi1.DeclaringType.IsSubclassOf(pi2.DeclaringType))
return 1;
else if (pi2.DeclaringType.IsSubclassOf(pi1.DeclaringType))
return -1;
else
return 0;
});
|
437e81c3d465a5aed194b9c36aa079a6c25daf23 | C# | minhchan11/Coin_calculation | /Objects/Coin.cs | 3.203125 | 3 | using System;
using System.Collections.Generic;
namespace CoinApp.Objects
{
public class Coin
{
public string ConvertToCoins(int cents)
{
string coinResult = "";
//quarters
int quarters = cents/25;
if (quarters > 0)
{
coinResult += quarters.ToString() + " quarter(s) ";... |
45b6e8a0f9bc5950cd53241069a189c9404c8853 | C# | ninjapretzel/zsharp2 | /Behaviours/Animation/StretchNSquash.cs | 2.890625 | 3 | using UnityEngine;
using System.Collections;
///Uses two osciallators to animate the scaling of a transform.
///Basically automates the 'stretch n squash' animation.
public class StretchNSquash : MonoBehaviour {
public Oscillator horizontal = new Oscillator(0.3f, 1.5f, 1.0f);
public Oscillator vertical = new Oscilla... |
cabe93ab19bee8724fe69c1c5a1b018e51f93b6d | C# | chris01k/RecipeHandling | /RecipeHandling/View/FoodPlanView.cs | 2.828125 | 3 | using Jamie.Model;
using System;
namespace Jamie.View
{
public class FoodPlanView
{
//Variables
private FoodPlanItemSet _FoodPlanItems;
private RecipeSet _Recipes;
//Constructors
public FoodPlanView(FoodPlanItemSet FoodPlanItems, RecipeSet Recipes)
{
... |
9340271a5d5e9646d4896b091ed4dfba7b3b13be | C# | MariiaRev/PM_HomeWorks | /HomeWork3/Library/ERPReports/Product.cs | 2.875 | 3 |
namespace Library.ERPReports
{
public class Product
{
public string Id { get; }
public string Brand { get; }
public string Model { get; }
public decimal Price { get; }
public Product(string id, string brand, string model, decimal price)
{
Id = id;
... |
ddaaea91af6337385117ded902aeb86b1df98e4b | C# | awilliams2112/social-loans | /SocialLoans/SocialLoans/DAL/Repositories/DisclosureRepository.cs | 2.546875 | 3 | using DAL.Models;
using DAL.Repositories.Interfaces;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq.Expressions;
using System.Linq;
namespace DAL.Repositories
{
public interface IDisclosureRepository : IRepository<Disclosure>
{
DisclosureTemplate GetTemplateByType... |
67e6746ef4f23c297294bf2e0f03c298762dac72 | C# | mk-prg-net/mk-prg-net.lib | /mko.Newton/LispVelocitiesArray.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using E = mko.Euklid;
namespace mko.Newton.Vector
{
public class Velocities : MeasuredValuesVector<MeasuredValueV, MeasuredValueV.UnitV>
{
public Velocities(Velocities v) : base(v) { }
public Velocities(int ... |
fae748c10ab0afdf638e2c58142c07b6ec361ca9 | C# | SynI20N/BridgeRace | /Assets/Code/Extensions.cs | 2.515625 | 3 | using UnityEngine;
public static class Extensions
{
public static Vector3 RandomPointInCollider(Collider collider)
{
Bounds bounds = collider.bounds;
Vector3 result = new Vector3(
Random.Range(bounds.min.x, bounds.max.x),
Random.Range(bounds.min.y, bounds.max.y),
... |
7ba7ceca2530e6d76df34f3aff4ecf9208948967 | C# | GitBulk/Tam.Framework | /Core/Tam.Util/ObjectDumper.cs | 3.03125 | 3 | using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace Tam.Util
{
public class ObjectDumper
{
const string OBJECT_DUMPER_FILE_NAME = "ObjectDumper_{0}.txt";
... |
d9dd7dde46337e57b552441bdaa1e6595b651cba | C# | johndward01/10_CSharp_Loops | /Iteration_Statements_Exercise_2/Iteration_Statements_Exercise__2/Program.cs | 4.03125 | 4 | using System;
using System.Collections.Generic;
namespace Iteration_Statements_Exercise__2
{
class Program
{
static void Main(string[] args)
{
//var list = new List<int>() { 1, 2, 3 }; //An example collection to play around with using Loops
////for loop example ---> ty... |
19fa6a67d6cb5ef845c843732d1b36e327c20f7f | C# | axelnyberg/OnlineLibraryWebServer | /Library_BL/Author.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Data;
namespace Library_BL
{
public class Author
{
private int _Aid, _BirthYear;
private string _FirstName, _LastName;
public Au... |
156ca597536439a82ac480a72119ba84a3e62d8e | C# | cristianagrigoriu/OOP | /UsersExam/ExamTakingStudentUser.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UsersExam
{
internal class ExamTakingStudentUser : User, IExamDelegate
{
private IDisplayInfo df;
public void TakeExam(int option, string name)
{
C... |
0986f05f56075fbf35fc1c1427e446e8beab0f9f | C# | xiongwjw/wjwlib | /wjw.helper/wjw.helper.core/Encrypts/Md5.cs | 3.015625 | 3 | using System;
using System.IO;
using System.Linq;
using System.Text;
namespace wjw.helper.Encrypts
{
public class MD5
{
public static string CaculateStringMd5(string str,bool removeSeperater=true)
{
try
{
var md5 = System.Security.Cryptography.MD5.Creat... |
f27eb3712b463a209e9c077af349cfa264225343 | C# | joe1545134/UnityLockStepDemo | /LockStepDemo/Server/LockStepDemo/ServiceFrameWork/Database/ICursor.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CDatabase
{
/// <summary>
/// 数据集读取游标接口类
/// </summary>
public interface ICursor
{
/// <summary>
/// 读取数据集中的下一条数据
/// </summary>
/// <return... |
744052c1dc92f1d2e31783d65b3faa9288016c69 | C# | quickCloverCrew/basketstats | /NBASpider/Out/CSVFileWriter.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace NBASpider.Out
{
class CSVFileWriter
{
string fileName;
public CSVFileWriter(string fileName)
{
this.fileName = fileName;
}
// TODO: пока тупо т... |
3a89420c5511831779348cb12675e3cc0a1c258b | C# | borislavvp/RMS-Users-Microservice | /Users.Service/Common/Interfaces/IRequestResult.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Users.Service.Common.Interfaces
{
/// <summary>
/// Represents the object responsible for keeping the result of an authentication request
/// </summary>
public interface IReque... |
10f53c25dd90f7402750db1a36c81ed8be7b1643 | C# | hofmannzhu/bwjs | /BWJS.Client.Monitor/ProcessMonitor.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BWJS.Client.Monitor
{
public class ProcessMonitor
{
static IntPtr intPtr0 = new IntPtr(0);
private static Process[] MyProcess... |
79e2ab2db7edcf2114718e96a503b51584177891 | C# | cjhnim/daily-kata | /WordWrap/day_6/WordWrap/WordWrap/WordWrapper.cs | 3.375 | 3 | using System;
namespace WordWrap
{
public class WordWrapper
{
public WordWrapper()
{
}
public string DoWrap(string input, int col)
{
if (string.IsNullOrEmpty(input) || col == 0)
return "";
if (input.Length > col)
... |
1acc7b0654fd5a49c1de87601422fb9f07c2bb96 | C# | azum23/ACM | /ACM.BLTest/CustomerRepositoryTest.cs | 2.734375 | 3 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ACM.BL;
namespace ACM.BLTest
{
[TestClass]
public class CustomerRepositoryTest
{
[TestMethod]
public void CustomerRepositoryRetrieveTest()
{
// Arrange
var customerRepository = new Cust... |
0a702d00b0fe9325d1e8e5301fe0849bac7b3577 | C# | bjornhandersson/HilbertIndex | /Bson.HilbertIndex/Envelope.cs | 2.875 | 3 | using System;
namespace Bson.HilbertIndex
{
public class Envelope
{
public Envelope(double minX, double maxX, double minY, double maxY)
{
MinX = minX;
MaxX = maxX;
MinY = minY;
MaxY = maxY;
}
public double MinX { get; }
p... |
8a491ad1c8961a0979609356873bb460b968f749 | C# | Piirtaa/Decoratid | /Storidioms/StoreOf/StoreOfExactlyDecoration.cs | 2.71875 | 3 | using Decoratid.Core.Decorating;
using Decoratid.Core.Identifying;
using Decoratid.Core.Storing;
using Decoratid.Storidioms.ItemValidating;
using System.Collections.Generic;
using Decoratid.Extensions;
using CuttingEdge.Conditions;
using Decoratid.Core.Logical;
namespace Decoratid.Storidioms.StoreOf
{
#region IS... |
13115d37023fc3953935666eae0f36d2ca066516 | C# | iNeverSleeeeep/NPOI-For-Unity | /NPOI.SS.Formula.Functions/Days360.cs | 2.609375 | 3 | using NPOI.SS.Formula.Eval;
using NPOI.SS.UserModel;
using System;
namespace NPOI.SS.Formula.Functions
{
public class Days360 : Var2or3ArgFunction
{
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1)
{
double value;
try
{
double d = NumericFunctio... |
b7f7fa73d02a41b95022c34a28f07870668d8335 | C# | Linathimqalo/SimpleCalculator | /SimpleCalculator/Subtract.cs | 3.21875 | 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 SimpleCalculator
{
public partial class Subtract : Form
{
public Subtract()
... |
5356eb5050d9f947b3b90f3cff8dd2f1fb71b4e9 | C# | propheel/Projects | /pkgik3dgame/.svn/pristine/4f/4f6c0be9320d1b2b8b8ab27c17d8b34d13bdb224.svn-base | 2.71875 | 3 | #region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
#endregion
namespace WarGame
{
/// <summary>
/// This is a class representing a game object bounding box
/// </summary>
public class Bbox : ... |
05c210ab9ae9f8bf442eb0b47e26050413a049c6 | C# | MaSander/C-_Exercicios | /bases/Orientaçao Objeto/metodos/Senai.Metodos.Exc5/classe/Triangulo.cs | 3.078125 | 3 | namespace Senai.Metodos.Exc5.classe
{
public class Triangulo
{
// atributo
public float ladoA, ladoB, ladoC;
public bool Valido() {
if (ladoA < (ladoB + ladoC) && ladoB < (ladoA + ladoC) && ladoC < (ladoA + ladoB))
{
return true;
}
... |
faf6971fcf5c737b2bc8461034790134ef76e298 | C# | ethanCun/.Net- | /Image-Upload/Image-Upload/Tool/WebBase.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Image_Upload.Tool
{
public class WebBase
{
/// <summary>
/// 得到当前网站的根地址
/// </summary>
/// <returns></returns>
public static string GetRootPath()
{
... |
b25d5e9b594717c01022a3f3d725dd397ed212af | C# | jenzy/Advent-of-Code | /src/advent-of-code-2018/Days/Day14.cs | 3.546875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace AdventOfCode.Y2018.Days
{
/*
--- Day 14: Chocolate Charts ---
You finally have a chance to look at all of the produce moving around.
Chocolate, cinnamon, mint, chili peppers, nutmeg, vanilla... the Elves must be
growing the... |
750d47d3302e42782afe3ad47816143c1c07daf7 | C# | lunarcloud/vr-game-GGJ-2019 | /VR Global Game Jam 2019/Assets/Scripts/Generation/Generators/AlienNameGenerator.cs | 2.625 | 3 | public static class AlienNameGenerator
{
private static readonly string[] Start =
{
"Aaa", "Aby", "Aca", "Alk", "Ara",
"Axo", "Bab", "Bar", "Bor", "Bru",
"Byn", "Cal", "Cel", "Cha", "Col",
"Cy", "Dae", "Dee", "Dra", "Dys",
"El-", "Exo", "Ew", "Fer", "For",
"Gal",... |
dbf6ec1b8f01ce2215621325607cbac5e91d8496 | C# | shendongnian/download4 | /code8/1430605-38955633-124945150-2.cs | 2.625 | 3 | public PartialViewResult Search(string query)
{
var result = db.Users.Where(u => u.UserName.ToLower().Contains(query.ToLower())).ToList();
return PartialView("_UsersResult", result);
}
|
c3367cea7f4b6775d63f1fba26e2134ed5852a75 | C# | Quixotic7/RCSGQuake1MapImporter | /Assets/Plugins/RealtimeCSG/Editor/Thirdparty/Q1MapImporter/MapImporter.cs | 2.640625 | 3 | #if UNITY_EDITOR || RUNTIME_CSG
using System;
using System.Globalization;
using System.IO;
using System.Linq;
namespace RealtimeCSG.Quake1Importer
{
/// <summary>
/// Importer for Quake 1 Map Format (*.map) format.
/// </summary>
/// <remarks>Originally created by Henry de Jongh for SabreCSG.</remark... |
248c4cf0af23383808a0e700cb58a1311e0bbfda | C# | PlumpMath/DesignPatternApp-1 | /DesignPatternApp/Observer.cs | 3.78125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DesignPatternApp
{
/// <summary>
/// This is an interface which attached and detached observers and
/// notify it's observers when state changes.
/// </summary>
public inte... |
ae2cf0d406876a932ab042d031458c1a9229dc6c | C# | wujiaze/Test | /CsharpTest/C#Test/委托测试/DelTest/DelTest/Program.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DelTest
{
class Program
{
static void Main(string[] args)
{
DelClass.MyMed(sdf,1);
Console.Read();
}
private static bool sdf(in... |
fcbaf652b3c875a72df2c4d54791bdb50d01f91a | C# | edwinreg011/Coding-Dojo | /c#/oop/human/Program.cs | 3.09375 | 3 | using System;
using human.Models;
namespace human
{
class Program
{
static void Main(string[] args)
{
Human you = new Human("Carl");
Console.WriteLine(you.Name);
Console.WriteLine($"Strength:{you.Strength}");
Console.WriteLine($"Intel... |
88a70e06cd98ca114cd93340bf0688a0d5f170ac | C# | aangairbender/2d_rpg_from_scratch | /RPG.Math/Shape.cs | 2.734375 | 3 | namespace RPG.Math
{
public abstract class Shape
{
private BoundingBox _boundingBox;
private bool _boundingBoxNeedRecalc = true;
public BoundingBox BoundingBox
{
get
{
if (_boundingBoxNeedRecalc)
{
_bou... |
591f82185581da44ccd8d87ee76f7af5eb0af064 | C# | carvinchen/OwnCloudClient | /OwnCloudClient/MyWebClient.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
namespace OwnCloudClient
{
public class MyWebClient : WebClient
{
/// <summary>
/// Time in milliseconds
/// </summary>
public int Timeout{ get; private set; }
public MyWebClient()
{
this.Timeout... |
bb90cd0ed41a0187907b524ba3c4dd999c9f468e | C# | dotnet/dotnet-api-docs | /snippets/csharp/System.Drawing/ColorConverter/Overview/form1.cs | 2.6875 | 3 | using System.Drawing;
using System;
using System.Windows.Forms;
public class Form1:
System.Windows.Forms.Form
{
#region " Windows Form Designer generated code "
public Form1() : base()
{
//This call is required by the Windows Form Designer.
InitializeComponent();
//... |
8dffe970cae1e8c3915333803e6c0786c728b190 | C# | DgoNeves/AdventOfCode | /2019/day3/day3.linq | 3.1875 | 3 | <Query Kind="Program" />
void Main()
{
var input = File.ReadAllText(@"/input.txt");
var firstWirePath = input.Split('\n')[0];
var secondWirePath = input.Split('\n')[1];
var firstWireName = "Wire_1";
var secondWireName = "Wire_2";
var dic = new Dictionary<Point, string>();
var pointsFirstWireTook = FollowSteps(... |
21757fef08bcfa7e8f6fdffeee8d90a8c55566ca | C# | phr00t/bepuphysics2 | /BepuPhysics/PositionLastTimestepper.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using BepuUtilities;
namespace BepuPhysics
{
/// <summary>
/// Updates the simulation in the order of: sleeper -> integrate velocities and update body bounding boxes -> collision detection -> solver -> integrate body ... |
7a856e90861c56232196cae31b2f98c0904c9c61 | C# | tk-yoshimura/TensorShader | /TensorShader/Links/TrinaryArithmetric/Clamp.cs | 2.6875 | 3 | using static TensorShader.VariableNode;
namespace TensorShader {
public partial class Field {
/// <summary>Clamp</summary>
public static Field Clamp(Field x, Field xmin, Field xmax) {
Field y = new();
Link link = new Links.TrinaryArithmetric.Clamp(x, xmin, xmax, y);
... |
b7360386f1e8a41d27bbe3c4e807139fe786d37b | C# | MatthiasSchilder/DotSpatial | /Source/Core/DotSpatial.Controls/Docking/IDockManager.cs | 2.53125 | 3 | // Copyright (c) DotSpatial Team. All rights reserved.
// Licensed under the MIT license. See License.txt file in the project root for full license information.
using System;
using System.ComponentModel.Composition;
namespace DotSpatial.Controls.Docking
{
/// <summary>
/// An interface that allows plugins to... |
4808ce7ea89be73ce504bd9620030b8eebaab624 | C# | przemyslawzaworski/Unity3D-C-programming | /AssetBundle/AssetBundleManager.cs | 2.53125 | 3 | using UnityEngine;
public class AssetBundleManager : MonoBehaviour
{
// structure for storing prefab data
struct Data
{
public AssetBundle Bundle;
public GameObject Instance;
}
// container
Data _Container;
// load prefab to memory
Data LoadAssetInstance(string path, string address)
{
... |
217e1bfda28a6349f2f00ce2d7541577fadb857b | C# | mathusummut/Ablaze.Net | /Ablaze.UI/System/Windows.Forms/UserListBox.cs | 2.796875 | 3 | using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
namespace System.Windows.Forms {
/// <summary>
/// An interactive list box supporting 'Add New...', and move up and move down arrow buttons.
/// </summary>
[ToolboxItem(true)]
[ToolboxItemFilter("System.Windows.Forms")]
[Design... |
43afc4ee7d36682ff6c37ca279fa616021ccc6dc | C# | Clepcidre/TriEngine | /TriDevs.TriEngine/Rectangle.cs | 3.359375 | 3 | /* Rectangle.cs
*
* Copyright © 2013 by Adam Hellberg, Sijmen Schoon and Preston Shumway.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limit... |
7ef94747b4dd7505be033fb0bdd9ed8d5af5ee0a | C# | jackbrown109/procedural-generation | /Assets/Resources/Scripts/Pathfinding/Heap.cs | 3.421875 | 3 | using UnityEngine;
using System.Collections;
using System;
public class Heap<T> where T : IHeapItem<T>
{
T[] items;
int currentItemCount; // Amount of items currently in the heap
//=================================================================================
// Constructor for the Heap class
... |
fc7937d912c9388d3f12e77acb3c32f8f931f116 | C# | shendongnian/download4 | /code1/106235-3514865-7330556-2.cs | 3.078125 | 3 | public static object ConvertCustomDate(string input, string inputFormat)
{
Date dt= DateTime.ParseExact(input, inputFormat, CultureInfo.CurrentCulture);
return new { Month=dt.ToString("MMMM"), Year=dt.ToString("yyyy") };
}
|
1d258f369d83b6da9fc24afb0bac74b6d7639068 | C# | riesaexe/WikiPicDownload | /Win_Equip/Form1.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Win_Equip
{
using System.IO;
using System.Net;
public partial class Form1 : Form
{
public Form1()
... |
6bd708660c4323fba7772aa7346543f3326c018a | C# | sahil-tandon/IS7024-BandItFinal | /BandIt/WcfService1/WcfService1/JSONGenerator.cs | 2.921875 | 3 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
using System.Web;
using System.Xml.Serialization;
namespace WcfService1
{
public class JSONGenerator
{
/*
Method to Generate the BANDS JSON... |
889f44ce08bc5a1877261ca208e6b3bf3a23f73d | C# | genrys/Light-is-Rescue | /Project/Roll a Ball/Assets/Scripts/CollectableObjects/Rotator.cs | 2.6875 | 3 | using UnityEngine;
using System.Collections;
public class Rotator : MonoBehaviour {
private GameObject displayManager;
private int lastPointsByCollect;
private string nameOfGround;
public Transform pickParticle;
public Color objectColor;
public Vector3 rotationDirection;
public float sp... |
3a1de175e2f6fa36a9ed1de0fd89946fe3ed5090 | C# | TenchuHawke/TheWallC | /Models/User.cs | 2.796875 | 3 | using System.ComponentModel.DataAnnotations;
namespace TheWall.Models
{
public abstract class BaseEntity {}
public class User : BaseEntity
{
[Key]
public int UId { get; set; }
[Required]
[MinLength (2)]
public string FirstName { get; set; }
[Required]
... |
f2812bc2a6084dcecdf0d7b10060c0597e6907f9 | C# | iain-neirfeno/CSharpWebAppExample | /CalculatedTriangleRepo/TriangleRepo.cs | 2.96875 | 3 | using System.Linq;
using Triangles.Model;
using Triangles.TriangleByPosition;
using Triangles.TriangleByVertices;
namespace CalculatedTriangleRepo
{
public class TriangleRepo: ITriangleByPositionRepo, ITiangeByVerticesRepo
{
private readonly int _triangleSideLength;
private readonly int _number... |
d8b0cf546fb41561e55ab5c56e9a3f95e35ffa72 | C# | csuffyy/Z.ExtensionMethods | /System.Drawing.Color/System.Drawing.ColorTranslator/Color.ToHtml.cs | 2.921875 | 3 | // Copyright (c) 2014 Jonathan Magnan (http://zzzportal.com)
// All rights reserved.
// Licensed under MIT License (MIT)
// License can be found here: https://zextensionmethods.codeplex.com/license
using System;
using System.Drawing;
public static partial class ColorExtension
{
/// <summary>
/// Translate... |
cb2627428d84119d6ddaaede13755be6bde8d903 | C# | vdabar/Frutinet | /src/Frutinet.Common/Domain/AggregateRoot.cs | 2.5625 | 3 | using Frutinet.Common.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Frutinet.Common.Domain
{
public abstract class AggregateRoot : IAggregateRoot
{
public Guid Id { get; protected set; }
public ICollection... |
e8c9e2f4f5376d024308c9b5de16dc143d15e492 | C# | JamesTryand/OpenIDE | /Languages/CSharp/CSharp/Crawlers/Struct.cs | 2.671875 | 3 | using System;
namespace CSharp.Crawlers
{
public class Struct : ICodeReference
{
public string Type { get; private set; }
public string File { get; private set; }
public string Signature { get { return string.Format("{0}.{1}", Namespace, Name); } }
public string Namespace { get; private set; }
public string... |
3d1b2f449c197eea90ef12d2f81af55d85517be3 | C# | JohnSoares/nerd-store | /src/NerdStore.Catalog.Data/Repository/ProductRepository.cs | 2.6875 | 3 | using Microsoft.EntityFrameworkCore;
using NerdStore.Catalog.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NerdStore.Catalog.Data.Repository
{
public class ProductRepository : Repository<Product>, IProductRepository
{
... |
113c0cafd1714b3447a439e4e945465f7ef1e1c5 | C# | ercJuL/Wpf_github_hosts | /WPF_Best_Hosts/Behaviour/WebSpeedComparer.cs | 2.71875 | 3 | using System;
using System.Collections;
using WPF_Best_Hosts.Lib;
namespace WPF_Best_Hosts.Behaviour
{
public class WebSpeedComparer : IComparer
{
public int Compare(object x, object y)
{
var xNum = Utils.InverseHumanReadableByteCount((string) x);
var yNum = Utils.Inver... |
9e795b9f90cd71d46ab1b35c65b0de9404e9bbbf | C# | ByteDev/ByteDev.Nuget.Nuspec | /src/ByteDev.Nuget.Nuspec/NuspecMetaData.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
namespace ByteDev.Nuget.Nuspec
{
/// <summary>
/// Represents metadata within the nuspec manifest.
/// </summary>
public class NuspecMetaData
{
/// <summary>
/// Specifies the minimum version of the NuGet client that can install this ... |
62ae6984943aa196754e95e0e6158fe05a1be81d | C# | MattiaPezzanoAiv/CSharp_BehaviourTree | /BT/DecoratorNodes/Conditionals/IntCondition.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BT.Decorators
{
public class IntCondition : BaseConditionEvaluator<int>
{
protected override bool IsEqual(int obj1, int obj2)
{
return obj1 == obj2;
... |
eaf86d9272bb62c5df3d133bae824e923259d335 | C# | amittyyy/Coding_Questions_Answers | /SequentiallyBounded .cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Test
{
public partial class SequentiallyBounded : Form
{
public SequentiallyBounded()
{
... |
5dad7ee88aa0e3e1abccda6df905f40887774764 | C# | MaximZinevych/codewars | /codewars-project/codewars-project/Task_02.cs | 3.625 | 4 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace codewars_project
{
/*
Trolls are attacking your comment section!
A common way to deal with this situation is to remo... |
0162754808ae0dea68a04e9251b30523acc8d2e0 | C# | lucafilippodangelo/OOP-Patterns-Refresh | /FlyweightStructuralPattern/AlienFactory.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace FlyweightStructuralPattern
{
//LDFLY003
public class AlienFactory
{
private Dictionary<int, IAlien> list = new Dictionary<int, IAlien>();
public void SaveAlien(int index, IAlien alien)
{
list.... |
ecbe3ac1731cbf32d23b992af2330b853f64f0d1 | C# | suresh-kok/BTC | /Travel_Request_System/Travel_Request_System_EF/Mail/SendMail.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Linq.Expressions;
using System.Net;
using System.Net.Mail;
using System.Reflection;
using System.Text;
namespace Travel_Request_System_EF.Mail
{
public class SendMail
{
public List<str... |
59b60f0e0e7088bcc2a5e8d78b53599b4a0aa70b | C# | nikolagsiderov/APPartment | /APPartment.Infrastructure/Tools/CollectionExtensions.cs | 2.515625 | 3 | using APPartment.ORM.Framework.Declarations;
using Microsoft.AspNetCore.Mvc.Rendering;
using System;
using System.Collections.Generic;
using System.Linq;
namespace APPartment.Infrastructure.Tools
{
public static class CollectionExtensions
{
public static List<SelectListItem> ToSelectList<T>(this List<... |
a8c84dd3021a2452337f2a2099a54c423c6c07cd | C# | SalviMaruf/Movie_Rental_Store | /WebApplication1/WebApplication1/Models/MinNumberOfMovies.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace WebApplication1.Models
{
public class MinNumberOfMovies:ValidationAttribute
{
protected override ValidationResult IsValid(object value, ValidationContext validati... |
f8403631a6e81a7e64dee36745b5eb78ad089739 | C# | umbersar/ToyDB | /ToyDB/REPL.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ToyDB {
public static class REPL {
const string prompt = "ToyDB>";
const string ToyDB = @"
_____ ____ ____
|_ _|__ _ ... |
570b71ceef2d8a1af681fb1614505f83b1862a89 | C# | guillermaster/SocialRequirements | /SocialRequirements.Domain/BusinessLogic/Requirement/IRequirementBusiness.cs | 2.765625 | 3 | using System.Collections.Generic;
using SocialRequirements.Domain.DTO.General;
using SocialRequirements.Domain.DTO.Requirement;
namespace SocialRequirements.Domain.BusinessLogic.Requirement
{
public interface IRequirementBusiness
{
/// <summary>
/// Specified whether a company has requirements... |
0e3943e4d5ee947a626887cbac258224e6f52cb7 | C# | derekhubbard/StoreFront | /Inventory.Tests/WorthCalculatorRule/AlchemyWorthCalculatorRuleTests.cs | 2.734375 | 3 | using FluentAssertions;
using NUnit.Framework;
using StoreFront.Inventory.WorthCalculatorRule;
namespace StoreFront.Inventory.Tests.WorthCalculatorRule
{
[TestFixture]
public class AlchemyWorthCalculatorRuleTests
{
[Test]
public void Calculate_PositiveShelfLife_ShouldReduceWorthByTwo()
... |
e059dfeac13db15c8200b042196c33b23844527a | C# | rajeevyadav/corefx | /src/Common/perf/PerfRunner/PerfRunner.cs | 2.671875 | 3 | using System.IO;
using System.Reflection;
using System.Collections.Generic;
using Microsoft.Xunit.Performance.Api;
public class PerfHarness
{
public static void Main(string[] args)
{
using (XunitPerformanceHarness harness = new XunitPerformanceHarness(args))
{
foreach(var testName i... |
1a85eca6619d46154685dc141589c273ff425245 | C# | MichaelLoder/WeatherTestApp | /BLL/WeatherFacade.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using BLL.Interfaces;
using BO;
using System.Linq;
using BLL.WeatherRules;
namespace BLL
{
public class WeatherFacade : IWeatherFacade
{
private readonly IWeatherAggregatorFactory _weatherAggregatorFactory;
private readonly IAg... |
4c2bdefcc221dc34dcab312367278b4c9e634310 | C# | DevFojo/leetcode | /LeetCode/Solution20.cs | 3.359375 | 3 | using System.Collections.Generic;
namespace LeetCode
{
public class Solution20
{
public bool IsValid(string s)
{
var stack = new Stack<char>();
var parentheses = new Dictionary<char, bool>
{
{'(', false},
{'{', false},
... |
de60ea0f52b38e3c6e691b2f949aed867da2571b | C# | GuiOttoni/Security.Framework | /Security.Framework/Utils/Base64Url.cs | 3.25 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace Security.Framework.Utils
{
/// <summary>
/// Static Class to Encode and Decode Base64 Urls.
/// </summary>
public static class Base64Url
{
#region .: Base URL 64 Utilities :.
/// <summary>
/// Crea... |
2e78c5334aa9ca5ea085fd8c4897a4cb31eb7ea6 | C# | vjkrammes/Tracker | /Tracker/ViewModels/QAViewModel.cs | 2.71875 | 3 | using System.Windows.Media;
using Tracker.Infrastructure;
namespace Tracker.ViewModels
{
public class QAViewModel : ViewModelBase
{
#region Properties
private string _question;
public string Question
{
get => _question;
set => SetProperty(ref _question... |
2c4b4e2aeb13d4a8a0a16b8e65cc5ea505eca96c | C# | bronxc/Unscrambler | /Unscrambler/Features/MethodFeatures/CalliReplace.cs | 2.53125 | 3 | using System.Collections.Generic;
using AsmResolver.DotNet;
using AsmResolver.PE.DotNet.Cil;
namespace Unscrambler.Features.MethodFeatures
{
public class CalliReplace : IMethodFeature
{
private int _count;
public void Process( MethodDefinition method )
{
var instr ... |
19eefdae348ab5c7e827181b70d445bacd8c56ab | C# | riggea/2048bot | /2048/2048/Src/EvaluatorStrategy.cs | 3.234375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _2048
{
class EvaluatorStrategy : Strategy
{
private PositionEvaluator evaluator;
public EvaluatorStrategy(PositionEvaluator evaluator)
{
this.evaluator = evaluator... |
b6ccc24427c9addbab8820032ec5e621bef839d6 | C# | tchao-oo/amex-icepicker | /AmexIcePicker/Amex.IcePicker/Xml/Serialization.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.IO;
namespace Amex.IcePicker.Xml
{
public class Serialization
{
public static object Deserialize(string xml, Type objType)
{
XmlSerializer xmlSerialize... |
3454a953e5a1a9b9357a8d4ca422e2f1cbdb02bd | C# | wumh0622/SSF_GameJam | /Assets/Scripts/BackGroundScolling.cs | 2.703125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BackGroundScolling : MonoBehaviour {
public static BackGroundScolling instance;
[SerializeField] GameObject[] backGround;
[SerializeField] float gap;
void Awake()
{
if (instance == null)
{
... |
6c026b46e8a704a2cf292a96d3aea2b89f4f193d | C# | mcknell/Stile | /source/Stile/Types/Expressions/Printing/ExpressionParsers/BlockExpressionParser.cs | 2.515625 | 3 | #region License info...
// Stile for .NET, Copyright 2011-2013 by Mark Knell
// Licensed under the MIT License found at the top directory of the Stile project on GitHub
#endregion
#region using...
using System.Linq;
using System.Linq.Expressions;
#endregion
namespace Stile.Types.Expressions.Printing.ExpressionParser... |
d575840e39ef52e9d2e899c1bd941e76ab229b3e | C# | Teodor92/University | /CSharp/01. CSharpIntroduction/05. DivisionCheckerAdvanced/Program.cs | 3.78125 | 4 | namespace _05.DivisionCheckerAdvanced
{
using System.Text;
using Homework.Common;
/// <summary>
/// Prints all the numbers divisible by 3,4 and 9 within a given range.
/// </summary>
public class Program
{
private const string IntervalStartPromt = "Please enter the start of the in... |