query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
create new remote object | public RTRemoteObject(RTRemoteProtocol proto, String objectId) {
protocol = proto;
id = objectId;
} | [
"protected abstract CreateRemoteClassic<Msg, RemoteAgentRef> make_create();",
"protected RemoteObject(RemoteRef newref) {\n ref = newref;\n }",
"public abstract RemoteNode newRemoteNode(Socket socket, String aet);",
"Object create(Object o);",
"@SuppressWarnings(\"unchecked\")\n\tpublic static JSO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field success is set (has been assigned a value) and false otherwise | public boolean isSetSuccess() {
return this.success != null;
} | [
"public boolean hasSuccessValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasSuccessValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isSetSuccess() {\n return __isset_bit_vector.get(__SUCCESS_ISSET_ID);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the giftCardStatusIndicator property. | public void setGiftCardStatusIndicator(int value) {
this.giftCardStatusIndicator = value;
} | [
"public void setIndicatorState(IndicatorState indicatorState);",
"public void setStatus(int status) {\n\t\t_banner.setStatus(status);\n\t}",
"public void setStatus(typekey.ContractStatus value) {\n __getInternalInterface().setFieldValue(STATUS_PROP.get(), value);\n }",
"private void setStatus(boolean ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public int fileUpdate(CreativeDTO dto) {
int i = 0;
conn = getConnection();
sql = " UPDATE MEMBERCREATIVE "
+ " SET CREATOR_PHOTO = ? "
+ " WHERE USER_EMAIL = ? "
;
try {
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, dto.getCreatorPhoto());
pstmt.setString(2, dt... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO total number of letters in all the names with more than 5 letters | public static int getTotalNumberOfLettersOfNamesLongerThanFive(String... names) {
return 0;
} | [
"private int distinctLetters() {\n String nDistinctLetters = \"\";\n for(int i=0; i < length; i++){\n \tString c = String.valueOf(this.word.charAt(i));\n if (!nDistinctLetters.contains(c)){\n nDistinctLetters += c;\n }\n }\n return nDistinctLet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test a corner case when the family qualifier is a prefix of the column qualifier. | @Test
public void testColumnCompare_prefix() throws Exception {
final byte[] a = Bytes.toBytes("aaa");
byte[] family1 = Bytes.toBytes("abc");
byte[] qualifier1 = Bytes.toBytes("def");
byte[] family2 = Bytes.toBytes("ab");
byte[] qualifier2 = Bytes.toBytes("def");
KeyValue aaa = new ClientKeyV... | [
"boolean hasColumnQualifierBytes();",
"Expr qualifier();",
"boolean isUsePrefix();",
"boolean isQualifier();",
"@java.lang.Override\n public boolean hasQualifier() {\n return qualifier_ != null;\n }",
"protected boolean matches(String proposal, String prefix) {\n\t\tif (proposal == null || pref... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splash_screen);
sqliteData db = new sqliteData(this);
intent = new Intent(SplashScreen.this,
SigninActivity.class);
try {
List<userData> userinfo = db.getAllUserData();
use... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Resets the cpu of the computer. | public void setCpu(String cpu) {
this.cpu = cpu;
} | [
"private void clearCpuRate() {\n \n cpuRate_ = 0L;\n }",
"private void clearCpu() {\n this.bitField0_ &= -2;\n this.cpu_ = 0;\n }",
"public synchronized static void reset()\r\n {\r\n nInPool = 0;\r\n macCounter = 1;\r\n }",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Required. The name of the `Registration` whose DNS settings are being updated, in the format `projects/locations/registrations`. | public ConfigureDnsSettings setRegistration(java.lang.String registration) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(REGISTRATION_PATTERN.matcher(registration).matches(),
"Parameter registration must conform to the pattern " +... | [
"public void setRegistrationName(java.lang.String registrationName) {\n this.registrationName = registrationName;\n }",
"@Override\n\tpublic String getRegistration() {\n\t\treturn \"HYUN1234\";\n\t}",
"public String getRegistrationName() {\n if (registrationName != null) {\n return r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Bean definitions for application.properties and messages.properties files. | @Bean
public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
return new PropertySourcesPlaceholderConfigurer();
} | [
"@Bean\n public PropertiesFactoryBean mainProperties() {\n PropertiesFactoryBean res = new PropertiesFactoryBean();\n res.setFileEncoding(\"UTF-8\");\n res.setLocation(new ClassPathResource(\"/main.properties\"));\n mainProperties = res;\n return res;\n }",
"private void r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0" $ANTLR start "rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0" ../org.xtext.tortoiseshell.ui/srcgen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:15883:1: rule__XMemberFeatureCall__Member... | public final void rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.... | [
"public final void rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOcelet.g:22061:1: ( ( ruleXExpression ) )\n // InternalOcelet.g:22062:2: ( ruleXExpress... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .CMsgRGBA clr1 = 3; | public skadistats.clarity.wire.common.proto.NetworkBaseTypes.CMsgRGBA.Builder getClr1Builder() {
bitField0_ |= 0x00000004;
onChanged();
return getClr1FieldBuilder().getBuilder();
} | [
"org.artempopov.serverFirst.proto.Common.Color getColor();",
"public int getTransparency() {\n/* 54 */ return 0;\n/* */ }",
"org.techforumist.keynote.proto.TSP.TSPMessages.Color getColor();",
"com.commutestream.nativeads.protobuf.Csnmessages.ColorsOrBuilder getColorsOrBuilder();",
"default int getC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Show the annotation view. | public void showAnnotations(ICVSResource cvsResource, Collection cvsAnnotateBlocks, InputStream contents, boolean useHistoryView) throws InvocationTargetException {
// Remove old viewer
Control[] oldChildren = top.getChildren();
if (oldChildren != null) {
for (int i = 0; i < oldChildren.length; i++) {
... | [
"public void show(){\n \n m_ThisView.setVisible( true );\n \n }",
"public void showPatientSelection() {\n try {\n \t// Load person overview.\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Main.class.getResource(\"/view/PatientSelection.fxml\"));\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when a client is about to call the processor. | void processContext(
ServerContext serverContext, TTransport inputTransport, TTransport outputTransport); | [
"public abstract void onApproach(Client c);",
"@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tsuper.onStart();\n\t\t\t\tcall_normal.onStart();\n\t\t\t}",
"@Override\r\n\tpublic void onCall() {\n\t\t\r\n\t}",
"final synchronized void handle(Processor handler) {\n processor = handler;\n if (cal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert game State to string Mancala Game Board: 123456 Player 2 [4][4][4][4][4][4] P2 X X P1 [4][4][4][4][4][4] Player 1 | public String toString()
{
String game = "";
game += " --1--2--3--4--5--6--" + "\n";
game += " Player 2" + "\n" + " ";
for(int b = 12; b > 6; b--)
{
game += "[" + gameBoard[b] + "]";
}
game += "\n";
game += "P2 " + pla... | [
"public String getBoardStateAsString() {\n\t\tString state = \"\";\n\t\tfor (Area a : board.getAreas()) {\n\t\t\tstate += a.getName();\n\t\t\tArrayList<Player> areaPlayers = board.getPlayersByArea(a);\n\t\t\tif (!areaPlayers.isEmpty()) {\n\t\t\t\tstate += \" is occupied by:\";\n\t\t\t\tfor (Player p : areaPlayers) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Get the builtin Minecraft resource tables and see if that given path is there. NOT used for anything other than default loot tables. | private LootTable loadBuiltInTable(World world, NamespacedKey path, String datapackName) {
URL url = Bukkit.class.getResource("/data/minecraft/loot_tables/" + path.getKey() + ".json");
if (url != null) {
String s;
try {
s = Resources.toString(url, Charsets.UTF_8)... | [
"boolean getIncludeSystemTables();",
"public abstract boolean hasResourcePack();",
"boolean hasCustomKeymapTable();",
"private boolean tableExist(String table){\n try{\n ResultSet rs = getDbConnection().getMetaData().getTables(null, null, table, new String[] {\"TABLE\"}); //returns any table... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generate Random Device Id | private String randomNumber() {
final Random rand = new Random();
String random = String.valueOf(100000 + rand.nextInt(900000));
return random;
} | [
"String generateId() {\n return String.valueOf(System.currentTimeMillis() + RN.nextInt());\n }",
"private static String generateRandomID() {\n\n\t\tString uuid = UUID.randomUUID().toString();\n\t\tidList.add(uuid);\n\t\treturn uuid;\n\t}",
"public String generateRandomIdentifier() {\n StringBuf... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the portNumber1 value for this RecorderProfile. | public void setPortNumber1(java.lang.Integer portNumber1) {
this.portNumber1 = portNumber1;
} | [
"public void setNumOne(int n1)\r\n\t{\n\t\tnumOne = n1;\r\n\t}",
"public void setPortNumber(int PortNumber) {\n this.PortNumber = PortNumber;\n }",
"public void setPortNumber(final int portNumber) {\n this.portNumber = portNumber;\n }",
"@Override\r\n\tpublic void setPort(Integer port) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all the achatPrevisionArrivages. | @Override
@Transactional(readOnly = true)
public Page<AchatPrevisionArrivageDTO> findAll(Pageable pageable) {
log.debug("Request to get all AchatPrevisionArrivages");
return achatPrevisionArrivageRepository.findAll(pageable)
.map(achatPrevisionArrivageMapper::toDto);
} | [
"public ArrayList<Producer> getAllProducers(){ return Producer.getAllproducers(); }",
"public List<ProvidenciaEntity> getProvidencias() {\r\n LOGGER.info(\"Inicia proceso de consultar todas las providencias\");\r\n return persistence.findAll();\r\n }",
"public ArrayList<Pit> getPlayerAPits()\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns page with archived pictures for user | @GetMapping(value={"/archive"})
public ModelAndView archived( @RequestParam(value = "size", required=false) Integer size,
@RequestParam(value = "page", defaultValue="0", required=false) Integer page,
@RequestParam(value = "all", required=false) Boolean all,
@RequestParam(value = "allC... | [
"List<UserImage> getPhotographImages(User owner);",
"@GET(\"account/{account_id}/photos\")\n Call<List<Photo>> getPageOfPhotosForAccount(@Path(\"account_id\") int userId);",
"@RequestMapping(value = { \"/account/{accountId}/image\", \"/account/{accountId}/image/\" }, method = RequestMethod.GET)\n public P... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if is end game. | public static boolean isEndGame(final Board board) {
return board.currentPlayer().isInCheckMate() || board.currentPlayer().isInStaleMate();
} | [
"public boolean IsEndGame()\n\t{\n\t\t//check if someone has 10 points or not\n\t\treturn state == GameRound.GAMEOVER;\n\t}",
"public boolean isEndGame() {\n\t\treturn endGame;\n\t}",
"private boolean endOfGame() {\n\t\treturn (this.gameState.getRound() == Constants.ROUND_LIMIT);\n\t}",
"private boolean isGam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
///////////////////////////////////////////////////////////////////////////////// Screen //////////////////////////////////////////////////////////////////////// Methods offered to VIEW to communicate with PRESENTER | interface ViewToPresenter extends Presenter<PresenterToView> {
void onButtonClicked(int selectedItemPosition);
void startLoadShopList();
} | [
"@Override\n\tpublic void onScreenSet() {\n\t\t\n\t}",
"public void screenChanged();",
"void onDisplay();",
"void onScreenDim();",
"@Override\n public void newDisplay() {\n \n }",
"@Override\r\n\tpublic void touchScreen() {\n\r\n\t}",
"public PauseScreen() {\n\t\tbackBtn = new TextButton(10... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by Weikang on 2018/10/10. | public interface PickPictureCallback {
void onStart();
void onSuccess(List<PictureTotal> list);
void onError();
} | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
shape2 doesn't pass all the way through shape | @Test
public void test_mesh_difference_7() {
Mesh_3D shape = new Mesh_3D();
Shapes.ellipsoid(shape,10,40,20,3);
Mesh_3D shape2 = new Mesh_3D();
Shapes.e_cylinder(shape2,5,20,15,30,20,3);
Mesh_3D result = new Mesh_3D();
Intersect_Meshes_3D intersect_meshes = new Inters... | [
"Shape2f<?> getShape();",
"abstract public void shape();",
"public abstract void createShape();",
"@Override\r\n public Shape computeOutputShape(Shape inputShape) {\n return inputShape;\r\n }",
"public interface Shape2D extends java.io.Serializable {\n\n /**\n * Gets the center point of this Pol... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the object Places by setting the name | public Room(String name) {
super(name);
} | [
"void setPlaceName(java.lang.String placeName);",
"public void onNameSet(String name) {\n\t\tplace.setName(name);\r\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\t_subPlace.setName(name);\n\t}",
"public Place(String name){\r\n\t\tsuper(null);\r\n\t\tthis.name = name;\r\n\t}",
"public void setP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete the MigrationProcessStatus by id. | @Override
public void delete(Long id) {
log.debug("Request to delete MigrationProcessStatus : {}", id);
MigrationProcessStatusRepository.deleteById(id);
} | [
"public static void deleteProblemMCStatus(int id) {\n Connection conn = null;\n PreparedStatement pstmt = null;\n String sql = \"\";\n try {\n conn = ConnectionManager.getConnection();\n sql = \"DELETE FROM tbl_MC_status WHERE ID = ?\";\n pstmt = conn.pre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: 0000 / renamed from: a | public void mo38642a(C13427g gVar, T t) throws IOException {
if (t != null) {
String str = (String) this.f34803b.convert(t);
if (str != null) {
gVar.mo38661c(this.f34802a, str, this.f34804c);
}
}
} | [
"public void mo28221a() {\n }",
"public void mo5201a() {\n }",
"protected abstract void mo3493a();",
"public abstract az mo1423b();",
"public interface C0050a {\n /* renamed from: a */\n boolean mo143a();\n\n /* renamed from: b */\n boolean mo144b();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get resolution from screen | public static String convertForenhightToCuntigrad(int faren) {
return ((faren - 32) * 5 / 9) + "°C";
} | [
"public abstract double getScreenResolution();",
"private Rectangle getScreenResolution() {\n\t\treturn new Rectangle(1280, 800);\n\t}",
"public void getScreenSize(){\n Display display = getWindowManager().getDefaultDisplay();\n Point screen = new Point();\n display.getSize(screen);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
delete CardDetails by id | @DeleteMapping("/delete/{id}")
public Response deleteCardDetails(@PathVariable Long id){
log.info("Ready to delete a CardDetails info");
cardDetailsServiceImpl.deleteById(id);
return new Response("The CardDetails have been deleted");
} | [
"@Override\n\tpublic void deleteCard(int id) {\n\n\t}",
"boolean deleteById(String idcard_id);",
"@DeleteMapping(\"/cards/{id}\")\n @Timed\n public ResponseEntity<Void> deleteCard(@PathVariable Long id) {\n log.debug(\"REST request to delete Card : {}\", id);\n\n cardRepository.deleteById(id... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
HashSet doesnt maintain the order | public static void main(String[] args) {
HashSet<Integer> values =new HashSet<Integer>();
values.add(10);
values.add(23);
values.add(35);
values.add(21);
values.add(16);
values.add(65);
values.add(21);
for(Integer i:values) {
System.out.println("Values in HashSet are : "+i);
}
// LinkedH... | [
"public static void main(String args[])\r\n\t{\n\r\n\t\tHashSet<Integer> set=new HashSet<>();\r\n\t\tset.add(1);\r\n\t\tset.add(20);\r\n\t\tset.add(3);\r\n\t\tset.add(3); \t\t /* duplicate will be removed */\r\n\t\tSystem.out.println(set); /* [1,3,20] */\r\n\t\t\r\n\t}",
"public abstract HashSet<Temp> ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onStartTrackingTouch(SeekBar seekBar) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructors Create a detached SuggestionRecord | public SuggestionRecord() {
super(de.piratenpartei.berlin.ldadmin.dbaccess.generated.tables.Suggestion.SUGGESTION);
} | [
"public QuestionRecord() {\n super(Question.QUESTION);\n }",
"private Suggestion createSuggestion(JSONObject json) {\n Suggestion suggestion = null;\n\n try {\n suggestion = new Suggestion(json.getString(JSON.TITLE), json.getString(JSON.URL));\n suggestion.setDescript... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the value of the first die | public int getF_Die(){
return die1;
} | [
"public int getdie1() {\n\t\treturn die1;\n\t}",
"public int getFirstDiceResult();",
"public int getValue() {\n\t\treturn dieValue;\n\t}",
"private int RollDie()\r\n {\r\n faceValue = new Random().nextInt(numSides) + 1;\r\n return faceValue;\r\n }",
"public int throwDie() {\n\t\t//Metodo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Description of the Method | public static Vector createTextTableNoBanner(String textBody) {
Vector tableVector = TextSoap.FindAllBetween(textBody, "?", "?\r\n");
return tableVector;
} | [
"@Override public String toString() {\n\t\treturn \"method\";\n\t}",
"public static void DemoMethod() {\n\t\t\n\t}",
"@Override\n }",
"public void method();",
"public String theMethod() {\n return \"OK\";\n }",
"@Override\n public void method() {\n }",
"@Override\r\n public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Do something with the selection | public void onClick(DialogInterface dialog, int item) {
fetchProductPicture(item);
} | [
"public void accept() {\n\t\tselection = getSelectedIndex();\n\t}",
"public abstract Object getSelection();",
"protected void handleSelectionChanged( final IStructuredSelection selection )\r\n {\r\n // TODO Auto-generated method stub\r\n\r\n }",
"@Override\n public void onSelection() {\n }",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method used by tabs | private void setupViewPager(ViewPager viewPager) {
//IMP: unlike Activity;in fragment use below code ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager());
//
/* Simply moved below code to OnCreate(); and made adapter as global variable ; lets see if it loads fragments faster... | [
"public void tabChange() {\r\n\t}",
"public void selectTab();",
"@Override\r\n public void initTabs() {\n }",
"public void doTabs()\n { \t\n \ttabSimpleBlocks = new SimpleTab(\"tabSimpleBlocks\"); \t\n \t \n \tif(Settings.enableSeparateTabs)\n \t{\n \ttabSimpleDecorations = new SimpleTab(\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Contains user EOFcode, which will be executed exactly once, when the end of file is reached | private void zzDoEOF() throws java.io.IOException {
if (!zzEOFDone) {
zzEOFDone = true;
yyclose();
}
} | [
"public boolean atEOF();",
"private void zzDoEOF() {\n if (!zzEOFDone) {\n zzEOFDone = true;\n \nreturn;\n\n\n }\n }",
"int getEOF();",
"private void zzDoEOF() throws java.io.IOException {\n if (!zzEOFDone) {\n zzEOFDone = true;\n ea.cerrarModulo();\n yyclose();\n }\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleOpEquality" $ANTLR start "ruleOpEquality" ../de.grammarcraft.flow.ui/srcgen/de/grammarcraft/flow/ui/contentassist/antlr/internal/InternalFlow.g:636:1: ruleOpEquality : ( ( rule__OpEquality__Alternatives ) ) ; | public final void ruleOpEquality() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../de.grammarcraft.flow.ui/src-gen/de/grammarcraft/flow/ui/contentassist/antlr/internal/InternalFlow.g:640:2: ( ( ( rule__OpEquality__Alternatives ) ) )
// .... | [
"public final void ruleOpEquality() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOcelet.g:1167:2: ( ( ( rule__OpEquality__Alternatives ) ) )\n // InternalOcelet.g:1168:2: ( ( rule__OpEquality__Alternatives ) )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sobre carga de Metodos | public COMPAÑIAS getCompañias(int CompañiaActual) {
return Compañias[CompañiaActual];
} | [
"private HashMap CalcularResumenPorMes(HashMap datos) {\n ContratoDao conDao = new ContratoDao();\n Contrato con = (Contrato)datos.get(\"contrato\");\n if (con.getId()!=-1){\n con = conDao.obtener(con.getId());\n datos.put(\"contrato\", con);\n }\n CentroTrab... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fast correlation matrix function but only valid if all columns have mean 0 and sd 1. See normalizeColumns() Does NOT check if conditions valid This function is not the same as covariance | public DoubleMatrixDataset<C, C> calculateCorrelationMatrixOnNormalizedColumns() {
final DoubleMatrix2D innerMatrix = getMatrix();
final int rows = innerMatrix.rows();
final int columns = innerMatrix.columns();
final double rowsMin1 = (double) (rows - 1);
final DoubleMatrix2D correlations = new cern.colt.mat... | [
"public static double[][][] xcorr(double[][][] matrix1,double[][][] matrix2){\n\t\tdouble[][][] xcor = new double[matrix1.length-matrix2.length+1][matrix1[0].length-matrix2[0].length+1][matrix1[0][0].length-matrix2[0][0].length+1];\n\t\tdouble ms1 =0;\n\t\tdouble ms2 =0;\n\t\tint width = matrix1.length;\n\t\tint he... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function is used to login TestSalesForce.com by passing the credentials that is username and password. | public static void loginToSalesForce(String username, String password, String testCaseName) {
SFDC_General_Utility.openUrl(property.getURL1(),testCaseName);
logger.log(LogStatus.INFO, "Sales force url opening", SFDC_General_Utility.takeShot(testCaseName));
Testsalesforce_PageObject.fillUsername(username,test... | [
"public static void salesforceLogin(){\n\t\tConnectorConfig config = new ConnectorConfig();\n\t config.setUsername(USERNAME);\n\t config.setPassword(PASSWORD);\n\t //config.setTraceMessage(true);\n\t \n\t try {\t \n\t connection = Connector.newConnection(config);\t \n\t Sy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Edita los atributos de un medicamento. | public static void edit_medication_attributes(String new_name, String new_price, Medication m){
try{
File medication_file = new File("C:/Users/dell-pc/Desktop/MediTEC Server git/MediTECServer/xmlfiles/medication.xml");
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBui... | [
"@Override\r\n\tpublic void editarDados() {\n\t\tsuper.editarDadosDeFuncionario();\r\n\t\tsetCrm();\r\n\t}",
"public void editaAtribucion(AtribucionBean atribucion) {\n atribucion.setEstado(EstadoListadosEnum.MODIFICADO);\n }",
"public void editar() {\n try {\n ServicoDao fdao = new ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
tx timeout check lOck | public static boolean txTimeoutCheckLock() {
return getRootSessionManager().scheduledLock(TX_TIMEOUT_CHECK);
} | [
"boolean hasEldTimeout();",
"private boolean timeout(NetworkEvent event) {\n\t\tretransmit((TCPMessage) event.getPDU());\r\n\t\tif (Simusys.time() == lastTimeOut)\r\n\t\t\treturn false;\r\n\t\t\r\n\t\tlastTimeOut = Simusys.time();\r\n\r\n\t\tif (cwnd > 1) {\r\n\t\t\tssthresh = cwnd / 2;\r\n\t\t\tcwnd = ssthresh;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void handle(ActionEvent e) {
if(e.getSource()==add){
cases.setStyle("-fx-border-radius: 1px");
if(activeTab!=null){
activeTab.cancel();
}
activeTab = ide.lastActiveTab();
String text = "switch( ){\n";
try{
int a = Integer.parseInt(cases.getValue()+"");
if(a<0){
thr... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns ServiceSchedule of the slot num | public ServiceSchedule getSSfromServiceScheduleList (int num) {
return ssList.get(num);
} | [
"public static Schedule getScheduleAtIdx(int idx){\n\t\treturn schedules[idx];\n\t}",
"public Schedule getSchedule(int i) {\r\n\t\treturn list_of_schedule.get(i);\r\n\t}",
"com.google.cloud.gaming.v1alpha.Schedule getSchedules(int index);",
"public ScheduleEnum getSchedule() {\n return schedule;\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
calculate the trapezoid's perimeter | public double perimeter() {
double per = (base1 + base2 + (2 * leg()));
return per;
} | [
"@Override\r\n\tpublic double computePerimeter() {\n\t\treturn (2 * Math.PI * sideLength);\r\n\t}",
"public double getPerimeter(){\n return 2*(width + length);\n }",
"@Override\n public double calculatePerimeter() {\n if (x < y) {\n double l = (y-x)/2;\n double b = Math... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Height in pixels. If this method is called after the component has been drawn/initialized: Set the height of the drawOval | public void setHeight(int height) {
setAttribute("height", height, true);
} | [
"public void setHeight(double newVal) {\n height = newVal;\n }",
"public void setHeight(double h) {this.height = h;}",
"public void setHeight(double y){\n height = y;\n }",
"public void setHeight(int value) {\n this.height = value;\n }",
"public void setHeight(int h) { ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a resource using a supplied name. | public Resource getResource( final String ref ) throws ResourceNotFoundException
{
try
{
return getDefaultResource( ref );
}
catch( InvalidNameException e )
{
final String error =
"Resource reference ["
+ ref
... | [
"public Resource getResource (String name) {\n return (Resource) resourceDictionary.get(name);\n }",
"public <T> T resource(final Class<T> type, final String name) {\n try {\n return type.cast(\n SystemInstance.get().getComponent(ContainerSystem.class)\n .ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column call_log.to_no | public String getToNo() {
return toNo;
} | [
"@Override\r\n\tpublic int getCallInfoByCallNo(String callNo) throws Exception {\n\t\treturn messageDao.getCallInfoByCallNo(callNo);\r\n\t}",
"public String getLastOutgoingNumber() {\n Cursor managedCursor = context.getContentResolver().query(CallLog.Calls.CONTENT_URI, null, null, null, null);\n int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Internal function to display an error message. | private void showError(String errorMessage) {
Log.d("showError", errorMessage);
TextView attributionTextView = (TextView) findViewById(R.id.mapAttribution);
if (attributionTextView != null) {
attributionTextView.setText(errorMessage);
}
} | [
"void displayErrorMessage(String message);",
"void showErrorMsg(String error);",
"public void displayError() {\r\n\t\tJOptionPane.showMessageDialog(null, \"Sorry! That space is taken!\");\r\n\t}",
"public void displayError(String msg){\n\t\tif(msg.trim().length() == 0) return;\n \t\terrorMessage.setText(msg);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
region Fixture / Arrange / Given | @Test
@DisplayName("Проверка получения статуса заявки по UUID с MapLoanCalcRepository")
public void shouldGetStatusByUUIDWithMapLoanCalcRepository(){
request = new LoanRequest(LoanType.OOO,18_500, 5);
MapLoanCalcRepository repo = new MapLoanCalcRepository();
sut = new LoanCalcController(... | [
"@Test\n public void eatTest(){\n // Given: in @Before\n Food pizza = new Food();\n\n // When \n tom.eat(pizza);\n int expected = 1;\n int actual = tom.getNumberOfMealsEaten();\n\n // Then\n Assert.assertEquals(expected, actual);\n }",
"@BeforeEach\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a Riemann theta function with characteristics zero and with prescribed periodMatrix and error tolerance tol. It further enables the user to switch off the Siegel`s Reduction. | public ThetaWithChar( final ComplexMatrix periodMatrix, final double tol,
final boolean performSiegelReduction ) {
theta = new Theta( periodMatrix, tol, performSiegelReduction );
update();
} | [
"public SequentialGaussNewtonOptimizer() {\n this(new QRDecomposer(SINGULARITY_THRESHOLD), false, null);\n }",
"protected void luniSolarTermsComputation() {\n\n final T zero = tle.getPerigeeArgument().getField().getZero();\n final T pi = zero.getPi();\n\n final FieldSinCos<T> scg ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub codificaPassword(); codificaPassword(2l); cicli su TUTTI gli utenti, se vedi che inizia con $2, cambia la password | @Override
public void run(String... args) throws Exception {
} | [
"public void setPassword(String nuevoValor) { password = nuevoValor; }",
"public void setPassword(String value) {\n set(2, value);\n }",
"public void passPassword(String pswd);",
"public void verificaPassword() {\r\n try {\r\n if (\"\".equals(this.PassValida)) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the current animation frame for the animation. | @Override
public void onRender(SpriteBatch spriteBatch) {
TextureRegion currentFrame = this.animation.getCurrentFrame();
// Draw the current animation frame.
spriteBatch.draw(currentFrame, this.getX(), this.getY(), this.getLengthX(), this.getLengthZ());
} | [
"public int getCurrentAnimationIndex()\n\t{\n\t\treturn currentAnimation;\n\t}",
"private int getCurrentFrame() {\n\t\t// determino direccion a trav�s de las velocidades de xSpeed y de ySpeed\n\t\tdouble dirDouble = (Math.atan2(despX, despY) / (Math.PI / 12) + 24);\n\n\t\tint direction = (int) Math.round(dirDoubl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Moves the player(bot or human) to a new location | private void movePlayer(int newX, int newY, Player player)
{
// set the current player location to what it has to be
if (player.isOnExit())
{
map.setMapPoint(player.getPositionX(), player.getPositionY(), 'E');
player.setIsOnExit(false);
}
else if (player.isOnGold())
{
map.setMapPoint(pla... | [
"private void move() {\n if (bot != null && bot.getPlayer() == board.getCurrentPlayer()\n || !board.verify(x, y)) {\n return;\n }\n setSign(board.getCurrentPlayer());\n board.makeMove(x, y);\n if (board.getGameStatus() != Board... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
LEER se le pasa lo que quieres que te escriba el usuario ej: "Imprime el nombre de la casilla que quieras comprar" y devuelve un string con lo que escriba el usuario por pantalla | String leer(String descripcion); | [
"private String senhaInformadoPeloUsuario() {\n\r\n\t\tString senha;\r\n\r\n\t\tdo {\r\n\r\n\t\t\tif (continuar(\"senha\")) {\r\n\r\n\t\t\t\tsenha = MeuScanner.getInstance().next();\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tabortar = true;\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t} while (senha == null);\r\n\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
REQUIRES: title is in elementsOnPage list EFFECTS: get title object of page | public Title getTitle() {
return (Title) elementsOnPage.get(0);
} | [
"public String waitForGetPageTitle(String title){\n wait.until(ExpectedConditions.titleContains(title));\n return driver.getTitle();\n }",
"void setTitle(int page, String title);",
"private String getTitle(final Document page) {\n\t\tElements elements = page.select(\"h1\");\n\t\tif (CollectionU... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the hero type from the saved game the hero types (gimly, legolas ...) are actually just numbered from 16 making it easy to math a picture to them | public static int getSavedGameHeroType(int savedGameId, int heroIdx) {
Log.d(TAG, "getSavedGameHeroType: Enter");
return getIntValueAtPath(savedGameId, String.format(FFG_HEROINFO_ID, heroIdx));
} | [
"public Texture getTypeOneTexture() {\n if (typeOne == Pokemon.Type.BUG) {\n return new Texture(\"bag/gui/skill/bug.png\");\n } else if (typeOne == Pokemon.Type.DARK) {\n return new Texture(\"bag/gui/skill/dark.png\");\n } else if (typeOne == Pokemon.Type.DRAGON) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public List<User> unityInfo() {
return userDao.unityInfo();
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor de la clase | public ControladorLogin(Ventana miVentana, Modelo miModelo, Controlador miControlador) {
this.miVentana = miVentana;
this.miModelo = miModelo;
this.miControlador = miControlador;
miVentana.login.btnCancelar.addActionListener(this);
miVentana.login.btnRegistrarse.addActionListener(this);
miVentana.logi... | [
"public Cachorro() {\r\n }",
"public Tanh() {\n\t}",
"public Juegos() {\r\n }",
"public Kakuro() {\n\t}",
"public TebakanJamak() {\n }",
"private Casier(){}",
"public Citas() {\n }",
"public Nurikabe(){\n\t}",
"public Copome() {\r\n\t}",
"public Coeur(){\r\n\r\n }",
"public Billet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the choose specify check. | public String getChooseSpecifyCheck() {
return chooseSpecifyCheck;
} | [
"String getChosenOption();",
"public Integer getChoose() {\n return choose;\n }",
"@Override\n public boolean choose() {\n return choice;\n }",
"public Optional<VALIDATOR_SELECTION_MODE> getValidatorSelectionMode() {\n final Optional<String> mode = JsonUtil.getString(forkConfigRoot, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs an command that adds a task to the task list. | public AddCommand(TaskType taskType, String name, LocalDateTime dateTime) {
switch (taskType) {
case DEADLINE:
this.task = new Deadline(false, name, dateTime);
break;
case EVENT:
this.task = new Event(false, name, dateTime);
break;
default:... | [
"public AddCommand(DukeTask task) {\n super();\n this.task = task;\n }",
"public AddTaskCommand() { }",
"private Command addTaskAccordingToType() {\n if (isEventTask()) {\n try {\n return new AddCommand(Task.EVENT_TASK, taskComponentArray, hasTaskComponentArray,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Intent intent = new Intent(getApplicationContext(), MainActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.putExtra("EXIT", true); startActivity(intent); | @Override
public void onClick(View arg0) {
showDialogForExit();
} | [
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }",
"@Override\n public void onBackPressed() {\n this.moveTaskToBack(true);\n Intent intent =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
End of variables declaration//GENEND:variables | public boolean isCancel() {
return cancel;
} | [
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initVariable() {\n\t\n\t}",
"public void mo17751g() {\n }",
"public void mo1857d() {\n }",
"public static void Q22()\r\n\t{\r\n\t}",
"public void mo28221a() {\n }",
"public void mo3914b() {\n }",
"protecte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this operation updates a players account information and checks for concurrent player modification | @Override
@Transactional
public AccountEO update(AccountEO account, Long accountId) throws WalletException {
if (account.getPlayerName() != null) {
account.setId(accountId);
try {
return accountRepository.save(account);
} catch (ObjectOptimisticLocking... | [
"public Player updatePlayerCredentials(Player player, Credentials credentials);",
"public boolean updateAccount(String username, UserAccount updatedAccount) throws UserAccountNotFoundException;",
"public void updateAccount(Account account) throws UnspecifiedAccount, CoinbaseException, IOException;",
"public v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table BASE_FIELDS | int deleteByExample(BaseFieldsExample example); | [
"public abstract String getBaseTable();",
"public String getBaseTable() {\n/* 62 */ return this.baseTable;\n/* */ }",
"public String getBaseSQL() {\n return baseSQL;\n }",
"@MyBatisRepository\npublic interface LogicFieldBaseMybatisCurdDao {\n\n public int importFields(LogicEntity logi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
adding icon to menu bar | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu,menu);
return super.onCreateOptionsMenu(menu);
} | [
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\tmenu.add(\"Delete history\").setIcon(android.R.drawable.ic_menu_recent_history);\n\treturn super.onCreateOptionsMenu(menu);\n}",
"void addNewIcon();",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t // Inflate the menu items for... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Cut a List of OsmELement to the clipboard assumes that element will be deleted and any necessary objects cloned | public void cutTo(@NonNull List<OsmElement> elements, int latE7, int lonE7) {
copyTo(elements, latE7, lonE7);
mode = Mode.CUT;
} | [
"protected void paste() {\n\t\t\ttry {\n\t\t\t\tClipboard sysClip = Toolkit.getDefaultToolkit().getSystemClipboard();\n\t\t\t\tTransferable t = sysClip.getContents(this);\n\t\t\t\tDataFlavor df = new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType + \";class=java.util.ArrayList\");\n\t\t\t\tif(t.isDataFlavorSuppor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creamos el hilo y le ponemos nombre | public static void main(String arg[]) {
Primero p = new Primero();
Segundo s = new Segundo();
// Iniciamos el hilo
p.start();
s.start();
System.out.println("Fin programa");
} | [
"public static void correr() {\n\t\tpeso = 80;\n\t\t//nombre=\"Kazuya\";\n\n\t}",
"public synchronized int entregarGloboParaHinchar(String nombre) {\n\t\twhile (globosOcupados >= 3) {\n\t\t\tSystem.out.println(nombre+ \" Esperando globo...\");\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To change body of implemented methods use File | Settings | File Templates. | public void removeStream(StreamDefinition streamDefinition, int tenantID) {
} | [
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n }",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n public void publicando() {\n }",
"@Override\n\tprotected void body()\n\t{\n\n\t}",
"@Override\n public void method() {\n }",
"@Override... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Destroy all fragments and loaders. | @Override
protected void onDestroy() {
super.onDestroy();
} | [
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\n\t\tgetSupportLoaderManager().destroyLoader(0);\n\t}",
"private void cleanUp() {\n\t\tif (progressDialog.isShowing()) {\n\t\t\tprogressDialog.dismiss();\n\t\t}\n\t\ttry {\n\t\t\tFragmentManager fm = getFragmentManager();\n\t\t\tFragmentTransact... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Presuva objekt v liste | public void moveTo(int fromIndex, int toIndex) {
if(toIndex==0) {
toIndex = 1;
}
SongModel obj = queue.get(fromIndex);
queue.remove(fromIndex);
if(toIndex>fromIndex) {
toIndex--;
}
queue.add(toIndex, obj);
fireTableDataChanged();
} | [
"protected void init_liste() {\r\n lesNomsDesObjectifs = sgbd.donneLesNomsDesObjectifs();\r\n lesObjectifs = sgbd.donneLesObjectifs();\r\n }",
"public List<Persona> listarPersona();",
"@Override\r\n\tpublic void exibeListaDeObjetos() {\n\t\t\r\n\t}",
"public ArrayList<ObjetoVivo> getPosiblesO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the id plan. | public void setIdPlan(Integer idPlan) {
this.idPlan = idPlan;
} | [
"@Override\n public void setPlanId(long planId) {\n _planPositions.setPlanId(planId);\n }",
"@Override\n public void setId(long id) {\n _planPositions.setId(id);\n }",
"public void setPlanid(String planid) {\n this.planid = planid == null ? null : planid.trim();\n }",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for the id. | public void setId(Long id) {
this.id = id;
} | [
"void setId(int id) {\n\t\t\n\t\tthis.id = id;\n\t}",
"public void setId(final int id)\r\n {\r\n this.id = id;\r\n }",
"@Override\r\n\tpublic void setId(long id) {\n\t\tthis.id=id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id.set(id);\r\n\t}",
"@Override\r\n public void setId(int id)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a source anchor (link to URI). That is, an anchor with an href attribute specifying the destination URI. | public Anchor(String text, boolean asHtml, String href, String target) {
this(text, asHtml, href);
setTarget(target);
} | [
"public SAnchor(String url, String target) {\n setURL(url);\n setTarget(target);\n }",
"ActionLink createActionLink();",
"public static com.google.gwt.user.client.Element createAnchor() {\n return Document.get().createAnchorElement().cast();\n }",
"public String toString () {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new object of class 'Explicit Call Decorator'. | ExplicitCallDecorator createExplicitCallDecorator(); | [
"public Decorator(Pizza pizza){\n this.pizza = pizza;\n }",
"@Override public SqlNode rewriteCall(SqlValidator validator, SqlCall call) {\n // New specification is purely syntactic, so we rewrite it as a\n // direct call to the constructor method.\n return call.operand(0);\n }",
"public Invo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return URL in String form to a remote resource which is aiming to get college name suggestions | String getSuggestionUrl(String partialCollegeName); | [
"private String getURL() {\n\t\t// TODO : 서버 URL\n\t\t// Sample : GitHub\n\t\treturn \"https://api.github.com/repos/pluu/PluuBasicLibrary/contributors\";\n\t}",
"String getConceptUrl();",
"abstract String url();",
"String getResolvedUrl();",
"LdapUrl getUrl();",
"@Override\n\tpublic String getURL() throw... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns only the land units. | public List<AbstractUnit> getLandUnits() {
return landUnits;
} | [
"@AsPercept(name = \"allLand\", filter = Filter.Type.ON_CHANGE)\n public double allLand() {\n return env.getAllSurface();\n }",
"public int getLand() {\n\t\treturn land;\n\t}",
"public Land getLand() {\n\t\treturn land;\n\t}",
"private double getUtilityPerUnitLand() {\n return 0;\n }",
"List<... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the document this object is a child of. | public JSONDocument getDocument() {
//start at this object
JSONData data = this;
//while the reference is not null
while (data != null) {
//if the reference is a document object, return it
if (data instanceof JSONDocument) { return (JSONDocument)data; }
//else reference the next parent
data = data.g... | [
"public IDocument getParentDocument() {\n \t\treturn getMasterDocument();\n \t}",
"public EntityImpl getBthDocument() {\n return (EntityImpl) getEntity(ENTITY_BTHDOCUMENT);\n }",
"public Object getDocumentObject() {\r\n return documentObject;\r\n }",
"public Document subDocument() throws JRExcep... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Searches for CatalogRateCanonicalRelations based on the criteria and returns a list of CatalogRateCanonicalRelation identifiers which match the search criteria. | public List<String> searchForCatalogRateCanonicalRelationIds(@WebParam(name = "criteria") QueryByCriteria criteria,
@WebParam(name = "contextInfo") ContextInfo contextInfo)
throws InvalidParameterException,
MissingParameterExcept... | [
"public List<CarrierChannelRelation> queryCarrierChannelRelationByCarrierId(long carrierId);",
"public ArrayList<Relic> getAllRelics(){\n return RelicFactory.getAllRelics();\n }",
"protected List<String> getResourcesMatchingCategory(List<String> cats) {\n \t\tinfo(\"Looking for resources matching %s\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public Token get(String key) throws NoSuchElementException {
if ( key==null)
{
throw new NullPointerException();
}
if (head==null)
{
throw new NoSuchElementException();
}
/*if (head.key==null)
{
throw new NoSuchElementException();
}
*/
else
{
Elem p= head;... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleModel" $ANTLR start "entryRuleType" InternalMyDsl.g:232:1: entryRuleType returns [String current=null] : iv_ruleType= ruleType EOF ; | public final String entryRuleType() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleType = null;
try {
// InternalMyDsl.g:232:44: (iv_ruleType= ruleType EOF )
// InternalMyDsl.g:233:2: iv_ruleType= ruleType EOF
{
... | [
"public final EObject entryRuleType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleType = null;\n\n\n try {\n // InternalMyDsl.g:100:45: (iv_ruleType= ruleType EOF )\n // InternalMyDsl.g:101:2: iv_ruleType= ruleType EOF\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .Boss bosses = 6; | com.ljh.gamedemo.proto.protoc.BossProto.Boss getBosses(int index); | [
"public void incrementBossKills() {\n bossesKilled++;\n BONUS_SHOTS += 4;\n MAX_SHOTS = MAX_SHOTS == 500 ? 500 : 2 + BONUS_SHOTS;\n }",
"private void addBatter() {\r\n batters++;\r\n }",
"int getGameBagCount();",
"@Override\r\n public int numberOfBalls() {\r\n retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .google.genomics.v1.Variant variants = 2; The variants to be merged with existing variants. | public java.util.List<? extends com.google.genomics.v1.VariantOrBuilder>
getVariantsOrBuilderList() {
if (variantsBuilder_ != null) {
return variantsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(variants_);
}
} | [
"public void setVariants(List<ProductVariants> variants) {\n this.productVariants = productVariants;\n }",
"public void addVariant(Variant v)\r\n\t{\r\n\t\tif (v == null) return;\r\n\t\tvarList.add(v);\r\n\t\tv.clearGenotypeFields();\r\n\t\tfor (String k : geno_order) v.addGenotypeField(k);\r\n\t}",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
filtros vindo da tela | private void adicionarFiltro(UsuarioFilter filtro, Criteria criteria) {
if (filtro.getEmpresa() != null) {
criteria.add(Restrictions.eq("empresa", filtro.getEmpresa()));
if (!StringUtils.isEmpty(filtro.getCodigo())) {
criteria.add(Restrictions.eq("codigo", filtro.getCodigo()));
}
if (!StringUtils.... | [
"public void filtro() {\n int columnaABuscar = 0;\n if (comboFiltro.getSelectedItem().equals(\"Codigo\")) {\n columnaABuscar = 0;\n }\n if (comboFiltro.getSelectedItem().toString().equals(\"Nombre\")) {\n columnaABuscar = 1;\n }\n if (comboFiltro.getSe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
adds a period to the schedule. There can be no overlapping periods. When adding periods the final periods must reflect the change but they cannot have overlapping periods. The Schedule must have the smallest possible number of periods | public void addPeriod( Period p ){
for(int i=periods.capacity(); i>=0; i--){
if(!periods.get(i).intersects(p))
periods.add(p);
else if( periods.get(i).intersects(p)){
periods.get(i).join(p);
removePeriod(periods.get(i));
}
}
} | [
"public void add(RegularTimePeriod period, Number value) { add(period, value, true); }",
"int addPeriodType(PeriodType periodType);",
"void addPayPeriod(PayPeriod payPeriod, Employee employee) throws ServiceException;",
"public double addPeriod(double note, double period);",
"public void addWorkPeriod(WorkP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .dash.BuildData.CommandLine command_line = 4; | public Builder setCommandLine(
com.google.devtools.build.lib.bazel.dash.DashProtos.BuildData.CommandLine.Builder builderForValue) {
if (commandLineBuilder_ == null) {
commandLine_ = builderForValue.build();
onChanged();
} else {
commandLineBuilder_.setMessage(buil... | [
"public CommandLine getCommandLine() { return commandLine; }",
"@ReportableProperty(order = 2, value = \"Application command line.\")\r\n\tpublic String getCommandLine();",
"public interface VertumnusCLI {\r\n\r\n\t/** Current version */\r\n\t@Option(shortName=\"v\")\r\n\tString getVersion();\r\n\r\n\t/** Modul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel2 = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
textRoomName = new javax.swing.JTextField();
jLabel3 =... | [
"public StForm() {\n initComponents();\n }",
"public CineForm() {\n initComponents();\n }",
"public javaform() {\n initComponents();\n }",
"public EditDemographicForm() {\n initComponents();\n }",
"public FightForm() {\n initComponents();\n }",
"public For... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the field with a value of start frame. | @FxThread
private @NotNull IntegerTextField getStartFrameField() {
return notNull(startFrameField);
} | [
"public int getStartFrame()\r\n/* 45: */ {\r\n/* 46:44 */ return this.startFrame;\r\n/* 47: */ }",
"public int getFrame() {\n\t\treturn this.frame;\n\t}",
"public Object getStartValue() {\n\t\treturn this.startValue;\n\t}",
"public String getFrame()\n\t{\n\t\treturn wFrame;\n\t}",
"StartParamete... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes a given HMAC key. Key must be in an INACTIVE state. | public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteHmacKey(
com.google.storage.v1.DeleteHmacKeyRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteHmacKeyMethod(), getCallOptions()), request);
} | [
"public void delete(final K key);",
"void delete(byte[] key) throws IOException;",
"public void deleteKeyValueInfo(String key) throws HFModuleException;",
"@Delete({\n \"delete from BC_MTX_SIGNATURE\",\n \"where MTX_SIGNID = #{mtxSignid,jdbcType=VARCHAR}\"\n })\n int deleteByPrimaryKey(BCM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public static AndroidDriver driver; | public static void main(String[] args) throws MalformedURLException,
InterruptedException {
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName", "Android Emulator");
capabilities.setCapability("automationName", "Appium");
capa... | [
"public static AndroidDriver initAndroidDriver() {\n DesiredCapabilities caps = new DesiredCapabilities();\n// caps.setCapability(\"deviceName\", \"Galaxy A500H API 23\");\n caps.setCapability(\"automationName\", \"uiautomator2\");\n caps.setCapability(\"deviceName\", \"6aa2d8ab\");\n// ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the damage set using setDamage is true for greater than 0.05 | @Test
public void testHighSetDamage() {
double damage = 8;
lightning.setDamage(damage);
assertTrue(lightning.getDamage() == damage && lightning.getIfDamagable() == true);
} | [
"public void setDamageAmount(float damage);",
"public void set_damage(double value)\r\n\t{\r\n\t\tdamage = value;\r\n\t}",
"@Override\n\tpublic void setDamage(double damage) {\n\t}",
"public boolean setDamage(float dam) {\n/* 1979 */ float modifier = 1.0F;\n/* 1980 */ float difference = dam - this.dam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Assert that none of the mutable return values from getters modify the state of the instance. | public void testImmutabilityViaGetterReturnValues() throws Exception {
Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222);
Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111);
Date keyValidityEndDateForConsumption = new Date(System.cur... | [
"public void assertNoChange() {\n assertNoChange(null);\n }",
"@Property\n\tpublic void shouldBeImmutable(@From(TreeGenerator.class) TreeWrapper c) {\n\t\ttestImmutability(c.get(), t -> t.balanced());\n\t\tMarks.award(1, this.getClass().getName() + \": \" + Thread.currentThread().getStackTrace()[1].getMethodN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public View getView(int position, View convertView, ViewGroup parent) {
int maxAddressLineIndex = getItem(position).getMaxAddressLineIndex();
String addressLine = "";
for (int j = 0; j <= maxAddressLineIndex; j++){
addressLine += getItem(position).getAddressLine(j) + ",";
}
... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for property transferType. | public void setTransferType(String transferType) {
this.transferType = transferType;
} | [
"public void setTransferType(int type) {\n mTransferType = type;\n }",
"@java.lang.Deprecated\n public Builder setTransferType(com.google.cloud.bigquery.datatransfer.v1.TransferType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x0000004... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Register a namespace prefix | private String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, String namespace) throws javax.xml.stream.XMLStreamException {
String prefix = xmlWriter.getPrefix(namespace);
if (prefix == null) {
prefix = generatePrefix(namespace);
javax.xml.namespace.N... | [
"public void addNamespace(String pPrefix) {\n // check if already registered.\n if (!namespaces.containsKey(pPrefix)) {\n LOGGER.debug(\"Add namespace for prefix '{}'\", pPrefix);\n namespaces.put(pPrefix, NAMESPACE_PREFIX + pPrefix);\n }\n }",
"private java.lang.String registerPrefix(javax.xm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculates the difference between the current date and the date the last payment was made. | public long calculateDaysSinceLastPayment(LocalDate lastPymntDate) {
return ChronoUnit.DAYS.between(ZonedDateTime.now(), lastPymntDate);
} | [
"public double getLastPaymentAmount() {\n return this.lastPaymentAmount;\n }",
"private String calculateNextPaymentDueDate(Integer debtId, PaymentPlans paymentPlan, List<Payments> paymentLst) {\n\n String retVal = null;\n try {\n\n //ISO 8601 UTC date formart -e.g. 2020-09-28T16... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
How to run a Job Process Manager. This is the execution entry point for this Maven module. | public void run(String... args) throws IOException {
String serverUrl = null;
boolean deleteOnExit = false;
boolean isLocal = false;
String executerId = null;
boolean liveUploadOutput = false;
boolean requestMachine = false;
for (int i = 0; i < args.length; i++) {
switch (args[i]) {
case "--serverU... | [
"Process runTaskFor(LmmpJob lmmpJob);",
"public JobsManager manager();",
"public void execute() throws MojoExecutionException {\n projectLocation = addFollowingSlash(projectLocation);\n \n // Get the effective pom and parse the dependencies\n File effectivePom = new File(projectLocation ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void init(FilterConfig arg0) throws ServletException {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void createOrRep(String viewName, String sql) throws Exception {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |