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
Gets the visual Component which depicts the local video being streamed to a specific CallPeer.
Component getLocalVisualComponent(CallPeer peer) throws OperationFailedException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Deprecated\n Component getVisualComponent(CallPeer peer);", "List<Component> getVisualComponents(CallPeer peer);", "private SurfaceViewRenderer getVideoView(String peerId) {\n if (skylinkConnection == null) {\n return null;\n }\n return skylinkConnection.getVideoView(peerId)...
[ "0.6593817", "0.64107776", "0.6035787", "0.5705728", "0.566612", "0.56191295", "0.5576068", "0.5565852", "0.5558768", "0.5541617", "0.54769325", "0.5425908", "0.5415139", "0.5365674", "0.5333095", "0.5299105", "0.5283269", "0.52828217", "0.52174896", "0.5201647", "0.5199672",...
0.7052746
0
Gets the visual/video Component available in this telephony for a specific CallPeer.
@Deprecated Component getVisualComponent(CallPeer peer);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Component getLocalVisualComponent(CallPeer peer)\n throws OperationFailedException;", "List<Component> getVisualComponents(CallPeer peer);", "private SurfaceViewRenderer getVideoView(String peerId) {\n if (skylinkConnection == null) {\n return null;\n }\n return skyli...
[ "0.69904476", "0.69692403", "0.5879004", "0.56008667", "0.55759", "0.53798616", "0.5359522", "0.5336552", "0.5335296", "0.5321674", "0.5304754", "0.5244536", "0.524348", "0.5238314", "0.52291274", "0.52017003", "0.5195007", "0.5167156", "0.5163292", "0.515719", "0.51497763", ...
0.71598375
0
Gets the visual/video Components available in this telephony for a specific CallPeer.
List<Component> getVisualComponents(CallPeer peer);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Deprecated\n Component getVisualComponent(CallPeer peer);", "Component getLocalVisualComponent(CallPeer peer)\n throws OperationFailedException;", "public List<AcsCallParticipantInternal> getParticipants() {\n return this.participants;\n }", "public CachetComponentList getComponents(...
[ "0.630768", "0.6234852", "0.518327", "0.5131612", "0.50585353", "0.50292087", "0.50045156", "0.4988459", "0.4933144", "0.49291992", "0.49228284", "0.49193424", "0.48989773", "0.48913258", "0.48857558", "0.48829365", "0.48609474", "0.48478815", "0.4790738", "0.47803283", "0.47...
0.78302115
0
Removes a specific VideoListener from this telephony in order to no longer have it receive notifications when visual/video Components are being added and removed for a specific CallPeer.
void removeVideoListener(CallPeer peer, VideoListener listener);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void removeListener() {\n this.mListener = null;\n }", "private void removeRemoteVideo() {\n if (mRemoteView != null) {\n mRemoteContainer.removeView(mRemoteView);\n }\n mRemoteView = null;\n }", "public void unregisterListener() {\n mPh...
[ "0.6674344", "0.6520519", "0.6511753", "0.64821976", "0.64441705", "0.64402163", "0.6401142", "0.6359484", "0.63271695", "0.631149", "0.63062763", "0.6296068", "0.629202", "0.62796026", "0.6228737", "0.6207614", "0.6193131", "0.61550206", "0.6135032", "0.61299944", "0.6124428...
0.851417
0
Sets the indicator which determines whether the streaming of local video in a specific Call is allowed. The setting does not reflect the availability of actual video capture devices, it just expresses the desire of the user to have the local video streamed in the case the system is actually able to do so.
void setLocalVideoAllowed(Call call, boolean allowed) throws OperationFailedException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isLocalVideoAllowed(Call call);", "boolean isLocalVideoStreaming(Call call);", "public void enableVideoPreview(boolean val);", "protected void startVideoCall() {\n if (!EMClient.getInstance().isConnected())\n Toast.makeText(ChatDetailsActivity.this, R.string.not_connect_to_server, T...
[ "0.7129041", "0.68147624", "0.6272852", "0.5989461", "0.5934556", "0.58761466", "0.5742883", "0.57001615", "0.568748", "0.5678128", "0.5670473", "0.55661845", "0.55623746", "0.5560995", "0.55593747", "0.55504686", "0.5535548", "0.5534573", "0.551569", "0.55013806", "0.5474141...
0.73493433
0
Gets the indicator which determines whether the streaming of local video in a specific Call is allowed. The setting does not reflect the availability of actual video capture devices, it just expresses the desire of the user to have the local video streamed in the case the system is actually able to do so.
boolean isLocalVideoAllowed(Call call);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isLocalVideoStreaming(Call call);", "void setLocalVideoAllowed(Call call, boolean allowed)\n throws OperationFailedException;", "public int shareLocalVideo() {\n videoEnabled = !videoEnabled;\n return mRtcEngine.enableLocalVideo(videoEnabled);\n }", "public boolean isIPVid...
[ "0.7599842", "0.6499604", "0.6304317", "0.6287771", "0.61995333", "0.61655045", "0.60319656", "0.59880084", "0.597343", "0.5779459", "0.57315516", "0.56777567", "0.56558573", "0.56106883", "0.5603418", "0.5590118", "0.55824673", "0.55215424", "0.5498521", "0.54732215", "0.546...
0.7798125
0
Gets the indicator which determines whether a specific Call is currently streaming the local video (to a remote destination).
boolean isLocalVideoStreaming(Call call);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isLocalVideoAllowed(Call call);", "public int shareLocalVideo() {\n videoEnabled = !videoEnabled;\n return mRtcEngine.enableLocalVideo(videoEnabled);\n }", "VideoStatus getStatus();", "boolean hasVideo();", "@Override\n\tpublic boolean isStatus() {\n\t\treturn _candidate.isStatus()...
[ "0.66639227", "0.6041213", "0.5829696", "0.54070514", "0.53897995", "0.5250636", "0.52198637", "0.5163953", "0.51511353", "0.5142312", "0.51395273", "0.5122068", "0.51059985", "0.5105682", "0.5102839", "0.50963587", "0.5090809", "0.50903153", "0.50821316", "0.5074018", "0.507...
0.76833904
0
Create a new video call and invite the specified CallPeer to it.
Call createVideoCall(String uri) throws OperationFailedException, ParseException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Call createVideoCall(Contact callee)\n throws OperationFailedException;", "Call createVideoCall(Contact callee, QualityPreset qualityPreferences)\n throws OperationFailedException;", "protected void startVideoCall() {\n if (!EMClient.getInstance().isConnected())\n Toast....
[ "0.7573753", "0.7207518", "0.6228152", "0.6213562", "0.6172799", "0.60869783", "0.60688645", "0.5742014", "0.5614574", "0.5613203", "0.54516786", "0.54499155", "0.5418494", "0.53359914", "0.52776265", "0.5250851", "0.5212391", "0.52122897", "0.5209941", "0.5084723", "0.507004...
0.5493002
10
Create a new video call and invite the specified CallPeer to it.
Call createVideoCall(Contact callee) throws OperationFailedException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Call createVideoCall(Contact callee, QualityPreset qualityPreferences)\n throws OperationFailedException;", "protected void startVideoCall() {\n if (!EMClient.getInstance().isConnected())\n Toast.makeText(ChatDetailsActivity.this, R.string.not_connect_to_server, Toast.LENGTH_SHORT).s...
[ "0.7207518", "0.6228152", "0.6213562", "0.6172799", "0.60869783", "0.60688645", "0.5742014", "0.5614574", "0.5613203", "0.5493002", "0.54516786", "0.54499155", "0.5418494", "0.53359914", "0.52776265", "0.5250851", "0.5212391", "0.52122897", "0.5209941", "0.5084723", "0.507004...
0.7573753
0
Create a new video call and invite the specified CallPeer to it.
Call createVideoCall(String uri, QualityPreset qualityPreferences) throws OperationFailedException, ParseException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Call createVideoCall(Contact callee)\n throws OperationFailedException;", "Call createVideoCall(Contact callee, QualityPreset qualityPreferences)\n throws OperationFailedException;", "protected void startVideoCall() {\n if (!EMClient.getInstance().isConnected())\n Toast....
[ "0.7573753", "0.7207518", "0.6228152", "0.6213562", "0.6172799", "0.60869783", "0.60688645", "0.5742014", "0.5613203", "0.5493002", "0.54516786", "0.54499155", "0.5418494", "0.53359914", "0.52776265", "0.5250851", "0.5212391", "0.52122897", "0.5209941", "0.5084723", "0.507004...
0.5614574
8
Create a new video call and invite the specified CallPeer to it.
Call createVideoCall(Contact callee, QualityPreset qualityPreferences) throws OperationFailedException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Call createVideoCall(Contact callee)\n throws OperationFailedException;", "protected void startVideoCall() {\n if (!EMClient.getInstance().isConnected())\n Toast.makeText(ChatDetailsActivity.this, R.string.not_connect_to_server, Toast.LENGTH_SHORT).show();\n else {\n ...
[ "0.7572391", "0.62275124", "0.6211926", "0.6171518", "0.60874885", "0.6068608", "0.5742563", "0.5613619", "0.56135684", "0.54916376", "0.5453423", "0.5450945", "0.5418455", "0.5338075", "0.52784646", "0.5249161", "0.52149934", "0.5214797", "0.5209242", "0.50847465", "0.506816...
0.72064894
1
Indicates a user request to answer an incoming call with video enabled from the specified CallPeer.
void answerVideoCallPeer(CallPeer peer) throws OperationFailedException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void startVideoCall() {\n if (!EMClient.getInstance().isConnected())\n Toast.makeText(ChatDetailsActivity.this, R.string.not_connect_to_server, Toast.LENGTH_SHORT).show();\n else {\n startActivity(new Intent(ChatDetailsActivity.this, VideoCallActivity.class).putExtra(\...
[ "0.7029404", "0.65375483", "0.6505875", "0.638661", "0.62894815", "0.62391174", "0.6063611", "0.60591364", "0.6031875", "0.5979329", "0.595682", "0.5948364", "0.58585733", "0.57312816", "0.5674476", "0.5667384", "0.55998105", "0.55694973", "0.5539348", "0.55379975", "0.547950...
0.70292735
1
Returns the quality control for video calls if any. It can be null if we were able to successfully determine that other party does not support it.
QualityControl getQualityControl(CallPeer peer);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String initialVideoQuality() {\n int backCameraId = CameraHolder.instance().getBackCameraId();\n String defaultStr = null;\n if (mCameraId == backCameraId) {\n// defaultStr = mContext.getString(R.string.pref_back_video_quality_default);\n defaultStr = SystemPropert...
[ "0.71439475", "0.6833496", "0.68273956", "0.66662127", "0.6582512", "0.65143996", "0.65143996", "0.65143996", "0.6433386", "0.64108866", "0.63500303", "0.6313038", "0.6313038", "0.62907875", "0.62557566", "0.6240022", "0.62054574", "0.61551327", "0.61165845", "0.61118406", "0...
0.74727255
0
Determines the ConferenceMember which is participating in a telephony conference with a specific CallPeer as its focus and which is sending a video content/RTP stream displayed in a specific visual Component.
ConferenceMember getConferenceMember(CallPeer peer, Component visualComponent);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface VisualComponentResolveListener\n extends EventListener\n{\n /**\n * Notifies that a visual <tt>Component</tt> representing video has been\n * resolved to be corresponding to a given <tt>ConferenceMember</tt>.\n *\n * @param event a <tt>VisualComponentResolveEvent</tt> describ...
[ "0.5381664", "0.52719975", "0.522201", "0.5151045", "0.5125546", "0.5101191", "0.5082375", "0.50609154", "0.5015071", "0.49972633", "0.49582145", "0.4935002", "0.48705247", "0.48684883", "0.48684016", "0.48569065", "0.48485032", "0.48450008", "0.4842152", "0.4820706", "0.4819...
0.7627244
0
Read a number from the console and calculate the sum of all numbers between 1 and the given number;
public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Please one integer number"); int num = sc.nextInt(); long sum = 0; for (int i = 1; i <= num; i++) { sum += i; } System.out.println("The sum of the numbers is " + sum); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main (String[] args){\n int a,no,sum=0;\nScanner s=new Scanner(System.in);\n//System.out.println(\"Enter any number: \");\nno=s.nextInt();\nwhile(no>0)\n{\na=no%10;\nno=no/10;\nsum=sum+a;\n}\nSystem.out.println(sum);\n}", "public static void main(String[] args) {\n int sum = 0;\n ...
[ "0.72828865", "0.7148652", "0.69138294", "0.68851846", "0.67619956", "0.6761209", "0.6727381", "0.6664683", "0.66534126", "0.6637406", "0.6579373", "0.6571737", "0.6566106", "0.65637434", "0.65154135", "0.65037954", "0.6409985", "0.6395296", "0.6362323", "0.63612455", "0.6358...
0.65610737
14
Constructor for AssEx3GUI class
public SportsCentreGUI() { setDefaultCloseOperation(EXIT_ON_CLOSE); setTitle("Boyd-Orr Sports Centre"); setSize(700, 300); display = new JTextArea(); display.setFont(new Font("Courier", Font.PLAIN, 14)); add(display, BorderLayout.CENTER); layoutTop(); layoutBottom(); initLadiesDay(); //calls method which reads data from ClassesIn file initAttendances(); //calls method which reads data from AttendancesIn file }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GUI() {\n }", "public HW3() {\n initComponents();\n }", "public BoggleGUI()\n {\n \t\n }", "public adivinaGUI() {\n initComponents();\n }", "public AplicationGUI() {\n initComponents();\n }", "public PropsGUI() {\n initComponents();\n }", "publ...
[ "0.72370684", "0.70808685", "0.7023763", "0.69923365", "0.69742924", "0.6963788", "0.6939974", "0.6939974", "0.6920277", "0.6911318", "0.6902489", "0.69001937", "0.6867507", "0.68591905", "0.6852339", "0.6823879", "0.6816345", "0.6814168", "0.68105865", "0.68024534", "0.68024...
0.0
-1
Creates the FitnessProgram list ordered by start time using data from the file ClassesIn.txt
public void initLadiesDay() { // your code here FileReader classesReader = null; try { try { classesReader = new FileReader(classesInFile); Scanner classesScanner = new Scanner(classesReader); fitnessProg = new FitnessProgram(); while (classesScanner.hasNextLine() ) { String classLine = classesScanner.nextLine(); fc = new FitnessClass(classLine); fitnessProg.addFitnessClass(fc); } updateDisplay(fitnessProg); } finally { if (classesReader != null) { classesReader.close(); } } } catch (IOException ioe) { JOptionPane.showMessageDialog(null, "File not found", "Error", JOptionPane.ERROR_MESSAGE); } catch (InputMismatchException e) { JOptionPane.showMessageDialog(null, "Invalid file content", "Error", JOptionPane.ERROR_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String args[]) {\n Scanner input = new Scanner(System.in);\n Scanner fileReader = null;\n String fileName = null;\n StudentQueue studentQueue = new StudentQueue();\n boolean run = true;\n\n System.out.println(\"Welcome to the Office Hours Simulation...
[ "0.58158946", "0.55709153", "0.5367254", "0.53421307", "0.5314002", "0.5250454", "0.52362806", "0.5226279", "0.52077204", "0.51847535", "0.5149967", "0.51422983", "0.5129333", "0.5106557", "0.508786", "0.5065727", "0.50636953", "0.50436974", "0.50334406", "0.502105", "0.50130...
0.5987241
0
Initialises the attendances using data from the file AttendancesIn.txt
public void initAttendances() { FileReader attendancesReader = null; try { try { attendancesReader = new FileReader(attendancesFile); Scanner attendancesScanner = new Scanner(attendancesReader); while (attendancesScanner.hasNextLine() ) { String attendancesLine = attendancesScanner.nextLine(); String [] attendanceTokens = attendancesLine.split("\\s+"); String currentClassID = attendanceTokens[0]; fc = fitnessProg.getFitnessClassWithID(currentClassID); int attendance1 = Integer.parseInt(attendanceTokens[1]); int attendance2 = Integer.parseInt(attendanceTokens[2]); int attendance3 = Integer.parseInt(attendanceTokens[3]); int attendance4 = Integer.parseInt(attendanceTokens[4]); int attendance5 = Integer.parseInt(attendanceTokens[5]); int [] passAttendances = {attendance1, attendance2, attendance3, attendance4, attendance5}; fc.setAttendanceRecords(passAttendances); } } finally { if (attendancesReader != null) { attendancesReader.close(); } } } catch (IOException ioe) { JOptionPane.showMessageDialog(null, "File not found", "Error", JOptionPane.ERROR_MESSAGE); } catch (InputMismatchException e) { JOptionPane.showMessageDialog(null, "Invalid file content", "Error", JOptionPane.ERROR_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void Attendance() {\n\t\t\tAttendanceT.setText(\"P/L/E/A\");\n\t\t\ttry {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"Schools\\\\\"\n\t\t\t\t\t\t+ selectedStudent + \".hi\\\\Current Classes\\\\\"\n\t\t\t\t\t\t+ SearchBar3.getText() + \"_Attendance.txt\"));\n\t\t\t\tString temp;\n\t\t\t...
[ "0.6295546", "0.6277501", "0.622042", "0.604416", "0.5974101", "0.58712155", "0.5864373", "0.5810693", "0.5735479", "0.5693069", "0.5635326", "0.55939454", "0.5589759", "0.55229414", "0.55060655", "0.54797375", "0.542573", "0.54252213", "0.541858", "0.54171264", "0.5332027", ...
0.85280365
0
Instantiates timetable display and adds it to GUI
public void updateDisplay(FitnessProgram fitnessProg) { display.setText(""); String sTime = ""; String cName = ""; String tName = ""; int start = 0; StringBuilder startTimes = new StringBuilder(sTime); StringBuilder classNames = new StringBuilder(cName); StringBuilder tutorNames = new StringBuilder(tName); fitnessClass = fitnessProg.allFClasses(); int i; for (i = 0; i < fitnessClass.length; i++) { if (fitnessClass[i] == null) { start = i+9; cName = "Available"; tName = ""; } else { start = fitnessClass[i].getStartTime(); cName = fitnessClass[i].getClassName(); tName = fitnessClass[i].getTutorName(); } sTime = String.format("%7d - %d", start, start+1); cName = String.format("%12s", cName); tName = String.format("%12s", tName); startTimes.append(sTime); classNames.append(cName); tutorNames.append(tName); } display.append(startTimes.toString() + "\n"); display.append(classNames.toString() + "\n"); display.append(tutorNames.toString() + "\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Time_table() {\n initComponents();\n }", "public TimeView() {\r\n label = new JLabel(\" \");\r\n kAvondLabel = new JLabel(\" - Koopavond\");\r\n weekendLabel = new JLabel(\" - Weekend\");\r\n eventLabel = new JLabel(\"Evenement: Theater\");\r\n time = time.getI...
[ "0.737338", "0.69991577", "0.6942764", "0.670872", "0.66653425", "0.66626686", "0.65506417", "0.6459395", "0.64527684", "0.64145213", "0.64083356", "0.63936377", "0.6377318", "0.6325959", "0.63146585", "0.6311503", "0.62958604", "0.6293393", "0.6267533", "0.6193342", "0.61701...
0.0
-1
adds buttons to top of GUI
public void layoutTop() { JPanel top = new JPanel(); closeButton = new JButton("Save and Exit"); closeButton.addActionListener(this); top.add(closeButton); attendanceButton = new JButton("View Attendances"); attendanceButton.addActionListener(this); top.add(attendanceButton); add(top, BorderLayout.NORTH); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addComponentsTopane() {\n \tsetLayout(new BorderLayout());\n \t\n \tJButton b1 = new JButton(\"Login\");\n \tColor customBlue = new Color(86, 132, 197);\n \tb1.setBackground(customBlue);\n b1.setForeground(Color.WHITE);\n this.add(b1, BorderLayout.SOUTH);\n }", "priva...
[ "0.760529", "0.75784355", "0.7287111", "0.7260834", "0.72457814", "0.7159046", "0.7125737", "0.70693415", "0.70456004", "0.7044879", "0.6992018", "0.69615895", "0.69413227", "0.6904739", "0.68863344", "0.68761283", "0.68735933", "0.6841503", "0.6825938", "0.68154895", "0.6813...
0.6771066
24
adds labels, text fields and buttons to bottom of GUI
public void layoutBottom() { // instantiate panel for bottom of display JPanel bottom = new JPanel(new GridLayout(3, 3)); // add upper label, text field and button JLabel idLabel = new JLabel("Enter Class Id"); bottom.add(idLabel); idIn = new JTextField(); bottom.add(idIn); JPanel panel1 = new JPanel(); addButton = new JButton("Add"); addButton.addActionListener(this); panel1.add(addButton); bottom.add(panel1); // add middle label, text field and button JLabel nmeLabel = new JLabel("Enter Class Name"); bottom.add(nmeLabel); classIn = new JTextField(); bottom.add(classIn); JPanel panel2 = new JPanel(); deleteButton = new JButton("Delete"); deleteButton.addActionListener(this); panel2.add(deleteButton); bottom.add(panel2); // add lower label text field and button JLabel tutLabel = new JLabel("Enter Tutor Name"); bottom.add(tutLabel); tutorIn = new JTextField(); bottom.add(tutorIn); add(bottom, BorderLayout.SOUTH); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFe...
[ "0.7223891", "0.7096637", "0.7011612", "0.6989564", "0.6953573", "0.6938423", "0.68677884", "0.6858214", "0.68456274", "0.6814656", "0.679207", "0.6788238", "0.67754114", "0.675004", "0.6707043", "0.67017066", "0.66795087", "0.6664023", "0.6639699", "0.65911734", "0.65843403"...
0.74456537
0
Processes adding a class
public void processAdding() { String iD = idIn.getText(); String clName = classIn.getText(); String tutName = tutorIn.getText(); if (tutName.isEmpty()) { JOptionPane.showMessageDialog(null, "Please enter a tutor name", "Error", JOptionPane.ERROR_MESSAGE); } else if (clName.isEmpty()) { JOptionPane.showMessageDialog(null, "Please enter a class name", "Error", JOptionPane.ERROR_MESSAGE); } else { int full = fitnessProg.getFirstAvailableClassTime(); if (full == 1) { JOptionPane.showMessageDialog(null, "There are no available class times", "Error", JOptionPane.ERROR_MESSAGE); } else { fc = fitnessProg.getFitnessClassWithID(iD); if (fc == null){ int availableTime = fitnessProg.getFirstAvailableClassTime(); FitnessClass newFC = new FitnessClass(); newFC.setClassID(iD); newFC.setClassName(clName); newFC.setStartTime(availableTime); newFC.setTutorName(tutName); int [] newAttRecords = {0,0,0,0,0}; newFC.setAttendanceRecords(newAttRecords); fitnessProg.addFitnessClass(newFC); } else { JOptionPane.showMessageDialog(null, "There is already a class scheduled with this ID", "Error", JOptionPane.ERROR_MESSAGE); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void processClassParentNode(Element node) {\n ClassDataItem cls = new ClassDataItem(node.attributeValue(\"name\"), node.attributeValue(DESCRIPTION_ATTRIBUTE));\n\n Iterator childNodes = node.elementIterator();\n\n while (childNodes.hasNext()) {\n cls.addChildNode(((Element) ...
[ "0.6683304", "0.650645", "0.6479344", "0.6479325", "0.6473693", "0.6367342", "0.6349425", "0.63169694", "0.6291194", "0.6262109", "0.62406015", "0.62001145", "0.6181101", "0.6172675", "0.6150248", "0.6143062", "0.60592294", "0.59783083", "0.5966592", "0.59582496", "0.59349835...
0.68162024
0
Processes deleting a class
public void processDeletion() { String iD = idIn.getText(); fc = fitnessProg.getFitnessClassWithID(iD); int indexPos = 0; if (fc != null) { int startTime = fc.getStartTime(); indexPos = startTime - 9; fitnessClass [indexPos] = null; } else { JOptionPane.showMessageDialog(null, "There is no scheduled class with this ID", "Error", JOptionPane.ERROR_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteClass(String classId) {\n\t\t\r\n\t}", "public void deleteClass(String label);", "public void done(Class<?> cls) {\n inProcess.remove(cls);\n }", "void deletePriorityClass(@NotNull String priorityClassId);", "private void delete() {\n\n\t}", "@Override\n\t\tpublic void...
[ "0.7477011", "0.71958923", "0.6645477", "0.6388551", "0.6360069", "0.63495564", "0.6305996", "0.6263546", "0.6261807", "0.6235952", "0.6223405", "0.6223405", "0.6189032", "0.6189001", "0.6162679", "0.6162679", "0.61339045", "0.61117816", "0.61064774", "0.6096163", "0.60317624...
0.66376525
3
Instantiates a new window and displays the attendance report
public void displayReport() { report = new ReportFrame(fitnessProg); report.buildReport(); report.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openUserReporttWindow() {\r\n\t\tnew JFrameReport();\r\n\t}", "public attendance() {\n initComponents();\n setDate();\n controller = new AttendanceController();\n getAllEmployees();\n generateAttendanceId();\n aIdtxt.setVisible(false);\n }", "private vo...
[ "0.69320315", "0.6718519", "0.6292368", "0.62662536", "0.61333513", "0.6095499", "0.6040986", "0.58835196", "0.57850045", "0.5769967", "0.5731756", "0.5731017", "0.57277286", "0.5705534", "0.5670409", "0.56480676", "0.564786", "0.56301904", "0.5617469", "0.56021225", "0.55820...
0.58038
8
Writes lines to file representing class name, tutor and start time and then exits from the program
public void processSaveAndClose() { PrintWriter writer = null; try { try { writer = new PrintWriter(classesOutFile); int i = 0; for (FitnessClass fc: fitnessClass) { if (fc == null) { i++; } else { String fileOutput = fc.toStringClassesOut(); writer.print(fileOutput); } } } finally { if (writer != null) { writer.close(); System.exit(0); } } } catch (IOException ioe) { JOptionPane.showMessageDialog(null, "File not found", "Error", JOptionPane.ERROR_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void outputFile() {\n // Define output file name\n Scanner sc = new Scanner(System.in);\n System.out.println(\"What do you want to call this file?\");\n String name = sc.nextLine();\n\n // Output to file\n Path outputFile = Paths.get(\"submissions/\" + name + \".ja...
[ "0.61620516", "0.6113327", "0.60282344", "0.59607583", "0.58687985", "0.5833481", "0.58096594", "0.5789718", "0.5788423", "0.5745199", "0.5712526", "0.5710645", "0.5691764", "0.56560576", "0.56457895", "0.56390744", "0.56218684", "0.5619714", "0.56083643", "0.5603683", "0.558...
0.55524933
24
Create the cached fare data iff there is a cache mix, otherwise just return it
private NYCFareDataCache getOrCreateFareData () { if (!fareDataForTransitLayer.containsKey(transitLayer)) { synchronized (fareDataForTransitLayer) { if (!fareDataForTransitLayer.containsKey(transitLayer)) { LOG.info("Initializing NYC InRoutingFareCalculator"); NYCFareDataCache fareData = new NYCFareDataCache(this.transitLayer); fareDataForTransitLayer.put(transitLayer, fareData); } } } return fareDataForTransitLayer.get(transitLayer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private CachedBzlLoadData buildCachedData(BzlLoadValue.Key key, BzlLoadValue value) {\n cachedDataBuilder.setValue(value);\n cachedDataBuilder.setKey(key);\n return cachedDataBuilder.build();\n }", "private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheW...
[ "0.58119357", "0.56667995", "0.5624001", "0.5587304", "0.545553", "0.54490656", "0.54315114", "0.5427334", "0.5417372", "0.5409964", "0.5408557", "0.53389174", "0.53271896", "0.5314889", "0.5295173", "0.5220911", "0.5212939", "0.5202394", "0.5196905", "0.51945704", "0.5173521...
0.74017906
0
Initialize the fare overrides for direct trips on MetroNorth
private TIntObjectMap<TIntIntMap> initializeMnrDirectFareOverrides (List<FareOverride> fareOverrides, boolean peak) { TIntObjectMap<TIntIntMap> fares = new TIntObjectHashMap<>(); if (fareOverrides != null) { for (FareOverride fo : fareOverrides) { // find the stops in the transit layer if (fo.viaStopId != null) throw new IllegalArgumentException("MNR override fare cannot have via stop!"); if (!transitLayer.indexForStopId.containsKey(fo.fromStopId) || !transitLayer.indexForStopId.containsKey(fo.toStopId)) { throw new IllegalArgumentException("from or to stop not found!"); } int fromStop = transitLayer.indexForStopId.get(fo.fromStopId); int toStop = transitLayer.indexForStopId.get(fo.toStopId); int fare = peak ? fo.peakFare : fo.offPeakFare; if (!fares.containsKey(fromStop)) fares.put(fromStop, new TIntIntHashMap()); fares.get(fromStop).put(toStop, fare); } } return fares; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void teleopInit() {\n /* factory default values */\n _talonL1.configFactoryDefault();\n _talonL2.configFactoryDefault();\n _talonR1.configFactoryDefault();\n _talonR2.configFactoryDefault();\n\n /* flip values so robot moves forward when stick-forward/LEDs-green */\n _talon...
[ "0.669913", "0.6370235", "0.625818", "0.6201759", "0.618251", "0.61701334", "0.61664945", "0.6139658", "0.60870725", "0.60762084", "0.60670483", "0.60621226", "0.60601133", "0.60325587", "0.6022328", "0.60110587", "0.60100096", "0.5999613", "0.5979774", "0.5969995", "0.594951...
0.0
-1
Initialize the fare overrides for direct trips on the LIRR. Can't reuse MetroNorth code b/c it used int stop IDs and LIRR fare calculation uses enums
private Map<LIRRStop, TObjectIntMap<LIRRStop>> initializeLirrDirectFareOverrides (List<FareOverride> fareOverrides, boolean peak, NYCFareDataCache fareData) { Map<LIRRStop, TObjectIntMap<LIRRStop>> fares = new HashMap<>(); if (fareOverrides != null) { for (FareOverride fo : fareOverrides) { if (fo.viaStopId != null) continue; if (!transitLayer.indexForStopId.containsKey(fo.fromStopId) || !transitLayer.indexForStopId.containsKey(fo.toStopId)) { throw new IllegalArgumentException("from or to stop not found!"); } int fromStop = transitLayer.indexForStopId.get(fo.fromStopId); int toStop = transitLayer.indexForStopId.get(fo.toStopId); int fare = peak ? fo.peakFare : fo.offPeakFare; LIRRStop fromLirrStop = fareData.lirrStopForTransitLayerStop.get(fromStop); LIRRStop toLirrStop = fareData.lirrStopForTransitLayerStop.get(toStop); fares.computeIfAbsent(fromLirrStop, k -> new TObjectIntHashMap<>()).put(toLirrStop, fare); } } return fares; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void teleopInit() {\n /* factory default values */\n _talonL1.configFactoryDefault();\n _talonL2.configFactoryDefault();\n _talonR1.configFactoryDefault();\n _talonR2.configFactoryDefault();\n\n /* flip values so robot moves forward when stick-forward/LEDs-green */\n _talon...
[ "0.6301322", "0.5936986", "0.59235936", "0.5870483", "0.5842455", "0.5824103", "0.5810429", "0.58087534", "0.5800572", "0.5789944", "0.57842726", "0.57698405", "0.57585233", "0.57299936", "0.56910294", "0.56858504", "0.56423295", "0.5615945", "0.5607888", "0.5607372", "0.5605...
0.5445583
36
Initialize the fare overrides for via trips on the LIRR returns a map keyed as from > to > via > fare
private Map<LIRRStop, Map<LIRRStop, TObjectIntMap<LIRRStop>>> initializeLirrViaFareOverrides (List<FareOverride> fareOverrides, boolean peak, NYCFareDataCache fareData) { Map<LIRRStop, Map<LIRRStop, TObjectIntMap<LIRRStop>>> fares = new HashMap<>(); if (fareOverrides != null) { for (FareOverride fo : fareOverrides) { if (fo.viaStopId == null) continue; if (!transitLayer.indexForStopId.containsKey(fo.fromStopId) || !transitLayer.indexForStopId.containsKey(fo.toStopId) || !transitLayer.indexForStopId.containsKey(fo.viaStopId)) { throw new IllegalArgumentException("from or to stop not found!"); } int fromStop = transitLayer.indexForStopId.get(fo.fromStopId); int toStop = transitLayer.indexForStopId.get(fo.toStopId); int viaStop = transitLayer.indexForStopId.get(fo.viaStopId); int fare = peak ? fo.peakFare : fo.offPeakFare; LIRRStop fromLirrStop = fareData.lirrStopForTransitLayerStop.get(fromStop); LIRRStop toLirrStop = fareData.lirrStopForTransitLayerStop.get(toStop); LIRRStop viaLirrStop = fareData.lirrStopForTransitLayerStop.get(viaStop); fares.computeIfAbsent(fromLirrStop, k -> new HashMap<>()) .computeIfAbsent(toLirrStop, k -> new TObjectIntHashMap<>()) .put(viaLirrStop, fare); } } return fares; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Map<LIRRStop, TObjectIntMap<LIRRStop>> initializeLirrDirectFareOverrides (List<FareOverride> fareOverrides, boolean peak, NYCFareDataCache fareData) {\n Map<LIRRStop, TObjectIntMap<LIRRStop>> fares = new HashMap<>();\n if (fareOverrides != null) {\n for (FareOverride fo : fareOver...
[ "0.6770802", "0.66088647", "0.55233496", "0.5438392", "0.51588076", "0.51475424", "0.4959683", "0.49507818", "0.49183488", "0.48714176", "0.48120937", "0.4811824", "0.47917092", "0.47795215", "0.47783393", "0.47528496", "0.47364286", "0.47308657", "0.46955702", "0.46737176", ...
0.6898252
0
return true if you can transfer from subway stop from to to without leaving the system
public static boolean hasBehindGatesTransfer (int from, int to, NYCFareDataCache fareData) { if (from == to) return true; // same platform else { String previousFareArea = fareData.fareAreaForStop.get(from); String thisFareArea = fareData.fareAreaForStop.get(to); // both in the same fare area (behind gates) // okay to use == here since fare areas are interned - warning can be ignored //noinspection StringEquality,ConditionCoveredByFurtherCondition return previousFareArea != null && thisFareArea != null && previousFareArea == thisFareArea; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasPlainTransferFrom();", "boolean isTransmitting();", "public boolean poolTransfer() {\n \t\treturn !isTransfering();\n \t}", "boolean hasPlainTransfer();", "@Override\r\n\tpublic boolean canTeleport() {\n\t\treturn false;\r\n\t}", "public boolean canTransmitMessages()\n {\n return tru...
[ "0.69627416", "0.67799485", "0.6442167", "0.64163274", "0.61177355", "0.60412025", "0.6026659", "0.6026659", "0.6005418", "0.59939885", "0.5978731", "0.59505117", "0.5896938", "0.588842", "0.586454", "0.586238", "0.5857115", "0.5824301", "0.57891333", "0.5784471", "0.5784236"...
0.0
-1
Returns the test suite of this class.
public static Test suite() { return new TestSuite(JPADigitalRunTrackStatusDAOTest.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Test suite() {\n\t\treturn new AllTests();\n\t}", "public static Test suite()\r\n {\r\n return suite(com.redknee.app.crm.TestPackage.createDefaultContext());\r\n }", "public static Test suite() {\r\n\t\treturn new JUnit4TestAdapter(AllTests.class);\r\n\t}", "public static Test suite() ...
[ "0.8195917", "0.80121404", "0.776665", "0.7677652", "0.7618208", "0.7573922", "0.7548098", "0.74858284", "0.74694246", "0.7460589", "0.7420687", "0.73831767", "0.73468953", "0.7295165", "0.72879475", "0.7245884", "0.72438097", "0.721016", "0.72024745", "0.7174016", "0.714797"...
0.6731721
54
Sets up test environment.
protected void setUp() throws Exception { super.setUp(); target = new JPADigitalRunTrackStatusDAO(); target.setUnitName("persistence_unit"); target.setSessionContext(context); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before\n public void setupEnvironment() {\n TestEnvironment testEnvironment;\n switch (mode) {\n case CLUSTER:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEn...
[ "0.7744888", "0.7602731", "0.75787544", "0.7403919", "0.73551923", "0.7302735", "0.72851795", "0.7115699", "0.7076596", "0.7028803", "0.7019756", "0.70110875", "0.70083064", "0.69431436", "0.69422024", "0.69374317", "0.6931808", "0.6911815", "0.69098765", "0.68870354", "0.687...
0.0
-1
Tears down test environment.
protected void tearDown() throws Exception { super.tearDown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void tearDown() {\n testEnv.close();\n }", "@AfterClass\r\n\tpublic static void testCleanup() {\r\n\t\tConfig.teardown();\r\n\t}", "public void teardown() {\n LOGGER.info(\"Shutting down driver\");\n driver.quit();\n }", "@AfterSuite\n\tpublic void teardown() {\n\t\t\n\t\...
[ "0.800837", "0.76213956", "0.7501416", "0.74659353", "0.74478614", "0.73999876", "0.73679805", "0.73664963", "0.7296697", "0.7230914", "0.72147137", "0.7208223", "0.71691406", "0.71253234", "0.712046", "0.70704573", "0.7064009", "0.7056549", "0.7055528", "0.7054756", "0.70547...
0.0
-1
Tests createTrackStatus method for null parameter. IllegalArgumentException expected.
public void testCreateTrackStatusForNull() throws Exception { try { target.createTrackStatus(null); fail("IllegalArgumentException expected."); } catch (IllegalArgumentException ex) { // success } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testUpdateTrackStatusForNull() throws Exception {\r\n try {\r\n target.updateTrackStatus(null);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException ex) {\r\n // success\r\n }\r\n }", "public void testGetTrack...
[ "0.75310034", "0.67609185", "0.6428307", "0.6243029", "0.6109831", "0.6104688", "0.60090756", "0.59570664", "0.59484917", "0.59466714", "0.5932935", "0.59264827", "0.589508", "0.5846543", "0.58093464", "0.5770506", "0.57553124", "0.5751184", "0.56920034", "0.56089234", "0.560...
0.89145786
0
Tests updateTrackStatus method for null parameter. IllegalArgumentException expected.
public void testUpdateTrackStatusForNull() throws Exception { try { target.updateTrackStatus(null); fail("IllegalArgumentException expected."); } catch (IllegalArgumentException ex) { // success } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testCreateTrackStatusForNull() throws Exception {\r\n try {\r\n target.createTrackStatus(null);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException ex) {\r\n // success\r\n }\r\n }", "public void testUpdateTr...
[ "0.7856817", "0.70226973", "0.6338339", "0.630342", "0.62607837", "0.62324536", "0.62087524", "0.6097633", "0.60619724", "0.58559877", "0.57965624", "0.5675624", "0.56229097", "0.55970496", "0.55855906", "0.557189", "0.5537732", "0.5502319", "0.54685605", "0.5463325", "0.5439...
0.891475
0
Tests updateTrackStatus method when entity not found. EntityNotFoundException expected.
public void testUpdateTrackStatusForNoEntity() throws Exception { TrackStatus entity = new TrackStatus(); entity.setId(3); EasyMock.expect(em.find(entity.getClass(), 3l)).andReturn(null); EasyMock.replay(context, em); try { target.updateTrackStatus(entity); fail("EntityNotFoundException expected."); } catch (EntityNotFoundException ex) { // success } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testGetTrackStatusForNoEntity() throws Exception {\r\n EasyMock.expect(em.find(TrackStatus.class, 3l)).andReturn(null);\r\n EasyMock.replay(context, em);\r\n try {\r\n target.getTrackStatus(3);\r\n fail(\"EntityNotFoundException expected.\");\r\n } catc...
[ "0.81169283", "0.7974693", "0.71470165", "0.7002714", "0.65272593", "0.6525198", "0.6477891", "0.6348618", "0.61569524", "0.61088336", "0.6074063", "0.59783703", "0.5931281", "0.58620733", "0.5840133", "0.5759639", "0.5716081", "0.5687688", "0.56580377", "0.56298196", "0.5609...
0.88672286
0
Tests removeTrackStatus method for negative parameter. IllegalArgumentException expected.
public void testRemoveTrackStatusForNegative() throws Exception { try { target.removeTrackStatus(-1); fail("IllegalArgumentException expected."); } catch (IllegalArgumentException ex) { // success } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testGetTrackStatusForNegative() throws Exception {\r\n try {\r\n target.getTrackStatus(-10);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException ex) {\r\n // success\r\n }\r\n }", "public void testRemoveTrack...
[ "0.76865685", "0.6455178", "0.6181703", "0.6017542", "0.5815147", "0.5763311", "0.5647782", "0.56256753", "0.55533546", "0.5524786", "0.54893255", "0.5426086", "0.5377661", "0.5343715", "0.52955866", "0.5289153", "0.52797014", "0.5259238", "0.52527344", "0.5245491", "0.520315...
0.9054589
0
Tests removeTrackStatus method when entity not found. EntityNotFoundException expected.
public void testRemoveTrackStatusForNoEntity() throws Exception { EasyMock.expect(em.find(TrackStatus.class, 3l)).andReturn(null); EasyMock.replay(context, em); try { target.removeTrackStatus(3); fail("EntityNotFoundException expected."); } catch (EntityNotFoundException ex) { // success } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testUpdateTrackStatusForNoEntity() throws Exception {\r\n TrackStatus entity = new TrackStatus();\r\n entity.setId(3);\r\n EasyMock.expect(em.find(entity.getClass(), 3l)).andReturn(null);\r\n EasyMock.replay(context, em);\r\n try {\r\n target.updateTrackSta...
[ "0.81188506", "0.7862343", "0.66781604", "0.64560074", "0.62190557", "0.6192728", "0.6077304", "0.5985152", "0.59315735", "0.5930191", "0.59186536", "0.58480483", "0.5822028", "0.5808718", "0.5754398", "0.5753628", "0.5749408", "0.57481056", "0.5723699", "0.57079697", "0.5705...
0.87680894
0
Tests getTrackStatus method for negative parameter. IllegalArgumentException expected.
public void testGetTrackStatusForNegative() throws Exception { try { target.getTrackStatus(-10); fail("IllegalArgumentException expected."); } catch (IllegalArgumentException ex) { // success } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testRemoveTrackStatusForNegative() throws Exception {\r\n try {\r\n target.removeTrackStatus(-1);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException ex) {\r\n // success\r\n }\r\n }", "public void testCreate...
[ "0.82579565", "0.7202859", "0.6563164", "0.63653994", "0.6123401", "0.59259415", "0.58828574", "0.58090687", "0.5761773", "0.5695528", "0.56674606", "0.5595312", "0.5500517", "0.54848", "0.54781777", "0.5444668", "0.54217684", "0.5403737", "0.53592527", "0.53577644", "0.53573...
0.89761174
0
Tests getTrackStatus method when entity not found. EntityNotFoundException expected.
public void testGetTrackStatusForNoEntity() throws Exception { EasyMock.expect(em.find(TrackStatus.class, 3l)).andReturn(null); EasyMock.replay(context, em); try { target.getTrackStatus(3); fail("EntityNotFoundException expected."); } catch (EntityNotFoundException ex) { // success } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testUpdateTrackStatusForNoEntity() throws Exception {\r\n TrackStatus entity = new TrackStatus();\r\n entity.setId(3);\r\n EasyMock.expect(em.find(entity.getClass(), 3l)).andReturn(null);\r\n EasyMock.replay(context, em);\r\n try {\r\n target.updateTrackSta...
[ "0.8394235", "0.8017621", "0.65321624", "0.64265454", "0.6340184", "0.6282508", "0.6001051", "0.592648", "0.58828026", "0.57940596", "0.5730027", "0.56465274", "0.5630477", "0.5627512", "0.55915105", "0.5583778", "0.55726135", "0.5550712", "0.5527614", "0.5506054", "0.5493172...
0.8798981
0
Will be used by the ArrayAdapter in the ListView
@Override public String toString() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View view = super.getView(position, convertView, parent);\n\n // Initialize a TextView for ListView each Item\n ...
[ "0.6808363", "0.67281646", "0.6662474", "0.66223586", "0.6611309", "0.65915954", "0.65525144", "0.6539854", "0.6534987", "0.65146315", "0.6512246", "0.6512246", "0.64769715", "0.6473474", "0.6473474", "0.6470788", "0.6469043", "0.6462932", "0.6460458", "0.6457919", "0.6457176...
0.0
-1
/ 1. Write a program that can find the frequency of any given character from a string Ex: str = "aabcccd"; input: 'c' output: 3 input: 'e' output: 0
public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Enter a word:"); String word = scan.next(); System.out.println("Enter character:"); char character = scan.next().charAt(0); int count=0; //count frequency of character for (int i =0; i<word.length(); i++) { char each = word.charAt(i); //each character by given string word if (each == character) { //if each character in str is matching with ch count++; //count increase the frequency of ch by 1 } } System.out.println(count); System.out.println("==========================="); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int frequency(String str, char ch){\n//will return frequency of char from the string\n int count = 0; //to save the frequency of char\n/*each character is a char : and need to compare it with str.\nevery time it matches we add frequency to count*/\n\n for(char each : str.toCharArray() )...
[ "0.86444384", "0.8006333", "0.77932644", "0.7787745", "0.77145666", "0.7682464", "0.7680678", "0.763873", "0.76198804", "0.7466049", "0.73961526", "0.7372509", "0.73696107", "0.7340616", "0.73403263", "0.73332447", "0.7314681", "0.7310141", "0.73005795", "0.7290527", "0.72423...
0.8357575
1
Exposes methods for Token Rules manipulation.
public interface TokenRulesService { /** * Return the token rule for the given bin. * * @param iisnBin * String - The bin. * @return TokenRule - The token rule. */ TokenRule get(String iisnBin); /** * Saves the token in the DB. * * @param tokenRule * TokenRule - The token rule dto. * @return TokenRule - The token rule which is saved. */ TokenRule save(TokenRule tokenRule); /** * Fetches the real bins for the issuer. * * @param iisn * String - The iisn. * * @return List<String> - The bins. */ List<String> getBins(String iisn); /** * @return load list of token bins from token bin mapping. */ List<String> loadListOfTokenBins(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TokenRule save(TokenRule tokenRule);", "public interface RuleConstruction extends SelectRule, DeleteRule, UpdateRule {\n\n /**\n * Check whether word is key-word\n *\n * @param word - word\n * @return false - word is not key-word\n * true - word is key-word\n */\n boolean isNotKeyWo...
[ "0.62592584", "0.6114896", "0.6095936", "0.6095936", "0.6095936", "0.6051302", "0.5908885", "0.5778582", "0.57116103", "0.56908864", "0.5631951", "0.5623221", "0.56157064", "0.56011826", "0.5599058", "0.5593238", "0.55472374", "0.55425733", "0.542524", "0.53935355", "0.538378...
0.6091838
5
Return the token rule for the given bin.
TokenRule get(String iisnBin);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TokenRulesService {\n /**\n * Return the token rule for the given bin.\n * \n * @param iisnBin\n * String - The bin.\n * @return TokenRule - The token rule.\n */\n TokenRule get(String iisnBin);\n\n /**\n * Saves the token in the DB.\n * \n *...
[ "0.5093139", "0.4997447", "0.49255714", "0.47855544", "0.47139072", "0.46595544", "0.465859", "0.4618403", "0.4600076", "0.4600076", "0.4600076", "0.4600076", "0.4600076", "0.45806634", "0.45659694", "0.45514983", "0.45514983", "0.45514983", "0.4550111", "0.45454362", "0.4540...
0.78136784
0
Saves the token in the DB.
TokenRule save(TokenRule tokenRule);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveToken(String token, long passTime) {\n }", "public Boolean saveToken(Integer userId, String token) {\n try {\n ResultSet rs = queryUpdate(String.format(\n \"UPDATE %s SET last_token='%s',token_expire=DATE_ADD(now(), INTERVAL 7 DAY) where id=%d\", this.tableName, token, userId\...
[ "0.73338443", "0.6881036", "0.68706834", "0.6829427", "0.66640586", "0.6617243", "0.6554124", "0.6433162", "0.6410078", "0.639917", "0.6398467", "0.63701695", "0.6359058", "0.6314182", "0.62257665", "0.6100893", "0.6099591", "0.59899503", "0.58488506", "0.5832644", "0.5812185...
0.6965171
1
Fetches the real bins for the issuer.
List<String> getBins(String iisn);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<B> getBins() {\n return ImmutableList.copyOf(bins);\n }", "private void computeHistogramBins() {\r\n int nBins = (int) Math.ceil(hismax / binWidth);\r\n histoBins = new double[nBins];\r\n for (int i = 0; i < nBins; i++) {\r\n histoBins[i] = binWidth * (double...
[ "0.6042243", "0.59392613", "0.5395463", "0.5004846", "0.4922128", "0.48875463", "0.4873712", "0.4865495", "0.4753368", "0.4746683", "0.47327074", "0.4728311", "0.47145844", "0.46991062", "0.46649373", "0.46139398", "0.45891124", "0.4545078", "0.45401645", "0.4532108", "0.4470...
0.57070345
2
Simple getters and setters: Geter for log.
public final Logger getLog() { return this.log; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final Log getLog() {\r\n return this.log;\r\n }", "protected Log getLog()\n/* */ {\n/* 59 */ return log;\n/* */ }", "public String get_log(){\n }", "@Override\r\n\tpublic Log getLog() {\n\t\treturn log;\r\n\t}", "public Log log() {\n return _log;\n }", "public SegaLog...
[ "0.7420622", "0.7231867", "0.72185636", "0.7211957", "0.7173809", "0.69368684", "0.692754", "0.68835187", "0.68727374", "0.68477654", "0.680099", "0.6694734", "0.66181785", "0.65646803", "0.6548431", "0.6527835", "0.6480631", "0.6468953", "0.64307904", "0.6378221", "0.6347246...
0.67308766
11
Updating active player balance and position and displays the dice rolled by the player
@Override public void update(int[] dice, int pos, int balance, String playerName) { // Updating dice values GUI.setDice(dice[0], dice[1]); // Updating active player balance GUI.setBalance(playerName, balance); // Removing players current car GUI.removeAllCars(playerName); // Adding player car at updated position GUI.setCar(pos+1, playerName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw()\r\n\t{\r\n\t\tfor(int i=1;i<accountValue.length;i++)\r\n\t\t{\r\n\t\t\taccountValue[i]+=playerBet[i];\r\n\t\t}\r\n\t\tendRund();\r\n\t}", "public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}", "public void updatePlayerPoints() {\...
[ "0.7000339", "0.67418164", "0.6654326", "0.65461475", "0.65348315", "0.6528707", "0.6514925", "0.6439333", "0.64099723", "0.6408313", "0.632635", "0.629311", "0.6273078", "0.6266379", "0.6255286", "0.62229586", "0.62002414", "0.61936057", "0.6188711", "0.617048", "0.6151183",...
0.7512265
0
Adds a new player to the board. using balance, name, and player
@Override public void addPlayer(String playerName, int balance, int playerNumber) { Color[] colors = {Color.BLUE, Color.WHITE, Color.MAGENTA, Color.YELLOW, Color.BLACK, Color.GREEN}; Car car = new Car.Builder() .primaryColor(colors[playerNumber]) .secondaryColor(colors[5-playerNumber]).build(); GUI.addPlayer(playerName, balance, car); GUI.setCar(1, playerName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addPlayer(Player player) {\n //int id = Repository.getNextUniqueID();\n this.player = player;\n }", "public static void addingNewPlayer(){\r\n\t\t//hard code each score includng a total.\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"Enter the name of the Player?\");\r\n\t\t\...
[ "0.72834826", "0.7255933", "0.72131866", "0.7148956", "0.71205604", "0.70918655", "0.70338887", "0.70093566", "0.6943092", "0.6935034", "0.6910119", "0.68743944", "0.6866882", "0.685352", "0.6836753", "0.6821541", "0.68018234", "0.6779082", "0.67100054", "0.6699339", "0.66627...
0.80517304
0
Message used when money is taken from player
@Override public void showWithdrawMessage(String playerName, int amount) { String s1 = reader.getElement("withdraw", 0); String s2 = reader.getElement("withdraw", 1); String msg = playerName + ": " + s1 + " " + amount + " " + s2; GUI.showMessage(msg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void passedBy() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(250);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 250 dollars by landing on Bonus Square\");\n\n\t}", "public void e...
[ "0.6735867", "0.6718189", "0.66464585", "0.6610528", "0.65753585", "0.64576656", "0.6443309", "0.64376456", "0.640595", "0.63924205", "0.636294", "0.63480556", "0.63242626", "0.6302972", "0.62407064", "0.62340343", "0.6151249", "0.6140634", "0.613908", "0.6130063", "0.6123528...
0.6705615
2
Message used when money is given to player
@Override public void showDepositMessage(String playerName, int bonus) { String s1 = reader.getElement("deposit", 0); String s2 = reader.getElement("deposit", 1); String msg = playerName + ": " + s1 + " " + bonus + " " + s2; GUI.showMessage(msg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void passedBy() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(250);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 250 dollars by landing on Bonus Square\");\n\n\t}", "@Override\n ...
[ "0.69083107", "0.6825349", "0.6819356", "0.6753335", "0.66513944", "0.664768", "0.6641264", "0.66053605", "0.6576557", "0.65412104", "0.65322506", "0.64960134", "0.6449892", "0.64321697", "0.6356638", "0.6296476", "0.62741596", "0.6270983", "0.62708336", "0.62350464", "0.6234...
0.63002443
15
TODO Autogenerated method stub
@Override public void showNoCardMessage(String name) { }
{ "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 showGetPrisonCardMessage(Player player) { }
{ "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 showDoTimeMessage(Player player) { }
{ "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
Initialize text on GUI
@Override public void initializeBoard() { for(int i = 0; i < FieldData.FIELDNAME_DATA.length; i++){ switch(FieldData.FIELDTYPE_DATA[i]){ case REFUGE: fields[i] = new Refuge.Builder().build(); fields[i].setDescription(reader.getElement("get", 0) + " " + FieldData.FIELDRENT1_DATA[i]); break; case TAX: fields[i] = new Tax.Builder().build(); fields[i].setDescription(reader.getElement("pay", 0) + " " + FieldData.FIELDRENT1_DATA[i]); break; case TERRITORY: fields[i] = new Street.Builder() .setBgColor(FieldData.fieldColor[i]) .build(); fields[i].setDescription(reader.getElement("ownable", 0) + " " + FieldData.FIELDBUYPRICE_DATA[i] + ", " + reader.getElement("territory", 0) + " " +FieldData.FIELDRENT1_DATA[i]); break; case LABOR_CAMP: fields[i] = new Brewery.Builder().build(); fields[i].setDescription(reader.getElement("ownable", 0) + " " + FieldData.FIELDBUYPRICE_DATA[i] + ", " + reader.getElement("laborCamp", 0)); break; case FLEET: fields[i] = new Shipping.Builder().build(); fields[i].setDescription(reader.getElement("ownable", 0) + " " + FieldData.FIELDBUYPRICE_DATA[i] + ", " + reader.getElement("fleet", 0)); break; case PRISON: fields[i] = new Jail.Builder().build(); fields[i].setDescription(reader.getElement("fine", 0)+ " " + "Kr. 1000"); break; case START: fields[i] = new Start.Builder().build(); fields[i].setDescription(reader.getElement("bonus", 0) + " " + "Kr. 4000"); break; case LUCKYCARD: fields[i] = new Chance.Builder().build(); fields[i].setDescription(reader.getElement("lucky", 0)); break; } fields[i].setTitle(String.valueOf(i+1)); fields[i].setSubText(reader.getElement(FieldData.FIELDNAME_DATA[i], 0)); } GUI.create(fields); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initText() {\n// urlText.setText(jPAConfig.getUrl());\n// userText.setText(jPAConfig.getUser());\n// dbNameText.setText(jPAConfig.getDbName());\n// portText.setText(jPAConfig.getPort());\n// passText.setText(jPAConfig.getPassword());\n }", "public void initializ...
[ "0.76441413", "0.7462383", "0.73420507", "0.73157156", "0.7146596", "0.7123174", "0.70550656", "0.7043869", "0.70287234", "0.6989587", "0.69560605", "0.69509727", "0.6947663", "0.6945112", "0.6939886", "0.6904022", "0.6903719", "0.68929285", "0.68825877", "0.6875927", "0.6872...
0.0
-1
Created by dylan on 11.02.18.
public interface Renderable { @NotNull public Material getMaterial(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n public void func_10411...
[ "0.5713372", "0.5707004", "0.57048124", "0.5675562", "0.55917674", "0.5584027", "0.5559358", "0.55575913", "0.55440956", "0.5543077", "0.5543077", "0.5537649", "0.550183", "0.550183", "0.550183", "0.550183", "0.550183", "0.5493694", "0.5492469", "0.54879105", "0.5481304", "...
0.0
-1
is there an instance of this
public static boolean hasInstance() { if(wdba == null) return false; else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasInstance();", "public static boolean hasInstance() {\n return instance != null;\n }", "public boolean isValid() {\n return instance != null;\n }", "boolean containsInstance(Instance instance);", "@java.lang.Override\n public boolean hasInstance() {\n return stepInfoCase_ ==...
[ "0.7878968", "0.7293138", "0.6842007", "0.6591031", "0.6470742", "0.64468515", "0.6373962", "0.63298464", "0.6263757", "0.6243421", "0.6240458", "0.62371606", "0.6213808", "0.6213808", "0.6213808", "0.6213808", "0.6213808", "0.6213808", "0.6213808", "0.6189972", "0.61757463",...
0.71371496
2
Get all words from Words table
public Cursor getWords() { String query = String.format(_select, getDate()) + _havingDataContraint + " ORDER BY " + DBConstants.WordTable.WORD_KEY; return _db.rawQuery(query, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getAllWords() {\n List<String> words = new ArrayList<>();\n // get the words to the list\n getAllWords(root, \"\", 0, words);\n // and return the list of words\n return words;\n }", "@Override\n public List<DefinitionDTO> findAllWords() {\n List...
[ "0.7388549", "0.7305453", "0.6998142", "0.69137216", "0.68587863", "0.6763949", "0.6687796", "0.6673189", "0.6672154", "0.6652893", "0.665053", "0.6608574", "0.65925795", "0.65850204", "0.65696084", "0.6542369", "0.6508949", "0.65063405", "0.64847124", "0.6473409", "0.6442625...
0.7545784
0
get all Accepted words from Words table
public Cursor getAcceptedWords() { return getWordsByType(DBConstants.WORDTYPE_ACCEPTED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cursor getRejectedWords()\n\t{\n\t\treturn getWordsByType(DBConstants.WORDTYPE_REJECTED);\n\t}", "private static ArrayList<Result> bagOfWords(Query query, DataManager myVocab) {\n\t\tString queryname = query.getQuery();\n\t\t// split on space and punctuation\n\t\tString[] termList = queryname.split(\" \")...
[ "0.6860291", "0.5891197", "0.5882003", "0.586474", "0.58575135", "0.5806432", "0.5792434", "0.57909226", "0.57797533", "0.5717381", "0.571421", "0.56717265", "0.5615391", "0.5609272", "0.5606941", "0.55865276", "0.55684924", "0.5539226", "0.5529903", "0.5514739", "0.5497501",...
0.7615768
0
get all Rejected Words from Words table
public Cursor getRejectedWords() { return getWordsByType(DBConstants.WORDTYPE_REJECTED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cursor getAcceptedWords()\n\t{\n\t\treturn getWordsByType(DBConstants.WORDTYPE_ACCEPTED);\n\t}", "public Set<String> getWordsNotFoundByUser(){\n\n Set<String> validWordsOnBoardCopy = new HashSet<String>();\n validWordsOnBoardCopy.addAll(validWordsOnBoard);\n validWordsOnBoardCopy.remo...
[ "0.60796434", "0.5991033", "0.5729242", "0.560747", "0.54630905", "0.5434939", "0.5300143", "0.52986205", "0.529597", "0.52407104", "0.52353275", "0.5230256", "0.5220449", "0.51986474", "0.51867026", "0.51704687", "0.5136348", "0.51116365", "0.50876576", "0.50867903", "0.5086...
0.7690612
0
Get all words from Words table by the given type id
private Cursor getWordsByType(int typeId) { String query = String.format(_select, getDate()) + " WHERE " + DBConstants.WordTable.TYPEID_KEY + " = " + typeId + _havingDataContraint + " ORDER BY " + DBConstants.WordTable.WORD_KEY; return _db.rawQuery(query, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Word getWord(int id);", "@Override\n public List<DefinitionDTO> findAllWords() {\n List<Word> words = wordRepository.findAll();\n return DTOMapper.mapWordListToDefinitionDTOList(words);\n }", "List<T> getWord();", "public IllWord getIllWordById(Integer id) {\n\t\treturn this.selec...
[ "0.6900605", "0.6268106", "0.61766887", "0.61547637", "0.5900717", "0.58872557", "0.58595556", "0.58516276", "0.5786737", "0.57762307", "0.5759171", "0.57027763", "0.5625539", "0.55899745", "0.5586545", "0.5586022", "0.55468744", "0.5481261", "0.54541963", "0.54491776", "0.54...
0.81256014
0
Get word from Words table
public Cursor getWord(String word) { String query = String.format(_select, getDate()) + " WHERE " + DBConstants.WordTable.WORD_KEY + " = '" + word + "'"; return _db.rawQuery(query, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getWord();", "WordBean getWord(String word);", "public Word getWord(int id);", "public void getWord() {\n\t\t\n\t}", "public String getWord()\n\t{\n\t\treturn word.get(matcher());\n\t}", "public WordPtBR getWord(String w) throws WordNotFoundExceptionPtBR {\n\t\tInteger offset = index.get...
[ "0.77662235", "0.76156807", "0.7491891", "0.6856964", "0.68533266", "0.67516905", "0.6682447", "0.6639422", "0.6586584", "0.65861243", "0.6573854", "0.65627885", "0.6544027", "0.65378964", "0.653185", "0.6515104", "0.65058786", "0.65048975", "0.6491272", "0.64860296", "0.6480...
0.7235312
3
get all date stats of a word by wordId
public Cursor getWordDateStats(long wordId) { String query = "SELECT *" + " FROM " + DBConstants.StatsTable.TABLENAME + " WHERE " + DBConstants.StatsTable.WORDID_KEY + " = " + wordId + " AND " + DBConstants.StatsTable.DATE_KEY + " != '" + getDate() + "'" + // " AND " + DBConstants.StatsTable.TOTAL_KEY + " > 0" + " ORDER BY " + DBConstants.StatsTable.DATE_KEY + " DESC"; // String query = "SELECT *" + // " FROM " + DBConstants.StatsTable.TABLENAME + // " WHERE " + DBConstants.StatsTable.WORDID_KEY + " = " + wordId + // " AND " + DBConstants.StatsTable.DATE_KEY + " != '03/06/12'" + // " ORDER BY " + DBConstants.StatsTable.DATE_KEY; return _db.rawQuery(query, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Cursor getWordsByType(int typeId) {\n\t\n\t\tString query = String.format(_select, getDate()) +\t\t\t\t\t\t\t \n\t\t\t\t\t\t\" WHERE \" + DBConstants.WordTable.TYPEID_KEY + \" = \" + typeId +\n\t\t\t\t\t\t_havingDataContraint + \n\t\t\t\t\t\t\" ORDER BY \" + DBConstants.WordTable.WORD_KEY;\n\t\t\t\n\t\tre...
[ "0.57045025", "0.56668216", "0.553943", "0.5472421", "0.5306472", "0.5281193", "0.522531", "0.5195625", "0.51774997", "0.5156135", "0.5148014", "0.5116076", "0.5103396", "0.5095293", "0.5055935", "0.49522316", "0.4951609", "0.49464995", "0.49219072", "0.4916118", "0.48871943"...
0.7617856
0
delete all word stats
public int deleteAllWords() { _db.delete(DBConstants.StatsTable.TABLENAME, null, null); //delete all words return _db.delete(DBConstants.WordTable.TABLENAME, null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int resetAllWords()\n\t{\n\t\t_db.delete(DBConstants.StatsTable.TABLENAME, null, null);\n\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(DBConstants.WordTable.DAILYGOALCOUNT_KEY, 0);\n\t\n\t\t//reset word data //commented out to set the daily goal back to 0 below...\n\t\treturn 0;//_db.up...
[ "0.70038366", "0.6632288", "0.64950275", "0.6395628", "0.63900435", "0.63820046", "0.62788516", "0.62764835", "0.6264251", "0.6146555", "0.6144883", "0.611408", "0.6107329", "0.60792637", "0.6023618", "0.6019475", "0.59845275", "0.595607", "0.59497935", "0.5909494", "0.590474...
0.7781809
0
delete all word stats
public int resetAllWords() { _db.delete(DBConstants.StatsTable.TABLENAME, null, null); ContentValues values = new ContentValues(); values.put(DBConstants.WordTable.DAILYGOALCOUNT_KEY, 0); //reset word data //commented out to set the daily goal back to 0 below... return 0;//_db.update(DBConstants.WordTable.TABLENAME, values, null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int deleteAllWords()\n\t{\n\t\t_db.delete(DBConstants.StatsTable.TABLENAME, null, null);\n\n\t\t//delete all words\n\t\treturn _db.delete(DBConstants.WordTable.TABLENAME, null, null);\n\t}", "public void deleteWordLevel() {\n\t\ttry {\n \t\t\tClass.forName(DRIVER);\n \t\t} catch (ClassNotFoundException ...
[ "0.7781809", "0.6632288", "0.64950275", "0.6395628", "0.63900435", "0.63820046", "0.62788516", "0.62764835", "0.6264251", "0.6146555", "0.6144883", "0.611408", "0.6107329", "0.60792637", "0.6023618", "0.6019475", "0.59845275", "0.595607", "0.59497935", "0.5909494", "0.5904749...
0.70038366
1
ONLY UPDATES NOTE AND DAILY GOAL FOR NOW....
public int updateWordDetails(BaseWord word) { ContentValues values = new ContentValues(); values.put(DBConstants.WordTable.DAILYGOALCOUNT_KEY, word._dailyGoal); values.put(DBConstants.WordTable.DEFINITION_KEY, word.get_definition()); //update word data return _db.update(DBConstants.WordTable.TABLENAME, values, DBConstants.WordTable.WORDID_KEY + " = " + word.get_id(), null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testUpdateNote() {\n//\t\tlog.trace(\"Testing updating note\");\n\t\tfinal short week = 2;\n\n\t\t// get the list of individual notes for week 2\n\t\tList<Note> notes = noteDao.findIndividualNotes(TEST_QCBATCH_ID, week);\n\n\t\tassertTrue(!notes.isEmpty());\n\n\t\tNote note = notes.get(1);\n\n...
[ "0.6483865", "0.62769806", "0.62630445", "0.6236986", "0.62126553", "0.6158008", "0.60815334", "0.6070509", "0.6053522", "0.6044212", "0.60172737", "0.600256", "0.59783745", "0.5895511", "0.58573794", "0.58490616", "0.5844127", "0.58390015", "0.5821978", "0.5820468", "0.57962...
0.0
-1
TODO Autogenerated method stub
@Override public int compare(Pair o1, Pair o2) { if(o1.getAvg() - o2.getAvg() > 0){ return -1; }else if(o1.getAvg() - o2.getAvg() < 0){ return 1; }else{ return 0; } }
{ "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
Ha a gombon tortent esemeny, akkor hivja meg a segitseg fgvt
@Override public void handle(ActionEvent event) { if (event.getSource()==gomb){ Controller.Segitseg(); } /** * User input helyenek megszerzese */ if (event.getSource() == Kajatipus) { Receptek.clear(); Receptek.setPromptText("Kérem válasszon ételt a recept megjelenítéséhez!"); if(Kajatipus.getValue() == "magyaros") { /** * Osszes eddigi elem kitorlese a korabbi keresesek miatt */ Kajanev.getItems().clear(); /** * Uj elemekkel valo feltoltes */ Kajanev.getItems().addAll( "Gulyasleves", "Sertesporkolt", "Toltott kaposzta", "Finomfozelek", "Turos csusza" ); } if(Kajatipus.getValue() == "olasz") { Kajanev.getItems().clear(); Kajanev.getItems().addAll( "Pizza", "Lasagne", "Ravioli", "Bolognai spagetti", "Carbonara" ); } if(Kajatipus.getValue() == "kinai") { Kajanev.getItems().clear(); Kajanev.getItems().addAll( "Piritott teszta", "Mezes csirke", "Eros-savanyu leves", "Tavaszi tekercs", "Csirke chow-mein" ); } else if(Kajatipus.getValue() == "indiai") { Kajanev.getItems().clear(); Kajanev.getItems().addAll( "Currys csirke ananasszal", "Chana masala", "Naan", "Lencses-borsos dahl", "Khir" ); } } try { if (event.getSource() == Kajanev) { try { Controller.TipusBetoltes(main.kaja, Kajanev.getValue().toString()); } catch (FileNotFoundException e) { e.printStackTrace(); } } }catch (NullPointerException e) {Controller.semmi();} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "void evoluer()\n {\n int taille = grille.length;\n int nbVivantes = 0;\n for(int i=-1; i<2; i++)\n {\n int xx = ((x+i)+taille)%taille; // si x+i=-1, xx=taille-1. si x+i=taille, xx=0\n ...
[ "0.6410171", "0.6374721", "0.62238365", "0.5981292", "0.5979635", "0.5946523", "0.5918376", "0.59151036", "0.5884118", "0.58803153", "0.58431584", "0.58134884", "0.5782005", "0.57467985", "0.5743871", "0.572622", "0.5719102", "0.5718248", "0.5716932", "0.5688611", "0.5688314"...
0.0
-1
a setter method to inject the dependency.
public void setIocCollector(IocCollector iocCollector) { System.out.println("Inside Setter of Threat Notifier"); this.iocCollector = iocCollector; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Autowired\r\npublic void setDependency1(Dependency1 dependency1) {\r\n\tthis.dependency1=dependency1;\r\n}", "private void inject() {\n }", "private final void inject() {\n }", "protected synchronized void set(Injector injector) {\n injectors.set(injector);\n }", "@Inject\n private void setLo...
[ "0.66713053", "0.6535858", "0.64338374", "0.61127776", "0.6066168", "0.6003899", "0.5976006", "0.59670436", "0.59129554", "0.59114105", "0.5811567", "0.5752095", "0.56357664", "0.55890864", "0.55834913", "0.5573823", "0.5558293", "0.5542033", "0.5478948", "0.5447596", "0.5441...
0.0
-1
tvMessage.setText("Retrofit Delete \n Status = " + t.getMessage());
@Override public void onFailure(Call<GetTransaksi> call, Throwable t) { Toast toast = Toast.makeText(view.getContext(),"Retrofit Delete \n Status = " + t.getMessage(), Toast.LENGTH_SHORT); toast.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n AppUtil.displaySingleActionAlert(mContext, getString(R.string.title), getString(R.string.error_msg) + \"(ERR-635)\", getString(R.string.ok));\n }", "@Override\n ...
[ "0.63420975", "0.6270657", "0.62468886", "0.6195441", "0.6167501", "0.61546266", "0.6131591", "0.6128161", "0.6119015", "0.6116206", "0.6096488", "0.6059433", "0.6057105", "0.6057105", "0.6057105", "0.6057105", "0.6056166", "0.6049775", "0.6029948", "0.60061044", "0.60007", ...
0.7130626
0
Handle player controls based on the active scene
public void receiveTouch(MotionEvent event) { scenes.get(ACTIVE_SCENE).receiveTouch(event); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupPlayerControls() {\n ExtendableScene currScene = SceneManager.getSceneParent();\n\n // Controls for the player\n // Delegated to player controller\n currScene.setOnKeyPressed(PlayerController.get()::onKeyPressed);\n currScene.setOnKeyReleased(PlayerController.ge...
[ "0.68848765", "0.62736726", "0.6020942", "0.60131955", "0.5988939", "0.5983873", "0.59084433", "0.59043145", "0.59019446", "0.5797541", "0.579303", "0.578352", "0.57804793", "0.5772537", "0.57704294", "0.57476556", "0.5745443", "0.5720208", "0.57128656", "0.5708418", "0.56977...
0.0
-1
Update the scene based on the active scene
public void update() { scenes.get(ACTIVE_SCENE).update(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateScene() {\n\t\tthis.background.draw();\n\t\tthis.errorScene.draw();\n\t}", "public void updateScene() {\n\t\t// check whether updates should be stopped\n\t\tif (simulation.isTerminated()) { \n\t\t\ttimeline.stop();\n\t\t\tsimulation.exit();\n\t\t} else {\n\t\t\t// first update the elements coor...
[ "0.7032129", "0.692127", "0.6767121", "0.6748356", "0.6708033", "0.6673996", "0.66396457", "0.65820456", "0.6533712", "0.65147877", "0.6504984", "0.64732546", "0.6428355", "0.64139473", "0.6412805", "0.64085644", "0.6340556", "0.63230467", "0.629031", "0.6289845", "0.6279444"...
0.8510092
0
Draw on the canvas based on the active scene
public void draw(Canvas canvas) { scenes.get(ACTIVE_SCENE).draw(canvas); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw(Canvas canvas);", "public void draw(Canvas canvas);", "public void draw() {\n \n // TODO\n }", "public void draw() {\r\n if(isVisible()) {\r\n Canvas canvas = Canvas.getCanvas();\r\n canvas.draw(this,getColor(),\r\n new Rectangle(\...
[ "0.6807888", "0.6807888", "0.67822945", "0.6774172", "0.67248446", "0.67235327", "0.66948354", "0.66467893", "0.655197", "0.65290874", "0.652328", "0.65123373", "0.65072554", "0.650222", "0.6476331", "0.6472715", "0.6469963", "0.6417259", "0.6404532", "0.63997716", "0.6395485...
0.775167
0
TODO Autogenerated method stub
public static void main(String[] args) { int[][] arr = new int[2][3]; int tmp=10; for (int i = 0; i < 2; i++) { for (int j = 0; j < 3; j++) { arr[i][j]=tmp; tmp+=10; } } for (int i = 0; i < arr.length; i++) { for (int j = 0; j < arr[0].length; j++) { System.out.println(arr[i][j]); } } System.out.println("================="); //동적 배열 가능 int[][] arr2=new int[3][]; arr2[0]=new int[5]; arr2[0]=new int[10]; }
{ "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
remove a escola apenas se ela nao tive nenhum curso vinculado a ela
public Boolean remove(Escola escola){ if(escola.getListaCursos().isEmpty()) return escolas.remove(escola); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removerCarro() {\n\n if (carrosCadastrados.size() > 0) {//verifica se existem carros cadastrados\n listarCarros();\n System.out.println(\"Digite o id do carro que deseja excluir\");\n int idCarro = verifica();\n for (int i = 0; i < carrosCadastrados.si...
[ "0.6818974", "0.6742167", "0.66478264", "0.6600015", "0.65897685", "0.6534608", "0.6480766", "0.6424324", "0.63880247", "0.6368591", "0.63619155", "0.6357261", "0.6336258", "0.63197005", "0.63144547", "0.63108814", "0.63076717", "0.63014853", "0.6231703", "0.6187201", "0.6172...
0.6396759
8
Search fighter by their name and nickname
public List<MmathFighter> searchByName(String name) { String searchQuery = "%" + name + "%"; String[] nameSplit = name.split(" "); ExecutorService exec = Executors.newFixedThreadPool(nameSplit.length + 2); List<Future<List<MmathFighter>>> futures = new ArrayList<>(); futures.add(exec.submit(() -> getDsl().select().from(FIGHTERS) .where(FIGHTERS.NAME.like(searchQuery)) .orderBy(FIGHTERS.SEARCH_RANK) .limit(10) .fetch(recordMapper))); futures.add(exec.submit(() -> getDsl().select().from(FIGHTERS) .where(FIGHTERS.NICKNAME.like(searchQuery)) .orderBy(FIGHTERS.SEARCH_RANK) .limit(10) .fetch(recordMapper))); if (nameSplit.length > 1) { futures.addAll( Stream.of(nameSplit) .map(s -> exec.submit(() -> getDsl().select().from(FIGHTERS) .where(FIGHTERS.NAME.like(s)) .or(FIGHTERS.NICKNAME.like(s)) .orderBy(FIGHTERS.SEARCH_RANK) .limit(10) .fetch(recordMapper) )).collect(Collectors.toList()) ); } return futures.stream() .flatMap(f -> { try { return f.get().stream(); } catch (InterruptedException | ExecutionException e) { return null; } }) .filter(s -> s != null) .filter(distinctByKey(MmathFighter::getSherdogUrl)).limit(10).collect(Collectors.toList()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void searchFindsPlayer() {\n Player jari = stats.search(\"Kurri\");\n assertEquals(jari.getName(), \"Kurri\");\n\n }", "private static ArrayList<FighterModel> getAllFighter() {\n ArrayList<FighterModel> allFighters = new ArrayList<FighterModel>();\n FighterModel f...
[ "0.61700183", "0.5951511", "0.5921212", "0.58432716", "0.5818759", "0.5743566", "0.5732383", "0.5703321", "0.56924367", "0.5658115", "0.5603204", "0.5594282", "0.55904007", "0.55886185", "0.5585807", "0.55398285", "0.5537885", "0.5531697", "0.5522826", "0.5479889", "0.5460852...
0.633374
0
Will give each fighter a search rank based on the organisation they fought on. so a fighter that fought in the UFC will appear first in results as users are most likely to search for them
public boolean setAllFighterSearchRank() { Field<Integer> rank = DSL.choose(EVENTS.ORGANIZATION_ID) .when("https://www.sherdog.com/organizations/Ultimate-Fighting-Championship-UFC-2", 1) .when("https://www.sherdog.com/organizations/Ultimate-Fighting-Championship-UFC-2", 2) .when("https://www.sherdog.com/organizations/Dream-1357", 2) .when("https://www.sherdog.com/organizations/Strikeforce-716", 2) .when("https://www.sherdog.com/organizations/Pride-Fighting-Championships-3", 2) .when("https://www.sherdog.com/organizations/Bellator-MMA-1960", 2) .when("https://www.sherdog.com/organizations/Invicta-Fighting-Championships-4469", 3) .when("https://www.sherdog.com/organizations/One-Championship-3877", 3) .otherwise(99) .as("rank"); SelectLimitPercentStep<Record1<Integer>> subQuery = DSL.selectDistinct(rank).from(FIGHTS) .join(EVENTS).on(FIGHTS.EVENT_ID.eq(EVENTS.SHERDOGURL)) .where(FIGHTS.FIGHTER1_ID.eq(FIGHTERS.SHERDOGURL)) .or(FIGHTS.FIGHTER2_ID.eq(FIGHTERS.SHERDOGURL)) .orderBy(rank) .limit(1); getDsl().update(FIGHTERS) .set(FIGHTERS.SEARCH_RANK, subQuery).execute(); // template.update("UPDATE fighters fi\n" + // "SET search_rank = (\n" + // " SELECT DISTINCT CASE e.organization_id\n" + // " WHEN 'https://www.sherdog.com/organizations/Ultimate-Fighting-Championship-UFC-2'\n" + // " THEN 1\n" + // " WHEN 'https://www.sherdog.com/organizations/Dream-1357'\n" + // " THEN 2\n" + // " WHEN 'https://www.sherdog.com/organizations/Strikeforce-716'\n" + // " THEN 2\n" + // " WHEN 'https://www.sherdog.com/organizations/Pride-Fighting-Championships-3'\n" + // " THEN 2\n" + // " WHEN 'https://www.sherdog.com/organizations/Bellator-MMA-1960'\n" + // " THEN 2\n" + // " WHEN 'https://www.sherdog.com/organizations/Invicta-Fighting-Championships-4469'\n" + // " THEN 3\n" + // " WHEN 'https://www.sherdog.com/organizations/One-Championship-3877'\n" + // " THEN 3\n" + // " ELSE 99\n" + // " END AS rank\n" + // " FROM fights f\n" + // " JOIN events e ON f.event_id = e.sherdogUrl\n" + // " WHERE f.fighter1_id = fi.sherdogUrl OR\n" + // " f.fighter2_id = fi.sherdogUrl\n" + // " ORDER BY rank ASC\n" + // " LIMIT 0, 1)"); getDsl().update(FIGHTERS) .set(FIGHTERS.SEARCH_RANK, DSL.ifnull(99, FIGHTERS.SEARCH_RANK)) .execute(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void rankMatches();", "private int getGlobalRanking() {\n\t\tint globalRanking = 0;\n\t\ttry{\n\t\t\t//Retrieve list of all players and order them by global score\n\t\t\tArrayList<Player> allPlayers = dc.getAllPlayerObjects();\n\t\t\tCollections.sort(allPlayers, new Comparator<Player>(){\n\t\t\t\t\n\t\t\t...
[ "0.5961789", "0.5936443", "0.59349084", "0.58452404", "0.57043314", "0.56707174", "0.5659905", "0.5652047", "0.5652047", "0.55968785", "0.5542598", "0.55268836", "0.54860455", "0.54445636", "0.5405232", "0.5396194", "0.5362578", "0.53162587", "0.5236267", "0.5232717", "0.5196...
0.543083
14
only few files checked here
private void assertLcphMKInstalled(boolean expectedInstalled) throws IOException { assertEquals(expectedInstalled, new File(addonSceneryPath, TestData.lcphMKRevision.getRepoPath() + "/scenery/000_LCPH_FSX.BGL").exists()); assertEquals(expectedInstalled, new File(addonSceneryPath, TestData.lcphMKRevision.getRepoPath() + "/scenery/LCPH_ADEX_XX.BGL").exists()); assertEquals(expectedInstalled, new File(addonSceneryPath, TestData.lcphMKRevision.getRepoPath() + "/scenery/14_LCPH_lines.bgl").exists()); if (expectedInstalled) { assertEquals(868384, new File(addonSceneryPath, TestData.lcphMKRevision.getRepoPath() + "/scenery/14_LCPH_lines.bgl").length()); } assertEquals(expectedInstalled, new File(addonSceneryPath, TestData.lcphMKRevision.getRepoPath() + "/texture/c172_r.bmp").exists()); assertEquals(expectedInstalled, new File(fsxRoot + "/Effects", "Cntrl_LCPH_TaxiGreen.fx").exists()); assertEquals(expectedInstalled, new File(fsxRoot + "/Effects", "fx_LCPH_TaxiGreen.fx").exists()); assertEquals(expectedInstalled, testSceneryJson(TestData.lcphMK.getId())); assertEquals(expectedInstalled, testSceneryCfg("Addon Scenery\\LCPH_MaxKraus")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract boolean copyCheckedFiles();", "public void mo83570c() {\n File[] listFiles;\n File file = new File(this.f60297d);\n if (file.isDirectory() && (listFiles = file.listFiles()) != null && listFiles.length >= this.f60294a) {\n Arrays.sort(listFiles, this.f60295b);\n ...
[ "0.69502723", "0.67620414", "0.6712549", "0.66075665", "0.6596872", "0.64533854", "0.64001346", "0.63539666", "0.63292927", "0.6290614", "0.6287884", "0.6221372", "0.621446", "0.6151252", "0.6145611", "0.6116544", "0.6057969", "0.60374016", "0.5978729", "0.5973192", "0.596754...
0.0
-1
only few files checked here
private void assertEgph25AInstalled(boolean expectedInstalled) throws IOException { assertEquals(expectedInstalled, new File(addonSceneryPath, "EGPH_25A/Scenery/EGPH_ADEX_25A.bgl").exists()); assertEquals(expectedInstalled, testSceneryJson(TestData.egph25A.getId())); assertEquals(expectedInstalled, testSceneryCfg("Addon Scenery\\EGPH_25A")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract boolean copyCheckedFiles();", "public void mo83570c() {\n File[] listFiles;\n File file = new File(this.f60297d);\n if (file.isDirectory() && (listFiles = file.listFiles()) != null && listFiles.length >= this.f60294a) {\n Arrays.sort(listFiles, this.f60295b);\n ...
[ "0.69502723", "0.67620414", "0.6712549", "0.66075665", "0.6596872", "0.64533854", "0.64001346", "0.63539666", "0.63292927", "0.6290614", "0.6287884", "0.6221372", "0.621446", "0.6151252", "0.6145611", "0.6116544", "0.6057969", "0.60374016", "0.5978729", "0.5973192", "0.596754...
0.0
-1
only few files checked here
private void assertLowwInstalled(boolean expectedInstalled) throws IOException { assertEquals(expectedInstalled, new File(addonSceneryPath, "Scenery/LOWW_RS.BGL").exists()); assertEquals(expectedInstalled, new File(addonSceneryPath, "Scenery/LOWW_CVX.BGL").exists()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract boolean copyCheckedFiles();", "public void mo83570c() {\n File[] listFiles;\n File file = new File(this.f60297d);\n if (file.isDirectory() && (listFiles = file.listFiles()) != null && listFiles.length >= this.f60294a) {\n Arrays.sort(listFiles, this.f60295b);\n ...
[ "0.69502723", "0.67620414", "0.6712549", "0.66075665", "0.6596872", "0.64533854", "0.64001346", "0.63539666", "0.63292927", "0.6290614", "0.6287884", "0.6221372", "0.621446", "0.6151252", "0.6145611", "0.6116544", "0.6057969", "0.60374016", "0.5978729", "0.5973192", "0.596754...
0.0
-1
TODO Autogenerated method stub
@Override public void onCloseApplication() { }
{ "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
udpate GPS coordiante edit user by setting its gps coordinate send it to the server
private void editUser(){ getDeviceLocation(); ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser); ServerManager.editUserProfile(userManager,callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateLocationToServer() {\n\n if (Utility.isConnectingToInternet(getActivity())) {\n\n if (mGpsTracker.canGetLocation()) {\n\n if (Utility.ischeckvalidLocation(mGpsTracker)) {\n\n Animation fade1 = AnimationUtils.loadAnimation(getActivity(), R.anim....
[ "0.731418", "0.7227726", "0.65370536", "0.6493094", "0.64558077", "0.6432879", "0.6346276", "0.63450706", "0.6326799", "0.6321272", "0.62579435", "0.6233774", "0.62160075", "0.6175355", "0.6169147", "0.6127006", "0.61234844", "0.6083575", "0.60693634", "0.60464007", "0.604597...
0.6020572
25
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { if(e.getSource()==addname) { AddName(); } if(e.getSource()==viewnames) { ViewNames(); } }
{ "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
Tests if the manager works correctly when the package name for a directory is changed (on system update).
public void testPackageRenamed() throws Exception { mPackageManager.setInstalledPackages( Lists.newArrayList( createProviderPackage("test.package1", "authority1"), createProviderPackage("test.package2", "authority2"), createPackage("test.packageX", "authorityX", false))); MockContactDirectoryProvider provider1 = (MockContactDirectoryProvider) addProvider( MockContactDirectoryProvider.class, "authority1"); MatrixCursor response1 = provider1.createResponseCursor(); addDirectoryRow(response1, "account-name1", "account-type1", "display-name1", 1, Directory.EXPORT_SUPPORT_NONE, Directory.SHORTCUT_SUPPORT_NONE, Directory.PHOTO_SUPPORT_NONE); MockContactDirectoryProvider provider2 = (MockContactDirectoryProvider) addProvider( MockContactDirectoryProvider.class, "authority2"); MatrixCursor response2 = provider2.createResponseCursor(); addDirectoryRow(response2, "account-name2", "account-type2", "display-name2", 2, Directory.EXPORT_SUPPORT_SAME_ACCOUNT_ONLY, Directory.SHORTCUT_SUPPORT_FULL, Directory.PHOTO_SUPPORT_FULL); mDirectoryManager.scanAllPackages(); // At this point the manager has discovered two custom directories. Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); assertEquals(4, cursor.getCount()); cursor.close(); // Pretend to rename the package name of a package on system update. PackageInfo info = mPackageManager.getInstalledPackages(0).get(1); info.packageName = "test.package3"; info.providers[0].packageName = "test.package3"; MatrixCursor response3 = provider2.createResponseCursor(); // Change resource id. addDirectoryRow(response3, "account-name2", "account-type2", "display-name2", 3, Directory.EXPORT_SUPPORT_SAME_ACCOUNT_ONLY, Directory.SHORTCUT_SUPPORT_FULL, Directory.PHOTO_SUPPORT_FULL); // When this happens on reboot, scanAllPackages() is called instead of onPackageChanged() // (as part of ContactsProvider2 initialization). // Accounts won't be affected so false should be passed here. mDirectoryManager.scanAllPackages(false); cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); // We should have columns for default, local_invisible, test.package1, and test.package3. // The row for test.package2 should not remain. assertEquals(4, cursor.getCount()); cursor.moveToPosition(2); assertDirectoryRow(cursor, "test.package1", "authority1", "account-name1", "account-type1", "display-name1", 1, Directory.EXPORT_SUPPORT_NONE, Directory.SHORTCUT_SUPPORT_NONE, Directory.PHOTO_SUPPORT_NONE); cursor.moveToNext(); assertDirectoryRow(cursor, "test.package3", "authority2", "account-name2", "account-type2", "display-name2", 3, Directory.EXPORT_SUPPORT_SAME_ACCOUNT_ONLY, Directory.SHORTCUT_SUPPORT_FULL, Directory.PHOTO_SUPPORT_FULL); cursor.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasUpdateInodeDirectory();", "public boolean checkSetup(){\n return checkSetup(folderName);\n }", "boolean hasDirName();", "private boolean dirNameIsValid(String itemName) {\n return !(itemName.contains(\"resources\")\n || itemName.startsWith(\".\")\n || itemName.equalsIgnoreCase...
[ "0.603348", "0.59088844", "0.5795127", "0.5713334", "0.5697127", "0.56783426", "0.5508772", "0.5506345", "0.5486357", "0.5453936", "0.54489714", "0.53911495", "0.5370787", "0.53502846", "0.5307782", "0.5266367", "0.5240432", "0.52169144", "0.5208514", "0.51811445", "0.5180812...
0.6684453
0
Retrieves a ListingTranslation by listing_id and language
public static void getListingTranslation(int listingId, String language){EtsyService.getService("/listings/"+listingId+"/translations/"+language);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void updateListingTranslation(int listingId, String language){EtsyService.putService(\"/listings/\"+listingId+\"/translations/\"+language);}", "public static void createListingTranslation(int listingId, String language){EtsyService.postService(\"/listings/\"+listingId+\"/translations/\"+language);}...
[ "0.64807165", "0.64648277", "0.6234136", "0.61157763", "0.6096133", "0.6046094", "0.59328073", "0.5907039", "0.5728634", "0.5393953", "0.5363411", "0.5250906", "0.52449054", "0.5224228", "0.5148027", "0.5145186", "0.5121627", "0.5117067", "0.5117025", "0.51055545", "0.5067109...
0.83995616
0
Creates a ListingTranslation by listing_id and language
public static void createListingTranslation(int listingId, String language){EtsyService.postService("/listings/"+listingId+"/translations/"+language);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void updateListingTranslation(int listingId, String language){EtsyService.putService(\"/listings/\"+listingId+\"/translations/\"+language);}", "public static void getListingTranslation(int listingId, String language){EtsyService.getService(\"/listings/\"+listingId+\"/translations/\"+language);}", ...
[ "0.6932571", "0.6793715", "0.615571", "0.6090961", "0.60785973", "0.54112804", "0.52539104", "0.50885034", "0.508652", "0.5065774", "0.49909884", "0.49718472", "0.48956513", "0.48843908", "0.4798249", "0.47764966", "0.47682565", "0.4765825", "0.47387236", "0.47245964", "0.467...
0.8329526
0
Updates a ListingTranslation by listing_id and language
public static void updateListingTranslation(int listingId, String language){EtsyService.putService("/listings/"+listingId+"/translations/"+language);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void createListingTranslation(int listingId, String language){EtsyService.postService(\"/listings/\"+listingId+\"/translations/\"+language);}", "public static void deleteListingTranslation(int listingId, String language){EtsyService.deleteService(\"/listings/\"+listingId+\"/translations/\"+language...
[ "0.66472566", "0.64454085", "0.6391012", "0.5284234", "0.52660733", "0.5035737", "0.5030995", "0.5020094", "0.50062543", "0.50051504", "0.49844867", "0.4885531", "0.48080584", "0.48036182", "0.47590995", "0.47456607", "0.47200558", "0.4704624", "0.46603286", "0.4655669", "0.4...
0.83452165
0
Deletes a ListingTranslation by listing_id and language
public static void deleteListingTranslation(int listingId, String language){EtsyService.deleteService("/listings/"+listingId+"/translations/"+language);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/translations/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteTranslation(@PathVariable Long id) {\n log.debug(\"REST request to delete Translation : {}\", id);\n transla...
[ "0.63212997", "0.6014917", "0.5997717", "0.5991172", "0.5850288", "0.56974", "0.569323", "0.5523386", "0.5413386", "0.5368634", "0.52436686", "0.51881444", "0.5152893", "0.5131586", "0.51097655", "0.50938684", "0.491407", "0.48927814", "0.4871623", "0.48662618", "0.48563758",...
0.8581441
0
Constructor of the CreateEventViewModel factory
CreateEventViewModelFactory() { super(Storage.class, Authenticator.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public\n CreateEvent()\n {}", "public MCalendarEventView()\r\n {\r\n }", "public Event() {\r\n\r\n\t}", "public Event() {\n }", "public Event() {\n }", "public Event() {\n\t}", "public Event() {\n\n }", "public Event(){\n\n }", "public Event() {}", "public CreateEventF...
[ "0.67463696", "0.6736135", "0.6717339", "0.66975784", "0.66975784", "0.66929144", "0.6682167", "0.6555959", "0.65275687", "0.65037555", "0.6398036", "0.63554305", "0.6283833", "0.6158109", "0.6116656", "0.6101152", "0.6005758", "0.59855735", "0.59179825", "0.59179825", "0.591...
0.77363575
0
Method to set the storage to the CreateEventViewModel factory
void setStorage(@NonNull Storage storage) { setValue(0, verifyNotNull(storage)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }", "public CreateEventViewModel(@NonNull Storage storage, @NonNull Authenticator authenticator, @NonNull Database database) {\n verifyNotNull(database);\n\n mStorage = verifyNotNull(storage);\n ...
[ "0.66909224", "0.6180795", "0.56547016", "0.558044", "0.5538272", "0.55297226", "0.54524755", "0.54382163", "0.53660953", "0.53444517", "0.5208788", "0.5144097", "0.5091813", "0.5084846", "0.5046524", "0.5027952", "0.5012107", "0.5007197", "0.49855092", "0.4967429", "0.495346...
0.0
-1
Constructor of the CreateEventViewModel, the factory should be used instead of this
public CreateEventViewModel(@NonNull Storage storage, @NonNull Authenticator authenticator, @NonNull Database database) { verifyNotNull(database); mStorage = verifyNotNull(storage); mUserInfo = authenticator.getCurrentUser(); mEventCollection = database.query("events"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }", "public MCalendarEventView()\r\n {\r\n }", "public Event() {\n }", "public Event() {\n }", "public Event() {\r\n\r\n\t}", "public Event() {\n\t}", "public Event() {\n\n }", "pub...
[ "0.7389883", "0.68094176", "0.66885597", "0.66885597", "0.66493165", "0.6613754", "0.65849316", "0.6578005", "0.6466321", "0.64384586", "0.64172375", "0.6263467", "0.6255667", "0.61362106", "0.60886955", "0.6069762", "0.60571975", "0.603538", "0.60330766", "0.5987789", "0.593...
0.5945505
20
Method to insert an event in the database
public void insertEvent(@NonNull Event event, @NonNull OnEventCreatedCallback callback) { mEventCollection.create(event, res -> { if(res.isSuccessful()) { callback.onSuccess(res.getData()); } else { callback.onFailure(res.getException()); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long insert(EventDetail record);", "@ApiMethod(name = \"insertEvent\")\n public Event insertEvent(Event event) {\n DatastoreService datastoreService = DatastoreServiceFactory.getDatastoreService();\n // TODO: Implement this function\n logger.info(\"Calling insertEvent method\");\n ...
[ "0.77509123", "0.7725532", "0.74551576", "0.74514246", "0.7429709", "0.72428083", "0.71532947", "0.70550674", "0.6996188", "0.6954473", "0.6942996", "0.6869818", "0.6836316", "0.6789766", "0.66911715", "0.6679385", "0.66176295", "0.6569712", "0.6500509", "0.6482048", "0.64351...
0.58603215
95
Method to upload an image on the storage
public void uploadImage(@NonNull Uri imageUri) { mStorage.uploadImage(imageUri, new FirestoreStorage.UrlReadyCallback() { @Override public void onSuccess(String url) { mImageId = url; } @Override public void onFailure() { mImageId = null; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IbeisImage uploadImage(File image) throws UnsupportedImageFileTypeException, IOException, MalformedHttpRequestException,\n UnsuccessfulHttpRequestException;", "private void putImageInStorage() {\n final StorageReference ref = storageReference.child(\"images/\" + java.util.UUID.randomUUID().toSt...
[ "0.7507395", "0.71859187", "0.71181905", "0.7088927", "0.70578", "0.6995481", "0.69205564", "0.68796545", "0.6878664", "0.68665934", "0.6786587", "0.6779659", "0.6741733", "0.6707534", "0.66778404", "0.6667729", "0.6662279", "0.6633091", "0.6621038", "0.66156477", "0.6605106"...
0.62468684
49
Method to get the image id of the event
public String getImageId() { return mImageId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getImageId(){\n \t\treturn imageId;\n \t}", "public int getImageId() {\n return imageId_;\n }", "public int getImageId() {\n return imageId_;\n }", "@Override\n\tpublic Serializable getId() {\n\t\treturn imageId;\n\t}", "public int getImage_id() {\n\t\treturn image_id;\n\t}", "publ...
[ "0.73304677", "0.72650725", "0.7222829", "0.70872706", "0.70419484", "0.701327", "0.700248", "0.6973819", "0.6932624", "0.6914851", "0.6899891", "0.68805915", "0.68356204", "0.66038835", "0.6596947", "0.65922683", "0.65509886", "0.65443933", "0.6475893", "0.64227796", "0.6422...
0.69544137
8
Method to check on a toggle button to add a category to an event
public void setCategoryFromToggleButton(View view, int viewId, EventCategory category) { ToggleButton toggle = (ToggleButton) view.findViewById(viewId); toggle.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if (isChecked) { mCategories.add(category); } else { mCategories.remove(category); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tvalidateCategory(myCategory);\n\t\t\t\t}", "@Override\n public void onClick(View view) {\n\n switch (view.getId()) {\n case R.id.ivHookCat:\n unselectAllCategories();\n findViewById(R.id....
[ "0.59158766", "0.5848255", "0.5791626", "0.5703995", "0.5600151", "0.5578342", "0.55088377", "0.54996365", "0.549576", "0.5474429", "0.54599893", "0.543151", "0.5400812", "0.5398629", "0.5374463", "0.5347243", "0.5327228", "0.53269416", "0.5285853", "0.5284363", "0.52805966",...
0.66072404
0
Method to get the categories of the event
public ArrayList<EventCategory> getCategories() { return mCategories; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<String> getEventCategories() {\n if (eventCategories == null) {\n eventCategories = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();\n eventCategories.setAutoConstruct(true);\n }\n return eventCategories;\n }", "@Override\n\tp...
[ "0.7971091", "0.7199154", "0.687634", "0.65066224", "0.64233416", "0.6416761", "0.640839", "0.6377037", "0.63018316", "0.62646395", "0.62581027", "0.6226714", "0.6204323", "0.6196044", "0.61929756", "0.6095442", "0.6081554", "0.6081554", "0.60754424", "0.6066041", "0.6062652"...
0.7408877
1
Browser setUp = new Browser(); setUp.tearDownBrowser();
@AfterTest public void tearDown() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void tearDown();", "void tearDown();", "@AfterClass\n\tpublic void closeBrowser(){\n\t\tdriver.quit();\n\t}", "public abstract void tearDown();", "public void tearDown() {\n }", "@After\n\tpublic void tearDown() {\n\t\t//quits the browser after everything is done\n\t\tdriver.quit();\n\t}", "@AfterMe...
[ "0.75563914", "0.75563914", "0.74030125", "0.73498994", "0.7303919", "0.7296514", "0.7290785", "0.7284172", "0.7241648", "0.7196832", "0.7171894", "0.7171894", "0.71455544", "0.71443063", "0.713231", "0.70691216", "0.7067676", "0.70600045", "0.70489496", "0.7036286", "0.70362...
0.6716906
48
This test case will login in sales force and Create leads.
@SuppressWarnings("null") @Test public void Login() { WebDriver driver = null; LoginTestData LTD = new LoginTestData(); Browser br = new Browser(); BaseClassMethods bcm = new BaseClassMethods(); // System.setProperty("webdriver.chrome.driver", "C:\\Aniket\\Selenium\\chromedriver_win32\\chromedriver.exe"); br.userLogin(LoginTestData.userName, LoginTestData.password); // driver.manage().timeouts().pageLoadTimeout(10000, TimeUnit.MILLISECONDS); WaitMethods wait = new WaitMethods(); wait.hardWait(); // driver.switchTo().equals(driver.findElement(By.xpath("//div[@class='container']//div[@id='addModify']//following::div[@id='onTripVehicleStoppageDetails']"))); // driver.switchTo().activeElement(); if (driver.findElement(By.xpath("//div[@id='navbarsExample04']")).isDisplayed()){ bcm.highLightElement(driver.findElement(By.xpath("//a//img[@id='companyImage']")), driver); driver.findElement(By.xpath("//a//img[@id='companyImage']")).click(); } driver.switchTo().defaultContent(); bcm.highLightElement(driver.findElement(By.xpath("//div[@id='onTripVehicleStoppageDetails']")), driver); bcm.closePopup(); driver.findElement(By.xpath("//a[text()='Dashboard']")).click(); driver.findElement(By.xpath("//a[text()='Dashboard']")).sendKeys("Executive Live View"); driver.findElement(By.xpath("//div[@class='sweet-alert showSweetAlert visible']")).click(); bcm.highLightElement(driver.findElement(By.xpath("//div[@class='sweet-alert showSweetAlert visible']")), driver); //driver.switchTo().equals(driver.findElement(By.xpath("//div[@class='container']//div[@id='addModify']//following::div[@id='onTripVehicleStoppageDetails']"))); driver.findElement(By.xpath("//div[@class='container']//div[@id='addModify']//following::div[@id='onTripVehicleStoppageDetails']")).click(); //bcm.highLightElement(driver.findElement(By.xpath("//p[text()='Enroute Placement']")), driver); bcm.highLightElement(driver.findElement(By.xpath("//div[@id='onTripVehicleStoppageDetails']")), driver); driver.findElement(By.xpath("//div[@id='onTripVehicleStoppageDetails']//button")).click(); /* driver.navigate().equals(driver.findElement(By.xpath("//div[@id='onTripVehicleStoppageDetails']"))); if (driver.findElement(By.xpath("//div[@id='onTripVehicleStoppageDetails']")).isDisplayed()){ */ bcm.highLightElement(driver.findElement(By.xpath("//div[@id='onTripVehicleStoppageDetails']")), driver); bcm.closePopup(); driver.manage().timeouts().pageLoadTimeout(5000, TimeUnit.MILLISECONDS); /* } */ VerifyHomePage vhp = new VerifyHomePage(); vhp.verifyHomePageHeaders(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(priority = 0)\n public void salesforceLogin() {\n SalesforceLoginPage salesforceLoginObj = new SalesforceLoginPage(driver);\n\n driver.get(\"https://login.salesforce.com\");\n\n salesforceLoginObj.setUsername(\"*********\");//Enter valid username\n salesforceLoginObj.setPasswor...
[ "0.7423093", "0.7337204", "0.71991944", "0.69942063", "0.69244117", "0.68798435", "0.68760735", "0.6746469", "0.6712814", "0.67026055", "0.66981757", "0.6652851", "0.6636837", "0.66307074", "0.65796894", "0.65792507", "0.65747166", "0.6555104", "0.6553788", "0.6538512", "0.65...
0.0
-1
parent: set to 365d
@Test public void inspectBakingPowder() { String colVis = "bakingPowder&chocolate"; assertParentAccepts(colVis, TIMESTAMP_IN_FUTURE); assertParentAccepts(colVis, 1 * DAYS_AGO); assertParentAccepts(colVis, 364 * DAYS_AGO); assertParentRejects(colVis, 365 * DAYS_AGO); assertParentRejects(colVis, 550 * DAYS_AGO); assertParentRejects(colVis, VERY_OLD_TIMESTAMP); // child: overrides to 548d String colQual = "1/bakingPowder/chocolate"; assertChildAccepts(colQual, TIMESTAMP_IN_FUTURE); assertChildAccepts(colQual, 370 * DAYS_AGO); assertChildAccepts(colQual, 547 * DAYS_AGO); assertChildRejects(colQual, 548 * DAYS_AGO); assertChildRejects(colQual, 570 * DAYS_AGO); assertChildRejects(colQual, VERY_OLD_TIMESTAMP); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setParent(DayAccount parent) {\n\t\t\n\t}", "public void setParent(Instance parent) {\r\n \t\tthis.parent = parent;\r\n \t}", "void setParent(Resource parent)\n {\n this.parent = new ResourceRef(parent, coral);\n if(parent != null)\n {\n \tparentId = pare...
[ "0.64570177", "0.5963744", "0.580297", "0.5757485", "0.5740397", "0.5675657", "0.5622306", "0.5600075", "0.5598692", "0.55693656", "0.5516366", "0.5444924", "0.54304284", "0.54120976", "0.54113805", "0.53926516", "0.5377996", "0.53436667", "0.5336222", "0.53312325", "0.532126...
0.0
-1
parent: set to 548d
@Test public void inspectDriedBeans() { String colVis = "driedBeans&chocolate"; assertParentAccepts(colVis, TIMESTAMP_IN_FUTURE); assertParentAccepts(colVis, 80 * DAYS_AGO); assertParentAccepts(colVis, 547 * DAYS_AGO); assertParentRejects(colVis, 548 * DAYS_AGO); assertParentRejects(colVis, 550 * DAYS_AGO); assertParentRejects(colVis, VERY_OLD_TIMESTAMP); // child: overrides to 90d String colQual = "1/driedBeans/chocolate"; assertChildAccepts(colQual, TIMESTAMP_IN_FUTURE); assertChildAccepts(colQual, 7 * DAYS_AGO); assertChildAccepts(colQual, 89 * DAYS_AGO); assertChildRejects(colQual, 90 * DAYS_AGO); assertChildRejects(colQual, 100 * DAYS_AGO); assertChildRejects(colQual, VERY_OLD_TIMESTAMP); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParentCode(long value) {\n this.parentCode = value;\n }", "public void setParentKey(long value) {\n\t\tthis.parentKey = value;\n\t}", "public void setParentOne(int parent)\n\t{\n\t\tparentSetOne = parent;\n\t}", "@Override\n\tpublic void onParentSet() {\n\t\t\n\t}", "public void se...
[ "0.6899656", "0.6600722", "0.6566306", "0.65205646", "0.6514134", "0.64556944", "0.64471775", "0.6429296", "0.63838667", "0.634382", "0.6323414", "0.63117653", "0.62934303", "0.6282258", "0.6266945", "0.62506485", "0.6249801", "0.6243921", "0.62412894", "0.6238391", "0.623175...
0.0
-1