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/ctomlabviewer/src/gov/nih/nci/caxchange/ctom/viewer/actions/LoadTocaAERSAction.java b/ctomlabviewer/src/gov/nih/nci/caxchange/ctom/viewer/actions/LoadTocaAERSAction.java index cf1a961a..f75cb768 100644 --- a/ctomlabviewer/src/gov/nih/nci/caxchange/ctom/viewer/actions/LoadTocaAERSAction.java +++ b/ctomlabvi...
true
true
private int loadTocaAERS(HttpServletRequest request,ActionForm form, String username) throws Exception { HttpSession session = request.getSession(); LabActivitiesSearchResultForm lForm = (LabActivitiesSearchResultForm)form; HashMap map = (HashMap) request.getSession().getAttribute("RESULT_SET"); HashMap<St...
private int loadTocaAERS(HttpServletRequest request,ActionForm form, String username) throws Exception { HttpSession session = request.getSession(); LabActivitiesSearchResultForm lForm = (LabActivitiesSearchResultForm)form; HashMap map = (HashMap) request.getSession().getAttribute("RESULT_SET"); HashMap<St...
diff --git a/src/irc/IRCore.java b/src/irc/IRCore.java index 27f462a..d8ed1c3 100644 --- a/src/irc/IRCore.java +++ b/src/irc/IRCore.java @@ -1,293 +1,293 @@ /** * Copyright (C) 2009-2012 Kenneth Prugh * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Gener...
true
true
private List<String> rwrap(String line, int limit, List<String> wrapped) { line = line.trim(); if (line.length() <= limit) { wrapped.add(line); return wrapped; } else { if (line.charAt(limit-1) == ' ') { ...
private List<String> rwrap(String line, int limit, List<String> wrapped) { line = line.trim(); if (line.length() <= limit) { wrapped.add(line); return wrapped; } else { if (line.charAt(limit-1) == ' ') { ...
diff --git a/src/org/flowvisor/slicer/FVSlicer.java b/src/org/flowvisor/slicer/FVSlicer.java index 04bc712..b179fe1 100644 --- a/src/org/flowvisor/slicer/FVSlicer.java +++ b/src/org/flowvisor/slicer/FVSlicer.java @@ -1,812 +1,812 @@ /** * */ package org.flowvisor.slicer; import java.io.IOException; import jav...
true
true
private void handleIOEvent(FVIOEvent e) { if (!this.isConnected) { try { if (!this.sock.finishConnect()) return; // not done yet } catch (IOException e1) { FVLog.log(LogLevel.DEBUG, this, "retrying connection in ", this.reconnectSeconds, " seconds; got: ", e1); this.reconnectLater(); ...
private void handleIOEvent(FVIOEvent e) { if (!this.isConnected) { try { if (!this.sock.finishConnect()) return; // not done yet } catch (IOException e1) { FVLog.log(LogLevel.DEBUG, this, "retrying connection in ", this.reconnectSeconds, " seconds; got: ", e1); this.reconnectLater(); ...
diff --git a/src/features/gui/explorer/PreprocessPanel.java b/src/features/gui/explorer/PreprocessPanel.java index 5b09d08..8abf342 100644 --- a/src/features/gui/explorer/PreprocessPanel.java +++ b/src/features/gui/explorer/PreprocessPanel.java @@ -1,1658 +1,1660 @@ /* * This program is free software; you can red...
false
true
public PreprocessPanel() { // Create/Configure/Connect components m_FilterEditor.setClassType(features.filters.Filter.class); if (ExplorerDefaults.getFilter() != null) m_FilterEditor.setValue(ExplorerDefaults.getFilter()); m_FilterEditor.addPropertyChangeListener(new PropertyChangeListener() { public v...
public PreprocessPanel() { // Create/Configure/Connect components m_FilterEditor.setClassType(features.filters.Filter.class); if (ExplorerDefaults.getFilter() != null) m_FilterEditor.setValue(ExplorerDefaults.getFilter()); m_FilterEditor.addPropertyChangeListener(new PropertyChangeListener() { public v...
diff --git a/src/test/java/com/jayway/maven/plugins/android/AndroidSdkTest.java b/src/test/java/com/jayway/maven/plugins/android/AndroidSdkTest.java index a8c83390..d868af85 100644 --- a/src/test/java/com/jayway/maven/plugins/android/AndroidSdkTest.java +++ b/src/test/java/com/jayway/maven/plugins/android/AndroidSdkTes...
false
true
public void validPlatformsAndApiLevels() { final AndroidSdk sdk3 = new AndroidSdk(new File(sdkTestSupport.getEnv_ANDROID_HOME()), "3"); final AndroidSdk sdk4 = new AndroidSdk(new File(sdkTestSupport.getEnv_ANDROID_HOME()), "4"); final AndroidSdk sdk7 = new AndroidSdk(new File(sdkTestSupport....
public void validPlatformsAndApiLevels() { final AndroidSdk sdk3 = new AndroidSdk(new File(sdkTestSupport.getEnv_ANDROID_HOME()), "3"); final AndroidSdk sdk4 = new AndroidSdk(new File(sdkTestSupport.getEnv_ANDROID_HOME()), "4"); final AndroidSdk sdk7 = new AndroidSdk(new File(sdkTestSupport....
diff --git a/src/main/Start.java b/src/main/Start.java index 51c0098..06097f4 100755 --- a/src/main/Start.java +++ b/src/main/Start.java @@ -1,87 +1,87 @@ package main; import main.core.Protein; import main.core.Structure; import main.estimation.MatthewsCorrelationCoefficient; import main.estimation.Q3; import ...
true
true
public static void main(String[] args) { Loader loader = new Loader("dssp_info.csv"); List<Protein> proteinListDssp = loader.readFile(); loader = new Loader("stride_info.csv"); List<Protein> proteinListStride = loader.readFile(); System.out.println("DSSP amino acid frequenci...
public static void main(String[] args) { Loader loader = new Loader("dssp_info.csv"); List<Protein> proteinListDssp = loader.readFile(); loader = new Loader("stride_info.csv"); List<Protein> proteinListStride = loader.readFile(); System.out.println("DSSP amino acid frequenci...
diff --git a/core/src/main/java/org/acegisecurity/ui/savedrequest/SavedRequest.java b/core/src/main/java/org/acegisecurity/ui/savedrequest/SavedRequest.java index 4f8618912..8dd714bc7 100644 --- a/core/src/main/java/org/acegisecurity/ui/savedrequest/SavedRequest.java +++ b/core/src/main/java/org/acegisecurity/ui/savedr...
true
true
public SavedRequest(HttpServletRequest request, PortResolver portResolver) { Assert.notNull(request, "Request required"); Assert.notNull(portResolver, "PortResolver required"); // Cookies Cookie[] cookies = request.getCookies(); if (cookies != null) { for (int i...
public SavedRequest(HttpServletRequest request, PortResolver portResolver) { Assert.notNull(request, "Request required"); Assert.notNull(portResolver, "PortResolver required"); // Cookies Cookie[] cookies = request.getCookies(); if (cookies != null) { for (int i...
diff --git a/feeder-sns-parent/feeder-sns-twitter/src/main/java/org/komusubi/feeder/sns/twitter/Twitter4j.java b/feeder-sns-parent/feeder-sns-twitter/src/main/java/org/komusubi/feeder/sns/twitter/Twitter4j.java index b84808d..3945bb0 100644 --- a/feeder-sns-parent/feeder-sns-twitter/src/main/java/org/komusubi/feeder/sn...
false
true
public void tweet(Message message) { try { for (Script script: message) { if (outputConsole) { System.out.printf("tweet: %s%n", script.trimedLine()); } else { StatusUpdate status = new StatusUpdate(script.trimedLine()); ...
public void tweet(Message message) { try { Status result = null; for (Script script: message) { if (outputConsole) { System.out.printf("tweet(length:%d): %s%n", script.codePointCount(), script.trimedLine()); } else { ...
diff --git a/src/net/fred/feedex/activity/MainActivity.java b/src/net/fred/feedex/activity/MainActivity.java index ad1b5e9..ae9e566 100644 --- a/src/net/fred/feedex/activity/MainActivity.java +++ b/src/net/fred/feedex/activity/MainActivity.java @@ -1,297 +1,297 @@ /** * FeedEx * * Copyright (c) 2012-2013 Frederi...
false
true
protected void onCreate(Bundle savedInstanceState) { UiUtils.setPreferenceTheme(this); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // Set up the action bar. final ActionBar actionBar = getActionBar(); actionBar.setNavigationMode(Actio...
protected void onCreate(Bundle savedInstanceState) { UiUtils.setPreferenceTheme(this); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // Set up the action bar. final ActionBar actionBar = getActionBar(); actionBar.setNavigationMode(Actio...
diff --git a/domains/notification/email/src/main/java/org/openengsb/domains/notification/email/EmailServiceManager.java b/domains/notification/email/src/main/java/org/openengsb/domains/notification/email/EmailServiceManager.java index 33f9a7610..55994b239 100644 --- a/domains/notification/email/src/main/java/org/openen...
true
true
public ServiceDescriptor getDescriptor(Locale locale) { return ServiceDescriptor.builder() .id(EmailNotifier.class.getName()) .implementsInterface(NotificationDomain.class.getName()) .type(EmailNotifier.class) .name(strings.getString("email.nam...
public ServiceDescriptor getDescriptor(Locale locale) { return ServiceDescriptor.builder() .id(EmailNotifier.class.getName()) .implementsInterface(NotificationDomain.class.getName()) .type(EmailNotifier.class) .name(strings.getString("email.nam...
diff --git a/Core/src/com/ushahidi/android/app/About.java b/Core/src/com/ushahidi/android/app/About.java index 8e8e64d2..bfece931 100644 --- a/Core/src/com/ushahidi/android/app/About.java +++ b/Core/src/com/ushahidi/android/app/About.java @@ -1,137 +1,137 @@ /** ** Copyright (c) 2010 Ushahidi Inc ** All rights re...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.about); setTitleFromActivityLabel(R.id.title_text); //SEARCH ImageButton searchButton = (ImageButton) findViewById(R.id.search_report_btn); if (!TextUtils.isE...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.about); setTitleFromActivityLabel(R.id.title_text); //SEARCH ImageButton searchButton = (ImageButton) findViewById(R.id.search_report_btn); if (!TextUtils.isE...
diff --git a/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java b/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java index 71ed3e4..c294ceb 100644 --- a/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java +++ b/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java...
true
true
public synchronized void execute() { // Auto-Ende: if (target == null || speed <= 0) { deactivate(); return; } // Wir laufen also. // Aktuelle Position berechnen: FloatingPointPosition oldPos = caster2.getPrecisePosition(); Vector vec ...
public synchronized void execute() { // Auto-Ende: if (target == null || speed <= 0) { deactivate(); return; } // Wir laufen also. // Aktuelle Position berechnen: FloatingPointPosition oldPos = caster2.getPrecisePosition(); Vector vec ...
diff --git a/nuget-tests/src/jetbrains/buildServer/nuget/tests/integration/NuGet.java b/nuget-tests/src/jetbrains/buildServer/nuget/tests/integration/NuGet.java index a9bb269b..421d5e8a 100644 --- a/nuget-tests/src/jetbrains/buildServer/nuget/tests/integration/NuGet.java +++ b/nuget-tests/src/jetbrains/buildServer/nuge...
true
true
public File getPath() { switch (this) { case NuGet_1_4: return FileUtil.getCanonicalFile(new File("./nuget-tests/testData/nuget/1.4/NuGet.exe")); case NuGet_1_5: return FileUtil.getCanonicalFile(new File("./nuget-tests/testData/nuget/1.4/NuGet.exe")); default: throw new I...
public File getPath() { switch (this) { case NuGet_1_4: return FileUtil.getCanonicalFile(new File("./nuget-tests/testData/nuget/1.4/NuGet.exe")); case NuGet_1_5: return FileUtil.getCanonicalFile(new File("./nuget-tests/testData/nuget/1.5/NuGet.exe")); default: throw new I...
diff --git a/src/uk/me/parabola/mkgmap/combiners/TdbBuilder.java b/src/uk/me/parabola/mkgmap/combiners/TdbBuilder.java index 161c00ba..2965d6c5 100644 --- a/src/uk/me/parabola/mkgmap/combiners/TdbBuilder.java +++ b/src/uk/me/parabola/mkgmap/combiners/TdbBuilder.java @@ -1,265 +1,265 @@ /* * Copyright (C) 2007 Steve ...
false
true
private void addToOverviewMap(FileInfo finfo) { Area bounds = finfo.getBounds(); //System.out.printf("overview shift %d\n", overviewSource.getShift()); int overviewMask = ((1 << overviewSource.getShift()) - 1); //System.out.printf("mask %x\n", overviewMask); //System.out.println("overviewSource.getShift() =...
private void addToOverviewMap(FileInfo finfo) { Area bounds = finfo.getBounds(); //System.out.printf("overview shift %d\n", overviewSource.getShift()); int overviewMask = ((1 << overviewSource.getShift()) - 1); //System.out.printf("mask %x\n", overviewMask); //System.out.println("overviewSource.getShift() =...
diff --git a/src/portal-collector/src/com/trendmicro/tme/portal/ExchangeMetricCollector.java b/src/portal-collector/src/com/trendmicro/tme/portal/ExchangeMetricCollector.java index 58b343b..ffa6132 100644 --- a/src/portal-collector/src/com/trendmicro/tme/portal/ExchangeMetricCollector.java +++ b/src/portal-collector/sr...
true
true
public static void main(String[] args) { try { Properties prop = new Properties(); prop.load(new FileInputStream(CONFIG_PATH)); // Let the system properties override the ones in the config file prop.putAll(System.getProperties()); String zkQuorum ...
public static void main(String[] args) { try { Properties prop = new Properties(); prop.load(new FileInputStream(CONFIG_PATH)); // Let the system properties override the ones in the config file prop.putAll(System.getProperties()); String zkQuorum ...
diff --git a/bundles/org.eclipse.equinox.bidi/src/org/eclipse/equinox/bidi/internal/STextTypesCollector.java b/bundles/org.eclipse.equinox.bidi/src/org/eclipse/equinox/bidi/internal/STextTypesCollector.java index 6daa9af0..d061c25f 100644 --- a/bundles/org.eclipse.equinox.bidi/src/org/eclipse/equinox/bidi/internal/STex...
true
true
private void read() { if (types == null) types = new HashMap(); else types.clear(); if (factories == null) factories = new HashMap(); else factories.clear(); IExtensionRegistry registry = RegistryFactory.getRegistry(); IExtensionPoint extPoint = registry.getExtensionPoint(EXT_POINT); IExten...
private void read() { if (types == null) types = new HashMap(); else types.clear(); if (factories == null) factories = new HashMap(); else factories.clear(); IExtensionRegistry registry = RegistryFactory.getRegistry(); IExtensionPoint extPoint = registry.getExtensionPoint(EXT_POINT); IExten...
diff --git a/src/main/java/nl/giantit/minecraft/giantpm/core/Updater/Config/confUpdate.java b/src/main/java/nl/giantit/minecraft/giantpm/core/Updater/Config/confUpdate.java index fddaef5..d05fe8a 100644 --- a/src/main/java/nl/giantit/minecraft/giantpm/core/Updater/Config/confUpdate.java +++ b/src/main/java/nl/giantit/m...
true
true
public void update0_3(FileConfiguration c) { c.set("GiantPM.global.opHasPerms", null); c.set("GiantPM.permissions.permissionsEngine", null); c.set("GiantPM.permissions.Engine", "SPERM"); c.set("GiantPM.permissions.opHasPerms", true); ...
public void update0_3(FileConfiguration c) { c.set("GiantPM.global.opHasPerms", null); c.set("GiantPM.permissions.permissionsEngine", null); c.set("GiantPM.permissions.Engine", "SPERM"); c.set("GiantPM.permissions.opHasPerms", true); ...
diff --git a/src/java/org/jivesoftware/openfire/clearspace/ClearspaceAdminProvider.java b/src/java/org/jivesoftware/openfire/clearspace/ClearspaceAdminProvider.java index a0e4ef2b..d22c307f 100644 --- a/src/java/org/jivesoftware/openfire/clearspace/ClearspaceAdminProvider.java +++ b/src/java/org/jivesoftware/openfire/c...
true
true
public List<JID> getAdmins() { try { String path = PERMISSION_URL_PREFIX + "userPermissions/"+SYSTEM_ADMIN_PERM+"/true"; Log.debug("ClearspaceAdminProvider: permissions query url is: "+path); Element element = ClearspaceManager.getInstance().executeRequest(GET, path); ...
public List<JID> getAdmins() { try { String path = PERMISSION_URL_PREFIX + "userPermissions/"+SYSTEM_ADMIN_PERM+"/true"; Log.debug("ClearspaceAdminProvider: permissions query url is: "+path); Element element = ClearspaceManager.getInstance().executeRequest(GET, path); ...
diff --git a/src/main/java/vazkii/tinkerer/common/block/tile/peripheral/PeripheralAspectContainer.java b/src/main/java/vazkii/tinkerer/common/block/tile/peripheral/PeripheralAspectContainer.java index b0ec2b71..67bb86e3 100644 --- a/src/main/java/vazkii/tinkerer/common/block/tile/peripheral/PeripheralAspectContainer.ja...
true
true
public Object[] callMethod(IComputerAccess computer, ILuaContext context, int method, Object[] arguments) throws Exception { switch(method) { case 0 : { List returnStuff = new ArrayList(); if(container.getAspects() == null) return new String[0]; for(Aspect aspect : container.getAspects().getAspe...
public Object[] callMethod(IComputerAccess computer, ILuaContext context, int method, Object[] arguments) throws Exception { switch(method) { case 0 : { List<String> returnStuff = new ArrayList<String>(); if(container.getAspects() == null || container.getAspects().size()==0) return new String[0]; ...
diff --git a/araqne-dom/src/main/java/org/araqne/dom/script/InitialSchema.java b/araqne-dom/src/main/java/org/araqne/dom/script/InitialSchema.java index 347313e6..fad0906c 100644 --- a/araqne-dom/src/main/java/org/araqne/dom/script/InitialSchema.java +++ b/araqne-dom/src/main/java/org/araqne/dom/script/InitialSchema.ja...
true
true
public static void createPrograms(ScriptContext context, OrganizationApi orgApi, ProgramApi programApi) { if (programApi.findProgramPack(DEFAULT_DOMAIN, "System") == null) { Map<String, String> displayNames = new HashMap<String, String>(); displayNames.put("en", "System"); displayNames.put("ko", "시스템"); ...
public static void createPrograms(ScriptContext context, OrganizationApi orgApi, ProgramApi programApi) { if (programApi.findProgramPack(DEFAULT_DOMAIN, "System") == null) { Map<String, String> displayNames = new HashMap<String, String>(); displayNames.put("en", "System"); displayNames.put("ko", "시스템"); ...
diff --git a/fap/app/jobs/NotificarAlertasAnotacionesFAP.java b/fap/app/jobs/NotificarAlertasAnotacionesFAP.java index 717a32ee..c15dd7ae 100644 --- a/fap/app/jobs/NotificarAlertasAnotacionesFAP.java +++ b/fap/app/jobs/NotificarAlertasAnotacionesFAP.java @@ -1,83 +1,83 @@ package jobs; import java.util.ArrayList; ...
false
true
public void doJob() { if (AdministracionFapJobs.all() != null) { AdministracionFapJobs job = AdministracionFapJobs.all().first(); if ((job.notificarAlertasAnotaciones != null) && (job.notificarAlertasAnotaciones == true)) { if ((job.valorNotificarAlertasAnotaciones != null) && (tiempoRefresco.equals(job.va...
public void doJob() { if (AdministracionFapJobs.all() != null) { AdministracionFapJobs job = AdministracionFapJobs.all().first(); if ((job.notificarAlertasAnotaciones != null) && (job.notificarAlertasAnotaciones == true)) { if ((job.valorNotificarAlertasAnotaciones != null) && (tiempoRefresco.equals(job.va...
diff --git a/src/main/java/greed/code/lang/AbstractLanguage.java b/src/main/java/greed/code/lang/AbstractLanguage.java index 531ed8f..39d249c 100644 --- a/src/main/java/greed/code/lang/AbstractLanguage.java +++ b/src/main/java/greed/code/lang/AbstractLanguage.java @@ -1,73 +1,77 @@ package greed.code.lang; import g...
false
true
public ParamValue parseValue(String value, Param param) { if (!param.getType().isArray()) return new ParamValue(param, value); value = value.trim(); value = value.substring(1, value.length() - 1); value = value.replaceAll("\n", ""); if (param.getType().getPrimiti...
public ParamValue parseValue(String value, Param param) { if (!param.getType().isArray()) return new ParamValue(param, value); value = value.trim(); value = value.substring(1, value.length() - 1); value = value.replaceAll("\n", ""); value = value.trim(); //need a...
diff --git a/trunk/org/xbill/DNS/Tokenizer.java b/trunk/org/xbill/DNS/Tokenizer.java index e82d2f8..00a515b 100644 --- a/trunk/org/xbill/DNS/Tokenizer.java +++ b/trunk/org/xbill/DNS/Tokenizer.java @@ -1,505 +1,502 @@ // Copyright (c) 2003 Brian Wellington (bwelling@xbill.org) // // Copyright (C) 2003 Nominum, Inc. ...
false
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/seqware-pipeline/src/test/java/net/sourceforge/seqware/pipeline/plugins/WorkflowStatusCheckerTest.java b/seqware-pipeline/src/test/java/net/sourceforge/seqware/pipeline/plugins/WorkflowStatusCheckerTest.java index 33c90ed2..d45a883a 100644 --- a/seqware-pipeline/src/test/java/net/sourceforge/seqware/pipeli...
true
true
private void mockupFakeRuns() throws Exception { // mock up some fake workflow_runs so that their status can be checked List<WorkflowRun> wrList = new ArrayList<WorkflowRun>(); for (int i = 0; i < 100; i++) { WorkflowRun wr = new WorkflowRun(); wr.setOwnerUserName("us...
private void mockupFakeRuns() throws Exception { // mock up some fake workflow_runs so that their status can be checked List<WorkflowRun> wrList = new ArrayList<WorkflowRun>(); for (int i = 0; i < 100; i++) { WorkflowRun wr = new WorkflowRun(); wr.setOwnerUserName("us...
diff --git a/server/src/de/hpi/bpmn2execpn/converter/ExecConverter.java b/server/src/de/hpi/bpmn2execpn/converter/ExecConverter.java index 6d7dab03..acb9847c 100644 --- a/server/src/de/hpi/bpmn2execpn/converter/ExecConverter.java +++ b/server/src/de/hpi/bpmn2execpn/converter/ExecConverter.java @@ -1,626 +1,626 @@ pack...
false
true
protected void handleTask(PetriNet net, Task task, ConversionContext c) { ExecTask exTask = new ExecTask(); exTask.setId(task.getId()); exTask.setLabel(task.getLabel()); // create proper model, form and bindings String model = null; String form = null; String bindings = null; DocumentBuilderFactory ...
protected void handleTask(PetriNet net, Task task, ConversionContext c) { ExecTask exTask = new ExecTask(); exTask.setId(task.getId()); exTask.setLabel(task.getLabel()); // create proper model, form and bindings String model = null; String form = null; String bindings = null; DocumentBuilderFactory ...
diff --git a/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/protocol/JSON.java b/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/protocol/JSON.java index 88c1da7a2..676ab9f16 100644 --- a/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/protocol/JSON.java +++ b/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/pr...
false
true
private static Object readNestedObject() throws IOException { switch (cur_ch) { case '"': read(); tmp_buf_pos = 0; for (;;) { if (cur_ch <= 0) error(); if (cur_ch == '"') break; if (cur_ch == '\\') { ...
private static Object readNestedObject() throws IOException { switch (cur_ch) { case '"': read(); tmp_buf_pos = 0; for (;;) { if (cur_ch <= 0) error(); if (cur_ch == '"') break; if (cur_ch == '\\') { ...
diff --git a/hudson-core/src/main/java/hudson/cli/CopyJobCommand.java b/hudson-core/src/main/java/hudson/cli/CopyJobCommand.java index 6d6fcdc7..3a1ab986 100644 --- a/hudson-core/src/main/java/hudson/cli/CopyJobCommand.java +++ b/hudson-core/src/main/java/hudson/cli/CopyJobCommand.java @@ -1,73 +1,74 @@ /*************...
true
true
protected int run() throws Exception { Hudson h = Hudson.getInstance(); h.checkPermission(Item.CREATE); Team targetTeam = validateTeam(team, true, stderr); if (team != null && targetTeam == null) { return -1; } if (h.getItem(dst) != null) { s...
protected int run() throws Exception { Hudson h = Hudson.getInstance(); h.checkPermission(Item.CREATE); Team targetTeam = validateTeam(team, true, stderr); if (team != null && targetTeam == null) { return -1; } if (h.getItem(dst) != null) { s...
diff --git a/org.python.pydev.debug/src/org/python/pydev/debug/core/PydevDebugPlugin.java b/org.python.pydev.debug/src/org/python/pydev/debug/core/PydevDebugPlugin.java index 6f6466712..bae53eca2 100644 --- a/org.python.pydev.debug/src/org/python/pydev/debug/core/PydevDebugPlugin.java +++ b/org.python.pydev.debug/src/o...
true
true
public static void errorDialog(final String message, final Throwable t) { Display disp = Display.getCurrent(); disp.asyncExec(new Runnable() { public void run() { IWorkbenchWindow window = getDefault().getWorkbench().getActiveWorkbenchWindow(); Shell shell = window == null ? null : window.getShell(); ...
public static void errorDialog(final String message, final Throwable t) { Display disp = Display.getDefault(); disp.asyncExec(new Runnable() { public void run() { IWorkbenchWindow window = getDefault().getWorkbench().getActiveWorkbenchWindow(); Shell shell = window == null ? null : window.getShell(); ...
diff --git a/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java b/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java index b1285ea8..7133fa16 100644 --- a/policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java +++ b/policy/src/com/android/internal/policy/impl/Passwor...
false
true
public PasswordUnlockScreen(Context context, Configuration configuration, LockPatternUtils lockPatternUtils, KeyguardUpdateMonitor updateMonitor, KeyguardScreenCallback callback) { super(context); mCreationHardKeyboardHidden = configuration.hardKeyboardHidden; mCreat...
public PasswordUnlockScreen(Context context, Configuration configuration, LockPatternUtils lockPatternUtils, KeyguardUpdateMonitor updateMonitor, KeyguardScreenCallback callback) { super(context); mCreationHardKeyboardHidden = configuration.hardKeyboardHidden; mCreat...
diff --git a/lucene/src/test/org/apache/lucene/index/TestStressAdvance.java b/lucene/src/test/org/apache/lucene/index/TestStressAdvance.java index eb6e76202..7b9902326 100644 --- a/lucene/src/test/org/apache/lucene/index/TestStressAdvance.java +++ b/lucene/src/test/org/apache/lucene/index/TestStressAdvance.java @@ -1,1...
false
true
public void testStressAdvance() throws Exception { for(int iter=0;iter<3;iter++) { if (VERBOSE) { System.out.println("\nTEST: iter=" + iter); } Directory dir = newDirectory(); RandomIndexWriter w = new RandomIndexWriter(random, dir); final Set<Integer> aDocs = new HashSet<Int...
public void testStressAdvance() throws Exception { for(int iter=0;iter<3;iter++) { if (VERBOSE) { System.out.println("\nTEST: iter=" + iter); } Directory dir = newDirectory(); RandomIndexWriter w = new RandomIndexWriter(random, dir); final Set<Integer> aDocs = new HashSet<Int...
diff --git a/src/main/java/com/cluedoassist/Accusation.java b/src/main/java/com/cluedoassist/Accusation.java index 61418e1..ca44d34 100644 --- a/src/main/java/com/cluedoassist/Accusation.java +++ b/src/main/java/com/cluedoassist/Accusation.java @@ -1,25 +1,35 @@ package com.cluedoassist; import java.util.List; imp...
true
true
public Accusation(String asker, List<Card> cards) { this.asker = asker; this.cards = Collections.unmodifiableList(new ArrayList<Card>(cards)); }
public Accusation(String asker, List<Card> cards) { if (asker == null || "".equals(asker)) { throw new IllegalArgumentException("asker can't be null or empty"); } if (cards == null) { throw new IllegalArgumentException("cards can't be null"); } if (car...
diff --git a/ToureNPlaner/src/de/uni/stuttgart/informatik/ToureNPlaner/Data/Result.java b/ToureNPlaner/src/de/uni/stuttgart/informatik/ToureNPlaner/Data/Result.java index 43ac068..5ac2308 100644 --- a/ToureNPlaner/src/de/uni/stuttgart/informatik/ToureNPlaner/Data/Result.java +++ b/ToureNPlaner/src/de/uni/stuttgart/info...
false
true
static void jacksonParse(JsonParser jp, ArrayList<ArrayList<GeoPoint>> ways, ArrayList<ResultNode> points) throws IOException { int lt = 0, ln = 0; int id = 0; while (jp.nextToken() != JsonToken.END_OBJECT) { if ("constraints".equals(jp.getCurrentName())) { // consume while (jp.nextToken() != JsonToke...
static void jacksonParse(JsonParser jp, ArrayList<ArrayList<GeoPoint>> ways, ArrayList<ResultNode> points) throws IOException { int lt = 0, ln = 0; int id = 0; while (jp.nextToken() != JsonToken.END_OBJECT) { if ("constraints".equals(jp.getCurrentName())) { // consume while (jp.nextToken() != JsonToke...
diff --git a/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/action/ClinincalStatusComboAction.java b/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/action/ClinincalStatusComboAction.java index e9d583233..106f8c991 100644 --- a/software/caTissue/modules/core/src/main/java/edu/wu...
false
true
protected ActionForward executeAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { String limit = request.getParameter("limit"); String query = request.getParameter("query"); String start = request.getParameter("start"); final Str...
protected ActionForward executeAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { String limit = request.getParameter("limit"); String query = request.getParameter("query"); String start = request.getParameter("start"); final Str...
diff --git a/beam-visat-rcp/src/main/java/org/esa/beam/visat/VisatMain.java b/beam-visat-rcp/src/main/java/org/esa/beam/visat/VisatMain.java index fec0b7ee1..186c37cd3 100644 --- a/beam-visat-rcp/src/main/java/org/esa/beam/visat/VisatMain.java +++ b/beam-visat-rcp/src/main/java/org/esa/beam/visat/VisatMain.java @@ -1,1...
true
true
public void run(Object argument, ProgressMonitor progressMonitor) throws Exception { String[] args = new String[0]; if (argument instanceof String[]) { args = (String[]) argument; } Locale.setDefault(Locale.UK); // Force usage of British English locale Lm.verif...
public void run(Object argument, ProgressMonitor progressMonitor) throws Exception { String[] args = new String[0]; if (argument instanceof String[]) { args = (String[]) argument; } Locale.setDefault(Locale.UK); // Force usage of British English locale Lm.verif...
diff --git a/src/com/jumpandrun/GameScreen.java b/src/com/jumpandrun/GameScreen.java index d6a59a8..500dbc3 100644 --- a/src/com/jumpandrun/GameScreen.java +++ b/src/com/jumpandrun/GameScreen.java @@ -1,931 +1,930 @@ package com.jumpandrun; import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; import com.bad...
false
true
private void renderScene() { Gdx.gl.glEnable(GL20.GL_CULL_FACE); Gdx.gl.glDisable(GL20.GL_DEPTH_TEST); Gdx.gl20.glEnable(GL20.GL_BLEND); Gdx.gl20.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); transShader.begin(); transShader.setUniformMatrix("VPMatrix", cam.combined); //render ...
private void renderScene() { Gdx.gl.glEnable(GL20.GL_CULL_FACE); Gdx.gl.glDisable(GL20.GL_DEPTH_TEST); Gdx.gl20.glEnable(GL20.GL_BLEND); Gdx.gl20.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); transShader.begin(); transShader.setUniformMatrix("VPMatrix", cam.combined); //render ...
diff --git a/Bukkit/Metrics.java b/Bukkit/Metrics.java index b83ac8c..47ecbd3 100644 --- a/Bukkit/Metrics.java +++ b/Bukkit/Metrics.java @@ -1,272 +1,272 @@ /* * Copyright 2011 Tyler Blair. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permitted...
false
true
private void postPlugin(Plugin plugin, boolean isPing) throws IOException { // Construct the post data String response = "ERR No response"; String data = encode("guid") + '=' + encode(guid) + '&' + encode("version") + '=' + encode(plugin.getDescription().getVersion()) ...
private void postPlugin(Plugin plugin, boolean isPing) throws IOException { // Construct the post data String response = "ERR No response"; String data = encode("guid") + '=' + encode(guid) + '&' + encode("version") + '=' + encode(plugin.getDescription().getVersion()) ...
diff --git a/Poker/src/poker/arturka/Game.java b/Poker/src/poker/arturka/Game.java index 3bca7af..10d3974 100644 --- a/Poker/src/poker/arturka/Game.java +++ b/Poker/src/poker/arturka/Game.java @@ -1,140 +1,140 @@ package poker.arturka; import commands.FRCallCommand; import commands.FRCheckCommand; import commands...
false
true
public void run() { // for(int id: Room.getUsers()){ // players.addPlayer(id); // } players.nextDealer(); Player nextPlayer=players.getNextPlayer(players.getDealer()); if (!nextPlayer.bet(blind/2)){ nextPlayer.bet(nextPlayer.getCash()); } ...
public void run() { // for(int id: Room.getUsers()){ // players.addPlayer(id); // } players.nextDealer(); Player nextPlayer=players.getNextPlayer(players.getDealer()); if (!nextPlayer.bet(blind/2)){ nextPlayer.bet(nextPlayer.getCash()); } ...
diff --git a/loci/formats/out/OMETiffWriter.java b/loci/formats/out/OMETiffWriter.java index 7b7dc62f6..659ab33ec 100644 --- a/loci/formats/out/OMETiffWriter.java +++ b/loci/formats/out/OMETiffWriter.java @@ -1,77 +1,84 @@ // // OMETiffWriter.java // /* LOCI Bio-Formats package for reading and converting biologi...
true
true
public void close() throws IOException { if (out != null) out.close(); out = null; if (currentId != null) { // extract OME-XML string from metadata object MetadataRetrieve retrieve = getMetadataRetrieve(); String xml = MetadataTools.getOMEXML(retrieve); // insert TiffData element ...
public void close() throws IOException { if (out != null) out.close(); out = null; if (currentId != null) { // extract OME-XML string from metadata object MetadataRetrieve retrieve = getMetadataRetrieve(); String xml = MetadataTools.getOMEXML(retrieve); // insert TiffData element ...
diff --git a/src/main/java/org/freenetproject/plugin/infocalypse_webui/ui/fcp/FCPHandler.java b/src/main/java/org/freenetproject/plugin/infocalypse_webui/ui/fcp/FCPHandler.java index 9865518..8ac1bc8 100644 --- a/src/main/java/org/freenetproject/plugin/infocalypse_webui/ui/fcp/FCPHandler.java +++ b/src/main/java/org/fr...
false
true
public void handle(PluginReplySender replysender, SimpleFieldSet params, Bucket data, int accesstype) { // TODO: What to do with accesstype? synchronized (executor) { if (connectedIdentifier == null) { connectedIdentifier = replysender.getIdentifier(); } else ...
public void handle(PluginReplySender replySender, SimpleFieldSet params, Bucket data, int accessType) { // TODO: What to do with accessType? synchronized (executor) { if (connectedIdentifier == null) { connectedIdentifier = replySender.getIdentifier(); } else ...
diff --git a/src/me/corriekay/pppopp3/warp/WarpHandler.java b/src/me/corriekay/pppopp3/warp/WarpHandler.java index 0615092..4c80315 100644 --- a/src/me/corriekay/pppopp3/warp/WarpHandler.java +++ b/src/me/corriekay/pppopp3/warp/WarpHandler.java @@ -1,559 +1,564 @@ package me.corriekay.pppopp3.warp; import java.util...
true
true
public boolean handleCommand(CommandSender sender, Command cmd, String label, String[] args){ if(cmd.getName().equals("warpdebug")) { for(String warpCategory : warpHandler.keySet()) { System.out.print(warpCategory + ":"); WarpList wl = warpHandler.get(warpCategory); for(String warp : wl.warps()) { ...
public boolean handleCommand(CommandSender sender, Command cmd, String label, String[] args){ if(cmd.getName().equals("warpdebug")) { for(String warpCategory : warpHandler.keySet()) { System.out.print(warpCategory + ":"); WarpList wl = warpHandler.get(warpCategory); for(String warp : wl.warps()) { ...
diff --git a/plugins/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/internal/adapter/DataAdapterUtil.java b/plugins/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/internal/adapter/DataAdapterUtil.java index 73cdaa028..a77719b4b 100644 --- a/plugins/org.eclip...
true
true
private static void populateParameter( DataSetHandle modelDataSet, BaseDataSetDesign dteDataSet ) { //dataset parameters definition HashMap paramBindingCandidates = new HashMap( ); Iterator elmtIter = modelDataSet.parametersIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { Da...
private static void populateParameter( DataSetHandle modelDataSet, BaseDataSetDesign dteDataSet ) { //dataset parameters definition HashMap paramBindingCandidates = new HashMap( ); Iterator elmtIter = modelDataSet.parametersIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { Da...
diff --git a/src/ua/luxoft/odessa/tetris/impl/strategies/ConeLStrategy.java b/src/ua/luxoft/odessa/tetris/impl/strategies/ConeLStrategy.java index f7e61c3..c90eba9 100644 --- a/src/ua/luxoft/odessa/tetris/impl/strategies/ConeLStrategy.java +++ b/src/ua/luxoft/odessa/tetris/impl/strategies/ConeLStrategy.java @@ -1,105 +...
true
true
public void checkUp(Coordinates coordinates, Board board) { switch (mOrientation) { case DOWN: if (coordinates.x + 2 >= Board.WIDTH) { if (checkSpace(coordinates.x - 1, coordinates.y, board) == false) return; } else if (checkSpace(coordinates.x, coordinates.y, board) == false) retu...
public void checkUp(Coordinates coordinates, Board board) { switch (mOrientation) { case DOWN: if (coordinates.x + 2 >= Board.WIDTH) { if (checkSpace(coordinates.x - 1, coordinates.y, board) == false) return; coordinates.x--; } else if (checkSpace(coordinates.x, coordinates.y, board...
diff --git a/src/com/geeksville/location/parse/SeeYouCUP.java b/src/com/geeksville/location/parse/SeeYouCUP.java index b6bc2a4..a984844 100644 --- a/src/com/geeksville/location/parse/SeeYouCUP.java +++ b/src/com/geeksville/location/parse/SeeYouCUP.java @@ -1,75 +1,71 @@ package com.geeksville.location.parse; import...
false
true
public int Find() { while (matcher.find()) { try{ if (matcher.group().contains("-----Related Tasks-----")) break; String latDStr = matcher.group(2), latMstr = matcher.group(3), latSstr = matcher.group(4), latNS = matcher.group(5), lonDStr = matcher.group(6), lonMstr = matche...
public int Find() { while (matcher.find()) { try{ if (matcher.group().contains("-----Related Tasks-----")) break; String latDStr = matcher.group(2), latMstr = matcher.group(3), latMDecimalStr = matcher.group(4), latNS = matcher.group(5), lonDStr = matcher.group(6), lonMstr =...
diff --git a/enunciate/maven-enunciate-plugin/src/main/java/org/codehaus/enunciate/ConfigMojo.java b/enunciate/maven-enunciate-plugin/src/main/java/org/codehaus/enunciate/ConfigMojo.java index 3ea3863e..e3a0ed46 100644 --- a/enunciate/maven-enunciate-plugin/src/main/java/org/codehaus/enunciate/ConfigMojo.java +++ b/enu...
true
true
public void execute() throws MojoExecutionException { Set<File> sourceDirs = new HashSet<File>(); Collection<String> sourcePaths = (Collection<String>) project.getCompileSourceRoots(); for (String sourcePath : sourcePaths) { File sourceDir = new File(sourcePath); if (!isEnunciateAdded(sourceDi...
public void execute() throws MojoExecutionException { Set<File> sourceDirs = new HashSet<File>(); Collection<String> sourcePaths = (Collection<String>) project.getCompileSourceRoots(); for (String sourcePath : sourcePaths) { File sourceDir = new File(sourcePath); if (!isEnunciateAdded(sourceDi...
diff --git a/java/src/org/tom/weather/graph/SolarRadiationChart.java b/java/src/org/tom/weather/graph/SolarRadiationChart.java index 3852d422..24d8c2bf 100644 --- a/java/src/org/tom/weather/graph/SolarRadiationChart.java +++ b/java/src/org/tom/weather/graph/SolarRadiationChart.java @@ -1,61 +1,61 @@ package org.tom.we...
true
true
private XYDataset readData(DataSource source, Timestamp start, Timestamp end) { JDBCXYDataset data = null; try { Connection con = source.getConnection(); data = new JDBCXYDataset(con); String sql = "SELECT date - INTERVAL " + Grapher.OFFSET / 1000 + " second , solar_radiation FROM archive...
private XYDataset readData(DataSource source, Timestamp start, Timestamp end) { JDBCXYDataset data = null; try { Connection con = source.getConnection(); data = new JDBCXYDataset(con); String sql = "SELECT date - INTERVAL " + Grapher.OFFSET / 1000 + " second , solar_radiation FROM archive...
diff --git a/main/src/com/google/android/apps/dashclock/calendar/CalendarExtension.java b/main/src/com/google/android/apps/dashclock/calendar/CalendarExtension.java index 1f894f5..1f99f05 100644 --- a/main/src/com/google/android/apps/dashclock/calendar/CalendarExtension.java +++ b/main/src/com/google/android/apps/dashc...
true
true
protected void onUpdateData(int reason) { SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); boolean showAllDay = sp.getBoolean(PREF_SHOW_ALL_DAY, false); try { mLookAheadHours = Integer.parseInt(sp.getString(PREF_LOOK_AHEAD_HOURS, In...
protected void onUpdateData(int reason) { SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); boolean showAllDay = sp.getBoolean(PREF_SHOW_ALL_DAY, false); try { mLookAheadHours = Integer.parseInt(sp.getString(PREF_LOOK_AHEAD_HOURS, In...
diff --git a/app/controllers/WeatherController.java b/app/controllers/WeatherController.java index a7e699d..265b5e1 100644 --- a/app/controllers/WeatherController.java +++ b/app/controllers/WeatherController.java @@ -1,235 +1,236 @@ /** * */ package controllers; import java.io.BufferedReader; import java.io....
true
true
public static WebSocket<JsonNode> webSocket() { return new WebSocket<JsonNode>() { // Called when the Websocket Handshake is done. public void onReady(WebSocket.In<JsonNode> in, final WebSocket.Out<JsonNode> out) { in.onMessage(new Callback<JsonNode>() { public void invoke(JsonNode event) { L...
public static WebSocket<JsonNode> webSocket() { return new WebSocket<JsonNode>() { // Called when the Websocket Handshake is done. public void onReady(WebSocket.In<JsonNode> in, final WebSocket.Out<JsonNode> out) { in.onMessage(new Callback<JsonNode>() { public void invoke(JsonNode event) { L...
diff --git a/src/com/iBank/Commands/BankRootCommand.java b/src/com/iBank/Commands/BankRootCommand.java index 0b917de..e901542 100644 --- a/src/com/iBank/Commands/BankRootCommand.java +++ b/src/com/iBank/Commands/BankRootCommand.java @@ -1,51 +1,51 @@ package com.iBank.Commands; import java.util.ArrayList; import j...
true
true
public void handle(CommandSender sender, String[] arguments) { if(!(sender instanceof Player)) { MessageManager.send(sender, "&r&"+Configuration.StringEntry.ErrorNoPlayer.toString()); return; } if(iBank.GetRegionAt(((Player)sender).getLocation()) == "") { MessageManager.send(sender, "&r&"+Configuration....
public void handle(CommandSender sender, String[] arguments) { if(!(sender instanceof Player)) { MessageManager.send(sender, "&r&"+Configuration.StringEntry.ErrorNoPlayer.toString()); return; } if(iBank.GetRegionAt(((Player)sender).getLocation()) == "") { MessageManager.send(sender, "&r&"+Configuration....
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index 6b4d3f4a..d9017dab 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -1,1244 +1,1239 @@ /* * Copyright (C) 2008 The Android Open Source Project ...
false
true
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
diff --git a/deegree-datastores/deegree-featurestore/deegree-featurestore-sql/src/test/java/org/deegree/feature/persistence/sql/TOPPStatesTest.java b/deegree-datastores/deegree-featurestore/deegree-featurestore-sql/src/test/java/org/deegree/feature/persistence/sql/TOPPStatesTest.java index 94e297b6ec..7f3e6b3761 100644...
false
true
private void createTables() throws Exception { // read application schema URL schemaUrl = TOPPStatesTest.class.getResource( "topp_states/schema/states.xsd" ); ApplicationSchemaXSDDecoder decoder = new ApplicationSchemaXSDDecoder( null, null, schemaUrl.toString() ...
private void createTables() throws Exception { // read application schema URL schemaUrl = TOPPStatesTest.class.getResource( "topp_states/schema/states.xsd" ); ApplicationSchemaXSDDecoder decoder = new ApplicationSchemaXSDDecoder( null, null, schemaUrl.toString() ...
diff --git a/core/src/com/google/zxing/pdf417/decoder/PDF417CodewordDecoder.java b/core/src/com/google/zxing/pdf417/decoder/PDF417CodewordDecoder.java index 478f0e23..017f3f39 100644 --- a/core/src/com/google/zxing/pdf417/decoder/PDF417CodewordDecoder.java +++ b/core/src/com/google/zxing/pdf417/decoder/PDF417CodewordDe...
false
true
private static int getClosestDecodedValue(int[] moduleBitCount) { int bitCountSum = PDF417Common.getBitCountSum(moduleBitCount); float[] bitCountRatios = new float[PDF417Common.BARS_IN_MODULE]; for (int i = 0; i < bitCountRatios.length; i++) { bitCountRatios[i] = moduleBitCount[i] / (float) bitCount...
private static int getClosestDecodedValue(int[] moduleBitCount) { int bitCountSum = PDF417Common.getBitCountSum(moduleBitCount); float[] bitCountRatios = new float[PDF417Common.BARS_IN_MODULE]; for (int i = 0; i < bitCountRatios.length; i++) { bitCountRatios[i] = moduleBitCount[i] / (float) bitCount...
diff --git a/components/bio-formats/src/loci/formats/in/MetamorphReader.java b/components/bio-formats/src/loci/formats/in/MetamorphReader.java index d1c89f47a..dc4929ba3 100644 --- a/components/bio-formats/src/loci/formats/in/MetamorphReader.java +++ b/components/bio-formats/src/loci/formats/in/MetamorphReader.java @@ ...
true
true
protected void initFile(String id) throws FormatException, IOException { if (checkSuffix(id, ND_SUFFIX)) { LOGGER.info("Initializing " + id); // find an associated STK file String stkFile = id.substring(0, id.lastIndexOf(".")); if (stkFile.indexOf(File.separator) != -1) { stkFile =...
protected void initFile(String id) throws FormatException, IOException { if (checkSuffix(id, ND_SUFFIX)) { LOGGER.info("Initializing " + id); // find an associated STK file String stkFile = id.substring(0, id.lastIndexOf(".")); if (stkFile.indexOf(File.separator) != -1) { stkFile =...
diff --git a/src/UltraCommand.java b/src/UltraCommand.java index 59691a2..71f3366 100644 --- a/src/UltraCommand.java +++ b/src/UltraCommand.java @@ -1,354 +1,353 @@ package com.kierdavis.ultracommand; import com.kierdavis.flex.FlexCommandExecutor; import java.io.File; import java.io.IOException; import java.util...
true
true
public boolean doCommand(Player player, String[] parts) { CustomCommandContext ccc = null; String cmdName = ""; StringBuilder b = new StringBuilder(); b.append(parts[0]); for (int i = 0; i < parts.length; i++) { String thisCmdName = b.toString().replaceA...
public boolean doCommand(Player player, String[] parts) { CustomCommandContext ccc = null; String cmdName = ""; StringBuilder b = new StringBuilder(); for (int i = 0; i < parts.length; i++) { String thisCmdName = b.toString().replaceAll(" ", "_"); Cu...
diff --git a/src/fniki/wiki/HtmlResultFactory.java b/src/fniki/wiki/HtmlResultFactory.java index 33a9c34..8b69ffd 100644 --- a/src/fniki/wiki/HtmlResultFactory.java +++ b/src/fniki/wiki/HtmlResultFactory.java @@ -1,111 +1,116 @@ /* Make ChildContainerResults for HTML. * * Copyright (C) 2010, 2011 Darrell Karbott ...
true
true
public static byte[] makeData(String utf8Title, String utf8Body, int refreshSeconds, boolean includeOuterHtml) throws IOException { if (!includeOuterHtml) { return utf8Body.getBytes(ENC...
public static byte[] makeData(String utf8Title, String utf8Body, int refreshSeconds, boolean includeOuterHtml) throws IOException { if (!includeOuterHtml) { return utf8Body.getBytes(ENC...
diff --git a/Essentials/src/com/earth2me/essentials/api/Economy.java b/Essentials/src/com/earth2me/essentials/api/Economy.java index fcab616b..ddafacd5 100644 --- a/Essentials/src/com/earth2me/essentials/api/Economy.java +++ b/Essentials/src/com/earth2me/essentials/api/Economy.java @@ -1,292 +1,293 @@ package com.eart...
true
true
private static void deleteNPC(String name) { File folder = new File(ess.getDataFolder(), "userdata"); if (!folder.exists()) { folder.mkdirs(); } File config = new File(folder, Util.sanitizeFileName(name) + ".yml"); EssentialsConf npcConfig = new EssentialsConf(config); npcConfig.load(); if (npcConf...
private static void deleteNPC(String name) { File folder = new File(ess.getDataFolder(), "userdata"); if (!folder.exists()) { folder.mkdirs(); } File config = new File(folder, Util.sanitizeFileName(name) + ".yml"); EssentialsConf npcConfig = new EssentialsConf(config); npcConfig.load(); if (npcConf...
diff --git a/BofSA/src/au/edu/csu/bofsa/InGameStateST.java b/BofSA/src/au/edu/csu/bofsa/InGameStateST.java index 431790d..377498b 100644 --- a/BofSA/src/au/edu/csu/bofsa/InGameStateST.java +++ b/BofSA/src/au/edu/csu/bofsa/InGameStateST.java @@ -1,458 +1,459 @@ /** * The MIT License * * Copyright 2011 Andrew J...
true
true
public void enter(GameContainer container, StateBasedGame game) throws SlickException { try { this.map = new GameLevelST("test"); } catch (SlickException e) { e.printStackTrace(); } this.elapsed = 0; this.updateThread = new Thread(this); { CopyablePoint dummy =...
public void enter(GameContainer container, StateBasedGame game) throws SlickException { try { this.map = new GameLevelST("test"); } catch (SlickException e) { e.printStackTrace(); } this.elapsed = 0; this.updateThread = new Thread(this); { CopyablePoint dummy =...
diff --git a/osl-slql-console/src/test/java/org/openspotlight/graph/query/console/command/ExampleRemoteServerWithData.java b/osl-slql-console/src/test/java/org/openspotlight/graph/query/console/command/ExampleRemoteServerWithData.java index fc3f64c98..44a508b63 100644 --- a/osl-slql-console/src/test/java/org/openspotli...
false
true
public void populateGraph() throws SLException, IOException, ClassNotFoundException, IdentityException { Injector injector = Guice.createInjector(new JRedisStorageModule(STStorageSession.STFlushMode.AUTO, ExampleRedisConfig.EXAMPLE.getMappedServerConfig(), r...
public void populateGraph() throws SLException, IOException, ClassNotFoundException, IdentityException { Injector injector = Guice.createInjector(new JRedisStorageModule(STStorageSession.STFlushMode.AUTO, ExampleRedisConfig.EXAMPLE.getMappedServerConfig(), r...
diff --git a/src/main/java/org/atlasapi/remotesite/space/TheSpacePlaylistProcessor.java b/src/main/java/org/atlasapi/remotesite/space/TheSpacePlaylistProcessor.java index 37c8e37ac..ea94792f4 100644 --- a/src/main/java/org/atlasapi/remotesite/space/TheSpacePlaylistProcessor.java +++ b/src/main/java/org/atlasapi/remotes...
false
true
private void makePlaylist(ContentGroup playlist, JsonNode node, ObjectMapper mapper) throws Exception { try { JsonNode pid = node.get("pid"); playlist.setCanonicalUri(getCanonicalUri(pid.asText())); playlist.setPublisher(Publisher.THESPACE); JsonNode long_syn...
private void makePlaylist(ContentGroup playlist, JsonNode node, ObjectMapper mapper) throws Exception { try { JsonNode pid = node.get("pid"); playlist.setCanonicalUri(getCanonicalUri(pid.asText())); playlist.setPublisher(Publisher.THESPACE); JsonNode long_syn...
diff --git a/plexus-notification/src/test/java/org/codehaus/plexus/notification/NotificationDispatcherTest.java b/plexus-notification/src/test/java/org/codehaus/plexus/notification/NotificationDispatcherTest.java index 47caa4c6..67d8d776 100644 --- a/plexus-notification/src/test/java/org/codehaus/plexus/notification/No...
true
true
public void testBasic() throws Exception { NotificationDispatcher notificationDispatcher = (NotificationDispatcher) lookup( NotificationDispatcher.ROLE ); NotifierManager notifierManager = (NotifierManager) lookup( NotifierManager.ROLE ); EenyNotifier eenyNotifier = (EenyNotifi...
public void testBasic() throws Exception { NotificationDispatcher notificationDispatcher = (NotificationDispatcher) lookup( NotificationDispatcher.ROLE ); NotifierManager notifierManager = (NotifierManager) lookup( NotifierManager.ROLE ); EenyNotifier eenyNotifier = (EenyNotifi...
diff --git a/src/org/pentaho/agilebi/modeler/util/MultiTableModelerSource.java b/src/org/pentaho/agilebi/modeler/util/MultiTableModelerSource.java index 3ff512b..ae383a8 100644 --- a/src/org/pentaho/agilebi/modeler/util/MultiTableModelerSource.java +++ b/src/org/pentaho/agilebi/modeler/util/MultiTableModelerSource.java...
true
true
public Domain generateDomain(boolean doOlap) throws ModelerException { Domain domain = null; try { // Generate domain based on the table names. String locale = LocalizedString.DEFAULT_LOCALE; this.generator.setLocale(locale); this.generator.setDataba...
public Domain generateDomain(boolean doOlap) throws ModelerException { Domain domain = null; try { // Generate domain based on the table names. String locale = LocalizedString.DEFAULT_LOCALE; this.generator.setLocale(locale); this.generator.setDataba...
diff --git a/src/main/java/org/tcgframework/JoinGameService.java b/src/main/java/org/tcgframework/JoinGameService.java index 604b940..a1cf9f3 100644 --- a/src/main/java/org/tcgframework/JoinGameService.java +++ b/src/main/java/org/tcgframework/JoinGameService.java @@ -1,99 +1,99 @@ package org.tcgframework; import ...
true
true
public void gameHandler(ServerSession sender, ServerMessage message){ System.out.println("caught a message"); DominionGameState state = games.get(message.getChannel()); if (message.getData().toString().equals("iam_ready")){ System.out.println("Channel: " + message.getChannel()); sender.deliver(this.s...
public void gameHandler(ServerSession sender, ServerMessage message){ System.out.println("caught a message"); DominionGameState state = games.get(message.getChannel()); if (message.getData().toString().equals("iam_ready")){ System.out.println("Channel: " + message.getChannel()); sender.deliver(this.s...
diff --git a/src/main/java/ohtu/radioaine/controller/TestDBController.java b/src/main/java/ohtu/radioaine/controller/TestDBController.java index 851931b..27b2f2a 100644 --- a/src/main/java/ohtu/radioaine/controller/TestDBController.java +++ b/src/main/java/ohtu/radioaine/controller/TestDBController.java @@ -1,85 +1,88 ...
true
true
private void createBatches() { for (int i = 0; i < batches.length; i++) { Batch batch = new Batch(); batch.setBatchNumber(batches[i][0]); batch.setAmount(Integer.parseInt(batches[i][1])); int[][] storageLocations = new int[10][2]; stor...
private void createBatches() { for (int i = 0; i < batches.length; i++) { Batch batch = new Batch(); batch.setBatchNumber(batches[i][0]); batch.setAmount(Integer.parseInt(batches[i][1])); int[][] storageLocations = new int[10][2]; stor...
diff --git a/src/main/java/com/jayway/lab/numberclassification/NumberClassifier.java b/src/main/java/com/jayway/lab/numberclassification/NumberClassifier.java index 0b687c4..4fec3ca 100644 --- a/src/main/java/com/jayway/lab/numberclassification/NumberClassifier.java +++ b/src/main/java/com/jayway/lab/numberclassificati...
true
true
public Classification classify(int number) { if(number <= 0) throw new IllegalArgumentException("Number must be greater than 0"); // We use "number+1" in range since numbers are not inclusive in the range method. final int sumOfFactors = range(1, number + 1).filter(potentialFactory -> number...
public Classification classify(int number) { if(number <= 0) throw new IllegalArgumentException("Number must be greater than 0"); // We use "number+1" in range since numbers are not inclusive in the range method. final int sumOfFactors = range(1, number + 1).filter(potentialFactor -> number ...
diff --git a/performance/plugins/org.eclipse.dltk.tests.performance/src/org/eclipse/dltk/tests/performance/TclFullSourceWorkspaceTests.java b/performance/plugins/org.eclipse.dltk.tests.performance/src/org/eclipse/dltk/tests/performance/TclFullSourceWorkspaceTests.java index 64904da..9302f58 100644 --- a/performance/plu...
true
true
public String getFullWorkspaceZip() { // return getPluginDirectoryPath(Activator.PLUGIN_ID + ".data") // + File.separator + "bigFile.zip"; return "/home/dltk/data/bigFile.zip"; }
public String getFullWorkspaceZip() { // return getPluginDirectoryPath(Activator.PLUGIN_ID + ".data") // + File.separator + "bigFile.zip"; String property = System.getProperty("BUILD_HOME", "/home/dltk"); return property + "/data/bigFile.zip"; }
diff --git a/solr/src/java/org/apache/solr/handler/AnalysisRequestHandlerBase.java b/solr/src/java/org/apache/solr/handler/AnalysisRequestHandlerBase.java index 4ec455bbd..48425034b 100644 --- a/solr/src/java/org/apache/solr/handler/AnalysisRequestHandlerBase.java +++ b/solr/src/java/org/apache/solr/handler/AnalysisReq...
true
true
private List<NamedList> convertTokensToNamedLists(final List<AttributeSource> tokens, AnalysisContext context) { final List<NamedList> tokensNamedLists = new ArrayList<NamedList>(); final int[] positions = new int[tokens.size()]; int position = 0; for (int i = 0, c = tokens.size(); i < c; i++) { ...
private List<NamedList> convertTokensToNamedLists(final List<AttributeSource> tokens, AnalysisContext context) { final List<NamedList> tokensNamedLists = new ArrayList<NamedList>(); final int[] positions = new int[tokens.size()]; int position = 0; for (int i = 0, c = tokens.size(); i < c; i++) { ...
diff --git a/src/net/skyebook/OSMReader.java b/src/net/skyebook/OSMReader.java index f824a6a..17a1d98 100644 --- a/src/net/skyebook/OSMReader.java +++ b/src/net/skyebook/OSMReader.java @@ -1,157 +1,159 @@ /** * */ package net.skyebook; import java.io.BufferedReader; import java.io.FileInputStream; import ja...
false
true
public void readLine(String line) throws IOException{ totalBytesRead+=line.length(); // what type of element is this? if(line.contains(nodePrefix)){ Node node = new Node(); double lat = -1; double lon = -1; // get the information String[] attributes = line.split("=\""); for(int i=0; i<attrib...
public void readLine(String line) throws IOException{ totalBytesRead+=line.length(); // what type of element is this? if(line.contains(nodePrefix)){ Node node = new Node(); double lat = -1; double lon = -1; // get the information String[] attributes = line.split("=\""); for(int i=0; i<attrib...
diff --git a/flexmojos-testing/flexmojos-test-harness/src/test/java/org/sonatype/flexmojos/tests/concept/TrustTest.java b/flexmojos-testing/flexmojos-test-harness/src/test/java/org/sonatype/flexmojos/tests/concept/TrustTest.java index 7bbb32b31..a792f7bc2 100644 --- a/flexmojos-testing/flexmojos-test-harness/src/test/j...
false
true
public void testTrust() throws Exception { File fpTrustFolder = container.lookup( FlashPlayerTruster.class ).getTrustDir(); if ( !fpTrustFolder.isDirectory() ) { fpTrustFolder.mkdirs(); } File mavenCfg = new File( fpTrustFolder, "maven.cfg" ); ...
public void testTrust() throws Exception { File fpTrustFolder = container.lookup( FlashPlayerTruster.class ).getTrustDir(); if ( !fpTrustFolder.isDirectory() ) { fpTrustFolder.mkdirs(); } File mavenCfg = new File( fpTrustFolder, "maven.cfg" ); ...
diff --git a/src/com/android/email/Email.java b/src/com/android/email/Email.java index 46069ed5..1ef55cf2 100644 --- a/src/com/android/email/Email.java +++ b/src/com/android/email/Email.java @@ -1,280 +1,278 @@ /* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version...
false
true
private static void setServicesEnabled(Context context, boolean enabled) { PackageManager pm = context.getPackageManager(); if (!enabled && pm.getComponentEnabledSetting( new ComponentName(context, MailService.class)) == PackageManager.COMPONENT_ENABLED_STATE_ENAB...
private static void setServicesEnabled(Context context, boolean enabled) { PackageManager pm = context.getPackageManager(); if (!enabled && pm.getComponentEnabledSetting( new ComponentName(context, MailService.class)) == PackageManager.COMPONENT_ENABLED_STATE_ENAB...
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index c19ac4a0..1a097b52 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -1,1854 +1,1858 @@ /* * Copyright (C) 2008 The Android Open Source Project ...
true
true
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
diff --git a/src/org/joval/plugin/adapter/independent/BaseFileAdapter.java b/src/org/joval/plugin/adapter/independent/BaseFileAdapter.java index d96bd17c..96c308e9 100755 --- a/src/org/joval/plugin/adapter/independent/BaseFileAdapter.java +++ b/src/org/joval/plugin/adapter/independent/BaseFileAdapter.java @@ -1,736 +1,...
false
true
final Collection<String> getPathList(IRequestContext rc, IFilesystem fs, ReflectedFileBehaviors fb) throws OvalException { ObjectType obj = rc.getObject(); Collection<String> list = pathMap.get(obj.getId()); if (list != null) { return list; } list = new Vector<String>(); try { ReflectedFileObject f...
final Collection<String> getPathList(IRequestContext rc, IFilesystem fs, ReflectedFileBehaviors fb) throws OvalException { ObjectType obj = rc.getObject(); Collection<String> list = pathMap.get(obj.getId()); if (list != null) { return list; } list = new Vector<String>(); try { ReflectedFileObject f...
diff --git a/src/nl/tdegroot/games/nemesis/level/Level.java b/src/nl/tdegroot/games/nemesis/level/Level.java index 0a87663..79078e1 100644 --- a/src/nl/tdegroot/games/nemesis/level/Level.java +++ b/src/nl/tdegroot/games/nemesis/level/Level.java @@ -1,65 +1,65 @@ package nl.tdegroot.games.nemesis.level; import nl.td...
false
true
public void render(Graphics g, Camera camera) { int x = (int) - (camera.getX() % tileSize) - tileSize; int y = (int) - (camera.getY() % tileSize) - tileSize; int sx = (int) camera.getX() / tileSize; int sy = (int) camera.getY() / tileSize; int sectionWidth = (Display.getWidth() / tileSize) + 3; int section...
public void render(Graphics g, Camera camera) { int x = (int) - (camera.getX() % tileSize) - tileSize; int y = (int) - (camera.getY() % tileSize) - tileSize; int sx = (int) (camera.getX() / tileSize) -1; int sy = (int) (camera.getY() / tileSize) -1; int sectionWidth = (Display.getWidth() / tileSize) + 3; i...
diff --git a/DroidPlanner/src/com/droidplanner/fragments/EditorListFragment.java b/DroidPlanner/src/com/droidplanner/fragments/EditorListFragment.java index 4616a888..fda84a71 100644 --- a/DroidPlanner/src/com/droidplanner/fragments/EditorListFragment.java +++ b/DroidPlanner/src/com/droidplanner/fragments/EditorListFra...
true
true
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_mission, container, false); list = (HListView) view.findViewById(R.id.listView1); mission = ((DroidPlannerApp) getActivity().getApplication()).drone.mission...
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_mission_list, container, false); list = (HListView) view.findViewById(R.id.listView1); mission = ((DroidPlannerApp) getActivity().getApplication()).drone.mi...
diff --git a/src/edu/jhu/thrax/util/CreateGlueGrammar.java b/src/edu/jhu/thrax/util/CreateGlueGrammar.java index 3fdce71..6be3f0f 100644 --- a/src/edu/jhu/thrax/util/CreateGlueGrammar.java +++ b/src/edu/jhu/thrax/util/CreateGlueGrammar.java @@ -1,70 +1,70 @@ package edu.jhu.thrax.util; import java.io.File; import ...
true
true
public static void main(String[] argv) throws IOException { String grammar_file_name = null; if (argv.length > 0) grammar_file_name = argv[0]; if (argv.length > 1) GOAL = argv[1]; if (grammar_file_name == null) { System.err.println("No grammar specified."); System.exit(1); } File ...
public static void main(String[] argv) throws IOException { String grammar_file_name = null; if (argv.length > 0) grammar_file_name = argv[0]; if (argv.length > 1) GOAL = argv[1]; if (grammar_file_name == null) { System.err.println("No grammar specified."); System.exit(1); } File ...
diff --git a/src/com/clarkparsia/utils/web/Request.java b/src/com/clarkparsia/utils/web/Request.java index 556722c..4adf7e0 100644 --- a/src/com/clarkparsia/utils/web/Request.java +++ b/src/com/clarkparsia/utils/web/Request.java @@ -1,322 +1,322 @@ /* * Copyright (c) 2005-2010 Clark & Parsia, LLC. <http://www.clarkp...
true
true
public Response execute() throws IOException { // TODO: use-caches?, if-modified-since, HTTPS security twiddling, HTTP Authentication, chunking, user interactions? InputStream aResponseStream = null; InputStream aInput = null; HttpURLConnection aConn = null; try { URLConnection aTempConn = getURLWithPar...
public Response execute() throws IOException { // TODO: use-caches?, if-modified-since, HTTPS security twiddling, HTTP Authentication, chunking, user interactions? InputStream aResponseStream = null; InputStream aInput = null; HttpURLConnection aConn = null; try { URLConnection aTempConn = getURLWithPar...
diff --git a/src/main/java/uk/co/unclealex/music/sync/IpodSynchroniser.java b/src/main/java/uk/co/unclealex/music/sync/IpodSynchroniser.java index e7fe831..222a719 100644 --- a/src/main/java/uk/co/unclealex/music/sync/IpodSynchroniser.java +++ b/src/main/java/uk/co/unclealex/music/sync/IpodSynchroniser.java @@ -1,183 +...
true
true
public Set<DeviceFile> listDeviceFiles() throws IOException { List<String> deviceFileStrings = executeCommand("LIST"); Function<String, DeviceFile> deviceFileParserFunction = new Function<String, DeviceFile>() { @Override public DeviceFile apply(String str) { str = str.trim(); ...
public Set<DeviceFile> listDeviceFiles() throws IOException { List<String> deviceFileStrings = executeCommand("LIST"); Function<String, DeviceFile> deviceFileParserFunction = new Function<String, DeviceFile>() { @Override public DeviceFile apply(String str) { str = str.trim(); ...
diff --git a/src/com/redhat/qe/auto/testng/TestNGListener.java b/src/com/redhat/qe/auto/testng/TestNGListener.java index 40ae4b6..6da3ebc 100644 --- a/src/com/redhat/qe/auto/testng/TestNGListener.java +++ b/src/com/redhat/qe/auto/testng/TestNGListener.java @@ -1,132 +1,132 @@ package com.redhat.qe.auto.testng; impo...
true
true
public void onTestSkipped(ITestResult result) { Reporter.setCurrentTestResult(result); if (result.getThrowable() instanceof SkipException){ LogRecord r= new LogRecord(Level.INFO, "Skipping test " + result.getName() + ": " + result.getThrowable().getMessage()); r.setParameters(new Object[]{LogMessageUtil.Sty...
public void onTestSkipped(ITestResult result) { Reporter.setCurrentTestResult(result); if (result.getThrowable() != null){ LogRecord r= new LogRecord(Level.INFO, "Skipping test " + result.getName() + ": " + result.getThrowable().getMessage()); r.setParameters(new Object[]{LogMessageUtil.Style.Banner}); l...
diff --git a/plugins/org.scribble.protocol.designer/src/java/org/scribble/protocol/designer/osgi/Activator.java b/plugins/org.scribble.protocol.designer/src/java/org/scribble/protocol/designer/osgi/Activator.java index d7c0445..32f3a23 100644 --- a/plugins/org.scribble.protocol.designer/src/java/org/scribble/protocol/d...
false
true
public void start(final BundleContext context) throws Exception { super.start(context); plugin = this; // Make sure any bundles, associated with scribble, are started (excluding // the designer itself) Bundle[] bundles=context.getBundles(); for (int i=0; i < bundles.length; i++) { Bundle bundle=bundle...
public void start(final BundleContext context) throws Exception { super.start(context); plugin = this; // Make sure any bundles, associated with scribble, are started (excluding // the designer itself) Bundle[] bundles=context.getBundles(); for (int i=0; i < bundles.length; i++) { Bundle bundle=bundle...
diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java index 5e67e4d23..3b06c7207 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java +++ b/maven-core...
true
true
public void execute( MavenSession session ) { eventCatapult.fire( ExecutionEvent.Type.SessionStarted, session, null ); ReactorContext reactorContext = null; ProjectBuildList projectBuilds = null; MavenExecutionResult result = session.getResult(); try { ...
public void execute( MavenSession session ) { eventCatapult.fire( ExecutionEvent.Type.SessionStarted, session, null ); ReactorContext reactorContext = null; ProjectBuildList projectBuilds = null; MavenExecutionResult result = session.getResult(); try { ...
diff --git a/src/main/java/org/jboss/modcluster/mcmp/impl/DefaultMCMPHandler.java b/src/main/java/org/jboss/modcluster/mcmp/impl/DefaultMCMPHandler.java index dadbce97..4702834e 100644 --- a/src/main/java/org/jboss/modcluster/mcmp/impl/DefaultMCMPHandler.java +++ b/src/main/java/org/jboss/modcluster/mcmp/impl/DefaultMC...
false
true
private String sendRequest(MCMPRequest request, Proxy proxy) { // If there was an error, do nothing until the next periodic event, where the whole configuration // will be refreshed if (proxy.getState() != Proxy.State.OK) return null; if (log.isTraceEnabled()) { log.trace(S...
private String sendRequest(MCMPRequest request, Proxy proxy) { // If there was an error, do nothing until the next periodic event, where the whole configuration // will be refreshed if (proxy.getState() != Proxy.State.OK) return null; if (log.isTraceEnabled()) { log.trace(S...
diff --git a/src/openmap/com/bbn/openmap/omGraphics/util/ImageWarp.java b/src/openmap/com/bbn/openmap/omGraphics/util/ImageWarp.java index 61a740ce..6ec1d235 100644 --- a/src/openmap/com/bbn/openmap/omGraphics/util/ImageWarp.java +++ b/src/openmap/com/bbn/openmap/omGraphics/util/ImageWarp.java @@ -1,542 +1,542 @@ //**...
true
true
public int[] getImagePixels(Projection p) { if (pixels != null && p != null) { projectedImageBounds = calculateProjectedImageBounds(p); if (projectedImageBounds == null) { // image isn't on the map. return null; } int projHei...
public int[] getImagePixels(Projection p) { if (pixels != null && p != null) { projectedImageBounds = calculateProjectedImageBounds(p); if (projectedImageBounds == null) { // image isn't on the map. return null; } int projHei...
diff --git a/src/java/org/apache/cassandra/utils/IntervalTree.java b/src/java/org/apache/cassandra/utils/IntervalTree.java index 7ccc75f72..ec8e16620 100644 --- a/src/java/org/apache/cassandra/utils/IntervalTree.java +++ b/src/java/org/apache/cassandra/utils/IntervalTree.java @@ -1,458 +1,458 @@ /* * Licensed to the...
true
true
public IntervalNode(Collection<I> toBisect) { assert !toBisect.isEmpty(); logger.debug("Creating IntervalNode from {}", toBisect); // Building IntervalTree with one interval will be a reasonably // common case for range tombstones, so it's worth optimizin...
public IntervalNode(Collection<I> toBisect) { assert !toBisect.isEmpty(); logger.debug("Creating IntervalNode from {}", toBisect); // Building IntervalTree with one interval will be a reasonably // common case for range tombstones, so it's worth optimizin...
diff --git a/core/src/main/java/org/biojavax/bio/seq/SimpleRichLocation.java b/core/src/main/java/org/biojavax/bio/seq/SimpleRichLocation.java index d641e56..710eb29 100644 --- a/core/src/main/java/org/biojavax/bio/seq/SimpleRichLocation.java +++ b/core/src/main/java/org/biojavax/bio/seq/SimpleRichLocation.java @@ -1,7...
true
true
public SymbolList symbols(SymbolList seq) { if (seq==null) throw new IllegalArgumentException("Sequence cannot be null"); if (seq instanceof RichSequence) { RichSequence rs = (RichSequence)seq; if (this.getCircularLength()>0) { if (!rs.getCircular()) ...
public SymbolList symbols(SymbolList seq) { if (seq==null) throw new IllegalArgumentException("Sequence cannot be null"); if (seq instanceof RichSequence) { RichSequence rs = (RichSequence)seq; if (this.getCircularLength()>0) { if (!rs.getCircular()) ...
diff --git a/src/com/mareksebera/simpledilbert/DilbertFragment.java b/src/com/mareksebera/simpledilbert/DilbertFragment.java index a1f42b5..d9b650d 100644 --- a/src/com/mareksebera/simpledilbert/DilbertFragment.java +++ b/src/com/mareksebera/simpledilbert/DilbertFragment.java @@ -1,252 +1,254 @@ package com.marekseber...
false
true
public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case MENU_FAVORITE: preferences.toggleIsFavorited(getDateFromArguments()); modifyFavoriteItem(item); return true; case MENU_ZOOM: if (image != null && image.canZoom()) { switch (zoomLevel) { case 0: image.z...
public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case MENU_FAVORITE: preferences.toggleIsFavorited(getDateFromArguments()); modifyFavoriteItem(item); return true; case MENU_ZOOM: if (image != null && image.canZoom()) { int center_x = image.getWidth() / 2; int ...
diff --git a/src/replicatorg/app/ui/controlpanel/ExtruderPanel.java b/src/replicatorg/app/ui/controlpanel/ExtruderPanel.java index 716f4f09..1d48c743 100644 --- a/src/replicatorg/app/ui/controlpanel/ExtruderPanel.java +++ b/src/replicatorg/app/ui/controlpanel/ExtruderPanel.java @@ -1,661 +1,661 @@ package replicatorg....
true
true
public ExtruderPanel(MachineInterface machine, ToolModel t) { this.machine = machine; this.toolModel = t; Dimension panelSize = new Dimension(420, 30); extrudeTimePattern = Pattern.compile("([.0-9]+)"); // create our initial panel setLayout(new MigLayout()); // create our motor options if (t.has...
public ExtruderPanel(MachineInterface machine, ToolModel t) { this.machine = machine; this.toolModel = t; Dimension panelSize = new Dimension(420, 30); extrudeTimePattern = Pattern.compile("([.0-9]+)"); // create our initial panel setLayout(new MigLayout()); // create our motor options if (t.has...
diff --git a/src/org/rascalmpl/library/vis/util/KeySymTranslate.java b/src/org/rascalmpl/library/vis/util/KeySymTranslate.java index ad5f661cf5..00ef7b8f5f 100644 --- a/src/org/rascalmpl/library/vis/util/KeySymTranslate.java +++ b/src/org/rascalmpl/library/vis/util/KeySymTranslate.java @@ -1,121 +1,121 @@ package org....
false
true
public static Type unPrintableKeyName(KeyEvent e){ switch(e.keyCode){ case SWT.ALT: if(e.keyCode == SWT.LEFT) return KeySym_keyAltLeft; else return KeySym_keyAltRight; case SWT.ARROW_DOWN: return KeySym_keyArrowDown; case SWT.ARROW_LEFT: return KeySym_keyArrowLeft; case SWT.ARROW_RIGHT: return KeySym_...
public static Type unPrintableKeyName(KeyEvent e){ switch(e.keyCode){ case SWT.ALT: if(e.keyCode == SWT.LEFT) return KeySym_keyAltLeft; else return KeySym_keyAltRight; case SWT.ARROW_DOWN: return KeySym_keyArrowDown; case SWT.ARROW_LEFT: return KeySym_keyArrowLeft; case SWT.ARROW_RIGHT: return KeySym_...
diff --git a/src/main/java/com/concursive/connect/web/controller/servlets/LinkGenerator.java b/src/main/java/com/concursive/connect/web/controller/servlets/LinkGenerator.java index 9554f5d..48822c2 100644 --- a/src/main/java/com/concursive/connect/web/controller/servlets/LinkGenerator.java +++ b/src/main/java/com/concu...
true
true
public static String getItemLink(int linkModuleId, String linkItemId) { String itemLink = null; if (linkModuleId != -1) { if (linkModuleId == Constants.PROJECT_CLASSIFIEDS_FILES) { itemLink = "classified-ad/" + linkItemId; } else if (linkModuleId == Constants.PROJECT_BLOG_FILES) { ...
public static String getItemLink(int linkModuleId, String linkItemId) { String itemLink = null; if (linkModuleId != -1) { if (linkModuleId == Constants.PROJECT_CLASSIFIEDS_FILES) { itemLink = "classified-ad/" + linkItemId; } else if (linkModuleId == Constants.PROJECT_BLOG_FILES) { ...
diff --git a/src/com/ijuru/refract/activity/SettingsActivity.java b/src/com/ijuru/refract/activity/SettingsActivity.java index c00618d..65f2546 100644 --- a/src/com/ijuru/refract/activity/SettingsActivity.java +++ b/src/com/ijuru/refract/activity/SettingsActivity.java @@ -1,122 +1,122 @@ /** * Copyright 2011 Rowan S...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); iterFunctionPref = (ListPreference)getPreferenceScreen().findPreference("iterfunction"); iterFunctionPref.setOnPreferenceChangeListener(this); itersPerFramePref = (Edi...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); iterFunctionPref = (ListPreference)getPreferenceScreen().findPreference("iterfunction"); iterFunctionPref.setOnPreferenceChangeListener(this); itersPerFramePref = (Edi...
diff --git a/src/VASSAL/build/module/map/ImageSaver.java b/src/VASSAL/build/module/map/ImageSaver.java index 230cec77..83b410a5 100644 --- a/src/VASSAL/build/module/map/ImageSaver.java +++ b/src/VASSAL/build/module/map/ImageSaver.java @@ -1,553 +1,553 @@ /* * $Id$ * * Copyright (c) 2000-2010 by Rodney Kinney, Jo...
true
true
private void writeImage(final File f, BufferedImage img, Rectangle r) throws IOException { files.add(f); // make sure that we can write the file before proceeding if (f.exists()) { if (!f.canWrite()) { throw new IOExcept...
private void writeImage(final File f, BufferedImage img, Rectangle r) throws IOException { files.add(f); // make sure that we can write the file before proceeding if (f.exists()) { if (!f.canWrite()) { throw new IOExcept...
diff --git a/src/main/java/net/gravitydevelopment/anticheat/command/CommandHandler.java b/src/main/java/net/gravitydevelopment/anticheat/command/CommandHandler.java index 03ad189..5ca0a8b 100644 --- a/src/main/java/net/gravitydevelopment/anticheat/command/CommandHandler.java +++ b/src/main/java/net/gravitydevelopment/a...
false
true
public boolean onCommand(CommandSender cs, Command cmd, String alias, String[] args) { if (args.length >= 1) { String command = args[0]; // Shift args down String[] newArgs = new String[args.length-1]; for (int i=1;i<args.length;i++) { newArgs[...
public boolean onCommand(CommandSender cs, Command cmd, String alias, String[] args) { if (args.length >= 1) { String command = args[0]; // Shift args down String[] newArgs = new String[args.length-1]; for (int i=1;i<args.length;i++) { newArgs[...
diff --git a/src/edu/caltech/nanodb/commands/QueryCommand.java b/src/edu/caltech/nanodb/commands/QueryCommand.java index 24519e8..0aa9943 100755 --- a/src/edu/caltech/nanodb/commands/QueryCommand.java +++ b/src/edu/caltech/nanodb/commands/QueryCommand.java @@ -1,163 +1,168 @@ package edu.caltech.nanodb.commands; ...
true
true
public void execute() throws ExecutionException { try { prepareQueryPlan(); if (!explain) { // Debug: print out the plan and its costing details. logger.debug("Generated execution plan:\n" + PlanNode.printNodeTreeToString(plan,...
public void execute() throws ExecutionException { try { prepareQueryPlan(); if (!explain) { // Debug: print out the plan and its costing details. logger.debug("Generated execution plan:\n" + PlanNode.printNodeTreeToString(plan,...
diff --git a/sslr-tests/src/test/java/com/sonar/sslr/squid/checks/AbstractSingleLineCommentsSyntaxCheckTest.java b/sslr-tests/src/test/java/com/sonar/sslr/squid/checks/AbstractSingleLineCommentsSyntaxCheckTest.java index b275e9d5..21323c18 100644 --- a/sslr-tests/src/test/java/com/sonar/sslr/squid/checks/AbstractSingle...
true
true
public void singleLineCommentsSyntax() { setCurrentSourceFile(scanFile("/checks/single_line_comment_syntax.mc", new SingleLineCommentsSyntaxCheck())); assertNumberOfViolations(2); assertViolation().atLine(1).withMessage("This single line comment should use the single line comment syntax \"//\""); as...
public void singleLineCommentsSyntax() { setCurrentSourceFile(scanFile("/checks/single_line_comments_syntax.mc", new SingleLineCommentsSyntaxCheck())); assertNumberOfViolations(2); assertViolation().atLine(1).withMessage("This single line comment should use the single line comment syntax \"//\""); a...
diff --git a/temp2/CA/src/DM.java b/temp2/CA/src/DM.java index 9b6ee15..48227ff 100644 --- a/temp2/CA/src/DM.java +++ b/temp2/CA/src/DM.java @@ -1,33 +1,33 @@ import java.util.ArrayList; public class DM { ArrayList<String> memory = new ArrayList<String>(); ArrayList<String> index = new ArrayList<String>(); p...
false
true
public void writeData(String address, String data){ long temp = 0; String binaryValue = ""; index.add(address); memory.add(data.substring(0, 7)); temp = Long.parseLong(address,2)+1; binaryValue = Long.toBinaryString(temp); index.add(binaryValue); memory.add(data.substring(8, 15)); temp = Long.pars...
public void writeData(String address, String data){ long temp = 0; String binaryValue = ""; index.add(address); memory.add(data.substring(0, 8)); temp = Long.parseLong(address,2)+1; binaryValue = Long.toBinaryString(temp); index.add(binaryValue); memory.add(data.substring(8, 16)); temp = Long.pars...
diff --git a/scjp/operators/Tricky.java b/scjp/operators/Tricky.java index 025192d..45427f5 100644 --- a/scjp/operators/Tricky.java +++ b/scjp/operators/Tricky.java @@ -1,14 +1,14 @@ public class Tricky { public static void main (String[] args) { int x = 1; if( (4 > x) ^ // true, x = 1 - ((++x + 2) > 3)) ...
false
true
public static void main (String[] args) { int x = 1; if( (4 > x) ^ // true, x = 1 ((++x + 2) > 3)) // true, x = 3 x++; // does not execute, fails XOR if( (4 > ++x) ^ // false, x = 4 !(++x == 5)) // false, x = 5 but !(expression) reserves the previous value of x x++; // does not exec...
public static void main (String[] args) { int x = 1; if( (4 > x) ^ // true, x = 1 ((++x + 2) > 3)) // true, x = 2 x++; // does not execute, fails XOR if( (4 > ++x) ^ // true, x = 3 !(++x == 5)) // true, x = 4 x++; // does not execute, fails XOR System.out.println(x); // pri...
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/blocks/LeftCurlyCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/blocks/LeftCurlyCheck.java index 042ef7173..82103a67c 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/blocks/LeftCurlyCheck.java +++ b/src/checkstyle/c...
true
true
public void visitToken(DetailAST aAST) { final DetailAST startToken; final DetailAST brace; switch (aAST.getType()) { case TokenTypes.CTOR_DEF : case TokenTypes.METHOD_DEF : startToken = aAST; brace = aAST.findFirstToken(TokenTypes.SLIST); ...
public void visitToken(DetailAST aAST) { final DetailAST startToken; final DetailAST brace; switch (aAST.getType()) { case TokenTypes.CTOR_DEF : case TokenTypes.METHOD_DEF : startToken = aAST; brace = aAST.findFirstToken(TokenTypes.SLIST); ...
diff --git a/src/org/devtcg/five/util/ThreadStoppable.java b/src/org/devtcg/five/util/ThreadStoppable.java index ddc748c..2ea3918 100644 --- a/src/org/devtcg/five/util/ThreadStoppable.java +++ b/src/org/devtcg/five/util/ThreadStoppable.java @@ -1,57 +1,57 @@ /* * $Id$ * * Copyright (C) 2008 Josh Guilfoyle <jasta...
true
true
public void interruptAndStop() { mStopped = true; interrupt(); while (true) { try { join(); } catch (InterruptedException e) { } } }
public void interruptAndStop() { mStopped = true; interrupt(); while (true) { try { join(); break; } catch (InterruptedException e) { } } }
diff --git a/xstream/src/test/com/thoughtworks/acceptance/PersistenceTest.java b/xstream/src/test/com/thoughtworks/acceptance/PersistenceTest.java index 0a1d56f1..0dda549f 100644 --- a/xstream/src/test/com/thoughtworks/acceptance/PersistenceTest.java +++ b/xstream/src/test/com/thoughtworks/acceptance/PersistenceTest.ja...
true
true
public void testCanUsePersistenceCollectionAsConverter() throws IOException { xstream.alias("lists", SampleLists.class); xstream.alias("software", Software.class); xstream.registerLocalConverter(SampleLists.class, "good", new PersistenceArrayListConverter()); SampleLists lis...
public void testCanUsePersistenceCollectionAsConverter() throws IOException { xstream.alias("lists", SampleLists.class); xstream.alias("software", Software.class); xstream.registerLocalConverter(SampleLists.class, "good", new PersistenceArrayListConverter()); SampleLists lis...
diff --git a/xcmis-spi/src/main/java/org/xcmis/spi/utils/CmisDocumentReaderService.java b/xcmis-spi/src/main/java/org/xcmis/spi/utils/CmisDocumentReaderService.java index e3336e65..68d47d21 100644 --- a/xcmis-spi/src/main/java/org/xcmis/spi/utils/CmisDocumentReaderService.java +++ b/xcmis-spi/src/main/java/org/xcmis/sp...
true
true
public CmisDocumentReaderService() { this.readers = new HashMap<String, BaseDocumentReader>(); addDocumentReader(new CmisPDFDocumentReader()); addDocumentReader(new MSWordDocumentReader()); addDocumentReader(new MSExcelDocumentReader()); addDocumentReader(new MSOutlookDocumentReader(...
public CmisDocumentReaderService() { this.readers = new HashMap<String, BaseDocumentReader>(); addDocumentReader(new CmisPDFDocumentReader()); addDocumentReader(new MSWordDocumentReader()); addDocumentReader(new MSExcelDocumentReader()); addDocumentReader(new MSOutlookDocumentReader(...
diff --git a/src/com/stackframe/pattymelt/Console.java b/src/com/stackframe/pattymelt/Console.java index 8c74834..c32f863 100644 --- a/src/com/stackframe/pattymelt/Console.java +++ b/src/com/stackframe/pattymelt/Console.java @@ -1,67 +1,67 @@ /* * Copyright 2012, Gene McCulley * All rights reserved. * * Redist...
true
true
public void update() { StringBuilder buf = new StringBuilder(); for (int i = 0; i < grid; i++) { short word = memory[address + i]; char c = (char) (word & 0xff); buf.append(c); } textArea.setText(buf.toString()); }
public void update() { StringBuilder buf = new StringBuilder(); for (int i = 0; i < grid; i++) { short word = memory[address + i]; char c = (char) (word & 0x7f); buf.append(c); } textArea.setText(buf.toString()); }
diff --git a/ui/isometric/builder/BuilderInterface.java b/ui/isometric/builder/BuilderInterface.java index e23208e..2c368db 100644 --- a/ui/isometric/builder/BuilderInterface.java +++ b/ui/isometric/builder/BuilderInterface.java @@ -1,528 +1,527 @@ package ui.isometric.builder; import java.awt.BorderLayout; import...
true
true
public BuilderInterface(String name, final GameWorld world, ClientMessageHandler logic) { this.world = world; this.frameName = name; dataSource = new IsoChangeLevelDataSource(this.world); frame = new JFrame(name); JMenuBar bar = new JMenuBar(); JMenu file = new JMenu("File"); JMenuItem save = ne...
public BuilderInterface(String name, final GameWorld world, ClientMessageHandler logic) { this.world = world; this.frameName = name; dataSource = new IsoChangeLevelDataSource(this.world); frame = new JFrame(name); JMenuBar bar = new JMenuBar(); JMenu file = new JMenu("File"); JMenuItem save = ne...
diff --git a/org.dawb.passerelle.actors/src/org/dawb/passerelle/actors/data/DataImportSource.java b/org.dawb.passerelle.actors/src/org/dawb/passerelle/actors/data/DataImportSource.java index a43bb8c..3708faf 100644 --- a/org.dawb.passerelle.actors/src/org/dawb/passerelle/actors/data/DataImportSource.java +++ b/org.dawb...
true
true
protected DataImportSource(CompositeEntity container, String name, boolean isFolder) throws IllegalActionException, NameDuplicationException { super(container, ModelUtils.findUniqueActorName(container, ModelUtils.getLegalName(name))); relativePathParam = new Parameter(this, "Relative Path", new BooleanToken(...
protected DataImportSource(CompositeEntity container, String name, boolean isFolder) throws IllegalActionException, NameDuplicationException { super(container, ModelUtils.findUniqueActorName(container, ModelUtils.getLegalName(name))); relativePathParam = new Parameter(this, "Relative Path", new BooleanToken(...