content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
=============================================================================== = VIM -- 1.7 = =============================================================================== Vim -- , , , , . , ̣ Vim . 25-30 ...
__label__POS
0.922951
package appeng.api.stacks; import java.util.HashSet; import java.util.Set; import com.google.common.base.Preconditions; import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.Nullable; import net.minecraft.core.Registry; import net.neoforged.neoforge.registries.callback.BakeCallback; /** * M...
__label__POS
0.630377
package appeng.api.stacks; import java.util.List; import java.util.Objects; import com.mojang.datafixers.util.Pair; import com.mojang.serialization.Codec; import com.mojang.serialization.DataResult; import com.mojang.serialization.Dynamic; import com.mojang.serialization.DynamicOps; import com.mojang.serialization.Li...
__label__POS
0.861102
package appeng.api.stacks; import java.util.Collection; import java.util.Iterator; import java.util.NoSuchElementException; import it.unimi.dsi.fastutil.objects.Object2LongMap; import it.unimi.dsi.fastutil.objects.Object2LongMaps; import it.unimi.dsi.fastutil.objects.Object2LongSortedMap; import appeng.api.config.Fu...
__label__POS
0.608401
=============================================================================== = V I M { (`[gA) - Version 1.7 = =============================================================================== Vim ́Ã`[gAŐɂ͑̃R}h ɋ͂ȃGfB^[łB̃`[gÁAȂ Vim 𖜔\GfB ^[ƂĎgȂ悤ɂȂ̂ɏ\ȃR}hɂ‚Đ悤 ɂȂĂ܂B ...
__label__POS
0.902845
/* * The MIT License (MIT) * * Copyright (c) 2021 TeamAppliedEnergistics * * 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 limitation the rights ...
__label__POS
0.995862
package appeng.api.ids; import java.util.List; import java.util.Map; import java.util.function.Consumer; import com.google.common.collect.Maps; import com.mojang.serialization.Codec; import org.jetbrains.annotations.ApiStatus; import net.minecraft.core.GlobalPos; import net.minecraft.core.Holder; import net.minecra...
__label__POS
0.938321
/* * The MIT License (MIT) * * Copyright (c) 2021 TeamAppliedEnergistics * * 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 limitation the rights ...
__label__POS
0.999018
/* * The MIT License (MIT) * * Copyright (c) 2021 TeamAppliedEnergistics * * 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 limitation the rights ...
__label__POS
0.991954
package appeng.api.orientation; import net.minecraft.world.level.block.state.properties.BlockStateProperties; /** * Default implementations for {@link IOrientationStrategy}. */ public final class OrientationStrategies { private static final IOrientationStrategy none = new NoOrientationStrategy(); private st...
__label__POS
0.988785
package appeng.api.orientation; import java.util.Collection; import java.util.Collections; import java.util.List; import net.minecraft.core.Direction; import net.minecraft.world.item.context.BlockPlaceContext; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.block.state.proper...
__label__POS
0.92103
package appeng.api.storage; import java.util.Objects; import java.util.function.Supplier; import org.jetbrains.annotations.Nullable; import net.minecraft.network.chat.Component; import appeng.api.config.Actionable; import appeng.api.networking.security.IActionSource; import appeng.api.stacks.AEKey; import appeng.ap...
__label__POS
0.805077
package appeng.api.storage; import org.jetbrains.annotations.Nullable; import net.minecraft.ChatFormatting; import net.minecraft.network.chat.Component; import appeng.api.networking.IManagedGridNode; import appeng.core.localization.GuiText; /** * Describes the current connection status of a {@link ITerminalHost} t...
__label__POS
0.893419
// Base class for all options. class Property<string name, string type> { string Name = name; string Type = type; string Definition; } // Sets the description for the property that should be displayed to the user. class Desc<string description> { string Description = description; } // Marks the property as gl...
__label__POS
0.825806
package appeng.api.networking.crafting; import org.jetbrains.annotations.Nullable; import appeng.api.networking.IGridNode; import appeng.api.networking.security.IActionHost; import appeng.api.networking.security.IActionSource; /** * The source of a crafting simulation request. This allows the crafting simulation to...
__label__POS
0.949981
package appeng.api.networking.pathing; /** * Defines how AE2's channel capacities work. */ public enum ChannelMode { /** * Cables carry infinite channels, effectively disabling pathfinding and channel requirements. */ INFINITE(Integer.MAX_VALUE, 0), /** * Default channel capacity per cable...
__label__POS
0.924742
//===-- ClangForward.h ------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
__label__POS
0.999822
package appeng.api.implementations.items; import java.util.List; import com.mojang.serialization.Codec; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.network.codec.StreamCodec; import appeng.api.util.AEColor; /** * Describes the custom colors to show o n a memory card item. * * @param top1 ...
__label__POS
0.942521
package appeng.api.implementations.menuobjects; import java.util.function.Supplier; import net.minecraft.core.HolderLookup; import net.minecraft.nbt.CompoundTag; import net.minecraft.world.item.ItemStack; import net.minecraft.world.level.ItemLike; import appeng.api.upgrades.IUpgradeInventory; import appeng.api.upgra...
__label__POS
0.715144
package appeng.api.integrations.emi; import java.util.List; import com.google.common.collect.ImmutableList; /** * Register your {@link EmiStackConverter} instances for JEI here. */ public final class EmiStackConverters { private static List<EmiStackConverter> converters = ImmutableList.of(); private EmiSt...
__label__POS
0.97143
package appeng.api.integrations.rei; import java.util.List; import com.google.common.collect.ImmutableList; /** * Register your {@link IngredientConverter} instances for JEI here. */ public final class IngredientConverters { private static List<IngredientConverter<?>> converters = ImmutableList.of(); priv...
__label__POS
0.967922
package appeng.core.localization; import java.text.DecimalFormat; import java.text.MessageFormat; import java.util.Arrays; import java.util.List; import java.util.concurrent.TimeUnit; import com.mojang.blaze3d.platform.InputConstants; import org.jetbrains.annotations.NotNull; import net.minecraft.ChatFormatting; im...
__label__POS
0.913583
/* * This file is part of Applied Energistics 2. * Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved. * * Applied Energistics 2 is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either ver...
__label__POS
0.864128
package appeng.core.definitions; import java.util.function.Supplier; import javax.annotation.Nullable; import net.minecraft.core.BlockPos; import net.minecraft.world.level.BlockGetter; import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.entity.BlockEntityType; import net...
__label__POS
0.617804
package appeng.core.network.serverbound; import net.minecraft.network.RegistryFriendlyByteBuf; import net.minecraft.network.codec.StreamCodec; import net.minecraft.server.level.ServerPlayer; import appeng.core.network.CustomAppEngPayload; import appeng.core.network.ServerboundPacket; import appeng.menu.me.crafting.C...
__label__POS
0.919516
package appeng.core.network.serverbound; import org.jetbrains.annotations.NotNull; import net.minecraft.network.RegistryFriendlyByteBuf; import net.minecraft.network.codec.StreamCodec; import net.minecraft.server.level.ServerPlayer; import appeng.core.definitions.AEAttachmentTypes; import appeng.core.network.CustomA...
__label__POS
0.951976
package appeng.core.network.serverbound; import net.minecraft.network.RegistryFriendlyByteBuf; import net.minecraft.network.codec.StreamCodec; import net.minecraft.server.level.ServerPlayer; import appeng.core.network.CustomAppEngPayload; import appeng.core.network.ServerboundPacket; import appeng.menu.AEBaseMenu; ...
__label__POS
0.893765
package appeng.core.network.serverbound; import org.jetbrains.annotations.Nullable; import net.minecraft.network.RegistryFriendlyByteBuf; import net.minecraft.network.codec.StreamCodec; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.item.ItemStack; import appeng.api.util.AEColor; import ...
__label__POS
0.903422
package appeng.core.network.serverbound; import net.minecraft.network.RegistryFriendlyByteBuf; import net.minecraft.network.codec.StreamCodec; import net.minecraft.server.level.ServerPlayer; import appeng.api.stacks.AEKeyType; import appeng.core.network.CustomAppEngPayload; import appeng.core.network.ServerboundPacke...
__label__POS
0.893008
package appeng.core.network.serverbound; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import net.minecraft.network.RegistryFriendlyByteBuf; import net.minecraft.network.codec.StreamCodec; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.level.ChunkPos; import net.neoforged.neofo...
__label__POS
0.688717
package appeng.core.network.serverbound; import java.util.Optional; import org.jetbrains.annotations.Nullable; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.network.RegistryFriendlyByteBuf; import net.minecraft.network.codec.StreamCodec; import net.minecraft.server.level.ServerPlayer; import ne...
__label__POS
0.681421
package appeng.core.network.clientbound; import java.util.function.Consumer; import io.netty.buffer.Unpooled; import net.minecraft.core.RegistryAccess; import net.minecraft.network.RegistryFriendlyByteBuf; import net.minecraft.network.codec.StreamCodec; import net.minecraft.world.entity.player.Player; import net.mi...
__label__POS
0.679867
package appeng.core.network.clientbound; import java.util.Optional; import net.minecraft.network.RegistryFriendlyByteBuf; import net.minecraft.network.chat.ComponentSerialization; import net.minecraft.network.codec.StreamCodec; import net.minecraft.world.entity.player.Player; import appeng.api.storage.ILinkStatus; i...
__label__POS
0.70798
package appeng.core.network.clientbound; import net.minecraft.network.RegistryFriendlyByteBuf; import net.minecraft.network.codec.StreamCodec; import net.minecraft.world.entity.player.Player; import net.neoforged.api.distmarker.Dist; import net.neoforged.api.distmarker.OnlyIn; import appeng.core.network.ClientboundP...
__label__POS
0.775194
package appeng.core.network.clientbound; import java.util.Optional; import net.minecraft.core.BlockPos; import net.minecraft.network.RegistryFriendlyByteBuf; import net.minecraft.network.codec.ByteBufCodecs; import net.minecraft.network.codec.StreamCodec; import net.minecraft.world.entity.player.Player; import net.m...
__label__POS
0.607924
package appeng.blockentity.misc; import org.jetbrains.annotations.Nullable; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.crafting.RecipeHolder; import net.minecraft.world.level.Level; import appeng.recipes.AERecipeTypes; import appeng.recipes.handlers.ChargerRecipe; public class Charge...
__label__POS
0.995346
package appeng.blockentity.storage; import net.minecraft.core.BlockPos; import net.minecraft.core.HolderLookup; import net.minecraft.nbt.CompoundTag; import net.minecraft.network.RegistryFriendlyByteBuf; import net.minecraft.world.InteractionHand; import net.minecraft.world.entity.player.Player; import net.minecraft.w...
__label__POS
0.764363
package appeng.menu.locator; import java.util.Optional; import org.jetbrains.annotations.Nullable; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.world.entity.player.Player; import net.minecraft.world.item.ItemStack; import net.minecraft.world.phys.BlockHitResult; import appeng.integration.modul...
__label__POS
0.843709
package appeng.menu.slot; import java.util.List; import org.jetbrains.annotations.Nullable; import net.minecraft.network.chat.Component; import net.minecraft.world.item.ItemStack; import appeng.api.inventories.InternalInventory; import appeng.api.storage.StorageCells; import appeng.client.Point; import appeng.core....
__label__POS
0.946295
package appeng.menu.me.items; import net.minecraft.world.entity.player.Inventory; import net.minecraft.world.inventory.MenuType; import appeng.api.inventories.ISegmentedInventory; import appeng.api.networking.IGridNode; import appeng.helpers.WirelessCraftingTerminalMenuHost; import appeng.menu.implementations.MenuTyp...
__label__POS
0.967089
(ns applied-science.js-interop.impl (:require-macros [applied-science.js-interop :as j])) (defn wrap-key "Returns `k` or, if it is a keyword, its name." [k] (cond-> k (keyword? k) (name))) (defn ^boolean in?* [k* obj] (js-in k* obj)) (defn ^boolean contains?* [obj k*] (and (some? obj) (i...
__label__POS
0.792781
package appeng.datagen.providers.recipes; import java.util.concurrent.CompletableFuture; import net.minecraft.core.HolderLookup; import net.minecraft.data.PackOutput; import net.minecraft.data.recipes.RecipeOutput; import net.minecraft.world.item.Items; import appeng.core.AppEng; import appeng.core.definitions.AEIte...
__label__POS
0.86532
set remap set noterse set wrapscan " to set the height of the tower, change the digit in the following " two lines to the height you want (select from 1 to 9) map t 7 map! t 7 map L 1G/t X/^0 $P1GJ$An$BGC0e$X0E0F$X/T @f @h $A1GJ@f0l$Xn$PU map g IL map J /^0[^t]*$ map X x map P p map U L map A "fyl map B "hyl map C "fp...
__label__POS
0.971757
/* * This file is part of Applied Energistics 2. * Copyright (c) 2021, TeamAppliedEnergistics, All rights reserved. * * Applied Energistics 2 is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either...
__label__POS
0.970347
package appeng.datagen.providers.models; import static appeng.core.AppEng.makeId; import java.util.Locale; import net.minecraft.data.PackOutput; import net.neoforged.neoforge.common.data.ExistingFileHelper; import appeng.api.util.AEColor; import appeng.core.AppEng; import appeng.core.definitions.AEParts; import app...
__label__POS
0.798773
package appeng.helpers.externalstorage; import com.google.common.primitives.Ints; import org.jetbrains.annotations.NotNull; import net.minecraft.world.item.ItemStack; import net.neoforged.neoforge.items.IItemHandler; import appeng.api.behaviors.GenericInternalInventory; import appeng.api.config.Actionable; import a...
__label__POS
0.806537
package appeng.helpers.externalstorage; import com.google.common.primitives.Ints; import org.jetbrains.annotations.NotNull; import net.neoforged.neoforge.fluids.FluidStack; import net.neoforged.neoforge.fluids.capability.IFluidHandler; import appeng.api.behaviors.GenericInternalInventory; import appeng.api.config.A...
__label__POS
0.964224
package appeng.helpers.patternprovider; import org.jetbrains.annotations.Nullable; import appeng.api.implementations.blockentities.PatternContainerGroup; import appeng.api.inventories.InternalInventory; import appeng.api.networking.IGrid; /** * Interface implemented by machines connected to the network if they supp...
__label__POS
0.754809
/* * This file is part of Applied Energistics 2. * Copyright (c) 2013 - 2017, AlgorithmX2, All rights reserved. * * Applied Energistics 2 is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either ver...
__label__POS
0.770209
package appeng.parts.automation; import java.util.List; import appeng.api.behaviors.StackExportStrategy; import appeng.api.behaviors.StackTransferContext; import appeng.api.config.Actionable; import appeng.api.stacks.AEKey; /** * Simply iterates over a list of {@link StackExportStrategy} and exposes them as a singl...
__label__POS
0.972396
package appeng.parts.automation; import javax.annotation.Nullable; import com.google.common.primitives.Ints; import net.minecraft.world.item.ItemStack; import net.neoforged.neoforge.fluids.FluidStack; import net.neoforged.neoforge.fluids.capability.IFluidHandler; import net.neoforged.neoforge.items.IItemHandler; imp...
__label__POS
0.984136
package appeng.parts.automation; import org.jetbrains.annotations.Nullable; import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; import net.minecraft.server.level.ServerLevel; import net.neoforged.neoforge.capabilities.BlockCapability; import net.neoforged.neoforge.capabilities.BlockCapabilityCach...
__label__POS
0.755547
package appeng.parts.automation; import java.util.HashSet; import java.util.Set; import appeng.api.behaviors.StackTransferContext; import appeng.api.config.Actionable; import appeng.api.networking.energy.IEnergySource; import appeng.api.networking.security.IActionSource; import appeng.api.networking.storage.IStorageS...
__label__POS
0.74654
package appeng.parts.automation; import java.util.ArrayList; import java.util.Collections; import java.util.IdentityHashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.UUID; import java.util.function.Predicate; import org.jetbrains.annotations.Nullable; import net.minecraft.c...
__label__POS
0.739244
package appeng.parts.automation; import java.util.List; import net.minecraft.core.component.DataComponents; import net.minecraft.core.registries.Registries; import net.minecraft.network.chat.Component; import net.minecraft.world.item.CreativeModeTab; import net.minecraft.world.item.ItemStack; import net.minecraft.wor...
__label__POS
0.96265
package appeng.parts.automation; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; import net.minecraft.server.level.ServerLevel; import net.neoforged.neoforge.capabilities.BlockCapability; import net.neoforged.neoforge.capabilities.Block...
__label__POS
0.692563
package sweet import ( "testing" "time" ) func TestWebstatusCollectedTimeFormatted(t *testing.T) { cases := map[time.Time]string{ time.Now(): "Now", time.Now().Add(10 * time.Second): "Now", time.Now().Add(-10 * time.Second): "10 seconds", time.Now().Add(-59 * time.Second...
__label__POS
0.600876
package sweet import ( "testing" "time" ) func TestUtilTimeAgo(t *testing.T) { cases := map[time.Time]string{ time.Now(): "Now", time.Now().Add(10 * time.Second): "Now", time.Now().Add(-10 * time.Second): "10 seconds", time.Now().Add(-59 * time.Second): "59 seconds"...
__label__POS
0.781003
package sweet import ( "fmt" "github.com/mgutz/ansi" "log" "os" "strings" "time" ) //// logging convenience methods func (Opts *SweetOptions) LogFatal(message string) { if Opts.UseSyslog { Opts.Syslog.Emerg(message) } else { log.Println(ansi.Color(message, "red+b:white")) } os.Exit(1) } func (Opts *Swee...
__label__POS
0.912865
/* edit.c */ int edit(int cmdchar, int startln, long count); void edit_putchar(int c, int highlight); char_u *prompt_text(void); int prompt_curpos_editable(void); void edit_unputchar(void); void display_dollar(colnr_T col); void change_indent(int type, int amount, int round, int replaced, int call_changed_bytes); void ...
__label__POS
0.782742
/* os_amiga.c */ void win_resize_on(void); void win_resize_off(void); void mch_write(char_u *p, int len); int mch_inchar(char_u *buf, int maxlen, long time, int tb_change_cnt); int mch_char_avail(void); long_u mch_avail_mem(int special); void mch_delay(long msec, int ignoreinput); void mch_suspend(void); void mch_init(...
__label__POS
0.878743
/* os_win32.c */ HINSTANCE vimLoadLib(char *name); HINSTANCE find_imported_module_by_funcname(HINSTANCE hInst, const char *funcname); void *get_dll_import_func(HINSTANCE hInst, const char *funcname); int dyn_libintl_init(void); void dyn_libintl_end(void); void PlatformId(void); void mch_setmouse(int on); void mch_beval...
__label__POS
0.756968
/* ops.c */ int get_op_type(int char1, int char2); int op_on_lines(int op); int op_is_change(int op); int get_op_char(int optype); int get_extra_op_char(int optype); void op_shift(oparg_T *oap, int curs_top, int amount); void shift_line(int left, int round, int amount, int call_changed_bytes); void op_reindent(oparg_T ...
__label__POS
0.840231
/* mbyte.c */ int enc_canon_props(char_u *name); char_u *mb_init(void); int bomb_size(void); void remove_bom(char_u *s); int mb_get_class(char_u *p); int mb_get_class_buf(char_u *p, buf_T *buf); int dbcs_class(unsigned lead, unsigned trail); int latin_char2len(int c); int latin_char2bytes(int c, char_u *buf); int latin...
__label__POS
0.984695
/* screen.c */ void redraw_later(int type); void redraw_win_later(win_T *wp, int type); void redraw_later_clear(void); void redraw_all_later(int type); void redraw_curbuf_later(int type); void redraw_buf_later(buf_T *buf, int type); void redraw_buf_and_status_later(buf_T *buf, int type); int redraw_asap(int type); void...
__label__POS
0.737128
/* syntax.c */ void syn_set_timeout(proftime_T *tm); void syntax_start(win_T *wp, linenr_T lnum); void syn_stack_free_all(synblock_T *block); void syn_stack_apply_changes(buf_T *buf); void syntax_end_parsing(linenr_T lnum); int syntax_check_changed(linenr_T lnum); int get_syntax_attr(colnr_T col, int *can_spell, int ke...
__label__POS
0.770973
/* eval.c */ void eval_init(void); void eval_clear(void); void set_internal_string_var(char_u *name, char_u *value); int var_redir_start(char_u *name, int append); void var_redir_str(char_u *value, int value_len); void var_redir_stop(void); int eval_charconvert(char_u *enc_from, char_u *enc_to, char_u *fname_from, char...
__label__POS
0.892736
/* ex_getln.c */ char_u *getcmdline(int firstc, long count, int indent); char_u *getcmdline_prompt(int firstc, char_u *prompt, int attr, int xp_context, char_u *xp_arg); int text_locked(void); void text_locked_msg(void); char_u *get_text_locked_msg(void); int curbuf_locked(void); int allbuf_locked(void); char_u *getexl...
__label__POS
0.683878
/* list.c */ void list_add_watch(list_T *l, listwatch_T *lw); void list_rem_watch(list_T *l, listwatch_T *lwrem); void list_fix_watch(list_T *l, listitem_T *item); list_T *list_alloc(void); int rettv_list_alloc(typval_T *rettv); void rettv_list_set(typval_T *rettv, list_T *l); void list_unref(list_T *l); int list_free_...
__label__POS
0.662582
/* os_mswin.c */ void mch_exit(int r); void mch_early_init(void); int mch_input_isatty(void); void mch_settitle(char_u *title, char_u *icon); void mch_restore_title(int which); int mch_can_restore_title(void); int mch_can_restore_icon(void); int mch_FullName(char_u *fname, char_u *buf, int len, int force); int mch_isFu...
__label__POS
0.654216
/* misc2.c */ int virtual_active(void); int getviscol(void); int getviscol2(colnr_T col, colnr_T coladd); int coladvance_force(colnr_T wcol); int coladvance(colnr_T wcol); int getvpos(pos_T *pos, colnr_T wcol); int inc_cursor(void); int inc(pos_T *lp); int incl(pos_T *lp); int dec_cursor(void); int dec(pos_T *lp); int ...
__label__POS
0.943196
/* fileio.c */ void filemess(buf_T *buf, char_u *name, char_u *s, int attr); int readfile(char_u *fname, char_u *sfname, linenr_T from, linenr_T lines_to_skip, linenr_T lines_to_read, exarg_T *eap, int flags); int is_dev_fd_file(char_u *fname); int prep_exarg(exarg_T *eap, buf_T *buf); void set_file_options(int set_opt...
__label__POS
0.742912
/* regexp.c */ int re_multiline(regprog_T *prog); int re_lookbehind(regprog_T *prog); char_u *skip_regexp(char_u *startp, int dirc, int magic, char_u **newp); int vim_regcomp_had_eol(void); void free_regexp_stuff(void); reg_extmatch_T *ref_extmatch(reg_extmatch_T *em); void unref_extmatch(reg_extmatch_T *em); char_u *r...
__label__POS
0.934209
/* dict.c */ dict_T *dict_alloc(void); dict_T *dict_alloc_lock(int lock); int rettv_dict_alloc(typval_T *rettv); void rettv_dict_set(typval_T *rettv, dict_T *d); void dict_free_contents(dict_T *d); void dict_unref(dict_T *d); int dict_free_nonref(int copyID); void dict_free_items(int copyID); dictitem_T *dictitem_alloc...
__label__POS
0.601881
/* search.c */ int search_regcomp(char_u *pat, int pat_save, int pat_use, int options, regmmatch_T *regmatch); char_u *get_search_pat(void); char_u *reverse_text(char_u *s); void save_re_pat(int idx, char_u *pat, int magic); void save_search_patterns(void); void restore_search_patterns(void); void free_search_patterns(...
__label__POS
0.996269
/* charset.c */ int init_chartab(void); int buf_init_chartab(buf_T *buf, int global); void trans_characters(char_u *buf, int bufsize); char_u *transstr(char_u *s); char_u *str_foldcase(char_u *str, int orglen, char_u *buf, int buflen); char_u *transchar(int c); char_u *transchar_byte(int c); void transchar_nonprint(cha...
__label__POS
0.960644
/* misc1.c */ int get_indent(void); int get_indent_lnum(linenr_T lnum); int get_indent_buf(buf_T *buf, linenr_T lnum); int get_indent_str(char_u *ptr, int ts, int list); int set_indent(int size, int flags); int get_number_indent(linenr_T lnum); int get_breakindent_win(win_T *wp, char_u *line); int open_line(int dir, in...
__label__POS
0.868701
// Creates a Python class for an `Abstract_simplex`. void wrap_product(py::module &mod){ using s = ctl::Product_cell< ctl::Abstract_simplex, ctl::Abstract_simplex >; py::class_<s>(mod, std::string("Simplex_product").c_str()) //Default no-args constructor .def(py::init()) .def(py::init<typename s::Cell...
__label__POS
0.758232
// Creates a Python class for a `Cube.` void wrap_cube(py::module &mod){ using s = ctl::Cube; typedef s::value_type v; py::class_<s>(mod, std::string("Cube").c_str()) //Default no-args constructor .def(py::init()) .def("__init__", [](s &instance, std::list<v> arg) { new (&instance) s(s...
__label__POS
0.930569
// Creates a Python class for an `Abstract_simplex`. void wrap_simplex(py::module &mod){ using s = ctl::Abstract_simplex; typedef s::vertex_type v; py::class_<s>(mod, std::string("Abstract_simplex").c_str()) //Default no-args constructor .def(py::init()) .def("__init__", [](s &instance, std::li...
__label__POS
0.756786
// clique_output_iterator.h // Gabe Weaver // August 20, 2008 // // Exports Clique_output_iterator class // Class: Clique_output_iterator // // Simply couts the set representing the clique #ifndef _CTL_CLIQUE_OUTPUT_ITERATOR_H_ #define _CTL_CLIQUE_OUTPUT_ITERATOR_H_ #include <iostream> #include <iterator> #include ...
__label__POS
0.786637
package main import ( "encoding/json" "io/ioutil" "net/http" "net/http/httptest" "testing" "github.com/applikatoni/applikatoni/models" ) func TestNotifySlack(t *testing.T) { target := &models.Target{Name: "staging"} application := &models.Application{ GitHubOwner: "shipping-co", GitHubRepo: "main-web-a...
__label__POS
0.763186
package main import ( "net/http" "net/http/httptest" "testing" "github.com/applikatoni/applikatoni/models" ) func TestNotifyBugsnag(t *testing.T) { target := &models.Target{Name: "staging", BugsnagApiKey: "APIKEY"} application := &models.Application{ GitHubOwner: "shipping-co", GitHubRepo: "main-web-app"...
__label__POS
0.835133
package models import "testing" func TestValidStages(t *testing.T) { availableStages := []DeploymentStage{"ONE", "TWO", "THREE", "FOUR"} target := &Target{AvailableStages: availableStages} tests := []struct { stages []DeploymentStage expectedResult bool }{ {[]DeploymentStage{"ONE", "TWO", "THREE"},...
__label__POS
0.699465
package models type Target struct { Name string `json:"name"` DeploymentUser string `json:"deployment_user"` DeploymentSshKey string `json:"deployment_ssh_key"` DeployUsernames []string `json:"deploy_usernames"` Hosts []*Host `json:"hos...
__label__POS
0.999513
package com.applikeysolutions.cosmocalendar; import android.os.AsyncTask; import com.applikeysolutions.cosmocalendar.adapter.MonthAdapter; import com.applikeysolutions.cosmocalendar.model.Month; import com.applikeysolutions.cosmocalendar.settings.SettingsManager; import com.applikeysolutions.cosmocalendar.utils.Calen...
__label__POS
0.976414
package com.applikeysolutions.cosmocalendar.settings; import android.support.v7.widget.LinearLayoutManager; import com.applikeysolutions.cosmocalendar.settings.appearance.AppearanceInterface; import com.applikeysolutions.cosmocalendar.settings.appearance.AppearanceModel; import com.applikeysolutions.cosmocalendar.set...
__label__POS
0.82192
package com.applikeysolutions.cosmocalendar.utils; import android.content.Context; import android.content.res.Resources; import android.graphics.BitmapFactory; import android.view.WindowManager; import com.applikeysolutions.cosmocalendar.settings.SettingsManager; import com.applikeysolutions.cosmocalendar.model.Day; ...
__label__POS
0.973178
// // VisualisationHelper.swift // Player // // Created by Boris Bondarenko on 7/28/17. // Copyright © 2017 Applikey Solutions. All rights reserved. // import Foundation import AudioKit import AudioKitUI class VisualisationHelper { private let avgFilterDepth = 8 private let waveScale: Float = 1.9 ...
__label__POS
0.734718
package com.applikeysolutions.cosmocalendar.utils; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import com.applikeysolutions.cosmocalendar.model.Day; import java.util.Calendar; import java.util.Date; public class DateUtils { public static Calendar getCalendar(Date date...
__label__POS
0.958894
package com.applikeysolutions.cosmocalendar.model; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.List; import java.util.Locale; public class Month { private List<Day> days; private Day firstDay; public Month(Day firstDay, List<Day> days) { ...
__label__POS
0.83781
package com.applikeysolutions.cosmocalendar.selection; import android.support.annotation.NonNull; import android.support.v4.util.Pair; import com.applikeysolutions.cosmocalendar.model.Day; import com.applikeysolutions.cosmocalendar.utils.DateUtils; public class RangeSelectionManager extends BaseSelectionManager { ...
__label__POS
0.728289
package com.applikeysolutions.cosmocalendar.selection; import android.support.annotation.NonNull; import com.applikeysolutions.cosmocalendar.model.Day; import com.applikeysolutions.cosmocalendar.selection.criteria.BaseCriteria; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import ...
__label__POS
0.724298
package com.applikeysolutions.cosmocalendar.selection; import com.applikeysolutions.cosmocalendar.model.Day; import com.applikeysolutions.cosmocalendar.selection.criteria.BaseCriteria; import java.util.ArrayList; import java.util.List; public abstract class BaseCriteriaSelectionManager extends BaseSelectionManager {...
__label__POS
0.957536
package com.applikeysolutions.cosmocalendar.settings.lists; import java.util.Set; import java.util.TreeSet; public class DisabledDaysCriteria { private DisabledDaysCriteriaType criteriaType = DisabledDaysCriteriaType.DAYS_OF_MONTH; private Set<Integer> days; private static final int MAX_DAYS_COUNT_IN_MO...
__label__POS
0.821672
package environment import ( "bufio" "github.com/Appliscale/cloud-security-audit/configuration" "github.com/Appliscale/perun/helpers" "github.com/aws/aws-sdk-go/aws/endpoints" "os" "strconv" "strings" ) var Regions = getAllRegions() func CheckAWSConfigFiles(config *configuration.Config) bool { homeDir, pathE...
__label__POS
0.850096
package com.applikeysolutions.cosmocalendar.settings.appearance; public class AppearanceModel implements AppearanceInterface { //Background color of whole calendar private int calendarBackgroundColor; //Text color of month title private int monthTextColor; //Text color of day that month doesn't ...
__label__POS
0.721663
package com.applikeysolutions.cosmocalendar.settings.lists.connected_days; import java.util.Set; public class ConnectedDays { private Set<Long> days; private int textColor; private int selectedTextColor; private int disabledTextColor; public ConnectedDays(Set<Long> days, int textColor, int sele...
__label__POS
0.809865
package com.applikeysolutions.cosmocalendar.settings.lists.connected_days; import com.applikeysolutions.cosmocalendar.model.Day; import com.applikeysolutions.cosmocalendar.utils.DateUtils; import java.util.ArrayList; import java.util.Calendar; import java.util.List; public class ConnectedDaysManager { private s...
__label__POS
0.979484
package report import ( "bytes" "sort" "strings" "github.com/aws/aws-sdk-go/service/ec2" ) type SortableTags struct { Tags map[string]string Keys []string } func NewSortableTags() *SortableTags { return &SortableTags{Tags: make(map[string]string)} } func (st *SortableTags) Add(tags []*ec2.Tag) { for _, ta...
__label__POS
0.657831