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 |
|---|---|---|---|---|---|---|
The number of items in the response. If you used a QueryFilter in the request, then Count is the number of items returned after the filter was applied, and ScannedCount is the number of matching items before the filter was applied. If you did not use a filter in the request, then Count and ScannedCount are the same. | public QueryResult withCount(Integer count) {
setCount(count);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"int getQueryItemsCount();",
"public int getCount() {\n\n if(data.size()<=0)\n return 1;\n return filteredList.size();\n }",
"public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n... | [
"0.71805423",
"0.71596324",
"0.7072881",
"0.7027425",
"0.6844305",
"0.6844305",
"0.68346703",
"0.6833687",
"0.68130857",
"0.68130857",
"0.68130857",
"0.68130857",
"0.68130857",
"0.68130857",
"0.6795124",
"0.6795124",
"0.6777119",
"0.6777119",
"0.67563623",
"0.6747466",
"0.673... | 0.0 | -1 |
The number of items evaluated, before any QueryFilter is applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Query operation. For more information, see in the Amazon DynamoDB Developer Guide. If you did not use a filter in the request, then ScannedCount is the same as Count. | public void setScannedCount(Integer scannedCount) {
this.scannedCount = scannedCount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getQueryItemsCount();",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"public Integer getScannedCount() {\n return this.scannedCount;\n }",
"public Integer getInterestedInItemsCount();",
"public int getCount() {\n\n if(data.size()<=0)\n return ... | [
"0.6675968",
"0.63245726",
"0.6287815",
"0.62588876",
"0.6166334",
"0.61336535",
"0.6096244",
"0.6009496",
"0.6009496",
"0.6007887",
"0.60042334",
"0.59935766",
"0.596645",
"0.596645",
"0.59595543",
"0.59486574",
"0.594203",
"0.5936954",
"0.59293884",
"0.5886051",
"0.5861956"... | 0.5649961 | 65 |
The number of items evaluated, before any QueryFilter is applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Query operation. For more information, see in the Amazon DynamoDB Developer Guide. If you did not use a filter in the request, then ScannedCount is the same as Count. | public Integer getScannedCount() {
return this.scannedCount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getQueryItemsCount();",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"public Integer getInterestedInItemsCount();",
"public int getCount() {\n\n if(data.size()<=0)\n return 1;\n return filteredList.size();\n }",
"default int countItems() {\n ... | [
"0.6677869",
"0.63264257",
"0.6260516",
"0.6167347",
"0.6134577",
"0.609804",
"0.6010811",
"0.6010811",
"0.60084325",
"0.60052973",
"0.5994465",
"0.5968015",
"0.5968015",
"0.59613425",
"0.5949574",
"0.5943238",
"0.59379005",
"0.5930748",
"0.588754",
"0.5863295",
"0.5857446",
... | 0.6288652 | 2 |
The number of items evaluated, before any QueryFilter is applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Query operation. For more information, see in the Amazon DynamoDB Developer Guide. If you did not use a filter in the request, then ScannedCount is the same as Count. | public QueryResult withScannedCount(Integer scannedCount) {
setScannedCount(scannedCount);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getQueryItemsCount();",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"public Integer getScannedCount() {\n return this.scannedCount;\n }",
"public Integer getInterestedInItemsCount();",
"public int getCount() {\n\n if(data.size()<=0)\n return ... | [
"0.66738385",
"0.63252544",
"0.62892723",
"0.6257228",
"0.61659807",
"0.61325866",
"0.6097148",
"0.600892",
"0.600892",
"0.6008719",
"0.60046846",
"0.5994991",
"0.59644264",
"0.59644264",
"0.5959795",
"0.59501046",
"0.5941313",
"0.5938377",
"0.5928722",
"0.5885192",
"0.586231... | 0.5609374 | 73 |
The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request. If LastEvaluatedKey is empty, then the "last page" of results has been processed and there is no more data to be retrieved. If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty. | public java.util.Map<String, AttributeValue> getLastEvaluatedKey() {
return lastEvaluatedKey;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Key getLastEvaluatedKey() {\n return lastEvaluatedKey;\n }",
"public QueryResult withLastEvaluatedKey(java.util.Map<String, AttributeValue> lastEvaluatedKey) {\n setLastEvaluatedKey(lastEvaluatedKey);\n return this;\n }",
"public void setLastEvaluatedKey(Key lastEvaluatedKey) ... | [
"0.71272945",
"0.6034439",
"0.6004445",
"0.59983367",
"0.57222027",
"0.55470073",
"0.52206427",
"0.5194026",
"0.5188628",
"0.51037186",
"0.5089239",
"0.5086243",
"0.5029037",
"0.50186795",
"0.50163263",
"0.50109446",
"0.49890435",
"0.49786136",
"0.49558213",
"0.4945038",
"0.4... | 0.65007627 | 1 |
The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request. If LastEvaluatedKey is empty, then the "last page" of results has been processed and there is no more data to be retrieved. If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty. | public void setLastEvaluatedKey(java.util.Map<String, AttributeValue> lastEvaluatedKey) {
this.lastEvaluatedKey = lastEvaluatedKey;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Key getLastEvaluatedKey() {\n return lastEvaluatedKey;\n }",
"public java.util.Map<String, AttributeValue> getLastEvaluatedKey() {\n return lastEvaluatedKey;\n }",
"public QueryResult withLastEvaluatedKey(java.util.Map<String, AttributeValue> lastEvaluatedKey) {\n setLastEvalu... | [
"0.71283793",
"0.65016323",
"0.6036742",
"0.6006843",
"0.572464",
"0.5548015",
"0.5220132",
"0.51952934",
"0.5189996",
"0.51036644",
"0.50890976",
"0.5087059",
"0.5029417",
"0.5018294",
"0.5015445",
"0.50106496",
"0.49887806",
"0.4978105",
"0.49558768",
"0.49441788",
"0.49403... | 0.6000506 | 4 |
The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request. If LastEvaluatedKey is empty, then the "last page" of results has been processed and there is no more data to be retrieved. If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty. | public QueryResult withLastEvaluatedKey(java.util.Map<String, AttributeValue> lastEvaluatedKey) {
setLastEvaluatedKey(lastEvaluatedKey);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Key getLastEvaluatedKey() {\n return lastEvaluatedKey;\n }",
"public java.util.Map<String, AttributeValue> getLastEvaluatedKey() {\n return lastEvaluatedKey;\n }",
"public void setLastEvaluatedKey(Key lastEvaluatedKey) {\n this.lastEvaluatedKey = lastEvaluatedKey;\n }",
"... | [
"0.71269256",
"0.6500424",
"0.6004712",
"0.599844",
"0.5723062",
"0.5547813",
"0.5220023",
"0.5195847",
"0.51904905",
"0.51023",
"0.50877535",
"0.5086048",
"0.50289637",
"0.501675",
"0.5014747",
"0.50100183",
"0.49879628",
"0.4978963",
"0.49556214",
"0.4942809",
"0.49391857",... | 0.6035279 | 2 |
Add a single LastEvaluatedKey entry | public QueryResult addLastEvaluatedKeyEntry(String key, AttributeValue value) {
if (null == this.lastEvaluatedKey) {
this.lastEvaluatedKey = new java.util.HashMap<String, AttributeValue>();
}
if (this.lastEvaluatedKey.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.lastEvaluatedKey.put(key, value);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void add(String key);",
"void addEntry(String key, Object value) {\n this.storageInputMap.put(key, value);\n }",
"void addEntry(K key, V value);",
"private void addToHashmap(String key, Long timestamp){\r\n\t\tkeyHashMap.putIfAbsent(key, new PriorityQueue<Long>());\r\n\t\tsynchronized(keyHashMap.ge... | [
"0.655061",
"0.61960715",
"0.617376",
"0.60423166",
"0.6022468",
"0.59098995",
"0.59084475",
"0.5908185",
"0.58994275",
"0.5854517",
"0.58449644",
"0.5834146",
"0.5833052",
"0.58321524",
"0.5825434",
"0.58215",
"0.580249",
"0.57851756",
"0.5780448",
"0.57468385",
"0.5738522",... | 0.74571884 | 0 |
Removes all the entries added into LastEvaluatedKey. | public QueryResult clearLastEvaluatedKeyEntries() {
this.lastEvaluatedKey = null;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public synchronized void clear() {\n this.keyMap.clear();\n super.clear();\n }",
"public void removeAllEntries() {\n }",
"public void clear() {\n helpers.clear();\n islandKeysCache.clear();\n setDirty();\n }",
"public void clear() {\r\n\t\tentryMap.c... | [
"0.6567125",
"0.6555131",
"0.649965",
"0.64335114",
"0.6423073",
"0.64050955",
"0.6308937",
"0.62908715",
"0.6288613",
"0.6227735",
"0.62045413",
"0.6197892",
"0.61712325",
"0.60853046",
"0.6033511",
"0.60252196",
"0.60051405",
"0.599212",
"0.5990246",
"0.59899646",
"0.598378... | 0.76102066 | 0 |
The capacity units consumed by the Query operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide. | public void setConsumedCapacity(ConsumedCapacity consumedCapacity) {
this.consumedCapacity = consumedCapacity;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public QueryResult withConsumedCapacityUnits(Double consumedCapacityUnits) {\n this.consumedCapacityUnits = consumedCapacityUnits;\n return this;\n }",
"public Double getConsumedCapacityUnits() {\n return consumedCapacityUnits;\n }",
"public ConsumedCapacity getConsumedCapacity() {\n... | [
"0.7150399",
"0.6958376",
"0.6779525",
"0.66880983",
"0.6100307",
"0.6045108",
"0.5944097",
"0.5900117",
"0.57924443",
"0.5730302",
"0.5672093",
"0.56610173",
"0.56171674",
"0.556588",
"0.5517669",
"0.5480953",
"0.5462892",
"0.54582286",
"0.5452871",
"0.54522777",
"0.54434115... | 0.5927239 | 7 |
The capacity units consumed by the Query operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide. | public ConsumedCapacity getConsumedCapacity() {
return this.consumedCapacity;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public QueryResult withConsumedCapacityUnits(Double consumedCapacityUnits) {\n this.consumedCapacityUnits = consumedCapacityUnits;\n return this;\n }",
"public Double getConsumedCapacityUnits() {\n return consumedCapacityUnits;\n }",
"public QueryResult withConsumedCapacity(ConsumedC... | [
"0.71519834",
"0.69590825",
"0.6689307",
"0.6101918",
"0.60454667",
"0.5944147",
"0.5928323",
"0.59004253",
"0.57934815",
"0.57314724",
"0.56723034",
"0.56610286",
"0.56170666",
"0.556556",
"0.5517838",
"0.54810584",
"0.5462468",
"0.5458701",
"0.54524386",
"0.5452403",
"0.544... | 0.677871 | 2 |
The capacity units consumed by the Query operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide. | public QueryResult withConsumedCapacity(ConsumedCapacity consumedCapacity) {
setConsumedCapacity(consumedCapacity);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public QueryResult withConsumedCapacityUnits(Double consumedCapacityUnits) {\n this.consumedCapacityUnits = consumedCapacityUnits;\n return this;\n }",
"public Double getConsumedCapacityUnits() {\n return consumedCapacityUnits;\n }",
"public ConsumedCapacity getConsumedCapacity() {\n... | [
"0.7151584",
"0.6959021",
"0.67784953",
"0.6100724",
"0.60452884",
"0.5944651",
"0.59270096",
"0.590033",
"0.57934546",
"0.5730668",
"0.5673126",
"0.56612796",
"0.5617368",
"0.5566955",
"0.55194306",
"0.5481318",
"0.5463679",
"0.5459083",
"0.5453509",
"0.54527193",
"0.5444941... | 0.66892135 | 3 |
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. | @Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getItems() != null)
sb.append("Items: ").append(getItems()).append(",");
if (getCount() != null)
sb.append("Count: ").append(getCount()).append(",");
if (getScannedCount() != null)
sb.append("ScannedCount: ").append(getScannedCount()).append(",");
if (getLastEvaluatedKey() != null)
sb.append("LastEvaluatedKey: ").append(getLastEvaluatedKey()).append(",");
if (getConsumedCapacity() != null)
sb.append("ConsumedCapacity: ").append(getConsumedCapacity());
sb.append("}");
return sb.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() { return stringify(this, true); }",
"@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t... | [
"0.80977",
"0.8073765",
"0.8047485",
"0.8047485",
"0.8024439",
"0.7973667",
"0.79377216",
"0.79286385",
"0.7909222",
"0.78946733",
"0.7782279",
"0.7782258",
"0.7767878",
"0.7767108",
"0.7767108",
"0.7767108",
"0.7755486",
"0.7727217",
"0.772151",
"0.767455",
"0.767455",
"0.... | 0.0 | -1 |
Creates new form CaptureGUI | public CaptureGUI() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void createAndShowGUI() {\n Font f = new Font(\"微软雅黑\", 0, 12);\n String names[] = {\"Label\", \"CheckBox\", \"PopupMenu\", \"MenuItem\", \"CheckBoxMenuItem\",\n \"JRadioButtonMenuItem\", \"ComboBox\", \"Button\", \"Tree\", \"ScrollPane\",\n \"TabbedPane\"... | [
"0.741197",
"0.6799958",
"0.6658467",
"0.65321785",
"0.65187716",
"0.6499814",
"0.6486904",
"0.6475955",
"0.6458379",
"0.64403224",
"0.641343",
"0.6390351",
"0.63867855",
"0.6294935",
"0.6274045",
"0.62253845",
"0.62235355",
"0.6219285",
"0.62183267",
"0.6207284",
"0.61993116... | 0.77643245 | 0 |
Create the GUI and show it. For thread safety, this method should be invoked from the eventdispatching thread. | private static void createAndShowGUI() {
Font f = new Font("微软雅黑", 0, 12);
String names[] = {"Label", "CheckBox", "PopupMenu", "MenuItem", "CheckBoxMenuItem",
"JRadioButtonMenuItem", "ComboBox", "Button", "Tree", "ScrollPane",
"TabbedPane", "EditorPane", "TitledBorder", "Menu", "TextArea",
"OptionPane", "MenuBar", "ToolBar", "ToggleButton", "ToolTip",
"ProgressBar", "TableHeader", "Panel", "List", "ColorChooser",
"PasswordField", "TextField", "Table", "Label", "Viewport",
"RadioButtonMenuItem", "RadioButton", "DesktopPane", "InternalFrame"
};
for (String item : names) {
UIManager.put(item + ".font", f);
}
//Create and set up the window.
JFrame frame = new JFrame("AutoCapturePackagesTool");
String src = "/optimizationprogram/GUICode/u5.png";
Image image = null;
try {
image = ImageIO.read(new CaptureGUI().getClass().getResource(src));
} catch (IOException e) {
e.printStackTrace();
}
frame.setIconImage(image);
//frame.setIconImage(Toolkit.getDefaultToolkit().getImage(src));
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setResizable(false);
frame.setLocation(Toolkit.getDefaultToolkit().getScreenSize().width / 2 - 520 / 2,
Toolkit.getDefaultToolkit().getScreenSize().height / 2 - 420 / 2);
frame.getContentPane().add(new CaptureGUI());
//Display the window.
frame.pack();
frame.setVisible(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \n }",
"public void createAndShowGUI() {\n\n setTitle(title);\n // Sets what to do when frame closes\n ... | [
"0.81520283",
"0.7947462",
"0.79015243",
"0.7878523",
"0.78512394",
"0.784224",
"0.78023785",
"0.7704613",
"0.76807725",
"0.76124537",
"0.7603656",
"0.75724936",
"0.75516605",
"0.7547908",
"0.7540447",
"0.75385684",
"0.7481731",
"0.74464834",
"0.7414961",
"0.74118924",
"0.740... | 0.72163725 | 33 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jPanel2 = new JPanel();
jPanel1 = new JPanel();
jSeparator1 = new JSeparator();
jSeparator2 = new JSeparator();
jLabel1 = new JLabel();
jPanel3 = new JPanel();
label_device = new JLabel();
label_appType = new JLabel();
label_network = new JLabel();
comboBox_network = new JComboBox<>();
label_inputType = new JLabel();
textField_inputSource = new JTextField();
label_outputFolder = new JLabel();
comboBox_inputType = new JComboBox<>();
textField_outputFolder = new JTextField();
comboBox_appType = new JComboBox<>();
comboBox_device = new JComboBox<>();
button_chooseFile = new JButton();
fileChooser_inputFile = new JFileChooser();
button_chooseFolder = new JButton();
fileChooser_outputFolder = new JFileChooser();
button_startUp = new JButton();
button_continue = new JButton();
button_suspend = new JButton();
label_inputSource = new JLabel();
jPanel4 = new JPanel();
jPanel5 = new JPanel();
jSeparator3 = new JSeparator();
jSeparator4 = new JSeparator();
jLabel6 = new JLabel();
jPanel6 = new JPanel();
jScrollPane1 = new JScrollPane();
textArea_log = new JTextArea();
jLabel8 = new JLabel();
label_capturedNum = new JLabel();
jLabel12 = new JLabel();
label_failedNum = new JLabel();
jLabel14 = new JLabel();
label_pkgNum = new JLabel();
jsb = new JScrollBar(JScrollBar.VERTICAL, 0, 1, 0, 100);
setBackground(new Color(243, 244, 246));
setMaximumSize(new Dimension(520, 420));
setMinimumSize(new Dimension(520, 420));
setPreferredSize(new Dimension(520, 420));
setRequestFocusEnabled(false);
setLayout(null);
jPanel2.setBackground(new Color(243, 244, 246));
jPanel2.setMaximumSize(new Dimension(520, 210));
jPanel2.setMinimumSize(new Dimension(520, 210));
jPanel2.setLayout(null);
jPanel1.setBackground(new Color(243, 244, 246));
jPanel1.setMaximumSize(new Dimension(520, 20));
jPanel1.setMinimumSize(new Dimension(520, 20));
jPanel1.setPreferredSize(new Dimension(520, 20));
jSeparator1.setForeground(new Color(18, 155, 246));
jSeparator2.setForeground(new Color(18, 155, 246));
jLabel1.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
jLabel1.setForeground(new Color(15, 155, 246));
jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
jLabel1.setText("参数配置");
jLabel1.setPreferredSize(new Dimension(50, 15));
GroupLayout jPanel1Layout = new GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jSeparator1, GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel1, GroupLayout.PREFERRED_SIZE, 68, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jSeparator2, GroupLayout.PREFERRED_SIZE, 212, GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
.addComponent(jLabel1, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
.addComponent(jSeparator2, GroupLayout.PREFERRED_SIZE, 8, GroupLayout.PREFERRED_SIZE)
.addComponent(jSeparator1, GroupLayout.PREFERRED_SIZE, 8, GroupLayout.PREFERRED_SIZE))))
.addContainerGap())
);
jPanel2.add(jPanel1);
jPanel1.setBounds(0, 6, 520, 20);
jPanel3.setBackground(new Color(255, 255, 255));
jPanel3.setMaximumSize(new Dimension(500, 180));
jPanel3.setMinimumSize(new Dimension(500, 180));
jPanel3.setPreferredSize(new Dimension(500, 180));
jPanel3.setLayout(null);
label_device.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
label_device.setIcon(new ImageIcon(getClass().getResource("/optimizationprogram/GUICode/u53.png"))); // NOI18N
label_device.setText("设备名称:");
label_device.setMaximumSize(new Dimension(70, 20));
label_device.setMinimumSize(new Dimension(70, 20));
label_device.setName("label_device"); // NOI18N
label_device.setPreferredSize(new Dimension(70, 20));
jPanel3.add(label_device);
label_device.setBounds(20, 10, 70, 20);
label_device.getAccessibleContext().setAccessibleDescription("");
label_appType.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
label_appType.setIcon(new ImageIcon(getClass().getResource("/optimizationprogram/GUICode/u53.png"))); // NOI18N
label_appType.setText("应用类型:");
label_appType.setMaximumSize(new Dimension(70, 20));
label_appType.setMinimumSize(new Dimension(70, 20));
label_appType.setPreferredSize(new Dimension(70, 20));
jPanel3.add(label_appType);
label_appType.setBounds(260, 10, 70, 20);
label_network.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
label_network.setIcon(new ImageIcon(getClass().getResource("/optimizationprogram/GUICode/u53.png"))); // NOI18N
label_network.setText("网卡驱动:");
label_network.setMaximumSize(new Dimension(70, 20));
label_network.setMinimumSize(new Dimension(70, 20));
label_network.setPreferredSize(new Dimension(70, 20));
jPanel3.add(label_network);
label_network.setBounds(20, 50, 70, 20);
/*
*设置网卡驱动下拉框
*/
new getNetworkDriver().getComboBoxValue();
intArray = new Integer[netWorkComboValue.length];
for (int i = 0; i < netWorkComboValue.length; i++) {
intArray[i] = new Integer(i);
}
comboBox_network = new JComboBox(intArray);
renderer = new ComboBoxRenderer(netWorkComboValue);
renderer.setPreferredSize(new Dimension(150, 20));
comboBox_network.setRenderer(renderer);
comboBox_network.setMaximumRowCount(3);
comboBox_network.setFont(new Font("微软雅黑", 0, 12));
comboBox_network.setForeground(new Color(153, 153, 153));
comboBox_network.setUI((ComboBoxUI) MyComboBoxUI.createUI(comboBox_network));
comboBox_network.setBackground(new Color(248, 248, 248));
comboBox_network.setBorder(null);
comboBox_network.setMaximumSize(new Dimension(150, 20));
comboBox_network.setMinimumSize(new Dimension(150, 20));
comboBox_network.setPreferredSize(new Dimension(150, 20));
jPanel3.add(comboBox_network);
comboBox_network.setBounds(90, 50, 150, 20);
comboBox_network.addActionListener(this);
comboBox_network.addItemListener(this);
label_inputType.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
label_inputType.setIcon(new ImageIcon(getClass().getResource("/optimizationprogram/GUICode/u53.png"))); // NOI18N
label_inputType.setText("输入类型:");
label_inputType.setMaximumSize(new Dimension(70, 20));
label_inputType.setMinimumSize(new Dimension(70, 20));
label_inputType.setPreferredSize(new Dimension(70, 20));
jPanel3.add(label_inputType);
label_inputType.setBounds(260, 50, 70, 20);
textField_inputSource.setBackground(new Color(248, 248, 248));
textField_inputSource.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
textField_inputSource.setForeground(new Color(153, 153, 153));
textField_inputSource.setEditable(false);
textField_inputSource.setText("[请选择数据源]");
textField_inputSource.setBorder(null);
textField_inputSource.setMaximumSize(new Dimension(220, 20));
textField_inputSource.setMinimumSize(new Dimension(220, 20));
textField_inputSource.setPreferredSize(new Dimension(220, 20));
jPanel3.add(textField_inputSource);
textField_inputSource.setBounds(90, 90, 130, 20);
label_outputFolder.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
label_outputFolder.setIcon(new ImageIcon(getClass().getResource("/optimizationprogram/GUICode/u53.png"))); // NOI18N
label_outputFolder.setText("输出路径:");
label_outputFolder.setMaximumSize(new Dimension(70, 20));
label_outputFolder.setMinimumSize(new Dimension(70, 20));
label_outputFolder.setPreferredSize(new Dimension(70, 20));
jPanel3.add(label_outputFolder);
label_outputFolder.setBounds(260, 90, 70, 20);
comboBox_inputType.setMaximumRowCount(3);
comboBox_inputType.setFont(new Font("微软雅黑", 0, 12));
comboBox_inputType.setForeground(new Color(153, 153, 153));
comboBox_inputType.setUI((ComboBoxUI) MyComboBoxUI.createUI(comboBox_inputType));
comboBox_inputType.setBackground(new Color(248, 248, 248));
comboBox_inputType.setModel(new DefaultComboBoxModel<>(new String[]{"文件(*.txt)"}));
comboBox_inputType.setBorder(null);
comboBox_inputType.setMaximumSize(new Dimension(150, 20));
comboBox_inputType.setMinimumSize(new Dimension(150, 20));
comboBox_inputType.setPreferredSize(new Dimension(150, 20));
jPanel3.add(comboBox_inputType);
comboBox_inputType.setBounds(330, 50, 150, 20);
textField_outputFolder.setBackground(new Color(248, 248, 248));
textField_outputFolder.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
textField_outputFolder.setForeground(new Color(153, 153, 153));
textField_outputFolder.setEditable(false);
textField_outputFolder.setText("/请选择文件输出目录/");
textField_outputFolder.setBorder(null);
textField_outputFolder.setMaximumSize(new Dimension(150, 20));
textField_outputFolder.setMinimumSize(new Dimension(150, 20));
textField_outputFolder.setPreferredSize(new Dimension(150, 20));
jPanel3.add(textField_outputFolder);
textField_outputFolder.setBounds(330, 90, 130, 20);
/*
*设置应用类型下拉
*/
appTypeComboValue = new String[]{"华为应用市场", "小米应用商店"};
intArray = new Integer[appTypeComboValue.length];
for (int i = 0; i < appTypeComboValue.length; i++) {
intArray[i] = new Integer(i);
}
comboBox_appType = new JComboBox(intArray);
renderer = new ComboBoxRenderer(appTypeComboValue);
renderer.setPreferredSize(new Dimension(150, 20));
comboBox_appType.setMaximumRowCount(3);
comboBox_appType.setRenderer(renderer);
comboBox_appType.setFont(new Font("微软雅黑", 0, 12));
comboBox_appType.setForeground(new Color(153, 153, 153));
comboBox_appType.setUI((ComboBoxUI) MyComboBoxUI.createUI(comboBox_appType));
comboBox_appType.setBackground(new Color(248, 248, 248));
comboBox_appType.setBorder(null);
comboBox_appType.setMaximumSize(new Dimension(150, 20));
comboBox_appType.setMinimumSize(new Dimension(150, 20));
comboBox_appType.setPreferredSize(new Dimension(150, 20));
jPanel3.add(comboBox_appType);
comboBox_appType.setBounds(330, 10, 150, 20);
comboBox_appType.addActionListener(this);
comboBox_appType.addItemListener(this);
/*
* 设置设备名称下拉框
*/
new getDeviceName().getComboBoxValue();
intArray = new Integer[deviceNameComboValue.length];
for (int i = 0; i < deviceNameComboValue.length; i++) {
intArray[i] = new Integer(i);
}
comboBox_device = new JComboBox(intArray);
renderer = new ComboBoxRenderer(deviceNameComboValue);
renderer.setPreferredSize(new Dimension(150, 20));
comboBox_device.setRenderer(renderer);
comboBox_device.setMaximumRowCount(3);
comboBox_device.setFont(new Font("微软雅黑", 0, 12));
comboBox_device.setForeground(new Color(153, 153, 153));
comboBox_device.setUI((ComboBoxUI) MyComboBoxUI.createUI(comboBox_device));
comboBox_device.setBackground(new Color(248, 248, 248));
comboBox_device.setBorder(null);
comboBox_device.setMaximumSize(new Dimension(150, 20));
comboBox_device.setMinimumSize(new Dimension(150, 20));
comboBox_device.setPreferredSize(new Dimension(150, 20));
jPanel3.add(comboBox_device);
comboBox_device.setBounds(90, 10, 150, 20);
comboBox_device.addActionListener(this);
comboBox_device.addItemListener(this);
button_chooseFile.setHorizontalAlignment(SwingConstants.RIGHT);
button_chooseFile.setIcon(new ImageIcon(getClass().getResource("/optimizationprogram/GUICode/u118.png"))); // NOI18N
button_chooseFile.setBorder(null);
button_chooseFile.setBorderPainted(false);
button_chooseFile.setContentAreaFilled(false);
button_chooseFile.setHorizontalTextPosition(SwingConstants.CENTER);
button_chooseFile.setMaximumSize(new Dimension(20, 20));
button_chooseFile.setMinimumSize(new Dimension(20, 20));
button_chooseFile.setPreferredSize(new Dimension(20, 20));
jPanel3.add(button_chooseFile);
button_chooseFile.setBounds(220, 90, 20, 20);
button_chooseFile.addActionListener(this);
fileChooser_inputFile.setFileSelectionMode(JFileChooser.FILES_ONLY);
fileChooser_inputFile.setFont(new Font("微软雅黑", 0, 12));
button_chooseFolder.setHorizontalAlignment(SwingConstants.RIGHT);
button_chooseFolder.setIcon(new ImageIcon(getClass().getResource("/optimizationprogram/GUICode/u118.png"))); // NOI18N
button_chooseFolder.setBorder(null);
button_chooseFolder.setBorderPainted(false);
button_chooseFolder.setContentAreaFilled(false);
button_chooseFolder.setHorizontalTextPosition(SwingConstants.CENTER);
button_chooseFolder.setMaximumSize(new Dimension(20, 20));
button_chooseFolder.setMinimumSize(new Dimension(20, 20));
button_chooseFolder.setPreferredSize(new Dimension(20, 20));
jPanel3.add(button_chooseFolder);
button_chooseFolder.setBounds(460, 90, 20, 20);
button_chooseFolder.addActionListener(this);
fileChooser_outputFolder.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
fileChooser_outputFolder.setFont(new Font("微软雅黑", 0, 12));
button_startUp.setUI(new MyClassicButtonUI());
button_startUp.setBackground(new Color(18, 155, 246));
button_startUp.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
button_startUp.setForeground(new Color(255, 255, 255));
button_startUp.setIcon(new ImageIcon(getClass().getResource("/optimizationprogram/GUICode/u61.png")));
button_startUp.setText("开 始");
button_startUp.setBorder(null);
button_startUp.setBorderPainted(false);
button_startUp.setContentAreaFilled(false);
button_startUp.setHorizontalTextPosition(SwingConstants.CENTER);
button_startUp.setMaximumSize(new Dimension(60, 26));
button_startUp.setMinimumSize(new Dimension(60, 26));
button_startUp.setPreferredSize(new Dimension(60, 26));
jPanel3.add(button_startUp);
button_startUp.setBounds(80, 130, 60, 26);
button_startUp.addActionListener(this);
button_continue.setUI(new MyClassicButtonUI());
button_continue.setEnabled(false);
button_continue.setBackground(new Color(16, 194, 92));
button_continue.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
button_continue.setForeground(new Color(255, 255, 255));
button_continue.setIcon(new ImageIcon(getClass().getResource("/optimizationprogram/GUICode/u63.png")));
button_continue.setText("继 续");
button_continue.setBorder(null);
button_continue.setBorderPainted(false);
button_continue.setContentAreaFilled(false);
button_continue.setHorizontalTextPosition(SwingConstants.CENTER);
button_continue.setMaximumSize(new Dimension(60, 26));
button_continue.setMinimumSize(new Dimension(60, 26));
button_continue.setPreferredSize(new Dimension(60, 26));
jPanel3.add(button_continue);
button_continue.setBounds(220, 130, 60, 26);
button_continue.addActionListener(this);
button_suspend.setUI(new MyClassicButtonUI());
button_suspend.setEnabled(false);
button_suspend.setBackground(new Color(204, 0, 0));
button_suspend.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
button_suspend.setForeground(new Color(255, 255, 255));
button_suspend.setIcon(new ImageIcon(getClass().getResource("/optimizationprogram/GUICode/u65.png")));
button_suspend.setText("暂 停");
button_suspend.setBorder(null);
button_suspend.setBorderPainted(false);
button_suspend.setContentAreaFilled(false);
button_suspend.setHorizontalTextPosition(SwingConstants.CENTER);
button_suspend.setMaximumSize(new Dimension(60, 26));
button_suspend.setMinimumSize(new Dimension(60, 26));
button_suspend.setPreferredSize(new Dimension(60, 26));
jPanel3.add(button_suspend);
button_suspend.setBounds(360, 130, 60, 26);
button_suspend.addActionListener(this);
label_inputSource.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
label_inputSource.setIcon(new ImageIcon(getClass().getResource("/optimizationprogram/GUICode/u53.png"))); // NOI18N
label_inputSource.setText("输入来源:");
label_inputSource.setMaximumSize(new Dimension(70, 20));
label_inputSource.setMinimumSize(new Dimension(70, 20));
label_inputSource.setPreferredSize(new Dimension(70, 20));
jPanel3.add(label_inputSource);
label_inputSource.setBounds(20, 90, 70, 20);
jPanel2.add(jPanel3);
jPanel3.setBounds(10, 30, 500, 170);
add(jPanel2);
jPanel2.setBounds(0, 0, 520, 200);
jPanel4.setBackground(new Color(243, 244, 246));
jPanel4.setLayout(null);
jPanel5.setBackground(new Color(243, 244, 246));
jPanel5.setMaximumSize(new Dimension(520, 20));
jPanel5.setPreferredSize(new Dimension(520, 20));
jSeparator3.setForeground(new Color(18, 155, 246));
jSeparator4.setForeground(new Color(18, 155, 246));
jLabel6.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
jLabel6.setForeground(new Color(15, 155, 246));
jLabel6.setHorizontalAlignment(SwingConstants.CENTER);
jLabel6.setText("运行监控");
jLabel6.setPreferredSize(new Dimension(50, 15));
GroupLayout jPanel5Layout = new GroupLayout(jPanel5);
jPanel5.setLayout(jPanel5Layout);
jPanel5Layout.setHorizontalGroup(
jPanel5Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jSeparator3, GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel6, GroupLayout.PREFERRED_SIZE, 68, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jSeparator4, GroupLayout.PREFERRED_SIZE, 212, GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
jPanel5Layout.setVerticalGroup(
jPanel5Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
.addGroup(jPanel5Layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
.addComponent(jLabel6, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel5Layout.createSequentialGroup()
.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel5Layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
.addComponent(jSeparator4, GroupLayout.PREFERRED_SIZE, 8, GroupLayout.PREFERRED_SIZE)
.addComponent(jSeparator3, GroupLayout.PREFERRED_SIZE, 8, GroupLayout.PREFERRED_SIZE))))
.addContainerGap())
);
jPanel4.add(jPanel5);
jPanel5.setBounds(0, 10, 520, 20);
jPanel6.setBackground(new Color(255, 255, 255));
jPanel6.setMaximumSize(new Dimension(500, 170));
jPanel6.setPreferredSize(new Dimension(500, 170));
jPanel6.setLayout(null);
jScrollPane1.setBorder(BorderFactory.createLineBorder(new Color(243, 244, 246)));
jScrollPane1.setMaximumSize(new Dimension(480, 115));
jScrollPane1.setMinimumSize(new Dimension(480, 115));
jScrollPane1.setPreferredSize(new Dimension(480, 115));
jsb.setBorder(null);
jsb.setUI(new MyScrollBarUI());
jScrollPane1.setVerticalScrollBar(jsb);
textArea_log.setEditable(false);
textArea_log.setFont(new Font("微软雅黑", 0, 12));
textArea_log.setColumns(20);
textArea_log.setLineWrap(true);
textArea_log.setRows(5);
textArea_log.setBorder(BorderFactory.createLineBorder(new Color(243, 244, 246)));
jScrollPane1.setViewportView(textArea_log);
jPanel6.add(jScrollPane1);
jScrollPane1.setBounds(10, 15, 480, 110);
jLabel8.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
jLabel8.setIcon(new ImageIcon(getClass().getResource("/optimizationprogram/GUICode/u53.png"))); // NOI18N
jLabel8.setText("成功App数:");
jLabel8.setMaximumSize(new java.awt.Dimension(85, 15));
jLabel8.setMinimumSize(new java.awt.Dimension(85, 15));
jLabel8.setPreferredSize(new java.awt.Dimension(85, 15));
jPanel6.add(jLabel8);
jLabel8.setBounds(10, 140, 85, 15);
label_capturedNum.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
label_capturedNum.setText("0");
label_capturedNum.setMaximumSize(new java.awt.Dimension(50, 15));
label_capturedNum.setMinimumSize(new java.awt.Dimension(50, 15));
label_capturedNum.setPreferredSize(new java.awt.Dimension(50, 15));
jPanel6.add(label_capturedNum);
label_capturedNum.setBounds(90, 140, 50, 15);
jLabel12.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
jLabel12.setIcon(new ImageIcon(getClass().getResource("/optimizationprogram/GUICode/u53.png"))); // NOI18N
jLabel12.setText("失败App数:");
jLabel12.setMaximumSize(new java.awt.Dimension(85, 15));
jLabel12.setMinimumSize(new java.awt.Dimension(85, 15));
jLabel12.setPreferredSize(new java.awt.Dimension(85, 15));
jPanel6.add(jLabel12);
jLabel12.setBounds(190, 140, 85, 15);
label_failedNum.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
label_failedNum.setText("0");
label_failedNum.setMaximumSize(new java.awt.Dimension(50, 15));
label_failedNum.setMinimumSize(new java.awt.Dimension(50, 15));
label_failedNum.setPreferredSize(new java.awt.Dimension(50, 15));
jPanel6.add(label_failedNum);
label_failedNum.setBounds(270, 140, 50, 15);
jLabel14.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
jLabel14.setIcon(new ImageIcon(getClass().getResource("/optimizationprogram/GUICode/u53.png"))); // NOI18N
jLabel14.setText("采集记录数:");
jLabel14.setMaximumSize(new java.awt.Dimension(85, 15));
jLabel14.setMinimumSize(new java.awt.Dimension(85, 15));
jLabel14.setPreferredSize(new java.awt.Dimension(85, 15));
jPanel6.add(jLabel14);
jLabel14.setBounds(360, 140, 85, 15);
label_pkgNum.setFont(new Font("微软雅黑", 0, 12)); // NOI18N
label_pkgNum.setText("0");
label_pkgNum.setMaximumSize(new java.awt.Dimension(50, 15));
label_pkgNum.setMinimumSize(new java.awt.Dimension(50, 15));
label_pkgNum.setPreferredSize(new java.awt.Dimension(50, 15));
jPanel6.add(label_pkgNum);
label_pkgNum.setBounds(440, 140, 50, 15);
jPanel4.add(jPanel6);
jPanel6.setBounds(10, 40, 500, 170);
add(jPanel4);
jPanel4.setBounds(0, 200, 520, 220);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.7319573",
"0.72908455",
"0.72908455",
"0.72908455",
"0.7286827",
"0.7248724",
"0.7213511",
"0.7208325",
"0.7195998",
"0.7190202",
"0.7184771",
"0.7158966",
"0.7147921",
"0.7093225",
"0.7080275",
"0.7057302",
"0.69875276",
"0.6977057",
"0.6955658",
"0.6953942",
"0.69454855"... | 0.0 | -1 |
Instantiates a CSV parser. | private CSVParser() {
this.headerMap = new HashMap<>();
this.header = null;
this.toDoList = new ToDoList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static CSVParser getParser() {\n if (instance == null) {\n instance = new CSVParser();\n }\n return instance;\n }",
"public InputReader(String csv){\n inputStream = new Scanner(csv);\n instantiate();\n assert(invariant());\n }",
"static CsvParser getCsvParser(){\n ... | [
"0.7206342",
"0.6914191",
"0.68989944",
"0.6807053",
"0.6763207",
"0.66508985",
"0.6450022",
"0.6443505",
"0.6409701",
"0.595541",
"0.5806117",
"0.57983434",
"0.5766783",
"0.57026577",
"0.56499964",
"0.56339175",
"0.56212354",
"0.5614431",
"0.5614045",
"0.5600088",
"0.5597613... | 0.707449 | 1 |
Gets a default CSV parser, there could only be one CSV Parser for the class. | public static CSVParser getParser() {
if (instance == null) {
instance = new CSVParser();
}
return instance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CsvParser getCsvParser()\n {\n return parser;\n }",
"static CsvParser getCsvParser(){\n CsvParserSettings settings = new CsvParserSettings();\n settings.getFormat().setLineSeparator(\"\\n\");\n return new CsvParser(settings);\n }",
"public static FileReader getReader... | [
"0.74520487",
"0.7195272",
"0.62805146",
"0.6009694",
"0.5922576",
"0.5810668",
"0.5759402",
"0.5535013",
"0.54725885",
"0.5468177",
"0.5460438",
"0.5456539",
"0.53708255",
"0.53513825",
"0.5327281",
"0.5291059",
"0.5262222",
"0.5258686",
"0.5258686",
"0.5256937",
"0.52514106... | 0.8122281 | 0 |
Processes the csv file, read it in and parse the todos to store in the todoList. If the csv file is empty, directly return. | @Override
public ToDoList readCSV(String csvPath) throws InvalidArgumentException {
this.csvPath = csvPath;
this.toDoList = new ToDoList();
BufferedReader inputFile = null;
try {
inputFile = new BufferedReader(new FileReader(this.csvPath));
String line = inputFile.readLine();
if (line == null) {
inputFile.close();
return this.toDoList;
} // Empty CSV file, no need for processing.
this.processHeader(line);
while ((line = inputFile.readLine()) != null) {
this.processToDoItem(line);
}
inputFile.close();
return this.toDoList;
} catch (FileNotFoundException fnfe) {
throw new InvalidArgumentException("OOPS! File not found!");
} catch (IOException ioe) {
throw new InvalidArgumentException("There is somthing wrong!");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void processCSVFile( BufferedReader csvFile ) throws IOException {\r\n\t\t\r\n\t\tboolean headerRowRead = false;\r\n\t\tString[] headerArray = null;\r\n\t\t\r\n\t\t//loop through all rows and create contacts\r\n\t\tString row = csvFile.readLine();\r\n\t\t\r\n\t\twhile (row != null) {\r\n\t\t\t\r\n\t\t\tif ... | [
"0.7159362",
"0.66114074",
"0.6575964",
"0.65291125",
"0.6406979",
"0.6220517",
"0.61714226",
"0.6154205",
"0.61228406",
"0.6104914",
"0.6084315",
"0.60753655",
"0.5996114",
"0.59874296",
"0.5975592",
"0.5904211",
"0.5901754",
"0.5859301",
"0.5848236",
"0.58331716",
"0.583153... | 0.7683688 | 0 |
Processes the header of the csv file, in order to match column header with column content easier. | private void processHeader(String header) {
this.header = header + System.lineSeparator(); // Store the header for writing back.
String[] headers = header.split("\",\"");
for (int i = 0; i < headers.length; i++) {
String columnName = headers[i].replaceAll("\"", "");
this.headerMap.put(i, columnName);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void readHeader() throws IOException {\n\t\tString line = this.readLine();\n\t\tSystem.out.println(String.format(\"header->{%s}\", line));\n\t\tthis.columnNames = line.split(DEFAULT_DELIMITER);\n\t}",
"public static void checkValidHeader(String header)\n throws DataConversionException {\n ... | [
"0.6868027",
"0.6711902",
"0.6571629",
"0.6423938",
"0.63420296",
"0.6341936",
"0.6200941",
"0.6193669",
"0.6191926",
"0.611399",
"0.6097684",
"0.6080751",
"0.60580856",
"0.60538566",
"0.6049632",
"0.60358495",
"0.60273236",
"0.5991772",
"0.5989822",
"0.59544516",
"0.5949784"... | 0.7769875 | 0 |
Processes each line in the csv file, parse them into a ToDoItem instance and store in the todoList. If the line is invalid, inform the user, and skip the line. | private void processToDoItem(String line) {
String[] items = line.split(("\",\""));
// Skip the invalid line
if (items.length != this.headerMap.size()) {
System.out.println(String.format("The line %s has wrong columns. Please fix it!", line));
return;
}
HashMap<String, String> mappingTable = new HashMap<>();
for (int i = 0; i < items.length; i++) {
String item = items[i].replaceAll("\"", "");
item = item.equals("?") ? null : item;
mappingTable.put(headerMap.get(i), item);
}
ToDoItem todo = this.parseToDoItem(mappingTable);
this.toDoList.addExistingToDo(Integer.parseInt(mappingTable.get("id")), todo);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public ToDoList readCSV(String csvPath) throws InvalidArgumentException {\n this.csvPath = csvPath;\n this.toDoList = new ToDoList();\n\n BufferedReader inputFile = null;\n try {\n inputFile = new BufferedReader(new FileReader(this.csvPath));\n\n String line = inputFile.readLine(... | [
"0.6951414",
"0.6596938",
"0.62836653",
"0.62206316",
"0.5984342",
"0.59182316",
"0.59141064",
"0.5832969",
"0.58001024",
"0.5754552",
"0.57197183",
"0.567469",
"0.5673844",
"0.5634472",
"0.5624548",
"0.561007",
"0.5585124",
"0.5583687",
"0.558046",
"0.5568677",
"0.5527227",
... | 0.7248714 | 0 |
Parses the keyvalue pair into corresponding ToDoItem. | private ToDoItem parseToDoItem(HashMap<String, String> mappingTable) {
Integer id = Integer.parseInt(mappingTable.get("id"));
String text = mappingTable.get("text");
ToDoItem.Builder builderOptions = new Builder(id,text);
boolean completed = Boolean.parseBoolean(mappingTable.get("completed"));
if (completed) builderOptions.complete();
LocalDate due = null;
String date = mappingTable.get("due");
if (date != null) {
//Date Format: MM/DD/YYYY
String[] dates = date.split("/");
due = LocalDate
.of(Integer.parseInt(dates[2]), Integer.parseInt(dates[0]),
Integer.parseInt(dates[1]));
builderOptions.setDueDate(due);
}
if (mappingTable.get("priority") != null) {
int priority = Integer.parseInt(mappingTable.get("priority"));
builderOptions.setPriority(priority);
}
if (mappingTable.get("category") != null) {
String category = mappingTable.get("category");
builderOptions.setCategory(category);
}
return builderOptions.build();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void processToDoItem(String line) {\n String[] items = line.split((\"\\\",\\\"\"));\n // Skip the invalid line\n if (items.length != this.headerMap.size()) {\n System.out.println(String.format(\"The line %s has wrong columns. Please fix it!\", line));\n return;\n }\n\n HashMap<Stri... | [
"0.6185757",
"0.56430614",
"0.53613484",
"0.53172666",
"0.5268759",
"0.5089099",
"0.5016896",
"0.5007642",
"0.4973397",
"0.49652547",
"0.49552447",
"0.4888534",
"0.4878897",
"0.48659787",
"0.48022965",
"0.477604",
"0.47728923",
"0.47704482",
"0.47635892",
"0.47379577",
"0.473... | 0.6926108 | 0 |
Write the output back into the csv file. | @Override
public void saveCSVFile(String csvPath, String output) {
this.csvPath = csvPath;
BufferedWriter outputFile = null;
try {
outputFile = new BufferedWriter(new FileWriter(this.csvPath));
if (this.header == null) {
this.header = Rules.getDefaultHeaders();
}
outputFile.write(header);
outputFile.write(output);
outputFile.close();
} catch (FileNotFoundException fnfe) {
System.out.println("File not found");
} catch (IOException ioe) {
System.out.println("Something went wrong");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void writeToCSV() {\n final String CSV_SEPARATOR = \",\";\n final String QUOTE = \"\\\"\";\n if (!Crawler.getKeyWordsHits().isEmpty()) {\n try (BufferedWriter bufferedWriter =\n new BufferedWriter(\n new OutputStr... | [
"0.7546717",
"0.70070034",
"0.69806033",
"0.69434506",
"0.68527454",
"0.6819498",
"0.68120676",
"0.6811763",
"0.67660064",
"0.67394835",
"0.6678356",
"0.66586727",
"0.6605582",
"0.6585365",
"0.65153456",
"0.6472254",
"0.6449703",
"0.63872033",
"0.6381069",
"0.6362432",
"0.636... | 0.66383964 | 12 |
Spawns a burst of particles at the source's location. | @Override
public void onDeath(MatrixSprite source)
{
Matrix matrix = source.matrix();
if(matrix != null)
matrix.particles().burstAt(source.location(), color, number, maxSpeed);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void spawnParticle(String particle, double x, double y, double z, double dx, double dy, double dz, double speed, int count);",
"private void createBurst(int[] par1ArrayOfInteger, int[] par2ArrayOfInteger, boolean par3, boolean par4)\n {\n double d0 = this.rand.nextGaussian() * 0.05D;\n do... | [
"0.62998694",
"0.62044847",
"0.61799526",
"0.5821073",
"0.5775104",
"0.5756285",
"0.56894165",
"0.5569866",
"0.5545893",
"0.54042566",
"0.5387028",
"0.5360634",
"0.5353599",
"0.53241354",
"0.52497613",
"0.5240395",
"0.5230938",
"0.5205052",
"0.5191008",
"0.51530945",
"0.51453... | 0.52963954 | 14 |
From input text string to enum value | public static TransactionType getEnumFromString(String string) {
for (TransactionType transactionType : TransactionType.values()) {
if (transactionType.getTransactionType().equals(string)) {
return transactionType;
}
}
throw new UnsupportedOperationException("Zadali ste chybný názov transakcie");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Enum forString(java.lang.String s)\r\n { return (Enum)table.forString(s); }",
"public static Enum forString(java.lang.String s)\n { return (Enum)table.forString(s); }",
"public static Enum forString(java.lang.String s)\n { return (Enum)... | [
"0.684448",
"0.6809402",
"0.68025374",
"0.67911035",
"0.67911035",
"0.67911035",
"0.6685216",
"0.64041865",
"0.63105977",
"0.6208328",
"0.6192",
"0.61889935",
"0.61839277",
"0.61129624",
"0.61129624",
"0.61129624",
"0.6103806",
"0.60759944",
"0.6040119",
"0.6005236",
"0.59873... | 0.6397591 | 8 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_new_main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
TODO Autogenerated method stub | public boolean onKeyDown(int keyCode, KeyEvent event) {
if ((keyCode == event.KEYCODE_BACK)&&drawerLayout.isDrawerOpen(drawer)) {
drawerLayout.closeDrawer(drawer);
}
else if (keyCode == event.KEYCODE_BACK){
exitInBack2();
}
return true;
} | {
"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 |
TODOp2(george) Autogenerated method stub | @Override
public List<? extends DataStoreEntity> getAllEntities(boolean recursive) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n... | [
"0.65635026",
"0.6561278",
"0.65145624",
"0.65033084",
"0.64822525",
"0.6342905",
"0.6328833",
"0.6306962",
"0.6305142",
"0.6287497",
"0.6268522",
"0.6268522",
"0.6255549",
"0.6237358",
"0.6236529",
"0.62362504",
"0.62327987",
"0.6209251",
"0.6180059",
"0.6179521",
"0.6172701... | 0.0 | -1 |
TODOp2(george) Autogenerated method stub | @Override
public List<EntityPath> getAllEntityPaths(boolean recursive) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n... | [
"0.65626603",
"0.6561553",
"0.6515194",
"0.65028876",
"0.64826035",
"0.63437825",
"0.6328733",
"0.6307004",
"0.63059115",
"0.6287138",
"0.6268953",
"0.6268953",
"0.62577987",
"0.62378794",
"0.6236572",
"0.6236219",
"0.6233478",
"0.62084484",
"0.61805",
"0.6179994",
"0.617249"... | 0.0 | -1 |
TODOp2(george) Autogenerated method stub | @Override
public void saveOrUpdateEntity(String entityName, DataStoreEntity dataStoreEntity) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n... | [
"0.65635026",
"0.6561278",
"0.65145624",
"0.65033084",
"0.64822525",
"0.6342905",
"0.6328833",
"0.6306962",
"0.6305142",
"0.6287497",
"0.6268522",
"0.6268522",
"0.6255549",
"0.6237358",
"0.6236529",
"0.62362504",
"0.62327987",
"0.6209251",
"0.6180059",
"0.6179521",
"0.6172701... | 0.0 | -1 |
TODOp2(george) Autogenerated method stub | @Override
public void updateEntity(String entityName, DataStoreEntity dataStoreEntity) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n... | [
"0.65635026",
"0.6561278",
"0.65145624",
"0.65033084",
"0.64822525",
"0.6342905",
"0.6328833",
"0.6306962",
"0.6305142",
"0.6287497",
"0.6268522",
"0.6268522",
"0.6255549",
"0.6237358",
"0.6236529",
"0.62362504",
"0.62327987",
"0.6209251",
"0.6180059",
"0.6179521",
"0.6172701... | 0.0 | -1 |
TODOp2(george) Autogenerated method stub | @Override
public void createNewEntity(String entityName) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n... | [
"0.65635026",
"0.6561278",
"0.65145624",
"0.65033084",
"0.64822525",
"0.6342905",
"0.6328833",
"0.6306962",
"0.6305142",
"0.6287497",
"0.6268522",
"0.6268522",
"0.6255549",
"0.6237358",
"0.6236529",
"0.62362504",
"0.62327987",
"0.6209251",
"0.6180059",
"0.6179521",
"0.6172701... | 0.0 | -1 |
TODOp2(george) Autogenerated method stub | @Override
public void deleteEntity(String entityName) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n... | [
"0.65626603",
"0.6561553",
"0.6515194",
"0.65028876",
"0.64826035",
"0.63437825",
"0.6328733",
"0.6307004",
"0.63059115",
"0.6287138",
"0.6268953",
"0.6268953",
"0.62577987",
"0.62378794",
"0.6236572",
"0.6236219",
"0.6233478",
"0.62084484",
"0.61805",
"0.6179994",
"0.617249"... | 0.0 | -1 |
TODOp2(george) Autogenerated method stub | @Override
public void validate() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n... | [
"0.65635026",
"0.6561278",
"0.65145624",
"0.65033084",
"0.64822525",
"0.6342905",
"0.6328833",
"0.6306962",
"0.6305142",
"0.6287497",
"0.6268522",
"0.6268522",
"0.6255549",
"0.6237358",
"0.6236529",
"0.62362504",
"0.62327987",
"0.6209251",
"0.6180059",
"0.6179521",
"0.6172701... | 0.0 | -1 |
TODOp2(george) Autogenerated method stub | @Override
public String getDebugPathInfo(String entityName) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n... | [
"0.65635026",
"0.6561278",
"0.65145624",
"0.65033084",
"0.64822525",
"0.6342905",
"0.6328833",
"0.6306962",
"0.6305142",
"0.6287497",
"0.6268522",
"0.6268522",
"0.6255549",
"0.6237358",
"0.6236529",
"0.62362504",
"0.62327987",
"0.6209251",
"0.6180059",
"0.6179521",
"0.6172701... | 0.0 | -1 |
This main class creates socket and keep waiting for request and create new connection | public static void main(String args[]) {
try {
int serverPort = 7896; // the server port
ServerSocket listenSocket = new ServerSocket(serverPort);
while (true) {
Socket clientSocket = listenSocket.accept();
Connection c = new Connection(clientSocket);
}
} catch (IOException e) {
System.out.println("Listen socket:" + e.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void creatSocket() {\n\n try {\n\n server = new ServerSocket(PORT);\n\n mExecutorService = Executors.newCachedThreadPool();\n\n while (true) {\n\n Socket client = server.accept();\n\n mExecutorService.execute(new SockectService(client));\... | [
"0.75769025",
"0.6919254",
"0.6775837",
"0.6765631",
"0.6732882",
"0.6684637",
"0.663855",
"0.6599379",
"0.65608484",
"0.65093225",
"0.6491198",
"0.64860505",
"0.64684695",
"0.6459465",
"0.64581823",
"0.6446521",
"0.6443328",
"0.6411152",
"0.6406581",
"0.6388791",
"0.63875467... | 0.0 | -1 |
Constructor that initialize socket, input and output stream | public Connection(Socket aClientSocket) {
try {
clientSocket = aClientSocket;
in = new DataInputStream(clientSocket.getInputStream());
out = new DataOutputStream(clientSocket.getOutputStream());
this.start();
} catch (IOException e) {
System.out.println("Connection:" + e.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SocketIO(Socket nsocket)\n\t{\n\t\tsocket = nsocket;\n\t\ttry\n\t\t{\n\t\t\tinput = new DataInputStream(socket.getInputStream());\n\t\t\tout = new DataOutputStream(socket.getOutputStream());\n\t\t}\n\t\tcatch(UnknownHostException u)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tcatch(IOException i)\n\t\t{\n\t\t\treturn... | [
"0.72695506",
"0.7255917",
"0.6851294",
"0.684857",
"0.68318826",
"0.6778016",
"0.6773404",
"0.6767008",
"0.67625135",
"0.6760902",
"0.6749289",
"0.6736244",
"0.6705053",
"0.6681492",
"0.6663002",
"0.6654387",
"0.6653697",
"0.66064286",
"0.65976924",
"0.6567072",
"0.6545307",... | 0.0 | -1 |
This method reads request and sends back the response. | public void run() {
try { // an echo server
String response = "";
String data = in.readUTF(); // read a line of data from the stream
if (isApproved()) {
response = "The plan to " + data + " has been approved.";
} else {
response = "The plan to " + data + " has been rejected.";
}
String cipher = CaesarCipher.encrypt(response);
out.writeUTF(cipher);
} catch (EOFException e) {
System.out.println("EOF:" + e.getMessage());
} catch (IOException e) {
System.out.println("readline:" + e.getMessage());
} finally {
try {
clientSocket.close();
} catch (IOException e) {/*close failed*/
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void readRequest()\n {\n t1.start();\n StringBuffer sb = new StringBuffer(BUFFER_SIZE);\n char c;\n int sequentialBreaks = 0;\n while (true)\n {\n try\n {\n if (in.available() > 0)\n ... | [
"0.71088797",
"0.68235236",
"0.67139184",
"0.6698745",
"0.6613007",
"0.6515757",
"0.6386944",
"0.6331591",
"0.62993306",
"0.6265698",
"0.6220542",
"0.61417234",
"0.6137473",
"0.6127999",
"0.6125268",
"0.61083055",
"0.60904056",
"0.6072427",
"0.60665476",
"0.6022986",
"0.60151... | 0.0 | -1 |
This method decides if the plan should be approved (50% chance) | private boolean isApproved() {
if (rnd.nextInt(10) < 5) {
return true;
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isApproved();",
"public boolean isApproved();",
"@Override\n\tpublic boolean isApproved();",
"@Override\n\tpublic boolean isApproved() {\n\t\treturn _scienceApp.isApproved();\n\t}",
"public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\... | [
"0.6936619",
"0.6936619",
"0.675631",
"0.67450774",
"0.6670742",
"0.6572987",
"0.65281904",
"0.6416108",
"0.6379712",
"0.62839633",
"0.6275362",
"0.6268102",
"0.6225985",
"0.6212397",
"0.62075627",
"0.61810863",
"0.6173897",
"0.60764736",
"0.6065066",
"0.6027787",
"0.6021473"... | 0.74958324 | 0 |
TODO Autogenerated method stub | @Override
protected List<ValueTriple> bnetEstimate(RecommendParam param, Set<Integer> queryIds, double referredRatingValue, RatingFilter ratingFilter) {
List<ValueTriple> result = Util.newList();
BnetDistributedKB bdKb = (BnetDistributedKB)kb;
double minRating = getMinRating();
for (int queryId : queryIds) {
Bnet bnet = bdKb.getBnet(queryId);
Set<Integer> newQueryId = Util.newSet();
newQueryId.add(queryId);
Evidence ev = BnetUtil.createItemEvidence(
bnet.getNodeList(),
param.ratingVector,
minRating);
List<ValueTriple> r = BnetUtil.inference(
bnet,
ev,
newQueryId,
minRating,
referredRatingValue,
ratingFilter);
if (r.size() == 0)
r = BnetUtil.inference(
bnet,
new Evidence(),
newQueryId,
minRating,
referredRatingValue,
ratingFilter);
ValueTriple triple = ValueTriple.getByKey(r, queryId);
if (triple != null)
result.add(triple);
}
if (result.size() == 0)
return null;
else
return result;
} | {
"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
protected Set<Integer> getItemIds() {
BnetDistributedKB bdKb = (BnetDistributedKB)kb;
return bdKb.itemIds;
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public KBase newKB() throws RemoteException {
return BnetDistributedKB.create(this);
} | {
"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 load() throws RemoteException {
super.load();
UriAdapter adapter = new UriAdapter(config);
bnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());
adapter.close();
itemIds = bnetMap.keySet();
} | {
"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 learn(Dataset dataset, Alg alg) throws RemoteException {
super.learn(dataset, alg);
bnetMap = BnetDistributedLearner.createDistributedBnet(dataset);
itemIds = bnetMap.keySet();
} | {
"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 save(DataConfig storeConfig) throws RemoteException {
super.save(storeConfig);
UriAdapter adapter = new UriAdapter(storeConfig);
saveBnetMap(adapter, bnetMap, storeConfig.getStoreUri(), getName());
adapter.close();
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean isEmpty() throws RemoteException {
return bnetMap.size() == 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 |
TODO Autogenerated method stub | @Override
public void close() throws Exception {
super.close();
bnetMap.clear();
itemIds.clear();
} | {
"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 |
Getting Bayesian network of given item identifier. | protected Bnet getBnet(int id) {
return bnetMap.get(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Bid winningBid(final String itemId);",
"public MultiEntityBayesianNetwork getMEBN() {\r\n\t\ttry {\r\n\t\t\treturn this.getNode().getMFrag().getMultiEntityBayesianNetwork();\r\n\t\t} catch (NullPointerException npe) {\r\n\t\t\ttry {\r\n\t\t\t\tDebug.println(this.getClass(), this.getNode() + \" has no link... | [
"0.55469936",
"0.53719956",
"0.52376807",
"0.5217069",
"0.49447083",
"0.49199986",
"0.4886489",
"0.48112452",
"0.4794581",
"0.4747279",
"0.4742973",
"0.47099853",
"0.46590176",
"0.46494344",
"0.46484834",
"0.46331722",
"0.46256632",
"0.46214372",
"0.46109006",
"0.46037948",
"... | 0.5676292 | 0 |
Create knowledge base of collaborative filtering algorithm based on distributed binary Bayesian network. | public static BnetDistributedKB create(final BnetDistributedCF cf) {
return new BnetDistributedKB() {
/**
* Serial version UID for serializable class.
*/
private static final long serialVersionUID = 1L;
@Override
public String getName() {
// TODO Auto-generated method stub
return cf.getName();
}
};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BPredicate createBPredicate();",
"protected abstract Graph filterGraph();",
"FeatureHolder filter(FeatureFilter filter);",
"@Override\n\tpublic Alg newInstance() {\n\t\treturn new BnetDistributedCF();\n\t}",
"public static void main(String[] args) {\n\n\t\tlong startTime = System.currentTimeMillis();\n\n\t... | [
"0.56624055",
"0.5628116",
"0.5526696",
"0.54748374",
"0.5295718",
"0.5294643",
"0.5269399",
"0.52509946",
"0.5243263",
"0.5198773",
"0.5186748",
"0.514661",
"0.51464486",
"0.51327205",
"0.51194096",
"0.5115757",
"0.5106931",
"0.509712",
"0.5042699",
"0.5040443",
"0.50258297"... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String getName() {
return cf.getName();
} | {
"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 |
Loading Bayesian networks from store. | protected static Map<Integer, Bnet> loadBnetMap(UriAdapter adapter, xURI store, String prefixName) {
List<xURI> uriList = BnetCFAbstract.getUriList(store, BNET_FILEEXT, prefixName, false);
Map<Integer, Bnet> bnetMap = Util.newMap();
for(xURI uri : uriList) {
String name = uri.getLastName();
String snum = name.substring(name.lastIndexOf(TextParserUtil.CONNECT_SEP) + 1, name.lastIndexOf("."));
int id = Integer.parseInt(snum);
Bnet bnet = BnetUtil.loadBnet(adapter, uri);
if (bnet != null)
bnetMap.put(id, bnet);
}
return bnetMap;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void load() {\n\t\tsuper.load();\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(config);\n\t\tbnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());\n\t\tadapter.close();\n\t\t\n\t\titemIds = bnetMap.keySet();\n\t}",
"@Override\n\tpublic void load() throws RemoteException {\n\t\tsup... | [
"0.6148801",
"0.55605423",
"0.5526441",
"0.53906596",
"0.5248697",
"0.51789445",
"0.5138771",
"0.51383954",
"0.5108966",
"0.5105903",
"0.50618243",
"0.5029575",
"0.5019676",
"0.4940541",
"0.49148506",
"0.4912647",
"0.49095193",
"0.49059072",
"0.4900864",
"0.48945642",
"0.4883... | 0.5596411 | 1 |
Saving a Bayesian network to store. | protected static void saveBnetMap(UriAdapter adapter, Map<Integer, Bnet> bnetMap, xURI store, String prefixName) {
adapter.create(store, true);
Set<Integer> ids = bnetMap.keySet();
for (int id : ids) {
Bnet bnet = bnetMap.get(id);
String filename = prefixName + TextParserUtil.CONNECT_SEP + id + "." + BNET_FILEEXT;
xURI uri = store.concat(filename);
BnetUtil.saveBnet(adapter, bnet, uri);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void save(ComputationGraph net) throws Exception {\r\n ModelSerializer.writeModel(net, locationToSave, saveUpdater);\r\n }",
"void save(int generation) {\n File file = new File(\"network.dat\");\n try (BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputSt... | [
"0.7168742",
"0.6987736",
"0.6944927",
"0.6754024",
"0.63948977",
"0.6389689",
"0.61767256",
"0.6150173",
"0.6150173",
"0.6150173",
"0.6059819",
"0.6058449",
"0.6046612",
"0.602387",
"0.5912997",
"0.59089696",
"0.5906788",
"0.5859247",
"0.5855291",
"0.5838712",
"0.5835744",
... | 0.54970044 | 64 |
FIND ALL CARE PROVIDERS | @GetMapping("/providers")
public List<ResponseEntity<Object>> getAllProviders() {
List<ResponseEntity<Object>> responses = new ArrayList<>();
List<User> users = repo.findAll();
for(User u : users) {
if(u.getIntent() == Intent.PROVIDING) {
setLinks(u);
responses.add(new ResponseEntity<>(u, HttpStatus.FOUND));
}
}
return responses;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract List getProviders();",
"DataProviders retrieveProviders() throws RepoxException;",
"DataProviders retrieveProviders() throws RepoxException;",
"private Collection<MarketDataProvider> getActiveMarketDataProviders()\n {\n populateProviderList();\n return providersByPriority;\n ... | [
"0.64823097",
"0.621911",
"0.621911",
"0.610483",
"0.60525393",
"0.60259557",
"0.5874188",
"0.5854522",
"0.5703758",
"0.56919867",
"0.5615918",
"0.5613816",
"0.56137717",
"0.557518",
"0.55588603",
"0.5522839",
"0.5500281",
"0.5458665",
"0.5412295",
"0.53951824",
"0.5384339",
... | 0.55904585 | 13 |
FIND ALL CARE REQUESTERS | @GetMapping("/requesters")
public List<ResponseEntity<Object>> getAllRequesters() {
List<ResponseEntity<Object>> responses = new ArrayList<>();
List<User> users = repo.findAll();
for(User u : users) {
if(u.getIntent() == Intent.SEEKING) {
setLinks(u);
responses.add(new ResponseEntity<>(u, HttpStatus.FOUND));
}
}
return responses;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ArrayList<Request> loadRequests() {\n ArrayList<Request> requests = new ArrayList<Request>();\n try {\n Connection connection = DBHelper.getConnection();\n PreparedStatement statement = connection.prepareStatement(\"SELECT * \" + \n \"FROM requestsTo... | [
"0.5878154",
"0.582832",
"0.580832",
"0.56629765",
"0.56088877",
"0.5596312",
"0.55042326",
"0.54641294",
"0.530626",
"0.5303793",
"0.52859074",
"0.52723557",
"0.5245482",
"0.5237133",
"0.52119154",
"0.5203052",
"0.51906085",
"0.5186027",
"0.51686794",
"0.5133642",
"0.5132092... | 0.48760545 | 46 |
CHANGE TO TEMPORARY PASSWORD | @PatchMapping("/temporary-password/{id}")
public ResponseEntity<Object> getTemporaryPassword(@PathVariable int id){
User u = repo.findOneById(id);
String newTempPassword = RandomStringUtils.randomAlphanumeric(10);
u.setPassword(passwordEncoder.encode(newTempPassword));
repo.save(u);
String message = "Your new temporary password is: " + newTempPassword;
notificationService.sendNotification(u, message);
return new ResponseEntity<>(u, HttpStatus.OK);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getTemporaryPassword();",
"void setPassword(Password newPassword, String plainPassword) throws NoUserSelectedException;",
"@Override\r\n\tpublic void modifyPassword(String username, String password, String confirmPassword, String oldPassword) {\n\t}",
"String getNewPassword();",
"public void setPass... | [
"0.7313066",
"0.6283086",
"0.62548155",
"0.6248782",
"0.62316453",
"0.6101123",
"0.6093572",
"0.5969181",
"0.5969181",
"0.5969181",
"0.5957578",
"0.59502494",
"0.59343225",
"0.59338313",
"0.59181106",
"0.5917033",
"0.5865615",
"0.585969",
"0.5832579",
"0.58189476",
"0.580862"... | 0.5852104 | 18 |
Override this method to specify a different type | public abstract QName getType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void setType();",
"@Override\n\tpublic void setType(String type) {\n\t}",
"@Override abstract public String type();",
"@Override\n public String getType() {\n return super.getType().toLowerCase();\n }",
"@Override\n public String getType(){\n return Type;\n }",
"pro... | [
"0.7466452",
"0.7052209",
"0.697296",
"0.6937855",
"0.6794695",
"0.67822826",
"0.67445594",
"0.6707812",
"0.66698134",
"0.65559953",
"0.65389746",
"0.65389746",
"0.65389746",
"0.6423312",
"0.6405306",
"0.6399436",
"0.63749784",
"0.63749784",
"0.63590914",
"0.63581437",
"0.635... | 0.0 | -1 |
Override this method to handle a nodevalued property or attribute. The default implementation returns the text content of the node. | public String getValue(Node node) {
return (node == null) ? null : node.getTextContent();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTextValue (Node node);",
"public String getNodeValue ();",
"@Override\r\n\t\tpublic String getNodeValue() throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Override\n public String toString() {\n return (this.originalValue == null ? this.getValue() : this.original... | [
"0.7092402",
"0.6994336",
"0.6841938",
"0.6800532",
"0.6789593",
"0.67140996",
"0.66575426",
"0.65444624",
"0.6496547",
"0.64089423",
"0.6389652",
"0.6338383",
"0.6250768",
"0.62473524",
"0.6227347",
"0.62103283",
"0.61682355",
"0.61240774",
"0.61029667",
"0.61018026",
"0.607... | 0.6841534 | 3 |
Override this method to handle a textvalued property or attribute. The default implementation returns the input string. | public String getValue(String s) {
return s;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String toDefaultValue(Property p) {\n if (p instanceof StringProperty) {\n StringProperty dp = (StringProperty) p;\n if (dp.getDefault() != null) {\n return \"\\\"\" + dp.getDefault().toString() + \"\\\"\";\n }\n } else if (p insta... | [
"0.619641",
"0.6099714",
"0.60855573",
"0.60329443",
"0.60120946",
"0.6011341",
"0.6011341",
"0.6011341",
"0.6011341",
"0.6011341",
"0.6011341",
"0.59751177",
"0.59581864",
"0.59581864",
"0.59581864",
"0.5951012",
"0.59252816",
"0.59186816",
"0.59101546",
"0.58329475",
"0.579... | 0.0 | -1 |
Override this method to handle a booleanvalued property or attribute. The default implementation returns the string value of the input boolean. | public String getValue(Boolean b) {
return (b == null) ? null : b.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String booleanAttributeToGetter(String arg0);",
"private boolean getOptionalBooleanProperty(String property, boolean defaultValue) {\n\t\tString value = getOptionalStringProperty(property);\n\t\tif (value != null)\n return value.equalsIgnoreCase(\"true\") || value.equalsIgnoreCase(\"yes\");\n r... | [
"0.7105488",
"0.698937",
"0.68771213",
"0.6773876",
"0.6718214",
"0.6710562",
"0.6710562",
"0.66599107",
"0.6651901",
"0.6637745",
"0.66280526",
"0.6532958",
"0.6515437",
"0.6515121",
"0.6501465",
"0.6500749",
"0.6462921",
"0.6448645",
"0.6380082",
"0.63752913",
"0.6371035",
... | 0.586863 | 78 |
Override this method to handle a numbervalued property or attribute. The default implementation returns the string value of the input number. | public String getValue(Number n) {
return (n == null) ? null : n.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Object getDefaultValue() {\r\n if (FeatureCollectionTools.isAttributeTypeNumeric((AttributeType) this.typeDropDown.getSelectedItem())) {\r\n AttributeType at = (AttributeType) this.typeDropDown.getSelectedItem();\r\n\r\n if (at.equals(AttributeType.INTEGER)) {\r\n ... | [
"0.6801895",
"0.66824764",
"0.66824764",
"0.66824764",
"0.66807497",
"0.64126533",
"0.6259288",
"0.61488837",
"0.6091112",
"0.6080717",
"0.60194296",
"0.59864765",
"0.593751",
"0.59073204",
"0.58750653",
"0.58742356",
"0.58691794",
"0.58603966",
"0.5804168",
"0.57961106",
"0.... | 0.55863094 | 45 |
Create an extractor based on the required size. | protected XmlDomMetadataExtractor(int size) {
xpathExprs = new XPathExpression[size];
xpathKeys = new String[size];
nodeValues = new XPathValue[size];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Extraction extract(Extractor extractor) {\n\t\tif (pos >= text.length()) return Extraction.NULL;\n\t\tExtraction extraction = extractor.apply(text, pos);\n\t\tpos += extraction.size;\n\t\treturn extraction;\n\t}",
"public static <E> OutputMatcher<E> outputWithSize(int size) {\n return OutputMatcher... | [
"0.5582921",
"0.5234916",
"0.52287376",
"0.5048471",
"0.5045535",
"0.4955852",
"0.48479116",
"0.48163465",
"0.48138723",
"0.47417057",
"0.47402647",
"0.46052983",
"0.4550121",
"0.4544528",
"0.45377874",
"0.44859317",
"0.44828913",
"0.4437338",
"0.4437338",
"0.4437338",
"0.443... | 0.5410239 | 1 |
Create an extractor that will extract the textContent of the nodes specified by the XPath expressions. | public XmlDomMetadataExtractor(Collection<String> xpaths)
throws XPathExpressionException {
this(xpaths.size());
int i = 0;
XPath xpath = XPathFactory.newInstance().newXPath();
for (String xp : xpaths) {
xpathKeys[i] = xp;
xpathExprs[i] = xpath.compile(xp);
nodeValues[i] = TEXT_VALUE;
i++;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public final void testGetXPathWithTextNodes() {\n \n Document testDoc = TestDocHelper.createDocument(\"<a>b</a>\");\n Element docEl = testDoc.getDocumentElement();\n Node b = docEl.getFirstChild();\n Node c = testDoc.createTextNode(\"c\\n\");\n docEl.appendChild... | [
"0.5441693",
"0.5316741",
"0.5163418",
"0.5159289",
"0.51298547",
"0.4847428",
"0.48220593",
"0.47973448",
"0.47244456",
"0.4702984",
"0.46861604",
"0.46555564",
"0.45967272",
"0.45621476",
"0.4537682",
"0.4529007",
"0.45285404",
"0.44761887",
"0.4475393",
"0.44710743",
"0.44... | 0.6676384 | 0 |
Create an extractor that will extract the textContent of the nodes specified by the XPath expressions by applying the corresponding NodeValues. | public XmlDomMetadataExtractor(Map<String, XPathValue> xpathMap)
throws XPathExpressionException {
this(xpathMap.size());
int i = 0;
XPath xpath = XPathFactory.newInstance().newXPath();
for (Map.Entry<String,XPathValue> entry : xpathMap.entrySet()) {
xpathKeys[i] = entry.getKey();
xpathExprs[i] = xpath.compile(entry.getKey());
nodeValues[i] = entry.getValue();
i++;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public XmlDomMetadataExtractor(Collection<String> xpaths) \n throws XPathExpressionException {\n this(xpaths.size());\n \n int i = 0;\n XPath xpath = XPathFactory.newInstance().newXPath();\n for (String xp : xpaths) {\n xpathKeys[i] = xp;\n xpathExprs[i] = xpath.compile(xp);\n no... | [
"0.63592666",
"0.53670305",
"0.53384477",
"0.52414083",
"0.5049533",
"0.49377885",
"0.46896437",
"0.46766973",
"0.4644285",
"0.46376577",
"0.46191213",
"0.46158195",
"0.46044895",
"0.45575887",
"0.4500292",
"0.44945255",
"0.44928515",
"0.4426437",
"0.4424926",
"0.44235206",
"... | 0.5317054 | 3 |
Extract metadata from source specified by the input stream. | public ArticleMetadata extract(MetadataTarget target, CachedUrl cu)
throws IOException {
if (cu == null) {
throw new IllegalArgumentException("null CachedUrl");
}
ArticleMetadata am = new ArticleMetadata();
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder builder;
try {
dbf.setValidating(false);
dbf.setFeature("http://xml.org/sax/features/namespaces", false);
dbf.setFeature("http://xml.org/sax/features/validation", false);
dbf.setFeature("http://apache.org/xml/features/nonvalidating/load-dtd-grammar", false);
dbf.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
builder = dbf.newDocumentBuilder();
} catch (ParserConfigurationException ex) {
log.warning(ex.getMessage());
return am;
}
if (!cu.hasContent()) {
return am;
}
InputSource bReader = new InputSource(cu.openForReading());
Document doc;
try {
doc = builder.parse(bReader);
} catch (SAXException ex) {
log.warning(ex.getMessage());
return am;
} finally {
IOUtil.safeClose(bReader.getCharacterStream());
}
// search for values using specified XPath expressions and
// set raw value using string based on type of node value
for (int i = 0; i < xpathKeys.length; i++) {
try {
QName type = nodeValues[i].getType();
Object result = xpathExprs[i].evaluate(doc, XPathConstants.NODESET);
NodeList nodeList = (NodeList)result;
for (int j = 0; j < nodeList.getLength(); j++) {
Node node = nodeList.item(j);
if (node == null) {
continue;
}
String value = null;
if (type == XPathConstants.NODE) {
// filter node
value = nodeValues[i].getValue(node);
} else if (type == XPathConstants.STRING) {
// filter node text content
String text = node.getTextContent();
if (!StringUtil.isNullString(text)) {
value = nodeValues[i].getValue(text);
}
} else if (type == XPathConstants.BOOLEAN) {
// filter boolean value of node text content
String text = node.getTextContent();
if (!StringUtil.isNullString(text)) {
value = nodeValues[i].getValue(Boolean.parseBoolean(text));
}
} else if (type == XPathConstants.NUMBER) {
// filter number value of node text content
try {
String text = node.getTextContent();
if (!StringUtil.isNullString(text)) {
NumberFormat format = NumberFormat.getInstance();
value = nodeValues[i].getValue(format.parse(text));
}
} catch (ParseException ex) {
// ignore invalid number
log.debug3(ex.getMessage());
}
} else {
log.debug("Unknown nodeValue type: " + type.toString());
}
if (!StringUtil.isNullString(value)) {
am.putRaw(xpathKeys[i], value);
}
}
} catch (XPathExpressionException ex) {
// ignore evaluation errors
log.warning("ignorning xpath error", ex);
}
}
return am;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void readMetaData(int location) throws IOException {\n //Log.i(LOG_Task, \"/readMetaData\");\n long read = 0;\n String md = \"\"; // The metadata\n // Skipping stream until get to the metadata\n InputStream is = conn.getInputStream();\n whil... | [
"0.6292404",
"0.615673",
"0.6028251",
"0.6016258",
"0.5809683",
"0.5700379",
"0.5571372",
"0.5529479",
"0.548916",
"0.54554147",
"0.53344834",
"0.532111",
"0.5314346",
"0.53060454",
"0.5249216",
"0.52212137",
"0.52127063",
"0.5199195",
"0.5140457",
"0.5114358",
"0.50442994",
... | 0.48078588 | 37 |
/ access modifiers changed from: protected | public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView((int) R.layout.activity_set_my_other_info);
this.a = getIntent().getStringExtra("setting_what");
c();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7374581",
"0.704046",
"0.6921078",
"0.6907657",
"0.68447137",
"0.68278503",
"0.68051183",
"0.6581499",
"0.65379775",
"0.65013164",
"0.64906055",
"0.64906055",
"0.6471428",
"0.64376146",
"0.64308655",
"0.64308655",
"0.6427683",
"0.6424486",
"0.64190304",
"0.640871",
"0.6405... | 0.0 | -1 |
/ access modifiers changed from: protected | public void onResume() {
super.onResume();
MiStatInterface.recordPageStart((Activity) this, "SetMyOtherInfoActivity");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.640... | 0.0 | -1 |
/ access modifiers changed from: protected | public void onPause() {
super.onPause();
MiStatInterface.recordPageEnd();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.640... | 0.0 | -1 |
/ access modifiers changed from: private | public void d() {
MiTalkiApp.n().postDelayed(new Runnable() {
public void run() {
SetMyOtherInfoActivity.this.k();
}
}, 500);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104... | [
"0.70451087",
"0.66481936",
"0.66338545",
"0.6534467",
"0.6533057",
"0.63756114",
"0.6368523",
"0.63063055",
"0.6244554",
"0.62261415",
"0.62046665",
"0.61776316",
"0.6142759",
"0.6131381",
"0.6131381",
"0.61274433",
"0.610919",
"0.610797",
"0.60792845",
"0.6062989",
"0.60593... | 0.0 | -1 |
No need to instantiate this class. | private ServiceGenerator() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initializ... | [
"0.69827604",
"0.69630164",
"0.6922834",
"0.6922834",
"0.6922834",
"0.6922834",
"0.6922834",
"0.6922834",
"0.684476",
"0.68346107",
"0.68143946",
"0.68100697",
"0.68016934",
"0.67614675",
"0.6753212",
"0.6753212",
"0.6753212",
"0.6750142",
"0.6723808",
"0.6694031",
"0.6687547... | 0.0 | -1 |
Checks if given position is marked. | public boolean isPositionMarked(int position){
return markedPositions.contains(Integer.valueOf(position));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isMarked(int pos) {\r\n return markBoard[this.rowPos(pos)][this.colPos(pos)];\r\n }",
"boolean hasPosition();",
"boolean hasPosition();",
"boolean hasPosition();",
"boolean hasPosition();",
"protected abstract boolean isMarkerPositionInternal(int index);",
"public boolean isMarker... | [
"0.7505731",
"0.7182545",
"0.7182545",
"0.7182545",
"0.7182545",
"0.67029244",
"0.65174776",
"0.64113253",
"0.6395848",
"0.6395848",
"0.63934785",
"0.6387027",
"0.6387027",
"0.6387027",
"0.63477725",
"0.6337355",
"0.633364",
"0.6328012",
"0.6323356",
"0.629581",
"0.629581",
... | 0.8310336 | 0 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
aireDeJeu1 = new ihm.AireDeJeu(editeur.getPlateau());
aireDeSelection1 = new editeur.AireDeSelection(ecouteur);
jTabbedPane1 = new javax.swing.JTabbedPane();
jTabbedPane3 = new javax.swing.JTabbedPane();
jPanel1 = new javax.swing.JPanel();
jRadioButton5 = new javax.swing.JRadioButton();
jPanel5 = new javax.swing.JPanel();
jRadioButton32 = new javax.swing.JRadioButton();
jRadioButton28 = new javax.swing.JRadioButton();
jRadioButton29 = new javax.swing.JRadioButton();
jRadioButton30 = new javax.swing.JRadioButton();
jRadioButton31 = new javax.swing.JRadioButton();
jRadioButton33 = new javax.swing.JRadioButton();
jRadioButton34 = new javax.swing.JRadioButton();
jRadioButton35 = new javax.swing.JRadioButton();
jRadioButton36 = new javax.swing.JRadioButton();
jRadioButton37 = new javax.swing.JRadioButton();
jPanel6 = new javax.swing.JPanel();
jRadioButton38 = new javax.swing.JRadioButton();
jPanel7 = new javax.swing.JPanel();
jRadioButton39 = new javax.swing.JRadioButton();
jPanel8 = new javax.swing.JPanel();
jRadioButton40 = new javax.swing.JRadioButton();
jRadioButton41 = new javax.swing.JRadioButton();
jTabbedPane4 = new javax.swing.JTabbedPane();
jPanel9 = new javax.swing.JPanel();
jRadioButton42 = new javax.swing.JRadioButton();
jRadioButton43 = new javax.swing.JRadioButton();
jRadioButton44 = new javax.swing.JRadioButton();
jRadioButton45 = new javax.swing.JRadioButton();
jRadioButton46 = new javax.swing.JRadioButton();
jRadioButton47 = new javax.swing.JRadioButton();
jRadioButton48 = new javax.swing.JRadioButton();
jRadioButton49 = new javax.swing.JRadioButton();
jTabbedPane2 = new javax.swing.JTabbedPane();
jPanel3 = new javax.swing.JPanel();
jRadioButton4 = new javax.swing.JRadioButton();
jRadioButton2 = new javax.swing.JRadioButton();
jRadioButton17 = new javax.swing.JRadioButton();
jRadioButton1 = new javax.swing.JRadioButton();
jRadioButton3 = new javax.swing.JRadioButton();
jRadioButton6 = new javax.swing.JRadioButton();
jRadioButton10 = new javax.swing.JRadioButton();
jRadioButton12 = new javax.swing.JRadioButton();
jRadioButton14 = new javax.swing.JRadioButton();
jRadioButton13 = new javax.swing.JRadioButton();
jRadioButton16 = new javax.swing.JRadioButton();
jRadioButton11 = new javax.swing.JRadioButton();
jRadioButton15 = new javax.swing.JRadioButton();
jRadioButton9 = new javax.swing.JRadioButton();
jRadioButton7 = new javax.swing.JRadioButton();
jRadioButton8 = new javax.swing.JRadioButton();
jPanel2 = new javax.swing.JPanel();
jRadioButton18 = new javax.swing.JRadioButton();
jRadioButton21 = new javax.swing.JRadioButton();
jRadioButton22 = new javax.swing.JRadioButton();
jRadioButton19 = new javax.swing.JRadioButton();
jRadioButton23 = new javax.swing.JRadioButton();
jRadioButton20 = new javax.swing.JRadioButton();
jRadioButton24 = new javax.swing.JRadioButton();
jRadioButton25 = new javax.swing.JRadioButton();
jRadioButton26 = new javax.swing.JRadioButton();
jRadioButton50 = new javax.swing.JRadioButton();
jRadioButton51 = new javax.swing.JRadioButton();
jPanel4 = new javax.swing.JPanel();
jRadioButton27 = new javax.swing.JRadioButton();
jTabbedPane5 = new javax.swing.JTabbedPane();
jPanel10 = new javax.swing.JPanel();
jRadioButton52 = new javax.swing.JRadioButton();
jRadioButton53 = new javax.swing.JRadioButton();
jRadioButton54 = new javax.swing.JRadioButton();
jRadioButton55 = new javax.swing.JRadioButton();
jRadioButton56 = new javax.swing.JRadioButton();
jRadioButton57 = new javax.swing.JRadioButton();
jRadioButton58 = new javax.swing.JRadioButton();
jRadioButton59 = new javax.swing.JRadioButton();
jRadioButton60 = new javax.swing.JRadioButton();
jRadioButton61 = new javax.swing.JRadioButton();
jRadioButton62 = new javax.swing.JRadioButton();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
creerMap = new javax.swing.JMenuItem();
chargerMap = new javax.swing.JMenuItem();
sauverMap = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Éditeur de carte - Animosity");
javax.swing.GroupLayout aireDeSelection1Layout = new javax.swing.GroupLayout(aireDeSelection1);
aireDeSelection1.setLayout(aireDeSelection1Layout);
aireDeSelection1Layout.setHorizontalGroup(
aireDeSelection1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 1051, Short.MAX_VALUE)
);
aireDeSelection1Layout.setVerticalGroup(
aireDeSelection1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 601, Short.MAX_VALUE)
);
javax.swing.GroupLayout aireDeJeu1Layout = new javax.swing.GroupLayout(aireDeJeu1);
aireDeJeu1.setLayout(aireDeJeu1Layout);
aireDeJeu1Layout.setHorizontalGroup(
aireDeJeu1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(aireDeSelection1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
aireDeJeu1Layout.setVerticalGroup(
aireDeJeu1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(aireDeJeu1Layout.createSequentialGroup()
.addComponent(aireDeSelection1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
buttonGroup1.add(jRadioButton5);
jRadioButton5.setBorderPainted(true);
jRadioButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.HERBEPATH)));
jRadioButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton5ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jRadioButton5)
.addContainerGap(1008, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jRadioButton5)
.addContainerGap(119, Short.MAX_VALUE))
);
jTabbedPane3.addTab("Herbe", jPanel1);
buttonGroup1.add(jRadioButton32);
jRadioButton32.setBorderPainted(true);
jRadioButton32.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.SABLEPATH)));
jRadioButton32.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton32ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton28);
jRadioButton28.setBorderPainted(true);
jRadioButton28.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BORDURESABLEHAUTGAUCHEPATH)));
jRadioButton28.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton28ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton29);
jRadioButton29.setBorderPainted(true);
jRadioButton29.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BORDURESABLEHAUTPATH)));
jRadioButton29.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton29ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton30);
jRadioButton30.setBorderPainted(true);
jRadioButton30.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BORDURESABLEHAUTDROITPATH)));
jRadioButton30.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton30ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton31);
jRadioButton31.setBorderPainted(true);
jRadioButton31.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BORDURESABLEGAUCHEPATH)));
jRadioButton31.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton31ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton33);
jRadioButton33.setBorderPainted(true);
jRadioButton33.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BORDURESABLEDROITPATH)));
jRadioButton33.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton33ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton34);
jRadioButton34.setBorderPainted(true);
jRadioButton34.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BORDURESABLEBASGAUCHEPATH)));
jRadioButton34.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton34ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton35);
jRadioButton35.setBorderPainted(true);
jRadioButton35.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BORDURESABLEBASPATH)));
jRadioButton35.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton35ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton36);
jRadioButton36.setBorderPainted(true);
jRadioButton36.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BORDURESABLEBASDROITPATH)));
jRadioButton36.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton36ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton37);
jRadioButton37.setBorderPainted(true);
jRadioButton37.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BORDURESABLECOINBASDROITPATH)));
jRadioButton37.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton37ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
jPanel5.setLayout(jPanel5Layout);
jPanel5Layout.setHorizontalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addComponent(jRadioButton28)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton29))
.addGroup(jPanel5Layout.createSequentialGroup()
.addComponent(jRadioButton31)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton32))
.addGroup(jPanel5Layout.createSequentialGroup()
.addComponent(jRadioButton34)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton35)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addComponent(jRadioButton36)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton37))
.addComponent(jRadioButton30)
.addComponent(jRadioButton33))
.addContainerGap(927, Short.MAX_VALUE))
);
jPanel5Layout.setVerticalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jRadioButton37)
.addGroup(jPanel5Layout.createSequentialGroup()
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton28)
.addComponent(jRadioButton29)
.addComponent(jRadioButton30))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton31)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(jRadioButton32, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jRadioButton33, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jRadioButton35)
.addComponent(jRadioButton34)
.addComponent(jRadioButton36))))
.addGap(20, 20, 20))
);
jTabbedPane3.addTab("Sable", jPanel5);
buttonGroup1.add(jRadioButton38);
jRadioButton38.setBorderPainted(true);
jRadioButton38.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.ROUTEPATH)));
jRadioButton38.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton38ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
jPanel6.setLayout(jPanel6Layout);
jPanel6Layout.setHorizontalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jRadioButton38)
.addContainerGap(1008, Short.MAX_VALUE))
);
jPanel6Layout.setVerticalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jRadioButton38)
.addContainerGap(119, Short.MAX_VALUE))
);
jTabbedPane3.addTab("Route", jPanel6);
buttonGroup1.add(jRadioButton39);
jRadioButton39.setBorderPainted(true);
jRadioButton39.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.ROCPATH)));
jRadioButton39.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton39ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
jPanel7.setLayout(jPanel7Layout);
jPanel7Layout.setHorizontalGroup(
jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel7Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jRadioButton39)
.addContainerGap(1008, Short.MAX_VALUE))
);
jPanel7Layout.setVerticalGroup(
jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel7Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jRadioButton39)
.addContainerGap(119, Short.MAX_VALUE))
);
jTabbedPane3.addTab("Roc", jPanel7);
buttonGroup1.add(jRadioButton40);
jRadioButton40.setBorderPainted(true);
jRadioButton40.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.NEIGEPATH)));
jRadioButton40.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton40ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton41);
jRadioButton41.setBorderPainted(true);
jRadioButton41.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.GLACEPATH)));
jRadioButton41.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton41ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
jPanel8.setLayout(jPanel8Layout);
jPanel8Layout.setHorizontalGroup(
jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel8Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jRadioButton40)
.addGap(18, 18, 18)
.addComponent(jRadioButton41)
.addContainerGap(969, Short.MAX_VALUE))
);
jPanel8Layout.setVerticalGroup(
jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel8Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton41)
.addComponent(jRadioButton40))
.addContainerGap(119, Short.MAX_VALUE))
);
jTabbedPane3.addTab("Hiver", jPanel8);
jTabbedPane1.addTab("Terrain", jTabbedPane3);
buttonGroup1.add(jRadioButton42);
jRadioButton42.setBorderPainted(true);
jRadioButton42.setIcon(new ImageIcon(Textures.getObstacle(Textures.CHATEAU1HAUTGAUCHE)));
jRadioButton42.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton42ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton43);
jRadioButton43.setBorderPainted(true);
jRadioButton43.setIcon(new ImageIcon(Textures.getObstacle(Textures.CHATEAU1HAUTDROIT)));
jRadioButton43.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton43ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton44);
jRadioButton44.setBorderPainted(true);
jRadioButton44.setIcon(new ImageIcon(Textures.getObstacle(Textures.CHATEAU1BASGAUCHE)));
jRadioButton44.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton44ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton45);
jRadioButton45.setBorderPainted(true);
jRadioButton45.setIcon(new ImageIcon(Textures.getObstacle(Textures.CHATEAU1BASDROIT)));
jRadioButton45.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton45ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton46);
jRadioButton46.setBorderPainted(true);
jRadioButton46.setIcon(new ImageIcon(Textures.getObstacle(Textures.CHATEAU2HAUTGAUCHE)));
jRadioButton46.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton46ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton47);
jRadioButton47.setBorderPainted(true);
jRadioButton47.setIcon(new ImageIcon(Textures.getObstacle(Textures.CHATEAU2HAUTDROIT)));
jRadioButton47.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton47ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton48);
jRadioButton48.setBorderPainted(true);
jRadioButton48.setIcon(new ImageIcon(Textures.getObstacle(Textures.CHATEAU2BASGAUCHE)));
jRadioButton48.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton48ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton49);
jRadioButton49.setBorderPainted(true);
jRadioButton49.setIcon(new ImageIcon(Textures.getObstacle(Textures.CHATEAU2BASDROIT)));
jRadioButton49.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton49ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
jPanel9.setLayout(jPanel9Layout);
jPanel9Layout.setHorizontalGroup(
jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel9Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton42)
.addComponent(jRadioButton44))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton43)
.addComponent(jRadioButton45))
.addGap(18, 18, 18)
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton46)
.addComponent(jRadioButton48))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton47)
.addComponent(jRadioButton49))
.addContainerGap(915, Short.MAX_VALUE))
);
jPanel9Layout.setVerticalGroup(
jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel9Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel9Layout.createSequentialGroup()
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton46)
.addComponent(jRadioButton47))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton49)
.addComponent(jRadioButton48)))
.addGroup(jPanel9Layout.createSequentialGroup()
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton42)
.addComponent(jRadioButton43))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton45)
.addComponent(jRadioButton44))))
.addContainerGap(92, Short.MAX_VALUE))
);
jTabbedPane4.addTab("Chateaux", jPanel9);
jTabbedPane1.addTab("Spécial", jTabbedPane4);
buttonGroup1.add(jRadioButton4);
jRadioButton4.setBorderPainted(true);
jRadioButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.EAUHAUTGAUCHEPATH)));
jRadioButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton4ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton2);
jRadioButton2.setBorderPainted(true);
jRadioButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.EAUGAUCHEPATH)));
jRadioButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton2ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton17);
jRadioButton17.setBorderPainted(true);
jRadioButton17.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.EAUHAUTDROITPATH)));
jRadioButton17.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton17ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton1);
jRadioButton1.setBorderPainted(true);
jRadioButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.EAUDROITPATH)));
jRadioButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton1ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton3);
jRadioButton3.setBorderPainted(true);
jRadioButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.EAUHAUTPATH)));
jRadioButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton3ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton6);
jRadioButton6.setBorderPainted(true);
jRadioButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.EAUFONDBASPATH)));
jRadioButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton6ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton10);
jRadioButton10.setBorderPainted(true);
jRadioButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.EAUFONDDROITPATH)));
jRadioButton10.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton10ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton12);
jRadioButton12.setBorderPainted(true);
jRadioButton12.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.EAUVIRAGEHAUTDROITPATH)));
jRadioButton12.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton12ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton14);
jRadioButton14.setBorderPainted(true);
jRadioButton14.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.EAUVIRAGEHAUTGAUCHEPATH)));
jRadioButton14.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton14ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton13);
jRadioButton13.setBorderPainted(true);
jRadioButton13.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.EAUFONDGAUCHEPATH)));
jRadioButton13.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton13ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton16);
jRadioButton16.setBorderPainted(true);
jRadioButton16.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.EAUPATH)));
jRadioButton16.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton16ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton11);
jRadioButton11.setBorderPainted(true);
jRadioButton11.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.EAUVIRAGEBASDROITPATH)));
jRadioButton11.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton11ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton15);
jRadioButton15.setBorderPainted(true);
jRadioButton15.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.EAUVIRAGEBASGAUCHEPATH)));
jRadioButton15.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton15ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton9);
jRadioButton9.setBorderPainted(true);
jRadioButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BORDUREEAUGAUCHEPATH)));
jRadioButton9.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton9ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton7);
jRadioButton7.setBorderPainted(true);
jRadioButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BORDUREEAUBASPATH)));
jRadioButton7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton7ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton8);
jRadioButton8.setBorderPainted(true);
jRadioButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BORDUREEAUDROITPATH)));
jRadioButton8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton8ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton4)
.addComponent(jRadioButton2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jRadioButton3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton17))
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jRadioButton6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jRadioButton1))))
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jRadioButton9)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton8)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jRadioButton10)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton13))
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jRadioButton12)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton14)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton16)
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jRadioButton11)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton15)))))
.addContainerGap(846, Short.MAX_VALUE))
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jRadioButton11)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)
.addComponent(jRadioButton16))
.addComponent(jRadioButton15)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jRadioButton4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton2))
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()
.addComponent(jRadioButton3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jRadioButton6))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton17)
.addComponent(jRadioButton12)
.addComponent(jRadioButton14))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jRadioButton1)
.addComponent(jRadioButton10)
.addComponent(jRadioButton13)))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton8)
.addComponent(jRadioButton7)
.addComponent(jRadioButton9))))
.addGap(65, 65, 65))
);
jTabbedPane2.addTab("Eau", jPanel3);
buttonGroup1.add(jRadioButton18);
jRadioButton18.setBorderPainted(true);
jRadioButton18.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.MONTAGNEHAUTGAUCHEPATH)));
jRadioButton18.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton18ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton21);
jRadioButton21.setBorderPainted(true);
jRadioButton21.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.MONTAGNECENTREGAUCHEPATH)));
jRadioButton21.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton21ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton22);
jRadioButton22.setBorderPainted(true);
jRadioButton22.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.MONTAGNEBASGAUCHEPATH)));
jRadioButton22.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton22ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton19);
jRadioButton19.setBorderPainted(true);
jRadioButton19.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.MONTAGNEBASPATH)));
jRadioButton19.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton19ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton23);
jRadioButton23.setBorderPainted(true);
jRadioButton23.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.MONTAGNEHAUTPATH)));
jRadioButton23.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton23ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton20);
jRadioButton20.setBorderPainted(true);
jRadioButton20.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.MONTAGNECENTREPATH)));
jRadioButton20.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton20ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton24);
jRadioButton24.setBorderPainted(true);
jRadioButton24.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.MONTAGNEHAUTDROITPATH)));
jRadioButton24.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton24ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton25);
jRadioButton25.setBorderPainted(true);
jRadioButton25.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.MONTAGNECENTREDROITPATH)));
jRadioButton25.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton25ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton26);
jRadioButton26.setBorderPainted(true);
jRadioButton26.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.MONTAGNEBASDROITPATH)));
jRadioButton26.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton26ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton50);
jRadioButton50.setBorderPainted(true);
jRadioButton50.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.MONTAGNECORNERDROITPATH)));
jRadioButton50.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton50ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton51);
jRadioButton51.setBorderPainted(true);
jRadioButton51.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.MONTAGNECORNERGAUCHEPATH)));
jRadioButton51.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton51ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jRadioButton18)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton23)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton24)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton50))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jRadioButton21)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton20)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton25)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton51))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jRadioButton22)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton19)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton26)))
.addContainerGap(927, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(jRadioButton24, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jRadioButton23, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jRadioButton18, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(jRadioButton50))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jRadioButton20)
.addComponent(jRadioButton21)
.addComponent(jRadioButton25)
.addComponent(jRadioButton51))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jRadioButton22)
.addComponent(jRadioButton19)
.addComponent(jRadioButton26))
.addContainerGap(65, Short.MAX_VALUE))
);
jTabbedPane2.addTab("Montagne", jPanel2);
buttonGroup1.add(jRadioButton27);
jRadioButton27.setBorderPainted(true);
jRadioButton27.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/delete.gif"))); // NOI18N
jRadioButton27.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton27ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
jPanel4.setLayout(jPanel4Layout);
jPanel4Layout.setHorizontalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jRadioButton27)
.addContainerGap(991, Short.MAX_VALUE))
);
jPanel4Layout.setVerticalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jRadioButton27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(102, 102, 102))
);
jTabbedPane2.addTab("Supprimer", jPanel4);
jTabbedPane1.addTab("Obstacle", jTabbedPane2);
buttonGroup1.add(jRadioButton52);
jRadioButton52.setBorderPainted(true);
jRadioButton52.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BARRIERECOINHAUTGAUCHEPATH)));
jRadioButton52.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton52ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton53);
jRadioButton53.setBorderPainted(true);
jRadioButton53.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BARRIEREGAUCHEPATH)));
jRadioButton53.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton53ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton54);
jRadioButton54.setBorderPainted(true);
jRadioButton54.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BARRIERECOINBASGAUCHEPATH)));
jRadioButton54.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton54ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton55);
jRadioButton55.setBorderPainted(true);
jRadioButton55.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BARRIERECOINBASDROITPATH)));
jRadioButton55.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton55ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton56);
jRadioButton56.setBorderPainted(true);
jRadioButton56.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BARRIEREBASPATH)));
jRadioButton56.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton56ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton57);
jRadioButton57.setBorderPainted(true);
jRadioButton57.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BARRIERECOINFINGAUCHEPATH)));
jRadioButton57.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton57ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton58);
jRadioButton58.setBorderPainted(true);
jRadioButton58.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BARRIEREDROITFINPATH)));
jRadioButton58.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton58ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton59);
jRadioButton59.setBorderPainted(true);
jRadioButton59.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BARRIEREGAUCHEFINPATH)));
jRadioButton59.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton59ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton60);
jRadioButton60.setBorderPainted(true);
jRadioButton60.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BARRIERECOINHAUTDROITPATH)));
jRadioButton60.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton60ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton61);
jRadioButton61.setBorderPainted(true);
jRadioButton61.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BARRIEREDROITPATH)));
jRadioButton61.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton61ActionPerformed(evt);
}
});
buttonGroup1.add(jRadioButton62);
jRadioButton62.setBorderPainted(true);
jRadioButton62.setIcon(new javax.swing.ImageIcon(getClass().getResource(Textures.BARRIERECOINFINDROITPATH)));
jRadioButton62.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton62ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
jPanel10.setLayout(jPanel10Layout);
jPanel10Layout.setHorizontalGroup(
jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel10Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel10Layout.createSequentialGroup()
.addComponent(jRadioButton52)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton60)
.addGap(18, 18, 18)
.addComponent(jRadioButton59)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton58))
.addGroup(jPanel10Layout.createSequentialGroup()
.addComponent(jRadioButton54)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton55)
.addGap(18, 18, 18)
.addComponent(jRadioButton53)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton61)
.addGap(18, 18, 18)
.addComponent(jRadioButton57)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton56)
.addGap(6, 6, 6)
.addComponent(jRadioButton62)))
.addContainerGap(822, Short.MAX_VALUE))
);
jPanel10Layout.setVerticalGroup(
jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel10Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton52)
.addComponent(jRadioButton60)
.addComponent(jRadioButton59)
.addComponent(jRadioButton58))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton57)
.addComponent(jRadioButton62)
.addComponent(jRadioButton55)
.addComponent(jRadioButton54)
.addComponent(jRadioButton53)
.addComponent(jRadioButton61)
.addComponent(jRadioButton56))
.addGap(92, 92, 92))
);
jTabbedPane5.addTab("Barriere", jPanel10);
jTabbedPane1.addTab("Destructible", jTabbedPane5);
jMenu1.setText("Fichier");
creerMap.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK));
creerMap.setText("Créer carte");
creerMap.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
creerMapActionPerformed(evt);
}
});
jMenu1.add(creerMap);
chargerMap.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_MASK));
chargerMap.setText("Charger carte");
chargerMap.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
chargerMapActionPerformed(evt);
}
});
jMenu1.add(chargerMap);
sauverMap.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
sauverMap.setText("Enregistrer carte");
sauverMap.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
sauverMapActionPerformed(evt);
}
});
jMenu1.add(sauverMap);
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(aireDeJeu1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTabbedPane1, 0, 0, Short.MAX_VALUE))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(24, 24, 24)
.addComponent(aireDeJeu1, javax.swing.GroupLayout.PREFERRED_SIZE, 601, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 206, Short.MAX_VALUE)
.addContainerGap())
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73207104",
"0.7291319",
"0.7291319",
"0.7291319",
"0.7286366",
"0.7249061",
"0.7213687",
"0.7208364",
"0.7196237",
"0.7191069",
"0.7185096",
"0.7159581",
"0.7148432",
"0.70938945",
"0.707995",
"0.7056585",
"0.69874734",
"0.697786",
"0.6955647",
"0.6953296",
"0.69459146",
... | 0.0 | -1 |
GENLAST:event_jRadioButton62ActionPerformed Cas d'un obstacle indestructible | public void indestructible() {
indestructible = true;
chateau = false;
suppression = false;
bordure = false;
destructible = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void jRadioButtonShootAlternativelyActionPerformed() {\r\n\t\tjRadioButtonShootAlternatively.setSelected(true);\r\n\t\tjRadioButtonShootUntilWater.setSelected(false);\r\n\t\tgame.setGameMode(GameMode.ALTERNATIVELY);\r\n\t}",
"private void jRadioButtonShootUntilWaterActionPerformed() {\r\n\t\tjRadioButton... | [
"0.6390577",
"0.6317305",
"0.62816775",
"0.61594",
"0.60998756",
"0.59919655",
"0.5947859",
"0.59315336",
"0.58981824",
"0.5896171",
"0.58872813",
"0.5869251",
"0.58539903",
"0.5853116",
"0.5832131",
"0.57964087",
"0.57890093",
"0.57840204",
"0.5780059",
"0.57799125",
"0.5774... | 0.0 | -1 |
cas d'un obstacle destructible | public void destructible() {
indestructible = false;
chateau = false;
suppression = false;
bordure = false;
destructible = true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeObstacle(Coord obstacleCoord);",
"public void enleverlaDerniereObs() {\n\n\t\tobstaclesList.remove(obstaclesList.size()-1);\n\t}",
"public void setConstructingObstacle(Obstacle obstacle);",
"public Obstacle getConstructingObstacle();",
"public void enleverTousLesObs() {\n\n\t\tobstaclesLi... | [
"0.7243757",
"0.67222494",
"0.66820025",
"0.66122556",
"0.63502973",
"0.6219873",
"0.6148627",
"0.6130158",
"0.59920007",
"0.5972085",
"0.59188473",
"0.5871468",
"0.5846316",
"0.57242924",
"0.5707214",
"0.57058007",
"0.567889",
"0.5676267",
"0.56483907",
"0.5648148",
"0.55941... | 0.62275195 | 5 |
End of variables declaration//GENEND:variables Accesseur de l'aire de jeu | public AireDeJeu getAireDeJeu1() {
return aireDeJeu1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getEnJeu(){\n\t\treturn MusiqueFiducial.enJeu;\n\t}",
"public void choixduJeu() {\n afficheMessage(\"*- Choisissez le jeu auquel vous voulez jouer : \\n- R pour Recherche +/-\\n- M pour Mastermind\");\n choixJeu = Console.saisieListeDeChoix(\"R|M\");\n afficheMessage(\"*- Choisiss... | [
"0.67899424",
"0.6774136",
"0.66901064",
"0.6540278",
"0.6536156",
"0.6343962",
"0.621862",
"0.6168055",
"0.6111319",
"0.60796005",
"0.60588884",
"0.6038397",
"0.6034933",
"0.60298246",
"0.5976911",
"0.5973386",
"0.59345454",
"0.59167886",
"0.5912154",
"0.589324",
"0.5885259"... | 0.5741245 | 35 |
TODO Autogenerated method stub | public static void main(String[] args) {
QuestEx3.main(null);
DefaultClassEx1.main(null);
/* DefaultClassEx2는 다른 패키지에 있는 클래스인데 접근제한자가 default이
* 사용할 수 없기 때문에 에러 발생
* DefaultClassEx2.main(null);
*/
//객체만들기
//Point p1; // ;으로 끝나면 객체 선언만 = 이러한 객체 쓸 겁니다.
Point p1 = new Point(); //Point()=생성자 =>new를 통해서 Point()생성
p1.x1 = 10;
// p1.x2 = 10; = 에러, Point클래스의 x2는 private이기 때문에 다른 클래스에서 사용 불가(나만 사용 가능)
p1 = new Point(1,2);
// p1 = new Point(3,4,5); 3개짜리 생성자를 만들지 않아서 실행ㄴ
// p1 = new Point(1);
} | {
"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 |
A MachinePlayer that plays the SIDE pieces in GAME. | MachinePlayer(Piece side, Game game) {
super(side, game);
_piece = side;
_game = game;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n boolean playWithMachine =false;\n String s1 = JOptionPane.showInputDialog(\"Do you want to play with a Machine?(Y/N)\");\n String s2 =JOptionPane.showInputDialog(\"Input how many rows you want to have:\");\n int rowSize = Integer.parseInt(s2);\... | [
"0.6163169",
"0.592163",
"0.5839113",
"0.5817721",
"0.58096176",
"0.5781188",
"0.5742896",
"0.573469",
"0.5701701",
"0.5684113",
"0.5675626",
"0.5671511",
"0.56261957",
"0.56148815",
"0.5599194",
"0.5597582",
"0.5590696",
"0.55790585",
"0.5546264",
"0.55331504",
"0.55284435",... | 0.74232775 | 0 |
RETURN the best move for PLAYER on BOARD at DEPTH with CUTOFF. | private Move findBestMove(Piece player, Board board, int depth,
double cutoff) {
Board newBoard = new Board(board);
Move bestSoFar = newBoard.iterator().next();
Iterator<Move> moveIterator = board.iterator();
if (newBoard.piecesContiguous(player)) {
return bestSoFar;
} else if (newBoard.piecesContiguous(player.opposite())) {
return guessBestMove(player, newBoard, cutoff);
} else if (depth == 0) {
return guessBestMove(player, newBoard, cutoff);
}
while (moveIterator.hasNext()) {
Move nextMove = moveIterator.next();
newBoard.makeMove(nextMove);
int boardValue = eval(newBoard);
Move response = findBestMove(player.opposite(),
newBoard, depth - 1, -boardValue);
newBoard.makeMove(response);
int responseVal = eval(newBoard);
newBoard.retract();
newBoard.retract();
if (-responseVal > boardValue) {
boardValue = -responseVal;
bestSoFar = nextMove;
if (boardValue >= cutoff) {
break;
}
}
}
return bestSoFar;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PrioritizedMove getBestMoveFor(int player, int desiredLength);",
"private Move guessBestMove(Piece player, Board board, double cutoff) {\n Board newBoard = new Board(board);\n Move bestSoFar;\n Iterator<Move> moveIterator = board.iterator();\n bestSoFar = moveIterator.next();\n ... | [
"0.72155243",
"0.69212574",
"0.6911451",
"0.68819594",
"0.6869371",
"0.6729692",
"0.6674196",
"0.6627358",
"0.65469646",
"0.64872694",
"0.6434526",
"0.63807106",
"0.6311301",
"0.6292531",
"0.6251909",
"0.6250384",
"0.6181141",
"0.61495805",
"0.61349434",
"0.6125883",
"0.61100... | 0.7137464 | 1 |
Static evaluation. RETURN guessed best move for PLAYER on BOARD with CUTOFF value. | private Move guessBestMove(Piece player, Board board, double cutoff) {
Board newBoard = new Board(board);
Move bestSoFar;
Iterator<Move> moveIterator = board.iterator();
bestSoFar = moveIterator.next();
newBoard.retract();
while (moveIterator.hasNext()) {
Move nextMove = moveIterator.next();
int val = eval(newBoard);
newBoard.makeMove(nextMove);
if (eval(newBoard) > val) {
bestSoFar = nextMove;
val = eval(newBoard);
if (val >= cutoff) {
break;
}
}
newBoard.retract();
}
return bestSoFar;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Move getBestMove() {\n //System.out.println(\"AI chooses: \" + m.toString());\n return moves.get((int) (Math.random() * moves.size()));\n }",
"PrioritizedMove getBestMoveFor(int player, int desiredLength);",
"private Move findBestMove(Piece player, Board board, int depth,\n double c... | [
"0.6945871",
"0.6817282",
"0.679486",
"0.677624",
"0.6584352",
"0.6533806",
"0.64876616",
"0.6459472",
"0.6454787",
"0.6365835",
"0.6344618",
"0.6331277",
"0.63302064",
"0.6146459",
"0.6132389",
"0.61292",
"0.6127379",
"0.60986114",
"0.6092965",
"0.60785896",
"0.6060907",
"... | 0.71956074 | 0 |
Returns an evaluation of the BOARD. Higher the number the better move. | private static int eval(Board board) {
if (board.piecesContiguous(board.turn())) {
return Integer.MAX_VALUE;
} else if (board.piecesContiguous(board.turn().opposite())) {
return Integer.MIN_VALUE;
} else {
Random r = new Random();
return r.nextInt();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int evalBoard(){\n if (wins('o')){\n return 3;\n }\n // Return 0 if human wins\n else if (wins('b')){\n return 0;\n }\n //Return 2 if game is draw\n else if (isDraw()){\n return 2;\n }\n // Game is not a draw and... | [
"0.7617169",
"0.7289168",
"0.7030342",
"0.6941195",
"0.6888151",
"0.6871574",
"0.66517276",
"0.6566512",
"0.6529565",
"0.64574015",
"0.6331276",
"0.6327276",
"0.6288584",
"0.62858695",
"0.6283597",
"0.6273649",
"0.6269894",
"0.6235395",
"0.62340355",
"0.62224513",
"0.61980414... | 0.6812734 | 6 |
========================================================================== close the socket and set it to null. | public static void closeSocket(Socket socket) {
try {
if (socket != null) {
socket.close();
}
} catch (Exception e) {
logger.error(e);
} finally {
socket = null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void close() {\r\n\t\tif (socket != null)\r\n\t\t\tsocket.close();\r\n\t}",
"public void closeSocket () \n {\n try {\n // close the open server socket\n server.close();\n // send it a message to make it stop waiting immediately\n // (not really necessa... | [
"0.77513826",
"0.7733371",
"0.7683729",
"0.7623463",
"0.74591285",
"0.73381615",
"0.7336408",
"0.72714347",
"0.7267268",
"0.725846",
"0.7258102",
"0.7174336",
"0.71131825",
"0.7112724",
"0.71056074",
"0.7086065",
"0.7071412",
"0.705085",
"0.6966943",
"0.69630486",
"0.69564754... | 0.6938424 | 23 |
end closeSocket ========================================================================== close the inputStream and set it to null. | public static void closeInputStream(InputStream inputStream) {
try {
if (inputStream != null) {
inputStream.close();
}
} catch (Exception e) {
logger.error(e);
} finally {
inputStream = null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void closeSocket() {\n try {\n if (outputStream != null && clientSocket != null) {\n outputStream.close();\n clientSocket.close();\n }\n } catch (IOException e) {\n getLog().error(\"Error while closing TCP client socket connection\", e);\... | [
"0.73350865",
"0.73047256",
"0.7241947",
"0.7186679",
"0.70460933",
"0.6982532",
"0.69792193",
"0.6943699",
"0.688803",
"0.6848637",
"0.68414474",
"0.6832517",
"0.68175673",
"0.6760403",
"0.67516136",
"0.67506146",
"0.6732863",
"0.6725753",
"0.6722311",
"0.66969043",
"0.66871... | 0.0 | -1 |
end closeInputStream ========================================================================== close the outputStream and set it to null. | public static void closeOutputStream(OutputStream outputStream) {
try {
if (outputStream != null) {
outputStream.close();
}
} catch (Exception e) {
logger.error(e);
} finally {
outputStream = null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void closeStream() {\n output.close();\n input.close();\n }",
"private void closeStream() throws IOException {\n if (originalInputStream != inputStream) {\n // Close the byte input stream or file input stream, if either is the current one\n inputStream.close()... | [
"0.7035149",
"0.68145597",
"0.6763907",
"0.6754074",
"0.6741088",
"0.66937166",
"0.6620728",
"0.6610746",
"0.6597534",
"0.657408",
"0.6549938",
"0.65319955",
"0.6502428",
"0.6367893",
"0.6324992",
"0.6307689",
"0.6251024",
"0.61986643",
"0.6179735",
"0.6163559",
"0.6085795",
... | 0.7013691 | 1 |
end closeOutputStream ========================================================================== close the fileWriter and set it to null. | public static void closeFileWriter(FileWriter fileWriter) {
try {
if (fileWriter != null) {
fileWriter.close();
}
} catch (Exception e) {
logger.error(e);
} finally {
fileWriter = null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void destroy() {\n if (fileWriter != null) {\n try {\n fileWriter.close();\n } catch (IOException e) {\n }\n }\n }",
"public void close(){\r\n\t\tif (this.fileWriter != null){\r\n\t\t\ttry {\r\n\t\t\t\tthis.fileWriter.flush();\r\n\t\t\t\tthis.fileWriter.close();\r... | [
"0.72063845",
"0.7130389",
"0.70940155",
"0.67562175",
"0.6745078",
"0.661411",
"0.6602078",
"0.6567235",
"0.65627855",
"0.6520122",
"0.6381603",
"0.63683397",
"0.6319967",
"0.62746525",
"0.62546855",
"0.62245405",
"0.619805",
"0.61969286",
"0.6193174",
"0.61878514",
"0.61402... | 0.57392305 | 66 |
end closeFileWriter ========================================================================== close the printWriter and set it to null. | public static void closePrintWriter(PrintWriter printWriter) {
try {
if (printWriter != null) {
printWriter.close();
}
} catch (Exception e) {
logger.error(e);
} finally {
printWriter = null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void close(){\r\n\t\tif (this.fileWriter != null){\r\n\t\t\ttry {\r\n\t\t\t\tthis.fileWriter.flush();\r\n\t\t\t\tthis.fileWriter.close();\r\n\t\t\t\tthis.fileWriter = null;\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlogger.error(\"Cannot close the file handle \"+this.myfilename+\". Your results might be ... | [
"0.70029336",
"0.6801722",
"0.6731078",
"0.62859523",
"0.61893815",
"0.61560583",
"0.61490285",
"0.60975677",
"0.6069972",
"0.60538864",
"0.6052641",
"0.6018175",
"0.6009989",
"0.596432",
"0.5920088",
"0.5869666",
"0.58187824",
"0.58077794",
"0.5715527",
"0.5701234",
"0.56973... | 0.59196246 | 15 |
check whether the id exists | @Override
public void update(BookUpdateViewModel viewModel) {
Book bookDb = repository.findById(viewModel.getId())
.orElseThrow(RecordNotFoundException::new);
// check the validity of the fields
if (viewModel.getTitle().strip().length() < 5) {
throw new DomainValidationException();
}
// apply the update
BeanUtils.copyProperties(viewModel, bookDb);
// save and flush
repository.saveAndFlush(bookDb);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean existId(String id) {\n\t\treturn false;\n\t}",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasId();",
"boolean hasId();"... | [
"0.81447065",
"0.8128852",
"0.8128852",
"0.8128852",
"0.8128852",
"0.8128852",
"0.8128852",
"0.8128852",
"0.8128852",
"0.8128852",
"0.80533636",
"0.80533636",
"0.80533636",
"0.80533636",
"0.80533636",
"0.80533636",
"0.80533636",
"0.80533636",
"0.80533636",
"0.80533636",
"0.80... | 0.0 | -1 |
check whether the id exists | @Override
public void delete(int id) {
Book bookDb = repository.findById(id)
.orElseThrow(RecordNotFoundException::new);
// delete
repository.delete(bookDb);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean existId(String id) {\n\t\treturn false;\n\t}",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasId();",
"boolean hasId();"... | [
"0.8145467",
"0.8128612",
"0.8128612",
"0.8128612",
"0.8128612",
"0.8128612",
"0.8128612",
"0.8128612",
"0.8128612",
"0.8128612",
"0.80534816",
"0.80534816",
"0.80534816",
"0.80534816",
"0.80534816",
"0.80534816",
"0.80534816",
"0.80534816",
"0.80534816",
"0.80534816",
"0.805... | 0.0 | -1 |
returns the child delta that concerns the given status or null if not found | private static IRodinElementDelta getStatusDelta(
IRodinElementDelta delta, IPSStatus status) {
final IRodinElement element = delta.getElement();
if (element.isRoot()
&& element.getElementType() != IPSRoot.ELEMENT_TYPE) {
return null;
}
if (status.equals(element)) {
return delta;
} else {
final IRodinElementDelta[] childred = delta
.getAffectedChildren();
for (IRodinElementDelta child : childred) {
final IRodinElementDelta found = getStatusDelta(child,
status);
if (found != null) {
return found;
}
}
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.ads.googleads.v14.common.ParentalStatusInfo getParentalStatus();",
"com.google.ads.googleads.v6.resources.ParentalStatusView getParentalStatusView();",
"private Optional<Integer> getDurationForStatus(Status s) {\n Integer customD = durationPerStatus.get(s);\n if (customD != nul... | [
"0.5249681",
"0.506612",
"0.49834773",
"0.4976131",
"0.4908032",
"0.482956",
"0.4826097",
"0.4826097",
"0.48070827",
"0.48046297",
"0.47474056",
"0.47299975",
"0.47267208",
"0.47169772",
"0.46741253",
"0.46741253",
"0.46741253",
"0.46741253",
"0.46741253",
"0.46741253",
"0.46... | 0.7050661 | 0 |
Registers the input manager into the Part Service of the current workbench window. | public void register() {
workbenchWindow.getPartService().addPartListener(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void registerInput();",
"public void partInputChanged(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}",
"public void registerGui()\n {\n }",
"void registerInputConnector(String name, InputConnector in);",
"public InputManager(){\n this.view = new View();\n }",
"pu... | [
"0.61353517",
"0.5847808",
"0.5796647",
"0.5789696",
"0.5615023",
"0.5497306",
"0.5494796",
"0.5471079",
"0.5389068",
"0.53305537",
"0.5318489",
"0.5304716",
"0.5254034",
"0.5209767",
"0.5152996",
"0.5118301",
"0.5117855",
"0.51091635",
"0.5102312",
"0.50947833",
"0.5071917",... | 0.6506493 | 0 |
Unregisters the input manager into the Part Service of the current workbench window. | public void unregister() {
workbenchWindow.getPartService().removePartListener(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void uninstall()\r\n {\r\n // do not listen to any other key strokes\r\n editor.getViewer().removeVerifyKeyListener(this);\r\n\r\n editor.getViewer().getTextWidget().removeFocusListener(this);\r\n\r\n editor.setStatusMessage(\"\");\r\n }",
"void unregister() {\n f... | [
"0.6274079",
"0.5975236",
"0.59311944",
"0.5926816",
"0.587322",
"0.58146006",
"0.5746716",
"0.5731488",
"0.5725674",
"0.5696755",
"0.56939596",
"0.5640031",
"0.56325597",
"0.5606371",
"0.5589077",
"0.5571469",
"0.55628675",
"0.5550463",
"0.5550463",
"0.5543182",
"0.5535611",... | 0.69908625 | 0 |
Set BioActive as true | public void BioActive(boolean what) {
this.bioactive = what;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void activate(){\r\n\t\tactive=true;\r\n\t}",
"public void setActive() {\n\t\tactive = true;\n\t}",
"public void setActive(boolean active);",
"public void setActive(boolean active);",
"public void setActive(boolean active);",
"public void setActive( boolean tof ) {\n\t\tthis.active = tof;\n\t}",
... | [
"0.73383534",
"0.7320977",
"0.71975935",
"0.71975935",
"0.71975935",
"0.71412796",
"0.7134274",
"0.7107172",
"0.70953536",
"0.70790356",
"0.7062895",
"0.70171225",
"0.69957185",
"0.6990212",
"0.6982838",
"0.6965381",
"0.6958259",
"0.693933",
"0.69111514",
"0.68937427",
"0.689... | 0.85174197 | 0 |
each molecule can only have one parents | public void AddParent(String smiles) {
this.ParentSMILES = smiles;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean hasParent(int i) {\n return i > 1;\n }",
"boolean coreHasParent();",
"public Boolean isParentable();",
"boolean hasParent();",
"boolean hasParent();",
"public boolean isParent();",
"public boolean hasNoParents()\r\n\t{\treturn (this.strongParents.isEmpty()) && (this.weakParent... | [
"0.6610727",
"0.6585432",
"0.6578566",
"0.6529994",
"0.6529994",
"0.64036906",
"0.62119657",
"0.6109839",
"0.5884651",
"0.588154",
"0.58418983",
"0.583645",
"0.5793699",
"0.5744275",
"0.5736173",
"0.5710679",
"0.5706738",
"0.5697892",
"0.56849635",
"0.56758076",
"0.5644272",
... | 0.0 | -1 |
get number of child | public Integer GetNumOfChild() {
return this.ChildSMILES.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getChildCount();",
"public int getChildCount();",
"public abstract int getNumChildren();",
"int childCount(){\n return this.children.size();\n }",
"public int getChildCount() {return children.size();}",
"public int getChildCount () {\n return childCount;\n }",
"public int getChi... | [
"0.8622003",
"0.84923923",
"0.8408869",
"0.81037176",
"0.8091758",
"0.80144566",
"0.7916539",
"0.7889161",
"0.7886554",
"0.7837714",
"0.7822067",
"0.7771389",
"0.77532077",
"0.7696542",
"0.7683337",
"0.76787275",
"0.76351523",
"0.7611459",
"0.75313085",
"0.75280845",
"0.74597... | 0.7714461 | 13 |
return child in arraylist | public ArrayList<String> GetChild(){
return this.ChildSMILES;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object[] getChildArray();",
"Object getChild(int groupPosition, int childPosition);",
"public List<T> accessReadChildElements(T obj);",
"public List<RealObject> getChildren();",
"public ChildType getChildAt( int index );",
"public ArrayList<Personne> findChilds(int id) {\n\t\tArrayList<Personne> pe = new... | [
"0.6725172",
"0.6164368",
"0.6163671",
"0.6089241",
"0.60796946",
"0.60354817",
"0.6007527",
"0.59912896",
"0.59612787",
"0.59157974",
"0.5840064",
"0.581055",
"0.58000064",
"0.5774252",
"0.5708846",
"0.5704854",
"0.57043356",
"0.5696577",
"0.56945735",
"0.5685681",
"0.568276... | 0.60764885 | 5 |
Associates the exceptions thrown by other classes. | public GoatRunnerException(String reason){
this.reason = reason;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void bindThrownExceptions() {\n\n\t\tif (this.thrownExceptions != null\n\t\t\t&& this.binding != null\n\t\t\t&& this.binding.thrownExceptions != null) {\n\t\t\tint thrownExceptionLength = this.thrownExceptions.length;\n\t\t\tint length = this.binding.thrownExceptions.length;\n\t\t\tif (length == thrownExcep... | [
"0.62799835",
"0.6161495",
"0.60586435",
"0.599619",
"0.59856594",
"0.5623352",
"0.5585503",
"0.55651444",
"0.5511753",
"0.54891634",
"0.54834926",
"0.5481317",
"0.5478557",
"0.54580945",
"0.54457563",
"0.54371804",
"0.54309005",
"0.5421949",
"0.53805476",
"0.5372601",
"0.537... | 0.0 | -1 |
Returns the Exception Message. | public String toString(){
return reason;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMessage ()\n {\n String message = super.getMessage();\n\n if (message == null && exception != null) {\n return exception.getMessage();\n } else {\n return message;\n }\n }",
"public String getMessage() {\n\t\tif (iCause == null) { return super.getMessage(); }\n\t\... | [
"0.8091584",
"0.77016854",
"0.7618527",
"0.7602285",
"0.7602285",
"0.7602285",
"0.7602285",
"0.7602285",
"0.7602285",
"0.7602285",
"0.7602285",
"0.7602285",
"0.7602285",
"0.7602285",
"0.7602285",
"0.7602285",
"0.7602285",
"0.7602285",
"0.7602285",
"0.7602285",
"0.7594511",
... | 0.0 | -1 |
Methods for fetching userrelated data. | public interface UserDao extends GenericDao<User, Long> {
/**
* Loads user by his username and also fetches his profile photo.
* @param username Username.
* @return User with his profile photo or null if no user is found.
*/
@Query("SELECT u FROM User u LEFT JOIN FETCH u.profilePhoto WHERE u.username = :username")
User findByUsernameFetchProfilePhoto(@Param("username") String username);
/**
* Loads user by his username.
* @param username Username.
* @return User or null if no user is found.
*/
@Query("SELECT u FROM User u LEFT JOIN FETCH u.profilePhoto WHERE u.username = :username")
User findByUsername(@Param("username") String username);
/**
* Returns true if user with this username already exists in database.
* @param username Username.
* @return True if user with this username already exists in database.
*/
boolean existsByUsername(String username);
/**
* Returns the number of users which are using the same profile photo.
* @param profilePhoto Profile photo.
* @return Number of users with same profile photo.
*/
long countUsersByProfilePhoto(KivbookImage profilePhoto);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void retrieveAllUserData() {\n retrieveBasicUserInfo();\n retrieveUsersRecentMedia();\n retrieveUsersLikedMedia();\n }",
"public User getUserData();",
"private void fetchUser() {\n UserFetcher userFetcher = new UserFetcher();\n userFetcher.setListener(this);\n ... | [
"0.6704291",
"0.6700745",
"0.65110075",
"0.6399383",
"0.6245603",
"0.61492795",
"0.6131907",
"0.608717",
"0.60778606",
"0.60570616",
"0.6057012",
"0.6031378",
"0.6027413",
"0.59902424",
"0.5981411",
"0.59810317",
"0.59723306",
"0.59701717",
"0.5962261",
"0.59593093",
"0.59537... | 0.0 | -1 |
Loads user by his username and also fetches his profile photo. | @Query("SELECT u FROM User u LEFT JOIN FETCH u.profilePhoto WHERE u.username = :username")
User findByUsernameFetchProfilePhoto(@Param("username") String username); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void loadUserInformation() {\n FirebaseUser user = mAuth.getCurrentUser();\n\n if (user != null) {\n if (user.getPhotoUrl() != null) {\n Glide.with(this).load(user.getPhotoUrl().toString()).into(profilePic);\n }\n if (user.getDisplayName() != nu... | [
"0.7951851",
"0.7242382",
"0.72147876",
"0.6886083",
"0.68617564",
"0.6839651",
"0.67888755",
"0.6783322",
"0.66986984",
"0.6692214",
"0.6677945",
"0.6664539",
"0.6662177",
"0.6660652",
"0.6637927",
"0.6570739",
"0.6546493",
"0.6537589",
"0.65325695",
"0.65323514",
"0.6532264... | 0.65865415 | 15 |
Loads user by his username. | @Query("SELECT u FROM User u LEFT JOIN FETCH u.profilePhoto WHERE u.username = :username")
User findByUsername(@Param("username") String username); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"User loadUser( String username ) throws UserNotFoundException;",
"User loadUserByUserName(String userName);",
"@Override\n\tpublic UserDetails loadUserByUsername(String arg0) throws UsernameNotFoundException {\n\t\tList <UserDetailsPojo> list=dao.getUserByName(arg0);\n\t\tif(list==null || list.size()==0){\t\t\... | [
"0.8412283",
"0.7905076",
"0.77832603",
"0.7638179",
"0.7502093",
"0.7478323",
"0.747785",
"0.7462331",
"0.732321",
"0.7268849",
"0.72601855",
"0.71939415",
"0.715689",
"0.715689",
"0.715689",
"0.71474767",
"0.7143445",
"0.71417123",
"0.7138249",
"0.7133511",
"0.7129361",
"... | 0.0 | -1 |
Returns true if user with this username already exists in database. | boolean existsByUsername(String username); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean existsUser(String username);",
"public static boolean userExists(String username) throws IOException, SQLException {\n ArrayList<String> user = retrieveUser(username);\n if (!user.isEmpty()) {\n if (user.get(0).equals(username)) {\n System.out.println(\"User... | [
"0.78494066",
"0.7653819",
"0.74396783",
"0.7429891",
"0.7411687",
"0.7376789",
"0.73606133",
"0.73323953",
"0.73231024",
"0.73159564",
"0.7281619",
"0.7256522",
"0.725573",
"0.7244145",
"0.7214674",
"0.7188049",
"0.71508056",
"0.7139255",
"0.71308523",
"0.7105481",
"0.709423... | 0.72738737 | 11 |
Returns the number of users which are using the same profile photo. | long countUsersByProfilePhoto(KivbookImage profilePhoto); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getProfilesCount();",
"int getUserCount();",
"int getUserCount();",
"int getUsersCount();",
"int getUsersCount();",
"int getUsersCount();",
"public int getUserCount() {\n return user_.size();\n }",
"public int getUserCount() {\n return instance.getUserCount();\n }",
... | [
"0.6843029",
"0.6661981",
"0.6661981",
"0.66045797",
"0.66045797",
"0.66045797",
"0.6591472",
"0.6538869",
"0.6298601",
"0.6275247",
"0.6256711",
"0.62056947",
"0.6189601",
"0.6177308",
"0.61715627",
"0.61520475",
"0.61515146",
"0.61200804",
"0.60731477",
"0.60716504",
"0.605... | 0.78559226 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.