id
stringlengths
36
36
text
stringlengths
1
1.25M
3309bed1-9ae1-4e9e-a4d5-46cdbc1f122b
public String getZip() { return zip; }
3f49f8bf-2ffa-480f-a937-ade9edb4475e
public void setZip(String zip) { this.zip = zip; }
d28e92f1-875d-4e96-8183-5944529fdf0a
public String getCity() { return city; }
37d9bf1c-540d-40b1-b18c-8a36121ec112
public void setCity(String city) { this.city = city; }
25691dee-6970-4f28-b918-e7daada07a98
public String getCountry() { return country; }
c9ebba0d-f64d-41ac-bbb6-87857e5edc6b
public void setCountry(String country) { this.country = country; }
5bcec7c1-9db2-4a24-bc95-e886c3c79070
public String getHomepage() { return homepage; }
1532c5b0-359b-424f-a494-1f4f154780b7
public void setHomepage(String homepage) { this.homepage = homepage; }
8f760264-bb56-4531-9a98-b180c8d241d1
public String getPhone() { return phone; }
65d1d18f-812a-453a-a58b-87cbfece26c3
public void setPhone(String phone) { this.phone = phone; }
c13eda12-43ab-48ee-8327-e5ea9a2c7fb9
public String getEmail() { return email; }
f3e8d7d6-ec43-4ab8-934a-1766503a4954
public void setEmail(String email) { this.email = email; }
ee95824c-4188-4272-b482-c8f2b740f02d
public Float getGpsLongitude() { return gpsLongitude; }
0df896f4-d038-460b-b2d5-ea6673ca3031
public void setGpsLongitude(Float gpsLongitude) { this.gpsLongitude = gpsLongitude; }
99f559d6-0181-4f95-9271-6d7a34cfe9e1
public Float getGpsLatitude() { return gpsLatitude; }
3ac2f0c5-1a73-4289-adf9-ffcbf09a66ff
public void setGpsLatitude(Float gpsLatitude) { this.gpsLatitude = gpsLatitude; }
f29d6acf-4e31-41ce-8330-6207cee9a7ae
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((city == null) ? 0 : city.hashCode()); result = prime * result + ((country == null) ? 0 : country.hashCode()); result = prime * result + ((email == null) ? 0 : email.hashCode()); result = prime * result + ((f...
9b75edab-cbcd-4154-97fe-d8045689096e
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Facility other = (Facility) obj; if (city == null) { if (other.city != null) return false; } else if (!city.equals(other.city)) retur...
7f82ffa8-c453-46a6-9ac7-88b6935830e3
public FacilityWithDistance() { }
12cddc47-7225-4d3a-a6f6-8ce7f42cb36c
public FacilityWithDistance(Facility facility, int distance) { super(facility); this.distance = distance; }
35079d4f-9443-4413-a04b-d78bf4a801ba
public Integer getDistance() { return distance; }
2fbc249d-6426-4690-b062-af22e96f8d18
public void setDistance(int distance) { this.distance = distance; }
0690b92d-e90d-44bb-9878-b3b731164873
@Override public int compareTo(FacilityWithDistance other) { return getDistance().compareTo(other.getDistance()); }
550f793e-55f9-412a-9191-d72d243fdeab
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + distance; return result; }
8d08efe4-898a-47b1-9355-32111f66db94
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; FacilityWithDistance other = (FacilityWithDistance) obj; if (distance != other.distance) return false; return super.equals(obj); }
062805e4-721d-4cff-8ac5-8f5f8c5e51b2
public FurnitureCategory() { this.name = new MultilingualString(); }
b8ad3506-95f8-4408-a2d2-ab8f4d30cff9
public Long getId() { return id; }
11838e2c-5ec0-4710-a7ff-c6b2ac6cb7ab
public void setId(Long id) { this.id = id; }
6abaff45-7b89-4c2c-a6ac-632bc3affd59
public MultilingualString getName() { return name; }
ffe3132d-e443-441f-b4a5-96c27e60aa28
public void setName(MultilingualString name) { this.name = name; }
b8890745-85f4-420c-88ad-e312c1e8c66a
public FurnitureCategory getParent() { return parent; }
b34f399e-1a79-4669-b94e-ad0b80deba5d
public void setParent(FurnitureCategory parent) { this.parent = parent; }
fac1a565-9db5-44d8-8630-2d8ed8737e07
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + ((parent == null) ? 0 : parent.hashCode()); return result; }
8bd840ba-efa7-43f4-8a9a-719aa3a2ed1b
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; FurnitureCategory other = (FurnitureCategory) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)...
d2f16cf5-5dd5-4ef1-a43e-e588dd057ce9
public LocalizedString() { }
62814b3e-4c42-4f09-b1ba-0699e74ccea1
public LocalizedString(String locale, String text) { this.locale = locale; this.text = text; }
9168d319-9ea5-4292-be64-f8ed85e10622
public String getLocale() { return locale; }
a6ca32a8-ae56-48d0-8a99-1b112b6ff758
public void setLocale(String locale) { this.locale = locale; }
6a6e9e19-83af-4ea6-9bd5-bd60246c388e
public String getText() { return text; }
a81bef25-df26-4e5b-9576-5852113d5bfd
public void setText(String text) { this.text = text; }
05d17c16-10ed-4967-b84b-895ff22155e7
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((locale == null) ? 0 : locale.hashCode()); result = prime * result + ((text == null) ? 0 : text.hashCode()); return result; }
dc8accbc-e15b-4714-81ec-27564e749778
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; LocalizedString other = (LocalizedString) obj; if (locale != other.locale) return false; if (text == null) { if (other.text != null) ...
f818ec07-2da1-4612-955d-0fab2ca4536e
public PieceOfFurniture() { this.name = new MultilingualString(); }
5296862e-c9f1-40e9-8fd8-46d6a2a2266d
public Long getId() { return id; }
cc4c2e32-010b-4a60-a735-a1609726acb7
public void setId(Long id) { this.id = id; }
98774d86-d092-4e5a-9848-d0db7c46b705
public MultilingualString getName() { return name; }
b58ddf74-0984-4b63-b9a6-fba906958055
public void setName(MultilingualString name) { this.name = name; }
8fd11c6d-ee2a-4ff4-aed9-ed2a3da39f1a
public Integer getValue() { return value; }
3ebc8e51-9cfe-4020-a1e7-b3f1fa28d79f
public void setValue(Integer value) { this.value = value; }
1378d79c-0b18-47c7-ac8c-3b54596ba625
public FurnitureCategory getFurnitureCategory() { return furnitureCategory; }
cded18c9-58ab-4099-b91c-ba6a3f439ca6
public void setFurnitureCategory(FurnitureCategory furnitureCategory) { this.furnitureCategory = furnitureCategory; }
2b812457-1aee-4f37-aafe-700d56dd0975
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((furnitureCategory == null) ? 0 : furnitureCategory.hashCode()); result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime ...
4927d82b-a59d-408a-977b-4ece1427c6b9
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; PieceOfFurniture other = (PieceOfFurniture) obj; if (furnitureCategory == null) { if (other.furnitureCategory != null) return false; } e...
256a9c17-c2da-4c6f-8777-24b1d545d89d
public FacilityCategory() { this.name = new MultilingualString(); }
93722acc-b01a-4e74-b5bf-9fc12ce3c950
public Long getId() { return id; }
ab232f50-b770-40f2-8b8d-42ac21a028e5
public void setId(Long id) { this.id = id; }
4f545984-460c-485d-b4b9-2efd213c0f0c
public MultilingualString getName() { return name; }
ea95c03c-f61a-4887-b597-65b5f6e38872
public void setName(MultilingualString name) { this.name = name; }
1628a15b-670c-4fd2-9ded-63fffb0bfc52
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); return result; }
d886a440-de81-417e-b67e-c21dc7a4c5cc
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; FacilityCategory other = (FacilityCategory) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) ...
cbff24b8-48fe-49f6-8acd-ee8cc2222d7e
public Long getId() { return id; }
d9104f09-0f28-43b3-a3ae-dbac0c011076
public void setId(Long id) { this.id = id; }
ae56a062-fe27-43d6-8bdc-24c43c880874
public String getDescription() { return description; }
e999c2cd-ca52-4b02-98a3-47326df1bf80
public void setDescription(String description) { this.description = description; }
08d0040e-18fe-4153-bcec-d802c63bb89f
public Integer getAmount() { return amount; }
c69b2137-0ef5-403a-aaef-86cf63688f6a
public void setAmount(Integer amount) { this.amount = amount; }
650eee30-b1a5-4645-9d3d-42ea285145e9
public PieceOfFurniture getPieceOfFurniture() { return pieceOfFurniture; }
9dcdb464-e4e3-48b0-bb77-b6a89e9b2621
public void setPieceOfFurniture(PieceOfFurniture pieceOfFurniture) { this.pieceOfFurniture = pieceOfFurniture; }
785fec5e-bc8c-4816-954f-317edde0dc38
public Facility getFacility() { return facility; }
1db08aff-98ec-43e8-a643-aa1b1c8348aa
public void setFacility(Facility facility) { this.facility = facility; }
364f19ea-c9a4-4a0b-b0b4-74aa7c6a9029
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((amount == null) ? 0 : amount.hashCode()); result = prime * result + ((description == null) ? 0 : description.hashCode()); result = prime * result + ((facility == null) ? 0 : facility.hashCode()); result = pr...
9bea8c12-1aa2-47ae-934a-c30d356a7788
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ItemNeeded other = (ItemNeeded) obj; if (amount == null) { if (other.amount != null) return false; } else if (!amount.equals(other.amoun...
cac5866f-7f77-486c-b43d-e3c78ea0bde4
private FAITHLocale(String code, String locale) { this.code = code; this.locale = locale; }
6adfaf15-bc75-466c-bf7c-126b23bc2f85
public String getCode() { return code; }
fa1a6750-8c4f-4592-bbe3-ac38629035bc
public String getLocale() { return locale; }
f144078e-e9c4-4aaf-935b-6e2c1c0bcdfd
@Override public String toString() { return code; }
ff733405-2eed-4c55-a62b-673e8a03a280
public FAITHException(String message) { super(message); }
345bb299-a605-46d0-84f5-146ef5898323
public HTTPClassLoader(String host, int port, String classRootDir) throws ClassNotFoundException { super(); this.host = host; this.port = port; this.classRootDir = classRootDir; }
b75ce46c-45ad-47a9-8441-0a5c300457bc
public Class findClass(String className) throws ClassNotFoundException { if (className == null) { throw new ClassNotFoundException(); } String directoryResource = className;//.replace(".", "/") + ".class"; byte[] classBytes; try { classBytes = getClassByte...
7bd597da-94b4-448f-8aea-7a45721b9c9d
private byte[] getClassBytes(String directoryResource) throws UnknownHostException, IOException, ClassNotFoundException { Socket socket = new Socket(host, port); PrintWriter output = new PrintWriter(socket.getOutputStream()); output.println("GET " + classRootDir + "/" + directoryResource + " HTT...
601ed2e1-3df3-41cd-999d-1459ef7f898f
public String doProtocol(String Uri);
47490f30-e648-4add-bfe3-9f2613e8af4f
public String doProtocol(String Uri) { return "This protocol is not supported."; }
4fffc9d7-439c-4e69-824c-868a451e92b2
public static void main(String[] args) { //Protocol p = new Http(); //String result = p.doProtocol("http://www.gamefaqs.com"); //System.out.println(result); System.setProperty("apple.laf.useScreenMenuBar", "true"); BrowserWindow window = new BrowserWindow(); }
438476b1-de8a-44b6-9043-1e9d09912fcf
public String doProtocol(String Uri) { // Adapted from http://www.vogella.com/articles/JavaNetworking/article.html#javanetwork_example_readpage BufferedReader in = null; StringBuilder result = new StringBuilder(); try { URL url = new URL(Uri); in = new BufferedReader(new InputStreamReader...
cf202f5e-a59e-43bf-b52a-855e804b69d6
public BrowserWindow() { super("ColdJava"); handler = new ProtocolHandler(); mainMenu = new MainMenu(); contentPane = new ContentPane(); chooser = new JFileChooser(); chooser.setFileFilter(new FileNameExtensionFilter("Java Source Code", "java")); setJMenuBar(main...
813b7c91-0ee4-462c-82ea-8ed01b05d58c
public BrowserWindow(String location) { this(); setAddress(location); }
6a01895d-dda8-48b2-9835-3916b11e61ea
public void setAddress(String location) { Protocol protocol = handler.getProtocol(location); contentPane.setContent(protocol.doProtocol(location), location); pack(); }
99f2df21-13f9-4375-87aa-f10f038d2f1b
public MainMenu() { JMenu file = new JMenu("File"); JMenuItem upload = new JMenuItem("Upload New Protocol..."); upload.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_U, ActionEvent.CTRL_MASK)); upload.addActionListener(new ActionListener() { public void ...
e23836fb-e462-4693-8ee3-52f7aa3dc44e
public void actionPerformed(ActionEvent action) { UploadPanel up = new UploadPanel(BrowserWindow.this); }
eb3681c6-17fd-4e19-b46d-2cc836ad92bb
public void actionPerformed(ActionEvent action) { Object[] options = {"Quit", "Don't Quit" }; int choice = JOptionPane.showOptionDialog(null, "Are you sure you want to quit?", "Quit", JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]); ...
0d6fbde1-ae74-4ca1-815b-f4969ce3ac82
public ContentPane() { super(new BorderLayout()); uiMenu = new InterfaceMenu(); add(uiMenu, BorderLayout.PAGE_START); htmlPane = new JEditorPane(); htmlPane.setEditorKit(new HTMLEditorKit()); htmlPane.setEditable(false); htmlPane.addHy...
58ef3209-5df1-45e7-b004-19cf23431f57
public void hyperlinkUpdate(HyperlinkEvent link) { if (link.getEventType() == HyperlinkEvent.EventType.ACTIVATED && link.getURL() != null) { BrowserWindow.this.setAddress(link.getURL().toString()); } }
e6e5b63c-81f9-474c-8e51-4f099e22a178
public void setContent(String html, String location) { uiMenu.updateAddressBar(location); htmlPane.setText(html); }
5b1b6cb4-aaea-4877-8875-4ce638214006
public InterfaceMenu() { super(new BorderLayout()); setBorder(BorderFactory.createCompoundBorder( getBorder(), BorderFactory.createEmptyBorder(5, 5, 5, 5))); addressBar.setFont(new Font("San-Serif", Font.PLAIN, 16)); ...
b1b33f04-fbc9-4184-938b-1543f433a345
public void keyPressed(KeyEvent key) { }
dcdb3d6f-f212-463e-98e5-e0aec66f557e
public void keyReleased(KeyEvent key) { if (key.getKeyCode() == KeyEvent.VK_ENTER) { BrowserWindow.this.setAddress(addressBar.getText()); } }
ffe0902b-cfca-4cb7-b77b-3a4fee34c806
public void keyTyped(KeyEvent key) { }
681e517a-9630-4bb8-ad67-2c618e5214d3
public void actionPerformed(ActionEvent action) { BrowserWindow.this.setAddress(addressBar.getText()); }
6d4fab20-67f0-4278-b6ce-cdc19f8188bb
public void updateAddressBar(String location) { addressBar.setText(location); }
fa482ab4-fff0-4868-86a0-2c3cbbb28616
public UploadPanel(JFrame parent) { super("Upload"); setLayout(new BoxLayout(getContentPane(), BoxLayout.X_AXIS)); JPanel labels = new JPanel(new GridLayout(3, 1)); JPanel protocolLabelPanel = new JPanel(new FlowLayout()); JPanel fileLabelPanel = ...