Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Job has been terminated due to a temporary spike in resource usage and may be restarted later.
Error code: JobManagerCrashedError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
text string |
|---|
TDAT: public String capitalizeString(String s) { |
String result = ""; |
for(int i = 0; i < s.length(); i++) { |
if(i == 0 || s.substring(i-1, i).equals(" ")) |
result += s.substring(i, i + 1).toUpperCase(); |
else |
result += s.substring(i, i + 1); |
} |
return result; |
} |
SEQ: <s> capitalizeString String String.2 0 < 0 1 s.length s.substring s.length </s> |
TDAT: private void setTopAttributes( Attributes from ) { |
for ( int i = 0; i < from.getLength(); i++ ) { |
topMenu.setAttribute( from.getLocalName( i ), from.getValue( i ) ); |
topMenu.setAttribute( from.getQName( i ), from.getValue( i ) ); |
} |
} |
SEQ: <s> private setTopAttributes Attributes 0 setTopAttributes Attributes void private setTopAttributes void </s> |
TDAT: public GraphModel createGraphModel ( List includedNodes ) { |
num_models++; |
System.out.println("PGraphModel: creating a new non-super graphmodel: "+num_models); |
GraphModel model = new PGraphModel( "Phoebe"+num_models, getModelSubSet( includedNodes ) ); |
getCommunity().add( model ); |
//return new PGraphModel( "Phoebe"+num_models, getModelSubSet( includedNodes ) ); |
return model; |
} |
SEQ: <s> createGraphModel includedNodes List includedNodes createGraphModel GraphModel createGraphModel includedNodes createGraphModel includedNodes </s> |
TDAT: public void close(){ |
Tabpanel tempPanel = null; |
View tempView = null; |
List<?> list; |
Enumeration<Tabbox> tabs = primaryTabMap.keys(); |
while (tabs.hasMoreElements()) |
{ |
list = tabs.nextElement().getTabpanels().getChildren(); |
Iterator<?> itr = list.iterator(); |
while(itr.hasNext()){ |
tempPanel = (Tabpanel)itr.next(); |
tempView = (View)tempPanel.getChildren().get(0); |
tempView.deregisterView(); |
} |
} |
} |
SEQ: <s> tempPanel primaryTabMap.keys tempPanel close primaryTabMap.keys itr.hasNext tabs.nextElement().getTabpanels().getChildren Tabbox Tabpanel primaryTabMap.keys </s> |
TDAT: private void initOptionsMenu(JMenuBar bar) { |
optionsMenu = new JMenu("Options"); |
optionsMenu.setToolTipText("Options for SWGAide"); |
optionsMenu.setMnemonic(KeyEvent.VK_O); |
optionsMenu.add(optionsSWGCraftMenuItem()); |
optionsMenu.setEnabled(true); |
bar.add(optionsMenu); |
} |
SEQ: <s> initOptionsMenu bar JMenuBar initOptionsMenu "Options" optionsMenu.setToolTipText "Options optionsMenu.setMnemonic optionsMenu.setEnabled optionsMenu.1 </s> |
TDAT: public void testLogin() { |
SessionManager manager = new SimpleSessionManager(); |
String sessionId = manager.createSession( null, null); |
Session session = manager.getSession( sessionId ); |
manager.login(session, "user", "password"); |
assertEquals("user", session.getUserId()); |
assertEquals("password", session.getUserPassword()); |
assertTrue( session.isLoggedIn() ); |
} |
SEQ: <s> testLogin void public testLogin void testLogin void public testLogin SessionManager </s> |
TDAT: public void refreshTreePanel() { |
root.removeAllChildren(); |
root = new DefaultMutableTreeNode("ALL"); |
treeModel = new DefaultTreeModel(root); |
tree.setModel(treeModel); |
tree.setBounds(new Rectangle(0, 0, 196, 443)); |
tree.setLayout(null); |
tree.setBackground(Color.white); |
tree.setCellRenderer(new UserIconRenderer()); |
addAllUsers(); |
TreePath treePath = tree.getPathForRow(0); |
tree.fireTreeExpanded(treePath); |
} |
SEQ: <s> void public refreshTreePanel root.removeAllChildren refreshTreePanel public void root.removeAllChildren DefaultMutableTreeNode = </s> |
TDAT: private void addDigit(char digit) { |
if (digit == '0' && value.equals("0")) return; |
if (value.equals("0")) value = ""; |
End of preview.
No dataset card yet
- Downloads last month
- 15,256