repo_name stringlengths 7 104 | file_path stringlengths 5 238 | context listlengths 5 131 | import_statement stringlengths 41 11.2k | code stringlengths 42 78.6k | next_line stringlengths 5 824 | gold_snippet_index int64 0 130 |
|---|---|---|---|---|---|---|
sastix/cms | server/src/main/java/com/sastix/cms/server/services/content/impl/ZipHandlerServiceImpl.java | [
"@Getter @Setter @NoArgsConstructor @ToString\npublic class CreateResourceDTO {\n\n /**\n * The media-type of this new resource.\n */\n @NotNull\n private String resourceMediaType;\n\n /**\n * The author creating this resource.\n */\n @NotNull\n private String resourceAuthor;\n\n ... | import com.sastix.cms.common.content.CreateResourceDTO;
import com.sastix.cms.common.content.ResourceDTO;
import com.sastix.cms.common.content.exceptions.ResourceAccessError;
import com.sastix.cms.server.domain.entities.Resource;
import com.sastix.cms.server.services.content.DistributedCacheService;
import com.sastix.c... | /*
* Copyright(c) 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | HashedDirectoryService hashedDirectoryService; | 5 |
melloc/roguelike | game/src/main/java/edu/brown/cs/roguelike/game/GUIApp.java | [
"public final class Vec2i implements Serializable {\r\n\tprivate static final long serialVersionUID = 5659632794862666943L;\r\n\t\r\n\t/**\r\n\t * Since {@link Vec2i} instances are immutable, their x and y fields may be accessed without getters.\r\n\t */\r\n\tpublic final int x, y;\r\n\t\r\n\t/**\r\n\t * Creates a ... | import cs195n.Vec2i;
import edu.brown.cs.roguelike.engine.config.ConfigurationException;
import edu.brown.cs.roguelike.engine.game.CumulativeTurnManager;
import edu.brown.cs.roguelike.engine.game.Game;
import edu.brown.cs.roguelike.engine.graphics.Application;
import edu.brown.cs.roguelike.engine.proc.BSPLevelGenerator... | package edu.brown.cs.roguelike.game;
public class GUIApp extends Application {
private final static Vec2i SCREEN_SIZE = new Vec2i(80,30);
private final static int POINTS_PER_TURN = 10;
private SaveManager sm; | private CumulativeTurnManager tm; | 2 |
IncQueryLabs/smarthome-cep-demonstrator | runtime/com.incquerylabs.smarthome.eventbus.api/src/main/java/com/incquerylabs/smarthome/eventbus/api/IEventSubscriber.java | [
"public class GroupItemStateChangedEvent extends ItemStateChangedEvent {\n\n\tpublic GroupItemStateChangedEvent(Item item, State newState, State oldState) {\n\t\tsuper(item, newState, oldState);\n\t}\n\t\n @Override\n public String toString() {\n return String.format(\"%s group state changed from %s to... | import java.util.Collection;
import org.eclipse.smarthome.core.items.Item;
import com.incquerylabs.smarthome.eventbus.api.events.GroupItemStateChangedEvent;
import com.incquerylabs.smarthome.eventbus.api.events.ItemAddedEvent;
import com.incquerylabs.smarthome.eventbus.api.events.ItemCommandEvent;
import com.incqueryla... | package com.incquerylabs.smarthome.eventbus.api;
public interface IEventSubscriber {
public void stateUpdated(ItemStateEvent event);
public void stateChanged(ItemStateChangedEvent event);
public void groupStateChanged(GroupItemStateChangedEvent event);
public void commandReceived(ItemCommandEve... | public void itemRemoved(ItemRemovedEvent event); | 3 |
integeruser/jgltut | src/integeruser/jgltut/tut13/GeomImpostor.java | [
"public enum MouseButtons {\n MB_LEFT_BTN,\n MB_RIGHT_BTN,\n MB_MIDDLE_BTN\n}",
"public static class ViewData {\n public Vector3f targetPos;\n public Quaternionf orient;\n public float radius;\n public float degSpinRotation;\n\n public ViewData(Vector3f targetPos, Quaternionf orient, float... | import integeruser.jglsdk.glutil.MousePoles.MouseButtons;
import integeruser.jglsdk.glutil.MousePoles.ViewData;
import integeruser.jglsdk.glutil.MousePoles.ViewPole;
import integeruser.jglsdk.glutil.MousePoles.ViewScale;
import integeruser.jgltut.Tutorial;
import integeruser.jgltut.commons.*;
import integeruser.jgltut.... | package integeruser.jgltut.tut13;
/**
* Visit https://github.com/integeruser/jgltut for info and updates.
* Original: https://bitbucket.org/alfonse/gltut/src/default/Tut%2013%20Impostors/GeomImpostor.cpp
* <p>
* Part III. Illumination
* Chapter 13. Lies and Impostors
* <p>
* W,A,S,D - move the cameras forw... | MousePole.forwardMouseButton(window, viewPole, button, pressed, x, y); | 7 |
CagataySonmez/EdgeCloudSim | src/edu/boun/edgecloudsim/applications/sample_app2/SampleNetworkModel.java | [
"public class SimManager extends SimEntity {\r\n\tprivate static final int CREATE_TASK = 0;\r\n\tprivate static final int CHECK_ALL_VM = 1;\r\n\tprivate static final int GET_LOAD_LOG = 2;\r\n\tprivate static final int PRINT_PROGRESS = 3;\r\n\tprivate static final int STOP_SIMULATION = 4;\r\n\t\r\n\tprivate String s... | import org.cloudbus.cloudsim.core.CloudSim;
import edu.boun.edgecloudsim.core.SimManager;
import edu.boun.edgecloudsim.core.SimSettings;
import edu.boun.edgecloudsim.edge_client.Task;
import edu.boun.edgecloudsim.network.NetworkModel;
import edu.boun.edgecloudsim.utils.Location;
import edu.boun.edgecloudsim.utils... | /*
* Title: EdgeCloudSim - Network Model
*
* Description:
* SampleNetworkModel uses
* -> the result of an empirical study for the WLAN and WAN delays
* The experimental network model is developed
* by taking measurements from the real life deployments.
*
* -> MMPP/MMPP/1 queue model for MA... | Location accessPointLocation = SimManager.getInstance().getMobilityModel().getLocation(sourceDeviceId,CloudSim.clock());
| 4 |
aurbroszniowski/Rainfall-core | src/main/java/io/rainfall/execution/Executions.java | ["public abstract class Execution {\n\n public enum ExecutionState {\n UNKNOWN,\n BEGINNING,\(...TRUNCATED) | "import io.rainfall.Execution;\nimport io.rainfall.Unit;\nimport io.rainfall.unit.Every;\nimport io.(...TRUNCATED) | "/*\n * Copyright (c) 2014-2022 Aurélien Broszniowski\n *\n * Licensed under the Apache License, Ve(...TRUNCATED) | public static InParallel inParallel(int count, Unit unit, Every every, Over over) { | 4 |
jenkinsci/ghprb-plugin | "src/test/java/org/jenkinsci/plugins/ghprb/manager/impl/downstreambuilds/BuildFlowBuildManagerTest.j(...TRUNCATED) | ["public abstract class GhprbITBaseTestCase {\n\n @Mock\n protected GHCommitPointer commitPoin(...TRUNCATED) | "import com.cloudbees.plugins.flow.BuildFlow;\nimport com.cloudbees.plugins.flow.FlowRun;\nimport co(...TRUNCATED) | "package org.jenkinsci.plugins.ghprb.manager.impl.downstreambuilds;\n\n\n\n\n/**\n * @author mdelape(...TRUNCATED) | public JenkinsRuleWithBuildFlow jenkinsRule = new JenkinsRuleWithBuildFlow(); | 4 |
criticalmaps/criticalmaps-android | app/src/main/java/de/stephanlindauer/criticalmaps/service/ServerSyncService.java | ["public class App extends Application {\n\n private static AppComponent appComponent;\n\n pub(...TRUNCATED) | "import android.app.Service;\nimport android.content.Intent;\nimport android.os.IBinder;\nimport and(...TRUNCATED) | "package de.stephanlindauer.criticalmaps.service;\n\n\n\n\n\n\n\npublic class ServerSyncService exte(...TRUNCATED) | EventBus eventBus; | 4 |
w3c/epubcheck | src/main/java/com/adobe/epubcheck/bitmap/BitmapChecker.java | ["public final class EPUBLocation implements Comparable<EPUBLocation>\n{\n\n public static EPUBLoca(...TRUNCATED) | "import javax.imageio.stream.FileImageInputStream;\nimport javax.imageio.stream.ImageInputStream;\ni(...TRUNCATED) | "/*\n * Copyright (c) 2007 Adobe Systems Incorporated\n *\n * Permission is hereby granted, free of(...TRUNCATED) | private final Report report; | 1 |
sorinMD/MCTS | src/main/java/mcts/tree/selection/PUCT.java | ["public interface Game {\n\n\t/**\n\t * @return a clone of the game state\n\t */\n\tpublic int[] ge(...TRUNCATED) | "import java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.concurrent.ThreadLocal(...TRUNCATED) | "package mcts.tree.selection;\n\n\n\n\n/**\n * PUCT selection policy for handling a prior probabilit(...TRUNCATED) | " protected Selection selectChild(StandardNode node, Tree tree, GameFactory factory, Game obsGame(...TRUNCATED) | 6 |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 10