Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
144
998k
label
stringclasses
4 values
/// <summary> /// Gets a filter expression for an attribute value. /// </summary> /// <param name="configurationValues">The configuration values.</param> /// <param name="filterValues">The filter values.</param> /// <param name="parameterExpression">The parameter expression.</par...
ComplexMethod
public Dictionary<string, AttributeValue> GetFields(bool includeKeys = false) { var fields = new Dictionary<string, AttributeValue>(); if (includeKeys) { fields.Add(DEPLOYMENT_ID_PROPERTY_NAME, new AttributeValue(DeploymentId)); fields.Add(SIL...
ComplexMethod
internal static bool CheckStyle(NumberStyles style, bool tryParse, ref Exception exc) { if ((style & NumberStyles.AllowHexSpecifier) != 0) { NumberStyles ne = style ^ NumberStyles.AllowHexSpecifier; if ((ne & NumberStyles.AllowLeadingWhite) != 0) ...
ComplexMethod
[Route(Constants.RoutePaths.Login, Name = Constants.RouteNames.Login)] [HttpGet] public async Task<IHttpActionResult> Login(string signin = null) { Logger.Info("Login page requested"); if (signin.IsMissing()) { Logger.Info("No signin id passed...
ComplexMethod
private ProcessArgumentBuilder GetArguments(FilePath outputFile, GitReleaseNotesSettings settings) { var builder = new ProcessArgumentBuilder(); if (settings.WorkingDirectory != null) { builder.AppendQuoted(settings.WorkingDirectory.FullPath); } ...
ComplexMethod
#endregion Sinh #region Sqrt /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunSoft, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and di...
ComplexMethod
internal Message ReceiveMessage() { if (mSending) { mSending = false; PrepareInboundFlight(); } // Check if we already have the next message waiting { DtlsReassembler next = (DtlsReassembler)mCurrentInbo...
ComplexMethod
private static async void StartQueueProcessing() { _isQueueWorking = true; while (_requestQueue.Count > 0) { List<KeyValuePair<string, List<AudioArtist>>> queueItems; lock (_syncRoot) { queueItems = _reques...
ComplexMethod
/// <inheritdoc /> public async Task<IPipelineProcess<Post>> Process(IPipelineProcess<Post> input, IMvcForumContext context) { _localizationService.RefreshContext(context); _uploadedFileService.RefreshContext(context); try { // Files ...
ComplexMethod
// handles point loss when the player is killed public override void OnKilled(Mobile killed, Mobile killer ) { if(killer == null || killed == null || !(killer.Player) || killer == killed) return; bool awardpoints = true; // if this was a challenge duel then clear agression if(killed == m_Challenger ||...
ComplexMethod
/// <summary> /// Filter the specified input. /// </summary> /// <returns>The filtered output.</returns> /// <param name="input">The input buffer.</param> /// <param name="startIndex">The starting index of the input buffer.</param> /// <param name="length">Length.</param> /// <param name="outputIndex">Out...
ComplexMethod
public static string GetName(byte alertDescription) { switch (alertDescription) { case close_notify: return "close_notify"; case unexpected_message: return "unexpected_message"; case bad_record_mac: retur...
ComplexMethod
/// <summary> /// Gets the result code message. /// </summary> /// <param name="result">The result.</param> /// <returns></returns> private string GetResultCodeMessage(Dictionary<string, string> result) { switch( result.GetValueOrNull( "result-code" ).AsIntege...
ComplexMethod
/// <summary> /// Force a name to be valid by replacing invalid characters with a fixed value /// </summary> /// <param name="name">The name to make valid</param> /// <param name="replacement">The replacement character to use for any invalid characters.</param> /// <returns>Returns a valid name</returns> pu...
ComplexMethod
public override string GetReport() { StringBuilder r = new StringBuilder(); r.AppendLine("Nvidia GPU"); r.AppendLine(); r.AppendFormat("Name: {0}{1}", name, Environment.NewLine); r.AppendFormat("Index: {0}{1}", adapterIndex, Environment.NewLine); if (displayHandle.HasValue && NVAP...
ComplexMethod
[HttpPost] [AllowAnonymous] [ValidateAntiForgeryToken] public async Task<IActionResult> ExternalLoginConfirmation(ExternalLoginViewModel model, string returnUrl = null, string loginProvider = null) { if ((!model.IsExistingUser && !(await _siteService.GetSiteSettingsAsync()).A...
ComplexMethod
public static void RunImport_NewFiles() { // first build a list of files that we already know about, as we don't want to process them again IReadOnlyList<SVR_VideoLocal_Place> filesAll = RepoFactory.VideoLocalPlace.GetAll(); Dictionary<string, SVR_VideoLocal_Place> dictFilesE...
ComplexMethod
protected string ProcessAttributes(XmlNode node, object ret, Type t) { string refName = String.Empty; // process attributes foreach (XmlAttribute attr in node.Attributes) { string pname = attr.Name; string pvalue = attr.Value; // it's either a property or an event. Allow assignment to prote...
ComplexMethod
public static byte MCtoIRC(string str) { switch (str) { case black: return 1; case navy: return 2; case green: return 3; case teal: return 10; case maroon: return 5; case purple: return 6; ...
ComplexMethod
/// <summary> /// Aggregates the child results of a MultiNode into a summary result status. /// </summary> /// <param name="results">Results to aggregate.</param> /// <param name="options">Execution options to consider during aggregation.</param> /// <returns>Summary NodeResultSt...
ComplexMethod
/// <summary> /// Build sub tree nodes /// </summary> protected virtual void BuildSubTree() { if (!CheckDimension() || Objects.Count < this.Parameter.MinObjectSizeToSplit) { treeBuilt = true; return; } //Thi...
ComplexMethod
/** * Computes the Window NAF (non-adjacent Form) of an integer. * @param width The width <code>w</code> of the Window NAF. The width is * defined as the minimal number <code>w</code>, such that for any * <code>w</code> consecutive digits in the resulting representation, at ...
ComplexMethod
public override void Use(Player p, string message) { if (message == "") { Help(p); return; } bool success = false; string[] param = message.Split(' '); string name = param[0]; if (param.Length == 1) { if (File.Exists("extra...
ComplexMethod
private void VerifyShiny(LegalityAnalysis data) { var pkm = data.pkm; var Info = data.Info; switch (data.EncounterMatch) { case EncounterStatic s: if (!s.Shiny.IsValid(pkm)) data.AddLine(GetInvalid(LEncS...
ComplexMethod
public override bool DoActionCombat() { Mobile c = this.m_Mobile.Combatant; this.m_Mobile.Warmode = true; if (c == null || c.Deleted || !c.Alive || c.IsDeadBondedPet || !this.m_Mobile.CanSee(c) || !this.m_Mobile.CanBeHarmful(c, false) || c.Map != this.m_Mobile.Map) ...
ComplexMethod
public static AstNode GetDefinition(this AstNode node) { if (node is ConstructorInitializer) return null; if (node is ObjectCreateExpression) node = ((ObjectCreateExpression)node).Type; if (node is InvocationExpression) node = ((InvocationExpression)node).Target; if (node is MemberRefere...
ComplexMethod
protected void Application_Error(object sender, EventArgs e) { var ex = HttpContext.Current.Server.GetLastError(); if (ex == null) return; if (ex is OperationCanceledException) { // This is a bug in Web API 5.1 (http://aspnetwebstack.codeplex.com/workitem/1797) and can be ignored. Server.ClearEr...
ComplexMethod
private void ReadMain() { NUD_Coin.Value = SAV.Coin; NUD_Coin.Maximum = SAV.MaxCoins; int[] FlyDestD; IReadOnlyList<ComboItem> metLocationList; switch (SAV) { case SAV4Sinnoh _: metLocationList = GameInfo...
ComplexMethod
private void SerObject(PdfObject obj, int level, ByteBuffer bb, Dictionary<RefKey, int> serialized) { if (level <= 0) return; if (obj == null) { bb.Append("$Lnull"); return; } PdfInd...
ComplexMethod
private bool ExecuteInner() { var useJsonErrorFormat = rustcVersion.Major >= 1 && rustcVersion.Minor >= 12; StringBuilder sb = new StringBuilder(); if (ConfigFlags.Length > 0) sb.AppendFormat(" --cfg {0}", String.Join(",", ConfigFlags)); if (Addit...
ComplexMethod
#endregion #region Constructor public BgMaterial(Engine engine, Material baseMaterial) : base(engine, baseMaterial) { Navin = BgParameter.None; foreach (var param in baseMaterial.TextureParameters) { var tex = baseMaterial.TexturesFiles[param.Textur...
ComplexMethod
public static int GetKeyExchangeAlgorithm(int ciphersuite) { switch (ciphersuite) { case CipherSuite.TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA: case CipherSuite.TLS_DH_DSS_WITH_AES_128_CBC_SHA: case CipherSuite.TLS_DH_DSS_WITH_AES_128_CBC_SHA256: ca...
ComplexMethod
private void ReadElement(XElement e, SKCanvas canvas, SKPaint stroke, SKPaint fill, bool isMask = false, CancellationToken token = default) { token.ThrowIfCancellationRequested(); if (e.Attribute("display")?.Value == "none") return; // SVG element var elementName = e.Name.LocalName; var isGroup =...
ComplexMethod
private async Task<ChangeSignatureAnalyzedContext> GetContextAsync(Document document, int position, bool restrictToDeclarations, CancellationToken cancellationToken) { var symbol = GetInvocationSymbol(document, position, restrictToDeclarations, cancellationToken); // Cross-lang symbols ...
ComplexMethod
/// <summary> /// Get all changes fro SQLite Database /// </summary> /// <param name="schema">All Tables</param> /// <param name="lastModifiedDate">Changes since this date</param> /// <param name="uploadBatchSize">Maximum number of rows to upload</param> internal IEnumera...
ComplexMethod
private static DynValue ReadValue(BinaryReader rd, Table envTable) { bool isnull = !rd.ReadBoolean(); if (isnull) return null; DataType dt = (DataType)rd.ReadByte(); switch (dt) { case DataType.Nil: return DynValue.NewNil(); case DataType.Void: return DynValue.Void; case DataTy...
ComplexMethod
private static object GenerateGenericType(Type type, int collectionSize, Dictionary<Type, object> createdObjectReferences) { Type genericTypeDefinition = type.GetGenericTypeDefinition(); if (genericTypeDefinition == typeof(Nullable<>)) { return GenerateNullabl...
ComplexMethod
/// <summary> /// Loads the specified configuration section name containing data-base connection settings. /// </summary> /// <param name="configSectionName">Name of the configuration section.</param> /// <exception cref="DatabaseConnectionConfigurationException"></exception> public ConfigurationManagerBasedD...
ComplexMethod
private void AppendEditOptions(JqGridColumnEditOptions editOptions, StringBuilder javaScriptBuilder) { if (editOptions != null) { JavaScriptSerializer serializer = new JavaScriptSerializer(); javaScriptBuilder.Append("editoptions: { "); if...
ComplexMethod
protected void Display(bool aFilter) { Log("Display({0})", aFilter); Log("Current Label '{0}'", mCurrentLabel); mCode.Clear(); tblkSource.Inlines.Clear(); mRunsToLines.Clear(); Log("Display - Done clearing"); if (mData.Length ==...
ComplexMethod
public void Read(Stream str) { this.Entries.Clear(); BigEndianBinaryReader bigEndianBinaryReader = new BigEndianBinaryReader(str); this.header.MagicNumber = bigEndianBinaryReader.ReadUInt32(); this.header.VersionNumber = bigEndianBinaryReader.ReadUInt32(); this.header.CompressionMethod = bigEndianBinar...
ComplexMethod
protected override Expression VisitMemberAccess(MemberExpression memberExpression) { MemberExpression expression; var visited = new List<MemberExpression>(); var root = memberExpression.Expression.StripItemsCalls(); var memberIsDataAccessObjectGatheringForProjection = false; // Don't perform implicit...
ComplexMethod
public void Find(ISimpleDeobfuscator simpleDeobfuscator) { var additionalTypes = new string[] { "System.String", }; foreach (var type in module.Types) { if (type.BaseType == null || type.BaseType.FullName != "System.Object") continue; if (!CheckFields(type.Fields)) continue; foreach (...
ComplexMethod
public void AnalyzeSymbol(SymbolAnalysisContext context) { var methodSymbol = (IMethodSymbol)context.Symbol; if (methodSymbol == null) { return; } var dllImportData = methodSymbol.GetDllImportData(); ...
ComplexMethod
private uint GetOptimumFast(out uint backRes) { uint mainLen, numPairs; if (mAdditionalOffset == 0) { mainLen = ReadMatchDistances(out numPairs); } else { TR("GetOptimumFas...
ComplexMethod
#endregion #region Public Static Methods public static object MapEDMTypeToCLRType(string type, string value, bool isNull) { if (isNull) { return null; } if (string.IsNullOrWhiteSpace(type)) { return valu...
ComplexMethod
/// <summary> /// Does the command</summary> /// <param name="commandTag">Command to be done</param> public virtual void DoCommand(object commandTag) { if (commandTag is StandardCommand) { IDocument activeDocument = DocumentRegistry.ActiveDocument;...
ComplexMethod
#endregion private PdbInfo InternalInfo() { var info = new PdbInfo(); var root = GetRoot(); if (root.Streams.Count <= 1) { throw Log.ErrorAndCreateException<GitLinkException>( "Expected at least 2 streams inside the pd...
ComplexMethod
protected override void OnTarget(Mobile from, object o) { if (this.m_Talisman == null || this.m_Talisman.Deleted) return; Mobile target = o as Mobile; if (from.Talisman != this.m_Talisman) from.SendLocalizedMessage(502...
ComplexMethod
public void Encode( Stream outStr) { BcpgOutputStream bcpgOut = BcpgOutputStream.Wrap(outStr); bcpgOut.WritePacket(secret); if (pub.trustPk != null) { bcpgOut.WritePacket(pub.trustPk); } if (pub.subSigs == null...
ComplexMethod
private object ParseByToken(TOKEN token) { switch (token) { case TOKEN.STRING: return this.ParseString(); case TOKEN.NUMBER: return this.ParseNumber(); case TOKEN.CURLY...
ComplexMethod
internal static IEnumerator<TElement> MergeSort<TElement, TKey>(List<TKey[]> keyArrayList, List<TElement[]> itemArrayList, List<Int32> itemArraySizeList, IComparer<TKey> comparer) { ...
ComplexMethod
void CalculateEffectiveConfiguration() { var currentBranchConfig = BranchConfigurationCalculator.GetBranchConfiguration(this, CurrentBranch); if (!currentBranchConfig.VersioningMode.HasValue) throw new Exception($"Configuration value for 'Versioning mode' for branch {cur...
ComplexMethod
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
8