content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
package com.alienpants.leafpicrevived.util; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.os.Environment; import android.util.Log; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java...
__label__POS
0.98857
package com.alienpants.leafpicrevived.util; import android.content.Context; import android.content.res.Resources; import android.graphics.Point; import android.util.DisplayMetrics; import android.view.Display; import android.view.WindowManager; /** * Created by dnld on 11/03/16. */ public class Measure { publi...
__label__POS
0.890691
package com.alienpants.leafpicrevived.progress; import androidx.annotation.Nullable; import java.util.ArrayList; public class ErrorCause { private String title; private ArrayList<String> causes; public ErrorCause(String title, ArrayList<String> causes) { this.title = title; this.causes...
__label__POS
0.972187
package net.countercraft.movecraft.craft; import net.countercraft.movecraft.Movecraft; import net.countercraft.movecraft.MovecraftChunk; import net.countercraft.movecraft.MovecraftLocation; import net.countercraft.movecraft.config.Settings; import org.bukkit.Bukkit; import org.bukkit.Chunk; import org.bukkit.World; im...
__label__POS
0.656731
package com.alienpants.leafpicrevived.progress; import android.view.View; import com.alienpants.leafpicrevived.R; import org.horaapps.liz.ThemedViewHolder; import org.horaapps.liz.ui.ThemedLinearLayout; import org.horaapps.liz.ui.ThemedTextView; import butterknife.BindView; import butterknife.ButterKnife; public c...
__label__POS
0.958056
package com.alienpants.leafpicrevived.progress; import android.content.Context; import android.view.LayoutInflater; import android.view.ViewGroup; import androidx.annotation.NonNull; import com.alienpants.leafpicrevived.R; import org.horaapps.liz.ThemedAdapter; import java.util.ArrayList; import java.util.List; p...
__label__POS
0.855107
package net.countercraft.movecraft.commands; import net.countercraft.movecraft.MovecraftRotation; import net.countercraft.movecraft.craft.Craft; import net.countercraft.movecraft.craft.CraftManager; import net.countercraft.movecraft.craft.type.CraftType; import net.countercraft.movecraft.localisation.I18nSupport; impo...
__label__POS
0.825778
package net.countercraft.movecraft.commands; import net.countercraft.movecraft.Movecraft; import net.countercraft.movecraft.craft.CraftManager; import net.countercraft.movecraft.localisation.I18nSupport; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.command.TabExecutor; ...
__label__POS
0.994208
package com.alienpants.leafpicrevived.settings; import android.content.DialogInterface; import android.view.LayoutInflater; import android.view.View; import android.widget.SeekBar; import android.widget.TextView; import androidx.appcompat.app.AlertDialog; import androidx.cardview.widget.CardView; import com.alienpan...
__label__POS
0.878563
package net.countercraft.movecraft.util; import net.countercraft.movecraft.localisation.I18nSupport; import java.util.ArrayList; import java.util.Collections; import java.util.List; import static org.bukkit.util.ChatPaginator.CLOSED_CHAT_PAGE_HEIGHT; @Deprecated(forRemoval = true) public class TopicPaginator { ...
__label__POS
0.992265
package net.countercraft.movecraft.util; import net.countercraft.movecraft.localisation.I18nSupport; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.format.NamedTextColor; import org.bukkit.ChatColor; import org.jetbrains.annotations.NotNull; public class ChatUtils { @Deprecated(forRemo...
__label__POS
0.983753
package net.countercraft.movecraft.util; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.event.ClickEvent; import net.kyori.adventure.text.format.NamedTextColor; import org.bukkit.util.ChatPaginator; import org.jetbrains.annotations.NotNull; import java.util.ArrayList; import java.util.List...
__label__POS
0.823846
/* * 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"); you ...
__label__POS
0.739862
import java.io.*; import java.lang.reflect.Array; import java.lang.reflect.Constructor; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Util { public static String getDefaultTestCmd(){ String osName = System.getProperty("os.name"); if (osName.startsWith("M...
__label__POS
0.998795
package com.alienpants.leafpicrevived.adapters; import android.util.SparseArray; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentStatePagerAdapter; import androidx.viewpager.wi...
__label__POS
0.766109
import com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl; import org.aopalliance.aop.Advice; import org.aopalliance.intercept.MethodInterceptor; import org.springframework.aop.Advisor; import org.springframework.aop.aspectj.AspectJAroundAdvice; import org.springframework.aop.aspectj.AspectJExpressionPointcut; ...
__label__POS
0.603438
import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; public class ClassFiles { public static String classAsFile(final Class<?> clazz) { return classAsFile(clazz, true); } public static String classAsFile(final Class<?> clazz, boolean suffix) { Strin...
__label__POS
0.988596
import javassist.ClassPool; import javassist.CtClass; import javassist.CtMethod; import sun.reflect.ReflectionFactory; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Reflec...
__label__POS
0.941016
package com.alienpants.leafpicrevived.data; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import androidx.annotation.NonNull; import com.alienpants.leafpicrevived.da...
__label__POS
0.742226
import common.Util; import gadgets.*; import org.springframework.beans.factory.ObjectFactory; import javax.xml.transform.Templates; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Proxy; import java.util.HashMap; import java.util.Map; public class Fastjson4_ObjectFactoryDelegatingInvocationHandle...
__label__POS
0.970487
package com.alienpants.leafpicrevived.data; import android.os.Parcel; import android.os.Parcelable; import com.alienpants.leafpicrevived.data.filter.FilterMode; import com.alienpants.leafpicrevived.data.sort.SortingMode; import com.alienpants.leafpicrevived.data.sort.SortingOrder; import java.io.Serializable; /** ...
__label__POS
0.843428
package common; import java.io.*; import java.lang.reflect.Array; import java.lang.reflect.Constructor; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Util { public static String getDefaultTestCmd(){ String osName = System.getProperty("os.name"); if (osN...
__label__POS
0.999024
package common; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; public class ClassFiles { public static String classAsFile(final Class<?> clazz) { return classAsFile(clazz, true); } public static String classAsFile(final Class<?> clazz, boolean suffix...
__label__POS
0.994643
package common; import sun.reflect.ReflectionFactory; import java.lang.reflect.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Reflections { public static Field getField(Class clazz,String fieldName) throws NoSuchFieldException { while (true){ Fi...
__label__POS
0.957758
package net.countercraft.movecraft.features.contacts; import net.countercraft.movecraft.craft.Craft; import net.countercraft.movecraft.craft.CraftManager; import net.countercraft.movecraft.localisation.I18nSupport; import net.countercraft.movecraft.util.ChatUtils; import net.countercraft.movecraft.util.ComponentPagina...
__label__POS
0.7931
package com.alienpants.leafpicrevived.data; import android.content.Context; import android.database.Cursor; import android.os.Parcel; import android.os.Parcelable; import android.provider.MediaStore; import com.alienpants.leafpicrevived.data.filter.FilterMode; import com.alienpants.leafpicrevived.data.sort.SortingMod...
__label__POS
0.628777
package com.alienpants.leafpicrevived.views; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.view.animation.AccelerateInterpolator; import android.view.animation.DecelerateInterpolator; import androidx.coordinatorlayout.widget.CoordinatorLayout; import androi...
__label__POS
0.993546
package core import ( "davinci/common/log" "os" "testing" ) func init() { log.AddLogWriter(os.Stdout) } func TestElasticSearch_GetNodes(t *testing.T) { elastic := &ElasticSearch{ Url: "http://192.168.159.135:9200/", User: "kibana", Passwd: "123456", } nodes := elastic.GetNodes() log.Output(nodes)...
__label__POS
0.870091
package net.countercraft.movecraft.features.fading; import net.countercraft.movecraft.config.Settings; import net.countercraft.movecraft.craft.Craft; import net.countercraft.movecraft.processing.WorldManager; import net.countercraft.movecraft.util.MathUtils; import org.jetbrains.annotations.NotNull; import java.util....
__label__POS
0.975945
package com.alienpants.leafpicrevived.views; /** * Found at http://stackoverflow.com/questions/7814017/is-it-possible-to-disable-scrolling-on-a-viewpager. * Convenient way to temporarily disable ViewPager navigation while interacting with ImageView. * <p/> * Julia Zudikova */ import android.content.Context; impo...
__label__POS
0.969468
package com.alienpants.leafpicrevived.views; import android.annotation.TargetApi; import android.content.Context; import android.os.Build; import android.util.AttributeSet; import android.widget.RelativeLayout; /** * Created by dnld on 09/05/16. */ public class SquareRelativeLayout extends RelativeLayout { pub...
__label__POS
0.982082
package core import ( "database/sql" "davinci/common" "davinci/common/log" "fmt" _ "github.com/ClickHouse/clickhouse-go" "strings" ) var excludeClickHouseDB = []string{ "information_schema", "default", "system", } type ClickHouse struct { conn *sql.DB Host string Port int User string Passwd str...
__label__POS
0.74278
package com.alienpants.leafpicrevived.timeline; import androidx.annotation.NonNull; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Locale; /** * Grouping for Timeline items. */ public enum GroupingMode { /** * Group the Timeline items by DAY. * eg: All media taken on...
__label__POS
0.791273
package core import ( "davinci/common" "davinci/common/log" "fmt" "strings" ) var excludeGsDB = []string{ "template1", "template0", } var excludeGsSchema = []string{ "pg_toast", "cstore", "pkg_service", "dbe_perf", "snapshot", "blockchain", "pg_catalog", "sqladvisor", "dbe_pldebugger", "dbe_pldevelop...
__label__POS
0.960981
package net.countercraft.movecraft.processing.effects; import net.countercraft.movecraft.Movecraft; import net.countercraft.movecraft.processing.WorldManager; import org.bukkit.scheduler.BukkitRunnable; import org.jetbrains.annotations.NotNull; import java.util.Objects; /** * A wrapper effect that allows delaying t...
__label__POS
0.974573
package core import ( "database/sql" "davinci/common" "davinci/common/log" "davinci/core/pgsql" "encoding/hex" "errors" "fmt" "github.com/c-bata/go-prompt" _ "github.com/lib/pq" "strings" "time" ) var excludePgDB = []string{ "template1", "template0", } var excludePgSchema = []string{ "pg_toast", "pg_t...
__label__POS
0.627495
package core import ( "davinci/common" "davinci/common/log" "fmt" "io/ioutil" "net/http" "strings" ) type ElasticSearch struct { Url string User string Passwd string endpoint string Check bool } func (e *ElasticSearch) genUrl(path string) string { if e.endpoint == "" { if strings.HasSuffi...
__label__POS
0.832381
package com.alienpants.leafpicrevived.about; import android.content.Context; import android.view.LayoutInflater; import android.view.ViewGroup; import com.alienpants.leafpicrevived.R; import org.horaapps.liz.ThemedAdapter; import java.util.ArrayList; /** * Created by dnld on 04/03/18. */ public class Contributo...
__label__POS
0.979172
package net.countercraft.movecraft.processing.functions; import net.countercraft.movecraft.craft.type.CraftType; import net.countercraft.movecraft.processing.MovecraftWorld; import org.bukkit.entity.Player; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import org.jetbrains.annota...
__label__POS
0.916267
package core import ( "davinci/common/log" "encoding/hex" "fmt" "io/ioutil" "strings" "testing" ) var pg = &Pgsql{ Host: "192.168.83.129", Port: 5432, User: "postgres", Passwd: "123456", DbName: "", Cmd: "", } func TestPgsql_ExecuteOnce(t *testing.T) { defer pg.Close() pg.ExecuteOnce() } func...
__label__POS
0.875988
package com.alienpants.leafpicrevived.about; import androidx.annotation.DrawableRes; import java.util.ArrayList; /** * Created by dnld on 04/03/18. */ public class Contributor { private String name; private String description; private String email; private @DrawableRes int profileImage; ...
__label__POS
0.982518
package net.countercraft.movecraft.processing.functions; import org.jetbrains.annotations.NotNull; public final class Result { private static final Result SUCCESS = new Result(true); private static final Result FAILURE = new Result(false); @NotNull public static Result of(boolean success) { r...
__label__POS
0.959785
package com.alienpants.leafpicrevived.about; import android.content.Context; import android.graphics.Typeface; import android.view.ViewGroup; import android.widget.LinearLayout; import androidx.annotation.NonNull; import com.alienpants.leafpicrevived.R; import org.horaapps.liz.ThemeHelper; import org.horaapps.liz.u...
__label__POS
0.945759
package net.countercraft.movecraft.processing.functions; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; @FunctionalInterface public interface MonadicPredicate<T> { @Contract(pure = true) @NotNull Result validate(@NotNull T t); @Contract(pure = true) default @Not...
__label__POS
0.97072
package com.alienpants.leafpicrevived.util.preferences; import android.content.Context; import android.content.SharedPreferences; import androidx.annotation.NonNull; /** * Android's SharedPreferences for storing key-value pairs. * DO NOT INSTANTIATE THIS CLASS - Use {@link Prefs} for your needs. */ /* package */...
__label__POS
0.979555
package com.alienpants.leafpicrevived.util.preferences; /** * Class for Preference keys. */ public final class Keys { // Prevent class instantiation private Keys() { } public static final String FOLDER_COLUMNS_PORTRAIT = "folder_columns_portrait"; public static final String FOLDER_COLUMNS_LANDS...
__label__POS
1.000009
package com.alienpants.leafpicrevived.util.preferences; import com.alienpants.leafpicrevived.CardViewStyle; import com.alienpants.leafpicrevived.data.sort.SortingMode; import com.alienpants.leafpicrevived.data.sort.SortingOrder; /** * Class for storing Preference default values. */ public final class Defaults { ...
__label__POS
1.000003
package com.alienpants.leafpicrevived.util.preferences; import android.content.Context; import androidx.annotation.NonNull; import com.alienpants.leafpicrevived.CardViewStyle; import com.alienpants.leafpicrevived.data.sort.SortingMode; import com.alienpants.leafpicrevived.data.sort.SortingOrder; /** * Class for st...
__label__POS
0.797838
package common import ( "bytes" "encoding/json" "math/rand" "strings" "time" ) var escapeMap = map[string]string{ "\\a": "\a", "\\b": "\b", "\\f": "\f", "\\n": "\n", "\\r": "\r", "\\t": "\t", "\\v": "\v", "\\\\": "\\", "\\'": "'", "\\\"": "\"", "\\?": "?", "\\0": "", } func findCharNotInSt...
__label__POS
0.999578
package common import ( "crypto/tls" "davinci/common/log" "fmt" "github.com/projectdiscovery/mapcidr" "net" "net/http" "strconv" "strings" ) var client *http.Client func GetHttpClient() *http.Client { if client == nil { client = &http.Client{ Transport: &http.Transport{ TLSClientConfig: &tls.Config...
__label__POS
0.680008
package com.alienpants.leafpicrevived.activities.base; import android.content.DialogInterface; import android.content.Intent; import android.net.Uri; import android.widget.Toast; import androidx.appcompat.app.AlertDialog; import com.alienpants.leafpicrevived.R; import com.alienpants.leafpicrevived.data.StorageHelper...
__label__POS
0.965209
package com.alienpants.leafpicrevived.data.provider; import android.content.ContentResolver; import android.database.Cursor; import android.net.Uri; import java.util.Arrays; public class Query { public Uri uri; public String[] projection; public String selection; public String[] args; public Str...
__label__POS
0.853139
package com.alienpants.leafpicrevived.data.provider; import android.content.Context; import android.database.Cursor; import android.provider.MediaStore; import com.alienpants.leafpicrevived.data.Album; import java.io.File; /** * Created by dnld on 24/07/16. */ @Deprecated public class ContentProviderHelper { ...
__label__POS
0.987763
package net.countercraft.movecraft.processing.tasks.translation.validators; import net.countercraft.movecraft.MovecraftLocation; import net.countercraft.movecraft.craft.type.CraftType; import net.countercraft.movecraft.localisation.I18nSupport; import net.countercraft.movecraft.processing.MovecraftWorld; import net.co...
__label__POS
0.884778
package com.alienpants.leafpicrevived.data.provider; import android.content.ContentResolver; import android.database.Cursor; import com.alienpants.leafpicrevived.data.CursorHandler; import io.reactivex.Observable; /** * Created by dnld on 3/13/17. */ public class QueryUtils { public static <T> Observable<T...
__label__POS
0.95824
package net.countercraft.movecraft.processing.tasks.translation.validators; import net.countercraft.movecraft.MovecraftLocation; import net.countercraft.movecraft.craft.type.CraftType; import net.countercraft.movecraft.localisation.I18nSupport; import net.countercraft.movecraft.processing.MovecraftWorld; import net.co...
__label__POS
0.650326
package com.alienpants.leafpicrevived.data.sort; import android.provider.MediaStore; /** * Created by dnld on 18/08/16. */ public enum SortingMode { NAME(0, MediaStore.MediaColumns.DISPLAY_NAME, MediaStore.Images.ImageColumns.BUCKET_DISPLAY_NAME), DATE(1, MediaStore.MediaColumns.DATE_MODIFIED, "max(" + Med...
__label__POS
0.842898
package com.alienpants.leafpicrevived.data.sort; import com.alienpants.leafpicrevived.data.Album; import com.alienpants.leafpicrevived.util.NumericComparator; import java.util.Comparator; /** * Created by dnld on 26/04/16. */ public class AlbumsComparators { private static Comparator<Album> getComparator(Sor...
__label__POS
0.999429
package com.alienpants.leafpicrevived.data.sort; import androidx.annotation.NonNull; import com.alienpants.leafpicrevived.data.AlbumSettings; import com.alienpants.leafpicrevived.data.Media; import com.alienpants.leafpicrevived.timeline.data.TimelineHeaderModel; import com.alienpants.leafpicrevived.util.NumericCompa...
__label__POS
0.96894
package net.countercraft.movecraft.compat.v1_21_8; import net.minecraft.core.BlockPos; import net.minecraft.server.level.ServerLevel; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.levelgen.structure.BoundingBox; import net.minecraft.world.ticks.LevelChunkTicks; import net.minecraft.wor...
__label__POS
0.916928
package com.alienpants.leafpicrevived.views.navigation_drawer; import android.annotation.TargetApi; import android.content.Context; import android.os.Build; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.ViewGroup; import android.widget.ScrollView; import android.widget.TextV...
__label__POS
0.628311
package net.countercraft.movecraft.compat.v1_21_4; import net.minecraft.core.BlockPos; import net.minecraft.server.level.ServerLevel; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.levelgen.structure.BoundingBox; import net.minecraft.world.ticks.LevelChunkTicks; import net.minecraft.wor...
__label__POS
0.916612
package com.alienpants.leafpicrevived.timeline.data; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; /** * Model for showing the Timeline headers. */ public class TimelineHeaderModel implements TimelineI...
__label__POS
0.835974
package uz.shift.colorpicker; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Paint.Style; import android.graphics.Rect; import android.os.Parcel; import android.os.Parcelable; import android.util.AttributeSet...
__label__POS
0.695283
package net.countercraft.movecraft; import net.countercraft.movecraft.util.hitboxes.HitBox; import net.countercraft.movecraft.util.hitboxes.SolidHitBox; import org.junit.Test; import java.util.ArrayList; import java.util.List; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.c...
__label__POS
0.999094
package net.countercraft.movecraft; import it.unimi.dsi.fastutil.longs.LongOpenHashSet; import net.countercraft.movecraft.util.collections.LocationSet; import net.countercraft.movecraft.util.collections.LocationTrieSet; import net.countercraft.movecraft.util.hitboxes.BitmapHitBox; import net.countercraft.movecraft.uti...
__label__POS
0.985776
package net.countercraft.movecraft; import net.countercraft.movecraft.util.hitboxes.BitmapHitBox; import org.junit.Test; import static org.junit.jupiter.api.Assertions.assertEquals; public class BitmapHitBoxTest { private BitmapHitBox createTestHitbox(){ BitmapHitBox out = new BitmapHitBox(); for...
__label__POS
0.999953
package net.countercraft.movecraft; import com.google.common.collect.Iterators; import net.countercraft.movecraft.util.hitboxes.SolidHitBox; import net.countercraft.movecraft.util.hitboxes.SetHitBox; import org.junit.Ignore; import org.junit.Test; import java.util.HashSet; import java.util.Set; import static org.jun...
__label__POS
0.908008
package net.countercraft.movecraft; import it.unimi.dsi.fastutil.longs.LongOpenHashSet; import net.countercraft.movecraft.util.collections.BitmapLocationSet; import net.countercraft.movecraft.util.collections.LocationSet; import net.countercraft.movecraft.util.collections.LocationTrieSet; import net.countercraft.movec...
__label__POS
0.858964
package net.countercraft.movecraft; import com.google.common.primitives.Ints; import org.bukkit.Chunk; import org.bukkit.World; import org.jetbrains.annotations.NotNull; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.Set; public class MovecraftChunk implements Comparabl...
__label__POS
0.957621
package net.countercraft.movecraft.util; import org.bukkit.Bukkit; import org.bukkit.entity.Entity; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.lang.reflect.Field; import java.lang.reflect.Method; /** * Code taken with permission from MicleBrick * https://www.sp...
__label__POS
0.902731
package net.countercraft.movecraft.util; import java.lang.invoke.MethodHandles; import java.lang.invoke.VarHandle; import java.util.ArrayList; import java.util.List; public class AtomicBitSet { private static final VarHandle BACKING = MethodHandles.arrayElementVarHandle(Cell[].class); private static final Va...
__label__POS
0.979175
/* * This file is part of Movecraft. * * Movecraft is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Move...
__label__POS
0.631985
package net.countercraft.movecraft.util; import net.countercraft.movecraft.MovecraftLocation; import net.countercraft.movecraft.util.hitboxes.BitmapHitBox; import net.countercraft.movecraft.util.hitboxes.HitBox; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import java.util.*; ...
__label__POS
0.978525
package net.countercraft.movecraft.util; import java.util.Arrays; import java.util.DoubleSummaryStatistics; import java.util.function.DoubleConsumer; public class TimingData implements DoubleConsumer { private int count = 0; private int endIndex = 0; private final double[] data; private final DoubleSu...
__label__POS
0.931843
package net.countercraft.movecraft.util; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import sun.misc.Unsafe; import java.lang.reflect.Field; public class UnsafeUtils { private static @Nullable Unsafe unsafe; static { Unsafe defered; try{ va...
__label__POS
0.738496
package net.countercraft.movecraft.util; import org.bukkit.Bukkit; import org.bukkit.Keyed; import org.bukkit.Material; import org.bukkit.NamespacedKey; import org.bukkit.Tag; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.EnumSet; public class Tags { public...
__label__POS
0.728799
/* * This file is part of Movecraft. * * Movecraft is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Move...
__label__POS
0.910552
package net.countercraft.movecraft.processing; import com.google.common.collect.MapMaker; import net.countercraft.movecraft.MovecraftLocation; import net.countercraft.movecraft.support.AsyncChunk; import org.bukkit.Material; import org.bukkit.World; import org.bukkit.WorldBorder; import org.bukkit.block.BlockState; im...
__label__POS
0.923118
package net.countercraft.movecraft.events; import net.countercraft.movecraft.MovecraftLocation; import net.countercraft.movecraft.craft.Craft; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; import java.util.Collections; import java.util.List; public class SignTranslateEvent extends Cr...
__label__POS
0.980129
package net.countercraft.movecraft.events; import net.countercraft.movecraft.craft.Craft; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; public class FuelBurnEvent extends CraftEvent{ private static final HandlerList HANDLERS = new HandlerList(); private double burningFuel, fue...
__label__POS
0.869762
package net.countercraft.movecraft.events; import net.countercraft.movecraft.craft.Craft; import net.countercraft.movecraft.util.hitboxes.HitBox; import org.bukkit.World; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; /** * Called whenever a craft ...
__label__POS
0.615195
package net.countercraft.movecraft.events; import net.countercraft.movecraft.MovecraftLocation; import net.countercraft.movecraft.MovecraftRotation; import net.countercraft.movecraft.craft.Craft; import net.countercraft.movecraft.util.hitboxes.HitBox; import org.bukkit.event.Cancellable; import org.bukkit.event.Handle...
__label__POS
0.613985
package net.countercraft.movecraft.events; import net.countercraft.movecraft.MovecraftLocation; import net.countercraft.movecraft.craft.Craft; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; public class CraftDetectEvent extends CraftEvent implements...
__label__POS
0.883323
package net.countercraft.movecraft.events; import net.countercraft.movecraft.craft.Craft; import net.countercraft.movecraft.util.hitboxes.HitBox; import org.bukkit.World; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; public class CraftCollisionEvent extends CraftEvent{ private sta...
__label__POS
0.951638
package net.countercraft.movecraft.events; import net.countercraft.movecraft.craft.Craft; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; /** * Called whenever a craft is released * @see Craft */ @SuppressWarnings("unused") public class CraftRelea...
__label__POS
0.879747
package net.countercraft.movecraft.events; import net.countercraft.movecraft.craft.Craft; import org.bukkit.World; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; /** * Called before a craft is translated * This event is called before the translati...
__label__POS
0.742045
package net.countercraft.movecraft.events; import net.countercraft.movecraft.craft.Craft; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; /** * Called whenever a craft is scuttled * @see Craft */ @SuppressWarnings...
__label__POS
0.885714
package net.countercraft.movecraft.events; import net.countercraft.movecraft.craft.Craft; import org.bukkit.entity.Entity; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; public class CraftTeleportEntityEvent extends CraftEvent implements Cancellable...
__label__POS
0.935916
package net.countercraft.movecraft.events; import net.countercraft.movecraft.craft.Craft; import org.bukkit.Location; import org.bukkit.World; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; public class CraftCollisionExplosionEvent extends CraftEven...
__label__POS
0.855736
package net.countercraft.movecraft.events; import net.countercraft.movecraft.craft.Craft; import org.bukkit.Location; import org.bukkit.event.HandlerList; import org.bukkit.inventory.ItemStack; import org.jetbrains.annotations.NotNull; import java.util.List; /** * Called when one or more blocks are harvested by a ...
__label__POS
0.847263
package net.countercraft.movecraft.craft.datatag; import net.countercraft.movecraft.craft.Craft; import org.bukkit.NamespacedKey; import org.bukkit.plugin.Plugin; import org.jetbrains.annotations.NotNull; import java.util.function.Function; public class CraftDataTagKey<T> { protected final Function<Craft, T> dat...
__label__POS
0.956518
/* * 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"); you ...
__label__POS
0.797443
package net.countercraft.movecraft.util.collections; import net.countercraft.movecraft.MovecraftLocation; import org.jetbrains.annotations.NotNull; import org.roaringbitmap.longlong.Roaring64Bitmap; import org.roaringbitmap.longlong.Roaring64NavigableMap; import java.util.AbstractSet; import java.util.Collection; imp...
__label__POS
0.978454
package net.countercraft.movecraft.util.collections; import net.countercraft.movecraft.MovecraftLocation; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.AbstractSet; import java.util.Arrays; import java.util.Collection; ...
__label__POS
0.845937
package net.countercraft.movecraft.util.collections; import net.countercraft.movecraft.MovecraftLocation; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.AbstractSet; import java.util.Arrays; import java.util.BitSet; import java.util.Collection; import java.util.C...
__label__POS
0.864134
package net.countercraft.movecraft.util.collections; import org.jetbrains.annotations.NotNull; import java.util.AbstractSet; import java.util.Iterator; import java.util.PrimitiveIterator; import java.util.function.LongFunction; import java.util.function.ToLongFunction; public class PackableTrie<T> extends AbstractSe...
__label__POS
0.998895
package net.countercraft.movecraft.util.hitboxes; import it.unimi.dsi.fastutil.longs.Long2IntMap; import it.unimi.dsi.fastutil.longs.Long2IntOpenHashMap; import net.countercraft.movecraft.MovecraftLocation; import net.countercraft.movecraft.exception.EmptyHitBoxException; import net.countercraft.movecraft.util.collect...
__label__POS
0.737214
package net.countercraft.movecraft.util.hitboxes; import com.google.common.collect.Iterators; import com.google.common.collect.UnmodifiableIterator; import net.countercraft.movecraft.MovecraftLocation; import net.countercraft.movecraft.exception.EmptyHitBoxException; import org.jetbrains.annotations.NotNull; import j...
__label__POS
0.858704
package net.countercraft.movecraft.util.hitboxes; import it.unimi.dsi.fastutil.longs.Long2IntMap; import it.unimi.dsi.fastutil.longs.Long2IntOpenHashMap; import net.countercraft.movecraft.MovecraftLocation; import net.countercraft.movecraft.exception.EmptyHitBoxException; import org.jetbrains.annotations.NotNull; impo...
__label__POS
0.892504