Datasets:
code stringlengths 3 1.18M | language stringclasses 1
value |
|---|---|
public class HundredIntegers {
public static void main (String[] args) {
for (int i = 1; i<=100; i++) {
System.out.println(i);
}
}
} | Java |
public class HundredIntegers {
public static void main (String[] args) {
for (int i = 1; i<=100; i++) {
System.out.println(i);
}
}
} | Java |
package Entity;
public interface IOperatoerDTO {
int getoprId();
void setoprId(int Id);
String getoprNavn();
void setoprNavn(String Navn);
String getini();
void setini(String In);
String getcpr();
void setcpr(String cp);
String getpassword();
void setpassword(String passwd);
}
... | Java |
package Entity;
public class OperatoerDTO implements IOperatoerDTO
{
int oprId;
String oprNavn;
String ini;
String cpr;
String password;
public OperatoerDTO() //Default Constructor
{
this.oprId = 0;
this.oprNavn = "";
this.ini = "";
this.cpr = "";
this.password = "";
}
... | Java |
package Controller;
import Entity.OperatoerDTO;
/*
public class ChangePassword implements IOperatoerDAO {
OperatoerDTO opr = new OperatoerDTO();
public String passwordGenerator(String passwd){
return passwd;
}
public String opChangePasswd(int Id)
{
return null;
}
*/ | Java |
package Controller;
import java.util.ArrayList;
import Entity.OperatoerDTO;
public class OperatoerDAO implements IOperatoerDAO{
OperatoerDTO opr = new OperatoerDTO();
private ArrayList<OperatoerDTO> oDTO = new ArrayList<OperatoerDTO>();; //added an arraylist of type OperatoerDTO
public OperatoerDA... | Java |
package Controller;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class PasswordValidator{
private Pattern pattern;
private Matcher matcher;
private static String PASSWORD_PATTERN =
"((?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%]).{6,20})";
public P... | Java |
package Controller;
import Entity.OperatoerDTO;
/*
public class LoginTjeck implements IOperatoerDAO {
OperatoerDTO opr = new OperatoerDTO();
public int loginUser(String passwd, int id)
{
return 0;
}
}*/
| Java |
package Controller;
import Entity.OperatoerDTO;
/*
public class Afvejning implements IOperatoerDAO {
OperatoerDTO opr = new OperatoerDTO();
public double beregningNetto(double Tara, double Brutto)
{
return 0.0;
}
}*/
| Java |
package Controller;
import Entity.OperatoerDTO;
import java.util.ArrayList;
public interface IOperatoerDAO
{
//int loginUser(String passwd, int id);
OperatoerDTO getOperatoer(int oprId) throws DALException;
ArrayList<OperatoerDTO> getOperatoerList() throws DALException;
void createOperatoer(Operat... | Java |
package Boundary;
import Entity.OperatoerDTO;
import Controller.IOperatoerDAO.DALException;
import Controller.OperatoerDAO;
import Controller.PasswordValidator;
import java.util.Scanner;
public class Graenseflade {
OperatoerDTO opr = new OperatoerDTO();
OperatoerDAO dao = new OperatoerDAO();
Pass... | Java |
import Boundary.Graenseflade;
public class Main {
public static void main(String[] args) {
Graenseflade g = new Graenseflade();
}
}
| Java |
/*
* Copyright (C) 2011 Google Inc.
*
* 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 applicable law or agreed to ... | Java |
/*
* Copyright (C) 2011 Google Inc.
*
* 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 applicable law or agreed ... | Java |
/*
* Copyright (C) 2011 Google Inc.
*
* 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 applicable law or agreed to ... | Java |
/*
* Copyright (C) 2011 Google Inc.
*
* 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 applicable law or agreed ... | Java |
/*
* Copyright (C) 2011 Google Inc.
*
* 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 applicable law or agreed ... | Java |
/*
* Copyright (C) 2011 Google Inc.
*
* 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 applicable law or agreed to ... | Java |
/*
* Copyright (C) 2011 Google Inc.
*
* 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 applicable law or agreed to ... | Java |
/*
* Copyright (C) 2011 Google Inc.
*
* 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 applicable law or agreed ... | Java |
/*
* Copyright (C) 2011 Google Inc.
*
* 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 applicable law or agreed to ... | Java |
/*
* Copyright (C) 2011 Google Inc.
*
* 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 applicable law or agreed ... | Java |
/*
* Copyright (C) 2011 Google Inc.
*
* 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 applicable law or agreed ... | Java |
/*
* Copyright (C) 2011 Google Inc.
*
* 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 applicable law or agreed ... | Java |
/*
* Copyright (C) 2011 Google Inc.
*
* 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 applicable law or agreed to ... | Java |
/*
* Copyright (C) 2011 Google Inc.
*
* 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 applicable law or agreed ... | Java |
/*
* Copyright (C) 2011 Google Inc.
*
* 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 applicable law or agreed ... | Java |
// vim: fileencoding=utf-8 tabstop=4 shiftwidth=4
// Copyright (c) 2010 , NetEase.com,Inc. All rights reserved.
//
// Author: Yang Bo (pop.atry@gmail.com)
//
// Use, modification and distribution are subject to the "New BSD License"
// as listed at <url: http://www.opensource.org/licenses/bsd-license.php >.
package c... | Java |
public class TestSVNCode {
//nhom google code nhom 8
public static void main(String[] args)
{
System.out.println("hello world");
System.out.println("hello world");
System.out.println("nhom 8");
}
}
| Java |
package com.google.gwt.sample.stockwatcher.client.service;
import java.util.List;
import com.google.gwt.sample.stockwatcher.client.shared.StockBuy;
import com.google.gwt.sample.stockwatcher.client.shared.StockPrice;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.Remo... | Java |
package com.google.gwt.sample.stockwatcher.client.service;
import java.util.List;
import com.google.gwt.sample.stockwatcher.client.shared.StockBuy;
import com.google.gwt.sample.stockwatcher.client.shared.StockPrice;
import com.google.gwt.user.client.rpc.AsyncCallback;
public interface StockPriceServiceAsync ... | Java |
package com.google.gwt.sample.stockwatcher.client.presenter;
public interface BuyStockPresenter extends Presenter<BuyStockPresenter.Display> {
public interface Display extends
com.google.gwt.sample.stockwatcher.client.view.Display {
void displaySymbol(String symbol);
void displayPrice(String price);
voi... | Java |
package com.google.gwt.sample.stockwatcher.client.presenter;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.sample.stockwatcher.client.view.Display;
/**
*
*/
public abstract class BasePresenter<D extends Display> implements Presenter<D> {
protected final HandlerManager eventBus;
protec... | Java |
package com.google.gwt.sample.stockwatcher.client.presenter;
import java.util.ArrayList;
import java.util.List;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.sample.stockwatcher.client.ev... | Java |
package com.google.gwt.sample.stockwatcher.client.presenter;
import com.google.gwt.event.dom.client.HasClickHandlers;
public interface StockWatcherPresenter extends
Presenter<StockWatcherPresenter.Display> {
public interface Display extends
com.google.gwt.sample.stockwatcher.client.view.Display {
/**
* G... | Java |
package com.google.gwt.sample.stockwatcher.client.presenter;
import com.google.gwt.sample.stockwatcher.client.view.Display;
/**
* Presenter Interface.
*/
public interface Presenter<D extends Display> {
void bind();
D getDisplay();
}
| Java |
package com.google.gwt.sample.stockwatcher.client.presenter;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.sample.stockwatcher.client.event.ShowStockWaterEvent;
import com.google.gwt.sample.stockwatcher.client.service.StockPriceServiceAsync;
import com.google.gwt.sample.stockwatcher.client.s... | Java |
package com.google.gwt.sample.stockwatcher.client.view;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyPressEvent;
import com.go... | Java |
package com.google.gwt.sample.stockwatcher.client.view;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.sample.stockwatcher.client.presenter.BuyStockPresenter;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
... | Java |
package com.google.gwt.sample.stockwatcher.client.view;
import com.google.gwt.user.client.ui.Widget;
public interface Display {
Widget asWidget();
} | Java |
package com.google.gwt.sample.stockwatcher.client.shared;
import java.io.Serializable;
public class StockPrice implements Serializable {
/** */
private static final long serialVersionUID = 8040259246828316386L;
private String symbol;
private double price;
private double change;
public StockPrice() {
}
publ... | Java |
package com.google.gwt.sample.stockwatcher.client.shared;
import java.io.Serializable;
public class StockBuy implements Serializable {
/** */
private static final long serialVersionUID = -5423954446375892903L;
private String symbol;
private Double price;
private Long count;
public StockBuy() {
}
public Sto... | Java |
package com.google.gwt.sample.stockwatcher.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.sample.stockwatcher.client.event.BuyStockEvent;
import com.google.gwt.sample.stockwatcher.client.event.BuyStoc... | Java |
package com.google.gwt.sample.stockwatcher.client.event;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.sample.stockwatcher.client.shared.StockPrice;
public class BuyStockEvent extends GwtEvent<BuyStockEventHandler> {
private StockPrice stockPrice;
public BuyStockEvent(StockPrice stockPrice) {... | Java |
package com.google.gwt.sample.stockwatcher.client.event;
import com.google.gwt.event.shared.EventHandler;
public interface BuyStockEventHandler extends EventHandler {
void onBuyStock(BuyStockEvent event);
}
| Java |
package com.google.gwt.sample.stockwatcher.client.event;
import com.google.gwt.event.shared.GwtEvent;
public class ShowStockWaterEvent extends GwtEvent<ShowStockWaterEventHandler> {
public ShowStockWaterEvent() {
super();
}
public static Type<ShowStockWaterEventHandler> TYPE = new Type<ShowStockWaterEventHandl... | Java |
package com.google.gwt.sample.stockwatcher.client.event;
import com.google.gwt.event.shared.EventHandler;
public interface ShowStockWaterEventHandler extends EventHandler {
void onShowStockWater(ShowStockWaterEvent event);
}
| Java |
package com.google.gwt.sample.stockwatcher.server;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import com.google.gwt.sample.stockwatcher.client.service.StockPriceService;
import com.google.gwt.sample.stockwatcher.client.shared.StockBuy;
import com.google.gwt.sample.stockwatche... | Java |
/*
* Wifi Connecter
*
* Copyright (c) 20101 Kevin Yuan (farproc@gmail.com)
*
* 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 ... | Java |
package com.farproc.wifi.connecter;
import android.net.wifi.ScanResult;
import android.net.wifi.WifiConfiguration;
import android.net.wifi.WifiConfiguration.AuthAlgorithm;
import android.net.wifi.WifiConfiguration.GroupCipher;
import android.net.wifi.WifiConfiguration.KeyMgmt;
import android.net.wifi.WifiConfiguration... | Java |
Java-Code-Large
Java-Code-Large is a large-scale corpus of publicly available Java source code comprising more than 15 million java codes. The dataset is designed to support research in large language model (LLM) pretraining, code intelligence, software engineering automation, and program analysis.
By providing a high-volume, language-specific corpus, Java-Code-Large enables systematic experimentation in Java-focused model training, domain adaptation, and downstream code understanding tasks.
1. Introduction
Large-scale code corpora have become fundamental resources for training and evaluating machine learning models for code-related tasks. While multilingual code datasets exist, there is increasing interest in language-specialized corpora to:
Improve domain-specific performance
Reduce cross-language noise
Enable controlled experimental settings
Support Java-specific tooling and research
Java-Code-Large addresses this need by providing a dedicated Java-only dataset at substantial scale.
2. Dataset Composition
Programming Language: Java
File Count: 15M+ Java files
File Format: .jsonl
Content Types:
Classes
Interfaces
Enums
Methods
Annotations
JavaDoc comments
Exception handling structures
Generics and concurrency constructs
The dataset consists of source code extracted from publicly accessible open-source repositories.
3. Intended Research Applications
3.1 Pretraining
Training code foundation models from scratch
Continued pretraining of existing LLMs
Java-specialized language modeling
3.2 Fine-Tuning and Adaptation
Code completion systems
Automated refactoring tools
IDE copilots
Java-specific conversational assistants
3.3 Code Intelligence Tasks
Code summarization
Code-to-text generation
Bug detection
Vulnerability detection
Clone detection
Code similarity modeling
Static and structural analysis
3.4 Software Engineering Research
Empirical studies of Java programming patterns
Tokenization and AST modeling experiments
Thanks to open source community for all the guidance & support!!
- Downloads last month
- 492