query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Returns encoding of given file. A folder also may be passed to this method in an attempt to get the encoding for all files in, for example, a Java source root. | public static Charset getEncoding (FileObject file) {
if (file == null) {
throw new IllegalArgumentException();
}
List<Charset> delegates = new ArrayList<Charset>();
for (FileEncodingQueryImplementation impl : Lookup.getDefault().lookupAll(FileEncodingQueryImplementation.clas... | [
"protected abstract Charset getEncodingFor(Path file);",
"public Charset getFileEncoding() {\n return fileEncoding;\n }",
"public static String getFileEncoding(@NotNull VirtualFile virtualFile) {\n final Charset fileCharset = EncodingManager.getInstance().getEncoding(virtualFile, true);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Receives Product data from an external screen for further modification. | public void receiveProduct(Product product) {
productToModify = product;
productIdTextField.setText(Integer.toString(product.getId()));
productNameTextField.setText(product.getName());
productInventoryTextField.setText(Integer.toString(product.getStock()));
productPriceTextField... | [
"private void displayProduct() {\n Log.d(TAG, \"displayProduct: prod = \" + mProduct);\n\n mTxtProdName.setText(mProduct.getName());\n return;\n }",
"private void getProductDetails() {\r\n\t\ttry {\r\n\r\n\t\t\tAsyncTaskHelper asyncTask = new AsyncTaskHelper(ProductDetailActivity.this);\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Designated constructor for Apple Class Defaults Name: "Apple" weight: 1.5 buyValue: 10 sellValue: 2 | public Apple(){
super("Apple", 1.5, 10, 2);
} | [
"public Fruit(String name, double weight, int price){\n super(name);\n this.weight = weight;\n this.priceKg = price;\n }",
"public Apple() {\n\t\theal = 150;\n\t}",
"public Apple( String offer) {\n\t\tsuper(cost,offer);\n\t\t\n\t\t\n\t}",
"protected Apple(int size) {\r\n\t\tsuper(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onSharedPreferenceChanged(SharedPreferences arg0, String arg1) {
super.onResume();
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the directory for the user's public pictures directory. | public static File getPublicAlbumStorageDir(String albumName) {
File file = new File(Environment.getExternalStoragePublicDirectory(
Environment.DIRECTORY_PICTURES), albumName);
if (!file.exists()) {
file.mkdir();
} else {
Log.e("FILE STORAGE", "Directory n... | [
"public static String getPictureDirectory() {\n return ROOT_DIR + File.separator + DATA_DIR + File.separator + PICTURE_DIR;\n }",
"String getImageBaseDirectory();",
"public String getRutaImagen(){\n return System.getProperty(\"user.dir\")+\"/\"+this.usuario.getImagen();\n }",
"public stati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getAuthor returns the name of the author of the book | public String getAuthor() {
return this.author;
} | [
"public String getAuthorName() {\n\t\treturn getAuthor().getName(); \n\t}",
"public String getBookAuthorName() {\r\n return bookAuthorName;\r\n }",
"public String getAuthor() {\n return this.bookAuthor;\n }",
"public String getAuthor()\r\n\t{\r\n\t\treturn author;\r\n\t}",
"public String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the topic from this MqttItem. | public Map<String, Integer> getMqttTopics() {
return mqttTopics;
} | [
"public java.lang.CharSequence getTopic() {\n return topic;\n }",
"public Topic getTopic() {\n return (Topic) getDestination();\n }",
"public Topic getTopic()\n\t{\n\t\tif (topicUrl == null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\ttopicUrl = new Topic(this.getString(\"event.topic\"));\n\t\t\t}\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation Converted monitor instructions to comments Lifted jumps to return sites | protected void a(String string) {
Object object;
Object object2 = object = this.a;
// MONITORENTER : object2
p.b<String> b2 = this.b;
// MONITOREXIT : object2
if (b2 == null) return;
b2.onResponse(string);
} | [
"public final void run() {\n /*\n r10 = this;\n r2 = 0;\n r0 = 0;\n r5 = com.loc.ew.d(r0);\t Catch:{ RejectedExecutionException -> 0x0141, Throwable -> 0x0111, all -> 0x012c }\n r0 = 1;\n r4 = com.loc.ew.d(r0);\t Catch:{ RejectedExecutionException -> 0x0146, Throwabl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is invoked on the JavaFX thread | private void initFX() {
Scene scene = createScene();
setScene(scene);
} | [
"public void runInJavaFxThread(Runnable task) {\n Platform.runLater(task);\n }",
"@Override\n\t\t\t\tprotected void done() {\n\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tupdateCreationList();\n\t\t\t\t\t\t\tcreationList.getSelection... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the function arguments. | public ContextArguments getFunArgs() {
return funArgs;
} | [
"public List<FunctionDescriptor> getArguments();",
"public int arguments();",
"public List getArguments () {\n return arguments;\n }",
"public Object[] getArgs() {\n if (args == null) {\n return null;\n } else {\n Object[] result = new Object[args.length];\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Time complexity: O(n) Space complexity: O(1) | public int maxDistToClosestGroupByFreeSeats(int[] seats) {
int N = seats.length;
int K = 0; //current longest group of empty seats
int ans = 0;
// in the middle
// 1, 0, 0, 0, 1, 0, 1
// | | |
// | ans |
for (int i = 0; i < N; ++i) {
... | [
"for (int i = 1; i <= n; i++) {\n for(int j = 1; j <= n; j++) {\n // constant time code here\n }\n }",
"public static int BigO(int[] list) {\n return list[0]; // We can see that the function executes only one operation\n // The efficiency is Big O of 1 or ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Default private constructor of VideoCaps for serialization with Jackson | protected VideoCaps() {
super();
} | [
"public VideoProperties() {\n super();\n }",
"public VideosAdapter() { }",
"public Video() {\n\t\tsuper();\n\t}",
"public MovieVideos() {\n }",
"private Video(Builder builder) {\n super(builder);\n }",
"public VideoGame() {\n\t}",
"public MovieJSONParser() {\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all rows from the EMPLOYEE_JOBS table that match the criteria 'JOB_TITLE_ID = :jobTitleId'. | public EmployeeJobs[] findWhereJobTitleIdEquals(int jobTitleId) throws EmployeeJobsDaoException; | [
"public EmployeeJobs[] findWhereJobTitleIdEquals(int jobTitleId) throws EmployeeJobsDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE JOB_TITLE_ID = ? ORDER BY JOB_TITLE_ID\", new Object[] { new Integer(jobTitleId) } );\r\n\t}",
"public EmployeeJobs[] findAll() throws EmployeeJobsDaoEx... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create criteria builder and a toplevel query. | @Override
public List<StoragePolicyKey> getStoragePolicyKeysByNamespace(NamespaceEntity namespaceEntity)
{
CriteriaBuilder builder = entityManager.getCriteriaBuilder();
CriteriaQuery<String> criteria = builder.createQuery(String.class);
// The criteria root is the Storage policy.
... | [
"public static Criteria newAndCreateCriteria() {\n NetEaseSongDetailExample example = new NetEaseSongDetailExample();\n return example.createCriteria();\n }",
"static QueryBuilder builder() {\n return new QueryBuilder();\n }",
"public static Criteria buildCriteria( Condition obj )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
metodo para recargar gasolina en el carro, si el carro ya tiene gasolina no se recarga | public void recargargasolina(){
if(gasolina>0){
System.out.println("el carro ya tiene gasolina");
}
else{
gasolina=gasolina+50;
System.out.println("su carro ahora tiene "+gasolina+" de gasolina");
}
} | [
"public boolean cargaMasiva() {\n\t\tString linea = \"\";\n\t\tint contador = 0;\n\n\t\ttry {\n\t\t\tFileInputStream inputStream = null;\n\t\t\t\n\t\t\t//DataInputStream dataInputStream = null;\n\t\t\tBufferedReader d = null;\n\t\t\t\n\t\t\tif (archivo != null) {\n\t\t\t\tinputStream = new FileInputStream(archivo);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column v9_news_banner.typeid | public Short getTypeid() {
return typeid;
} | [
"@Select({\r\n \"SELECT distinct b.id, b.sort, b.firstchar, b.name, b.type, b.img, b.recommand from typebrand t, goodsbrand b\",\r\n \"where t.brandid = b.id AND t.typeid = #{typeid,jdbcType=INTEGER}\"\r\n })\r\n List<Goodsbrand> selectByTypeid(Integer typeid);",
"@Select({\n \"select\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Display A Notification on Taskbar | @SuppressWarnings("deprecation")
public void showNotification(String title, String message) {
try {
int icon = R.mipmap.ic_launcher;
CharSequence tickerText = getString(R.string.app_name);
long when = System.currentTimeMillis();
Notification notification = ne... | [
"private void showNotification() {\n showStatusBarIcon();\n }",
"private void showNotification() {\n CharSequence text = \"Hope Team Locating...\";\n\n\n// Set the icon, scrolling text and timestamp\n Notification notification = new Notification(R.drawable.pdlg_icon_success, text,\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
USER ACCOUNT GUI TABBED PANE | private JTabbedPane getUserAccountGUIJTabbedPane() {
JTabbedPane tabPane = new JTabbedPane();
GridBagConstraints constraints = new GridBagConstraints();
constraints.anchor = GridBagConstraints.WEST;
constraints.insets = new Insets(5, 5, 5, 5);
// LOGIN PANEL -------------------
JPanel login = new JPanel(n... | [
"public void createAcctBox()\n {\n \tString[] accounts = LoginScreenController.getMainController().getUserListFirstLast();\n Arrays.sort(accounts);\n\n accountBox.getItems().clear();\n accountBox.getItems().add(\"*Choose Account\");\n\n for (String item : accounts)\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Step 1 and Step 2 of the TC, login to application using valid userName & password | public static void TC01_Verify_MeasuresManager_Login()
{
Login(URL, UserName , Password);
} | [
"public void doLogin()\n\t{\n\t app.log(\"Trying to login to ZOHO.COM\");\t\n\t app.type(\"username_id\",app.getProperty(\"userid\"));\n\t app.click(\"nextbutton_xp\");\n\t app.type(\"password_name\",app.getProperty(\"password\"));\n\t app.click(\"signinbutton_xp\");\n\t app.click(\"crm_xp\");\n\t \n\t}",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
CapTypeCitizenAccessModel contains reNewCapTypeModel, pageFlowModel and documentForACAModels. | @Transient
@ManyToOne
@AccelaQuery(queryClass="com.accela.aa.datamanager.service.CapTypeCitizenAccessModelQueryImpl",
isQl=false, targetEntity=CapTypeCitizenAccessModel.class)
public CapTypeCitizenAccessModel getCitizenAccessModel()
{
return citizenAccessModel;
} | [
"public HashMap<String, Object> returnCap(HashMap<Long, ArrayList<Object>> inMap) //reqType is used to check if an update certificate was sent, or a new capability is issued for the first time.\n\t{\n\t\t\tHashMap<String, Object> obj = null;\n\t\t\t\n\t\t\tobj = new HashMap<String, Object>();\n\t\t\ttransArr = ne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Schedule a job for the eventdispatching thread: creating and showing this application's GUI. | public static void main() {
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {;
FramePrincipal();
}
});
} | [
"public static void createAndShowGUI(){\r\n //Schedule a job for the event-dispatching thread:\r\n //creating and showing this application's GUI.\r\n javax.swing.SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\t\r\n\t\t\t\t//Create and set up the window.\r\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the current party status | public synchronized void setState(String state) {
this.state = state;
this.changed = true;
} | [
"public void changeInjuryStatus(boolean newStatus)\n\t{\n\t\tinjured = newStatus;\n\t}",
"public void setStatus(AgentStatus status);",
"private void changeStatus() {\n int status = you.getStatus();\n int newStatus = (status == 1) ? 0:1;\n updateYouObject(newStatus,you.getHangoutStatus(),you... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the ith "extension" element | public void removeExtension(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(EXTENSION$4, i);
}
} | [
"public void remove(int ext) {\n this.extensions.remove(ext);\n }",
"public com.iver.andami.plugins.config.generate.Extension removeExtension(\n\t\t\tint index) {\n\t\tjava.lang.Object obj = _extensionList.elementAt(index);\n\t\t_extensionList.removeElementAt(index);\n\t\treturn (com.iver.andami.plugins.confi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the symbol's use count | public int getUseCount() {
return useCount;
} | [
"public int getSymbolCount() {\n return getSymbols().length;\n }",
"public int getNumSymbols()\n\t{\n\t\treturn getComponentCount();\n\t}",
"public int countOfSymbol( String symbol)\n {\n int count = 0;\n for(int i=0; i<text.length();i++)\n {\n if(text.charAt(i)==sym... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for property orgPk. | public java.lang.Integer getOrgPk() {
return orgPk;
} | [
"protected int getOrgId() {\n\t\treturn orgId;\n\t}",
"public ObjectProperty<Integer> sysPKProperty() {\n\t\t\treturn sysPK;\n\t\t}",
"public Long getPk() {\n return pk;\n }",
"public String getP_ORG_ID() {\n return (String)getNamedWhereClauseParam(\"P_ORG_ID\");\n }",
"public int getOrg_ID() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
iterative solution using breadth first search. | public boolean isSameTree1(TreeNode p, TreeNode q) {
// Start typing your Java solution below
// DO NOT write main() function
LinkedList<TreeNode> ll = new LinkedList<TreeNode>();
LinkedList<TreeNode> lr = new LinkedList<TreeNode>();
ll.add(p);
lr.add(q);
... | [
"private void breadthFirstSearch() {\n System.out.print(\"Breadth First Search-:\");\n List<Node> resultSet = new ArrayList<>(nodes.size());\n Queue<Node> queue = new LinkedList<>();\n queue.add(this.rootNode);\n resultSet.add(this.rootNode);\n rootNode.visited = true;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If the current player resigns, then the game ends and opponent wins | void performDoResign() {
doResign();
} | [
"public void endGame() {\r\n\t\tif(map.getListGoldMine().size()==0) {\r\n\t\t\tpartie=false;\r\n\t\t\tif(player1.getCoffrer()==player2.getCoffrer()) {\r\n\t\t\t\twinner= \"Match nul\";\r\n\t\t\t\t}\r\n\t\t\telse\r\n\t\t\tif(player1.getCoffrer()>player2.getCoffrer()) {\r\n\t\t\t\twinner= \"Player 1 win\";\r\n\t\t\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a random item from the given queue. | private static <Item extends Comparable> Item getRandomItem(Queue<Item> items) {
int pivotIndex = (int) (Math.random() * items.size());
Item pivot = null;
// Walk through the queue to find the item at the given index.
for (Item item : items) {
if (pivotIndex == 0) {
... | [
"public Item sample(){\n if (size == 0){\n throw new NoSuchElementException(\"can get sample from empty queue\");\n }\n int random = StdRandom.uniform(size);\n return queue[start+random];\n }",
"public Item sample() {\n return queue.q[StdRandom.uniform(queue.head, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new instance of OldMain class. | public OldMain() {
super("MyChess"); //set frame title
initComponents();
} | [
"public Main() {\n super();\n Main.instance = this;\n }",
"static void resetMain() {\n\tmainClassName = null;\n\tmainArgs = null;\n }",
"public static void main(String[] args) {\n\t\ttry\n { \n Class cls = Class.forName(\"NewInstance\"); \n NewInstance obj = \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
if(resId == 0 && bm == null && dw ==null) return; | public void showImage(int resId , Bitmap bm , Drawable dw){
showshimmer();
/*if(resId != 0)
setImageResource(resId);
else if(bm != null)
setImageBitmap(bm);
else if(dw != null)
setImageDrawable(dw);*/
} | [
"private void recoverNullObjects(){\n\t\t\n\t\tif(currentWProcessWork != null){\n\t\t\t\n//\t\t\tif ( currentObject.getPropertyObjectType1 == null) {\n//\t\t\t\tcurrentObject.setPropertyObjectType1(new ObjectType1(VACIO));\n//\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"private final void checkBufIsNotNull() throws SQLEx... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XFunctionSuperTypeRef__ReturnTypeAssignment_2" $ANTLR start "rule__TypeReferenceNoTypeArgs__TypeAssignment" InternalSARL.g:47352:1: rule__TypeReferenceNoTypeArgs__TypeAssignment : ( ( ruleQualifiedName ) ) ; | public final void rule__TypeReferenceNoTypeArgs__TypeAssignment() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalSARL.g:47356:1: ( ( ( ruleQualifiedName ) ) )
// InternalSARL.g:47357:2: ( ( ruleQualifiedName ) )
{
... | [
"public final void rule__JvmType__TypeAssignment() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalCrySL.g:13254:1: ( ( ( ruleQualifiedName ) ) )\r\n // InternalCrySL.g:13255:2: ( ( ruleQualifiedName ) )\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a new ExpandOneDashToTwoDashesRecoveryStrategy given the parser. | @Autowired
public ExpandOneDashToTwoDashesRecoveryStrategy(XDParser parser) {
super(parser, StreamDefinitionException.class, "file -");
} | [
"private String initDashLine(String word) {\n\t\tString dash = \"\";\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\tdash += \"-\";\n\t\t}\n\t\treturn dash;\n\t}",
"private StringBuilder convertSlashToHyphen(StringBuilder parsedContent, Map<String, Boolean> savedLinks, Map<String, ContentResource> selected... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
jPanel1 = new javax.swing.JPanel();
jPanel3 = new javax.swing.JPanel();
jScrollP... | [
"public StForm() {\n initComponents();\n }",
"public CineForm() {\n initComponents();\n }",
"public javaform() {\n initComponents();\n }",
"public EditDemographicForm() {\n initComponents();\n }",
"public FightForm() {\n initComponents();\n }",
"public For... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new Node with the given character and parent. | public Node(char ch, Node parent) {
this.ch = ch;
this.parent = parent;
this.children = new Node[LAST_CHAR - FIRST_CHAR + 1];
this.points = null;
if (parent != null) {
parent.setChild(ch, this);
}
} | [
"public Node(char ch, Node parent) {\n this.ch = ch;\n this.children = new Node[26];\n this.parent = parent;\n parent.setChild(ch, this);\n }",
"public static Node create (Node parent) {\r\n\r\n return (parent == null) ? new Node(null) : parent.create();\r\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set up the Execution Environment Create a local stream execution environment | public static void main(String[] args) throws Exception{
StreamExecutionEnvironment see = StreamExecutionEnvironment.getExecutionEnvironment();
/**
* Read an Input Stream
*/
DataStreamSource<Integer> source = see.fromElements(1, 2, 3, 4, 5);
/**
* Apply Trans... | [
"private ExecutionEnvironment createExecutionEnvironment() {\n ExecutionEnvironment executionEnvironment;\n\n if (this.parameters.executor != null) {\n // If a remote executor is explicitly specified, connect.\n\t\t\tfinal String[] hostAndPort = this.parameters.executor.split(\":\");\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleArrayRange" $ANTLR start "entryRuleSignedConstant" ../org.osate.xtext.aadl2.properties.ui/srcgen/org/osate/xtext/aadl2/properties/ui/contentassist/antlr/internal/InternalPropertiesParser.g:1053:1: entryRuleSignedConstant : ruleSignedConstant EOF ; | public final void entryRuleSignedConstant() throws RecognitionException {
try {
// ../org.osate.xtext.aadl2.properties.ui/src-gen/org/osate/xtext/aadl2/properties/ui/contentassist/antlr/internal/InternalPropertiesParser.g:1054:1: ( ruleSignedConstant EOF )
// ../org.osate.xtext.aadl2.... | [
"public final void entryRuleSignedConstant() throws RecognitionException {\r\n try {\r\n // ../org.osate.xtext.aadl2.propertyset.ui/src-gen/org/osate/xtext/aadl2/propertyset/ui/contentassist/antlr/internal/InternalPropertysetParser.g:2218:1: ( ruleSignedConstant EOF )\r\n // ../org.osat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new configuration. | private Configuration() {} | [
"public Configuration() {\n\t\t\n\t}",
"public Config()\r\n\t{\r\n\t}",
"public Config() {\n }",
"private Config() {\n init();\n }",
"private synchronized static void createInstance() {\n if (instance == null) {\n instance = new Configurations();\n }\n }",
"voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
databinding method to get an XML representation of this object | public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
throws org.apache.axis2.databinding.ADBException{
java.util.ArrayList elementList = new java.util.ArrayList();
java.util.ArrayList attribList = new java.util.Arra... | [
"public String toXml() {\n return NDBXWriter.asString(this);\n }",
"public String toXML() {\n\t\t//TODO\n\t\treturn null;\n\t}",
"@Override\r\n public String toString() {\r\n return JAXBToStringBuilder.valueOf(this, JAXBToStringStyle.SIMPLE_STYLE);\r\n }",
"public String toXML () {\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string nickname = 30; | public Builder setNicknameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nickname_ = value;
onChanged();
return this;
} | [
"int getPlayerNickname();",
"public String getNick(){\n return nick;\n }",
"public void setNickName(String name){\n\t\tthis.nickname = name;\n\t}",
"public String getNickname() {\n\t\treturn \"aaaa\";\n\t}",
"public Builder setNickname(\n java.lang.String value) {\n if (value == null) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required .nwkMgrCmdId_t cmdId = 1 [default = NWK_GET_NWK_KEY_CNF]; don't change this field | public boolean hasCmdId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
} | [
"@Override\n\t\tpublic int getMcuCmd(int nCmd, BytesCmd cmd) throws RemoteException \n\t\t{\n\t\t\tbyte[] data = cmd.get_byte();\n\t\t\tAlpaSystem alpaSys = AlpaSystem.getInstance();\n\t\t\treturn alpaSys.getMcuCmd( nCmd, data);\n\t\t}",
"private ResponseApdu getKeySettings(Apdu Apdu, byte[] buffer) {\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by Vatsal Bajpai on 19/07/16 at 9:36 PM in | @Singleton
@Component(modules = {ConstantHelperModule.class})
public interface DependencyComponent {
void inject(MainActivity activity);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"private static void EX5() {\n\t\t\r\n\t}",
"public void mo5201a() {\n }",
"public void mo1857d() {\n }",
"@Override\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
[2145] Collections that contain nulls are quite rare, so it is wise to add a relatively cheap defender check to avoid unnecessary loops | private final Collection<? extends T> removeNulls(Collection<? extends T> c) {
boolean containsNulls;
try {
containsNulls = c.contains(null);
}
// [#7991] Some immutable collections do not allow for nulls to be contained
catch (NullPointerException ignore) {
... | [
"public void testDoesntCheckForNull() {\n ImmutableSet<Integer> set = ImmutableSet.of(1, 2, 3);\n new RegularImmutableAsList<Integer>(set, new Object[] {null, null, null});\n // shouldn't throw!\n }",
"@Test\n\tpublic void testNonNullCollections(){\n\t\tPSAssetSiteImpact impact = new PSAssetSiteImpact()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verifica si se encuentran cargadas en RAM las listas de huellas y referencias. | public static boolean existenListas(){
if( huellas == null || huellas.isEmpty() || ubicaciones == null || ubicaciones.isEmpty() ||referencias == null || referencias.isEmpty() ){
return false;
}else{
return true;
}
} | [
"public boolean isInMem();",
"private boolean hayBloquesEnParedSinObjetivos() {\n\t\treturn false;\n\t}",
"boolean hasHudUsedMemory();",
"@Override\n public boolean hasRAM() {\n return true;\n }",
"private boolean check() {\n \n if (load() > alfaSup) {\n return false;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the length of the list. | @Override
public int getSize() {
return ranges.size();
} | [
"public int length() {\r\n\t\treturn list.length();\r\n\t}",
"public int length(){\n int numItems=list.numItems();\n return numItems;\n }",
"@Override\r\n\tpublic int length() {\n\t\treturn listSize ; \r\n\t}",
"public int size() {\n \t//return length of the list\n \treturn list.length;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | public Timeout mo13610a(long j, TimeUnit timeUnit) {
if (j < 0) {
StringBuilder sb = new StringBuilder();
sb.append("timeout < 0: ");
sb.append(j);
throw new IllegalArgumentException(sb.toString());
} else if (timeUnit != null) {
this.f5289d = ... | [
"public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }",
"interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }",
"public interface ans {\n /* renamed from: a */\n void mo1174a();\n}",
"public interface C24712af {\n /* renamed from... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ getVar Get the value of a variable. Results: Returns the value of the variable. If the variable is not defined a TclException will be raised. Side effects: May trigger traces. | final TclObject
getVar(
TclObject nameObj, // The name of a variable, array, or array
// element.
int flags) // Various flags that tell how to get value:
// any of TCL.GLOBAL_ONLY or TCL.NAMESPACE_ONLY.
throws
TclException
{
return Var.getVar(this, nameObj.toString(), null, (flags|TCL.LEAVE... | [
"MAKE getVar();",
"Dcls getVar();",
"public Variable getVar() {\r\n return var;\r\n }",
"public final int getVar() {\r\n return (var);\r\n }",
"public abstract Var getVar();",
"public String getValue(String varName) throws VariableException {\n String result = null;\n\n if (gat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieving the equipment attributes | public static void attritubes() {
MySQLDatabase SQL = new MySQLDatabase();
SQL.connect();
SQL.getData("SELECT EquipID, EquipmentName FROM equipment WHERE EquipID = 1256");
System.out.println("\n");
SQL.close();
} | [
"@Override\n public String getEquipment() {\n return this.equipment;\n }",
"public String getEquipment()\n\t{\n\t\treturn equipment;\n\t}",
"public String equipmentInformation() {\n StringBuffer s = new StringBuffer();\n s.append(\"Equipment: [name = \").append(equipmentName);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Devuelve la cantidad de miembros del grupo | public int cantidadMiembros() {
return this.integrantes.size() + 1;
} | [
"public int getNCausesMax();",
"@Override\n public int getChildrenCount(int groupPosition)\n {\n return lstItensGrupos.get(getGroup(groupPosition)).size();\n }",
"public int cantNodos(){return Nodos.size();}",
"private static Conjunto<Integer> getGruposAlcanzados(Estado origen,\r\n\t\t\tConjun... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void setValueAt(Object value, int row, int col) {
switch (col) {
case 1:
data.get(row).setDayPrice(Integer.parseInt(value.toString()));
break;
case 2:
data.get(row).setModel(value.toString());
break;
case 3:
data.get(row).setColor(value.toString());
break;
... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end rule__InlineGeneralization__Group_2__1 $ANTLR start rule__InlineGeneralization__Group_2__1__Impl ../br.ufes.inf.nemo.ontouml.dsl.ui/srcgen/br/ufes/inf/nemo/ontouml/dsl/ui/contentassist/antlr/internal/InternalDslOntoUML.g:13149:1: rule__InlineGeneralization__Group_2__1__Impl : ( ( rule__InlineGeneralization__... | public final void rule__InlineGeneralization__Group_2__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../br.ufes.inf.nemo.ontouml.dsl.ui/src-gen/br/ufes/inf/nemo/ontouml/dsl/ui/contentassist/antlr/internal/InternalDslOntoUML.g:13153:1: ( ( (... | [
"public final void rule__Assignation__Group_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.webgme_mtl.ui/src-gen/org/xtext/example/webgme/ui/contentassist/antlr/internal/InternalMTL.g:2219:1: ( rule__Assignation_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
reset values of all cards , (Enable all buttons) | public void reset() {
for (Component comp : getComponents()) {
comp.setEnabled(true);
}
cardCount = 0;
} | [
"public void resetGame(){\n\n // generate new cards for the player\n player.generateCards();\n\n for(int i = 0; i < player.getCards().size() ;i++){\n\n //make them visible\n player.getCard(i).setVisible(true);\n\n player.getCard(i).setBorder(new LineBorder(Color... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Draws a black tree. Shows horizontal or vertical flipping. Shows rotation of drawing. Shows scaling of drawing. Shows color rotation and moves the tree. | public void drawTreeDemo() {
Pen pen = new Pen();
pen.setColor(Color.BLACK);
drawTree(pen, 250, 400);
pen.getDrawing().rotate(20, 250, 400);
pen.drawDisplay();
for (int i=0;i<2; i++) {
// flip horizontal
pen.delay(1000);
pen.cl... | [
"private void drawTree(double x, double y, double width, double height, Color left, Color right) {\n double tempWidth = width < 120 ? 60 : width;\n double offset = 6; double offsetY = Math.pow(tempWidth,2)/1000;\n if (height > 400) {\n offset = 8;\n } else if (height <= 350) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets or sets location label. Default value: \"Location\". if this value is empty then no location label will appear on digital signature area. | @ApiModelProperty(value = "Gets or sets location label. Default value: \"Location\". if this value is empty then no location label will appear on digital signature area.")
public String getLocationLabel() {
return locationLabel;
} | [
"public JLabelOperator lblLocation() {\n if (_lblLocation==null) {\n _lblLocation = new JLabelOperator(this, \"Location:\"); // NOI18N\n }\n return _lblLocation;\n }",
"public String getCurrentLocationLabel() {\r\n if (getPluginPreferences().getBoolean(IWeatherBugConstant... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | public boolean mo25647a() {
return this.f17720a;
} | [
"public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }",
"interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }",
"public interface ans {\n /* renamed from: a */\n void mo1174a();\n}",
"public interface C24712af {\n /* renamed from... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__PrimitiveType__Group_10__1__Impl" $ANTLR start "rule__QualifiedName__Group__0" InternalDataDsl.g:4529:1: rule__QualifiedName__Group__0 : rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 ; | public final void rule__QualifiedName__Group__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDataDsl.g:4533:1: ( rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 )
// InternalDataDsl.g:4534:2: rule__QualifiedName_... | [
"public final void rule__QualifiedName__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.hellojvmtypes.ui/src-gen/org/xtext/example/hellojvmtypes/ui/contentassist/antlr/internal/InternalHelloJvmTypes.g:393:1: (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interpret any event tagged as a hotspot_triggered event. | private static void interpretHotspotEvent(GameEvent e,
SceneManager sceneManager,
MainWindow mainWindow,
Inventory inventory,
GameItems itemList)
{
HotspotEventType hotspotEvent = (HotspotEventType)e.getPacket().get(0);
switch (hotspotEvent) {
case HOTSPOT_MOVETOSCENE:
/*
* ... | [
"@Override\n public void onEvent(int eventType, Bundle params) {\n\n }",
"int IEE_MentalCommandEventGetType(Pointer hEvent);",
"boolean getHotwordFired();",
"void eventOccurred(T event);",
"@Override\n public void onEvent(int eventType, Bundle params) {\n\n }",
"void handleEvent(Active... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Callback to parent Activity to increment data value | @Override
public void OnValueIncremented(ScrollingNumberPicker snpicker){
switch(snpicker.getId()){
case R.id.strength_value_picker:
mCallback.onAbilityIncremented(STRENGTH);
break;
case R.id.dexterity_value_picker:
mCallback.onAbility... | [
"public void inc() {\n requireWriteTxn();\n IntegerState ts = getDataState();\n ts.txnValue++;\n }",
"public void incr() {\r\n\t\tthis.value++;\r\n\t}",
"public void incrementValue() {\n count++;\n }",
"public void increment(View view){\n /* read quantity text view\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for the track title. | public String getTitle() {
return title;
} | [
"public String getTitle() {\r\n return title.get();\r\n }",
"public @NotNull String getTitle() {\n return title;\n }",
"public String getTitle()\n {\n String title = findProperty(TITLE_PROP);\n \n return title;\n }",
"public String getTitle() {\r\n if (_title !=... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
eMail des Verfassers "Author" .dstore.values.StringValue e_mail_of_author = 10006; | public Builder clearEMailOfAuthor() {
if (eMailOfAuthorBuilder_ == null) {
eMailOfAuthor_ = null;
onChanged();
} else {
eMailOfAuthor_ = null;
eMailOfAuthorBuilder_ = null;
}
return this;
} | [
"public String getEMail() \n{\nreturn (String)get_Value(\"EMail\");\n}",
"io.dstore.values.StringValue getStrasse();",
"io.dstore.values.StringValue getOrderContentNo();",
"io.dstore.values.StringValue getInformation();",
"public String getContactDescription() \n{\nreturn (String)get_Value(\"ContactDescript... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds and returns the next element in the list | @TimeComplexity("O(1)")
public E next() {
/*
* TCJ: There are no loops and all the operations are cost 1 so this
* is worst case O(1)
*/
// TODO Auto-generated method stub
return posItr.next().getElement();
} | [
"public Object getNext(){\r\n\t\tObject nextElement = null;\r\n\t\t//int lastElement; //List/Array should be static or dynamic?\r\n\r\n\t\t//Of course if list is empty\r\n\t\tif (!List.isEmpty() ){\r\n\t\t\tif (index == List.size()) //Circular linked list, so index goes back to 0\r\n\t\t\t\tindex = 0;\r\n\t\t\tnext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Class' reference. If the meaning of the 'Class' reference isn't clear, there really should be more of a description here... | OntoUML.Class getClass_(); | [
"int getClassValue() { return classClass; }",
"protected abstract Class getReferenceClass();",
"public Class get_class() {\n return _class;\n }",
"public String getClass_() {\n Object ref = class__;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Processes requests for both HTTP GET and POST methods. | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
PacientesDAO pacientesDAO = new PacientesDAO();
try ... | [
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n Enumeration<String> parameterNames = request.getParameterNames(); //checking for unappropriate parameters\r\n if (parameterNames.hasMoreEleme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Executes the sql script. | public static void executeScript(String fileName) throws Exception {
InputStream input = UnitTests.class.getResourceAsStream(fileName);
BufferedReader reader = new BufferedReader(new InputStreamReader(input));
try {
em.clear();
if (!et.isActive()) {
et.b... | [
"private void runScript(String filename) {\n\t\t\tBufferedReader br = null;\n\t\t\tFileReader fr = null;\n\t\t\tConnection conn = null;\n\t\t\tStatement st = null;\n\t\t\ttry {\n\t\t\t\tClass.forName(JDBC_DRIVER);\n\t\t\t\tconn = DriverManager.getConnection(DB_URL);\n\t\t\t\tst = conn.createStatement();\n\t\t\t\tfr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A level is over if the exit door is unlocked and a player goes through it or if all players in the level are expelled. | public boolean isLevelEnd() {
return false;
} | [
"public void isOver() {\n lobby.addToLobby(player1);\n lobby.addToLobby(player2);\n\n }",
"private void gameOver() {\r\n if(gameMaster.isGameOver()){\r\n gameButtonsSingleplayer.makeClickable();\r\n gameButtonsMultiplayer.makeClickable();\r\n\r\n if(player.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get module by ID | public String getModuleByID(String id){
ModuleUniqueId mID = new ModuleUniqueId(id);
ModuleHandle mh = getFramework().getPeerRegistry().getPeerWithId(mID, false);
return buildModule(mh);
//return null;
} | [
"public Module findById(int id);",
"Optional<Module> getModule(String id);",
"public ScanModule getScanModulById( final int id ) {\n \t\treturn this.scanModulsMap.get( id );\n \t}",
"private int searchModule( String id )\r\n {\r\n int index = -1;\r\n\r\n\r\n return index;\r\n }",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
WORLD STATE AND ESTIMATES______________________________________________________________________________________________________________________________________________ before each move world state will be updated | void getWorldState(int id)
{
//get world state
//this data has some values that should not be accessible by an agent
//so for each node that is not in view range (hidden by Fog of War) prediction about owner and unit count is made
//no assumption is made about road states - agent gets current state of all... | [
"void update() {\n world = nextState (world);\n }",
"private void updateWorld() {\n\t\tsetChanged();\n\t\tproxy = new GameWorldProxy(this);\n\t\tnotifyObservers(proxy);\n\t}",
"public void updateWorld() {\n\t WorldInfo wi = new WorldInfo(this.WORLDX, this.WORLDY, this.superenabled);\n for(int a=c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleEntry" $ANTLR start "entryRuleBooleanLiteral" ../hu.bme.mit.androtext.gui/srcgen/hu/bme/mit/androtext/gui/parser/antlr/internal/InternalAndroGui.g:3095:1: entryRuleBooleanLiteral returns [EObject current=null] : iv_ruleBooleanLiteral= ruleBooleanLiteral EOF ; | public final EObject entryRuleBooleanLiteral() throws RecognitionException {
EObject current = null;
EObject iv_ruleBooleanLiteral = null;
try {
// ../hu.bme.mit.androtext.gui/src-gen/hu/bme/mit/androtext/gui/parser/antlr/internal/InternalAndroGui.g:3096:2: (iv_ruleBooleanL... | [
"public final void entryRuleBooleanLiteral() throws RecognitionException {\r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.nsl.ui/src-gen/eu/artist/postmigration/nfrvt/lang/nsl/ui/contentassist/antlr/internal/InternalNSL.g:1128:1: ( ruleBooleanLiteral EOF )\r\n // ../eu.artist.po... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static int getHeight(int mNativeCanvas) {
return 0;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get comment Returns a comment. This operation can be accessed anonymously. [Permissions](permissions) required: Browse projects [project permission]( for the project containing the comment. If [issuelevel security]( is configured, issuelevel security permission to view the issue. If the comment has visibility restricti... | public Comment getComment(String issueIdOrKey, String id, String expand) throws RestClientException {
Object postBody = null;
// verify the required parameter 'issueIdOrKey' is set
if (issueIdOrKey == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the req... | [
"@ApiOperation(\"get comment by id\")\n @ApiResponses(value = {\n @ApiResponse(code = 404, message = \"Not Found\")})\n @GetMapping(\"/comment/{commentId}\")\n public Comment getComment(@PathVariable\n @PositiveOrZero(message = \"comment id can't be negative\") final... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculate whether or not this polygon is inverted. This checks to see if the point which is one unit in the normal direction on the polygon's first segment is within the bounds of the polygon. If this is the case, then the normal points inwards and the polygon is inverted. Otherwise, the polygon is not inverted. Note: ... | private void updateInversionStatus() {
Vector2D start = vertices.get(0);
Vector2D end = vertices.get(1);
Vector2D midpoint = Util.getMidpoint(start, end);
Vector2D normal = Vector2D.get(end).subtract(start).toNormal().scale(0.1f);
if (contains(midpoint.add(normal))) {
... | [
"boolean isInverted_y();",
"public abstract boolean inverted();",
"public void invert(boolean inverted);",
"public boolean invertDown() {\n\t\t\t//3rd note is replaced as many octaves down as possible until its pitch is \n\t\t\t//below the first note, then if that pitch is legal (pitch value >= 0),\n\t\t\t//i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
create a file which will hold the index files | @RequestMapping(value="/indexAllMessages")
public String createIndex() throws Exception{
final File file = new File("F:\\index");
if(!file.exists() || !file.canRead()){
throw new Exception("Document directory '"+file.getAbsolutePath()+"' does not exist or is not readable, check the path");
}
//open that ind... | [
"public void createIndex() throws Exception {\n if (indexWriter == null) {\n indexWriter = new IndexWriter(directory, new IndexWriterConfig());\n File dir = new File(\"SearchEngine-prototype-backEnd//dataSource\");\n File[] files = dir.listFiles();\n for (File file... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Notification that subject has changed | @Override
public void subjectUpdated(String subject, EntityFullJid from) {
// only fire event if subject has really changed, not for new one
if ((subject != null) && !subject.equals(oldSubject)) {
Timber.d("ChatRoom subject updated to '%s'", subject);
Chat... | [
"@Override\n\tpublic void update(Subject subject) {\n\t\t\n\t}",
"public abstract void update(Subject subject);",
"public interface Subject {\n\n\t/**\n\t * Register a subscriber (Observer) with this provider (Subject). The\n\t * subscriber (Observer) will receive updates from this provider (Subject).\n\t * \n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
RETURN USER'S SCHEDULE FROM .NET API MATCH CONVENTION_ID | public void saveSchedule(Context context, String email, String password, final String conventionID) {
RequestQueue requestQueue = Volley.newRequestQueue(context);
String rooms_url = "http://lowcost-env.uffurjxps4.us-west-2.elasticbeanstalk.com/Schedule/SaveUserSchedule/";
HashMap<String,String>... | [
"public ScheduleResult scheduleResponse(EventInfo ei) throws CalFacadeException;",
"public List<Events> getEventUserIsAttending(int user_Id);",
"@Override\n public String getScheduleById(String username, boolean isAdmin, String scheduleId) {\n SysScheduleVo sysScheduleVo = sysScheduleDomain.getSysSche... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Default constructor. Used to create component instance without any parameters. Also if you want to make it easy to use with Json marshaller/unmarshaller component should contain empty constructor. | public PasswordInput() {
} | [
"public ComponentUI() {\n }",
"public ASNOidComponent() {\n }",
"public Component() {\n components = new ArrayList<Component>();\n }",
"public ComponentContext() {\n super();\n }",
"private ComponentLoader(){}",
"public RootComponent() {\n\n }",
"public ComponentFactoryImpl(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks the text of this component for a given substring | boolean containsText(final String phrase); | [
"@Test\n\tpublic void testIfStringContainsSubstring() {\n\t\tSearchSubstring s = new SearchSubstring();\n\n\t\tString str = \"ПривПривет\";\n\t\tString sub = \"иве\";\n\n\t\tboolean result = s.contains(str, sub);\n\t\tboolean expected = true;\n\n\t\tassertThat(result, is(expected));\n\t}",
"private String check(S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add course, exception thrown when section number4 | public void addCourse(String incoursename) throws Exception {
//asks for section number
System.out.println("What is the section number?");
Scanner keyboard=new Scanner(System.in);
int insecnum=keyboard.nextInt();
if (insecnum<1)
throw new Exception ("Section number can't be less than 1");
//asks... | [
"private void addCourse() {\n\t\ttry {\n\t\t\tSystem.out.println(\"Please Enter Following details of the course\");\n\t\t\tSystem.out.println(\"Course ID:\");\n\t\t\tint cid = scanner.nextInt();scanner.nextLine();\n\t\t\tSystem.out.println(\"Course Name:\");\n\t\t\tString cname = scanner.nextLine();\n\t\t\t\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the String representation of list, reads the list one node at a time and as soon as the node == null then that means we reached the end of the list | public String toString()
{
LLNode<T> currNode = list;
String listString = "List:\n";
while (currNode != null)
{
listString = listString + " "+ currNode.getInfo() + " " + currNode.getCount() + "\n";
currNode = currNode.getLink();
}
return listString;
} | [
"public String toString(){\n String output= \"[\";\n Node <E> current = head; //where im currently at in the list \n while (current!= null) {\n output += current.item.toString() + \" \";\n current = current.next;\n }\n return output + \"]\";\n \n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test du getter du nombre de face | @Test
public void getterJoueurTest(){
Joueur joueur = new Joueur();
assertTrue(joueur.getScore() == 0);
} | [
"public int getNombreDeFaces();",
"Face getFace();",
"public Face getFace()\n {\n return face;\n }",
"public Face getFace()\n {\n return _face;\n }",
"public int getNumFaces() { return numFaces; }",
"public Face getFace()\n {\n return this.face;\n }",
"public String getFac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table tb_svc_stock_import | int countByExample(SvcStockImportExample example); | [
"Stocks loadAll() throws SQLException;",
"@Override\n \tpublic void doImport() throws SQLException {\n \t\tPreparedStatement ps = null;\n \t\ttry {\n \t\t\t\n \t\t\tList<String> sqlList = SQLReader.readSQL(CommonConfig.path(\"CREATE.sql\"));\n \t\t\t\t\t//DBConn.getDatabase() + \".sql\");\n \t\t\tIterator<String>... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: packageprivate | public void setSurfaceRequest(SurfaceRequest surfaceRequest) {
cancelPreviousRequest();
this.mSurfaceRequest = surfaceRequest;
Size resolution = surfaceRequest.getResolution();
this.mTargetSize = resolution;
if (!tryToComplete()) {
Log.d(Surfac... | [
"protected void method_5557() {}",
"@Override\n }",
"@Override\n public void extornar() {\n \n }",
"public void mo28221a() {\n }",
"protected void mo4791d() {\n }",
"protected void method_2117() {\n }",
"@Override\r\n public void publicando() {\n }",
"private ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set job type for jsp view | public ActionForward doSoftwareDiscovery(ActionMapping mapping, ActionForm rawForm, HttpServletRequest request,
HttpServletResponse response) throws Exception {
ActionHelper.setJobType(request, getResources(request), this.getLocale(request), JobType.SOFTWARE_DISCOVERY);
// Load target devices
Man... | [
"public void setjobType(String jobType){\n this.vacancyNumber = vacancyNumber;\n }",
"public String getjobType(){\n return jobType; \n }",
"public String getjobType()\n {\n return jobType;\n }",
"@Override\n public String jobType() {\n return jobType;\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Hawk (Dorkus Dorkus): 2 observations | @Override
public String toString() {
return this.getName() + "(" + this.getLatinName() + ")" + ": " + this.getObservation() + " observations";
} | [
"private void aks_to_H(float[] aks) {\n int i;\n\n // Determine DFT of A(exp(jw))\n for (i = 0; i <= Defines.LPC_ORD; i++) {\n this.pw[i] = new Complex(aks[i], 0.0F);\n }\n\n for (i = Defines.LPC_ORD + 1; i < Defines.FFT_SIZE; i++) {\n this.pw[i] = new Comple... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests getters and setters for CompanyQualifier | @Test
public void testGetCompanyQualifier() {
companyQualifierDto = new CompanyQualifierDto() ;
companyQualifierDto.setCompanyQualifier("WM");
assertEquals(companyQualifierDto.getCompanyQualifier(), "WM");
} | [
"public Company getCompany(String taxCode);",
"@Test\n\tpublic void testGetCompanyName() {\n\t\tassertEquals(customer.getCompanyName(), \"Cutco\");\n\t}",
"protected void setUp() {\r\n company = new Company();\r\n }",
"@Test\n\tpublic void test11_adminFacade_getAllCompanies()\n\t{\n\t\tAdminFacade a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Start a server for remote IDE services. These are used | public static IDEServicesConfiguration startIDEServices(IBaseLanguageClient client, IBaseTextDocumentService docService, BaseWorkspaceService workspaceService) {
try {
ServerSocket socket = new ServerSocket(0);
new IDEServicesThread(client, docService, workspaceService, socket).start();... | [
"public String startServer();",
"public void start() {\n\t\tserver.start();\n\t}",
"public static void startServer() {\n new Thread() {\n public void run() {\n systemServer.NetworkServer.main(new String[0]);\n }\n }.start(); \n //sleep to discourage imm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the list of hexes. | public void setHexes(ArrayList<Hex> hexes) {
this.hexes = hexes;
} | [
"private void SetHexes(MapModel model, List<NetHex> hexes)\n\t{\n\t\tfor (NetHex hex : hexes)\n\t\t{\n\t\t\tResourceType resourceType = hex.getResourceType();\n\n\t\t\tHexType hexType = HexType.DESERT;\n\t\t\tif (resourceType != null)\n\t\t\t\thexType = HexType.GetFromResource(resourceType);\n\n\t\t\tNetHexLocation... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Always empty, super tables are currenlty not supported. | public ResultSet getSuperTables(String arg0, String arg1, String arg2) throws SQLException {
return AxionResultSet.createEmptyResultSet();
} | [
"public String getBaseTable() {\n/* 62 */ return this.baseTable;\n/* */ }",
"@Override\n\tpublic byte getTables() {\n\t\treturn 0;\n\t}",
"public abstract String getBaseTable();",
"public void emptyTable()\n {\n \temptyTable(true);\n }",
"public String getTableName() {\r\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
simple test case that simulates the UI actions for creating a local game and tests if userName is passed correctly between Fragments and if gameRoom is created correctly | @Test
public void testLocalGame() throws Exception {
// set up
onView(withId(R.id.button_startGame)).perform(click());
onView(withId(R.id.editTextUserName)).perform(typeText(userName));
onView(withId(R.id.editTextUserName)).check(matches(withText("name")));
onView(withId(R.... | [
"@Test\n\tpublic void user_ingame_not_finished() {\n\t\tfinal TemplateEngineTester testHelper = new TemplateEngineTester();\n\t\twhen(engine.render(any(ModelAndView.class))).thenAnswer(testHelper.makeAnswer());\n\n\t\twhen(request.queryParams(\"opponent\")).thenReturn(OPPNAME);\n\t\twhen(gameCenter.getPlayer(eq(OPP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Just assigns some variables. | Piece(int x, int y, PTeam team) {
this.x = x;
this.y = y;
this.team = team;
} | [
"private void applyAssignment() {\n for (int i = 0; i < assignments.size(); i++) {\n variables.get(i).assignment = assignments.get(i);\n }\n }",
"private void initializeVariables()\n {\n this.prefixes = new HashMap<String, String>();\n this.statements = new ArrayList<IStatement>();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
auto generated Axis2 call back method for BatchSubmitAckRetrievalTransaction method override this method for handling normal response from BatchSubmitAckRetrievalTransaction operation | public void receiveResultBatchSubmitAckRetrievalTransaction(
org.caqh.www.soap.wsdl.RtxStub.COREEnvelopeBatchSubmissionAckRetrievalResponse result
) {
} | [
"@Override\n public void ack(long batchId) {\n\n }",
"public void startGenericBatchReceiptConfirmationTransaction(\n\n org.caqh.www.soap.wsdl.RtxStub.COREEnvelopeBatchResultsAckSubmission cOREEnvelopeBatchResultsAckSubmission6,\n\n final org.caqh.www.soap.wsdl.RtxCallbackHa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the _Fields constant that matches fieldId, or null if its not found. | public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // NOME
return NOME;
case 2: // COR
return COR;
case 3: // DESCRICAO
return DESCRICAO;
case 4: // PESO
return PESO;
default:
... | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // COMPANY_TAG_IDS\n return COMPANY_TAG_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: b | void mo33645b(String str, List<Bundle> list, Bundle bundle, C2062u uVar) throws RemoteException; | [
"public abstract T zzs(B b2);",
"public void b(ByteOrder bo) {\n/* 72 */ if (this.i != bo) {\n/* 73 */ this.i = bo;\n/* 74 */ this.h = a(bo);\n/* */ } \n/* */ }",
"public void doSth(B b){\n\n }",
"public abstract void mo14156a(B b, int i, int i2);",
"@Override\n\tpublic v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Log a formated string with the FATAL level including a banner wrapping the message. | public void fatalBanner(final char bannerChar, final String format, final Object... args) {
final String bMessage = createBannerMessage(getFormatedMessaage(format, args), bannerChar);
wrapped.log(FULL_QUALIFIED_CLASS_NAME, Level.FATAL, bMessage, null);
} | [
"public void fatal(Object message) {\n if( isFatalEnabled() )\n \tlogger.log(FQCN, Priority.FATAL, message, null );\n }",
"public final void fatal(Object message) {\n/* 489 */ if (isLevelEnabled(6)) {\n/* 490 */ log(6, message, null);\n/* */ }\n/* */ }",
"public static v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ 429: / 430: | public void setRealizaLogisticaCliente(boolean realizaLogisticaCliente)
/* 431: */ {
/* 432:425 */ this.realizaLogisticaCliente = realizaLogisticaCliente;
/* 433: */ } | [
"private int m31494n() {\n return 300;\n }",
"private final int[] m52039b() {\n /*\n r9 = this;\n android.app.Activity r0 = r9.f44918l\n int[] r0 = com.google.android.gms.internal.ads.acl.m45545b(r0)\n android.app.Activity r1 = r9.f44918l\n i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .hadoop.yarn.StringStringMapProto container_attributes = 7; | public Builder clearContainerAttributes() {
if (containerAttributesBuilder_ == null) {
containerAttributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
containerAttributesBuilder_.clear();
}
r... | [
"net.morbz.osmonaut.binary.pbf.proto.Osmformat.PrimitiveBlock.StringTableOrBuilder getStringtableOrBuilder();",
"public interface TTConfig extends MRConfig {\n // Task-tracker configuration properties\n public static final String TT_HTTP_ADDRESS = \n \"skewtune.tasktracker.http.address\";\n\n publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set up an optional anchor GUID to attach the new element to. | public void setAnchorGUID(String anchorGUID)
{
this.anchorGUID = anchorGUID;
} | [
"public void setAnchor(String elementGUID, String anchorGUID)\n {\n anchorMap.put(elementGUID, anchorGUID);\n }",
"public void setAnchor (String anchor) {\n this.anchor = anchor;\n }",
"public static com.google.gwt.user.client.Element createAnchor() {\n return Document.get().createAnch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the dot product of two vectors: a.b = a1b1 + a2b2 + ... + ambm | protected static double getDotProduct(double[] a, double[] b) {
int length = a.length;
double sum = 0.0;
if (length != b.length) {
log.warn("Vectors have different lenghts; Returning dot product 0.0");
return sum;
}
for (int i = 0; i < length; i++) {
sum += a[i] * b[i];
}
r... | [
"public static double dot(double[] a, double[] b){\r\n double c = 0;\r\n for (int i = 0; i < V_SIZE; i++) {\r\n c += a[i]*b[i];\r\n }\r\n return c;\r\n }",
"public double dot(Vector b) {\n double dotProd = 0.0;\n /* INSERT YOUR CODE HERE */\n\n /* INS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
[regen=yes,regenBody=yes,id=DCE.B74E178E1D04F219F66BC4E5E6A9994E] Getter for the BeitragID attribute. | public int getBeitragID ()
throws RemoteException{
return beitragID;
} | [
"public int getBouquetID();",
"public long getBedrag() {\n return bedrag;\n }",
"public int getID(){\n return (Integer) spinIDBarang.getValue();\n }",
"public byte getFeatureId() {\n return featureId;\n }",
"@Override\n\tpublic long getBendId() {\n\t\treturn _bend.getBendId();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new object of class 'Not Equal'. | NotEqual createNotEqual(); | [
"public void assertNotSame(Object expected, Object actual);",
"@Test\n @DisplayName(\"equals on unequal obj\")\n public void testEqualsUnequalObj(){\n Query q1 = new Query(queryStr);\n Query q2 = new Query(queryStr2);\n assertNotEquals(q1, q2);\n }",
"public final Compare notEqual(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add an object inside this container | protected void add(int index, PresentationObject modObject)
{
try
{
if (modObject != null)
{
modObject.setParentObject(this);
// modObject.setLocation(this.getLocation());
getChildren().add(index, modObject);
}
}
catch (Exception ex)
{
//ExceptionWrapper exep = new... | [
"public void addToContainer(Container container)\n {\n // adds object\n }",
"void add(Object object);",
"public void add(RealObject object);",
"void addNew(final Object object);",
"public void add(Object o) {\n\t\t//TODO\n\t}",
"public void add(UIObject o) {\r\n\t\tobjects.add(o);\r\n\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table tbl_upload_files_info | public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
} | [
"@Override\n\tpublic List<FileType> getFileTypeDetails() {\n\t\ttry {\n\n\t\t\tList<FileType> list = jdbcTemplate.query(\"select * from Meta_File_Type\", new RowMapper<FileType>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic FileType mapRow(ResultSet rs, int size) throws SQLException {\n\t\t\t\t\tFileType fileType = new ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |