Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/com/dmdirc/addons/logging/HistoryWindow.java b/src/com/dmdirc/addons/logging/HistoryWindow.java index 20cfa2f0a..bfc6b1773 100644 --- a/src/com/dmdirc/addons/logging/HistoryWindow.java +++ b/src/com/dmdirc/addons/logging/HistoryWindow.java @@ -1,115 +1,117 @@ /* * Copyright (c) 2006-2008 Chris Smith...
true
true
public HistoryWindow(final String title, final ReverseFileReader reader, final Window parent) { super("raw", parent.getConfigManager()); this.title = title; this.parent = parent; window = Main.getUI().getWindow(this); WindowManager.addWindow(parent,...
public HistoryWindow(final String title, final ReverseFileReader reader, final Window parent) { super("raw", parent.getConfigManager()); this.title = title; this.parent = parent; window = Main.getUI().getWindow(this); WindowManager.addWindow(parent,...
diff --git a/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.persistence/src/org/wso2/developerstudio/eclipse/gmf/esb/internal/persistence/SequenceTransformer.java b/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.persistence/src/org/wso2/developerstudio/eclipse/gmf/esb/internal/persistence/SequenceTr...
false
true
private void handleServiceChaining(org.wso2.developerstudio.eclipse.gmf.esb.Sequences visualSequence,SequenceMediator sequence,List proxyNames) throws Exception{ IEditorPart editorPart = null; IProject activeProject = null; Sequence currentSequence = null; IEditorReference editorReferences[] = PlatformUI.ge...
private void handleServiceChaining(org.wso2.developerstudio.eclipse.gmf.esb.Sequences visualSequence,SequenceMediator sequence,List proxyNames) throws Exception{ IEditorPart editorPart = null; IProject activeProject = null; Sequence currentSequence = null; IEditorReference editorReferences[] = PlatformUI.ge...
diff --git a/src/replicatorg/app/ui/modeling/ViewTool.java b/src/replicatorg/app/ui/modeling/ViewTool.java index dfbaffed..bdeee21b 100644 --- a/src/replicatorg/app/ui/modeling/ViewTool.java +++ b/src/replicatorg/app/ui/modeling/ViewTool.java @@ -1,76 +1,76 @@ package replicatorg.app.ui.modeling; import java.awt.ev...
true
true
public JPanel getControls() { JPanel p = new JPanel(new MigLayout("fillx,filly")); JButton b; b = createToolButton("Center","images/center-object.png"); b.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { parent.preview.resetView(); } }); p.add(b,"growx"); ...
public JPanel getControls() { JPanel p = new JPanel(new MigLayout("fillx,filly")); JButton b; b = createToolButton("Default","images/center-object.png"); b.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { parent.preview.resetView(); } }); p.add(b,"growx"); ...
diff --git a/activiti-upgrade-5.15/src/test/java/org/activiti/upgrade/test/HistoricVariableTimeStoreTest.java b/activiti-upgrade-5.15/src/test/java/org/activiti/upgrade/test/HistoricVariableTimeStoreTest.java index 369868a..08a6583 100644 --- a/activiti-upgrade-5.15/src/test/java/org/activiti/upgrade/test/HistoricVaria...
true
true
public void testCreateAndLastUpdatedTimeStamp() { ProcessInstance processInstance = runtimeService.createProcessInstanceQuery() .processDefinitionKey("historicVariableTimeStoreTestProcess").singleResult(); HistoricVariableInstance historicVariableInstance = historyService.createHistoricVariableInstanceQuer...
public void testCreateAndLastUpdatedTimeStamp() { ProcessInstance processInstance = runtimeService.createProcessInstanceQuery() .processDefinitionKey("historicVariableTimeStoreTestProcess").singleResult(); HistoricVariableInstance historicVariableInstance = historyService.createHistoricVariableInstanceQuer...
diff --git a/src/main/java/net/bull/javamelody/NodesController.java b/src/main/java/net/bull/javamelody/NodesController.java index 8441882..70bb6df 100644 --- a/src/main/java/net/bull/javamelody/NodesController.java +++ b/src/main/java/net/bull/javamelody/NodesController.java @@ -1,358 +1,359 @@ /* * Copyright 2008-...
false
true
public void doMonitoring(HttpServletRequest req, HttpServletResponse resp) throws IOException { if (lastJavaInformationsList != null && !lastJavaInformationsList.isEmpty()) { try { // preferred language of the browser, getLocale can't be null I18N.bindLocale(req.getLocale()); final MonitoringControll...
public void doMonitoring(HttpServletRequest req, HttpServletResponse resp) throws IOException { if (lastJavaInformationsList != null && !lastJavaInformationsList.isEmpty()) { try { // preferred language of the browser, getLocale can't be null I18N.bindLocale(req.getLocale()); final MonitoringControll...
diff --git a/xjc/src/com/sun/tools/xjc/ProgressCodeWriter.java b/xjc/src/com/sun/tools/xjc/ProgressCodeWriter.java index e16ca351..e488054c 100644 --- a/xjc/src/com/sun/tools/xjc/ProgressCodeWriter.java +++ b/xjc/src/com/sun/tools/xjc/ProgressCodeWriter.java @@ -1,38 +1,38 @@ package com.sun.tools.xjc; import java....
true
true
public OutputStream open(JPackage pkg, String fileName) throws IOException { String name = pkg.name().replace('.',File.pathSeparatorChar); if(name.length()!=0) name += File.pathSeparatorChar; name += fileName; progress.generatedFile(name); return output.open(pkg,file...
public OutputStream open(JPackage pkg, String fileName) throws IOException { String name = pkg.name().replace('.',File.separatorChar); if(name.length()!=0) name += File.separatorChar; name += fileName; progress.generatedFile(name); return output.open(pkg,fileName); ...
diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/UnicodeInXLSTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/UnicodeInXLSTest.java index b6e8c3cb24..5159c3955a 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/UnicodeInXLSTest.java +++ b/drools-d...
true
true
public void testCzechXLSDecisionTable() throws FileNotFoundException { DecisionTableConfiguration dtconf = KnowledgeBuilderFactory.newDecisionTableConfiguration(); dtconf.setInputType(DecisionTableInputType.XLS); KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); ...
public void testCzechXLSDecisionTable() throws FileNotFoundException { DecisionTableConfiguration dtconf = KnowledgeBuilderFactory.newDecisionTableConfiguration(); dtconf.setInputType(DecisionTableInputType.XLS); KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); ...
diff --git a/GenericAHP/src/org/taeradan/ahp/ConsistencyChecker.java b/GenericAHP/src/org/taeradan/ahp/ConsistencyChecker.java index b94dc29..3d3ad1b 100644 --- a/GenericAHP/src/org/taeradan/ahp/ConsistencyChecker.java +++ b/GenericAHP/src/org/taeradan/ahp/ConsistencyChecker.java @@ -1,93 +1,93 @@ /* Copyright 2009-20...
true
true
public static boolean isConsistent(final PreferenceMatrix prefMatrix, final PriorityVector prioVector) { boolean consistent = false; Matrix matrix = prefMatrix.getMatrix(); Matrix vector = prioVector.getVector(); double[] lambdas; int dimension = 0; if (prefMatrix.getMatrix().getRowDimension() == prioVecto...
public static boolean isConsistent(final PreferenceMatrix prefMatrix, final PriorityVector prioVector) { boolean consistent = false; Matrix matrix = prefMatrix.getMatrix(); Matrix vector = prioVector.getVector(); double[] lambdas; int dimension = 0; if (prefMatrix.getMatrix().getRowDimension() == prioVecto...
diff --git a/src/main/ed/doc/JavadocToDB.java b/src/main/ed/doc/JavadocToDB.java index 4f2faf79c..f8a1f2336 100644 --- a/src/main/ed/doc/JavadocToDB.java +++ b/src/main/ed/doc/JavadocToDB.java @@ -1,335 +1,355 @@ import com.sun.javadoc.*; import com.sun.tools.doclets.formats.html.*; import java.util.*; import ed.js...
false
true
public static JSObjectBase getClasses(ClassDoc c) { JSObjectBase temp = new JSObjectBase(); // get inner classes ClassDoc inner[] = c.innerClasses(); JSArray jsInner = new JSArray(); for(int j=0; j<inner.length; j++) { Tag[] tags = inner[j].tags("expose"); ...
public static JSObjectBase getClasses(ClassDoc c) { JSObjectBase temp = new JSObjectBase(); // get inner classes ClassDoc inner[] = c.innerClasses(); JSArray jsInner = new JSArray(); for(int j=0; j<inner.length; j++) { Tag[] tags = inner[j].tags("expose"); ...
diff --git a/pixi/src/main/java/org/openpixi/pixi/ui/Particle2DPanel.java b/pixi/src/main/java/org/openpixi/pixi/ui/Particle2DPanel.java index ea342c9d..6592b379 100644 --- a/pixi/src/main/java/org/openpixi/pixi/ui/Particle2DPanel.java +++ b/pixi/src/main/java/org/openpixi/pixi/ui/Particle2DPanel.java @@ -1,481 +1,481 ...
false
true
public void writePosition() { writePosition =! writePosition; if(writePosition) { s.f.clear(); ConstantForce force = new ConstantForce(); force.bz = - 0.23; // -ConstantsSI.g; //force.gy = -1; //force.drag = 0.08; s.f.add(force); InitialConditions.createRandomParticles(s.width, s.height, s.c...
public void writePosition() { writePosition =! writePosition; if(writePosition) { s.f.clear(); ConstantForce force = new ConstantForce(); force.bz = - 0.23; // -ConstantsSI.g; //force.gy = -1; //force.drag = 0.08; s.f.add(force); InitialConditions.createRandomParticles(s.width, s.height, s.c...
diff --git a/hazelcast-client/src/main/java/com/hazelcast/client/MapClientProxy.java b/hazelcast-client/src/main/java/com/hazelcast/client/MapClientProxy.java index 227b87baa9..84c27fee2c 100644 --- a/hazelcast-client/src/main/java/com/hazelcast/client/MapClientProxy.java +++ b/hazelcast-client/src/main/java/com/hazelc...
true
true
public MapClientProxy(HazelcastClient client, String name) { this.name = name; this.proxyHelper = new ProxyHelper(name, client); Config config = (Config) proxyHelper.doOp(ClusterOperation.GET_CONFIG, null, null); MapConfig mapConfig = config.getMapConfig(name); NearCacheConfi...
public MapClientProxy(HazelcastClient client, String name) { this.name = name; this.proxyHelper = new ProxyHelper(name, client); Config config = (Config) proxyHelper.doOp(ClusterOperation.GET_CONFIG, null, null); MapConfig mapConfig = config.getMapConfig(name.substring(Prefix.MAP.len...
diff --git a/prototype/src/net/ircubic/eventmap/FriendProvider.java b/prototype/src/net/ircubic/eventmap/FriendProvider.java index 6b82b6f..c08ee56 100644 --- a/prototype/src/net/ircubic/eventmap/FriendProvider.java +++ b/prototype/src/net/ircubic/eventmap/FriendProvider.java @@ -1,160 +1,160 @@ package net.ircubic.ev...
false
true
public void onCreate(SQLiteDatabase db) { db.execSQL(String .format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT, %s TEXT);", DATABASE_TABLE, KEY_ID, KEY_NAME, KEY_PIC)); String mock_vals[][] = { { "Mother", "derp" }, { "Father Winter", "doop" } }; ContentValues values = ...
public void onCreate(SQLiteDatabase db) { db.execSQL(String .format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT, %s TEXT);", DATABASE_TABLE, KEY_ID, KEY_NAME, KEY_PIC)); String mock_vals[][] = { { "Mother Spring", "derp" }, { "Father Winter", "doop" } }; ContentValues va...
diff --git a/src/main/java/net/minecraftforge/client/MinecraftForgeClient.java b/src/main/java/net/minecraftforge/client/MinecraftForgeClient.java index 4a114ad4b..34bdb2ffc 100644 --- a/src/main/java/net/minecraftforge/client/MinecraftForgeClient.java +++ b/src/main/java/net/minecraftforge/client/MinecraftForgeClient....
true
true
public static IItemRenderer getItemRenderer(ItemStack item, ItemRenderType type) { IItemRenderer renderer = customItemRenderers.get(item); if (renderer != null && renderer.handleRenderType(item, type)) { return renderer; } return null; }
public static IItemRenderer getItemRenderer(ItemStack item, ItemRenderType type) { IItemRenderer renderer = customItemRenderers.get(item.getItem()); if (renderer != null && renderer.handleRenderType(item, type)) { return renderer; } return null; }
diff --git a/src/edu/ucla/cens/genjson/PromptGroupTwoJsonMessageCreator.java b/src/edu/ucla/cens/genjson/PromptGroupTwoJsonMessageCreator.java index 337e055d..269d676e 100644 --- a/src/edu/ucla/cens/genjson/PromptGroupTwoJsonMessageCreator.java +++ b/src/edu/ucla/cens/genjson/PromptGroupTwoJsonMessageCreator.java @@ -1...
true
true
public JSONArray createMessage(int numberOfEntries) { JSONArray jsonArray = new JSONArray(); String tz = ValueCreator.tz(); // use the same tz for all messages in the returned array (the most likely use case) int versionId = 1; int groupId = 1; List<String> tags = new ArrayList<String>(); for(int i = 0; ...
public JSONArray createMessage(int numberOfEntries) { JSONArray jsonArray = new JSONArray(); String tz = ValueCreator.tz(); // use the same tz for all messages in the returned array (the most likely use case) int versionId = 1; int groupId = 2; List<String> tags = new ArrayList<String>(); for(int i = 0; ...
diff --git a/src/org/gridlab/gridsphere/portlet/impl/SportletResponse.java b/src/org/gridlab/gridsphere/portlet/impl/SportletResponse.java index e53a849da..8a4695c4d 100644 --- a/src/org/gridlab/gridsphere/portlet/impl/SportletResponse.java +++ b/src/org/gridlab/gridsphere/portlet/impl/SportletResponse.java @@ -1,301 +...
true
true
public SportletResponse(HttpServletResponse res, PortletRequest req) { this.res = res; this.req = req; String mimeType = req.getClient().getMimeType(); res.setContentType(mimeType); }
public SportletResponse(HttpServletResponse res, PortletRequest req) { this.res = res; this.req = req; //String mimeType = req.getClient().getMimeType(); //res.setContentType(mimeType); }
diff --git a/src/main/java/net/aufdemrand/denizen/tags/core/PlayerTags.java b/src/main/java/net/aufdemrand/denizen/tags/core/PlayerTags.java index 8bb1cb65f..018fbf9ef 100644 --- a/src/main/java/net/aufdemrand/denizen/tags/core/PlayerTags.java +++ b/src/main/java/net/aufdemrand/denizen/tags/core/PlayerTags.java @@ -1,5...
false
true
public void playerTags(ReplaceableTagEvent event) { // These tags require a player. if (!event.matches("PLAYER")) return; Player p = event.getPlayer(); String type = event.getType() != null ? event.getType().toUpperCase() : ""; String typeContext = event.getTypeContext() !=...
public void playerTags(ReplaceableTagEvent event) { // These tags require a player. if (!event.matches("PLAYER")) return; Player p = event.getPlayer(); String type = event.getType() != null ? event.getType().toUpperCase() : ""; String typeContext = event.getTypeContext() !=...
diff --git a/src/main/java/net/md_5/bungee/InitialHandler.java b/src/main/java/net/md_5/bungee/InitialHandler.java index 59772679..974a77c0 100644 --- a/src/main/java/net/md_5/bungee/InitialHandler.java +++ b/src/main/java/net/md_5/bungee/InitialHandler.java @@ -1,128 +1,128 @@ package net.md_5.bungee; import java....
true
true
public void run() { try { byte[] packet = in.readPacket(); int id = Util.getId(packet); switch (id) { case 0x02: Packet2Handshake handshake = new Packet2Handshake(packet); // fire connect even...
public void run() { try { byte[] packet = in.readPacket(); int id = Util.getId(packet); switch (id) { case 0x02: Packet2Handshake handshake = new Packet2Handshake(packet); // fire connect even...
diff --git a/core/src/test/java/org/mule/galaxy/impl/PropertyTest.java b/core/src/test/java/org/mule/galaxy/impl/PropertyTest.java index ef946a8b..3d8d2f2f 100755 --- a/core/src/test/java/org/mule/galaxy/impl/PropertyTest.java +++ b/core/src/test/java/org/mule/galaxy/impl/PropertyTest.java @@ -1,39 +1,39 @@ package or...
false
true
public void testProperties() throws Exception { importHelloWsdl(); PropertyDescriptor pd = new PropertyDescriptor("location", "Geographic Location", false); registry.save...
public void testProperties() throws Exception { importHelloWsdl(); PropertyDescriptor pd = new PropertyDescriptor("location", "Geographic Location", false); registry.save...
diff --git a/test/de/schildbach/pte/BahnProviderTest.java b/test/de/schildbach/pte/BahnProviderTest.java index d49e915a..21018db1 100644 --- a/test/de/schildbach/pte/BahnProviderTest.java +++ b/test/de/schildbach/pte/BahnProviderTest.java @@ -1,101 +1,101 @@ /* * Copyright 2010 the original author or authors. * ...
true
true
private void assertFineDepartures(String s) { Matcher m = BahnProvider.P_DEPARTURES_FINE.matcher(s); assertTrue(m.matches()); ParserUtils.printGroups(m); assertNotNull(m.group(1)); // line assertNotNull(m.group(2)); // destination assertNotNull(m.group(3)); // time assertNotNull(m.group(6)); // depart...
private void assertFineDepartures(String s) { Matcher m = BahnProvider.P_DEPARTURES_FINE.matcher(s); assertTrue(m.matches()); ParserUtils.printGroups(m); assertNotNull(m.group(1)); // line assertNotNull(m.group(2)); // destination assertNotNull(m.group(3)); // time assertNotNull(m.group(7)); // depart...
diff --git a/Concentration/source/com/spectregames/concentration/input/MouseInput.java b/Concentration/source/com/spectregames/concentration/input/MouseInput.java index 3aefabe..5d9b339 100644 --- a/Concentration/source/com/spectregames/concentration/input/MouseInput.java +++ b/Concentration/source/com/spectregames/con...
false
true
public void mouseReleased(MouseEvent e){ int mouse = e.getButton(); //used to check what button was clicked Rectangle rect = new Rectangle(e.getX(), e.getY(), 1, 1); //creates a 1x1 rectangle around the cursor to be used to check where it was clicked if (mouse == MouseEvent.BUTTON1) { //...
public void mouseReleased(MouseEvent e){ int mouse = e.getButton(); //used to check what button was clicked Rectangle rect = new Rectangle(e.getX(), e.getY(), 1, 1); //creates a 1x1 rectangle around the cursor to be used to check where it was clicked if (mouse == MouseEvent.BUTTON1) { //...
diff --git a/src/main/java/org/testng/reporters/XMLSuiteResultWriter.java b/src/main/java/org/testng/reporters/XMLSuiteResultWriter.java index 8b9d42ac..a3342bf6 100755 --- a/src/main/java/org/testng/reporters/XMLSuiteResultWriter.java +++ b/src/main/java/org/testng/reporters/XMLSuiteResultWriter.java @@ -1,295 +1,295 ...
true
true
private Properties getTestResultAttributes(ITestResult testResult) { Properties attributes = new Properties(); if (!testResult.getMethod().isTest()) { attributes.setProperty(XMLReporterConfig.ATTR_IS_CONFIG, "true"); } attributes.setProperty(XMLReporterConfig.ATTR_NAME, testResult.getName()); ...
private Properties getTestResultAttributes(ITestResult testResult) { Properties attributes = new Properties(); if (!testResult.getMethod().isTest()) { attributes.setProperty(XMLReporterConfig.ATTR_IS_CONFIG, "true"); } attributes.setProperty(XMLReporterConfig.ATTR_NAME, testResult.getMethod().ge...
diff --git a/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java b/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java index 122c0e220..87171543d 100644 --- a/src/contr...
false
true
private void getNodeAsXML(String path, Document doc, Element root) { // Should we show all subnodes? boolean showAllSubnodes = true; try { if(getResourceConfigProperty("show-all-subnodes") != null) { showAllSubnodes = Boolean.valueOf(getResourceConfigProperty("sh...
private void getNodeAsXML(String path, Document doc, Element root) { // Should we show all subnodes? boolean showAllSubnodes = true; try { if(getResourceConfigProperty("show-all-subnodes") != null) { showAllSubnodes = Boolean.valueOf(getResourceConfigProperty("sh...
diff --git a/src/main/java/org/dasein/cloud/vsphere/compute/Template.java b/src/main/java/org/dasein/cloud/vsphere/compute/Template.java index 05cd7b1..b7cd61a 100644 --- a/src/main/java/org/dasein/cloud/vsphere/compute/Template.java +++ b/src/main/java/org/dasein/cloud/vsphere/compute/Template.java @@ -1,379 +1,379 @@...
true
true
public void remove(@Nonnull String providerImageId, boolean checkState) throws CloudException, InternalException { ServiceInstance instance = getServiceInstance(); Folder folder = provider.getVmFolder(instance); ManagedEntity[] mes; try { mes = new InventoryNavigator(fo...
public void remove(@Nonnull String providerImageId, boolean checkState) throws CloudException, InternalException { ServiceInstance instance = getServiceInstance(); Folder folder = provider.getVmFolder(instance); ManagedEntity[] mes; try { mes = new InventoryNavigator(fo...
diff --git a/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletActionListener.java b/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletActionListener.java index e25e938e0..036731d67 100644 --- a/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIP...
true
true
public void execute(Event<UIPortlet<S, C, I>> event) throws Exception { UIPortlet<S, C, I> uiPortlet = event.getSource(); PortalRequestContext prcontext = (PortalRequestContext)event.getRequestContext(); // ActionInvocation actionInvocation = uiPortlet.create(ActionInvoc...
public void execute(Event<UIPortlet<S, C, I>> event) throws Exception { UIPortlet<S, C, I> uiPortlet = event.getSource(); PortalRequestContext prcontext = (PortalRequestContext)event.getRequestContext(); // ActionInvocation actionInvocation = uiPortlet.create(ActionInvoc...
diff --git a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/TaskListInterestSorter.java b/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/TaskListInterestSorter.java index d69ecf2f1..1a911d91a 100644 --- a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context...
false
true
public int compare(Viewer compareViewer, Object o1, Object o2) { if (o1 instanceof AbstractTaskContainer && o2 instanceof TaskArchive) { return -1; } else if (o2 instanceof AbstractTaskContainer && o1 instanceof TaskArchive) { return 1; } if (o1 instanceof ScheduledTaskContainer && o2 instanceof Schedul...
public int compare(Viewer compareViewer, Object o1, Object o2) { if (o1 instanceof AbstractTaskContainer && o2 instanceof TaskArchive) { return -1; } else if (o2 instanceof AbstractTaskContainer && o1 instanceof TaskArchive) { return 1; } if (o1 instanceof ScheduledTaskContainer && o2 instanceof Schedul...
diff --git a/src/backup/BackupTask.java b/src/backup/BackupTask.java index e12ddf6..52c1401 100644 --- a/src/backup/BackupTask.java +++ b/src/backup/BackupTask.java @@ -1,236 +1,236 @@ /* * Copyright (C) 2011 Kilian Gaertner * * This program is free software: you can redistribute it and/or modify * it unde...
false
true
protected void backup() { // the messages String startBackupMessage = pSystem.getStringProperty(STRING_START_BACKUP_MESSAGE); System.out.println(startBackupMessage); server.broadcastMessage(startBackupMessage); // a hack like methode to send the console command for disabling...
protected void backup() { // the messages String startBackupMessage = pSystem.getStringProperty(STRING_START_BACKUP_MESSAGE); System.out.println(startBackupMessage); server.broadcastMessage(startBackupMessage); // a hack like methode to send the console command for disabling...
diff --git a/org/xbill/DNS/Tokenizer.java b/org/xbill/DNS/Tokenizer.java index 0333748..e5b3282 100644 --- a/org/xbill/DNS/Tokenizer.java +++ b/org/xbill/DNS/Tokenizer.java @@ -1,512 +1,513 @@ // Copyright (c) 2003 Brian Wellington (bwelling@xbill.org) // // Copyright (C) 2003 Nominum, Inc. // // Permission to us...
true
true
public Token get(boolean wantWhitespace, boolean wantComment) throws IOException { int type; int c; if (ungottenToken) { ungottenToken = false; if (current.type == WHITESPACE) { if (wantWhitespace) return current; } else if (current.type == COMMENT) { if (wantComment) return current; } else ...
public Token get(boolean wantWhitespace, boolean wantComment) throws IOException { int type; int c; if (ungottenToken) { ungottenToken = false; if (current.type == WHITESPACE) { if (wantWhitespace) return current; } else if (current.type == COMMENT) { if (wantComment) return current; } else ...
diff --git a/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/NetworkMapper.java b/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/NetworkMapper.java index aafa9c6a3..3c4c76eab 100644 --- a/backend/manager/modules/restapi/types/src/main/java/o...
true
true
public static network map(Network model, network template) { network entity = template != null ? template : new network(); if (model.isSetId()) { entity.setId(new Guid(model.getId())); } if (model.isSetName()) { entity.setname(model.getName()); } ...
public static network map(Network model, network template) { network entity = template != null ? template : new network(); if (model.isSetId()) { entity.setId(new Guid(model.getId())); } if (model.isSetName()) { entity.setname(model.getName()); } ...
diff --git a/src/org/teleportr/model/Place.java b/src/org/teleportr/model/Place.java index 8e54fb9..19c8061 100644 --- a/src/org/teleportr/model/Place.java +++ b/src/org/teleportr/model/Place.java @@ -1,119 +1,121 @@ package org.teleportr.model; import java.net.URLDecoder; import org.teleportr.Teleporter; imp...
true
true
public static Place find(Uri uri, Context ctx) { Place p = new Place(); if (uri.getScheme().equals("content")) { Cursor c = ctx.getContentResolver().query(uri, PROJECTION, null, null, null); if (c.getCount() > 0) { c.moveToFirst(); p.lat = c.getInt(0); p.lon =...
public static Place find(Uri uri, Context ctx) { Place p = new Place(); if (uri.getScheme().equals("content")) { Cursor c = ctx.getContentResolver().query(uri, PROJECTION, null, null, null); if (c != null) { if (c.getCount() > 0) { c.moveToFirst(); p.lat = c...
diff --git a/src/main/java/com/gmail/timaaarrreee/mineload/NetworkData.java b/src/main/java/com/gmail/timaaarrreee/mineload/NetworkData.java index 596e938..3c9a4f1 100644 --- a/src/main/java/com/gmail/timaaarrreee/mineload/NetworkData.java +++ b/src/main/java/com/gmail/timaaarrreee/mineload/NetworkData.java @@ -1,177 +...
true
true
private void processLinux() { transmitted = 0; received = 0; String result; try{ result = fileToString(new File("/proc/net/dev")); } catch (IOException ioe){ if(debug){ System.out.println("Mineload Debug: error opening /proc/net/dev"); ioe.printStackTrace(); } ...
private void processLinux() { transmitted = 0; received = 0; String result; try{ result = fileToString(new File("/proc/net/dev")); } catch (IOException ioe){ if(debug){ System.out.println("Mineload Debug: error opening /proc/net/dev"); ioe.printStackTrace(); } ...
diff --git a/plugins/ui/com.vectorsf.jvoice.ui.navigator/src/com/vectorsf/jvoice/ui/edit/provider/MethodsBeanContentProvider.java b/plugins/ui/com.vectorsf.jvoice.ui.navigator/src/com/vectorsf/jvoice/ui/edit/provider/MethodsBeanContentProvider.java index f8038377..64ed2b1a 100644 --- a/plugins/ui/com.vectorsf.jvoice.ui...
true
true
private Object[] hasMethods(ComponentBean object) { URI uri = EcoreUtil.getURI(object); IProject project = ResourcesPlugin.getWorkspace().getRoot() .findMember(uri.toPlatformString(true)).getProject(); IJavaProject jProject = JavaCore.create(project); IType type; try { type = jProject.findType(object....
private Object[] hasMethods(ComponentBean object) { URI uri = EcoreUtil.getURI(object); IProject project = ResourcesPlugin.getWorkspace().getRoot() .findMember(uri.toPlatformString(true)).getProject(); IJavaProject jProject = JavaCore.create(project); IType type; try { type = jProject.findType(object....
diff --git a/src/freevideo/cz/vity/freerapid/plugins/services/freevideo/FreeVideoFileRunner.java b/src/freevideo/cz/vity/freerapid/plugins/services/freevideo/FreeVideoFileRunner.java index 0f7a01cb..d840c84d 100644 --- a/src/freevideo/cz/vity/freerapid/plugins/services/freevideo/FreeVideoFileRunner.java +++ b/src/freev...
false
true
public void run() throws Exception { super.run(); logger.info("Starting download in TASK " + fileURL); final GetMethod method = getGetMethod(fileURL); //create GET request if (makeRedirectedRequest(method)) { //we make the main request final String contentAsString = getCo...
public void run() throws Exception { super.run(); logger.info("Starting download in TASK " + fileURL); final GetMethod method = getGetMethod(fileURL); //create GET request if (makeRedirectedRequest(method)) { //we make the main request final String contentAsString = getCo...
diff --git a/nuxeo-platform-rendering/src/main/java/org/nuxeo/ecm/platform/rendering/fm/extensions/LocaleMessagesMethod.java b/nuxeo-platform-rendering/src/main/java/org/nuxeo/ecm/platform/rendering/fm/extensions/LocaleMessagesMethod.java index bea4bcb0..aa7a8a08 100644 --- a/nuxeo-platform-rendering/src/main/java/org/...
true
true
public Object exec(List arguments) throws TemplateModelException { int size = arguments.size(); if (size < 2) { throw new TemplateModelException( "Invalid number of arguments for messages(key, local [, args ..]) method"); } String key; SimpleSc...
public Object exec(List arguments) throws TemplateModelException { int size = arguments.size(); if (size < 2) { throw new TemplateModelException( "Invalid number of arguments for messages(key, local [, args ..]) method"); } String key; SimpleSc...
diff --git a/src/view/RefineryMenu.java b/src/view/RefineryMenu.java index 52e5389..008586b 100644 --- a/src/view/RefineryMenu.java +++ b/src/view/RefineryMenu.java @@ -1,140 +1,140 @@ package view; import java.awt.*; import java.awt.event.*; import javax.swing.border.*; import javax.swing.*; import static ut...
false
true
public RefineryMenu(OilImp game, String startOilField) { this.game = game; this.currentOilField = startOilField; this.setLayout(new GridLayout(1, 2)); this.infoPanel = new JPanel(new GridLayout(1, 4)); this.ressLabelPanel = new JPanel(new ...
public RefineryMenu(OilImp game, String startOilField) { this.game = game; this.currentOilField = startOilField; this.setLayout(new GridLayout(1, 2)); this.infoPanel = new JPanel(new GridLayout(1, 4)); this.ressLabelPanel = new JPanel(new ...
diff --git a/src/test/java/org/apache/commons/beanutils/bugs/Jira357TestCase.java b/src/test/java/org/apache/commons/beanutils/bugs/Jira357TestCase.java index fc0dd2d..75dcdc3 100644 --- a/src/test/java/org/apache/commons/beanutils/bugs/Jira357TestCase.java +++ b/src/test/java/org/apache/commons/beanutils/bugs/Jira357T...
true
true
private void checkReadMethod(String propertyName, Class expectedDeclaringClass) throws Exception { PropertyDescriptor[] descriptors = null; try { descriptors = PropertyUtils.getPropertyDescriptors(ConcreteTestBean.class); } catch (Exception e) { e.printStackTrace(); ...
private void checkReadMethod(String propertyName, Class<?> expectedDeclaringClass) throws Exception { PropertyDescriptor[] descriptors = null; try { descriptors = PropertyUtils.getPropertyDescriptors(ConcreteTestBean.class); } catch (Exception e) { e.printStackTrace(...
diff --git a/src/main/java/com/github/fhd/gwtetris/client/JavaRNG.java b/src/main/java/com/github/fhd/gwtetris/client/JavaRNG.java index 22bafa4..d34f277 100644 --- a/src/main/java/com/github/fhd/gwtetris/client/JavaRNG.java +++ b/src/main/java/com/github/fhd/gwtetris/client/JavaRNG.java @@ -1,23 +1,23 @@ package com....
true
true
public Piece.Type randomPieceType() { Piece.Type[] pieceTypes = Piece.Type.values(); return pieceTypes[randomNum(1, pieceTypes.length - 1)]; }
public Piece.Type randomPieceType() { Piece.Type[] pieceTypes = Piece.Type.values(); return pieceTypes[randomNum(0, pieceTypes.length - 1)]; }
diff --git a/components/bio-formats/src/loci/formats/in/NativeND2Reader.java b/components/bio-formats/src/loci/formats/in/NativeND2Reader.java index b397c4bea..8d628599a 100644 --- a/components/bio-formats/src/loci/formats/in/NativeND2Reader.java +++ b/components/bio-formats/src/loci/formats/in/NativeND2Reader.java @@ ...
false
true
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); channelNames = new Vector<String>(); binning = new Vector<String>(); speed = new Vector<Float>(); gain = new Vector<Float>(); temperature = new Vector<Float>(); exposureTime = new Vector<Float>();...
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); channelNames = new Vector<String>(); binning = new Vector<String>(); speed = new Vector<Float>(); gain = new Vector<Float>(); temperature = new Vector<Float>(); exposureTime = new Vector<Float>();...
diff --git a/Cmail-Servicio/src/org/cmail/rehabilitacion/servicio/FichaEgresoServicio.java b/Cmail-Servicio/src/org/cmail/rehabilitacion/servicio/FichaEgresoServicio.java index dd03820..2796b1b 100644 --- a/Cmail-Servicio/src/org/cmail/rehabilitacion/servicio/FichaEgresoServicio.java +++ b/Cmail-Servicio/src/org/cmail/...
true
true
public boolean guardar(FichaEgreso egreso){ boolean b = false; try { dao.beginTransaction(); dao.saveOnTx(egreso); //Fijo el idFichaIngreso egreso.getFichaIngreso().setFichaEgreso(egreso); ...
public boolean guardar(FichaEgreso egreso){ boolean b = false; try { dao.beginTransaction(); dao.merge(egreso.getAdolescente()); dao.merge(egreso.getAutorizaEgreso()); dao.merge(egreso.getCompaneroEgreso()); dao.merge(egreso.getResponsableE...
diff --git a/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java b/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java index 4195516e..0c20abed 100644 --- a/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java +++ b/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java @@ -1,305 +1,...
false
true
public Iterable<Part> parse(SoneTextParserContext context, Reader source) throws IOException { PartContainer parts = new PartContainer(); BufferedReader bufferedReader = (source instanceof BufferedReader) ? (BufferedReader) source : new BufferedReader(source); String line; boolean lastLineEmpty = true; int e...
public Iterable<Part> parse(SoneTextParserContext context, Reader source) throws IOException { PartContainer parts = new PartContainer(); BufferedReader bufferedReader = (source instanceof BufferedReader) ? (BufferedReader) source : new BufferedReader(source); String line; boolean lastLineEmpty = true; int e...
diff --git a/src/instructions/USI_TRLT.java b/src/instructions/USI_TRLT.java index cfa0252..c3edc7e 100644 --- a/src/instructions/USI_TRLT.java +++ b/src/instructions/USI_TRLT.java @@ -1,92 +1,92 @@ package instructions; import static simulanator.Deformatter.breakDownOther; import simulanator.Machine; import simu...
false
true
@Override public void execute(int instruction, Machine machine) { OpcodeBreakdown brkDwn = breakDownOther(instruction); int reg = brkDwn.destination; int addr = brkDwn.readFromDest(machine); if(reg < 0) { machine.setLC(addr); } }
@Override public void execute(int instruction, Machine machine) { OpcodeBreakdown brkDwn = breakDownOther(instruction); int reg = brkDwn.readFromSource(machine); int addr = brkDwn.destination; if(reg < 0) { machine.setLC(addr); } }
diff --git a/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/servlet/FileDownloadServlet.java b/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/servlet/FileDownloadServlet.java index 7cab543af..cf2a5dce7 100644 --- a/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/servlet/FileDownloadServlet.java +++ b/src/DVN-web/src/edu/harvard/...
true
true
public void service(HttpServletRequest req, HttpServletResponse res) { VDCUser user = null; if ( LoginFilter.getLoginBean(req) != null ) { user= LoginFilter.getLoginBean(req).getUser(); } VDC vdc = vdcService.getVDCFromRequest(req); UserGroup ipUserGroup= null; ...
public void service(HttpServletRequest req, HttpServletResponse res) { VDCUser user = null; if ( LoginFilter.getLoginBean(req) != null ) { user= LoginFilter.getLoginBean(req).getUser(); } VDC vdc = vdcService.getVDCFromRequest(req); UserGroup ipUserGroup= null; ...
diff --git a/src/com/cyanogenmod/lockclock/ClockWidgetProvider.java b/src/com/cyanogenmod/lockclock/ClockWidgetProvider.java index a2b9192..0c0beb5 100644 --- a/src/com/cyanogenmod/lockclock/ClockWidgetProvider.java +++ b/src/com/cyanogenmod/lockclock/ClockWidgetProvider.java @@ -1,122 +1,123 @@ /* * Copyright (C) 2...
true
true
public void onReceive(Context context, Intent intent) { // Deal with received broadcasts that force a refresh String action = intent.getAction(); if (D) Log.v(TAG, "Received intent " + intent); // Network connection has changed, make sure the weather update service knows about it ...
public void onReceive(Context context, Intent intent) { // Deal with received broadcasts that force a refresh String action = intent.getAction(); if (D) Log.v(TAG, "Received intent " + intent); // Network connection has changed, make sure the weather update service knows about it ...
diff --git a/java/src/game/strategy/RightStrategy.java b/java/src/game/strategy/RightStrategy.java index 8cd8f50..6876cb4 100644 --- a/java/src/game/strategy/RightStrategy.java +++ b/java/src/game/strategy/RightStrategy.java @@ -1,29 +1,29 @@ package game.strategy; import java.util.Collections; import java.util.Li...
true
true
public boolean wantsToApply(State s) { int pos1 = s.robotCol * s.board.height + s.robotRow - 1; int pos2 = pos1 - 1; return s.board.isEarth(pos1) || s.board.isEmpty(pos1) || s.board.isLambda(pos1) || (s.board.isRock(pos1) && s.board.isEmpty(pos2)); }
public boolean wantsToApply(State s) { int pos1 = s.robotCol * s.board.height + s.robotRow + 1; int pos2 = pos1 + 1; return s.board.isEarth(pos1) || s.board.isEmpty(pos1) || s.board.isLambda(pos1) || (s.board.isRock(pos1) && s.board.isEmpty(pos2)); }
diff --git a/nuxeo-theme-html/src/main/java/org/nuxeo/theme/html/ui/Resources.java b/nuxeo-theme-html/src/main/java/org/nuxeo/theme/html/ui/Resources.java index 5489808..186e71a 100644 --- a/nuxeo-theme-html/src/main/java/org/nuxeo/theme/html/ui/Resources.java +++ b/nuxeo-theme-html/src/main/java/org/nuxeo/theme/html/u...
true
true
public static String render(Map<String, String> params) { StringBuilder sb = new StringBuilder(); final String resourcePath = "/nuxeo/nxthemes-lib/"; final String themeUrl = params.get("themeUrl"); final String path = params.get("path"); final String basepath = params.get("b...
public static String render(Map<String, String> params) { StringBuilder sb = new StringBuilder(); final String resourcePath = "/nuxeo/nxthemes-lib/"; final String themeUrl = params.get("themeUrl"); final String path = params.get("path"); final String basepath = params.get("b...
diff --git a/src/main/java/org/gwaspi/netCDF/operations/OP_QASamples_opt.java b/src/main/java/org/gwaspi/netCDF/operations/OP_QASamples_opt.java index 58984b53..3c8a698a 100644 --- a/src/main/java/org/gwaspi/netCDF/operations/OP_QASamples_opt.java +++ b/src/main/java/org/gwaspi/netCDF/operations/OP_QASamples_opt.java @...
false
true
public int processMatrix() throws IOException, InvalidRangeException { int resultOpId = Integer.MIN_VALUE; Map<String, Object> wrSampleSetMissingCountMap = new LinkedHashMap(); Map<String, Object> wrSampleSetMissingRatioMap = new LinkedHashMap(); Map<String, Object> wrSampleSetHetzyRatioMap = new LinkedHashMa...
public int processMatrix() throws IOException, InvalidRangeException { int resultOpId = Integer.MIN_VALUE; Map<String, Object> wrSampleSetMissingCountMap = new LinkedHashMap(); Map<String, Object> wrSampleSetMissingRatioMap = new LinkedHashMap(); Map<String, Object> wrSampleSetHetzyRatioMap = new LinkedHashMa...
diff --git a/filters/net.sf.okapi.filters.rtf.tests/src/net/sf/okapi/filters/rtf/tests/RtfFullFileTest.java b/filters/net.sf.okapi.filters.rtf.tests/src/net/sf/okapi/filters/rtf/tests/RtfFullFileTest.java index 40144c0ee..3e9582a2b 100644 --- a/filters/net.sf.okapi.filters.rtf.tests/src/net/sf/okapi/filters/rtf/tests/R...
true
true
public void testAllExternalFiles() throws URISyntaxException { @SuppressWarnings("unused") Event event = null; for (String f : testFileList) { System.out.println(f); InputStream stream = RtfFullFileTest.class.getResourceAsStream("/" + f); filter.open(new RawDocument(stream, "windows-1252", "en")); ...
public void testAllExternalFiles() throws URISyntaxException { @SuppressWarnings("unused") Event event = null; for (String f : testFileList) { System.out.println(f); InputStream stream = RtfFullFileTest.class.getResourceAsStream("/" + f); filter.open(new RawDocument(stream, "windows-1252", "en", "fr"...
diff --git a/LighthouseCore/src/edu/uci/lighthouse/core/controller/UpdateLighthouseModel.java b/LighthouseCore/src/edu/uci/lighthouse/core/controller/UpdateLighthouseModel.java index e72d4273..0c795e5f 100644 --- a/LighthouseCore/src/edu/uci/lighthouse/core/controller/UpdateLighthouseModel.java +++ b/LighthouseCore/src...
false
true
public void updateByEvents(Collection<LighthouseEvent> listEvents) { LighthouseModelManager LhManager = new LighthouseModelManager(model); Collection<String> listClassesToRemove = new LinkedHashSet<String>(); // for each entity event for (LighthouseEvent event : listEvents) { Object artifact = event.getArt...
public void updateByEvents(Collection<LighthouseEvent> listEvents) { LighthouseModelManager LhManager = new LighthouseModelManager(model); Collection<String> listClassesToRemove = new LinkedHashSet<String>(); // for each entity event for (LighthouseEvent event : listEvents) { Object artifact = event.getArt...
diff --git a/cotrix/cotrix-web-common/src/main/java/com/google/gwt/user/client/ui/SuggestListBox.java b/cotrix/cotrix-web-common/src/main/java/com/google/gwt/user/client/ui/SuggestListBox.java index 0382e4cf..cf7f5e9d 100644 --- a/cotrix/cotrix-web-common/src/main/java/com/google/gwt/user/client/ui/SuggestListBox.java ...
true
true
public SuggestListBox(SuggestOracle oracle) { mainPanel = new HorizontalPanel(); mainPanel.setWidth("100%"); mainPanel.setStyleName(CommonResources.INSTANCE.css().listBox()); /* * border-radius: 5px; background-color: #fafafa; box-shadow: 0 0 0 0; border: 1px solid #999; */ suggestBox = new Su...
public SuggestListBox(SuggestOracle oracle) { mainPanel = new HorizontalPanel(); mainPanel.setWidth("100%"); mainPanel.setStyleName(CommonResources.INSTANCE.css().listBox()); /* * border-radius: 5px; background-color: #fafafa; box-shadow: 0 0 0 0; border: 1px solid #999; */ suggestBox = new Su...
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src_ant/org/eclipse/equinox/internal/p2/artifact/repository/ant/CreateCompositeArtifactRepositoryTask.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src_ant/org/eclipse/equinox/internal/p2/artifact/repository/ant/CreateCompositeArtifactRepositor...
false
true
public void execute() { validate(); IArtifactRepositoryManager manager = (IArtifactRepositoryManager) ServiceHelper.getService(Activator.getContext(), IArtifactRepositoryManager.class.getName()); if (manager == null) throw new BuildException("Unable to aquire artifact repository manager service."); // remo...
public void execute() { validate(); IArtifactRepositoryManager manager = (IArtifactRepositoryManager) ServiceHelper.getService(Activator.getContext(), IArtifactRepositoryManager.class.getName()); if (manager == null) throw new BuildException("Unable to aquire artifact repository manager service."); // remo...
diff --git a/src/com/suxsem/liquidnextparts/activities/settings.java b/src/com/suxsem/liquidnextparts/activities/settings.java index 973d58a..18a37ea 100755 --- a/src/com/suxsem/liquidnextparts/activities/settings.java +++ b/src/com/suxsem/liquidnextparts/activities/settings.java @@ -1,586 +1,588 @@ package com.suxsem...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (!LSystem.checkInitFolder()){ Toast.makeText(this, "Can't make init.d folder, your system must be rooted", 4000).show(); this.finish(); //Exit app } ROOT = LiquidSettings.isRoot(); prefs = PreferenceManager...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (!LSystem.checkInitFolder()){ Toast.makeText(this, "Can't make init.d folder, your system must be rooted", 4000).show(); this.finish(); //Exit app } ROOT = LiquidSettings.isRoot(); prefs = PreferenceManager...
diff --git a/src/org/liberty/android/fantastischmemo/Item.java b/src/org/liberty/android/fantastischmemo/Item.java index 1bc551f6..25042d5b 100644 --- a/src/org/liberty/android/fantastischmemo/Item.java +++ b/src/org/liberty/android/fantastischmemo/Item.java @@ -1,480 +1,474 @@ /* Copyright (C) 2010 Haowen Ning Th...
false
true
public Item processAnswer(int newGrade, boolean includeNoise){ // dryRun will leave the original one intact // and return the interval // if dryRun is false, the return value only show success or not Date currentDate = new Date(); String now = formatter.format(currentDate); int actualInte...
public Item processAnswer(int newGrade, boolean includeNoise){ // dryRun will leave the original one intact // and return the interval // if dryRun is false, the return value only show success or not Date currentDate = new Date(); String now = formatter.format(currentDate); int actualInte...
diff --git a/src/test/java/javax/time/calendar/TestOffsetDateTime_instants.java b/src/test/java/javax/time/calendar/TestOffsetDateTime_instants.java index 77cd2274..a762bf08 100644 --- a/src/test/java/javax/time/calendar/TestOffsetDateTime_instants.java +++ b/src/test/java/javax/time/calendar/TestOffsetDateTime_instant...
false
true
private void doTest_factory_fromInstant_InstantProvider_all(int minYear, int maxYear) { long days_0000_to_1970 = (146097 * 5) - (30 * 365 + 7); int minOffset = (minYear <= 0 ? 0 : 3); int maxOffset = (maxYear <= 0 ? 0 : 3); long minDays = (minYear * 365L + ((minYear + minOffset) / 4L...
private void doTest_factory_fromInstant_InstantProvider_all(long minYear, long maxYear) { long days_0000_to_1970 = (146097 * 5) - (30 * 365 + 7); int minOffset = (minYear <= 0 ? 0 : 3); int maxOffset = (maxYear <= 0 ? 0 : 3); long minDays = (minYear * 365L + ((minYear + minOffset) / ...
diff --git a/src/main/java/com/cvparse/generators/JavaGenerator.java b/src/main/java/com/cvparse/generators/JavaGenerator.java index 6568865..1f1bddc 100644 --- a/src/main/java/com/cvparse/generators/JavaGenerator.java +++ b/src/main/java/com/cvparse/generators/JavaGenerator.java @@ -1,37 +1,38 @@ package com.cvparse....
true
true
public String generate(ProblemDefinition pd) { String code = "public class " + pd.getTestFunction().getName() + " {\n"; code += " public " + pd.getTestFunction().getReturnValue().getType().toString().toLowerCase(); code += " " + pd.getTestFunction().getName().toLowerCase() + "("; boolean first = true; ...
public String generate(ProblemDefinition pd) { String code = "public class " + pd.getTestFunction().getName() + " {\n"; code += " public " + pd.getTestFunction().getReturnValue().getType().toString().toLowerCase(); code += " " + pd.getTestFunction().getName().toLowerCase() + "("; boolean first = true; ...
diff --git a/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/tests/AmqCppTestMarshallingClassesGenerator.java b/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/tests/AmqCppTestMarshallingClassesGenerator.java index 716a2609..7e523de2 100644 --- a/activemq-...
false
true
protected void generateFile(PrintWriter out) throws Exception { generateLicence(out); out.println(""); out.println("#include <activemq/wireformat/openwire/marshal/v"+getOpenwireVersion()+"/"+className+".h>"); out.println(""); out.println("#include <activemq/wireformat/openwire/marshal/v"+getOpenwireVersion...
protected void generateFile(PrintWriter out) throws Exception { generateLicence(out); out.println(""); out.println("#include <activemq/wireformat/openwire/marshal/v"+getOpenwireVersion()+"/"+className+".h>"); out.println(""); out.println("#include <activemq/wireformat/openwire/marshal/v"+getOpenwireVersion...
diff --git a/src/de/mud/terminal/vt320.java b/src/de/mud/terminal/vt320.java index ba636ae..e06915b 100644 --- a/src/de/mud/terminal/vt320.java +++ b/src/de/mud/terminal/vt320.java @@ -1,2747 +1,2743 @@ /* * This file is part of "JTA - Telnet/SSH for the JAVA(tm) platform". * * (c) Matthias L. Jugel, Marcus Mein...
false
true
private void putChar(char c, boolean doshowcursor) { int rows = getRows(); //statusline int columns = getColumns(); int tm = getTopMargin(); int bm = getBottomMargin(); // byte msg[]; boolean mapped = false; if (debug > 4) System.out.println("putChar(" + c + " [" + ((int) c) + "]) at R=" ...
private void putChar(char c, boolean doshowcursor) { int rows = getRows(); //statusline int columns = getColumns(); int tm = getTopMargin(); int bm = getBottomMargin(); // byte msg[]; boolean mapped = false; if (debug > 4) System.out.println("putChar(" + c + " [" + ((int) c) + "]) at R=" ...
diff --git a/modules/jpm-core/src/main/java/jpaoletti/jpm/core/Field.java b/modules/jpm-core/src/main/java/jpaoletti/jpm/core/Field.java index 6d64584..848e8fe 100755 --- a/modules/jpm-core/src/main/java/jpaoletti/jpm/core/Field.java +++ b/modules/jpm-core/src/main/java/jpaoletti/jpm/core/Field.java @@ -1,317 +1,319 @@...
true
true
public Object visualize(PMContext ctx, Operation operation, Entity entity) throws PMException { debug("Converting [" + operation.getId() + "]" + entity.getId() + "." + getId()); try { Converter c = null; if (getConverters() != null) { c = getConverters().getCo...
public Object visualize(PMContext ctx, Operation operation, Entity entity) throws PMException { debug("Converting [" + operation.getId() + "]" + entity.getId() + "." + getId()); try { Converter c = null; if (getConverters() != null) { c = getConverters().getCo...
diff --git a/common/src/main/java/org/cloudfoundry/identity/uaa/authentication/manager/PeriodLockoutPolicy.java b/common/src/main/java/org/cloudfoundry/identity/uaa/authentication/manager/PeriodLockoutPolicy.java index 6d598d3fb..11c6141d2 100644 --- a/common/src/main/java/org/cloudfoundry/identity/uaa/authentication/m...
true
true
public boolean isAllowed(UaaUser user, Authentication a) throws AuthenticationException { long eventsAfter = System.currentTimeMillis() - countFailuresWithinMs; List<AuditEvent> events = auditService.find(user.getId(), eventsAfter); final int failureCount = sequentialFailureCount(events); if (failureCount >...
public boolean isAllowed(UaaUser user, Authentication a) throws AuthenticationException { long eventsAfter = System.currentTimeMillis() - countFailuresWithinMs; List<AuditEvent> events = auditService.find(user.getId(), eventsAfter); final int failureCount = sequentialFailureCount(events); if (failureCount >...
diff --git a/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/EMFCompareIDEUIPlugin.java b/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/EMFCompareIDEUIPlugin.java index b67f573a7..df719103a 100644 --- a/plugins/org.eclipse.emf.compare.ide.ui/src/or...
true
true
protected boolean readElement(IConfigurationElement element, Action b) { if (element.getName().equals(TAG_FACTORY)) { if (element.getAttribute(ATT_CLASS) == null) { logMissingAttribute(element, ATT_CLASS); } else if (element.getAttribute(ATT_RANKING) == null) { String rankingStr = element.getAttr...
protected boolean readElement(IConfigurationElement element, Action b) { if (element.getName().equals(TAG_FACTORY)) { if (element.getAttribute(ATT_CLASS) == null) { logMissingAttribute(element, ATT_CLASS); } else if (element.getAttribute(ATT_RANKING) == null) { String rankingStr = element.getAttr...
diff --git a/search-impl/impl/src/java/org/sakaiproject/search/indexer/impl/ConcurrentSearchIndexBuilderWorkerImpl.java b/search-impl/impl/src/java/org/sakaiproject/search/indexer/impl/ConcurrentSearchIndexBuilderWorkerImpl.java index 459c7fcb..ba67f060 100644 --- a/search-impl/impl/src/java/org/sakaiproject/search/ind...
true
true
public void runOnce() { if (!enabled) { return; } if (componentManager.hasBeenClosed()) { log.info("Component Manager has been closed"); return; } nowIndexing.set("-"); if (journalSettings.getSoakTest() && (searchService.getPendingDocs() == 0)) { log.error("SOAK TEST---SOAK TEST---SOAK...
public void runOnce() { if (!enabled) { return; } if (componentManager.hasBeenClosed()) { log.info("Component Manager has been closed"); return; } nowIndexing.set("-"); if (journalSettings.getSoakTest() && (searchService.getPendingDocs() == 0)) { log.error("SOAK TEST---SOAK TEST---SOAK...
diff --git a/core/src/main/java/tripleplay/ui/bgs/TiledImageBackground.java b/core/src/main/java/tripleplay/ui/bgs/TiledImageBackground.java index a2bb4f04..2755b6a0 100644 --- a/core/src/main/java/tripleplay/ui/bgs/TiledImageBackground.java +++ b/core/src/main/java/tripleplay/ui/bgs/TiledImageBackground.java @@ -1,45 ...
false
true
@Override protected Instance instantiate (final IDimension size) { Layer layer = graphics().createImmediateLayer(new ImmediateLayer.Renderer() { public void render (Surface surf) { if (alpha != null) surf.setAlpha(alpha); float width = size.width(), height = size....
@Override protected Instance instantiate (final IDimension size) { Layer layer = graphics().createImmediateLayer(new ImmediateLayer.Renderer() { public void render (Surface surf) { // avoid rendering an unready image (which will have zero width/height) which will ...
diff --git a/main/src/main/java/com/bloatit/web/scgiserver/SCGIServer.java b/main/src/main/java/com/bloatit/web/scgiserver/SCGIServer.java index d33107534..97faca3c3 100644 --- a/main/src/main/java/com/bloatit/web/scgiserver/SCGIServer.java +++ b/main/src/main/java/com/bloatit/web/scgiserver/SCGIServer.java @@ -1,179 +...
false
true
private void serve() { // Find a better way to clean the socket try { final Socket cleanSocket = new Socket("127.0.0.1", 4000); cleanSocket.close(); } catch (final IOException ex) { } try { Thread.sleep(100); } catch (final Interru...
private void serve() { // Find a better way to clean the socket try { final Socket cleanSocket = new Socket("127.0.0.1", 4000); cleanSocket.close(); } catch (final IOException ex) { } try { Thread.sleep(100); } catch (final Interru...
diff --git a/src/main/java/org/dynjs/cli/Repl.java b/src/main/java/org/dynjs/cli/Repl.java index 7c0be6f6..c995d3b1 100644 --- a/src/main/java/org/dynjs/cli/Repl.java +++ b/src/main/java/org/dynjs/cli/Repl.java @@ -1,92 +1,93 @@ /** * Copyright 2013 Douglas Campos, and individual contributors * * Licensed unde...
true
true
public void run() { try { Settings consoleSettings = Settings.getInstance(); consoleSettings.setStdOut(this.out); consoleSettings.setInputStream(this.in); final Console console = Console.getInstance(); console.pushToStdOut(welcome); con...
public void run() { try { Settings consoleSettings = Settings.getInstance(); consoleSettings.setStdOut(this.out); consoleSettings.setInputStream(this.in); final Console console = Console.getInstance(); console.pushToStdOut(welcome); con...
diff --git a/Asteroids/test/CSV/StatisticsTest.java b/Asteroids/test/CSV/StatisticsTest.java index ec73352..2e6ffb1 100644 --- a/Asteroids/test/CSV/StatisticsTest.java +++ b/Asteroids/test/CSV/StatisticsTest.java @@ -1,63 +1,63 @@ package CSV; import static org.junit.Assert.*; import java.io.FileReader; import ...
true
true
public void testUpdateStats() { User Alice = new User("Alice", 0,0,0,0); try { Statistics.updateStats(Alice, 200, 1000); CSVReader reader = new CSVReader(new FileReader("resources/CSV/users.csv")); // Test Alice's statistics String[] nextLine = reader.readNext(); assertEquals("Ali...
public void testUpdateStats() { User Alice = new User("Alice", 0,0,0,0); try { Statistics.updateStats(Alice, 200, 1000); CSVReader reader = new CSVReader(new FileReader("resources/CSV/users.csv")); // Test Alice's statistics String[] nextLine = reader.readNext(); assertEquals("Ali...
diff --git a/trunk/src/webcamstudio/sources/VideoSourceFullDesktop.java b/trunk/src/webcamstudio/sources/VideoSourceFullDesktop.java index 828faab..1274022 100644 --- a/trunk/src/webcamstudio/sources/VideoSourceFullDesktop.java +++ b/trunk/src/webcamstudio/sources/VideoSourceFullDesktop.java @@ -1,123 +1,123 @@ /* *...
true
true
public void startSource() { String pipeline = "ximagesrc use-damage=false remote=false ! video/x-raw-rgb,framerate=" + frameRate + "/1 ! ffmpegcolorspace ! videoscale ! video/x-raw-rgb,width=" + captureWidth + ",height=" + captureHeight + ",bpp=32,depth=24, red_mask=65280, green_mask=16711680, blue_mask=-16...
public void startSource() { String pipeline = "ximagesrc use-damage=false remote=false ! video/x-raw-rgb,framerate=" + frameRate + "/1 ! ffmpegcolorspace ! videoscale method=2 ! video/x-raw-rgb,width=" + outputWidth + ",height=" + outputHeight + ",bpp=32,depth=24, red_mask=65280, green_mask=16711680, blue_m...
diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitHookChangesetCollector.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitHookChangesetCollector.java index b62848fb5..0d93ca5b1 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitHookChangesetC...
true
true
public List<Changeset> collectChangesets() { List<Changeset> changesets = Lists.newArrayList(); org.eclipse.jgit.lib.Repository repository = rpack.getRepository(); RevWalk walk = null; GitChangesetConverter converter = null; try { walk = rpack.getRevWalk(); converter = ne...
public List<Changeset> collectChangesets() { List<Changeset> changesets = Lists.newArrayList(); org.eclipse.jgit.lib.Repository repository = rpack.getRepository(); RevWalk walk = null; GitChangesetConverter converter = null; try { walk = rpack.getRevWalk(); converter = ne...
diff --git a/ChessFeud/src/se/chalmers/chessfeud/model/pieces/Pawn.java b/ChessFeud/src/se/chalmers/chessfeud/model/pieces/Pawn.java index 00f4781..34bf8bd 100644 --- a/ChessFeud/src/se/chalmers/chessfeud/model/pieces/Pawn.java +++ b/ChessFeud/src/se/chalmers/chessfeud/model/pieces/Pawn.java @@ -1,89 +1,89 @@ package ...
true
true
private List<Position> moveDirection(int px, int py, int team) { List<Position> moveList = new ArrayList<Position>(); int[] x = {-1, 0, 1, 0}; int[] whiteY = {-1, -1, -1, -2}; int[] blackY = {1, 1, 1, 2}; List<Integer> xIntList = new ArrayList<Integer>(); List<Integer> yIntList = new ArrayList<Integer>(); ...
private List<Position> moveDirection(int px, int py, int team) { List<Position> moveList = new ArrayList<Position>(); int[] x = {-1, 0, 1, 0}; int[] whiteY = {-1, -1, -1, -2}; int[] blackY = {1, 1, 1, 2}; List<Integer> xIntList = new ArrayList<Integer>(); List<Integer> yIntList = new ArrayList<Integer>(); ...
diff --git a/src/org/bonsaimind/easyminelauncher/Main.java b/src/org/bonsaimind/easyminelauncher/Main.java index 55a1071..1312d8b 100644 --- a/src/org/bonsaimind/easyminelauncher/Main.java +++ b/src/org/bonsaimind/easyminelauncher/Main.java @@ -1,352 +1,352 @@ /* * Copyright 2012 Robert 'Bobby' Zenz. All rights rese...
false
true
public static void main(String[] args) { String jarDir = ""; String jar = ""; String lwjglDir = ""; String mppass = ""; String nativeDir = ""; List<String> additionalJars = new ArrayList<String>(); boolean noFrame = false; List<String> options = new ArrayList<String>(); String parentDir = ""; Strin...
public static void main(String[] args) { String jarDir = ""; String jar = ""; String lwjglDir = ""; String mppass = ""; String nativeDir = ""; List<String> additionalJars = new ArrayList<String>(); boolean noFrame = false; List<String> options = new ArrayList<String>(); String parentDir = ""; Strin...
diff --git a/src/com/blarg/gdx/tilemap3d/ModelTileMesh.java b/src/com/blarg/gdx/tilemap3d/ModelTileMesh.java index 7fb2946..b69bcf1 100644 --- a/src/com/blarg/gdx/tilemap3d/ModelTileMesh.java +++ b/src/com/blarg/gdx/tilemap3d/ModelTileMesh.java @@ -1,202 +1,203 @@ package com.blarg.gdx.tilemap3d; import com.badlogi...
false
true
private void addModelNodeVertices(Node node, Map<String, TextureRegion> textures, Vector3 scaleFactor, Vector3 positionOffset) { final Matrix4 transform = node.globalTransform; // TODO: test that this is the right transform to use? for (int i = 0; i < node.parts.size; ++i) { NodePart nodePart = node.parts.get(...
private void addModelNodeVertices(Node node, Map<String, TextureRegion> textures, Vector3 scaleFactor, Vector3 positionOffset) { final Matrix4 transform = node.globalTransform; // TODO: test that this is the right transform to use? for (int i = 0; i < node.parts.size; ++i) { NodePart nodePart = node.parts.get(...
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/NewLayoutDataGenerator.java b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/NewLayoutDataGenerator.java index 2abce94e3..0ca13bba2 100644 --- a/plugins/org.eclipse.gmf.graphdef....
true
true
public String generate(Object argument) { StringBuffer stringBuffer = new StringBuffer(); // NOTE: this code expects that constrainted figure is already added to its parent GraphDefDispatcher.LayoutArgs argsBundle = (GraphDefDispatcher.LayoutArgs) argument; final GraphDefDispatcher dispatcher = argsBundle...
public String generate(Object argument) { StringBuffer stringBuffer = new StringBuffer(); // NOTE: this code expects that constrainted figure is already added to its parent GraphDefDispatcher.LayoutArgs argsBundle = (GraphDefDispatcher.LayoutArgs) argument; final GraphDefDispatcher dispatcher = argsBundle...
diff --git a/editor/src/construct/Header.java b/editor/src/construct/Header.java index e3e9e73..f9e0546 100644 --- a/editor/src/construct/Header.java +++ b/editor/src/construct/Header.java @@ -1,14 +1,15 @@ package construct; public class Header implements Construct { private int level; public Header(int...
true
true
public Header(int level){ System.out.println(level); }
public Header(int level){ this.level = level; System.out.println(level); }
diff --git a/java/src/main/java/ajeetmurty/reference/java/db/Mysql.java b/java/src/main/java/ajeetmurty/reference/java/db/Mysql.java index 9586f9c..cee5011 100644 --- a/java/src/main/java/ajeetmurty/reference/java/db/Mysql.java +++ b/java/src/main/java/ajeetmurty/reference/java/db/Mysql.java @@ -1,53 +1,53 @@ package ...
true
true
private void connectToDb() { try { logp.info(String.format("conn params: hostname|port|username|password : %1$s|%2$s|%3$s|%3$s", hostname, port, username, password)); MysqlDataSource dataSource = new MysqlDataSource(); dataSource.setServerName(hostname); dataSource.setPort(port); dataSource.setUser(u...
private void connectToDb() { try { logp.info(String.format("conn params: hostname|port|username|password : %1$s|%2$s|%3$s|%4$s", hostname, port, username, password)); MysqlDataSource dataSource = new MysqlDataSource(); dataSource.setServerName(hostname); dataSource.setPort(port); dataSource.setUser(u...
diff --git a/org.eclipse.scout.rt.ui.rap/src/org/eclipse/scout/rt/ui/rap/form/fields/datefield/chooser/DateChooserDialog.java b/org.eclipse.scout.rt.ui.rap/src/org/eclipse/scout/rt/ui/rap/form/fields/datefield/chooser/DateChooserDialog.java index 59390b8e6f..634e3cd076 100644 --- a/org.eclipse.scout.rt.ui.rap/src/org/e...
true
true
private Control createPickDateArea(Composite parent) { final Table table = new Table(parent, SWT.SINGLE | SWT.NO_SCROLL | SWT.HIDE_SELECTION); table.setData(WidgetUtil.CUSTOM_VARIANT, DATECHOOSER_DIALOG_CUSTOM_VARIANT); table.setLinesVisible(true); TableViewer viewer = new TableViewer(table); new ...
private Control createPickDateArea(Composite parent) { final Table table = new Table(parent, SWT.SINGLE | SWT.NO_SCROLL | SWT.HIDE_SELECTION); table.setData(WidgetUtil.CUSTOM_VARIANT, DATECHOOSER_DIALOG_CUSTOM_VARIANT); table.setLinesVisible(true); TableViewer viewer = new TableViewer(table); new ...
diff --git a/src/main/java/org/jbasics/discover/DiscoverableImplementationDelegate.java b/src/main/java/org/jbasics/discover/DiscoverableImplementationDelegate.java index ede2983..bea0151 100644 --- a/src/main/java/org/jbasics/discover/DiscoverableImplementationDelegate.java +++ b/src/main/java/org/jbasics/discover/Dis...
true
true
public T delegate() { if (this.instance != null) { Class<? extends T> temp = ServiceClassDiscovery.discoverImplementation(this.abstractClass, this.defaultImpl); if (temp == null) { throw new RuntimeException("Cannot find an implementation for the abstract class " + this.abstractClass.getName()); } tr...
public T delegate() { if (this.instance == null) { Class<? extends T> temp = ServiceClassDiscovery.discoverImplementation(this.abstractClass, this.defaultImpl); if (temp == null) { throw new RuntimeException("Cannot find an implementation for the abstract class " + this.abstractClass.getName()); } tr...
diff --git a/src/main/java/org/spout/vanilla/protocol/codec/ClientSettingsCodec.java b/src/main/java/org/spout/vanilla/protocol/codec/ClientSettingsCodec.java index 9105caf8..b3e3e7ab 100644 --- a/src/main/java/org/spout/vanilla/protocol/codec/ClientSettingsCodec.java +++ b/src/main/java/org/spout/vanilla/protocol/code...
true
true
public ChannelBuffer encode(ClientSettingsMessage message) throws IOException { ChannelBuffer buffer = ChannelBuffers.dynamicBuffer(); ChannelBufferUtils.writeString(buffer, message.getLocale()); buffer.writeByte(message.getViewDistance()); buffer.writeInt(message.getChatFlags()); buffer.writeByte(message.ge...
public ChannelBuffer encode(ClientSettingsMessage message) throws IOException { ChannelBuffer buffer = ChannelBuffers.dynamicBuffer(); ChannelBufferUtils.writeString(buffer, message.getLocale()); buffer.writeByte(message.getViewDistance()); buffer.writeByte(message.getChatFlags()); buffer.writeByte(message.g...
diff --git a/tests/gov.redhawk.eclipsecorba.library.tests/src/gov/redhawk/eclipsecorba/library/tests/PreferenceNodePathSetTest.java b/tests/gov.redhawk.eclipsecorba.library.tests/src/gov/redhawk/eclipsecorba/library/tests/PreferenceNodePathSetTest.java index 29b15d5a2..ba7b9fc56 100644 --- a/tests/gov.redhawk.eclipseco...
true
true
public void testGetDerivedPath() { InstanceScope.INSTANCE.getNode("gov.redhawk.eclipsecorba.library.tests").put("IdlIncludePath", "helloWorld"); final PreferenceNodePathSet pathSet = this.getFixture(); pathSet.setDelimiter(";"); pathSet.setFileUri(true); pathSet.setKey("IdlIncludePath"); pathSet.setQual...
public void testGetDerivedPath() { new InstanceScope().getNode("gov.redhawk.eclipsecorba.library.tests").put("IdlIncludePath", "helloWorld"); final PreferenceNodePathSet pathSet = this.getFixture(); pathSet.setDelimiter(";"); pathSet.setFileUri(true); pathSet.setKey("IdlIncludePath"); pathSet.setQualifi...
diff --git a/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/ResourceOpenOnTest.java b/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/ResourceOpenOnTest.java index 9360cd5f7..a45725499 100644 --- a/tests/org.jboss.tools.cdi.seam3.bot.test/src/...
false
true
public void testResourceOpenOn() { String className = "MyBean.java"; packageExplorer.openFile(getProjectName(), CDIConstants.SRC, "cdi.seam", className); openOnUtil.openOnByOption(CDIConstants.RESOURCE_ANNOTATION, className, "Open Resource"); String destinationFile = getEd().getTitle(); ass...
public void testResourceOpenOn() { String className = "MyBean.java"; packageExplorer.openFile(getProjectName(), CDIConstants.SRC, "cdi.seam", className); assertTrue(openOnUtil.openOnByOption(CDIConstants.RESOURCE_ANNOTATION, className, "Open Resource")); String destinationFile = getEd().ge...
diff --git a/src/com/android/nitelights/ui/VenuesFragment.java b/src/com/android/nitelights/ui/VenuesFragment.java index a4c1320..8af0653 100644 --- a/src/com/android/nitelights/ui/VenuesFragment.java +++ b/src/com/android/nitelights/ui/VenuesFragment.java @@ -1,49 +1,48 @@ package com.android.nitelights.ui; import...
true
true
public void onViewCreated(View view, Bundle savedInstanceState){ super.onViewCreated(view, savedInstanceState); String[] title_venue = new String[] { "Light Ultra Club", "Stereo Night Club", "Club La Boom Montreal", "Altitude 737", "Bar Downtown", "Bains Douches", "Radio Lounge", "1234 Club", ...
public void onViewCreated(View view, Bundle savedInstanceState){ super.onViewCreated(view, savedInstanceState); String[] title_venue = new String[] { "Light Ultra Club", "Stereo Night Club", "Club La Boom Montreal", "Altitude 737", "Bar Downtown", "Bains Douches", "Radio Lounge", "1234 Club", ...
diff --git a/kernel-impl/src/main/java/org/sakaiproject/content/impl/CollectionAccessFormatter.java b/kernel-impl/src/main/java/org/sakaiproject/content/impl/CollectionAccessFormatter.java index 1f9f9ce8..e24a16fc 100644 --- a/kernel-impl/src/main/java/org/sakaiproject/content/impl/CollectionAccessFormatter.java +++ b/...
false
true
public static void format(ContentCollection x, Reference ref, HttpServletRequest req, HttpServletResponse res, String accessPointTrue, String accessPointFalse) { // do not allow directory listings for /attachments and its subfolders if(ContentHostingService.isAttachmentResource(x.getId())) { try { ...
public static void format(ContentCollection x, Reference ref, HttpServletRequest req, HttpServletResponse res, String accessPointTrue, String accessPointFalse) { // do not allow directory listings for /attachments and its subfolders if(ContentHostingService.isAttachmentResource(x.getId())) { try { ...
diff --git a/sip-servlets-test-suite/testsuite/src/main/java/org/mobicents/servlet/sip/SipEmbedded.java b/sip-servlets-test-suite/testsuite/src/main/java/org/mobicents/servlet/sip/SipEmbedded.java index 0488faa9d..e9f510d28 100644 --- a/sip-servlets-test-suite/testsuite/src/main/java/org/mobicents/servlet/sip/SipEmbedd...
true
true
public void startTomcat() throws Exception { // Set the home directory System.setProperty("CATALINA_HOME", getPath()); System.setProperty("CATALINA_BASE", getPath()); System.setProperty("catalina.home", getPath()); System.setProperty("catalina.base", getPath()); //logging configuration System.setPro...
public void startTomcat() throws Exception { // Set the home directory System.setProperty("CATALINA_HOME", getPath()); System.setProperty("CATALINA_BASE", getPath()); System.setProperty("catalina.home", getPath()); System.setProperty("catalina.base", getPath()); //logging configuration System.setPro...
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/ExceptionCollector.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/ExceptionCollector.java index 4040876df..0a36ec8d9 100644 --- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/ExceptionCollector.jav...
true
true
public void handleException(CoreException e) { // log the exception if we have a log if(log != null) { log.log(new Status(severity, pluginId, 0, message, e)); } // Record each status individually to flatten the resulting multi-status IStatus status = e.getStatus(); ...
public void handleException(CoreException e) { // log the exception if we have a log if(log != null) { log.log(new Status(severity, pluginId, 0, message, e)); } // Record each status individually to flatten the resulting multi-status IStatus exceptionStatus = e.getSt...
diff --git a/src/twogtp/TwoGtp.java b/src/twogtp/TwoGtp.java index 60a588bb..d55742bf 100644 --- a/src/twogtp/TwoGtp.java +++ b/src/twogtp/TwoGtp.java @@ -1,1322 +1,1322 @@ //----------------------------------------------------------------------------- // $Id$ // $Source$ //-----------------------------------------...
true
true
public static void main(String[] args) { try { String options[] = { "alternate", "analyze:", "auto", "black:", "compare", "config:", "estimate-score", "forc...
public static void main(String[] args) { try { String options[] = { "alternate", "analyze:", "auto", "black:", "compare", "config:", "estimate-score", "forc...
diff --git a/server/src/main/java/org/openqa/selenium/server/testgenerator/XlateHtmlSeleneseToJava.java b/server/src/main/java/org/openqa/selenium/server/testgenerator/XlateHtmlSeleneseToJava.java index 7278c9ee..6974259e 100644 --- a/server/src/main/java/org/openqa/selenium/server/testgenerator/XlateHtmlSeleneseToJava...
true
true
private static String XlateSeleneseStatementTokens(String op, String[] tokens, String oldLine) { boolean isBoolean = isBoolean(op); String commentedSelenese = "\t\t// " + oldLine .replaceFirst(BEGIN_SELENESE, "") .replaceFirst(END_SELENESE, "") .replaceAll(SELENESE_TOKEN_DIVI...
private static String XlateSeleneseStatementTokens(String op, String[] tokens, String oldLine) { boolean isBoolean = isBoolean(op); String commentedSelenese = "\t\t// " + oldLine .replaceFirst(BEGIN_SELENESE, "") .replaceFirst(END_SELENESE, "") .replaceAll(SELENESE_TOKEN_DIVI...
diff --git a/src/com/sparkedia/valrix/BackToBody/BackToBody.java b/src/com/sparkedia/valrix/BackToBody/BackToBody.java index 61ce2d8..1f63bc8 100644 --- a/src/com/sparkedia/valrix/BackToBody/BackToBody.java +++ b/src/com/sparkedia/valrix/BackToBody/BackToBody.java @@ -1,172 +1,173 @@ package com.sparkedia.valrix.BackT...
false
true
public void onEnable() { PluginDescriptionFile pdf = getDescription(); pName = pdf.getName(); log = getServer().getLogger(); // Set up Permissions support if (getServer().getPluginManager().getPlugin("Permissions") != null) { permission = ((Permissions)getServer().getPluginManager().getPlugin("Permission...
public void onEnable() { PluginDescriptionFile pdf = getDescription(); pName = pdf.getName(); log = getServer().getLogger(); // Set up Permissions support if (getServer().getPluginManager().getPlugin("Permissions") != null) { permission = ((Permissions)getServer().getPluginManager().getPlugin("Permission...
diff --git a/src/de/ueller/midlet/gps/RouteInstructions.java b/src/de/ueller/midlet/gps/RouteInstructions.java index d4deb88f..ac79ba27 100644 --- a/src/de/ueller/midlet/gps/RouteInstructions.java +++ b/src/de/ueller/midlet/gps/RouteInstructions.java @@ -1,1401 +1,1401 @@ /* * GpsMid - Copyright (c) 2009 sk750 at us...
true
true
public void showRoute(PaintContext pc, Node center,int xo,int yo) { /* PASSINGDISTANCE is the distance when a routing arrow is considered to match to the current position. We currently can't adjust this value according to the speed because if we would be slowing down during approaching the arrow, then PA...
public void showRoute(PaintContext pc, Node center,int xo,int yo) { /* PASSINGDISTANCE is the distance when a routing arrow is considered to match to the current position. We currently can't adjust this value according to the speed because if we would be slowing down during approaching the arrow, then PA...
diff --git a/org.xpect.ui/src/org/xpect/ui/util/XtInjectorSetupUtil.java b/org.xpect.ui/src/org/xpect/ui/util/XtInjectorSetupUtil.java index e9e77c4..cf16b32 100644 --- a/org.xpect.ui/src/org/xpect/ui/util/XtInjectorSetupUtil.java +++ b/org.xpect.ui/src/org/xpect/ui/util/XtInjectorSetupUtil.java @@ -1,67 +1,69 @@ /***...
false
true
public static Injector getWorkbenchInjector(ILanguageInfo lang, IFile file) { Injector injector = lang.getInjector(); XpectFile xpectFile = XpectUtil.load(file); XpectTest xpectTest = xpectFile.getTest(); List<Module> modules = Lists.newArrayList(); modules.add(injector.getInstance(XtRuntimeModule.class)); ...
public static Injector getWorkbenchInjector(ILanguageInfo lang, IFile file) { Injector injector = lang.getInjector(); XpectFile xpectFile = XpectUtil.load(file); List<Module> modules = Lists.newArrayList(); modules.add(injector.getInstance(XtRuntimeModule.class)); modules.add(injector.getInstance(XtUIModule....
diff --git a/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/frameworkadmin/equinox/internal/EquinoxFwConfigFileParser.java b/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/frameworkadmin/equinox/internal/EquinoxFwConfigFileParser.java index 7e1cb6831..750e65701 10...
false
true
public void readFwConfig(Manipulator manipulator, File inputFile) throws IOException { if (inputFile.isDirectory()) throw new IllegalArgumentException("inputFile:" + inputFile + " must not be a directory."); ConfigData configData = manipulator.getConfigData(); LauncherData launcherData = manipulator.getLaunc...
public void readFwConfig(Manipulator manipulator, File inputFile) throws IOException { if (inputFile.isDirectory()) throw new IllegalArgumentException("inputFile:" + inputFile + " must not be a directory."); //Initialize data structures ConfigData configData = manipulator.getConfigData(); LauncherData laun...
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/securestorage/EGitSecureStore.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/securestorage/EGitSecureStore.java index 355b7547..3c71cc86 100644 --- a/org.eclipse.egit.core/src/org/eclipse/egit/core/securestorage/EGitSecureStore.java +++ b/org.eclipse....
false
true
static String calcNodePath(URIish uri) { URIish storedURI = uri.setUser(null).setPass(null).setPath(null); if (uri.getPort() == -1) { String s = uri.getScheme(); if (s.equals("http")) //$NON-NLS-1$ storedURI = storedURI.setPort(80); else if (s.equals("https")) //$NON-NLS-1$ storedURI = storedURI.s...
static String calcNodePath(URIish uri) { URIish storedURI = uri.setUser(null).setPass(null).setPath(null); if (uri.getPort() == -1) { String s = uri.getScheme(); if ("http".equals(s)) //$NON-NLS-1$ storedURI = storedURI.setPort(80); else if ("https".equals(s)) //$NON-NLS-1$ storedURI = storedURI.s...
diff --git a/src/org/fox/ttrss/HeadlinesFragment.java b/src/org/fox/ttrss/HeadlinesFragment.java index 3e183c9..c717dca 100644 --- a/src/org/fox/ttrss/HeadlinesFragment.java +++ b/src/org/fox/ttrss/HeadlinesFragment.java @@ -1,406 +1,406 @@ package org.fox.ttrss; import java.lang.reflect.Type; import java.text.Dat...
true
true
public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; final Article article = items.get(position); if (v == null) { int layoutId = R.layout.headlines_row; switch (getItemViewType(position)) { case VIEW_UNREAD: layoutId = R.layout.headlines_row_...
public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; final Article article = items.get(position); if (v == null) { int layoutId = R.layout.headlines_row; switch (getItemViewType(position)) { case VIEW_UNREAD: layoutId = R.layout.headlines_row_...
diff --git a/Core/src/com/serotonin/m2m2/db/dao/AbstractBasicDao.java b/Core/src/com/serotonin/m2m2/db/dao/AbstractBasicDao.java index 652e18d66..9c6e7c381 100644 --- a/Core/src/com/serotonin/m2m2/db/dao/AbstractBasicDao.java +++ b/Core/src/com/serotonin/m2m2/db/dao/AbstractBasicDao.java @@ -1,534 +1,548 @@ /* * Co...
true
true
protected String applyConditions(String sql, List<Object> args, Map<String, String> query, boolean or) { if (query != null && !query.isEmpty()) { int i = 0; for (String prop : query.keySet()) { boolean mapped = false; String dbProp = prop;...
protected String applyConditions(String sql, List<Object> args, Map<String, String> query, boolean or) { if (query != null && !query.isEmpty()) { int i = 0; for (String prop : query.keySet()) { boolean mapped = false; String dbProp = prop;...
diff --git a/src/main/java/hudson/plugins/sauce_ondemand/SauceOnDemandReportPublisher.java b/src/main/java/hudson/plugins/sauce_ondemand/SauceOnDemandReportPublisher.java index 6a5d8a1..ba31698 100755 --- a/src/main/java/hudson/plugins/sauce_ondemand/SauceOnDemandReportPublisher.java +++ b/src/main/java/hudson/plugins/...
false
true
public SauceOnDemandReportFactory getTestData(AbstractBuild<?, ?> build, Launcher launcher, BuildListener buildListener, TestResult testResult) throws IOException, InterruptedException { SauceREST sauceREST = new SauceREST(PluginImpl.get().getUsername(), Secret.toString(PluginImpl.get().getApiKey())); ...
public SauceOnDemandReportFactory getTestData(AbstractBuild<?, ?> build, Launcher launcher, BuildListener buildListener, TestResult testResult) throws IOException, InterruptedException { SauceREST sauceREST = new SauceREST(PluginImpl.get().getUsername(), Secret.toString(PluginImpl.get().getApiKey())); ...
diff --git a/modules/dm4-accesscontrol/src/main/java/de/deepamehta/plugins/accesscontrol/AccessControlPlugin.java b/modules/dm4-accesscontrol/src/main/java/de/deepamehta/plugins/accesscontrol/AccessControlPlugin.java index 4b8b18496..35bc54922 100644 --- a/modules/dm4-accesscontrol/src/main/java/de/deepamehta/plugins/a...
true
true
public void postUpdateTopic(Topic topic, TopicModel newModel, TopicModel oldModel, ClientState clientState, Directives directives) { if (topic.getTypeUri().equals("dm4.accesscontrol.user_account")) { Topic use...
public void postUpdateTopic(Topic topic, TopicModel newModel, TopicModel oldModel, ClientState clientState, Directives directives) { if (topic.getTypeUri().equals("dm4.accesscontrol.user_account")) { Topic use...
diff --git a/src/com/android/phone/CallNotifier.java b/src/com/android/phone/CallNotifier.java index c1f26408..98f2610a 100755 --- a/src/com/android/phone/CallNotifier.java +++ b/src/com/android/phone/CallNotifier.java @@ -1,1994 +1,1994 @@ /* * Copyright (C) 2006 The Android Open Source Project * * Licensed und...
false
true
private void onDisconnect(AsyncResult r) { if (VDBG) log("onDisconnect()... CallManager state: " + mCM.getState()); mVoicePrivacyState = false; Connection c = (Connection) r.result; if (DBG && c != null) { log("- onDisconnect: cause = " + c.getDisconnectCause() ...
private void onDisconnect(AsyncResult r) { if (VDBG) log("onDisconnect()... CallManager state: " + mCM.getState()); mVoicePrivacyState = false; Connection c = (Connection) r.result; if (DBG && c != null) { log("- onDisconnect: cause = " + c.getDisconnectCause() ...
diff --git a/src/main/java/org/couchbase/mock/http/PoolsHandler.java b/src/main/java/org/couchbase/mock/http/PoolsHandler.java index 93eac73..727c1c9 100644 --- a/src/main/java/org/couchbase/mock/http/PoolsHandler.java +++ b/src/main/java/org/couchbase/mock/http/PoolsHandler.java @@ -1,160 +1,160 @@ /** * Copyri...
true
true
public void handle(HttpExchange exchange) throws IOException { String path = exchange.getRequestURI().getPath(); OutputStream body = exchange.getResponseBody(); String bucketName = exchange.getPrincipal().getName(); byte[] payload; boolean chunked = false; if (path.m...
public void handle(HttpExchange exchange) throws IOException { String path = exchange.getRequestURI().getPath(); OutputStream body = exchange.getResponseBody(); String bucketName = exchange.getPrincipal().getName(); byte[] payload; boolean chunked = false; if (path.m...
diff --git a/src/org/romaframework/core/schema/SchemaAction.java b/src/org/romaframework/core/schema/SchemaAction.java index 360cc88..bfac17c 100644 --- a/src/org/romaframework/core/schema/SchemaAction.java +++ b/src/org/romaframework/core/schema/SchemaAction.java @@ -1,190 +1,194 @@ /* * Copyright 2006 Luca Garulli...
false
true
public Object invoke(Object iContent, Object... params) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { try { // CREATE THE CONTEXT BEFORE TO CALL THE ACTION Roma.context().create(); List<SchemaActionListener> listeners = Controller.getInstance().getListeners(SchemaAct...
public Object invoke(Object iContent, Object... params) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { try { // CREATE THE CONTEXT BEFORE TO CALL THE ACTION Roma.context().create(); List<SchemaActionListener> listeners = Controller.getInstance().getListeners(SchemaAct...
diff --git a/jcae/mesh-algos/src/org/jcae/netbeans/mesh/DecimateAction.java b/jcae/mesh-algos/src/org/jcae/netbeans/mesh/DecimateAction.java index 8c6dd14e..bd6061e3 100644 --- a/jcae/mesh-algos/src/org/jcae/netbeans/mesh/DecimateAction.java +++ b/jcae/mesh-algos/src/org/jcae/netbeans/mesh/DecimateAction.java @@ -1,75 ...
false
true
protected List<String> getArguments(AmibeDataObject ado) { DecimateParameter bean=new DecimateParameter(); if(bean.showDialog()) { String meshDirectory = ado.getMeshDirectory(); ArrayList<String> l = new ArrayList<String>(); if(bean.isUseTolerance()) { l.add("-t"); l.add(Double.toString(bean....
protected List<String> getArguments(AmibeDataObject ado) { DecimateParameter bean=new DecimateParameter(); if(bean.showDialog()) { String meshDirectory = ado.getMeshDirectory(); ArrayList<String> l = new ArrayList<String>(); if(bean.isUseTolerance()) { l.add("-t"); l.add(Double.toString(bean....
diff --git a/src/main/java/lcmc/gui/dialog/host/DialogHost.java b/src/main/java/lcmc/gui/dialog/host/DialogHost.java index f4b40c7a..4982fc08 100644 --- a/src/main/java/lcmc/gui/dialog/host/DialogHost.java +++ b/src/main/java/lcmc/gui/dialog/host/DialogHost.java @@ -1,315 +1,314 @@ /* * This file is part of DRBD Man...
false
true
protected final Widget getInstallationMethods( final String prefix, final boolean staging, final String lastInstalledMethod, final String autoOp...
protected final Widget getInstallationMethods( final String prefix, final boolean staging, final String lastInstalledMethod, final String autoOp...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/SynchronizeQueryJob.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/SynchronizeQueryJob.java index 1fd9530c6..5f79831e4 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/SynchronizeQueryJob.java +++ b/org.eclips...
true
true
protected IStatus run(IProgressMonitor monitor) { try { monitor.beginTask("Synchronizing " + queries.size() + " queries", 20 + queries.size() * 10 + 40); Set<AbstractTask> allTasks = Collections.unmodifiableSet(taskList.getRepositoryTasks(repository.getUrl())); for (AbstractTask task : allTasks) { tas...
protected IStatus run(IProgressMonitor monitor) { try { monitor.beginTask("Synchronizing " + queries.size() + " queries", 20 + queries.size() * 10 + 40); Set<AbstractTask> allTasks = Collections.unmodifiableSet(taskList.getRepositoryTasks(repository.getUrl())); for (AbstractTask task : allTasks) { if ...
diff --git a/src/impl/java/org/wyona/yarep/impl/search/lucene/LuceneConfig.java b/src/impl/java/org/wyona/yarep/impl/search/lucene/LuceneConfig.java index c6cf0a6..cf77120 100644 --- a/src/impl/java/org/wyona/yarep/impl/search/lucene/LuceneConfig.java +++ b/src/impl/java/org/wyona/yarep/impl/search/lucene/LuceneConfig....
false
true
public void configure(Configuration searchConfig, String configParent) throws SearchException { try { if (searchConfig != null) { if(searchConfig.getNamespace() == "" || searchConfig.getNamespace() == null) { deprecatedConfigure(searchConfig, configParent); ...
public void configure(Configuration searchConfig, String configParent) throws SearchException { try { if (searchConfig != null) { if(searchConfig.getNamespace() == "" || searchConfig.getNamespace() == null) { deprecatedConfigure(searchConfig, configParent); ...
diff --git a/src/bitronix/tm/resource/common/TransactionContextHelper.java b/src/bitronix/tm/resource/common/TransactionContextHelper.java index 84f7baf..634c944 100644 --- a/src/bitronix/tm/resource/common/TransactionContextHelper.java +++ b/src/bitronix/tm/resource/common/TransactionContextHelper.java @@ -1,243 +1,24...
true
true
public static void requeue(XAStatefulHolder xaStatefulHolder, ResourceBean bean) throws BitronixSystemException { BitronixTransaction currentTransaction = TransactionManagerServices.getTransactionManager().getCurrentTransaction(); if (log.isDebugEnabled()) log.debug("requeuing " + xaStatefulHolder +...
public static void requeue(XAStatefulHolder xaStatefulHolder, ResourceBean bean) throws BitronixSystemException { BitronixTransaction currentTransaction = TransactionManagerServices.getTransactionManager().getCurrentTransaction(); if (log.isDebugEnabled()) log.debug("requeuing " + xaStatefulHolder +...
diff --git a/src/core/src/main/java/org/geogit/api/porcelain/CommitOp.java b/src/core/src/main/java/org/geogit/api/porcelain/CommitOp.java index a1d89ad5..a4c5ca59 100644 --- a/src/core/src/main/java/org/geogit/api/porcelain/CommitOp.java +++ b/src/core/src/main/java/org/geogit/api/porcelain/CommitOp.java @@ -1,477 +1,...
false
true
public RevCommit call() throws RuntimeException { final String committer = resolveCommitter(); final String committerEmail = resolveCommitterEmail(); final String author = resolveAuthor(); final String authorEmail = resolveAuthorEmail(); final Long authorTime = getAuthorTimeS...
public RevCommit call() throws RuntimeException { final String committer = resolveCommitter(); final String committerEmail = resolveCommitterEmail(); final String author = resolveAuthor(); final String authorEmail = resolveAuthorEmail(); final Long authorTime = getAuthorTimeS...