content stringlengths 5 1.04M | avg_line_length float64 1.75 12.9k | max_line_length int64 2 244k | alphanum_fraction float64 0 0.98 | licenses list | repository_name stringlengths 7 92 | path stringlengths 3 249 | size int64 5 1.04M | lang stringclasses 2
values |
|---|---|---|---|---|---|---|---|---|
using System;
using System.Threading.Tasks;
using ExamApp.Infrastructure.DTO;
namespace ExamApp.Infrastructure.Services
{
public interface IJwtHandler
{
JwtDto CreateToken(Guid userId, string role);
}
} | 20.272727 | 53 | 0.744395 | [
"MIT"
] | UTPOrganization/ExamApp | src/ExamApp.Infrastructure/Services/IJwtHandler.cs | 223 | C# |
using DevilDaggersCore.Game;
using DevilDaggersCustomLeaderboards.Clients;
using DevilDaggersCustomLeaderboards.Enumerators;
using DevilDaggersCustomLeaderboards.Memory;
using DevilDaggersCustomLeaderboards.Memory.Variables;
using System;
using Cmd = DevilDaggersCustomLeaderboards.Utils.ConsoleUtils;
namespace DevilDa... | 53.619497 | 267 | 0.746173 | [
"Unlicense"
] | NoahStolk/DevilDaggersCustomLeaderboards | DevilDaggersCustomLeaderboards/Utils/GuiUtils.cs | 17,051 | C# |
/*
Copyright © Bryan Apellanes 2015
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bam.Net.Analytics
{
public delegate void ActionChangedDelegate(ICrawler crawler, ActionChangedEventArgs args);
}
| 20.428571 | 94 | 0.79021 | [
"MIT"
] | BryanApellanes/bam.net.shared | Analytics/ActionChangedDelegate.cs | 287 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//---... | 41.541667 | 80 | 0.652959 | [
"MIT"
] | Caarhus/CSharp-PatternMatching | obj/Release/netcoreapp3.1/PatternMatching.AssemblyInfo.cs | 997 | C# |
#if !NETSTANDARD13
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
... | 32.114286 | 114 | 0.704626 | [
"Apache-2.0"
] | DetlefGolze/aws-sdk-net | sdk/src/Services/AlexaForBusiness/Generated/Model/_bcl45+netstandard/IListSkillsPaginator.cs | 1,124 | C# |
namespace Domain.Abstractions.UseCases;
public class GetQuestionsUseCase : IQuery<IEnumerable<GetQuestionsUseCase.Response>>
{
public GetQuestionsUseCase(int offset, int limit)
{
Offset = offset;
Limit = limit;
}
public int Offset { get; }
public int Limit { get; }
public clas... | 32.078431 | 163 | 0.580073 | [
"CC0-1.0"
] | arjangeertsema/hexagonal-architecture | Domain/Domain.Abstractions/UseCases/GetQuestionsUseCase.cs | 1,636 | C# |
using MongoDB.Driver;
namespace MontoDBRepository.RepositoryLayer.Context
{
public class ConnectionFactory
{
private readonly string _connectionString;
public ConnectionFactory(string connectionString)
{
_connectionString = connectionString;
}
public IMongoC... | 26.97619 | 88 | 0.622242 | [
"MIT"
] | RafaCarva/Bill-Generator | BillGenerator.Repository/Context/ConnectionFactory.cs | 1,135 | C# |
namespace FileIO.RecordIO.Interfaces
{
public interface IRecordAppender
{
void AppendRecord(IRecord record);
void AppendRecord(double[] recordComponents);
void AppendRecord(string[] recordComponents);
}
} | 26.666667 | 53 | 0.7 | [
"MIT"
] | D0M1N1KUS/FileMergeSort | SequentialFileSorting/FileIO/RecordIO/Interfaces/IRecordAppender.cs | 240 | C# |
using System;
namespace ToolKit.Validation
{
/// <summary>
/// Provide common parameter checking.
/// </summary>
public static class Check
{
/// <summary>
/// Check to validate that the string is not null or empty.
/// </summary>
/// <param name="value">The parameter... | 37.638095 | 92 | 0.569079 | [
"Apache-2.0"
] | dcjulian29/toolkit | ToolKit/Validation/Check.cs | 3,952 | C# |
namespace ApkShellext2 {
partial class Preferences {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <par... | 57.191542 | 169 | 0.639816 | [
"MPL-2.0",
"MPL-2.0-no-copyleft-exception"
] | 404neko/apkshellext3 | ApkShellext2/Preferences.Designer.cs | 45,984 | C# |
using System;
namespace com.GraphDefined.SMSApi.API.Action
{
public class BindContactToGroup : Rest<Response.Base>
{
public BindContactToGroup(Credentials Client,
SMSAPIClient Proxy,
String contactId,
... | 26 | 109 | 0.539788 | [
"Apache-2.0"
] | GraphDefined/SMSAPI | smsapi/Actions/Contacts/BindContactToGroup.cs | 754 | C# |
using NFluent;
using NUnit.Framework;
using pbrt.Spectrums;
namespace Pbrt.Tests.Spectrums
{
[TestFixture]
public class SpectrumTests
{
[Test]
public void AddTest()
{
var spec1 = new Spectrum(new[] { 1.23f, 2.34f });
var spec2 = new Spectrum(new[] { 2f, 3f })... | 33.684615 | 111 | 0.476821 | [
"Unlicense"
] | fremag/pbrt | pbrt/Pbrt.Tests/Spectrums/SpectrumTests.cs | 4,379 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | 34.612903 | 151 | 0.584343 | [
"MIT"
] | OctavioProgramador/Algebra-lineal | Calculadora de vectores/Dependencia lineal/Dependencia lineal/Properties/Settings.Designer.cs | 1,075 | C# |
/*
Copyright © 2013 Arjen Post (http://arjenpost.nl)
License: http://www.apache.org/licenses/LICENSE-2.0
*/
namespace DynamicMapper.Tests
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Dynamic;
using System.Linq;
using System.Reflection;
using ... | 32.753363 | 118 | 0.537924 | [
"Apache-2.0"
] | dotarj/DynamicMapper | DynamicMapper.Tests/PerformanceTests.cs | 7,307 | C# |
using Adnc.Application.Shared;
using Adnc.Infra.Core;
using Autofac;
using Microsoft.Extensions.Configuration;
namespace Adnc.Cus.Application
{
/// <summary>
/// Autofac注册
/// </summary>
public sealed class AdncCusApplicationModule : AdncApplicationModule
{
/// <summary>
/// 构造函数
... | 25.833333 | 95 | 0.597419 | [
"MIT"
] | AjuPrince/Adnc | src/ServerApi/Services/Adnc.Cus/Adnc.Cus.Application/AdncCusApplicationModule.cs | 797 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
namespace School_Programme
{
[Activity(Label = "School Programme", ScreenOrientation = Android.Conten... | 37.205882 | 109 | 0.63913 | [
"CC0-1.0"
] | Konstantinos-Papanagnou/School-Programme | School Programme/Activities and fragments/ReviewLessons.cs | 2,532 | C# |
using OpenNefia.Content.DebugView;
using OpenNefia.Core.Game;
using OpenNefia.Core.GameObjects;
using OpenNefia.Core.Input;
using OpenNefia.Core.Input.Binding;
using OpenNefia.Core.IoC;
using OpenNefia.Core.UserInterface;
namespace OpenNefia.Content.GameObjects
{
public class DebugCommandsSystem : EntitySystem
... | 27.727273 | 100 | 0.671038 | [
"MIT"
] | OpenNefia/OpenNefia | OpenNefia.Content/GameObjects/EntitySystems/Command/DebugCommandsSystem.cs | 917 | C# |
#region Disclaimer/Info
///////////////////////////////////////////////////////////////////////////////////////////////////
// Subtext WebLog
//
// Subtext is an open source weblog system that is a fork of the .TEXT
// weblog system.
//
// For updated news and information please visit http://subtextproject.com/
// S... | 33.509091 | 152 | 0.565202 | [
"MIT",
"BSD-3-Clause"
] | Dashboard-X/SubText-2.5.2.0.src | Subtext.Framework/ImportExport/BlogImportRepository.cs | 5,531 | C# |
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("PullBackStrategy")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("PullBackStrategy")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisibl... | 29.375 | 56 | 0.76383 | [
"MIT"
] | Mikai47/cAlgoBot | Sources/Robots/PullBackStrategy/PullBackStrategy/Properties/AssemblyInfo.cs | 472 | C# |
namespace Zinnia.Process.Moment
{
using UnityEngine;
using Malimbe.MemberChangeMethod;
using Malimbe.XmlDocumentationAttribute;
using Malimbe.PropertySerializationAttribute;
using Zinnia.Process.Moment.Collection;
/// <summary>
/// Iterates through a given <see cref="MomentProcess... | 31.345238 | 168 | 0.50038 | [
"MIT"
] | reznovVR/Zinnia.Unity | Runtime/Process/Moment/MomentProcessor.cs | 5,268 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DotVVM.Framework.ViewModel;
namespace DotVVM.Contrib.Samples.ViewModels
{
public class Switch_Sample1ViewModel : MasterViewModel
{
public bool SwitchValue { get; set; }
public bool Enabled { get; set; } = true;
... | 17.695652 | 55 | 0.690418 | [
"Apache-2.0"
] | AMBULATUR/dotvvm-contrib | Controls/NoUiSlider/src/DotVVM.Contrib.Samples/ViewModels/Switch_Sample1ViewModel.cs | 407 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
using System.Configuration;
using System.Threading;
namespace Microsoft.Practices.EnterpriseLibrary.Common.Configuration
{
/// <summary>
/// Provides validation for a <see cr... | 33.162162 | 121 | 0.630807 | [
"Apache-2.0"
] | EnterpriseLibrary/common-infrastructure | source/Src/Common/Configuration/NonNegativeOrInfiniteTimeSpanValidator.cs | 1,227 | C# |
using Handelabra.Sentinels.Engine.Controller;
using Handelabra.Sentinels.Engine.Model;
namespace Fpe.Thief
{
public class TripwireTrapCardController : CardController
{
public TripwireCardController(Card card, TurnTakerController turnTakerController)
: base(card, turnTakerController)
{
}
public override v... | 21.65 | 83 | 0.745958 | [
"MIT"
] | FullPointerException/SotM-fantastical-fights | FantasticalFightsMod/Controller/Heroes/Thief/Cards/TripwireCardController.cs | 433 | C# |
using System;
using Mono.Linker.Tests.Cases.Expectations.Assertions;
namespace Mono.Linker.Tests.Cases.Reflection {
public class EventUsedViaReflection {
public static void Main ()
{
new Foo (); // Needed to avoid lazy body marking stubbing
var eventInfo = typeof (Foo).GetEvent ("Event");
eventInfo.GetA... | 22.434783 | 60 | 0.705426 | [
"MIT"
] | GrabYourPitchforks/linker | test/Mono.Linker.Tests.Cases/Reflection/EventUsedViaReflection.cs | 518 | C# |
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
namespace SwmSuite.Data.BusinessObjects {
public class TaskCollection : BusinessObjectCollectionBase<Task> {
/// <summary>
/// Get a collection for a single task.
/// </sum... | 31.581395 | 87 | 0.730486 | [
"Unlicense"
] | Djohnnie/SwmSuite-Original | SwmSuite.Framework.BusinessObjects/TaskCollection.cs | 1,360 | C# |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
names... | 30.748148 | 179 | 0.56107 | [
"ECL-2.0",
"Apache-2.0"
] | brinnehlops/pulumi-okta | sdk/dotnet/Idp/GetMetadataSaml.cs | 4,151 | C# |
using System;
using System.Runtime.InteropServices;
using CoreGraphics;
using Foundation;
using ObjCRuntime;
namespace AppKit {
public partial class NSSharingServiceDelegate {
CGRect SourceFrameOnScreenForShareItem (NSSharingService sharingService, NSPasteboardWriting item)
{
return SourceFrameOnScreenForShar... | 30.2 | 117 | 0.827815 | [
"BSD-3-Clause"
] | 1975781737/xamarin-macios | src/AppKit/NSSharingServiceDelegate.cs | 604 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.ResourceManager.Core... | 73.495644 | 262 | 0.693365 | [
"MIT"
] | KurnakovMaksim/azure-sdk-for-net | sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs | 75,921 | C# |
////////////////////////////////////////////////////////////////////////////////
//
// MIT License
//
// Copyright (c) 2018-2019 Nuraga Wiswakarma
//
// 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 t... | 35.923077 | 80 | 0.63758 | [
"MIT"
] | nwiswakarma/JSONSVGPlugin | Source/JSONSVGPlugin/JSONSVGPlugin.Build.cs | 1,868 | C# |
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Machine.Specifications;
namespace Dolittle.Runtime.Events.Store.Specs.for_UncommittedEvents
{
public class when_creating_with_events : given.events
{
... | 40.2 | 101 | 0.696517 | [
"MIT"
] | dolittle/Runtime | Specifications/Events.Store/for_UncommittedEvents/when_creating_with_events.cs | 1,007 | C# |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); yo... | 37.057471 | 98 | 0.592742 | [
"Apache-2.0"
] | Anomalous-Software/Lucene.NET | src/contrib/Analyzers/Shingle/Codec/SimpleThreeDimensionalTokenSettingsCodec.cs | 3,226 | C# |
using System;
using System.Windows;
using System.Windows.Input;
using SZDC.Editor;
using SZDC.Editor.TrainTimetables;
using SZDC.Wpf.TrainGraph;
namespace SZDC.Wpf.Editor {
public static class ViewConnector {
public static void Connect<TWindow, TDisposableContext>(IServiceProvider serviceProvider)
... | 36.821429 | 118 | 0.701746 | [
"MIT"
] | Sykoj/GTTG | solution/SZDC.WPF/Editor/ProjectEditorCommands.cs | 2,064 | C# |
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "52A334172092355AF129593D7411C0C0493900D1"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更... | 31.642857 | 121 | 0.593679 | [
"MPL-2.0",
"MPL-2.0-no-copyleft-exception"
] | rong-xiaoli/HardwareInfo | HardwareInfo/obj/x86/Debug/App.g.cs | 2,766 | C# |
#region Copyright
//
// DotNetNuke® - http://www.dotnetnuke.com
// Copyright (c) 2002-2018
// by DotNetNuke Corporation
//
// 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 re... | 39.670013 | 220 | 0.528134 | [
"MIT"
] | Abrahamberg/Dnn.Platform | DNN Platform/Modules/HTML/EditHtml.ascx.cs | 31,618 | C# |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "li... | 33 | 113 | 0.659755 | [
"Apache-2.0"
] | philasmar/aws-sdk-net | sdk/src/Services/ServerlessApplicationRepository/Generated/Model/PutApplicationPolicyResponse.cs | 1,881 | C# |
namespace ConoHaNet.Services.Compute
{
using System;
using System.Collections.Concurrent;
using Newtonsoft.Json;
using OpenStack.ObjectModel;
/// <summary>
/// This enumeration is part of the <see href="http://docs.rackspace.com/servers/api/v2/cs-devguide/content/ch_extensions.html#diskconfig_... | 44.533981 | 230 | 0.629387 | [
"MIT"
] | crowdy/OpenStack-ConoHa | ConoHaNet.portable-net45/ConoHa/Services/Compute/DiskConfiguration.cs | 4,589 | C# |
using System;
namespace PreworkCodeChallenges
{
class Program
{
static void Main(string[] args)
{
bool displayMenu = true;
while (displayMenu)
{
displayMenu = MainMenu();
}
}
private static bool MainMenu()
... | 32.482759 | 173 | 0.402639 | [
"MIT"
] | jeremymaya/Code-401-Prework-CodeChallenges | PreworkCodeChallenges/Program.cs | 6,596 | C# |
#region Copyright notice and license
// Copyright 2015, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyri... | 40.333333 | 94 | 0.75158 | [
"BSD-3-Clause"
] | CharaD7/grpc | src/csharp/Grpc.Core/IAsyncStreamReader.cs | 2,059 | C# |
using UnrealBuildTool;
public class TearsInTheRain : ModuleRules
{
public TearsInTheRain(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PrivateDependencyModuleNames.Add("Core");
PrivateDependencyModuleNames.Add("Core");
}
}
| 21.692308 | 65 | 0.794326 | [
"Apache-2.0"
] | raimondsp20/TearsInTheRain | Intermediate/Source/TearsInTheRain.Build.cs | 282 | C# |
////////////////////////////////////////////////////////////////////////////////
//NUnit tests for "EF Core Provider for LCPI OLE DB"
// IBProvider and Contributors. 04.06.2021.
using System;
using System.Linq;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel... | 28.365688 | 195 | 0.571861 | [
"MIT"
] | ibprovider/Lcpi.EFCore.LcpiOleDb | Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D3/Query/Funcs/EnumInt32/SET001/STD/HasFlag/Int16/TestSet_301__field__01__VV.cs | 12,566 | C# |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using JetBrains.Annotations;
using Microsoft.EntityFramework... | 52.328877 | 136 | 0.614481 | [
"Apache-2.0"
] | Tangtang1997/EntityFrameworkCore | src/EFCore/Metadata/IConventionEntityType.cs | 19,571 | C# |
#if !WATCH
using System;
using XamCore.Foundation;
using XamCore.CoreFoundation;
using XamCore.ObjCRuntime;
using XamCore.AudioToolbox;
namespace XamCore.AVFoundation {
public partial class AVPlayerItemVideoOutput {
enum InitMode {
PixelAttributes,
OutputSettings
}
AVPlayerItemVideoOutput (NSDictionar... | 27.230769 | 141 | 0.774953 | [
"BSD-3-Clause"
] | Acidburn0zzz/xamarin-macios | src/AVFoundation/AVPlayerItemVideoOutput.cs | 1,062 | C# |
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using tusdotnet.Helpers;
namespace tusdotnet.Models
{
internal class ClientDisconnectGuardedReadOnlyStream : ReadOnlyStream
{
internal CancellationToken CancellationToken { get; }
private readonly CancellationTokenSource _... | 37.15 | 199 | 0.689771 | [
"MIT"
] | Badabum/tusdotnet | Source/tusdotnet/Models/ClientDisconnectGuardedReadOnlyStream.cs | 1,488 | C# |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.AwsN... | 30.972222 | 99 | 0.669058 | [
"Apache-2.0"
] | AaronFriel/pulumi-aws-native | sdk/dotnet/MemoryDB/Outputs/AuthenticationModeProperties.cs | 1,115 | C# |
using MyFileDB.Common.Services;
namespace MyFileDB.Core.Messages
{
public class UpdateOneFileIdentityMessage : AFileIdentityMessage
{
public UpdateOneFileIdentityMessage(FileContent fileContent)
{
FileContent = fileContent;
}
public FileContent FileConten... | 23.666667 | 69 | 0.659155 | [
"MIT"
] | contactsamie/MyFileDB | MyFileDB.Core/Messages/UpdateOneFileIdentityMessage.cs | 355 | C# |
namespace Niue.Alipay.Response
{
/// <summary>
/// AlipayOpenPublicLabelUserCreateResponse.
/// </summary>
public class AlipayOpenPublicLabelUserCreateResponse : AopResponse
{
}
}
| 20.4 | 70 | 0.691176 | [
"MIT"
] | P79N6A/abp-ant-design-pro-vue | Niue.Alipay/Response/AlipayOpenPublicLabelUserCreateResponse.cs | 204 | C# |
using System;
using NetTopologySuite.Mathematics;
using NUnit.Framework;
namespace NetTopologySuite.Tests.NUnit.Mathematics
{
/// <summary>
/// Tests basic arithmetic operations for <see cref="DD"/>s.
/// </summary>
/// <author>Martin Davis</author>
public class DDBasicTest
{
[Test]
... | 32.138235 | 117 | 0.478631 | [
"EPL-1.0"
] | gchling/NetTopologySuite | test/NetTopologySuite.Tests.NUnit/Mathematics/DDBasicTest.cs | 10,929 | C# |
using FluentAssertions;
using System;
using Xunit;
namespace Optsol.Components.Test.Unit.Shared.Extensions
{
public class UintExtensionsSpec
{
[Trait("Extensions", "UintExtensions")]
[Fact(DisplayName = "Deve converter um uint em int")]
public void Deve_Converter_Uint_Em_Int()
... | 21.541667 | 61 | 0.566731 | [
"MIT"
] | carlosmachel/components-backend-core | test/Optsol.Components.Test.Unit/Shared/Extensions/UintExtensionsSpec.cs | 519 | C# |
namespace EasyCaching.UnitTests
{
using Dapper;
using EasyCaching.Core;
using EasyCaching.SQLite;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Xunit... | 36.281938 | 138 | 0.571151 | [
"MIT"
] | KostaVlev/EasyCaching | test/EasyCaching.UnitTests/CachingTests/SQLiteCachingTest.cs | 8,238 | C# |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ga... | 38.083333 | 84 | 0.751276 | [
"Unlicense",
"MIT"
] | appsfactory/FoodAtHub | Other/PhoneGap/Windows Phone/example/Properties/AssemblyInfo.cs | 1,374 | C# |
namespace Pets.Platform.Permissions.Core.Domain.SLAAggregate
{
public interface ISLARepository : IRepository<SLA>
{
SLA Add(SLA sla);
void Update(SLA sla);
Task<SLA> GetAsync(string slaId);
Task<IEnumerable<SLA>> GetAsync(IEnumerable<string> slaIds);
}
}
| 25.083333 | 68 | 0.664452 | [
"MIT"
] | 11pets/Pets.Platform.Permissions | Pets.Platform.Permissions.Core/Domain/SLAAggregate/ISLARepository.cs | 303 | C# |
using System.Threading.Tasks;
using Samples.ViewModel;
using Xamarin.Forms;
namespace Samples.View
{
public class BasePage : ContentPage
{
public BasePage()
{
NavigationPage.SetBackButtonTitle(this, "Back");
}
protected override void OnAppearing()
{
... | 22.634615 | 61 | 0.537808 | [
"MIT"
] | AndreiMisiukevich/Essentials | Samples/Samples/View/BasePage.cs | 1,179 | C# |
// --------------------------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Script: ./scripts/cldr-relative-time.csx
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// </auto... | 57.257081 | 173 | 0.613447 | [
"MIT"
] | pointnet/alrev-intl | packages/Alrev.Intl.RelativeTime/Resources/Es419RelativeTimeResource.intl.cs | 26,375 | C# |
namespace MVC.Framework.Contracts.Generic
{
public interface IRenderable<TModel> : IRenderable
{
TModel Model { get; set; }
}
} | 21.142857 | 54 | 0.655405 | [
"MIT"
] | sevdalin/Software-University-SoftUni | C# Web Development Basics/09. Intro to MVC. Creating Application Server/MVC.Framework/Contracts/Generic/IRenderable.cs | 150 | C# |
// AbstractPartyGameSession
using ClubPenguin.Core;
using ClubPenguin.Net;
using ClubPenguin.PartyGames;
using Disney.Kelowna.Common;
using Disney.MobileNetwork;
using System.Collections.Generic;
using UnityEngine;
public abstract class AbstractPartyGameSession : IPartyGameSession
{
private const float AUDIO_PREFAB_D... | 24.617978 | 121 | 0.78366 | [
"MIT"
] | smdx24/CPI-Source-Code | ClubPenguin.PartyGames/AbstractPartyGameSession.cs | 2,191 | C# |
namespace BTCPayServer.Abstractions.Custodians;
public class InvalidWithdrawalTargetException : CustodianApiException
{
public InvalidWithdrawalTargetException(ICustodian custodian, string paymentMethod, string targetAddress, CustodianApiException originalException) : base(403, "invalid-withdrawal-target", $"{cus... | 43.1 | 294 | 0.809745 | [
"MIT"
] | Eskyee/btcpayjungleserver | BTCPayServer.Abstractions/Custodians/Client/Exception/InvalidWithdrawalTargetException.cs | 431 | C# |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Resources;
using System.Globalization;
using System.IO;
using System.Security;
using Microsoft.Build.Utilities;
using Microsoft.Build.Framework;
using Microsoft.Build.Shared;
using System.Reflection;
using System... | 38.90866 | 166 | 0.547652 | [
"MIT"
] | AlexanderSemenyak/msbuild | src/Tasks/DataDriven/DataDrivenToolTask.cs | 32,802 | C# |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Par... | 37.891892 | 84 | 0.749643 | [
"MIT"
] | VeselinBPavlov/programming-fundamentals | 18. Dictionaries and Lists - More Exercises/ParkingValidation/Properties/AssemblyInfo.cs | 1,405 | C# |
using System;
using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace Demo0607.Droid
{
[Activity(Label = "Demo0607", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.Scre... | 37.121212 | 183 | 0.707755 | [
"MIT"
] | Shaw6157/ToyLibrary | Demo0607/Demo0607/Demo0607.Android/MainActivity.cs | 1,227 | C# |
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class BulletText : MonoBehaviour
{
public GunHanddle gunHandle;
public Text bulletText;
// Use this for initialization
void Start()
{
if (gunHandle == null)
{
gunHandle = FindObjectOfType(typeof(... | 23.241379 | 112 | 0.605341 | [
"MIT"
] | yantian001/3DSniper | Assets/Script/UI/BulletText.cs | 676 | C# |
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using System;
using System.Collections.Generic;
usi... | 38.630435 | 163 | 0.647158 | [
"MIT"
] | Alan-love/xenko | sources/engine/Stride.Input/IPointerDevice.cs | 1,777 | C# |
using System.Threading.Tasks;
using NUnit.Framework;
using Senticode.Database.Tools.Interfaces;
using Unity;
namespace Senticode.Database.Tools.Tests.Framework
{
[TestFixture]
public abstract class TestBase
{
protected IUnityContainer _container;
public bool WithStrongContext { get; set; ... | 24.771429 | 99 | 0.620531 | [
"MIT"
] | Senticode/Senticode.Xamarin.Tools | tests/Senticode.Database.Tools.Tests/Framework/TestBase.cs | 869 | C# |
using System;
using Microsoft.Xna.Framework;
using _4DMonoEngine.Core.Blocks;
using _4DMonoEngine.Core.Utils;
using _4DMonoEngine.Core.Utils.Noise;
namespace _4DMonoEngine.Core.Generators.Structures
{
//TODO : refactor this into a proper structure system
public class StructureGenerator
{
private u... | 39.46875 | 139 | 0.578781 | [
"MIT"
] | HaKDMoDz/4DBlockEngine | Monogame/4DMonoEngine/Core/Generators/Structures/PlantPopulator.cs | 2,528 | C# |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
names... | 37.884615 | 187 | 0.744162 | [
"ECL-2.0",
"Apache-2.0"
] | Otanikotani/pulumi-aws | sdk/dotnet/WafV2/Inputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentGetArgs.cs | 985 | C# |
using System;
using System.Collections.Generic;
using System.Text;
using Sudoku.Core;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Text;
using CsvHelper;
using Keras;
using Keras.Models;
using Python.Runtime;
using Sudoku.Core;
using Numpy;
namespace CNNAlgorithm
{
class SudokuSo... | 22.74 | 120 | 0.673996 | [
"MIT"
] | sosthenee/ECE-2021-FIN-E-Ing4-Finance-Gr02-IA1 | CNNAlgorithm/SudokuSolver.cs | 3,413 | C# |
using Prism.Mvvm;
namespace Prism.Wpf.Tests.Mocks.ViewModels
{
public class MockViewModel : BindableBase
{
private int mockProperty;
public int MockProperty
{
get
{
return this.mockProperty;
}
set
{
... | 19 | 60 | 0.507519 | [
"MIT"
] | Adam--/Prism | tests/Wpf/Prism.Wpf.Tests/Mocks/ViewModels/MockViewModel.cs | 534 | C# |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("p02... | 38.27027 | 84 | 0.752119 | [
"Apache-2.0"
] | svetliub/Softuni-CSharp-Advanced | 01_StacksAndQueues/p02_BasicStackOperations/Properties/AssemblyInfo.cs | 1,419 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
namespace GitlabMindMapGenerator
{
public class GanttProjectBuilder : IBuilder
{
public List<Issue> Issues { get; set; }
public string FilePath { get; set; }
public GanntChartSetting GanntChartSetting { get; set; }
... | 31.225 | 92 | 0.55004 | [
"MIT"
] | eduardoluizgs/Gitlab-MindMap-Generator | App/Builders/GanttProjectBuilder.cs | 2,498 | C# |
using System;
using System.Linq;
using FluentAssertions;
using NUnit.Framework;
using Vostok.Clusterclient.Criteria;
using Vostok.Clusterclient.Model;
namespace Vostok.ClusterClient.Tests.Core.Criteria
{
public class RejectRedirectionsCriterion_Tests
{
private RejectRedirectionsCriterion criterion;
... | 30.42 | 120 | 0.65549 | [
"MIT"
] | vostok-archives/clusterclient.prototype | Vostok.ClusterClient.Tests/Core/Criteria/RejectRedirectionsCriterion_Tests.cs | 1,523 | C# |
using System;
namespace Haruair.Command
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
public class Usage : Attribute
{
public string Description
{
get; private set;
}
public Usage(string description)
{
Description = description;
}
}
}
| 14.894737 | 67 | 0.713781 | [
"MIT"
] | haruair/csharp-command | src/Haruair.Command/Attributes/Usage.cs | 285 | C# |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Tagging;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.Text.Shared.Extension... | 39.475524 | 161 | 0.636315 | [
"Apache-2.0"
] | DaiMichael/roslyn | src/EditorFeatures/Text/Shared/Extensions/ITextSnapshotExtensions.cs | 5,647 | C# |
using System;
using System.Reflection;
namespace AMQP.ServiceFramework.Abstractions
{
public interface ICommandHandlerContext
{
string Queue { get; }
string Topic { get; }
MethodInfo TargetMethod { get; }
Type DeclaringType { get; }
Type ParameterType { get; }
T... | 23.4 | 44 | 0.626781 | [
"MIT"
] | nevsnirG/AMQP.ServiceFramework | src/AMQP.ServiceFramework/Abstractions/ICommandHandlerContext.cs | 353 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DisableObjectOnActive : MonoBehaviour {
public GameObject objectToDisable;
private void OnEnable()
{
objectToDisable.SetActive(false);
}
}
| 18.5 | 52 | 0.737452 | [
"MIT"
] | SSSxCCC/AlphaZero-In-Unity | Unity Project/AlphaZero/Assets/Scripts/Common/UI/DisableObjectOnActive.cs | 261 | C# |
#nullable enable
using System;
using System.Collections.Generic;
using Microsoft.Extensions.Primitives;
namespace Meziantou.Moneiz.Extensions
{
internal struct KeyValueAccumulator
{
private Dictionary<string, StringValues> _accumulator;
private Dictionary<string, List<string>> _expan... | 34.880952 | 120 | 0.502389 | [
"MIT"
] | meziantou/meziantou.moneiz | src/Meziantou.Moneiz/Extensions/KeyValueAccumulator.cs | 2,932 | C# |
/*
Copyright (c) 2020 Denis Zykov
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
License: https://opensource.org/licenses/MIT
*/
using System;
using System.Diagnostics;
using J... | 41.430168 | 123 | 0.703614 | [
"MIT"
] | deniszykov/BaseN | src/deniszykov.BaseN/Base32Convert.cs | 7,418 | C# |
public enum ORIPOINT
{
CENTER,
LEFT_UP,
LEFT_BOTTOM,
RIGHT_BOTTOM,
RIGHT_UP,
BOTTOM_CENTER,
TOP_CENTER,
LEFT_CENTER,
RIGHT_CENTER
} | 14 | 21 | 0.642857 | [
"MIT"
] | Jagerente/GucciGangMod | Source/ORIPOINT.cs | 170 | C# |
// <auto-generated />
using System;
using Geonorge.TiltaksplanApi.Infrastructure.DataModel;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.... | 38.628676 | 125 | 0.485771 | [
"MIT"
] | kartverket/Geonorge.TiltaksplanApi | src/Geonorge.TiltaksplanApi.Infrastructure/Migrations/20201209102105_RemoveIndexBetweenMeasureAndOrganization.Designer.cs | 10,509 | C# |
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllersWithViews();
var app = builder.Build();
// Configure the HTTP request pipeline.
app.UseStaticFiles();
app.UseRouting();
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{act... | 22 | 55 | 0.724432 | [
"MIT"
] | EricCote/20486D-New | Allfiles/Mod11/Labfiles/01_Library_end/CrossSiteRequestForgeryAttack/Program.cs | 354 | C# |
using System.Diagnostics;
using Microsoft.AspNetCore.Mvc;
using CoreUIStatic.Models;
namespace CoreUIStatic.Controllers
{
public class CoreUIController : Controller
{
public IActionResult Index()
{
return View();
}
public IActionResult Error()
{
... | 20.090909 | 112 | 0.628959 | [
"MIT"
] | mrholek/CoreUI-NET | mvc_Starter/Controllers/CoreUIController.cs | 444 | C# |
using System;
#if WINDOWS_PHONE_APP
using Windows.UI.Xaml;
using Windows.UI.Xaml.Data;
#else
using System.Windows;
using System.Windows.Data;
#endif
namespace Coligo.Platform.Converters
{
/// <summary>
///
/// </summary>
public class BoolToVisibilityInverter : IValueConverter
{
#if WINDOWS_PHONE... | 28.50495 | 131 | 0.531087 | [
"MIT"
] | johnds1974/Coligo.net | Src/Coligo.Platform/Converters/BoolToVisibilityInverter.cs | 2,879 | C# |
using System;
namespace dnsl48.SGF.Attributes
{
/// <summary>
/// The label of a subject property.
/// The label is the identity of the property defined by the SGF standard
/// and being used in the SGF document as is. It is also being used by the
/// parser to identify the property and apply the a... | 34.621622 | 88 | 0.631538 | [
"Apache-2.0",
"MIT"
] | dnsl48/sharp-sgf-tools | SGF/src/Attributes/LabelAttribute.cs | 1,281 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Newcats.JobManager.Common.Util.Helper.CronHelper
{
public class TimeZoneUtil
{
private static readonly Dictionary<string, string> timeZoneIdAliases = new Dictionary<string, string>();
static TimeZoneUtil()
{
... | 39.06015 | 148 | 0.580558 | [
"MIT"
] | newcatshuang/JobManager | src/Newcats.JobManager.Common/Util/Helper/CronHelper/TimeZoneUtil.cs | 5,197 | C# |
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Flurl.Http;
using Newtonsoft.Json;
namespace Tool
{
partial class Program
{
static async Task<string[]> GetJdCode(int id)
{
var sender = await $"https://union.jd.com/api/apiDoc/apiDocInfo?apiId={id}".PostJsonA... | 40.91623 | 171 | 0.498273 | [
"Apache-2.0"
] | asine/JD_PDD.SDK.CSharpe | src/Tool/JdRootobject.cs | 7,911 | C# |
using System;
using TrueCraft.API.Logic;
namespace TrueCraft.Core.Logic.Blocks
{
public class WoodBlock : BlockProvider, IBurnableItem
{
public enum WoodType
{
Oak = 0,
Spruce = 1,
Birch = 2
}
public static readonly byte BlockID = 0x11;
... | 24.8 | 77 | 0.550179 | [
"MIT"
] | BinaryGears/TrueCraft | TrueCraft.Core/Logic/Blocks/WoodBlock.cs | 1,116 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using manager.ioc;
namespace attributeSystem.rts.twod
{
[System.Serializable]
public class AttributesDictionary : CustomDict<string, IamAttribute>
{
public AttributesDictionary() : base()
{
}
}
... | 40.371186 | 176 | 0.516436 | [
"Apache-2.0"
] | rufreakde/attributeSystem.rts.twod | code/AttributesContainer.cs | 23,821 | C# |
using System;
using System.Threading.Tasks;
using Dgraph.Transactions;
using FluentAssertions;
using FluentResults;
using Grpc.Core;
using NSubstitute;
using NUnit.Framework;
namespace Dgraph.tests.Transactions
{
public class TransactionFixture : TransactionFixtureBase {
[Test]
public async Task A... | 31.151899 | 81 | 0.558716 | [
"Apache-2.0"
] | Aaronmsv/dgraph.net | source/Dgraph.tests/Transactions/TransactionFixture.cs | 2,461 | C# |
using CleanArchitectureExample.Domain.Entities;
using CleanArchitectureExample.Domain.Interfaces.Persistence.Repositories;
using MediatR;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace CleanArchitectureExample.Domain.RequestHandlers.AuthorsHandlers.Commands.AddAuthor
{
public class ... | 33.444444 | 130 | 0.723422 | [
"MIT"
] | andresantarosa/CleanArchitectureExample | CleanArchitectureExample.Domain/RequestHandlers/AuthorsHandlers/Commands/AddAuthor/AddAuthorCommandHandler.cs | 1,206 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34209
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | 43.671875 | 182 | 0.613953 | [
"MIT"
] | ChristianGreiner/bridge-hub | src/ColorPickerLibrary/ColorPicker.Demo/Properties/Resources.Designer.cs | 2,797 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
using SendGrid;
using SendGrid.Helpers.Mail;
namespace WebPWrecover.Services
{
// This class is used by the application to send email for account confirmation and password ... | 32.619048 | 104 | 0.623358 | [
"Apache-2.0"
] | hangyejiadao/AspNetCore | WebPWrecover/WebPWrecover/Services/EmailSender.cs | 1,370 | C# |
// -----------------------------------------------------------------------
// <copyright file="Switch.cs" company="Ubiquity.NET Contributors">
// Copyright (c) Ubiquity.NET Contributors. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
using System;
usin... | 33.957447 | 121 | 0.561404 | [
"Apache-2.0"
] | UbiquityDotNET/Llvm.NET | src/Ubiquity.NET.Llvm/Instructions/Switch.cs | 1,598 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
using GloboCrypto.Models.Data;
using GloboCrypto.Models.Notifications;
using GloboCrypto.WebAPI.Services.Coins;
using GloboCrypto.WebAPI.Services.Data;
using GloboCrypto.WebAPI.Se... | 40.330357 | 142 | 0.604826 | [
"MIT"
] | steve-reteamlabs/GloboCrypto | GloboCrypto/GloboCrypto.WebAPI.Services/Notifications/NotificationService.cs | 4,519 | C# |
using BalanceThings.Drawing;
using BalanceThings.Physics;
using FarseerPhysics;
using FarseerPhysics.Dynamics;
using FarseerPhysics.Factories;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
namespace BalanceThings.Items
{
class Hand : GameObject
{
... | 36.32 | 126 | 0.685022 | [
"Apache-2.0"
] | kevbot-git/BalanceThings | BalanceThings.Android/Items/Hand.cs | 908 | C# |
using Newtonsoft.Json;
namespace Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models
{
public class Telemetry
{
[JsonConstructor]
public Telemetry()
{
}
public Telemetry(string name, string displayName, string type)
{
Nam... | 24.071429 | 77 | 0.563798 | [
"MIT"
] | Anchinga/TechnicalCommunityContent | IoT/Azure IoT Suite/Session 3 - Building Practical IoT Solutions/Solutions/Demo 3.2/Common/Models/Telemetry.cs | 674 | C# |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.Azur... | 27.924528 | 147 | 0.552027 | [
"Apache-2.0"
] | pulumi/pulumi-azure-nextgen | sdk/dotnet/Sql/GetJob.cs | 2,960 | C# |
/*
This file is auto-generated, do not edit
*/
using System;
using System.Collections.Generic;
using System.Net.Http;
using Neurolib.ApiClient.Bindings;
using Neurolib.ApiClient.Util;
namespace Neurolib.ApiClient.ApiRequests
{
/// <summary>Item based recommendation</summary>
/// <deprecated>Deprecated since... | 64.86129 | 751 | 0.644402 | [
"MIT"
] | neurolib-fr/net-api-client | Src/Neurolib.ApiClient/ApiRequests/ItemBasedRecommendation.cs | 20,107 | C# |
using System.Linq;
using NUnit.Framework;
using TestCommon.Model;
namespace Xtensive.Orm.BulkOperations.Tests
{
internal class Structures : AutoBuildTest
{
[Test]
public void StructuresSet()
{
using (Session session = Domain.OpenSession()) {
using (TransactionScope trx = session.OpenTran... | 44.575758 | 137 | 0.559483 | [
"MIT"
] | NekrasovSt/dataobjects-net | Extensions/Xtensive.Orm.BulkOperations.Tests/Structures.cs | 5,886 | C# |
using UnityEngine;
using System.Collections;
public class Golem_Death_Fade_Out : MonoBehaviour {
public float fadeOutDelay, fadeOutTime;
void Start () {
StartCoroutine (FadeOut ());
}
IEnumerator FadeOut () {
Renderer[] renderers = GetComponentsInChildren<Renderer> ();
yield return new WaitForSeconds (f... | 20.945946 | 62 | 0.665806 | [
"CC0-1.0"
] | RarCeth/FatalCore_MK_III | Assets/Golem_Death_Fade_Out.cs | 777 | C# |
/*
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
using System;
using Microso... | 27.039216 | 113 | 0.720812 | [
"MPL-2.0",
"MPL-2.0-no-copyleft-exception"
] | junbaor/seb-win-refactoring | SafeExamBrowser.Lockdown/FeatureConfigurations/RegistryConfigurations/UserHive/UserHiveConfiguration.cs | 1,382 | C# |
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace Alipay.AopSdk.Core.Domain
{
/// <summary>
/// AlipayMarketingCardConsumeSyncModel Data Structure.
/// </summary>
[Serializable]
public class AlipayMarketingCardConsumeSyncModel : AopObject
{
/// <s... | 28 | 80 | 0.545714 | [
"MIT"
] | leixf2005/Alipay.AopSdk.Core | Alipay.AopSdk.Core/Domain/AlipayMarketingCardConsumeSyncModel.cs | 3,320 | C# |
using System;
using UltimaOnline;
namespace UltimaOnline.Engines.Quests.Hag
{
public class HangoverCure : Item
{
private int m_Uses;
public override int LabelNumber { get { return 1055060; } } // Grizelda's Extra Strength Hangover Cure
[CommandProperty(AccessLevel.GameMaste... | 26 | 111 | 0.431624 | [
"MIT"
] | netcode-gamer/game.ultimaonline.io | UltimaOnline.Data/Engines/Quests/Witch Apprentice/Items/HangoverCure.cs | 2,340 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.