query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns list of CardAlbum instances.
public List<CardAlbum> getNewReleasedAlbums(){ List<CardAlbum> cardAlbumList = new ArrayList<>(); String albumId = null; String artistId = null; String artistName = null; String albumImageURL=null; String albumName = null; int albumPopu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Album> findAllAlbums() {\n\t\treturn _albumDao.findAllAlbums();\n\t}", "public List<Album> getAlbums()\r\n {\r\n\treturn albumCollection; // TODO breaks encapsulation\r\n }", "public List<Album> getAlbums(Artist artist);", "List<AlbumDTO> findAll();", "@Override\r\n public L...
[ "0.7291715", "0.688091", "0.6695881", "0.66000754", "0.6347032", "0.6315193", "0.6240534", "0.62130463", "0.61830455", "0.61335427", "0.60493934", "0.60145557", "0.59966946", "0.5983048", "0.5948298", "0.59201026", "0.589361", "0.5852731", "0.58335334", "0.58050656", "0.57995...
0.57489336
26
Initializes the new instance using the given parameters. Progress dialog will be displayed by default when grid is created.
public NewGridFormatActionCommand(FormatType formatType, ODOMSelectionManager selectionManager) { super(formatType, selectionManager); this.displayProgress = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public View()\r\n\t{\r\n\t\tsetGUI();\r\n\t\tfinal Multithreading m = new Multithreading(this);\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Anonymous Timer class for updating progress bars.\r\n\t\t * @param DELAY the system delay for time in milliseconds \r\n\t\t * @param ActionListener the ActionListener object\r\n\t\t */\r...
[ "0.6457187", "0.63816154", "0.6291307", "0.6263892", "0.6235252", "0.62199104", "0.617638", "0.61610013", "0.6158107", "0.6127325", "0.60903454", "0.60788655", "0.60772824", "0.606007", "0.6020849", "0.60190153", "0.60069877", "0.5976927", "0.59611183", "0.59439576", "0.59388...
0.0
-1
Initializes the new instance using the given parameters.
public NewGridFormatActionCommand(FormatType formatType, ODOMSelectionManager selectionManager, boolean displayProgress) { this(formatType, selectionManager); this.displayProgress = displayProgress; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Parameters() {\n\t}", "public void init(Object[] parameters) {\n\n\t}", "private Instantiation(){}", "protected void initialize() { \n param1 = SmartDashboard.getNumber(\"param1\");\n param2 = SmartDashboard.getNumber(\"param2\");\n param3 = SmartDashboard.getNumber(\"param3...
[ "0.6996005", "0.6920473", "0.68091923", "0.6792459", "0.67817444", "0.6774754", "0.6765213", "0.6746225", "0.6593587", "0.65760994", "0.6540276", "0.65083516", "0.6463393", "0.6372489", "0.63676673", "0.6355538", "0.63458264", "0.6328853", "0.6311476", "0.6306477", "0.628013"...
0.0
-1
This action command can only be performed when a single empty format is selected and the format type can reasonably be created at the selected point in the document.
public boolean enable(ODOMActionDetails details) { return ((details.getNumberOfElements() == 1) && selectionIsAppropriate(details.getElement(0)) && canReplace(details.getElement(0))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NewGridFormatActionCommand(FormatType formatType,\n ODOMSelectionManager selectionManager) {\n super(formatType, selectionManager);\n this.displayProgress = true;\n }", "public NewGridFormatActionCommand(FormatType formatType,\n ...
[ "0.60237247", "0.5617843", "0.54317623", "0.5430402", "0.5369889", "0.5364081", "0.534664", "0.53422683", "0.5327705", "0.53220576", "0.53135127", "0.52969563", "0.52007097", "0.5168228", "0.51574475", "0.5122699", "0.50587976", "0.5041113", "0.503915", "0.5026683", "0.502263...
0.0
-1
Supporting method that is used to make sure that the selection is appropriate for this action command.
protected boolean selectionIsAppropriate(Element selection) { return selection.getName().equals(FormatType.EMPTY.getElementName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void selectionChanged(IAction action, ISelection selection) {\n }", "@Override\n\tpublic void selectionChanged(IAction action, ISelection selection) {\n\t}", "public void selected(String action);", "private void checkSelection() {\n \t\tboolean oldIsSelection = isSelection;\n \t\tisSel...
[ "0.667187", "0.66663164", "0.6634586", "0.6631937", "0.66159236", "0.6562563", "0.65611786", "0.65611786", "0.6538023", "0.6514697", "0.6513967", "0.6511908", "0.64908767", "0.6461356", "0.64515114", "0.63387233", "0.6334562", "0.6321056", "0.62352407", "0.6150331", "0.612989...
0.6259914
18
Determines whether the given element can be replaced by the required type of format without causing layout constraints to be violated.
protected boolean canReplace(ODOMElement element) { Element e = ActionSupport.cloneContainingDeviceLayout(element); e = replace(e, 1, 1); return !LayoutConstraintsProvider.constraints.violated(e, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean isSuitableElement(Element element) {\n \n \t\tif (element instanceof ElementCSSInlineStyle\n \t\t\t\t&& isAttributeAvailable(element, STYLE_TAG_NAME)) {\n \t\t\treturn true;\n \t\t}\n \n \t\treturn false;\n \t}", "protected boolean canDiagramBeCreatedFromElement(IElement pElement)\n {\n...
[ "0.55464506", "0.542513", "0.5401856", "0.5367354", "0.5272628", "0.50903326", "0.50402987", "0.50315344", "0.4999042", "0.4936658", "0.4920476", "0.49172023", "0.48764148", "0.48598176", "0.48589402", "0.48578295", "0.48232117", "0.48167658", "0.4813581", "0.47964102", "0.47...
0.75461936
0
This method can called by GridActionRunner then IProgressMonitor is present or can be called in other way when progress dialog is not required.
protected void replaceAndSelect(ODOMActionDetails details, Dimension dimensions, IProgressMonitor monitor) { progressMonitor = monitor; // height = rows, width = columns Element e = replace(details.getElement(0), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tprotected void onPreExecute() {\n\t\t progressDialog = new AutoTuningInitDialog(mChannelActivity, R.style.dialog);\n\t\t\tprogressDialog.show();\t\t\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n public void initializeValidationData(IProgressMonitor arg0)\n {\n\n }", "@Override\n...
[ "0.62517726", "0.61751956", "0.59807307", "0.5980704", "0.59054756", "0.58675927", "0.5856205", "0.58411264", "0.5833097", "0.581295", "0.58118916", "0.5809891", "0.5777093", "0.5777093", "0.57645255", "0.5735805", "0.5716465", "0.57148933", "0.57045084", "0.56770504", "0.565...
0.0
-1
The specified format is replaced by a prototypical instance of the required type of grid format, dimensioned as specified.
protected Element replace(Element element, int rows, int cols) { Element replacement = null; if (!selectionIsAppropriate(element)) { throw new IllegalArgumentException( "The action can not replace a " + //$NON-N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFormat(edu.umich.icpsr.ddi.FormatType format)\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FormatType target = null;\n target = (edu.umich.icpsr.ddi.FormatType)get_store().find_element_user(FORMAT$10, 0);\n ...
[ "0.59683865", "0.5933664", "0.5792562", "0.57851785", "0.57565224", "0.57228935", "0.57228935", "0.57228935", "0.5722732", "0.5712576", "0.5657148", "0.5634334", "0.56188804", "0.5519108", "0.54356486", "0.5414588", "0.54055053", "0.5401526", "0.53833914", "0.53280044", "0.52...
0.0
-1
Constructor for the Surround Panel Inherits the attributes of a JPanel. Enables the user to interact with the SurroundGame.
public SurroundPanel(JMenuItem quitItem,JMenuItem newGameItem){ try{ this.addIcons(); }catch(MalformedURLException exception){ exception.printStackTrace(); } this.quitItem = quitItem; this.newGameItem = newGameItem; startUpConditions(); game = new SurroundGame(selectedSize,s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GamePanel() {\n this.setLayout(null);\n\n initializeStateLabel();\n\n initializePileLabel();\n\n initializeSetColorButton();\n\n initializeDrawButton();\n initializeHideButton();\n\n this.setVisible(true);\n }", "public GamePanel() {\n setBackground(n...
[ "0.6470611", "0.6456944", "0.6336797", "0.6304908", "0.6224593", "0.6224563", "0.62135744", "0.6128607", "0.6126576", "0.6111638", "0.61048824", "0.605479", "0.60383594", "0.60359776", "0.6016455", "0.5999651", "0.5974071", "0.5969982", "0.59699786", "0.5959148", "0.58993363"...
0.639692
2
the index of the array is the player for instance player 1 is the index 0.
public String setWins(int Player){ int winsUpdater = winsTracker[Player].getPlayer(); winsUpdater++; for(int i = 0; i<winsTracker.length;i++){ if(i==Player){ winsTracker[Player].setPlayer(winsUpdater); Player++; return "Player "+Player+"'s wins " +winsUpdater; } } return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Player getPlayer(int index) {\r\n return players[index];\r\n }", "int getActivePlayerIndex();", "public int getPlayerPosition(int player)\n {\n return players[player];\n }", "@Override\n public Player getPlayerOnIndex(int index) {\n return players.get(index);\n }", "publi...
[ "0.7358926", "0.7260977", "0.72494125", "0.710453", "0.707265", "0.69833326", "0.68491465", "0.6846428", "0.67773676", "0.65260655", "0.6414425", "0.63944757", "0.6390181", "0.6344722", "0.63347346", "0.6304283", "0.6304283", "0.62624407", "0.6215441", "0.61913896", "0.618466...
0.0
-1
Don't need to call Display board, or reset reset it done when the game is constructed Display board is done only when the user inputs a valid JButton press. this methods handles all of the dialog boxes for the panel
private void startUpConditions(){ String strSize = JOptionPane.showInputDialog(null, "Pick a Board Size between 3-30."); try{ selectedSize = Integer.parseInt(strSize); if(selectedSize < 2||selectedSize > 30){ selectedSize = 10; JOptionPane.showMessageDialog(null, "The Game has" + " d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent e) \n {\n JFrame dialogBox;\n \n // Use a nested for loop to loop through the buttons and find which\n // one was clicked.\n for (int row = 0; row < 15; row++) \n {\n for (int col = 0; col < 15; col++) \n ...
[ "0.70677197", "0.69113445", "0.67509955", "0.6696094", "0.6677591", "0.66742253", "0.6663313", "0.6624019", "0.6623674", "0.66193575", "0.66187054", "0.6603731", "0.65916574", "0.6589246", "0.6586322", "0.6566708", "0.65585744", "0.6552455", "0.6545538", "0.6526315", "0.65093...
0.6200916
71
/ renamed from: co.znly.models.PingProto$GroupMemberMetadataOrBuilder
public interface PingProto$GroupMemberMetadataOrBuilder extends MessageLiteOrBuilder { long getBolt(); Timestamp getLastBoltAt(); Timestamp getMuteUntil(); boolean getMuteUntilComeBack(); String getNickname(); ByteString getNicknameBytes(); boolean hasLastBoltAt(); boolean hasMute...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getGroupBytes();", "private GroupEventPacket(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public final void rule__AstMemberAccess__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n ...
[ "0.5502591", "0.54318887", "0.53426754", "0.5334999", "0.527632", "0.52704954", "0.5251858", "0.5239086", "0.5203757", "0.5198238", "0.51652205", "0.51495135", "0.51230586", "0.50806296", "0.506883", "0.506484", "0.50481415", "0.50481415", "0.50448924", "0.50443274", "0.50404...
0.8427374
0
Unit test designed to test the generation of monochromatic palettes with one total color.
@Test public void testMonochromaticPalettesOne() { this.runAnalogousPalette(RGB_RESULTS_ONE, 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testMonochromaticPalettesThree() {\n this.runAnalogousPalette(RGB_RESULTS_THREE, 3);\n }", "@Test\r\n public void testSingleColor(){\r\n List<Tone> palette = Arrays.asList(new Tone(Color.red));\r\n\r\n BufferedImage image = ImageFileUtils.loadImageResource(\"/sam...
[ "0.7919856", "0.7709736", "0.7556153", "0.69638497", "0.682794", "0.6718985", "0.634665", "0.62984544", "0.61961013", "0.61945564", "0.6151421", "0.5972833", "0.59545624", "0.5915486", "0.58732486", "0.57971114", "0.5788441", "0.5776528", "0.57583827", "0.57454103", "0.571594...
0.8257104
0
Unit test designed to test the generation of monochromatic palettes with two total colors.
@Test public void testMonochromaticPalettesTwo() { this.runAnalogousPalette(RGB_RESULTS_TWO, 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testMonochromaticPalettesOne() {\n this.runAnalogousPalette(RGB_RESULTS_ONE, 1);\n }", "@Test\n public void testMonochromaticPalettesThree() {\n this.runAnalogousPalette(RGB_RESULTS_THREE, 3);\n }", "@Test\r\n public void testSingleColor(){\r\n List<Tone>...
[ "0.80633074", "0.7914652", "0.7320044", "0.6935866", "0.6828584", "0.6620877", "0.6565902", "0.6336578", "0.59438956", "0.59390193", "0.5890483", "0.5870592", "0.58481073", "0.57906175", "0.5784868", "0.5772018", "0.5730552", "0.5728896", "0.56513923", "0.5635327", "0.5621419...
0.8217433
0
Unit test designed to test the generation of monochromatic palettes with three total colors.
@Test public void testMonochromaticPalettesThree() { this.runAnalogousPalette(RGB_RESULTS_THREE, 3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testMonochromaticPalettesOne() {\n this.runAnalogousPalette(RGB_RESULTS_ONE, 1);\n }", "@Test\n public void testMonochromaticPalettesTwo() {\n this.runAnalogousPalette(RGB_RESULTS_TWO, 2);\n }", "@Test\r\n public void testSingleColor(){\r\n List<Tone> pal...
[ "0.79449755", "0.75722283", "0.7324062", "0.67629963", "0.64909905", "0.64357394", "0.62936777", "0.61953783", "0.6081073", "0.59889793", "0.59740037", "0.59492123", "0.59473336", "0.5846121", "0.5788331", "0.5766783", "0.57024324", "0.5683587", "0.56832266", "0.56772834", "0...
0.84522545
0
Helper method used to test monochromatic palettes.
private void runAnalogousPalette(int[][][] RGB_RESULTS, int amount) { RGBColor monochromatic; String err; int[] coords; int[] monoCoords; for(int index = 0; index < RGB_INPUTS.length; index++) { coords = RGB_INPUTS[index]; this.paletteOne = new MonoChroma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testMonochromaticPalettesOne() {\n this.runAnalogousPalette(RGB_RESULTS_ONE, 1);\n }", "@Test\n public void testMonochromaticPalettesThree() {\n this.runAnalogousPalette(RGB_RESULTS_THREE, 3);\n }", "@Test\n public void testMonochromaticPalettesTwo() {\n ...
[ "0.8014698", "0.7619283", "0.73572975", "0.63924307", "0.6137443", "0.6001579", "0.5743821", "0.56664854", "0.5483085", "0.5466134", "0.54303837", "0.5276828", "0.5255165", "0.52508605", "0.5234928", "0.52322483", "0.519793", "0.51741576", "0.5156199", "0.51492685", "0.513242...
0.47927752
78
Encodes a tree to a single string.
public String serialize(TreeNode root) { if (root == null) { return "[]"; } List<String> list = new ArrayList<>(); Queue<TreeNode> queue = new LinkedList<>(); queue.offer(root); while (!queue.isEmpty()) { TreeNode node = queue.poll(); if (node == null) { list.add("nu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void encodeTree(){\n StringBuilder builder = new StringBuilder();\n encodeTreeHelper(root,builder);\n }", "public TreeNode encode(Node root) {\n return en(root);\n }", "public String toTreeString() {\n return toTreeString(overallRoot);\n }", "public String tree2Str(Tree...
[ "0.79797685", "0.7266544", "0.6766947", "0.67098355", "0.65929043", "0.6520053", "0.651422", "0.6502086", "0.6480438", "0.6466228", "0.6452631", "0.6446793", "0.6446198", "0.64218706", "0.6407569", "0.64030504", "0.64030504", "0.64030504", "0.6394578", "0.6385417", "0.6381468...
0.58973026
68
Decodes your encoded data to tree.
public TreeNode deserialize(String data) { if (data == null || data.equals("[]") || data.length() <= 2) { return null; } String[] strArray = data.substring(1, data.length() - 1).split(","); Queue<String> list = new LinkedList<>(); list.addAll(Arrays.asList(strArray)); Queue<TreeNode> que...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TreeNode deserialize(String data) {\n byte[] bytes = Base64.getDecoder().decode(data);\n IntBuffer intBuf = ByteBuffer.wrap(bytes)\n .order(ByteOrder.BIG_ENDIAN).asIntBuffer();\n int[] nums = new int[intBuf.remaining()];\n intBuf.get(nums);\n //for (int i = 0; i...
[ "0.6894664", "0.6808548", "0.650279", "0.64891165", "0.64851105", "0.6415433", "0.6362339", "0.63083476", "0.6284537", "0.622987", "0.6213446", "0.6161982", "0.6147146", "0.6140804", "0.6133282", "0.6078927", "0.6073399", "0.6069482", "0.6064389", "0.60632867", "0.6053727", ...
0.5633201
59
TODO Autogenerated method stub
public static void main(String[] args) { try { //Initialize shell frame ShellFrame = new ShellFrame(360,200,"Menu principal",null); //Content charge contentCharge (); //ShellFrame standby ShellFrame.StandBy(); } catch (Exception e) { JOptionPane.showMessageDialog(null, "Error. GUI ini...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
jhipsterneedleentityaddfield JHipster will add fields here
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mapp...
[ "0.62763983", "0.6147681", "0.5844888", "0.5740545", "0.5560386", "0.547659", "0.5464255", "0.54582417", "0.5440488", "0.54376584", "0.54208726", "0.5391521", "0.5391482", "0.5388153", "0.53871155", "0.5342213", "0.53312904", "0.53302115", "0.53127635", "0.5301875", "0.529629...
0.0
-1
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof LigneEntreeStock)) { return false; } return id != null && id.equals(((LigneEntreeStock) o).id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n i...
[ "0.62918586", "0.6070626", "0.5624308", "0.55707645", "0.5542136", "0.5499789", "0.54704744", "0.54322296", "0.54183644", "0.53788567", "0.53535837", "0.5329865", "0.5316571", "0.52932686", "0.52802354", "0.52791643", "0.5273476", "0.52728873", "0.5265326", "0.5250299", "0.52...
0.0
-1
Creates a new instance of ProtoVehicle
public ProtoVehicle() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engineSize = generateEngineSize(model);\n\t\tint numberOfDoors = generateNumberOfDoors(model);\n\t\tboolean isImport = generateIsImport(make);\n\t\t\n...
[ "0.7946125", "0.7859736", "0.7859736", "0.74477345", "0.7425552", "0.740157", "0.72644097", "0.7034357", "0.6821787", "0.67524636", "0.67491025", "0.66199946", "0.6553327", "0.653172", "0.6501125", "0.640917", "0.63751537", "0.6361469", "0.6146879", "0.6109922", "0.6086626", ...
0.8160116
0
Creates a new instance of ProtoVehicle with a specified size
public ProtoVehicle(int size) { super(size); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProtoVehicle() {\n super();\n }", "public SpaceStub(int size) {\n super(size);\n this.size = size;\n }", "private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engine...
[ "0.6265049", "0.60462123", "0.60365963", "0.59505737", "0.57756966", "0.57756966", "0.5745867", "0.57236546", "0.57161707", "0.5704962", "0.562769", "0.56206286", "0.5579952", "0.55327034", "0.54546803", "0.5444205", "0.54236996", "0.534558", "0.53287905", "0.5296217", "0.528...
0.83516955
0
One time step. Get the sensor readings; calculate the outputs.
public AbstractDriveOutput step(AbstractWorld theWorld) { double right = theWorld.getStimulusStrength(rightSensorLocation()); double left = theWorld.getStimulusStrength(leftSensorLocation()); if (mySensors.theSensors.size() > 1) { System.out.println("okay... time to generalize Proto...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void pollAndProcessInput() {\n\tlong time ;\n int index ;\n\n\t// Set button values. In the Trackd implementation there is only one\n\t// set of buttons for all sensors and valuators.\n for (int i = 0 ; i < buttons.length ; i++) {\n buttons[i] = getButton(i) ;\n }\n\n\t// Se...
[ "0.6475555", "0.6328373", "0.63280946", "0.6151415", "0.6120036", "0.6095264", "0.6070379", "0.60477716", "0.6032961", "0.6028382", "0.5972874", "0.5942488", "0.5937712", "0.59286845", "0.59265596", "0.59119016", "0.58901423", "0.58788323", "0.5863143", "0.58546734", "0.58209...
0.0
-1
Calculate where the right sensor is.
private Point2D.Double rightSensorLocation() { double dx = getSize() * Math.cos(getOrientation() - Math.PI / 4); double dy = -getSize() * Math.sin(getOrientation() - Math.PI / 4); return new Point2D.Double(getX() + dx * 2, getY() + dy * 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Point2D.Double leftSensorLocation() {\n double dx = getSize() * Math.cos(getOrientation() + Math.PI / 4);\n double dy = -getSize() * Math.sin(getOrientation() + Math.PI / 4);\n return new Point2D.Double(getX() + dx * 2, getY() + dy * 2);\n }", "private void calculateLocation()\r\n...
[ "0.67609453", "0.66259027", "0.64186", "0.6081089", "0.6034588", "0.5985673", "0.59379137", "0.5922825", "0.58905846", "0.5829049", "0.5816721", "0.58015597", "0.58012867", "0.57921815", "0.5774685", "0.5746246", "0.5737261", "0.57364345", "0.5719668", "0.57154906", "0.571250...
0.70038325
0
Calculate where the left sensor is.
private Point2D.Double leftSensorLocation() { double dx = getSize() * Math.cos(getOrientation() + Math.PI / 4); double dy = -getSize() * Math.sin(getOrientation() + Math.PI / 4); return new Point2D.Double(getX() + dx * 2, getY() + dy * 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getLeftCurrent() {\n return leftMotor.getOutputCurrent();\n }", "public double getLeft() {\r\n\t\treturn -left.getRawAxis(1);\r\n\t}", "public int getLeftEnc() {\n\t\treturn TalLM.getSelectedSensorPosition(0)-initEncL;\n\t}", "public double getLeft() {\n return this.xL;\n }", "p...
[ "0.7061113", "0.7024485", "0.69557476", "0.69539016", "0.6904851", "0.6873666", "0.6820618", "0.6736811", "0.6730669", "0.6714624", "0.67131776", "0.6648926", "0.661511", "0.6600197", "0.6599045", "0.6576509", "0.6560199", "0.65427196", "0.6492218", "0.64865535", "0.6461605",...
0.7642983
0
method that updates the competency drop down in the screen based on competency Group Selected
public void getAllCompetencyByCompetencyGroupId(ValueChangeEvent event) { Integer competencyGroupId = (Integer) event.getNewValue(); if(competencyCodes.size()>0){ competencyCodes.clear(); } //List<Competency> selectedCompetency = new ArrayList<Competency>(); List<Competency> allCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void commitCompetitiveGroupFieldValues() {\r\n ((CompetitiveGroup) competitive)\r\n .setUpdateMethod((UpdateMethod) updateMethod.getSelectedItem());\r\n ((CompetitiveGroup) competitive).setLearningRate(Double\r\n .parseDouble(tfEpsilon.getText()));\r\n ((C...
[ "0.6115378", "0.609576", "0.6016306", "0.5895905", "0.5774539", "0.57062674", "0.57049125", "0.56849223", "0.56150466", "0.5602516", "0.5596355", "0.5586204", "0.55837464", "0.5560795", "0.5551903", "0.55397403", "0.5519287", "0.5514503", "0.54939055", "0.54877424", "0.546333...
0.6394405
0
method that updates the SKill drop down in the screen based on competency Selected
public void getAllSkillByCompetencyId(ValueChangeEvent event) { Integer competencyId = (Integer) event.getNewValue(); if(skillCodes.size()>0){ skillCodes.clear(); } //List<Competency> selectedCompetency = new ArrayList<Competency>(); List<Skill> allSkill = skillService.getAllSkills();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void abilitySelection() {\n\t\tabilityInput.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tphysicalAbilityPanel.removeAll();\n\n\t\t\t\tmentalAbilityPanel.removeAll();\n\n\t\t\t\tabilitySelectionPanel.add(lowFantasy);\n\t\t\t\tabil...
[ "0.60132885", "0.59634256", "0.58919376", "0.5857334", "0.58231115", "0.5814316", "0.57740945", "0.57672536", "0.5763438", "0.5730481", "0.57288796", "0.5720916", "0.5695653", "0.56766415", "0.5644863", "0.56396544", "0.56222224", "0.56165385", "0.5601179", "0.5574488", "0.55...
0.5296129
52
TODO Autogenerated method stub
@Override public String getInfo() { return "Jersey + Spring!!!"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Arg1 : String URL Arg2 : String MAC
@Override protected Integer doInBackground(String... bundle) { try{ URL url = new URL(bundle[0]); URLConnection conn = url.openConnection(); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBui...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DownloadInfo mo54422b(String str, String str2);", "protected boolean sameFile(URL paramURL1, URL paramURL2) {\n/* 400 */ if (paramURL1.getProtocol() != paramURL2.getProtocol() && (paramURL1\n/* 401 */ .getProtocol() == null || \n/* 402 */ !paramURL1.getProtocol().equalsIgnoreCase(paramURL2.getPro...
[ "0.6234304", "0.5636333", "0.5628513", "0.5621401", "0.5490532", "0.5447457", "0.53943723", "0.5317728", "0.5244931", "0.5240546", "0.5232969", "0.52086055", "0.5193646", "0.51920474", "0.51903325", "0.51853853", "0.5152229", "0.51466596", "0.51382595", "0.5134447", "0.511749...
0.51210076
20
/ Get fontmetrics and calculate position.
private void createRotatedImage(Graphics g, String text, Color bgColor, Color fgColor, int angle1) { double angle = (double)angle1 * radiansPerDegree; FontMetrics fm = g.getFontMetrics(); int width = fm.stringWidth(text); int height = fm.getHeight(); int ascent = fm.getMaxAscent(); int ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FontMetrics getFontMetrics(Font f)\r\n\t{\r\n\t\treturn _g2.getFontMetrics();\r\n\t}", "private float drawText(Graphics2D g2d) {\n float yOffset = 0; // 1\" top margin\r\n for (TextLayout tl : textLayouts) {\r\n yOffset += tl.getAscent();\r\n tl.draw(g2d, 0, yOffset);\r\n ...
[ "0.68209356", "0.6188208", "0.6015358", "0.5940602", "0.5936584", "0.59121275", "0.5899726", "0.5881555", "0.58537817", "0.5808929", "0.5797055", "0.5789813", "0.57858294", "0.5775746", "0.57517624", "0.57411015", "0.573105", "0.5702817", "0.5700128", "0.5685358", "0.56848127...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
private com.fasterxml.jackson.core.JsonToken m13148b(boolean r15) { /* r14 = this; r10 = 45; r12 = 57; r11 = 48; r1 = 1; r2 = 0; r0 = r14.f8609n; r4 = r0.m13317l(); if (r15 == 0) goto L_0x0197; L_0x0010: r4[r2] = r10; r0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.7616782", "0.75728166", "0.7525724", "0.74507046", "0.74505866", "0.74373597", "0.7381616", "0.7381616", "0.7366568", "0.735341", "0.73420185", "0.73150736", "0.7308675", "0.73055106", "0.7274724", "0.72523946", "0.72216254", "0.71979403", "0.7177258", "0.7136552", "0.7106...
0.0
-1
Returns OgnlRuntime.NotFound if the property does not exist.
public Object getPossibleProperty( Map<String, Object> context, Object target, String name ) throws OgnlException { Object result; OgnlContext ognlContext = (OgnlContext) context; try { result = OgnlRuntime.getMethodValue( ognlContext, target, name, true ); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getPropertyexists();", "String getPropertyExists();", "@Override\r\n\tpublic boolean propertyExists(String absPath) throws RepositoryException {\n\t\treturn false;\r\n\t}", "@Override\n public Property getProperty() throws ItemNotFoundException,\n ValueFormatException, RepositoryExcept...
[ "0.6582434", "0.6407995", "0.6195812", "0.6037434", "0.6026258", "0.5992563", "0.5878664", "0.58420646", "0.5813849", "0.58131534", "0.57817465", "0.57695705", "0.57695705", "0.57695705", "0.5746356", "0.56998545", "0.568238", "0.56489253", "0.56294394", "0.55943847", "0.5593...
0.0
-1
Returns OgnlRuntime.NotFound if the property does not exist.
public Object setPossibleProperty( Map<String, Object> context, Object target, String name, Object value ) throws OgnlException { Object result = null; OgnlContext ognlContext = (OgnlContext) context; try { if ( !OgnlRuntime.setMethodValue( ognlContext, target, n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getPropertyexists();", "String getPropertyExists();", "@Override\r\n\tpublic boolean propertyExists(String absPath) throws RepositoryException {\n\t\treturn false;\r\n\t}", "@Override\n public Property getProperty() throws ItemNotFoundException,\n ValueFormatException, RepositoryExcept...
[ "0.6583494", "0.6408143", "0.619607", "0.60380775", "0.60269666", "0.5993176", "0.58804715", "0.5840982", "0.5814273", "0.5813652", "0.5782142", "0.5769723", "0.5769723", "0.5769723", "0.57455343", "0.5699913", "0.5682212", "0.5648482", "0.5629051", "0.5594145", "0.55932873",...
0.0
-1
Creates new form BridgingUI
public BridgingUI() { initComponents(); initUserActions(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "public FormInserir() {\n initComponents();\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "@Override\n\tpublic void onFormCreate(AbstractForm...
[ "0.72930676", "0.7008077", "0.6832072", "0.6806455", "0.6687844", "0.6493878", "0.6457791", "0.6452955", "0.6433271", "0.6400143", "0.6379246", "0.6361432", "0.635838", "0.6317216", "0.62879527", "0.62728316", "0.6253294", "0.6239388", "0.6224106", "0.6221384", "0.619511", ...
0.60759103
32
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() { jLayeredPane1 = new javax.swing.JLayeredPane(); labelProcess1 = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73208135", "0.7291972", "0.7291972", "0.7291972", "0.7287118", "0.72494483", "0.7214677", "0.72086734", "0.7197058", "0.71912485", "0.7185818", "0.71596724", "0.71489036", "0.7094215", "0.7082007", "0.70579666", "0.6988024", "0.6978225", "0.6955616", "0.6955434", "0.694586...
0.0
-1
Factory method that wraps a ComponentException with optional message.
public static ComponentURLException fromComponentException(String msg, ComponentException e) { if (e instanceof ComponentException.ComponentNotFoundException) { return msg != null ? new ComponentNotFoundURLException(msg, e) : new ComponentNotFoundURLException(e); } else { return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause())...
[ "0.6255529", "0.61999094", "0.61920905", "0.61260444", "0.5873903", "0.5870234", "0.5850322", "0.5841431", "0.5812691", "0.58101094", "0.5802825", "0.5781088", "0.5777612", "0.57632226", "0.57610375", "0.5715854", "0.5702472", "0.56811756", "0.56806", "0.5671522", "0.56601036...
0.57693535
13
Returns a cause of this ComponentURLException DEV NOTE: this returns the local cause member, NOT the Throwable one.
public Throwable getCause() { return cause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Throwable getCause() {\n return cause;\n }", "public final Throwable getCause() {\n return cause;\n }", "public Throwable getCause()\r\n {\r\n return m_cause;\r\n }", "public Throwable getCause() {\n\t\treturn (iCause == this) ? null : iCause;\n\t}", "public Throwabl...
[ "0.7821037", "0.78075993", "0.7507776", "0.7476608", "0.7464526", "0.7442188", "0.74218166", "0.74053496", "0.7194763", "0.7128003", "0.709213", "0.69991314", "0.6957364", "0.6923605", "0.6895267", "0.6714624", "0.6606931", "0.65888613", "0.6543635", "0.65305316", "0.6527775"...
0.7853424
2
private EmployeeList employee_List; //adicionar a lista de empregados ou verificar conexao BD private String departments; // sera uma lista de ambientes especificos FUNCTIONS GET AND SET
public Address getAddress() { return address; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<EmployeeDetails> getEmployeeDetails();", "public List<Employee> getEmployees();", "public List<Employees>getEMPMenaning() {\n\tString sql = \"SELECT Id_employees, Name_and_surname, Password, Work_role FROM employees \";\n\t\n\tList<Employees>list = new ArrayList<Employees>();\n\t\n\ttry {\n\t\tPrep...
[ "0.7160459", "0.7100407", "0.6820783", "0.6816881", "0.6790288", "0.6780168", "0.6726888", "0.67020243", "0.6654738", "0.66087747", "0.65541494", "0.65327924", "0.65242016", "0.64795953", "0.6435825", "0.6405054", "0.6363575", "0.6361461", "0.6314961", "0.6281055", "0.6280573...
0.0
-1
add users to db
@Override public void onSuccess(AuthResult authResult) { Users user = new Users(); user.setEmail(inputEmail.getText().toString()); user.setName(inputName.getText().toString()); user.setPhone(inputPhoneNum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToUsers(Users users) {\n Connection connection = connectionDB.openConnection();\n PreparedStatement preparedStatement;\n try {\n preparedStatement = connection.prepareStatement(WP_USERS_ADD_USER);\n preparedStatement.setString(1, users.getUser_login());\n ...
[ "0.77688086", "0.76680017", "0.7514696", "0.7508544", "0.74693865", "0.7362627", "0.7335788", "0.7335788", "0.72705656", "0.7249984", "0.72345394", "0.7147722", "0.71135116", "0.70891446", "0.70748556", "0.70522434", "0.70271295", "0.6988714", "0.6917955", "0.6899528", "0.687...
0.0
-1
Besides the value, also contains a version and expiration information.
public interface MetadataValue<V> extends VersionedValue<V> { long getCreated(); int getLifespan(); long getLastUsed(); int getMaxIdle(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getExpiration() {\n return this.expiration;\n }", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"value:%s;expiry:%s\", value,\n\t\t\t\tTimeHepler.getStringDateShort(expiry));\n\t}", "public long getExpiration() {\n return expiration;\n }", "public Timestamp g...
[ "0.65693164", "0.6368129", "0.6327676", "0.63065594", "0.6273968", "0.62186384", "0.6185945", "0.6146828", "0.6146412", "0.6093724", "0.6092118", "0.607364", "0.6063143", "0.60579985", "0.60579985", "0.6016786", "0.5992321", "0.5991394", "0.59828305", "0.59815556", "0.5980570...
0.6483819
1
Delete a Record in Database
private void DeleteRecord() { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("Enter Roll no of Student to Delete"); final EditText input = new EditText(this); input.setInputType(InputType.TYPE_CLASS_TEXT); builder.setView(input); builder.set...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteRecord() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry\n\t\t{\n\t\t\tmyData.record.delete(background.getClient());\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public void deleteRecord() {\n// foods.clear();...
[ "0.7673416", "0.7645139", "0.76233995", "0.75802433", "0.7541344", "0.7514147", "0.7454727", "0.740151", "0.73605305", "0.7353749", "0.72510195", "0.7243198", "0.7209222", "0.7191327", "0.7183535", "0.71477515", "0.71470165", "0.7122797", "0.71154416", "0.7114476", "0.7097285...
0.0
-1
Main method which is starting the game
public void startGame() { // Initialize both players players[0] = new Player("Paras", true); players[1] = new Player("Computer", false); // Initialize ChessBoard board = new ChessBoard(8); movesPlayed = new ArrayList<>(); // Keep playing game until GameStatus i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n MainGameClass mg=new MainGameClass();\n mg.start();\n \n \n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n Game game = new Game(\"Programming 2 Project\",600,600);\n game.start();\n \n }", "publi...
[ "0.8080331", "0.8016679", "0.7838696", "0.78375745", "0.7804801", "0.7770804", "0.7742695", "0.77302295", "0.7725521", "0.76929986", "0.7670546", "0.7657434", "0.765607", "0.7636359", "0.7627785", "0.7619574", "0.7616576", "0.7608203", "0.75862205", "0.75713867", "0.75214887"...
0.0
-1
Move played by Player keep in Loop till valid move happens
public void processTurn(Player player) { Move move; do { Scanner scan = new Scanner(System.in); System.out.println("Enter current position of Piece you want to move"); // Positions entered by player int startX = scan.nextInt(); int startY = sc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void play() {\n HashSet<Board> positionsPlayed = new HashSet<Board>();\n _board = new Board();\n\n while (true) {\n int playerInd = _board.turn().ordinal();\n Move next;\n if (_playing) {\n if (_board.gameOver()) {\n ann...
[ "0.7475185", "0.72883606", "0.72828734", "0.727936", "0.71408945", "0.7138821", "0.7009966", "0.69420576", "0.69230866", "0.68721914", "0.685612", "0.68225664", "0.6817991", "0.6809481", "0.67953986", "0.67931914", "0.6747055", "0.6744402", "0.67352206", "0.6734553", "0.67052...
0.749998
0
Actual Command executed by this method
private boolean makeMove(Move move) { // Moving piece from Cell Piece sourcePiece = move.getStart().getCurrentPiece(); // Valid Move? Calling Piece actual implementation if (!sourcePiece.canMove(board, move.getStart(), move.getEnd())) { System.out.println("Invalid Move, sou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void execute(Command command) {\n\r\n }", "@Override\n public void Execute() {\n\n }", "protected void executeVmCommand() {\n }", "public abstract String getCommand();", "@Override\r\n protected void executeCommand(MyRobot robot) {\n }", "@Override\n protected...
[ "0.75810504", "0.7149151", "0.69093335", "0.6889422", "0.68735385", "0.68330485", "0.679391", "0.67624766", "0.67618775", "0.6748681", "0.6739473", "0.6738197", "0.6735732", "0.67096657", "0.67096657", "0.67096657", "0.66914517", "0.66811895", "0.66808766", "0.66742504", "0.6...
0.0
-1
TODO Autogenerated method stub
private void drawTile(int i, int j, Tile tile) { Rectangle rect = new Rectangle(175*i+50,j*175+25,175, 175); tilesDrawn.add(rect); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseEntered(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseReleased(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Creates new form CustomerViewDetails
public CustomerViewDetails() { initComponents(); Toolkit tk = Toolkit.getDefaultToolkit(); int x = (int) tk.getScreenSize().getWidth(); int y = (int) tk.getScreenSize().getHeight(); this.setSize(x, y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value=\"/pizza/custCreate.html\", method = RequestMethod.POST)\r\n public ModelAndView custCreate(\r\n @ModelAttribute(\"customer\")Customer customer,\r\n @CookieValue(value = \"v\", defaultValue = \"\") String visitorId,\r\n HttpServletResponse response) throws Exception {\n visitorMa...
[ "0.6954732", "0.6895723", "0.65097797", "0.647448", "0.6357762", "0.63163406", "0.6258497", "0.6225981", "0.62087035", "0.61897653", "0.6174532", "0.6143224", "0.6126569", "0.6052671", "0.6048801", "0.6024589", "0.6016942", "0.6002363", "0.59492004", "0.59019524", "0.58617043...
0.5990033
18
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() { jPanel2 = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new java...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
End of variables declaration//GENEND:variables
public customerdetails getCsd() { return cd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
Date of the next notification or null, if notification can't be sent more
static Date calculateNextNotificationDate(Date now, Date sentDate, List<Integer> remindSteps) { Calendar sentCal = Calendar.getInstance(); sentCal.setTime(sentDate); for (int dayOffset : remindSteps) { sentCal.add(Calendar.DAY_OF_YEAR, dayOffset); if (sentCal.getTime().co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRebillNextDate()\n\t{\n\t\tif(response.containsKey(\"next_date\")) {\n\t\t\treturn response.get(\"next_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public abstract Date getNextFireTime();", "public Date getNextNotification(List<NotificationOccurrence> notificationOccurrenceHistory...
[ "0.64389074", "0.63956463", "0.6256565", "0.62216985", "0.6199913", "0.616196", "0.60558146", "0.6026902", "0.5860115", "0.5786209", "0.5782198", "0.5740701", "0.57105416", "0.57051986", "0.55719596", "0.55622953", "0.5554319", "0.55409455", "0.5515254", "0.5509926", "0.55086...
0.72907054
0
This is a constructor transfer student
public Student(String name, int studentId) { this.name = name; this.studentId = studentId; this.numberOfCredits = 0; this.gpa = 0.0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Student()\n {\n lname = \"Tantiviramanond\";\n fname = \"Anchalee\";\n grade = 12;\n studentNumber = 2185;\n }", "public Student(Person person) {\r\n\t\tsuper(person);\r\n\t}", "public Student(){}", "public Student() {\n \n }", "public Student() {\r\n }", ...
[ "0.7843402", "0.7805272", "0.7699747", "0.76504135", "0.7613292", "0.76058435", "0.7498639", "0.7498639", "0.7498639", "0.7491702", "0.7440226", "0.7439704", "0.7360832", "0.731903", "0.72942275", "0.7278356", "0.72626984", "0.72622645", "0.72555965", "0.725017", "0.7206323",...
0.0
-1
This is a constructor new student
public String getName() { return this.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Student()\n {\n lname = \"Tantiviramanond\";\n fname = \"Anchalee\";\n grade = 12;\n studentNumber = 2185;\n }", "public Student(){}", "public Student() {\n \n }", "public Student() {\r\n }", "public Student() {\n }", "public Student() {\n }", "pu...
[ "0.8644932", "0.8472109", "0.84720606", "0.84222615", "0.8314859", "0.8314859", "0.8314859", "0.82172924", "0.82122624", "0.82037157", "0.8171012", "0.8137546", "0.81291634", "0.8037541", "0.8036051", "0.80041754", "0.8001907", "0.79957414", "0.7975951", "0.7967052", "0.79626...
0.0
-1
Private getter is redundant because field is private use this. because it signifies it is a field (instead of global variable)
public int getStudentId() { return studentId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Get() {}", "private Get() {}", "public void get() {\n }", "public class_1048 method_2258() {\r\n return this.field_1859;\r\n }", "public class_1660 method_2257() {\r\n return this.field_1852;\r\n }", "@Override\n public void get() {}", "private PropertyAccess() {\n\t\tsuper();...
[ "0.6763179", "0.6763179", "0.6606712", "0.6601479", "0.6523437", "0.63966674", "0.6378219", "0.63655096", "0.63655096", "0.63532126", "0.630784", "0.6301744", "0.63003474", "0.62842155", "0.6220312", "0.62037104", "0.6180734", "0.6158803", "0.61490035", "0.61442715", "0.61366...
0.0
-1
no setter because we do not need to provide a way to change an ID
public int getNumberOfCredits() { return numberOfCredits; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "public void setId(int id){ this.id = id; }", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public void...
[ "0.83461595", "0.81792754", "0.81291825", "0.80995464", "0.80995464", "0.8057102", "0.8057102", "0.7866329", "0.7835593", "0.7829836", "0.78238595", "0.78238595", "0.7805394", "0.7777516", "0.7754562", "0.7747857", "0.7741773", "0.7728316", "0.77238244", "0.7721475", "0.77188...
0.0
-1
Constructor: Initializes the counter.
public QuestionQueue () { count = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Counter() {\r\n this.count = 0;\r\n }", "public Counter()\n {\n this(0);\n }", "public Counter() {\r\n value = 0;\r\n }", "public BasicCounter() {\n count = 0;\n }", "public myCounter() {\n\t\tcounter = 1;\n\t}", "public Counter(int init){\n \tvalue = init;\...
[ "0.8734411", "0.86726403", "0.83885634", "0.8326315", "0.82428634", "0.80448943", "0.787879", "0.787879", "0.78468883", "0.7823079", "0.75960433", "0.7438475", "0.7420069", "0.7409347", "0.7354195", "0.7305425", "0.7283489", "0.7265121", "0.7233332", "0.7225763", "0.7178038",...
0.0
-1
Puts a question in the rear of the queue.
public void enqueue () { count++; questionList.add(newQuestion); //System.out.println("Question #"+ totNumQ + " is added to the queue."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addQ (Question Q)\n {\n newQuestion = Q;\n \n enqueue();\n }", "@Override\n\tpublic void execute() {\n\t\tthis.receiver.add(this.question, 42);\n\t}", "public void addQuestion(Question question);", "public void queue(Object newItem){\n if(isFull()){\n ...
[ "0.7623547", "0.6449386", "0.6436784", "0.6254869", "0.6247867", "0.60990024", "0.6095757", "0.6084604", "0.6040421", "0.6030499", "0.59746015", "0.59544045", "0.5860582", "0.5841185", "0.58039916", "0.5785109", "0.57830983", "0.5774506", "0.577002", "0.575959", "0.5750149", ...
0.69150937
1
Puts a question in the rear of the queue.
public void addQ (Question Q) { newQuestion = Q; enqueue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enqueue ()\n {\n count++;\n questionList.add(newQuestion);\n //System.out.println(\"Question #\"+ totNumQ + \" is added to the queue.\");\n }", "@Override\n\tpublic void execute() {\n\t\tthis.receiver.add(this.question, 42);\n\t}", "public void addQuestion(Question questi...
[ "0.69150937", "0.6449386", "0.6436784", "0.6254869", "0.6247867", "0.60990024", "0.6095757", "0.6084604", "0.6040421", "0.6030499", "0.59746015", "0.59544045", "0.5860582", "0.5841185", "0.58039916", "0.5785109", "0.57830983", "0.5774506", "0.577002", "0.575959", "0.5750149",...
0.7623547
0
Removes a question from the front of the queue.
public void dequeue() { System.out.println("Question #"+ questionList.get(0).getQNum() + " is removed from the queue."); questionList.remove(0); count--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void dequeue()\n\t{\n\t\tq.removeFirst();\n\t}", "public void remove() {\n\t\tprocess temp = queue.removeFirst();\n\t}", "private void questionRemove(Player player, QueuedQuestion qq) {\r\n\t\tlong qqid = qq.getId();\r\n\t\t// dont allow master's first quesiton to be removed\r\n//\t\tif (player.getIsMas...
[ "0.71156025", "0.6891283", "0.6831638", "0.681357", "0.6581744", "0.65154946", "0.6455885", "0.64134777", "0.64058113", "0.6398181", "0.63753074", "0.63417506", "0.6308679", "0.6282912", "0.62765294", "0.6266003", "0.62587756", "0.6231232", "0.623038", "0.62224865", "0.622115...
0.71906143
0
Returns the first question in queue.
public Question getFirstQ() { return questionList.get(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public process get_first() {\n\t\treturn queue.getFirst();\n\t}", "public Object firstElement() {\n return _queue.firstElement();\n }", "@Override\n\tpublic E first() {\n\t\treturn queue[pos];\n\t}", "public E first(){\n if (isEmpty()) return null;\n return arrayQueue[front];\n }",...
[ "0.7670004", "0.75211114", "0.7498179", "0.7416442", "0.72729915", "0.7233774", "0.7229395", "0.7226251", "0.7178079", "0.71093136", "0.70604223", "0.7023954", "0.70162964", "0.69571143", "0.6894919", "0.68470514", "0.68152446", "0.67071235", "0.6701994", "0.66765314", "0.667...
0.8080278
0
Returns the size of the queue
public int getSize() { return questionList.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getQueueSize();", "public int queueSize() {\n\t\treturn queue.size();\t\n\t}", "public long getQueueSize(){\n return queue.size();\n }", "public int size(){\r\n\t\treturn queue.size();\r\n\t}", "public int size() {\n return queue.size();\n }", "public int size() {\n return ...
[ "0.9010169", "0.8921802", "0.8913381", "0.8848598", "0.8736755", "0.8726586", "0.87181306", "0.8703761", "0.86983824", "0.8688378", "0.86744696", "0.837217", "0.8235585", "0.82306296", "0.8138994", "0.80825335", "0.80222267", "0.8009988", "0.7957926", "0.79199207", "0.7886883...
0.0
-1
Returns true if the queue is empty.
public boolean empty() { return questionList.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean is_empty() {\n\t\tif (queue.size() <= 0) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isEmpty() {\n return this.queue.size() == 0;\n }", "boolean isEmpty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n\t\treturn queue...
[ "0.9087273", "0.8937253", "0.8902561", "0.8869178", "0.8860727", "0.88598305", "0.88598305", "0.8836357", "0.8832554", "0.8832554", "0.8832554", "0.8832554", "0.8832554", "0.8832554", "0.8832554", "0.88265526", "0.8775803", "0.8757256", "0.8757256", "0.8757256", "0.8757256", ...
0.0
-1
Returns a report describing the current queue.
public String toString() { String report = "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"; report += "Numbered Question Queue\n\n"; //for (int i = 0; i < questionList.size();i++) // report += questionList.get(i) + "\n"; for (int i = 0; i < q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getQueueDisplayName();", "@DISPID(112)\r\n\t// = 0x70. The runtime will prefer the VTID if present\r\n\t@VTID(107)\r\n\tjava.lang.String queue();", "Collection<QueuedPrintJob> getQueue();", "public String queueName();", "public void printQueue();", "@DISPID(32)\r\n\t// = 0x20. The ...
[ "0.7201726", "0.6922306", "0.68775356", "0.6527583", "0.6400762", "0.638406", "0.63743573", "0.63546026", "0.6310842", "0.63050425", "0.63050425", "0.6302589", "0.62907666", "0.6279516", "0.62678885", "0.624263", "0.624263", "0.6133144", "0.607192", "0.60015494", "0.5997725",...
0.65818083
3
private static final CounterFactoryCOUNTER_FACTORY= CounterFactory.getInstance();
@Test public void testPerformance() { String testName = logTestName(); int cPass = 5; int iMax = 1000 * 1000; // int[] cThreadList = { 1, 2, 4, 6, 8 }; int[] cThreadList = { 1, 2, 4 }; StringGroup nameList = new StringGroup(testName); LockCounterFamily counterFamily = new LockCounterFam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Counter() {\r\n this.count = 0;\r\n }", "public static int getCounter() {return counter;}", "public myCounter() {\n\t\tcounter = 1;\n\t}", "int getInstanceCount();", "public Counter() {\r\n value = 0;\r\n }", "public BasicCounter() {\n count = 0;\n }", "private SchedulerT...
[ "0.7033099", "0.6933636", "0.69097227", "0.6756804", "0.6743474", "0.66773164", "0.6569733", "0.64622676", "0.6440722", "0.64278567", "0.64250094", "0.6398695", "0.6375435", "0.6369556", "0.63423145", "0.6338408", "0.6336231", "0.63052243", "0.6300268", "0.6267882", "0.626410...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_login, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79046476", "0.7805623", "0.7766615", "0.77274555", "0.7632045", "0.76220745", "0.75848633", "0.7531134", "0.74884325", "0.74575055", "0.74575055", "0.74388313", "0.74218154", "0.7403308", "0.7391667", "0.7386889", "0.73792624", "0.73705244", "0.7362704", "0.7355958", "0.73...
0.0
-1
private int x, y;
public MyView(Context context) { super(context); paint = new Paint(paint.ANTI_ALIAS_FLAG); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getY() { return y;}", "public int getY() { return y;}", "public int getX(){ return xPosition; }", "public int getY() {return y;}", "Point(int x_, int y_){\n x = x_;\n y = y_;\n }", "public int getY() { return y; }", "public int getY() { return y; }", "void setXandY(double ...
[ "0.740175", "0.740175", "0.7378016", "0.725847", "0.72361976", "0.7215639", "0.7215639", "0.7206225", "0.71672773", "0.7160915", "0.7109168", "0.70415866", "0.70257163", "0.70257163", "0.70257163", "0.70088816", "0.69832575", "0.6964582", "0.6960446", "0.69488585", "0.6948858...
0.0
-1
TODO Autogenerated method stub getAnnotations("Melanoma is a malignant tumor of melanocytes which+are found predominantly in skin but also in the bowel and the+eye") ;
public static void main(String[] args) throws IOException, ParseException { getAvaluation() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DataMap getCustomAnnotations();", "Set<String> annotations();", "public abstract Annotations mo30682c();", "public String getAnnotation();", "public static Map<String, Integer> getAnnotations(String text) throws IOException, ParseException\n\t{\n\t \tMap<String, Integer> concepts = new HashMap<String, Inte...
[ "0.70338666", "0.6866439", "0.6680546", "0.6585328", "0.63491", "0.6280137", "0.62465143", "0.62442774", "0.621033", "0.616662", "0.6164187", "0.6090487", "0.60879415", "0.6059033", "0.60497016", "0.6035695", "0.6015469", "0.59974813", "0.5967091", "0.5943262", "0.5921001", ...
0.0
-1
Annotator function return all concepts within text input
public static Map<String, Integer> getAnnotations(String text) throws IOException, ParseException { Map<String, Integer> concepts = new HashMap<String, Integer>(); String request = URL + URLEncoder.encode(text, "UTF-8") ; ; String jRespond= restcalls.get(request,apikey) ; System.out.println(jRespond); J...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<String> computeDisplayAnnotations(VisualizerInput input,\n Class<? extends SNode> type) {\n if (input == null) {\n return new LinkedList<String>();\n }\n\n SDocumentGraph graph = input.getDocument().getSDocumentGraph();\n\n Set<String> annoPool = SToken.class.isAssignab...
[ "0.6085043", "0.6080948", "0.6021754", "0.5969714", "0.59543616", "0.5749153", "0.56787705", "0.5669952", "0.5582413", "0.55671763", "0.55661064", "0.5550288", "0.55438125", "0.5469024", "0.5466536", "0.5460225", "0.5393422", "0.5381145", "0.53249913", "0.5300529", "0.5300497...
0.6295138
0
/ ParseMessage is the main method used for figuring out what to do with a JSONObject sent from the frontend app to the backend through the WebSocketEndpoint. Here, other functions are called based on the "message". Input JSON "message",_____ Output JSON object sent back to frontend
public void parseMessage(JSONObject message, Session session, WebSocketEndpoint wsep) { Connection conn = null; Statement st = null; ResultSet rs = null; response = new JSONObject(); // transNotif = new JSONObject(); try { Class.forName("com.mysql.jdbc.Driver"); conn = DriverManager.getConnect...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onMessageReceived(String receivedMessage) {\n try {\n JSONObject jsonFromString = new JSONObject(receivedMessage);\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "private void parseMessage(String message) {\n\t\tJSONObje...
[ "0.7084562", "0.69849586", "0.69179803", "0.6804357", "0.671985", "0.6634088", "0.66124517", "0.6582515", "0.6520414", "0.6418108", "0.63775575", "0.63575035", "0.6350898", "0.63225275", "0.6307549", "0.6301633", "0.62764907", "0.627276", "0.6261855", "0.6258161", "0.6245119"...
0.75662625
0
/ When a user enters all of their information and clicks sign up, the data is then sent here. Input "message","signup" "firstname",___ "lastname",___ "password",___ "age",___ "email",___ "picture",___ Output "message","signupsuccess"/"signupfail" if signupfail > "signupfail",reason User data returned along with feed da...
public JSONObject signUp(JSONObject message, Connection conn) { //JSONObject response = new JSONObject(); try { Statement st = conn.createStatement(); ResultSet rs = null; String signupemail = (String) message.get("email"); if (signupemail.length() > 0) { rs = st.executeQuery("SELECT * from TotalUse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void signUpEvt() {\n String emailRegex = \"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9...
[ "0.6990044", "0.69285876", "0.6905558", "0.68816775", "0.6849382", "0.68231714", "0.6819002", "0.68189627", "0.680251", "0.67329824", "0.6702744", "0.66966045", "0.6687366", "0.6686532", "0.66736305", "0.66158545", "0.6578246", "0.6558638", "0.6534729", "0.6525126", "0.648817...
0.69372433
1
/ When a user signs in, this is the function that deals with correct/incorrect info. Input "message","login" "email",___ "password",___ Output "message","loginsuccess"/"loginfail" if loginsuccess > all of user data and feed data returned in JSON if loginfail > "loginfail",reason
public JSONObject signIn(JSONObject message, Session session, Connection conn) { //JSONObject response = new JSONObject(); try { Statement st = conn.createStatement(); ResultSet rs = null; String signinemail = (String) message.get("email"); String signinpassword = (String) message.get("password"); si...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject signInTest(JSONObject message, Session session, Connection conn) {\n\t\ttry {\n\t\t\tStatement st = conn.createStatement();\n\t\t\tResultSet rs = null;\n\t\t\tString signinemail = (String) message.get(\"email\");\n\t\t\tString signinpassword = (String) message.get(\"password\");\n\t\t\tsigninpass...
[ "0.72205865", "0.6988598", "0.6772111", "0.6756142", "0.67325026", "0.6706357", "0.66774535", "0.6639222", "0.6638614", "0.6627677", "0.66017115", "0.6592288", "0.6592182", "0.65448713", "0.65239704", "0.65048045", "0.6494896", "0.64942724", "0.64891", "0.6447173", "0.6446926...
0.73107797
0
JSONObject response = new JSONObject();
public JSONObject signInTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; String signinemail = (String) message.get("email"); String signinpassword = (String) message.get("password"); signinpassword.replaceAll("\\s+",""); i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject editProfile(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; String newPassword = message.getString("newPassword"); String email = message.getString("email"); String oldPassword = message.getString("oldPassword")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject createBigBudget(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; String name = message.getString("bigBudgetName"); double amount = message.getDouble("bigBudgetAmount"); int user = message.getInt("userID"); Str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
frequency, bigbudgetID, frequency will be string but parsable to int for custom
public JSONObject editBigBudgetAttributes(JSONObject message, Session session, Connection conn) { return null; //add to editBigBudget }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFrequency(String frequency)\n {\n this.frequency = frequency;\n }", "BigInteger getMax_freq();", "FrequencyRegister(String subId) {\n \n reg2 = new FrequencySubRegister(\"FREQ2\" + subId);\n reg1 = new FrequencySubRegister(\"FREQ1\" + subId);\n reg0 =...
[ "0.62272334", "0.605517", "0.59037334", "0.58996224", "0.58388907", "0.57232094", "0.57225347", "0.5624405", "0.56104004", "0.5575312", "0.55730116", "0.5560906", "0.55118096", "0.55011183", "0.54565966", "0.54170954", "0.5402473", "0.5384281", "0.538104", "0.5332389", "0.530...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject editBigBudget(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; int id = message.getInt("bigBudgetID"); String name = message.getString("bigBudgetName"); String newAmount = message.getString("budgetAmount"); St...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject createBudget(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; int user = message.getInt("userID"); String name = message.getString("budgetName"); int budgetID = message.getInt("bigBudgetID"); double amount = m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject editBudget(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; int id = message.getInt("categoryID"); String name = message.getString("categoryName"); String amount = message.getString("categoryAmount"); String e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject deleteBudget(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); int id = message.getInt("categoryID"); String deleteTransactions = "DELETE FROM Transactions WHERE budgetID=" + id + ";"; st.execute(deleteTransactions); ResultSet...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject refreshDataCategory(JSONObject message, Session session, Connection conn) { try { response = getData(conn, message.getInt("userID")); response.put("message", "getdatacategorysuccess"); return response; } catch (JSONException e) { try { response.put("message", "getdatacategoryfail")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject refreshDataTransaction(JSONObject message, Session session, Connection conn) { try { response = getData(conn, message.getInt("userID")); if (transNotif != null) { response.put("notification", "yes"); response.put("notify", transNotif.get("notify")); transNotif = null; } else ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject refreshDataHistory(JSONObject message, Session session, Connection conn) { try { response = getData(conn, message.getInt("userID")); response.put("message", "getdatahistorysuccess"); return response; } catch (JSONException e) { try { response.put("message", "getdatahistoryfail"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject deleteBigBudget(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); int id = message.getInt("bigBudgetID"); ResultSet rs = st.executeQuery("SELECT * FROM Budgets WHERE bigBudgetID=" + id + ";"); Statement st1 = conn.createStatement(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject getData(Connection conn, int userID) { try { Statement st = conn.createStatement(); ResultSet rs = st.executeQuery("SELECT * FROM BigBudgets WHERE userID = " + userID + ";"); response.put("userID", userID); int budcounter = 1; while (rs.next()) { // System.out.println(rs.getString(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject addTransaction(JSONObject message, Session session, Connection conn) { transNotif = new JSONObject(); try { Statement st = conn.createStatement(); double amount = message.getDouble("amountToAdd"); int userID = message.getInt("userID"); int budgetID = message.getInt("categoryID"); do...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject renameTransaction(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); int transID = message.getInt("transactionID"); int userID = message.getInt("userID"); String details = message.getString("newDescription"); st.execute("UPDATE Transac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject deleteTransaction(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); int transID = message.getInt("transactionID"); int userID = message.getInt("userID"); int budgetID = 0; double amount = 0; ResultSet rs = st.executeQuery("SELECT *...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject deleteAllTransactions(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); int budgetID = message.getInt("categoryID"); ResultSet rs = st.executeQuery("SELECT * FROM Budgets WHERE budgetID=" + budgetID + ";"); double addBack = 0; int big...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject signUpTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; String signupemail = (String) message.get("email"); if (signupemail.length() > 0) { rs = st.executeQuery("SELECT * from TotalUsers"); while (rs.nex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject changePasswordTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; String newPassword = message.getString("newPassword"); String email = message.getString("email"); int p = hash(newPassword); rs = st.executeQ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject createBigBudgetTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; String name = message.getString("bigBudgetName"); double amount = message.getDouble("bigBudgetAmount"); int user = message.getInt("userID"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject createBudgetTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; int user = message.getInt("userID"); String name = message.getString("budgetName"); int budgetID = message.getInt("bigBudgetID"); double amount...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject deleteBigBudgetTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; int id = message.getInt("bigBudgetID"); String deleteBudgetcmd = "DELETE FROM Budgets WHERE bigBudgetID=" + id + ";"; st.execute(deleteBud...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject addToBudgetTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); double amount = message.getDouble("amountToAdd"); int budgetID = message.getInt("budgetID"); st.execute(Constants.SQL_INSERT_TRANSACTION + "(" + budgetID + ", " + amount +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject subtractFromBudgetTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); double amount = message.getDouble("amountToAdd"); int budgetID = message.getInt("budgetID"); st.execute(Constants.SQL_INSERT_TRANSACTION + "(" + budgetID + ", " + a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject transactionHistoryTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); double amount = message.getDouble("amountToAdd"); int budgetID = message.getInt("budgetID"); st.execute(Constants.SQL_INSERT_TRANSACTION + "(" + budgetID + ", " + a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject locationTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); double amount = message.getDouble("amountToAdd"); int budgetID = message.getInt("budgetID"); double latitude = message.getDouble("markerLatitude"); double longitude = mess...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject limitNotificationTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); double amount = message.getDouble("amountToAdd"); int budgetID = message.getInt("budgetID"); st.execute(Constants.SQL_INSERT_TRANSACTION + "(" + budgetID + ", " + am...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1