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/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/PatchSetComplexDisclosurePanel.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/PatchSetComplexDisclosurePanel.java index efa971b12..364d710c5 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/PatchSetCompl...
true
true
private void displayDownload() { final Project.NameKey projectKey = changeDetail.getChange().getProject(); final String projectName = projectKey.get(); final CopyableLabel copyLabel = new CopyableLabel(""); final DownloadCommandPanel commands = new DownloadCommandPanel(); final DownloadUrlPanel ur...
private void displayDownload() { final Project.NameKey projectKey = changeDetail.getChange().getProject(); final String projectName = projectKey.get(); final CopyableLabel copyLabel = new CopyableLabel(""); final DownloadCommandPanel commands = new DownloadCommandPanel(); final DownloadUrlPanel ur...
diff --git a/jsf-ri/systest/src/com/sun/faces/systest/tags/EventTestCase.java b/jsf-ri/systest/src/com/sun/faces/systest/tags/EventTestCase.java index b192366d6..c5c54379b 100644 --- a/jsf-ri/systest/src/com/sun/faces/systest/tags/EventTestCase.java +++ b/jsf-ri/systest/src/com/sun/faces/systest/tags/EventTestCase.java...
true
true
private void validateOutput(List<HtmlSpan> outputs) { HtmlSpan s; // Short name s = outputs.get(0); assertTrue(("The 'javax.faces.event.BeforeRenderEvent' event fired!").equals(s.asText())); // Long name s = outputs.get(1); assertTrue(("The 'javax.faces.eve...
private void validateOutput(List<HtmlSpan> outputs) { HtmlSpan s; // Short name s = outputs.get(0); assertTrue(("The 'javax.faces.event.BeforeRenderEvent' event fired!").equals(s.asText())); // Long name s = outputs.get(1); assertTrue(("The 'javax.faces.eve...
diff --git a/src/com/android/camera/ui/CameraSwitcher.java b/src/com/android/camera/ui/CameraSwitcher.java index d7227681..185accd3 100644 --- a/src/com/android/camera/ui/CameraSwitcher.java +++ b/src/com/android/camera/ui/CameraSwitcher.java @@ -1,287 +1,287 @@ /* * Copyright (C) 2012 The Android Open Source Projec...
true
true
private void initPopup() { mParent = LayoutInflater.from(getContext()).inflate(R.layout.switcher_popup, (ViewGroup) getParent()); LinearLayout content = (LinearLayout) mParent.findViewById(R.id.content); mPopup = content; mPopup.setVisibility(View.INVISIBLE); ...
private void initPopup() { mParent = LayoutInflater.from(getContext()).inflate(R.layout.switcher_popup, (ViewGroup) getParent()); LinearLayout content = (LinearLayout) mParent.findViewById(R.id.content); mPopup = content; mPopup.setVisibility(View.INVISIBLE); ...
diff --git a/src/main/java/net/deepbondi/minecraft/market/CommoditiesMarket.java b/src/main/java/net/deepbondi/minecraft/market/CommoditiesMarket.java index fb8c63e..112294d 100644 --- a/src/main/java/net/deepbondi/minecraft/market/CommoditiesMarket.java +++ b/src/main/java/net/deepbondi/minecraft/market/CommoditiesMar...
false
true
private synchronized Commodity lookupCommodity(final String name) throws NoSuchCommodityException { // Accept "names" in several forms: // Material:byte and associated forms like in ScrapBukkit's /give // Commodity name from database final Commodity commodity = getDatabase() ...
private synchronized Commodity lookupCommodity(final String name) throws NoSuchCommodityException { // Accept "names" in several forms: // Material:byte and associated forms like in ScrapBukkit's /give // Commodity name from database final Commodity commodity = getDatabase() ...
diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/region/DestinationFilter.java b/activemq-broker/src/main/java/org/apache/activemq/broker/region/DestinationFilter.java index a7613ef2d..ecf6cf75d 100644 --- a/activemq-broker/src/main/java/org/apache/activemq/broker/region/DestinationFilter.java +++ ...
true
true
public void deleteSubscription(ConnectionContext context, SubscriptionKey key) throws Exception { Destination target = next; while (target instanceof DestinationFilter) { target = ((DestinationFilter) target).next; } if (target instanceof Topic) { Topic topic ...
public void deleteSubscription(ConnectionContext context, SubscriptionKey key) throws Exception { if (next instanceof DestinationFilter) { DestinationFilter filter = (DestinationFilter) next; filter.deleteSubscription(context, key); } else if (next instanceof Topic) { ...
diff --git a/trunk/mafiabot/src/com/googlecode/prmf/starter/MafiaListener.java b/trunk/mafiabot/src/com/googlecode/prmf/starter/MafiaListener.java index 7a8c6d0..f43f503 100644 --- a/trunk/mafiabot/src/com/googlecode/prmf/starter/MafiaListener.java +++ b/trunk/mafiabot/src/com/googlecode/prmf/starter/MafiaListener.java...
true
true
public void receiveLine(String in, IOThread inputThread) { String[] msg = in.split(" ",4); String user = ""; if(msg[0].indexOf("!") > 1) user = msg[0].substring(1,msg[0].indexOf("!")); if(msg.length >=2 && (msg[1].startsWith("KICK") || msg[1].startsWith("PART") || msg[1].startsWith("QUIT") )) { ga...
public void receiveLine(String in, IOThread inputThread) { String[] msg = in.split(" ",4); String user = ""; if(msg[0].indexOf("!") > 1) user = msg[0].substring(1,msg[0].indexOf("!")); if(msg.length >=2 && game != null && (msg[1].startsWith("KICK") || msg[1].startsWith("PART") || msg[1].startsWith("QUI...
diff --git a/src/plugins/XMLLibrarian/Progress.java b/src/plugins/XMLLibrarian/Progress.java index 3f17b57..00a55b3 100644 --- a/src/plugins/XMLLibrarian/Progress.java +++ b/src/plugins/XMLLibrarian/Progress.java @@ -1,122 +1,124 @@ package plugins.XMLLibrarian; import freenet.client.events.ClientEventListener; im...
false
true
public String get(String format){ // probably best to do this with a lock // look for a progress update while(retrieved && !complete) // whilst theres no new msg try{ Thread.sleep(500); }catch(java.lang.InterruptedException e){ } ...
public String get(String format){ // probably best to do this with a lock // look for a progress update while(retrieved && !complete) // whilst theres no new msg try{ Thread.sleep(500); }catch(java.lang.InterruptedException e){ } ...
diff --git a/Client2D/src/com/pi/client/net/NetClientHandler.java b/Client2D/src/com/pi/client/net/NetClientHandler.java index 36ae083..e27e609 100644 --- a/Client2D/src/com/pi/client/net/NetClientHandler.java +++ b/Client2D/src/com/pi/client/net/NetClientHandler.java @@ -1,123 +1,122 @@ package com.pi.client.net; ...
true
true
public void process(Packet16EntityMove p) { ClientEntity ent = client.getEntityManager().getEntity(p.entity); if (ent == null) { ent = new ClientEntity(); ent.setEntityID(p.entity); client.getEntityManager().saveEntity(ent); client.getNetwork() .send(Packet10EntityDataRequest.create(p.en...
public void process(Packet16EntityMove p) { ClientEntity ent = client.getEntityManager().getEntity(p.entity); if (ent == null) { ent = new ClientEntity(); ent.setEntityID(p.entity); client.getEntityManager().saveEntity(ent); client.getNetwork() .send(Packet10EntityDataRequest.create(p.en...
diff --git a/com.uwusoft.timesheet/src/com/uwusoft/timesheet/extensionpoint/LocalStorageService.java b/com.uwusoft.timesheet/src/com/uwusoft/timesheet/extensionpoint/LocalStorageService.java index 58e81fd..5b20f0f 100644 --- a/com.uwusoft.timesheet/src/com/uwusoft/timesheet/extensionpoint/LocalStorageService.java +++ b...
false
true
private LocalStorageService() { IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore(); Calendar cal = new GregorianCalendar(); cal.setTime(new Date()); String timesheetName = StorageService.TIMESHEET_PREFIX + cal.get(Calendar.YEAR); factory = Persistence.createEntityManagerFactory(PE...
private LocalStorageService() { IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore(); Calendar cal = new GregorianCalendar(); cal.setTime(new Date()); String timesheetName = StorageService.TIMESHEET_PREFIX + cal.get(Calendar.YEAR); factory = Persistence.createEntityManagerFactory(PE...
diff --git a/kernel/src/main/java/org/vosao/filter/LanguageFilter.java b/kernel/src/main/java/org/vosao/filter/LanguageFilter.java index 8f626cf..95aece1 100644 --- a/kernel/src/main/java/org/vosao/filter/LanguageFilter.java +++ b/kernel/src/main/java/org/vosao/filter/LanguageFilter.java @@ -1,73 +1,73 @@ /** * Vosa...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest)request; HttpSession session = httpRequest.getSession(true); VosaoContext ctx = VosaoContext.getInstance(); ...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest)request; HttpSession session = httpRequest.getSession(true); VosaoContext ctx = VosaoContext.getInstance(); ...
diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManager.java b/src/main/java/net/minecraft/server/ServerConfigurationManager.java index 5ca09fc..061ad9f 100755 --- a/src/main/java/net/minecraft/server/ServerConfigurationManager.java +++ b/src/main/java/net/minecraft/server/ServerConfigurationManager....
true
true
public EntityPlayerMP a(EntityPlayerMP entityplayermp, int i0, boolean flag0, Location loc) { entityplayermp.p().q().a(entityplayermp); entityplayermp.p().q().b(entityplayermp); entityplayermp.p().s().c(entityplayermp); this.a.remove(entityplayermp); this.e.a(entityplayermp.a...
public EntityPlayerMP a(EntityPlayerMP entityplayermp, int i0, boolean flag0, Location loc) { entityplayermp.p().q().a(entityplayermp); entityplayermp.p().q().b(entityplayermp); entityplayermp.p().s().c(entityplayermp); this.a.remove(entityplayermp); this.e.getWorld(entitypla...
diff --git a/MarketSim/src/Market.java b/MarketSim/src/Market.java index 6e42ceb..cbf2957 100644 --- a/MarketSim/src/Market.java +++ b/MarketSim/src/Market.java @@ -1,265 +1,259 @@ import java.io.BufferedWriter; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util....
false
true
private void matchAndExecuteTrades(){ for (Commodity commodity : commodities){ { double newMarketPrice = 0; int quantitySold = 0; ArrayList<Bid> buyList = shuffledBuyBids.get(commodity); ArrayList<Bid> sellList = shuffledSellBids.get(commodity); ...
private void matchAndExecuteTrades(){ for (Commodity commodity : commodities){ { double newMarketPrice = 0; int quantitySold = 0; ArrayList<Bid> buyList = shuffledBuyBids.get(commodity); ArrayList<Bid> sellList = shuffledSellBids.get(commodity); ...
diff --git a/openFacesInspectors/source/org/seleniuminspector/openfaces/InputTextFilterInspector.java b/openFacesInspectors/source/org/seleniuminspector/openfaces/InputTextFilterInspector.java index 8f37db764..1ba2b2221 100644 --- a/openFacesInspectors/source/org/seleniuminspector/openfaces/InputTextFilterInspector.jav...
true
true
public void makeFiltering(String filterValue) { InputTextInspector searchComponent = searchComponent(); searchComponent.type(filterValue); searchComponent.setCursorPosition(0); sleep(100); searchComponent.keyDown(13); getLoadingMode().waitForLoad(); }
public void makeFiltering(String filterValue) { InputTextInspector searchComponent = searchComponent(); searchComponent.type(filterValue); searchComponent.setCursorPosition(0); sleep(1000); searchComponent.keyDown(13); getLoadingMode().waitForLoad(); }
diff --git a/grails-maven-plugin/src/main/java/org/grails/maven/plugin/AbstractGrailsMojo.java b/grails-maven-plugin/src/main/java/org/grails/maven/plugin/AbstractGrailsMojo.java index 59732e9b3..6394c7531 100644 --- a/grails-maven-plugin/src/main/java/org/grails/maven/plugin/AbstractGrailsMojo.java +++ b/grails-maven-...
false
true
protected void runGrails(String targetName, String args, boolean includeProjectDeps) throws MojoExecutionException { // First get the dependencies specified by the plugin. Set deps = getGrailsPluginDependencies(); // Now add the project dependencies if necessary. if (includeProjectD...
protected void runGrails(String targetName, String args, boolean includeProjectDeps) throws MojoExecutionException { // First get the dependencies specified by the plugin. Set deps = getGrailsPluginDependencies(); // Now add the project dependencies if necessary. if (includeProjectD...
diff --git a/user/src/com/google/gwt/user/client/ui/MenuBar.java b/user/src/com/google/gwt/user/client/ui/MenuBar.java index 2a4c05c9d..b82d929ab 100644 --- a/user/src/com/google/gwt/user/client/ui/MenuBar.java +++ b/user/src/com/google/gwt/user/client/ui/MenuBar.java @@ -1,971 +1,970 @@ /* * Copyright 2008 Google I...
false
true
void doItemAction(final MenuItem item, boolean fireCommand) { // If the given item is already showing its menu, we're done. if ((shownChildMenu != null) && (item.getSubMenu() == shownChildMenu)) { return; } // If another item is showing its menu, then hide it. if (shownChildMenu != null) { ...
void doItemAction(final MenuItem item, boolean fireCommand) { // If the given item is already showing its menu, we're done. if ((shownChildMenu != null) && (item.getSubMenu() == shownChildMenu)) { return; } // If another item is showing its menu, then hide it. if (shownChildMenu != null) { ...
diff --git a/src/station/JE802Station.java b/src/station/JE802Station.java index 7a7efdd..721ac0e 100644 --- a/src/station/JE802Station.java +++ b/src/station/JE802Station.java @@ -1,344 +1,346 @@ /* * * This is Jemula. * * Copyright (c) 2009 Stefan Mangold, Fabian Dreier, Stefan Schmid * All rights r...
true
true
public JE802Station(JEEventScheduler aScheduler, JEIWirelessMedium aChannel, Random aGenerator, JE802Gui aGui, JE802StatEval aStatEval, Node topLevelNode, List<JE802PhyMode> phyModes, double longitude, double latitude) throws XPathExpressionException { Element aTopLevelNode = (Element) topLevelNode; this.the...
public JE802Station(JEEventScheduler aScheduler, JEIWirelessMedium aChannel, Random aGenerator, JE802Gui aGui, JE802StatEval aStatEval, Node topLevelNode, List<JE802PhyMode> phyModes, double longitude, double latitude) throws XPathExpressionException { Element aTopLevelNode = (Element) topLevelNode; this.the...
diff --git a/src/org/geometerplus/zlibrary/core/resources/ZLTreeResource.java b/src/org/geometerplus/zlibrary/core/resources/ZLTreeResource.java index 61a51c31..53118ade 100644 --- a/src/org/geometerplus/zlibrary/core/resources/ZLTreeResource.java +++ b/src/org/geometerplus/zlibrary/core/resources/ZLTreeResource.java @...
true
true
public boolean startElementHandler(String tag, ZLStringMap attributes) { final ArrayList<ZLTreeResource> stack = myStack; if (!stack.isEmpty() && (NODE.equals(tag))) { final String name = attributes.getValue("name"); final String condition = attributes.getValue("condition"); final String value = att...
public boolean startElementHandler(String tag, ZLStringMap attributes) { final ArrayList<ZLTreeResource> stack = myStack; if (!stack.isEmpty() && (NODE.equals(tag))) { final String name = attributes.getValue("name"); final String condition = attributes.getValue("condition"); final String value = att...
diff --git a/desktop/src/restaurante/UI/Forms/FrmUsers.java b/desktop/src/restaurante/UI/Forms/FrmUsers.java index 7812c74..858c8dc 100644 --- a/desktop/src/restaurante/UI/Forms/FrmUsers.java +++ b/desktop/src/restaurante/UI/Forms/FrmUsers.java @@ -1,332 +1,332 @@ /* * To change this template, choose Tools | Templat...
false
true
private void initComponents() { jSeparator1 = new javax.swing.JSeparator(); jPanel1 = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); chkActive = new javax.swing.JCheckBox(); jLabel3 = new javax.swing.JLabel(); txtPasswordExpires = new javax.swing.JSpin...
private void initComponents() { jSeparator1 = new javax.swing.JSeparator(); jPanel1 = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); chkActive = new javax.swing.JCheckBox(); jLabel3 = new javax.swing.JLabel(); txtPasswordExpires = new javax.swing.JSpin...
diff --git a/src/com/github/andlyticsproject/CommentsListAdapter.java b/src/com/github/andlyticsproject/CommentsListAdapter.java index 4e60522..b1910da 100644 --- a/src/com/github/andlyticsproject/CommentsListAdapter.java +++ b/src/com/github/andlyticsproject/CommentsListAdapter.java @@ -1,344 +1,344 @@ package com.gi...
true
true
public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) { final Comment comment = getChild(groupPosition, childPosition); ViewHolderChild holder; if (convertView == null) { convertView = layoutInflater.inflate( comment.isReply() ? R.lay...
public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) { final Comment comment = getChild(groupPosition, childPosition); ViewHolderChild holder; if (convertView == null) { convertView = layoutInflater.inflate( comment.isReply() ? R.lay...
diff --git a/opentestbed/src/ww10/RequestHandler.java b/opentestbed/src/ww10/RequestHandler.java index 26a9bb8..e035fa3 100644 --- a/opentestbed/src/ww10/RequestHandler.java +++ b/opentestbed/src/ww10/RequestHandler.java @@ -1,536 +1,541 @@ package ww10; import game.PublicPlayerInfo; import java.io.DataOutputStr...
false
true
private void handleRequest(InputStream inputStream, OutputStream outputStream) { DataOutputStream out = new DataOutputStream(outputStream); try { String request = IOUtils.toString(inputStream); //TEST TODO: remove console feedback System.out.println("Incoming request: " + request); JSONObject re...
private void handleRequest(InputStream inputStream, OutputStream outputStream) { DataOutputStream out = new DataOutputStream(outputStream); try { String request = IOUtils.toString(inputStream); //TEST TODO: remove console feedback System.out.println("Incoming request: " + request); JSONObject re...
diff --git a/CommandsEX/src/com/github/zathrus_writer/commandsex/helpers/ClosestMatches.java b/CommandsEX/src/com/github/zathrus_writer/commandsex/helpers/ClosestMatches.java index 13dbd48..54dd559 100644 --- a/CommandsEX/src/com/github/zathrus_writer/commandsex/helpers/ClosestMatches.java +++ b/CommandsEX/src/com/gith...
true
true
public static List<World> intellWorld(String input, World currWorld){ List<World> matches = new ArrayList<World>(); input = input.toLowerCase(); if (input.equals("nether") || input.equals("thenether") || input.equals("the_nether") || input.equals("end") || input.equals("theend") || input.equals("the_end")...
public static List<World> intellWorld(String input, World currWorld){ List<World> matches = new ArrayList<World>(); input = input.toLowerCase(); if (input.equals("nether") || input.equals("thenether") || input.equals("the_nether") || input.equals("end") || input.equals("theend") || input.equals("the_end")...
diff --git a/ActiveObjects/test/net/java/ao/TestUtilities.java b/ActiveObjects/test/net/java/ao/TestUtilities.java index 4127024..00bdba2 100644 --- a/ActiveObjects/test/net/java/ao/TestUtilities.java +++ b/ActiveObjects/test/net/java/ao/TestUtilities.java @@ -1,615 +1,615 @@ package net.java.ao; import java.sql.Co...
false
true
public static final DataStruct setUpEntityManager(EntityManager manager) throws SQLException { DataStruct back = new DataStruct(); Logger logger = Logger.getLogger("net.java.ao"); Logger l = logger; while ((l = l.getParent()) != null) { for (Handler h : l.getHandlers()) { l.removeHandler(h); }...
public static final DataStruct setUpEntityManager(EntityManager manager) throws SQLException { DataStruct back = new DataStruct(); Logger logger = Logger.getLogger("net.java.ao"); Logger l = logger; while ((l = l.getParent()) != null) { for (Handler h : l.getHandlers()) { l.removeHandler(h); }...
diff --git a/services/java/com/android/server/connectivity/Nat464Xlat.java b/services/java/com/android/server/connectivity/Nat464Xlat.java index 59403c55..a15d6785 100644 --- a/services/java/com/android/server/connectivity/Nat464Xlat.java +++ b/services/java/com/android/server/connectivity/Nat464Xlat.java @@ -1,193 +1,...
false
true
public void interfaceAdded(String iface) { if (iface.equals(CLAT_INTERFACE_NAME)) { Slog.i(TAG, "interface " + CLAT_INTERFACE_NAME + " added, mIsRunning = " + mIsRunning + " -> true"); mIsRunning = true; // Get the network configuration of the clat int...
public void interfaceAdded(String iface) { if (iface.equals(CLAT_INTERFACE_NAME)) { Slog.i(TAG, "interface " + CLAT_INTERFACE_NAME + " added, mIsRunning = " + mIsRunning + " -> true"); mIsRunning = true; // Create the LinkProperties for the clat interf...
diff --git a/src/se/kth/maandree/utilsay/Wordwrap.java b/src/se/kth/maandree/utilsay/Wordwrap.java index 13d8039..639b749 100644 --- a/src/se/kth/maandree/utilsay/Wordwrap.java +++ b/src/se/kth/maandree/utilsay/Wordwrap.java @@ -1,204 +1,204 @@ /** * Wordwrap — Wraps text make words fit, unsplitted, sida an area *...
false
true
public static void wrap(final byte[] buf, final int len, final int width) { final byte[] b = new byte[buf.length]; final int[] map = new int[buf.length]; int bi = 0, d, cols = 0, w = width; int indent = -1, indentc = 0; for (int i = 0; i <= len;) if ((d = (i == len ? -1 : (buf[i++] & 255))) == 033) ...
public static void wrap(final byte[] buf, final int len, final int width) { final byte[] b = new byte[buf.length]; final int[] map = new int[buf.length]; int bi = 0, d, cols = 0, w = width; int indent = -1, indentc = 0; for (int i = 0; i <= len;) if ((d = (i == len ? -1 : (buf[i++] & 255))) == 033) ...
diff --git a/source/ch/cyberduck/core/Preferences.java b/source/ch/cyberduck/core/Preferences.java index 63f37c3b5..744703f70 100644 --- a/source/ch/cyberduck/core/Preferences.java +++ b/source/ch/cyberduck/core/Preferences.java @@ -1,578 +1,578 @@ package ch.cyberduck.core; /* * Copyright (c) 2005 David Kocher....
false
true
protected void setDefaults() { this.defaults = new HashMap<String, String>(); File APP_SUPPORT_DIR = null; if(null == NSBundle.mainBundle().objectForInfoDictionaryKey("application.support.path")) { APP_SUPPORT_DIR = new File( NSPathUtilities.stringByExpanding...
protected void setDefaults() { this.defaults = new HashMap<String, String>(); File APP_SUPPORT_DIR = null; if(null == NSBundle.mainBundle().objectForInfoDictionaryKey("application.support.path")) { APP_SUPPORT_DIR = new File( NSPathUtilities.stringByExpanding...
diff --git a/src/com/winvector/anneal/RunAnneal.java b/src/com/winvector/anneal/RunAnneal.java index fcc1897..67c6610 100644 --- a/src/com/winvector/anneal/RunAnneal.java +++ b/src/com/winvector/anneal/RunAnneal.java @@ -1,143 +1,158 @@ package com.winvector.anneal; import java.util.ArrayList; import java.util.Col...
false
true
public void run() { final Population<T> p; synchronized(shared) { System.out.println("anneal Runnable " + id + " start " + new Date()); p = new Population<T>(rand,shared,psize); } T donor = p.population.get(rand.nextInt(psize)); for(int step=0;step<10*psize;++step) { final Set<T> mutations ...
public void run() { final Population<T> p; synchronized(shared) { System.out.println("anneal Runnable " + id + " start " + new Date()); p = new Population<T>(rand,shared,psize); } T donor = p.population.get(rand.nextInt(psize)); for(int step=0;step<10*psize;++step) { final Set<T> mutations ...
diff --git a/eclipse/FML-MockMod/src/cpw/mods/mockmod/MockBlock.java b/eclipse/FML-MockMod/src/cpw/mods/mockmod/MockBlock.java index b6b98f3e..67ae90c4 100644 --- a/eclipse/FML-MockMod/src/cpw/mods/mockmod/MockBlock.java +++ b/eclipse/FML-MockMod/src/cpw/mods/mockmod/MockBlock.java @@ -1,12 +1,12 @@ package cpw.mods.m...
true
true
public MockBlock(int id) { super(id,Material.field_1316_v); }
public MockBlock(int id) { super(id,Material.field_76259_v); }
diff --git a/src/main/java/org/dasein/cloud/cloudstack/compute/VirtualMachines.java b/src/main/java/org/dasein/cloud/cloudstack/compute/VirtualMachines.java index 232066c..50c2ef9 100644 --- a/src/main/java/org/dasein/cloud/cloudstack/compute/VirtualMachines.java +++ b/src/main/java/org/dasein/cloud/cloudstack/compute/...
false
true
private @Nullable VirtualMachine toVirtualMachine(@Nullable Node node) throws CloudException, InternalException { if( node == null ) { return null; } HashMap<String,String> properties = new HashMap<String,String>(); VirtualMachine server = new VirtualMachine(); No...
private @Nullable VirtualMachine toVirtualMachine(@Nullable Node node) throws CloudException, InternalException { if( node == null ) { return null; } HashMap<String,String> properties = new HashMap<String,String>(); VirtualMachine server = new VirtualMachine(); No...
diff --git a/src/main/java/util/Config.java b/src/main/java/util/Config.java index 1354e51..967df79 100644 --- a/src/main/java/util/Config.java +++ b/src/main/java/util/Config.java @@ -1,46 +1,46 @@ package util; import java.util.Properties; import java.io.InputStream; public class Config { public static S...
true
true
private Config() { properties = new Properties(); try { InputStream is = ClassLoader.getSystemResourceAsStream("reversi.properties"); if (is == null) { System.err.println("Could not find reversi.properties in classpath"); } else { ...
private Config() { properties = new Properties(); try { InputStream is = this.getClass().getClassLoader().getResourceAsStream("reversi.properties"); if (is == null) { System.err.println("Could not find reversi.properties in classpath"); } else { ...
diff --git a/src/me/sheimi/util/SeqImage.java b/src/me/sheimi/util/SeqImage.java index e0cb374..e7964cd 100644 --- a/src/me/sheimi/util/SeqImage.java +++ b/src/me/sheimi/util/SeqImage.java @@ -1,54 +1,54 @@ /* SeqImage.java - Encode and Decode Image which stored in * Seq file, * 10 bytes to store the size + image ...
true
true
public byte[] encode() { if (encoded == null) { byte[] size = String.format(SIZE_FORMATER, image.length).getBytes(); byte[] encoded = new byte[SIZE_LEN + image.length]; System.arraycopy(size, 0, encoded, 0, size.length); System.arraycopy(image, 0, encoded, size.length, encoded.length); ...
public byte[] encode() { if (encoded == null) { byte[] size = String.format(SIZE_FORMATER, image.length).getBytes(); byte[] encoded = new byte[SIZE_LEN + image.length]; System.arraycopy(size, 0, encoded, 0, size.length); System.arraycopy(image, 0, encoded, size.length, image.length); }...
diff --git a/test/regression/src/org/jacorb/test/bugs/bugjac486/BugJac486Test.java b/test/regression/src/org/jacorb/test/bugs/bugjac486/BugJac486Test.java index 6256dd50f..2fec82477 100644 --- a/test/regression/src/org/jacorb/test/bugs/bugjac486/BugJac486Test.java +++ b/test/regression/src/org/jacorb/test/bugs/bugjac48...
true
true
public static Test suite() { Properties clientProps = new Properties(); Properties serverProps = new Properties(); clientProps.setProperty("jacorb.test.ssl", "true"); serverProps.setProperty("jacorb.test.ssl", "true"); serverProps.setProperty("jacorb.test.corbaloc.enabl...
public static Test suite() { Properties clientProps = new Properties(); Properties serverProps = new Properties(); clientProps.setProperty("jacorb.test.ssl", "true"); serverProps.setProperty("jacorb.test.ssl", "true"); serverProps.setProperty("jacorb.test.corbaloc.enabl...
diff --git a/webapp/WEB-INF/classes/org/makumba/parade/access/DatabaseLogServlet.java b/webapp/WEB-INF/classes/org/makumba/parade/access/DatabaseLogServlet.java index 716e70b..77a160b 100644 --- a/webapp/WEB-INF/classes/org/makumba/parade/access/DatabaseLogServlet.java +++ b/webapp/WEB-INF/classes/org/makumba/parade/ac...
true
true
private void filterLog(ActionLogDTO log, Session s) { String queryString = log.getQueryString(); String uri = log.getUrl(); if (uri == null) uri = ""; if (queryString == null) queryString = ""; if (log.getAction() == null) log.setAction...
private void filterLog(ActionLogDTO log, Session s) { String queryString = log.getQueryString(); String uri = log.getUrl(); if (uri == null) uri = ""; if (queryString == null) queryString = ""; if (log.getAction() == null) log.setAction...
diff --git a/search-impl/impl/src/java/org/sakaiproject/search/component/service/impl/SearchIndexBuilderImpl.java b/search-impl/impl/src/java/org/sakaiproject/search/component/service/impl/SearchIndexBuilderImpl.java index b51a24d4..5ff62beb 100644 --- a/search-impl/impl/src/java/org/sakaiproject/search/component/servi...
false
true
public void addResource(Notification notification, Event event) { log.debug("Add resource " + notification + "::" + event); String resourceName = event.getResource(); EntityContentProducer ecp = newEntityContentProducer(event); Integer action = ecp.getAction(event); int retries = 5; while (retries > 0) ...
public void addResource(Notification notification, Event event) { log.debug("Add resource " + notification + "::" + event); String resourceName = event.getResource(); if ( resourceName == null ) { // default if null resourceName = ""; } EntityContentProducer ecp = newEntityContentProducer(event); In...
diff --git a/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/tools/normalizer/ChangeFifoArrayAccess.java b/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/tools/normalizer/ChangeFifoArrayAccess.java index 9fea4c0de..f2d3f4ef8 100644 --- a/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/tools/normalizer/ChangeFifoArr...
false
true
private void updateIndex(Var var, List<Expression> indexes) { if (indexes.size() < 2) { Var varCount = actor.getStateVar(var.getName() + "_count"); ExprBinary expr = IrFactory.eINSTANCE.createExprBinary( IrFactory.eINSTANCE.createExprVar(varCount), OpBinary.PLUS, indexes.get(0), IrFactory...
private void updateIndex(Var var, List<Expression> indexes) { if (indexes.size() == 1) { Var varCount = actor.getStateVar(var.getName() + "_count"); ExprBinary expr = IrFactory.eINSTANCE.createExprBinary( IrFactory.eINSTANCE.createExprVar(varCount), OpBinary.PLUS, indexes.get(0), IrFactor...
diff --git a/src/com/philiptorchinsky/TimeAppe/MainActivity.java b/src/com/philiptorchinsky/TimeAppe/MainActivity.java index f506872..27d83af 100644 --- a/src/com/philiptorchinsky/TimeAppe/MainActivity.java +++ b/src/com/philiptorchinsky/TimeAppe/MainActivity.java @@ -1,93 +1,93 @@ package com.philiptorchinsky.TimeApp...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); dh = new DBAdapter (this); dh.open(); // dh.destroy(); // dh.close(); // // dh = new DBAdapter (this); // dh.insert("TeamCity training", "inactive", 0,0); // dh.insert("An...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); dh = new DBAdapter (this); dh.open(); // dh.destroy(); // dh.close(); // // dh = new DBAdapter (this); dh.insert("TeamCity training", "inactive", 0,0); dh.insert("Androi...
diff --git a/common/plugins/eu.esdihumboldt.hale.common.instance/src/eu/esdihumboldt/hale/common/instance/extension/metadata/MetadataInfo.java b/common/plugins/eu.esdihumboldt.hale.common.instance/src/eu/esdihumboldt/hale/common/instance/extension/metadata/MetadataInfo.java index 638c32114..d86fe8f39 100644 --- a/commo...
true
true
public MetadataInfo(String key, IConfigurationElement conf){ super(); this.key = key; this.label = conf.getAttribute("label"); this.description = conf.getAttribute("description"); this.generator = (Class<? extends MetadataGenerator>) ExtensionUtil.loadClass(conf, "generator"); }
public MetadataInfo(String key, IConfigurationElement conf){ super(); this.key = key; this.label = conf.getAttribute("label"); this.description = conf.getAttribute("description"); if (conf.getAttribute("generator") != null) { this.generator = (Class<? extends MetadataGenerator>) ExtensionUtil.loadClass...
diff --git a/src/org/geometerplus/android/fbreader/library/BookInfoActivity.java b/src/org/geometerplus/android/fbreader/library/BookInfoActivity.java index 3ca4b4b9..5111d83d 100644 --- a/src/org/geometerplus/android/fbreader/library/BookInfoActivity.java +++ b/src/org/geometerplus/android/fbreader/library/BookInfoAct...
true
true
protected void onStart() { super.onStart(); final Book book = Book.getByFile(myFile); if (book != null) { // we do force language & encoding detection book.getEncoding(); setupCover(book); setupBookInfo(book); setupAnnotation(book); setupFileInfo(book); } setupButton(R.id.book_info_butt...
protected void onStart() { super.onStart(); final Book book = Book.getByFile(myFile); if (book != null) { // we do force language & encoding detection book.getEncoding(); setupCover(book); setupBookInfo(book); setupAnnotation(book); setupFileInfo(book); } setupButton(R.id.book_info_butt...
diff --git a/src/main/org/jboss/reflect/plugins/InheritableAnnotationHolder.java b/src/main/org/jboss/reflect/plugins/InheritableAnnotationHolder.java index f388064..453ade8 100644 --- a/src/main/org/jboss/reflect/plugins/InheritableAnnotationHolder.java +++ b/src/main/org/jboss/reflect/plugins/InheritableAnnotationHol...
true
true
public void setupAnnotations(AnnotationValue[] annotations) { InheritableAnnotationHolder superHolder = getSuperHolder(); AnnotationValue[] superAllAnnotations = superHolder.getAnnotations(); if (annotations != null && annotations.length > 0) { declaredAnnotations = ...
public void setupAnnotations(AnnotationValue[] annotations) { InheritableAnnotationHolder superHolder = getSuperHolder(); if (superHolder == null) { return; } AnnotationValue[] superAllAnnotations = superHolder.getAnnotations(); if (annotations != null &&...
diff --git a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/WorkManager.java b/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/WorkManager.java index 29f491d11..9dd0edc4b 100644 --- a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/WorkMa...
true
true
public void checkIn() throws CoreException { try { boolean acquired = false; while (!acquired) { try { acquired = getWorkspaceLock().acquire(); } catch (InterruptedException e) { } } } finally { incrementPreparedOperations(); } }
public void checkIn() throws CoreException { try { boolean acquired = false; while (!acquired) { try { acquired = getWorkspaceLock().acquire(); //above call should block, but sleep just in case it doesn't behave Thread.sleep(50); } catch (InterruptedException e) { } } } finally { incremen...
diff --git a/src/main/java/org/apache/commons/digester3/binder/LinkedRuleBuilder.java b/src/main/java/org/apache/commons/digester3/binder/LinkedRuleBuilder.java index 0ed07195..d915b570 100644 --- a/src/main/java/org/apache/commons/digester3/binder/LinkedRuleBuilder.java +++ b/src/main/java/org/apache/commons/digester3...
true
true
public SetPropertyBuilder setProperty( String attributePropertyName ) { if ( attributePropertyName == null || attributePropertyName.length() == 0 ) { mainBinder.addError( "{ forPattern( \"%s\" ).setProperty( String )} empty 'attributePropertyName' not allowed", ...
public SetPropertyBuilder setProperty( String attributePropertyName ) { if ( attributePropertyName == null || attributePropertyName.length() == 0 ) { mainBinder .addError( "{ forPattern( \"%s\" ).setProperty( String ) } empty 'attributePropertyName' not allowed", ...
diff --git a/src/java/fedora/server/utilities/ServerUtility.java b/src/java/fedora/server/utilities/ServerUtility.java index 981824401..2d24c068c 100644 --- a/src/java/fedora/server/utilities/ServerUtility.java +++ b/src/java/fedora/server/utilities/ServerUtility.java @@ -1,183 +1,194 @@ package fedora.server.utilitie...
true
true
public static boolean isURLFedoraServer(String url) { String fedoraServerHost = CONFIG.getParameter(FEDORA_SERVER_HOST).getValue(); String fedoraServerPort = CONFIG.getParameter(FEDORA_SERVER_PORT).getValue(); String fedoraServerRedirectPort = CONFIG.getParameter(FEDORA_REDIRECT_PORT).getVa...
public static boolean isURLFedoraServer(String url) { String fedoraServerHost = CONFIG.getParameter(FEDORA_SERVER_HOST).getValue(); String fedoraServerPort = CONFIG.getParameter(FEDORA_SERVER_PORT).getValue(); String fedoraServerRedirectPort = CONFIG.getParameter(FEDORA_REDIRECT_PORT).getVa...
diff --git a/hale/eu.esdihumboldt.hale.gmlwriter/src/eu/esdihumboldt/hale/gmlwriter/impl/internal/geometry/writers/AbstractGeometryWriter.java b/hale/eu.esdihumboldt.hale.gmlwriter/src/eu/esdihumboldt/hale/gmlwriter/impl/internal/geometry/writers/AbstractGeometryWriter.java index 2fb932ed0..e0758c49f 100644 --- a/hale/...
false
true
private static boolean writeList(XMLStreamWriter writer, Coordinate[] coordinates, TypeDefinition elementType, String gmlNs) throws XMLStreamException { AttributeDefinition listAttribute = null; String delimiter = " "; // check for DirectPositionListType for (AttributeDefinition att : elementType.getAttr...
private static boolean writeList(XMLStreamWriter writer, Coordinate[] coordinates, TypeDefinition elementType, String gmlNs) throws XMLStreamException { AttributeDefinition listAttribute = null; String delimiter = " "; String setDelimiter = " "; // check for DirectPositionListType for (AttributeDefinit...
diff --git a/user/src/com/google/gwt/user/client/ui/impl/FocusImplStandard.java b/user/src/com/google/gwt/user/client/ui/impl/FocusImplStandard.java index 74ca35515..be1d0b4de 100644 --- a/user/src/com/google/gwt/user/client/ui/impl/FocusImplStandard.java +++ b/user/src/com/google/gwt/user/client/ui/impl/FocusImplStand...
true
true
private static native Element createFocusable0(JavaScriptObject focusHandler) /*-{ // Divs are focusable in all browsers, but only IE supports the accessKey // property on divs. We use the infamous 'hidden input' trick to add an // accessKey to the focusable div. Note that the input is only used to //...
private static native Element createFocusable0(JavaScriptObject focusHandler) /*-{ // Divs are focusable in all browsers, but only IE supports the accessKey // property on divs. We use the infamous 'hidden input' trick to add an // accessKey to the focusable div. Note that the input is only used to //...
diff --git a/fabric/fabric-core/src/main/scala/org/fusesource/fabric/service/ChildContainerProvider.java b/fabric/fabric-core/src/main/scala/org/fusesource/fabric/service/ChildContainerProvider.java index 09daa0b2d..4d94d1eda 100644 --- a/fabric/fabric-core/src/main/scala/org/fusesource/fabric/service/ChildContainerPro...
true
true
public Set<CreateContainerChildMetadata> create(final CreateContainerChildOptions options) throws Exception { final Set<CreateContainerChildMetadata> result = new LinkedHashSet<CreateContainerChildMetadata>(); String parentName = options.getParent(); final Container parent = service.getConta...
public Set<CreateContainerChildMetadata> create(final CreateContainerChildOptions options) throws Exception { final Set<CreateContainerChildMetadata> result = new LinkedHashSet<CreateContainerChildMetadata>(); String parentName = options.getParent(); final Container parent = service.getConta...
diff --git a/src/de/anycook/graph/filter/AccessOriginFilter.java b/src/de/anycook/graph/filter/AccessOriginFilter.java index cf00a5e..9fad18c 100644 --- a/src/de/anycook/graph/filter/AccessOriginFilter.java +++ b/src/de/anycook/graph/filter/AccessOriginFilter.java @@ -1,61 +1,63 @@ /** * */ package de.anycook.gr...
true
true
public ContainerResponse filter(ContainerRequest request, ContainerResponse resp) { Matcher hostMatcher = hostPattern.matcher(request.getHeaderValue("Referer")); if(hostMatcher.matches()){ // String refHost = referer.getHost(); //Quelle: http://stackoverflow.com/questions/5406350/access-control-all...
public ContainerResponse filter(ContainerRequest request, ContainerResponse resp) { String referer = request.getHeaderValue("Referer"); if(referer == null) return resp; Matcher hostMatcher = hostPattern.matcher(referer); if(hostMatcher.matches()){ // String refHost = referer.getHost(); //Quelle...
diff --git a/org.dawb.common.ui/src/org/dawb/common/ui/plot/trace/TraceUtils.java b/org.dawb.common.ui/src/org/dawb/common/ui/plot/trace/TraceUtils.java index 3e74167b..baf160cb 100644 --- a/org.dawb.common.ui/src/org/dawb/common/ui/plot/trace/TraceUtils.java +++ b/org.dawb.common.ui/src/org/dawb/common/ui/plot/trace/T...
true
true
public static boolean isCustomAxes(IImageTrace trace) { List<AbstractDataset> axes = trace.getAxes(); AbstractDataset image = trace.getData(); if (axes==null) return false; if (axes.isEmpty()) return false; if (axes.get(0).getDtype()!=AbstractDataset.INT32 || axes.get(1).getDtype()!=Abstrac...
public static boolean isCustomAxes(IImageTrace trace) { if (trace==null) return false; List<AbstractDataset> axes = trace.getAxes(); AbstractDataset image = trace.getData(); if (axes==null) return false; if (axes.isEmpty()) return false; if (axes.get(0).getDtype()!=AbstractDataset.INT32 |...
diff --git a/NotePad/src/com/example/android/notepad/NoteEditor.java b/NotePad/src/com/example/android/notepad/NoteEditor.java index 45e6308b..ec452750 100644 --- a/NotePad/src/com/example/android/notepad/NoteEditor.java +++ b/NotePad/src/com/example/android/notepad/NoteEditor.java @@ -1,347 +1,349 @@ /* * Copyrigh...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final Intent intent = getIntent(); // Do some setup based on the action being performed. final String action = intent.getAction(); if (Intent.ACTION_EDIT.equals(action) || Intent.ACTIO...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final Intent intent = getIntent(); // Do some setup based on the action being performed. final String action = intent.getAction(); if (Intent.ACTION_EDIT.equals(action) || Intent.ACTIO...
diff --git a/opentripplanner-graph-builder/src/main/java/org/opentripplanner/graph_builder/GraphBuilderTask.java b/opentripplanner-graph-builder/src/main/java/org/opentripplanner/graph_builder/GraphBuilderTask.java index 636cf517b..ce2a5ccfc 100644 --- a/opentripplanner-graph-builder/src/main/java/org/opentripplanner/g...
true
true
public void run() { Graph graph = _graphService.getGraph(); File graphPath = _graphBundle.getGraphPath(); if( graphPath.exists() && ! _alwaysRebuild) { _log.info("graph already exists and alwaysRebuild=false => skipping graph build"); return...
public void run() { Graph graph = _graphService.getGraph(); if (_graphBundle == null) { throw new RuntimeException("graphBuilderTask has no attribute graphBundle."); } File graphPath = _graphBundle.getGraphPath(); if( graphPath.exists() ...
diff --git a/src/web/org/openmrs/web/filter/StartupFilter.java b/src/web/org/openmrs/web/filter/StartupFilter.java index 08ee4eed..45e73547 100644 --- a/src/web/org/openmrs/web/filter/StartupFilter.java +++ b/src/web/org/openmrs/web/filter/StartupFilter.java @@ -1,355 +1,355 @@ /** * The contents of this file are su...
true
true
public final void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { if (skipFilter((HttpServletRequest) request)) { chain.doFilter(request, response); ...
public final void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { if (skipFilter((HttpServletRequest) request)) { chain.doFilter(request, response); ...
diff --git a/src/main/java/vazkii/tinkerer/common/network/packet/PacketEnchanterAddEnchant.java b/src/main/java/vazkii/tinkerer/common/network/packet/PacketEnchanterAddEnchant.java index 0544d14d..daefaa23 100644 --- a/src/main/java/vazkii/tinkerer/common/network/packet/PacketEnchanterAddEnchant.java +++ b/src/main/jav...
true
true
public void handle() { if(tile.working) return; if(level == -1) { int index = tile.enchantments.indexOf(enchant); tile.removeLevel(index); tile.removeEnchant(index); } else { if(!tile.enchantments.contains(enchant)) { if(player instanceof EntityPlayer && EnchantmentManager.canEnchantmentBeUse...
public void handle() { if(tile.working) return; if(level == -1) { int index = tile.enchantments.indexOf(enchant); tile.removeLevel(index); tile.removeEnchant(index); } else { if(!tile.enchantments.contains(enchant)){ if(player instanceof EntityPlayer && EnchantmentManager.canApply(tile.getSta...
diff --git a/src/main/java/bspkrs/armorstatushud/ArmorStatusHUD.java b/src/main/java/bspkrs/armorstatushud/ArmorStatusHUD.java index 62ce82a..eefa768 100644 --- a/src/main/java/bspkrs/armorstatushud/ArmorStatusHUD.java +++ b/src/main/java/bspkrs/armorstatushud/ArmorStatusHUD.java @@ -1,272 +1,274 @@ package bspkrs.arm...
false
true
private static void displayArmorStatus(Minecraft mc) { if (playerHasArmorEquipped(mc.thePlayer) || (showEquippedItem && canDisplayItem(mc.thePlayer.getCurrentEquippedItem()))) { int yOffset = enableItemName ? 18 : 16; int yBase = getY(countOfDisplaya...
private static void displayArmorStatus(Minecraft mc) { if (playerHasArmorEquipped(mc.thePlayer) || (showEquippedItem && canDisplayItem(mc.thePlayer.getCurrentEquippedItem()))) { int yOffset = enableItemName ? 18 : 16; int yBase = getY(countOfDisplaya...
diff --git a/src/main/java/org/spout/vanilla/controller/object/moving/Item.java b/src/main/java/org/spout/vanilla/controller/object/moving/Item.java index b01a8509..a0f5af68 100644 --- a/src/main/java/org/spout/vanilla/controller/object/moving/Item.java +++ b/src/main/java/org/spout/vanilla/controller/object/moving/Ite...
true
true
public void onTick(float dt) { if (unpickable > 0) { unpickable--; super.onTick(dt); return; } super.onTick(dt); this.move(); World world = getParent().getWorld(); if (world == null) { return; } List<Player> players = Arrays.asList(Spout.getEngine().getOnlinePlayers()); Iterable<Playe...
public void onTick(float dt) { if (unpickable > 0) { unpickable--; super.onTick(dt); return; } super.onTick(dt); //move(); World world = getParent().getWorld(); if (world == null) { return; } List<Player> players = Arrays.asList(Spout.getEngine().getOnlinePlayers()); Iterable<Player> ...
diff --git a/src/java/com/idega/block/user/presentation/GroupInfo.java b/src/java/com/idega/block/user/presentation/GroupInfo.java index 9ae2628..d5f31a1 100644 --- a/src/java/com/idega/block/user/presentation/GroupInfo.java +++ b/src/java/com/idega/block/user/presentation/GroupInfo.java @@ -1,297 +1,296 @@ /* * Cre...
true
true
private PresentationObject getGroupInfo(IWContext iwc, Group group) { String phone = ""; String fax = ""; if(_showPhone || _showFax) { Collection phones = group.getPhones(); if(phones!=null) { Iterator phoneIter = phones.iterator(); while(phoneIter.hasNext()) { Phone phoneObj = (Phone) phoneIt...
private PresentationObject getGroupInfo(IWContext iwc, Group group) { String phone = ""; String fax = ""; if(_showPhone || _showFax) { Collection phones = group.getPhones(); if(phones!=null) { Iterator phoneIter = phones.iterator(); while(phoneIter.hasNext()) { Phone phoneObj = (Phone) phoneIt...
diff --git a/src/org/mozilla/javascript/Parser.java b/src/org/mozilla/javascript/Parser.java index 224b2bcb..28fa5263 100644 --- a/src/org/mozilla/javascript/Parser.java +++ b/src/org/mozilla/javascript/Parser.java @@ -1,1557 +1,1556 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * ...
false
true
private Object statementHelper(TokenStream ts) throws IOException, JavaScriptException { Object pn = null; // If skipsemi == true, don't add SEMI + EOL to source at the // end of this statment. For compound statements, IF/FOR etc. boolean skipsemi = false; int ...
private Object statementHelper(TokenStream ts) throws IOException, JavaScriptException { Object pn = null; // If skipsemi == true, don't add SEMI + EOL to source at the // end of this statment. For compound statements, IF/FOR etc. boolean skipsemi = false; int ...
diff --git a/src/server/TourenPlaner.java b/src/server/TourenPlaner.java index aed822a..2ca5186 100644 --- a/src/server/TourenPlaner.java +++ b/src/server/TourenPlaner.java @@ -1,196 +1,190 @@ package server; import graphrep.GraphRep; import graphrep.GraphRepDumpReader; import graphrep.GraphRepTextReader; impo...
true
true
public static void main(String[] args) { /** * inits config manager if config file is provided; also prints usage * information if necessary */ CLIHandler handler = new CLIHandler(args); // if serialize, then ignore whether to read text or dump and read // text graph since it wouldn't make sense to r...
public static void main(String[] args) { /** * inits config manager if config file is provided; also prints usage * information if necessary */ CLIHandler handler = new CLIHandler(args); // if serialize, then ignore whether to read text or dump and read // text graph since it wouldn't make sense to r...
diff --git a/datastore/src/test/java/org/jboss/test/capedwarf/datastore/test/AllocateIdsTestCase.java b/datastore/src/test/java/org/jboss/test/capedwarf/datastore/test/AllocateIdsTestCase.java index 42311d13..ff07bbd1 100644 --- a/datastore/src/test/java/org/jboss/test/capedwarf/datastore/test/AllocateIdsTestCase.java ...
true
true
public void testCheckKeyRange() throws Exception { long initialValue = getInitialValue("OtherKind"); KeyRange kr1 = new KeyRange(null, "OtherKind", 1 + initialValue, 5 + initialValue); DatastoreService.KeyRangeState state1 = service.allocateIdRange(kr1); Assert.assertNotNull(state1)...
public void testCheckKeyRange() throws Exception { long initialValue = getInitialValue("OtherKind"); KeyRange kr1 = new KeyRange(null, "OtherKind", 1 + initialValue, 5 + initialValue); DatastoreService.KeyRangeState state1 = service.allocateIdRange(kr1); Assert.assertNotNull(state1)...
diff --git a/src/se/chalmers/tda367/std/core/BuildController.java b/src/se/chalmers/tda367/std/core/BuildController.java index 699bbab..1048396 100644 --- a/src/se/chalmers/tda367/std/core/BuildController.java +++ b/src/se/chalmers/tda367/std/core/BuildController.java @@ -1,105 +1,105 @@ package se.chalmers.tda367.std...
true
true
public boolean sellTower(ITower tower, Position pos){ if(isTowerAt(tower,pos)){ player.setMoney(player.getMoney() + (int)(tower.getTotalValue() * SELL_MODIFER+0.5)); board.placeTile(new BuildableTile(null), pos); return true; } else { return false; } }
public boolean sellTower(ITower tower, Position pos){ if(isTowerAt(tower,pos)){ player.setMoney(player.getMoney() + (int)(tower.getTotalValue() * SELL_MODIFER + 0.5)); board.placeTile(new BuildableTile(null), pos); return true; } else { return false; } }
diff --git a/src/main/java/org/ops4j/pax/runner/FileUtils.java b/src/main/java/org/ops4j/pax/runner/FileUtils.java index eebe7990..1af1f4a7 100644 --- a/src/main/java/org/ops4j/pax/runner/FileUtils.java +++ b/src/main/java/org/ops4j/pax/runner/FileUtils.java @@ -1,90 +1,97 @@ /* * Copyright 2006 Niclas Hedhman. * ...
false
true
static public String getTextContent( File textUtf8File ) throws IOException { FileInputStream fis = new FileInputStream( textUtf8File ); InputStreamReader isr = new InputStreamReader( fis ); BufferedReader br = new BufferedReader( isr ); StringBuffer buf = new StringBuffe...
static public String getTextContent( File textUtf8File ) throws IOException { FileInputStream fis = new FileInputStream( textUtf8File ); InputStreamReader isr = new InputStreamReader( fis ); BufferedReader br = new BufferedReader( isr ); StringBuffer buf = new StringBuffe...
diff --git a/caatja-gwt-demos/src/main/java/com/katspow/caatjagwtdemos/client/welcome/hypernumber/core/GameScene.java b/caatja-gwt-demos/src/main/java/com/katspow/caatjagwtdemos/client/welcome/hypernumber/core/GameScene.java index 2e8bc84..57feecf 100644 --- a/caatja-gwt-demos/src/main/java/com/katspow/caatjagwtdemos/c...
true
true
public GameScene create (final Director director,int rows,int columns, final Context context) throws Exception { this.gameRows= rows; this.gameColumns= columns; this.director= director; CaatjaImage image = director.getImage("bricks"); this.bricksImage= new Compound...
public GameScene create (final Director director,int rows,int columns, final Context context) throws Exception { this.gameRows= rows; this.gameColumns= columns; this.director= director; CaatjaImage image = director.getImage("bricks"); this.bricksImage= new Compound...
diff --git a/src/de/aidger/model/inspectors/OverlapContractInspector.java b/src/de/aidger/model/inspectors/OverlapContractInspector.java index d01f35b6..18a7f4ab 100644 --- a/src/de/aidger/model/inspectors/OverlapContractInspector.java +++ b/src/de/aidger/model/inspectors/OverlapContractInspector.java @@ -1,98 +1,98 @@...
true
true
public void check() { // do nothing if contract is not new if (ContractType.valueOf(contract.getType()) != ContractType.newContract) { return; } try { Assistant assistant = new Assistant((new Assistant()) .getById(contract.getAssistantId())); ...
public void check() { // do nothing if contract is not new if (ContractType.valueOf(contract.getType()) != ContractType.newContract) { return; } try { Assistant assistant = new Assistant((new Assistant()) .getById(contract.getAssistantId())); ...
diff --git a/trunk/org.mwc.debrief.legacy/src/Debrief/Wrappers/Track/WormInHoleOffset.java b/trunk/org.mwc.debrief.legacy/src/Debrief/Wrappers/Track/WormInHoleOffset.java index 85c201f30..866cf6c20 100644 --- a/trunk/org.mwc.debrief.legacy/src/Debrief/Wrappers/Track/WormInHoleOffset.java +++ b/trunk/org.mwc.debrief.leg...
true
true
public static WorldLocation getWormOffsetFor(TrackWrapper track, HiResDate dtg, WorldDistance arrayOffset) { WorldLocation res = null; double offsetM = - arrayOffset.getValueIn(WorldDistance.METRES); // double offsetM = Math.abs(arrayOffset.getValueIn(WorldDistance.METRES)); // check we're in period if (...
public static WorldLocation getWormOffsetFor(TrackWrapper track, HiResDate dtg, WorldDistance arrayOffset) { WorldLocation res = null; double offsetM = - arrayOffset.getValueIn(WorldDistance.METRES); // double offsetM = Math.abs(arrayOffset.getValueIn(WorldDistance.METRES)); // check we're in period if (...
diff --git a/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/HelloWorldFileAction.java b/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/HelloWorldFileAction.java index 24bf9833..7ca9a210 100644 --- a/tests/org.jboss.tools.esb.ui.bot.test/src/org/j...
true
true
protected void executeExample() { /* Create the data directories needed by the quickstart */ bot.menu("File").menu("New").menu("Folder").click(); bot.tree(0).getTreeItem(projectName).select(); bot.text(1).setText(inputDir); bot.button("&Finish").click(); bot.sleep(Timing.time3S()); bot.menu("File...
protected void executeExample() { /* Create the data directories needed by the quickstart */ bot.menu("File").menu("New").menu("Folder").click(); bot.tree(0).getTreeItem(projectName).select(); bot.text(1).setText(inputDir); bot.button("&Finish").click(); bot.sleep(Timing.time3S()); bot.menu("File...
diff --git a/src/edu/mit/mobile/android/content/dbhelper/SearchDBHelper.java b/src/edu/mit/mobile/android/content/dbhelper/SearchDBHelper.java index b554c9b..7a9137f 100644 --- a/src/edu/mit/mobile/android/content/dbhelper/SearchDBHelper.java +++ b/src/edu/mit/mobile/android/content/dbhelper/SearchDBHelper.java @@ -1,2...
true
true
public Cursor queryItem(SQLiteDatabase db, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { final String searchQuery = uri.getLastPathSegment(); final StringBuilder multiSelect = new StringBuilder(); multiSelect.append('('); f...
public Cursor queryItem(SQLiteDatabase db, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { final String searchQuery = uri.getLastPathSegment(); final StringBuilder multiSelect = new StringBuilder(); multiSelect.append('('); f...
diff --git a/clustering-impl/src/main/java/org/clueminer/evolution/WeightsIndividual.java b/clustering-impl/src/main/java/org/clueminer/evolution/WeightsIndividual.java index d813d4e4c..26441eacd 100644 --- a/clustering-impl/src/main/java/org/clueminer/evolution/WeightsIndividual.java +++ b/clustering-impl/src/main/jav...
false
true
private Clustering<Cluster> updateCustering() { Dataset<Instance> data = (Dataset<Instance>) evolution.getDataset().duplicate(); double[] values; Instance copy; for (Instance inst : evolution.getDataset()) { values = inst.arrayCopy(); for (int i = 0; i < valu...
private Clustering<Cluster> updateCustering() { Dataset<Instance> data = (Dataset<Instance>) evolution.getDataset().duplicate(); double[] values; Instance copy; for (Instance inst : evolution.getDataset()) { copy = data.builder().createCopyOf(inst, data); ...
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/git/MergeOp.java b/gerrit-server/src/main/java/com/google/gerrit/server/git/MergeOp.java index 9715d9c47..d86e48c3d 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/git/MergeOp.java +++ b/gerrit-server/src/main/java/com/google/gerrit/ser...
true
true
private ListMultimap<SubmitType, Change> validateChangeList( final List<Change> submitted) throws MergeException { final ListMultimap<SubmitType, Change> toSubmit = ArrayListMultimap.create(); final Set<ObjectId> tips = new HashSet<ObjectId>(); for (final Ref r : repo.getAllRefs().values())...
private ListMultimap<SubmitType, Change> validateChangeList( final List<Change> submitted) throws MergeException { final ListMultimap<SubmitType, Change> toSubmit = ArrayListMultimap.create(); final Set<ObjectId> tips = new HashSet<ObjectId>(); for (final Ref r : repo.getAllRefs().values())...
diff --git a/src/com/android/deskclock/timer/TimerFragment.java b/src/com/android/deskclock/timer/TimerFragment.java index 82a1f930..9d8a297a 100644 --- a/src/com/android/deskclock/timer/TimerFragment.java +++ b/src/com/android/deskclock/timer/TimerFragment.java @@ -1,985 +1,988 @@ /* * Copyright (C) 2012 The Androi...
false
true
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View v = inflater.inflate(R.layout.timer_fragment, container, false); // Handle arguments from parent Bundle bundl...
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View v = inflater.inflate(R.layout.timer_fragment, container, false); // Handle arguments from parent Bundle bundl...
diff --git a/seqware-queryengine-backend/src/main/java/com/github/seqware/queryengine/system/exporters/ArbitraryPluginRunner.java b/seqware-queryengine-backend/src/main/java/com/github/seqware/queryengine/system/exporters/ArbitraryPluginRunner.java index 0c21ba1a..5c46f482 100644 --- a/seqware-queryengine-backend/src/m...
true
true
public static int runArbitraryPluginRunner(String[] args){ Options options = new Options(); Option option1 = OptionBuilder.withArgName("outputFile").withDescription("(required) output file").hasArgs(1).isRequired().create(OUTPUT_FILE_PARAM); options.addOption(option1); Option option2 = OptionBuilder.withArgNa...
public static int runArbitraryPluginRunner(String[] args){ Options options = new Options(); Option option1 = OptionBuilder.withArgName("outputFile").withDescription("(required) output file").hasArgs(1).isRequired().create(OUTPUT_FILE_PARAM); options.addOption(option1); Option option2 = OptionBuilder.withArgNa...
diff --git a/SoftwareProjectDay/src/edu/se/se441/threads/Clock.java b/SoftwareProjectDay/src/edu/se/se441/threads/Clock.java index 9383145..3efec92 100644 --- a/SoftwareProjectDay/src/edu/se/se441/threads/Clock.java +++ b/SoftwareProjectDay/src/edu/se/se441/threads/Clock.java @@ -1,46 +1,46 @@ package edu.se.se441.thr...
true
true
public void run(){ try { // Starting all threads at the same time (clock == 0 / "8:00AM"). startSignal.await(); } catch (InterruptedException e) { e.printStackTrace(); } // Set the start time of the simulation. startTime = System.currentTimeMillis(); while(this.getTime() > 4800){ for(Long t ...
public void run(){ try { // Starting all threads at the same time (clock == 0 / "8:00AM"). startSignal.await(); } catch (InterruptedException e) { e.printStackTrace(); } // Set the start time of the simulation. startTime = System.currentTimeMillis(); while(this.getTime() <= 4800){ for(Long t...
diff --git a/src/com/sparkedia/valrix/ColorMe/ColorPlayerListener.java b/src/com/sparkedia/valrix/ColorMe/ColorPlayerListener.java index ee26c2f..b64fa15 100644 --- a/src/com/sparkedia/valrix/ColorMe/ColorPlayerListener.java +++ b/src/com/sparkedia/valrix/ColorMe/ColorPlayerListener.java @@ -1,31 +1,31 @@ package com....
true
true
public void onPlayerChat(PlayerChatEvent event) { Player player = event.getPlayer(); String name = player.getName().toLowerCase(); if (ColorMe.colors.keyExists(name)) { String color = ColorMe.colors.getString(name); for (int i = 0; i <= 15; i++) { String col = ChatColor.getByCode(i).name(); if (col...
public void onPlayerChat(PlayerChatEvent event) { Player player = event.getPlayer(); String name = player.getName().toLowerCase(); if (ColorMe.colors.keyExists(name)) { String color = ColorMe.colors.getString(name); for (int i = 0; i <= 15; i++) { String col = ChatColor.getByCode(i).name(); if (col...
diff --git a/plugins/org.eclipse.acceleo.engine/src/org/eclipse/acceleo/engine/internal/environment/AcceleoLibraryOperationVisitor.java b/plugins/org.eclipse.acceleo.engine/src/org/eclipse/acceleo/engine/internal/environment/AcceleoLibraryOperationVisitor.java index 4561ecbd..3934f972 100644 --- a/plugins/org.eclipse.a...
true
true
private static Object invoke(URI moduleURI, Object source, Object[] args) { Object result = null; final Object serviceInstance = AcceleoServicesRegistry.INSTANCE .addService(moduleURI, (String)args[0]); if (serviceInstance == null) { throw new AcceleoEvaluationException(AcceleoEngineMessages.getString( ...
private static Object invoke(URI moduleURI, Object source, Object[] args) { Object result = null; final Object serviceInstance = AcceleoServicesRegistry.INSTANCE .addService(moduleURI, (String)args[0]); if (serviceInstance == null) { throw new AcceleoEvaluationException(AcceleoEngineMessages.getString( ...
diff --git a/src/org/vesalainen/parsers/sql/dsql/DatastoreEngine.java b/src/org/vesalainen/parsers/sql/dsql/DatastoreEngine.java index b47c139..4448a36 100644 --- a/src/org/vesalainen/parsers/sql/dsql/DatastoreEngine.java +++ b/src/org/vesalainen/parsers/sql/dsql/DatastoreEngine.java @@ -1,588 +1,589 @@ /* * Copyrig...
true
true
private void checkKeysOnlyAndProjection(Query query, Table<Entity, Object> table, boolean update) { Set<String> minOutput = new HashSet<>(); // minimum set of output minOutput.addAll(table.getConditionColumns()); // all columns needed in conditions for (FilterPredicate fp : query.g...
private void checkKeysOnlyAndProjection(Query query, Table<Entity, Object> table, boolean update) { Set<String> minOutput = new HashSet<>(); // minimum set of output minOutput.addAll(table.getConditionColumns()); // all columns needed in conditions minOutput.addAll(table.getSortCol...
diff --git a/rvin-mojo/flex-mojo-IT/src/test/java/info/rvin/mojo/flexmojo/test/IT0007Issue0013Test.java b/rvin-mojo/flex-mojo-IT/src/test/java/info/rvin/mojo/flexmojo/test/IT0007Issue0013Test.java index c7c9373d..1b736409 100644 --- a/rvin-mojo/flex-mojo-IT/src/test/java/info/rvin/mojo/flexmojo/test/IT0007Issue0013Test...
true
true
public void testWithoutTestFolder() throws Exception { File testDir = ResourceExtractor.simpleExtractResources(getClass(), "/issues/issue-0013"); Verifier verifier = new Verifier(testDir.getAbsolutePath(), true); verifier.deleteArtifact("info.rvin.itest.issues", "issue-0013", "1.0-SNAPSHOT", "swf"); List...
public void testWithoutTestFolder() throws Exception { File testDir = ResourceExtractor.simpleExtractResources(getClass(), "/issues/issue-0013"); Verifier verifier = new Verifier(testDir.getAbsolutePath(), true); verifier.deleteArtifact("info.rvin.itest.issues", "issue-0013", "1.0-SNAPSHOT", "swf"); List...
diff --git a/app/models/Game.java b/app/models/Game.java index 9bd5e7a..628ba18 100644 --- a/app/models/Game.java +++ b/app/models/Game.java @@ -1,55 +1,55 @@ package models; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import play.Logger; public class ...
true
true
public String getNextPlayerFor(String username, String ip) { if(playerMapping.containsKey(ip)){ return playerMapping.get(ip); } if (!playerMapping.containsKey(username) && charCounter < CHARS.length) { String player = CHARS[charCounter]; Logger.info("Player " + username + " uses Char " + player); cha...
public String getNextPlayerFor(String username, String ip) { if(playerMapping.containsKey(ip)){ return playerMapping.get(ip); } if (!playerMapping.containsKey(username) && charCounter < CHARS.length) { String player = CHARS[charCounter]; Logger.info("Player " + username + " uses Char " + player); cha...
diff --git a/benchmark/src/com/sun/sgs/benchmark/client/ScriptingCommand.java b/benchmark/src/com/sun/sgs/benchmark/client/ScriptingCommand.java index 5abdf0614..c2e012ccc 100644 --- a/benchmark/src/com/sun/sgs/benchmark/client/ScriptingCommand.java +++ b/benchmark/src/com/sun/sgs/benchmark/client/ScriptingCommand.java...
true
true
private void parseArgs(String[] args) throws ParseException { switch (type) { case CONFIG: if (args.length <= 2) { if (args.length >= 1) { /** Optional argument */ hostname = args[0]; } if (args.length ...
private void parseArgs(String[] args) throws ParseException { switch (type) { case CONFIG: if (args.length <= 2) { if (args.length >= 1) { /** Optional argument */ hostname = args[0]; } if (args.length ...
diff --git a/src/com/wickedspiral/jacss/parser/Parser.java b/src/com/wickedspiral/jacss/parser/Parser.java index e52cb8b..70523ce 100644 --- a/src/com/wickedspiral/jacss/parser/Parser.java +++ b/src/com/wickedspiral/jacss/parser/Parser.java @@ -1,558 +1,558 @@ package com.wickedspiral.jacss.parser; import com.wicke...
true
true
public void token(Token token, String value) { if (debug) System.err.printf("Token: %s, value: %s\n", token, value); if (rgb) { if (NUMBER == token) { String h = Integer.toHexString(Integer.parseInt(value)).toLowerCase(); if (h.len...
public void token(Token token, String value) { if (debug) System.err.printf("Token: %s, value: %s\n", token, value); if (rgb) { if (NUMBER == token) { String h = Integer.toHexString(Integer.parseInt(value)).toLowerCase(); if (h.len...
diff --git a/src/org/proofpad/SExpUtils.java b/src/org/proofpad/SExpUtils.java index fbce89f..043da6b 100755 --- a/src/org/proofpad/SExpUtils.java +++ b/src/org/proofpad/SExpUtils.java @@ -1,82 +1,82 @@ package org.proofpad; import java.util.LinkedList; import java.util.List; import org.fife.ui.rsyntaxtextarea.RS...
true
true
static List<Expression> topLevelExps(RSyntaxDocument doc) { List<Expression> r = new LinkedList<Expression>(); int parenLevel = 0; int height = 0; boolean first = false; StringBuilder contents = new StringBuilder(); boolean contentsAdmittable = true; ExpType firstType = ExpType.FINAL; int charIndex = -...
static List<Expression> topLevelExps(RSyntaxDocument doc) { List<Expression> r = new LinkedList<Expression>(); int parenLevel = 0; int height = 0; boolean first = false; StringBuilder contents = new StringBuilder(); boolean contentsAdmittable = false; ExpType firstType = ExpType.FINAL; int charIndex = ...
diff --git a/src/de/tobifleig/lxc/data/FileManager.java b/src/de/tobifleig/lxc/data/FileManager.java index 5f47338..00e9358 100644 --- a/src/de/tobifleig/lxc/data/FileManager.java +++ b/src/de/tobifleig/lxc/data/FileManager.java @@ -1,203 +1,203 @@ /* * Copyright 2009, 2010, 2011, 2012 Tobias Fleig (tobifleig gmail ...
true
true
public void computeFileList(TransFileList receivedList, LXCInstance sender) { List<LXCFile> rawList = receivedList.getAll(); recentFileLists.put(sender, rawList); Iterator<LXCFile> iter = files.iterator(); // Remove all files no longer offerd by this instance while (iter.hasNext()) { LXCFile file = iter.n...
public void computeFileList(TransFileList receivedList, LXCInstance sender) { List<LXCFile> rawList = receivedList.getAll(); recentFileLists.put(sender, new ArrayList<LXCFile>(rawList)); // store a copy! Iterator<LXCFile> iter = files.iterator(); // Remove all files no longer offerd by this instance while (ite...
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/script/EngineScriptableClassInfo.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/script/EngineScriptableClassInfo.java index c1ba20f00..bb2311ad0 100644 --- a/plugins/org.eclipse.birt.report.e...
true
true
public IClassInfo getScriptableClass( String className ) { try { Class clazz = Class.forName( className ); ClassInfo info = new ClassInfo( clazz ); return info; } catch ( ClassNotFoundException e ) { return getScriptableClass( className ); } catch ( RuntimeException e ) { return null; ...
public IClassInfo getScriptableClass( String className ) { try { Class clazz = Class.forName( className ); ClassInfo info = new ClassInfo( clazz ); return info; } catch ( ClassNotFoundException e ) { return getClass( className ); } catch ( RuntimeException e ) { return null; } }
diff --git a/intermediate/tx-synch/src/main/java/org/springframework/integration/samples/advice/TransactionSynchronizationDemo.java b/intermediate/tx-synch/src/main/java/org/springframework/integration/samples/advice/TransactionSynchronizationDemo.java index 5841110a..944a7b9f 100755 --- a/intermediate/tx-synch/src/mai...
true
true
public static void main(String[] args) throws Exception { LOGGER.info("\n=========================================================" + "\n " + "\n Welcome to Spring Integration! " + "\n ...
public static void main(String[] args) throws Exception { LOGGER.info("\n=========================================================" + "\n " + "\n Welcome to Spring Integration! " + "\n ...
diff --git a/src/edu/ucla/loni/server/Upload.java b/src/edu/ucla/loni/server/Upload.java index bcb0107..00517c0 100644 --- a/src/edu/ucla/loni/server/Upload.java +++ b/src/edu/ucla/loni/server/Upload.java @@ -1,142 +1,142 @@ package edu.ucla.loni.server; import java.io.File; import java.io.InputStream; import jav...
true
true
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { if ( ServletFileUpload.isMultipartContent( req ) ){ // Create a factory for disk-based file items FileItemFactory factory = new DiskFileItemFactory(); // Create a new file upload handler ServletFile...
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { if ( ServletFileUpload.isMultipartContent( req ) ){ // Create a factory for disk-based file items FileItemFactory factory = new DiskFileItemFactory(); // Create a new file upload handler ServletFile...
diff --git a/CenterConsole.java b/CenterConsole.java index 07462e0..25d10ef 100644 --- a/CenterConsole.java +++ b/CenterConsole.java @@ -1,180 +1,180 @@ //this panel is the center panel that contains the info of the current track playing. import javax.swing.*; import java.awt.*; import java.awt.event.*; import j...
true
true
public void initComponents(){ artistLabel = new JLabel("Artist"); titleLabel = new JLabel("Title"); albumLabel = new JLabel("Album"); setTagButton = new JButton("Tag"); timeNowLabel = new JLabel("0:00"); totTimeLabel = new JLabel("0:00"); trackTimeBar = new JProgressBar(0,0); //initializes JProgressBar t...
public void initComponents(){ artistLabel = new JLabel("Artist"); titleLabel = new JLabel("Title"); albumLabel = new JLabel("Album"); setTagButton = new JButton("Tag"); timeNowLabel = new JLabel("0:00"); totTimeLabel = new JLabel("0:00"); trackTimeBar = new JProgressBar(0,0); //initializes JProgressBar t...
diff --git a/software/nosql/src/main/java/brooklyn/entity/nosql/mongodb/MongoDBReplicaSetImpl.java b/software/nosql/src/main/java/brooklyn/entity/nosql/mongodb/MongoDBReplicaSetImpl.java index d65e5ad09..8b9b07da2 100644 --- a/software/nosql/src/main/java/brooklyn/entity/nosql/mongodb/MongoDBReplicaSetImpl.java +++ b/s...
true
true
public void start(Collection<? extends Location> locations) { // Promises that all the cluster's members have SERVICE_UP true on returning. super.start(locations); policy = new AbstractMembershipTrackingPolicy(MutableMap.of("name", getName() + " membership tracker")) { @Override ...
public void start(Collection<? extends Location> locations) { // Promises that all the cluster's members have SERVICE_UP true on returning. super.start(locations); policy = new AbstractMembershipTrackingPolicy(MutableMap.of("name", getName() + " membership tracker")) { @Override ...
diff --git a/media/sse/src/main/java/org/glassfish/jersey/media/sse/OutboundEventWriter.java b/media/sse/src/main/java/org/glassfish/jersey/media/sse/OutboundEventWriter.java index a1990ecee..20fc4aeaf 100644 --- a/media/sse/src/main/java/org/glassfish/jersey/media/sse/OutboundEventWriter.java +++ b/media/sse/src/main/...
true
true
public void writeTo(OutboundEvent outboundEvent, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, final OutputStream entityStream) throws IOException, WebApplicationException { final References references = services.forContract(Injec...
public void writeTo(OutboundEvent outboundEvent, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, final OutputStream entityStream) throws IOException, WebApplicationException { final References references = services.forContract(Injec...
diff --git a/src/impl/java/org/wyona/yarep/impl/DefaultRepository.java b/src/impl/java/org/wyona/yarep/impl/DefaultRepository.java index 81ed86c..90c9aa8 100644 --- a/src/impl/java/org/wyona/yarep/impl/DefaultRepository.java +++ b/src/impl/java/org/wyona/yarep/impl/DefaultRepository.java @@ -1,502 +1,502 @@ package or...
true
true
public void readConfiguration(File configFile) throws RepositoryException { this.configFile = configFile; DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); Configuration config; try { config = builder.buildFromFile(configFile); name = ...
public void readConfiguration(File configFile) throws RepositoryException { this.configFile = configFile; DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); Configuration config; try { config = builder.buildFromFile(configFile); name = ...
diff --git a/Disasteroids/trunk/src/disasteroids/gui/GameCanvas.java b/Disasteroids/trunk/src/disasteroids/gui/GameCanvas.java index 59a2ec2..b22de36 100644 --- a/Disasteroids/trunk/src/disasteroids/gui/GameCanvas.java +++ b/Disasteroids/trunk/src/disasteroids/gui/GameCanvas.java @@ -1,732 +1,732 @@ /* * DISASTEROID...
true
true
private void drawHud( Graphics g ) { Graphics2D g2d = ( Graphics2D ) g; String text = ""; int x = 0, y = 0; // Draw game mode status. Game.getInstance().getGameMode().draw( g ); if ( showHelp ) { g2d.setColor( Color.white ); g2d.s...
private void drawHud( Graphics g ) { Graphics2D g2d = ( Graphics2D ) g; String text = ""; int x = 0, y = 0; // Draw game mode status. Game.getInstance().getGameMode().draw( g ); if ( showHelp ) { g2d.setColor( Color.white ); g2d.s...
diff --git a/src/main/java/org/vivoweb/harvester/update/ChangeNamespace.java b/src/main/java/org/vivoweb/harvester/update/ChangeNamespace.java index 7938ce86..fd66235e 100644 --- a/src/main/java/org/vivoweb/harvester/update/ChangeNamespace.java +++ b/src/main/java/org/vivoweb/harvester/update/ChangeNamespace.java @@ -1...
true
true
private static void batchMatch(JenaConnect model, JenaConnect vivo, String oldNamespace, String newNamespace, List<Property> properties, int count) { Resource res; QuerySolution solution; log.trace("Begin Match Query Build"); //Find all namespace matches StringBuilder sQuery = new StringBuilder("PREFIX rd...
private static void batchMatch(JenaConnect model, JenaConnect vivo, String oldNamespace, String newNamespace, List<Property> properties, int count) { Resource res; QuerySolution solution; log.trace("Begin Match Query Build"); //Find all namespace matches StringBuilder sQuery = new StringBuilder("PREFIX rd...
diff --git a/virtual-repository-service/src/main/java/org/virtualrepository/service/utils/TypeUtilities.java b/virtual-repository-service/src/main/java/org/virtualrepository/service/utils/TypeUtilities.java index f597550..78adc5c 100644 --- a/virtual-repository-service/src/main/java/org/virtualrepository/service/utils/...
true
true
static public AssetType forName(AssetType[] types, String name) throws RuntimeException { if(types == null || types.length == 0) throw new RuntimeException("Please provide a non-NULL and non-empty list of available asset types"); if(name == null) throw new RuntimeException("Please provide a non-NULL asset...
static public AssetType forName(AssetType[] types, String name) throws RuntimeException { if(types == null || types.length == 0) throw new RuntimeException("Please provide a non-NULL and non-empty list of available asset types"); if(name == null) throw new RuntimeException("Please provide a non-NULL asset...
diff --git a/addons/ofxAndroid/ofAndroidLib/src/cc/openframeworks/OFAndroidVideoGrabber.java b/addons/ofxAndroid/ofAndroidLib/src/cc/openframeworks/OFAndroidVideoGrabber.java index 16f3b40b..987d3860 100644 --- a/addons/ofxAndroid/ofAndroidLib/src/cc/openframeworks/OFAndroidVideoGrabber.java +++ b/addons/ofxAndroid/ofA...
false
true
void initGrabber(int w, int h, int _targetFps){ if(deviceID==-1) camera = Camera.open(); else{ try { int numCameras = (Integer) Camera.class.getMethod("getNumberOfCameras").invoke(null); Class<?> cameraInfoClass = Class.forName("android.hardware.Camera$CameraInfo"); Object cameraInfo = null; ...
void initGrabber(int w, int h, int _targetFps){ if(deviceID==-1) camera = Camera.open(); else{ try { int numCameras = (Integer) Camera.class.getMethod("getNumberOfCameras").invoke(null); Class<?> cameraInfoClass = Class.forName("android.hardware.Camera$CameraInfo"); Object cameraInfo = null; ...
diff --git a/corelib-solr/src/test/java/eu/europeana/corelib/solr/ContentLoader.java b/corelib-solr/src/test/java/eu/europeana/corelib/solr/ContentLoader.java index 4439b5e2..2770b536 100644 --- a/corelib-solr/src/test/java/eu/europeana/corelib/solr/ContentLoader.java +++ b/corelib-solr/src/test/java/eu/europeana/corel...
true
true
public int parse() { MongoConstructor mongoConstructor = new MongoConstructor(); mongoConstructor.setMongoServer(mongoDBServer); for (File f : collectionXML) { try { IBindingFactory bfact = BindingDirectory.getFactory(RDF.class); IUnmarshallingContext uctx = bfact.createUnmarshallingContext(); i++...
public int parse() { MongoConstructor mongoConstructor = new MongoConstructor(); mongoConstructor.setMongoServer(mongoDBServer); for (File f : collectionXML) { try { IBindingFactory bfact = BindingDirectory.getFactory(RDF.class); IUnmarshallingContext uctx = bfact.createUnmarshallingContext(); i++...
diff --git a/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/util/ArchiveEntryUtils.java b/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/util/ArchiveEntryUtils.java index d574a486..19e60c0e 100644 --- a/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/util/ArchiveEntryUtils.java +++ b/...
true
true
public static void chmod( File file, int mode, Logger logger ) throws ArchiverException { if ( !Os.isFamily( "unix" ) ) { return; } String m = Integer.toOctalString( mode & 0xfff ); try { Commandline commandline = new Commandline(...
public static void chmod( File file, int mode, Logger logger ) throws ArchiverException { if ( !Os.isFamily( "unix" ) ) { return; } String m = Integer.toOctalString( mode & 0xfff ); try { Commandline commandline = new Commandline(...
diff --git a/src/com/google/videoeditor/widgets/AudioTrackView.java b/src/com/google/videoeditor/widgets/AudioTrackView.java index 8008ca8..3663ca2 100755 --- a/src/com/google/videoeditor/widgets/AudioTrackView.java +++ b/src/com/google/videoeditor/widgets/AudioTrackView.java @@ -1,366 +1,366 @@ /* * Copyright (C) 2...
true
true
public void setWaveformData(WaveformData waveformData) { mWaveformData = waveformData; final int numFrames = mWaveformData.getFramesCount(); final short[] frameGains = mWaveformData.getFrameGains(); final double[] smoothedGains = new double[numFrames]; if (numFrames == 1) { ...
public void setWaveformData(WaveformData waveformData) { mWaveformData = waveformData; final int numFrames = mWaveformData.getFramesCount(); final short[] frameGains = mWaveformData.getFrameGains(); final double[] smoothedGains = new double[numFrames]; if (numFrames == 1) { ...
diff --git a/component/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UIAddGadgetForm.java b/component/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UIAddGadgetForm.java index f2242f060..0fccd9ed4 100644 --- a/component/dashboard/src/main/java/org/exoplatform/dashboard/webui/compo...
false
true
public void execute(final Event<UIAddGadgetForm> event) throws Exception { WebuiRequestContext context = event.getRequestContext() ; UIAddGadgetForm uiForm = event.getSource() ; UIDashboard uiDashboard = uiForm.getAncestorOfType(UIDashboard.class) ; UIDashboardContainer uiContainer = ...
public void execute(final Event<UIAddGadgetForm> event) throws Exception { WebuiRequestContext context = event.getRequestContext() ; UIAddGadgetForm uiForm = event.getSource() ; UIDashboard uiDashboard = uiForm.getAncestorOfType(UIDashboard.class) ; UIDashboardContainer uiContainer = ...
diff --git a/src/de/uni_koblenz/jgralab/graphmarker/DoubleArrayGraphMarker.java b/src/de/uni_koblenz/jgralab/graphmarker/DoubleArrayGraphMarker.java index fa264bf17..b4628d8e2 100644 --- a/src/de/uni_koblenz/jgralab/graphmarker/DoubleArrayGraphMarker.java +++ b/src/de/uni_koblenz/jgralab/graphmarker/DoubleArrayGraphMar...
true
true
public void setUnmarkedValue(double newUnmarkedValue) { for (int i = 0; i < temporaryAttributes.length; i++) { // keep track of implicitly unmarked values if (temporaryAttributes[i] == newUnmarkedValue) { marked -= 1; } // set all unmarked elements to new value if (temporaryAttributes[i] == this.u...
public void setUnmarkedValue(double newUnmarkedValue) { for (int i = 0; i < temporaryAttributes.length; i++) { // keep track of implicitly unmarked values if (temporaryAttributes[i] == newUnmarkedValue) { marked -= 1; } // set all unmarked elements to new value if (Double.compare(temporaryAttribut...
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/git/GitProjectImporter.java b/gerrit-server/src/main/java/com/google/gerrit/server/git/GitProjectImporter.java index 33661ab46..4a33999da 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/git/GitProjectImporter.java +++ b/gerrit-server/sr...
true
true
private void importProjects(final File dir, final String prefix, final ReviewDb db, final Set<String> have) throws OrmException, IOException { final File[] ls = dir.listFiles(); if (ls == null) { return; } for (File f : ls) { String name = f.getName(); if (".".equals(nam...
private void importProjects(final File dir, final String prefix, final ReviewDb db, final Set<String> have) throws OrmException, IOException { final File[] ls = dir.listFiles(); if (ls == null) { return; } for (File f : ls) { String name = f.getName(); if (".".equals(nam...
diff --git a/conan-atlas-processes/src/main/java/uk/ac/ebi/fgpt/conan/process/atlas/ExperimentEligibilityCheckingProcess.java b/conan-atlas-processes/src/main/java/uk/ac/ebi/fgpt/conan/process/atlas/ExperimentEligibilityCheckingProcess.java index bb66fc0..c98c6c2 100644 --- a/conan-atlas-processes/src/main/java/uk/ac/e...
false
true
public boolean execute(Map<ConanParameter, String> parameters) throws ProcessExecutionException, IllegalArgumentException, InterruptedException { int exitValue = 0; // Add to the desired logger BufferedWriter log; String error_val = ""; //deal with...
public boolean execute(Map<ConanParameter, String> parameters) throws ProcessExecutionException, IllegalArgumentException, InterruptedException { int exitValue = 0; // Add to the desired logger BufferedWriter log; String error_val = ""; //deal with...
diff --git a/src/ljdp/minechem/common/tileentity/TileEntityFission.java b/src/ljdp/minechem/common/tileentity/TileEntityFission.java index e50a63f..8d3de2a 100644 --- a/src/ljdp/minechem/common/tileentity/TileEntityFission.java +++ b/src/ljdp/minechem/common/tileentity/TileEntityFission.java @@ -1,282 +1,282 @@ packag...
true
true
public void updateEntity() { super.updateEntity(); if(!completeStructure) return; shouldSendUpdatePacket = false; if(!worldObj.isRemote && worldObj.getTotalWorldTime()%50==0 && inventory[kStartFuel] != null && energyUpdateTracker.markTimeIfDelay(worldObj, Constants.TICKS_PER_SECOND * 2)) { if(inv...
public void updateEntity() { super.updateEntity(); if(!completeStructure) return; shouldSendUpdatePacket = false; if(!worldObj.isRemote && worldObj.getTotalWorldTime()%50==0 && inventory[kStartFuel] != null && energyUpdateTracker.markTimeIfDelay(worldObj, Constants.TICKS_PER_SECOND * 2)) { if(inv...
diff --git a/src/nodebox/client/DraggableNumber.java b/src/nodebox/client/DraggableNumber.java index e1bbf8f5..f7954571 100644 --- a/src/nodebox/client/DraggableNumber.java +++ b/src/nodebox/client/DraggableNumber.java @@ -1,349 +1,348 @@ package nodebox.client; import javax.imageio.ImageIO; import javax.swing.*; ...
true
true
public DraggableNumber() { setLayout(null); addMouseListener(this); addMouseMotionListener(this); addComponentListener(this); Dimension d = new Dimension(87, 20); setPreferredSize(d); numberField = new JTextField(); numberField.putClientProperty("JCom...
public DraggableNumber() { setLayout(null); addMouseListener(this); addMouseMotionListener(this); addComponentListener(this); Dimension d = new Dimension(87, 20); setPreferredSize(d); numberField = new JTextField(); numberField.putClientProperty("JCom...
diff --git a/src/minecraft/co/uk/flansmods/client/FlansModClient.java b/src/minecraft/co/uk/flansmods/client/FlansModClient.java index 4dfe8a3a..43fd5b59 100644 --- a/src/minecraft/co/uk/flansmods/client/FlansModClient.java +++ b/src/minecraft/co/uk/flansmods/client/FlansModClient.java @@ -1,250 +1,250 @@ package co.u...
true
true
public static void tick() { if (minecraft.thePlayer == null) return; // Guns if (shootTime > 0) shootTime--; if (playerRecoil > 0) playerRecoil *= 0.8F; minecraft.thePlayer.rotationPitch -= playerRecoil; antiRecoil += playerRecoil; minecraft.thePlayer.rotationPitch += antiRecoil * 0.2F; anti...
public static void tick() { if (minecraft.thePlayer == null) return; // Guns if (shootTime > 0) shootTime--; if (playerRecoil > 0) playerRecoil *= 0.8F; minecraft.thePlayer.rotationPitch -= playerRecoil; antiRecoil += playerRecoil; minecraft.thePlayer.rotationPitch += antiRecoil * 0.2F; anti...
diff --git a/onebusaway-nyc-transit-data-federation/src/test/java/org/onebusaway/nyc/transit_data_federation/bundle/tasks/stif/TestStifTripLoaderTest.java b/onebusaway-nyc-transit-data-federation/src/test/java/org/onebusaway/nyc/transit_data_federation/bundle/tasks/stif/TestStifTripLoaderTest.java index 430cd9fcb..c2a3...
true
true
public void testLoader() throws IOException { InputStream in = getClass().getResourceAsStream("stif.m_0014__.210186.sun"); String gtfs = getClass().getResource("m14.zip").getFile(); GtfsReader reader = new GtfsReader(); GtfsRelationalDaoImpl dao = new GtfsRelationalDaoImpl(); reader.setEntityStor...
public void testLoader() throws IOException { InputStream in = getClass().getResourceAsStream("stif.m_0014__.210186.sun"); String gtfs = getClass().getResource("m14.zip").getFile(); GtfsReader reader = new GtfsReader(); GtfsRelationalDaoImpl dao = new GtfsRelationalDaoImpl(); reader.setEntityStor...
diff --git a/amibe/src/org/jcae/mesh/amibe/algos3d/SmoothNodes3DBg.java b/amibe/src/org/jcae/mesh/amibe/algos3d/SmoothNodes3DBg.java index 527b8f36..839dfcb0 100644 --- a/amibe/src/org/jcae/mesh/amibe/algos3d/SmoothNodes3DBg.java +++ b/amibe/src/org/jcae/mesh/amibe/algos3d/SmoothNodes3DBg.java @@ -1,500 +1,500 @@ /* j...
false
true
private boolean smoothNode(Vertex n, AbstractHalfEdge ot, double quality) { Triangle f = (Triangle) n.getLink(); ot = f.getAbstractHalfEdge(ot); if (ot.destination() == n) ot = ot.next(); else if (ot.apex() == n) ot = ot.prev(); assert ot.origin() == n; double [] oldp3 = n.getUV(); // Compute...
private boolean smoothNode(Vertex n, AbstractHalfEdge ot, double quality) { Triangle f = (Triangle) n.getLink(); ot = f.getAbstractHalfEdge(ot); if (ot.destination() == n) ot = ot.next(); else if (ot.apex() == n) ot = ot.prev(); assert ot.origin() == n; double [] oldp3 = n.getUV(); // Compute...