Datasets:

Modalities:
Text
Formats:
json
Languages:
code
ArXiv:
Libraries:
Datasets
pandas
Dataset Viewer
Auto-converted to Parquet Duplicate
input
stringlengths
20
285k
output
stringlengths
20
285k
public static void beforeClass() throws Exception { server = new DummyServer("localhost", 6999); server.start(); server.register("my-app", "my-module", null, EchoBean.class.getSimpleName(), new EchoBean()); final Endpoint endpoint = Remoting.createEndpoint("endpoint", Executors.newSi...
public static void beforeClass() throws Exception { server = new DummyServer("localhost", 6999); server.start(); server.register("my-app", "my-module", "", EchoBean.class.getSimpleName(), new EchoBean()); final Endpoint endpoint = Remoting.createEndpoint("endpoint", Executors.newSing...
public void testShades() throws IOException { String mvn = System.getProperty("path.to.mvn", "mvn"); String version = BPMLocalTest.getBonitaVersion(); String thePom = getPom(version); File file = new File("shadeTester"); file.mkdir(); String outputOfMaven; try...
public void testShades() throws IOException { String mvn = System.getProperty("path.to.mvn", "mvn"); String version = BPMLocalTest.getBonitaVersion(); String thePom = getPom(version); File file = new File("shadeTester"); file.mkdir(); String outputOfMaven; try...
public boolean use(Hero hero, LivingEntity target, String[] args) { Player player = hero.getPlayer(); if (target instanceof Player) { Player tPlayer = (Player) target; if (!(player.getItemInHand().getType() == Material.PAPER)) { Messaging.send(player, "You nee...
public boolean use(Hero hero, LivingEntity target, String[] args) { Player player = hero.getPlayer(); if (target instanceof Player) { Player tPlayer = (Player) target; if (!(player.getItemInHand().getType() == Material.PAPER)) { Messaging.send(player, "You nee...
private RubyTime createTime(IRubyObject[] args, boolean gmt) { int len = 6; if (args.length == 10) { args = new IRubyObject[] { args[5], args[4], args[3], args[2], args[1], args[0] }; } else { len = checkArgumentCount(args, 1, 7); } ThreadContext tc = ...
private RubyTime createTime(IRubyObject[] args, boolean gmt) { int len = 6; if (args.length == 10) { args = new IRubyObject[] { args[5], args[4], args[3], args[2], args[1], args[0] }; } else { len = checkArgumentCount(args, 1, 7); } ThreadContext tc = ...
private void generateASCII() { System.out.println("Converting image into ASCII..."); this.output = ""; int width = this.output_image.getWidth(); int height = this.output_image.getHeight(); int last_percent = 0; for(int i = 0; i < height; ++i) { for(int j = 0; j < width; ++j) { String character...
private void generateASCII() { System.out.println("Converting image into ASCII..."); this.output = ""; int width = this.output_image.getWidth(); int height = this.output_image.getHeight(); int last_percent = 0; for(int i = 0; i < height; ++i) { for(int j = 0; j < width; ++j) { String character...
public void testProjectNameValue() throws Exception { final DistributedMasterBuilder masterBuilder = new DistributedMasterBuilder(); final Builder nestedBuilder = new MockBuilder(); masterBuilder.add(nestedBuilder); masterBuilder.setModule("deprecatedModule"); try { ...
public void testProjectNameValue() throws Exception { final DistributedMasterBuilder masterBuilder = DistributedMasterBuilderTest.getMasterBuilder_LocalhostONLY(); final Builder nestedBuilder = new MockBuilder(); masterBuilder.add(nestedBuilder); masterBuilder.setModule("deprecatedMo...
public LinkedList<MIDPrimerCombo> loadMIDS() throws MIDFormatException { LinkedList <MIDPrimerCombo> MIDTags = new LinkedList <MIDPrimerCombo>(); int midCount = 0; try { String line = input.readLine(); while (line != null) { if(line.trim().length() == 0) { continue; } String[] c...
public LinkedList<MIDPrimerCombo> loadMIDS() throws MIDFormatException { LinkedList <MIDPrimerCombo> MIDTags = new LinkedList <MIDPrimerCombo>(); int midCount = 0; try { String line = input.readLine(); while (line != null) { if(line.trim().length() == 0) { line = input.readLine(); ...
public Map pageListToMap(HttpServletRequest req, boolean loggedIn, Site site, SitePage page, String toolContextPath, String portalPrefix, boolean doPages, boolean resetTools, boolean includeSummary) { Map<String, Object> theMap = new HashMap<String, Object>(); String pageUrl = Web.returnUrl(req, "/" + porta...
public Map pageListToMap(HttpServletRequest req, boolean loggedIn, Site site, SitePage page, String toolContextPath, String portalPrefix, boolean doPages, boolean resetTools, boolean includeSummary) { Map<String, Object> theMap = new HashMap<String, Object>(); String pageUrl = Web.returnUrl(req, "/" + porta...
protected void onRowPopulated(final WebMarkupContainer rowComponent) { if (disableRowClickNotifications()) return; rowComponent.add(new AjaxFormSubmitBehavior(getForm(), "onclick") { private static final long serialVersionUID = 1L; @Override protected void onSubmit(AjaxRequestTarget target) { } @...
protected void onRowPopulated(final WebMarkupContainer rowComponent) { if (disableRowClickNotifications()) return; rowComponent.add(new AjaxFormSubmitBehavior(getForm(), "onclick") { private static final long serialVersionUID = 1L; @Override protected void onSubmit(AjaxRequestTarget target) { } @...
private void editResource (AppleResponse res, AppleRequest req, String type, String messages) { boolean validated = true; boolean insertSuccess = false; boolean updateDate = false; String dctPublisher; String dctIden...
private void editResource (AppleResponse res, AppleRequest req, String type, String messages) { boolean validated = true; boolean insertSuccess = false; boolean updateDate = false; String dctPublisher; String dctIden...
public void run() { try { socket = new DatagramSocket(port); } catch (Exception e) { System.out.println("Unable to start UDP server on port " + port + ". Ignoring ..."); return ; } System.out.println("UDP server started on port " + port); while (true) { try { if (isInterrupted()) ...
public void run() { try { socket = new DatagramSocket(port); } catch (Exception e) { System.out.println("Unable to start UDP server on port " + port + ". Ignoring ..."); return ; } System.out.println("UDP server started on port " + port); while (true) { try { if (isInterrupted()) ...
ChartsPanel(RemoteCollector remoteCollector) { super(remoteCollector); final JLabel throbberLabel = new JLabel(THROBBER_ICON); add(throbberLabel, BorderLayout.NORTH); add(createButtonsPanel(), BorderLayout.CENTER); final SwingWorker<Map<String, byte[]>, Object> swingWorker = new SwingWorker<Map<String, byte[...
ChartsPanel(RemoteCollector remoteCollector) { super(remoteCollector); final JLabel throbberLabel = new JLabel(THROBBER_ICON); add(throbberLabel, BorderLayout.NORTH); add(createButtonsPanel(), BorderLayout.CENTER); final SwingWorker<Map<String, byte[]>, Object> swingWorker = new SwingWorker<Map<String, byte[...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.main); se...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.main); se...
private final TextElement parseText(String currentText, String tag, String arg) { TextElement result = new TextElement(tag); if(result.mType == TextElementType.Quote) result.mContent = arg; if (currentText.substring(0,1).equals("\n")) { result.mConsumedLength++; } Pattern tagPattern = Pattern.compile("...
private final TextElement parseText(String currentText, String tag, String arg) { TextElement result = new TextElement(tag); if(result.mType == TextElementType.Quote) result.mContent = arg; if (currentText.length() > 0) { if (currentText.substring(0,1).equals("\n")) { result.mConsumedLength++; } }...
public void testRegistration() { Page page = tester.startPage(RegisterPage.class); tester.assertRenderedPage(RegisterPage.class); PortalSession.get().getRights().add(new Right("captcha.disabled")); FormTester ft = tester.newFormTester("form"); ft.setValue("username", "peterpa...
public void testRegistration() { Page page = tester.startPage(RegisterPage.class); tester.assertRenderedPage(RegisterPage.class); PortalSession.get().getRights().add(new Right("captcha.disabled")); FormTester ft = tester.newFormTester("form"); ft.setValue("username", "peterpa...
public void draw(Canvas canvas) { if (mViews != null) { final int n = mViews.size(); for (int i = 0; i < mCurrent; i++) { drawView(mViews.get(i), canvas); } for (int i = n - 1; i > mCurrent; i--) { drawView(mViews.get(i), canvas...
public void draw(Canvas canvas) { if ((mViews != null) && (mCurrent > -1)) { final int n = mViews.size(); for (int i = 0; i < mCurrent; i++) { drawView(mViews.get(i), canvas); } for (int i = n - 1; i > mCurrent; i--) { drawView(...
public void init(FMLInitializationEvent event) { System.out.println("Initilizing Sustainable Resources Mod (SMR)"); System.out.println("You are using a pre-alpha build! And peter fails :P"); }
public void init(FMLInitializationEvent event) { System.out.println("Initilizing Sustainable Resources Mod (SMR)"); System.out.println("You are using a pre-alpha build!"); }
public static void main (String [] args) { assert args.length > 5; int NUM_READERS = 5; int NUM_WRITERS = 1; final int N = Integer.parseInt(args[0]); final int R = Integer.parseInt(args[1]); int W = Integer.parseInt(args[2]); int K = Integer.parseInt(args[3]); assert K ...
public static void main (String [] args) { assert args.length > 5; int NUM_READERS = 5; int NUM_WRITERS = 1; final int N = Integer.parseInt(args[0]); final int R = Integer.parseInt(args[1]); int W = Integer.parseInt(args[2]); int K = Integer.parseInt(args[3]); assert K ...
public void execute(final ScheduledJob scheduledJob) { final SystemHelper systemHelper = SingletonS2Container .getComponent(SystemHelper.class); final JobLog jobLog = new JobLog(scheduledJob); final String scriptType = scheduledJob.getScriptType(); final String script...
public void execute(final ScheduledJob scheduledJob) { final SystemHelper systemHelper = SingletonS2Container .getComponent(SystemHelper.class); final JobLog jobLog = new JobLog(scheduledJob); final String scriptType = scheduledJob.getScriptType(); final String script...
public static void init() { oi = new OI(); SmartDashboard.putData(driveTrain); SmartDashboard.putData(shooter); SmartDashboard.putdata(feeder); }
public static void init() { oi = new OI(); SmartDashboard.putData(driveTrain); SmartDashboard.putData(shooter); SmartDashboard.putData(feeder); }
protected boolean processCharacters( HWPFDocumentCore document, int currentTableLevel, Range range, final Element block ) { if ( range == null ) return false; boolean haveAnyText = false; if ( document instanceof HWPFDocument ) { final HWPFDocu...
protected boolean processCharacters( HWPFDocumentCore document, int currentTableLevel, Range range, final Element block ) { if ( range == null ) return false; boolean haveAnyText = false; if ( document instanceof HWPFDocument ) { final HWPFDocu...
public String getSelector() { buildEngineMap(); if (_engines.isEmpty()) return "<b>No search engines specified</b>"; String dflt = _context.getProperty(PROP_DEFAULT); if (dflt == null || !_engines.containsKey(dflt)) { int idx = _context.random().nextInt(_engin...
public String getSelector() { buildEngineMap(); if (_engines.isEmpty()) return "<b>No search engines specified</b>"; String dflt = _context.getProperty(PROP_DEFAULT); if (dflt == null || !_engines.containsKey(dflt)) { int idx = _context.random().nextInt(_engin...
public void save(){ Iterator<SaveCommand> siter = saveCommands.iterator(); int previousCommand = -1; int count = 0; while(siter.hasNext()){ this.progress = (int)((double)count / (double)this.saveCommands.size() * 100); this.mapDel.setProgressBarValue(this.progress, "Saving Map"); count++; SaveComma...
public void save(){ Iterator<SaveCommand> siter = saveCommands.iterator(); int previousCommand = -1; int count = 0; while(siter.hasNext()){ this.progress = (int)((double)count / (double)this.saveCommands.size() * 100); this.mapDel.setProgressBarValue(this.progress, "Saving Map"); count++; SaveComma...
public SessionProvider( Registry registry, MBeanService mBeanService, @SessionCache Cache<?, ?> cache, @BackgroundScheduler ScheduledExecutorService scheduler, @Named(IpcSessionConfig.EXPIRATION_TIME) long time, @Named(IpcSessionConfig.EXPIRATION_TIME_UNIT) TimeUnit t...
public SessionProvider( Registry registry, MBeanService mBeanService, @SuppressWarnings("rawtypes") @SessionCache Cache cache, @BackgroundScheduler ScheduledExecutorService scheduler, @Named(IpcSessionConfig.EXPIRATION_TIME) long time, @Named(IpcSessionConfig.EXPIRATI...
private synchronized void broadcastTags(Intent intent) { TagCache cache = app.getTagCache(); synchronized(cache) { Integer currentNestId = Integer.valueOf(intent.getIntExtra(BUNDLE_NEST_ID, -1)); List<String> out = new ArrayList<String>(); Set<String> lt = cache.getLocalTags(currentNestId); if(lt != nu...
private synchronized void broadcastTags(Intent intent) { TagCache cache = app.getTagCache(); synchronized(cache) { Integer currentNestId = Integer.valueOf(intent.getIntExtra(BUNDLE_NEST_ID, -1)); Set<String> out; Set<String> lt = cache.getLocalTags(currentNestId); if(lt != null) { out = new HashSet...
protected void onHandleIntent(Intent intent) { long now = java.lang.System.currentTimeMillis(); SharedPreferences settings=PreferenceManager.getDefaultSharedPreferences(this); long last = settings.getLong("lastDataUpdate", 0); boolean updateNeeded = false; if (last == 0) { updateNeeded = true; Log.d("...
protected void onHandleIntent(Intent intent) { long now = java.lang.System.currentTimeMillis(); SharedPreferences settings=PreferenceManager.getDefaultSharedPreferences(this); long last = settings.getLong("lastDataUpdate", 0); boolean updateNeeded = false; if (last == 0) { updateNeeded = true; Log.d("...
public static int processSum(ResultSet result, int sample_size, int db_size) throws SQLException { HashMap<Integer, Integer> frequencies = new HashMap<Integer, Integer>(); Integer k; Integer v; int sum = 0; int s = 0; while (result.next()) { k = new Integer(result.getInt("value")); if (frequencies.co...
public static long processSum(ResultSet result, int sample_size, int db_size) throws SQLException { HashMap<Integer, Integer> frequencies = new HashMap<Integer, Integer>(); Integer k; Integer v; long sum = 0; int s = 0; while (result.next()) { k = new Integer(result.getInt("value")); if (frequencies....
public User(String email_, String password_, String firstname_, String lastname_, String question_, String answer_) { this.email_ = email_; this.password_ = password_; this.firstname_ = firstname_; this.lastname_ = lastname_; this.question_ = question_; this.answe...
public User(String email_, String password_, String firstname_, String lastname_, String question_, String answer_) { this.email_ = email_; this.password_ = password_; this.firstname_ = firstname_; this.lastname_ = lastname_; this.question_ = question_; this.answe...
public void completeJoblet(int jobletId, JobletResult result, String logMessage) throws TransportException, InvalidApiKey, InvalidJobletId { log.trace("completeJoblet()"); Joblet joblet = readJoblet(jobletId); joblet.setStatus(result.getStatus()); dao.update(joblet); result.setJoblet(joblet); result....
public void completeJoblet(int jobletId, JobletResult result, String logMessage) throws TransportException, InvalidApiKey, InvalidJobletId { log.trace("completeJoblet()"); Joblet joblet = readJoblet(jobletId); joblet.setStatus(result.getStatus()); dao.update(joblet); result.setJoblet(joblet); result....
public void shouldGetListOfUserSupportedProgramsForAFacilityForGivenRights() { Program program = new Program(); List<Program> programs = new ArrayList<>(Arrays.asList(program)); Long facilityId = 12345L; when(programService.getProgramsSupportedByUserHomeFacilityWithRights(facilityId, USER_ID, VIEW_REQ...
public void shouldGetListOfUserSupportedProgramsForAFacilityForGivenRights() { Program program = new Program(); List<Program> programs = new ArrayList<>(Arrays.asList(program)); Long facilityId = 12345L; when(programService.getProgramsForUserByFacilityAndRights(facilityId, USER_ID, VIEW_REQUISITION))....
private void _startScan( File folder ){ File[] files = folder.listFiles( new FileFilter() { @Override public boolean accept(File pathname) { if ( ! pathname.canRead() ) return false; if ( pathname.isHidden() && ! _hidden ) return false; ...
private void _startScan( File folder ){ File[] files = folder.listFiles( new FileFilter() { @Override public boolean accept(File pathname) { if ( ! pathname.canRead() ) return false; if ( pathname.isHidden() && ! _hidden ) return false; ...
private boolean getLockInformation(ITransaction transaction, HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { Node lockInfoNode = null; DocumentBuilder documentBuilder = null; documentBuilder = getDocumentBuilder(); try ...
private boolean getLockInformation(ITransaction transaction, HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { Node lockInfoNode = null; DocumentBuilder documentBuilder = null; documentBuilder = getDocumentBuilder(); try ...
public static double[] getUniquedValuesFromMatrix(IMatrix data, IElementAdapter cellAdapter, int valueDimension, int maxUnique, IProgressMonitor monitor) { Double[] values = null; List<Double> valueList = new ArrayList<Double>(); MatrixUtils.DoubleCast cast = MatrixUtils.createDoubleCast( ...
public static double[] getUniquedValuesFromMatrix(IMatrix data, IElementAdapter cellAdapter, int valueDimension, int maxUnique, IProgressMonitor monitor) { Double[] values = null; List<Double> valueList = new ArrayList<Double>(); MatrixUtils.DoubleCast cast = MatrixUtils.createDoubleCast( ...
void startCleanup() { final long now = System.currentTimeMillis(); if (locallyOwnedMap != null) { locallyOwnedMap.evict(now); } if (mapNearCache != null) { mapNearCache.evict(now, false); } final Set<Record> recordsDirty = new HashSet<Record>()...
void startCleanup() { final long now = System.currentTimeMillis(); if (locallyOwnedMap != null) { locallyOwnedMap.evict(now); } if (mapNearCache != null) { mapNearCache.evict(now, false); } final Set<Record> recordsDirty = new HashSet<Record>()...
protected void writeRatings(RatingDataAccessObject dao, Long2IntMap userSegments) throws MojoExecutionException, SQLException { Connection[] dbcs = new Connection[numFolds]; PreparedStatement[] insert = new PreparedStatement[numFolds]; PreparedStatement[] test = new PreparedStatement[numFold...
protected void writeRatings(RatingDataAccessObject dao, Long2IntMap userSegments) throws MojoExecutionException, SQLException { Connection[] dbcs = new Connection[numFolds]; PreparedStatement[] insert = new PreparedStatement[numFolds]; PreparedStatement[] test = new PreparedStatement[numFold...
End of preview. Expand in Data Studio

RepairLLaMA - Datasets

Contains the processed fine-tuning datasets for RepairLLaMA.

Instructions to explore the dataset

To load the dataset, you must define which revision (i.e., which input/output representation pair) you want to load.

from datasets import load_dataset

# Load ir1xor1
dataset = load_dataset("ASSERT-KTH/repairllama-datasets", "ir1xor1")
# Load irXxorY
dataset = load_dataset("ASSERT-KTH/repairllama-datasets", "irXxorY")

Citation

If you use RepairLLaMA in academic research, please cite "RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repair", Technical report, arXiv 2312.15698, 2023.

@techreport{repairllama2023,
  title={RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repair},
  author={Silva, Andr{\'e} and Fang, Sen and Monperrus, Martin},
  url = {http://arxiv.org/abs/2312.15698},
  number = {2312.15698},
  institution = {arXiv},
}
Downloads last month
83

Models trained or fine-tuned on ASSERT-KTH/repairllama-datasets

Paper for ASSERT-KTH/repairllama-datasets