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/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/widgets/presenter/TableListPresenter.java b/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/widgets/presenter/TableListPresenter.java index 410c69341..35060f0c5 100644 --- a/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/...
false
true
private void addEventHandlers() { super.registerHandler(eventBus.addHandler(TableSelectionEvent.getType(), new TableSelectionEvent.Handler() { @Override public void onTableSelection(TableSelectionEvent event) { if(TableListPresenter.this.equals(event.getCallSource())) { for(TableDto...
private void addEventHandlers() { super.registerHandler(eventBus.addHandler(TableSelectionEvent.getType(), new TableSelectionEvent.Handler() { @Override public void onTableSelection(TableSelectionEvent event) { if(TableListPresenter.this.equals(event.getCallSource())) { for(TableDto...
diff --git a/core/src/main/java/org/mobicents/cluster/DefaultMobicentsCluster.java b/core/src/main/java/org/mobicents/cluster/DefaultMobicentsCluster.java index abdefe8..bead26f 100644 --- a/core/src/main/java/org/mobicents/cluster/DefaultMobicentsCluster.java +++ b/core/src/main/java/org/mobicents/cluster/DefaultMobic...
false
true
private void performTakeOver(FailOverListener localListener, Address lostMember, Address localAddress, boolean useLocalListenerElector) { if (logger.isDebugEnabled()) { logger.debug("onViewChangeEvent : failing over lost member " + lostMember); } final Cache jbossCache = mobicentsCache.getJBossCache(); ...
private void performTakeOver(FailOverListener localListener, Address lostMember, Address localAddress, boolean useLocalListenerElector) { if (logger.isDebugEnabled()) { logger.debug("onViewChangeEvent : failing over lost member " + lostMember); } final Cache jbossCache = mobicentsCache.getJBossCache(); ...
diff --git a/src/be/alfredo/colruyt/MainActivity.java b/src/be/alfredo/colruyt/MainActivity.java index 4871c39..f6f2686 100644 --- a/src/be/alfredo/colruyt/MainActivity.java +++ b/src/be/alfredo/colruyt/MainActivity.java @@ -1,134 +1,134 @@ package be.alfredo.colruyt; import android.app.Activity; import android.co...
true
true
protected void takePictureHandler(View view) { if (isIntentAvailable(this, MediaStore.ACTION_VIDEO_CAPTURE)) { Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); File f = null; try { f = setUpPhotoFile(); ...
public void takePictureHandler(View view) { if (isIntentAvailable(this, MediaStore.ACTION_VIDEO_CAPTURE)) { Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); File f = null; try { f = setUpPhotoFile(); ...
diff --git a/src/com/amplafi/android/MessagesListActivity.java b/src/com/amplafi/android/MessagesListActivity.java index 43a5cc9..464eed0 100644 --- a/src/com/amplafi/android/MessagesListActivity.java +++ b/src/com/amplafi/android/MessagesListActivity.java @@ -1,166 +1,168 @@ package com.amplafi.android; import sta...
true
true
protected void onResume() { super.onResume(); if (isLoginNeeded()) { startActivityForResult(new Intent(this, AuthActivity.class), GET_AUTH); } else { new MessageListRequestTask(getFlowServerURI(this), clientId.toString(), getIntent().getStringExtra(flow.toString())) { private ProgressDialog dialog...
protected void onResume() { super.onResume(); if (isLoginNeeded()) { startActivityForResult(new Intent(this, AuthActivity.class), GET_AUTH); } else { new MessageListRequestTask(getFlowServerURI(this), clientId.toString(), getIntent().getStringExtra(flow.toString())) { private ProgressDialog dialog...
diff --git a/sub/source/net/sourceforge/texlipse/builder/LatexRunner.java b/sub/source/net/sourceforge/texlipse/builder/LatexRunner.java index d612fea..b969451 100644 --- a/sub/source/net/sourceforge/texlipse/builder/LatexRunner.java +++ b/sub/source/net/sourceforge/texlipse/builder/LatexRunner.java @@ -1,345 +1,345 @@...
false
true
protected boolean parseErrors(IResource resource, String output) { TexlipseProperties.setSessionProperty(resource.getProject(), TexlipseProperties.SESSION_LATEX_RERUN, null); TexlipseProperties.setSessionProperty(resource.getProject(), TexlipseProperties.SESSION_BIBTEX_RERUN, null); ...
protected boolean parseErrors(IResource resource, String output) { TexlipseProperties.setSessionProperty(resource.getProject(), TexlipseProperties.SESSION_LATEX_RERUN, null); TexlipseProperties.setSessionProperty(resource.getProject(), TexlipseProperties.SESSION_BIBTEX_RERUN, null); ...
diff --git a/src/org/dylanfoundry/deft/filetypes/dylan/DylanParserUtil.java b/src/org/dylanfoundry/deft/filetypes/dylan/DylanParserUtil.java index aa6f9e2..b256fd4 100644 --- a/src/org/dylanfoundry/deft/filetypes/dylan/DylanParserUtil.java +++ b/src/org/dylanfoundry/deft/filetypes/dylan/DylanParserUtil.java @@ -1,61 +1...
true
true
public static boolean clauseOption(PsiBuilder builder, int level) { String tokenText = builder.getTokenText(); final String lowercaseTokenText = tokenText.toLowerCase(); if ("import:".equals(lowercaseTokenText)) { return DylanParser.import_option(builder, level); } else if ("exclude:".equals(low...
public static boolean clauseOption(PsiBuilder builder, int level) { String tokenText = builder.getTokenText(); final String lowercaseTokenText = tokenText.toLowerCase(); if ("import:".equals(lowercaseTokenText)) { return DylanParser.import_option(builder, level); } else if ("exclude:".equals(low...
diff --git a/wordcount/src/IntIntSumReducer.java b/wordcount/src/IntIntSumReducer.java index 0e3b953..e334c8d 100644 --- a/wordcount/src/IntIntSumReducer.java +++ b/wordcount/src/IntIntSumReducer.java @@ -1,21 +1,21 @@ import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.mapreduce.Reducer; public clas...
true
true
protected void reduce(IntWritable key, Iterable<IntWritable> values, Context ctx) throws java.io.IOException, InterruptedException { int i = 0; for(IntWritable value: values){ i++; } count.set(i); ctx.write(key,count); };
protected void reduce(IntWritable key, Iterable<IntWritable> values, Context ctx) throws java.io.IOException, InterruptedException { int i = 0; for(IntWritable value: values){ i+=value.get(); } count.set(i); ctx.write(key,count); };
diff --git a/src/test/cli/cloudify/cloud/KillManagementTest.java b/src/test/cli/cloudify/cloud/KillManagementTest.java index 92aa75a4..db939a22 100644 --- a/src/test/cli/cloudify/cloud/KillManagementTest.java +++ b/src/test/cli/cloudify/cloud/KillManagementTest.java @@ -1,198 +1,198 @@ package test.cli.cloudify.cloud;...
true
true
public void testPetclinic() throws Exception { LogUtils.log("installing application petclinic on " + cloudName); installApplicationAndWait(ScriptUtils.getBuildPath() + "/examples/petclinic", "petclinic"); Future<Void> ping = threadPool.submit(new Callable<Void>(){ @Override public Void call() throws Excep...
public void testPetclinic() throws Exception { LogUtils.log("installing application petclinic on " + cloudName); installApplicationAndWait(ScriptUtils.getBuildPath() + "/recipes/apps/petclinic", "petclinic"); Future<Void> ping = threadPool.submit(new Callable<Void>(){ @Override public Void call() throws E...
diff --git a/FuzzyMiningLab/src/ve/com/fml/view/EditDataWindow.java b/FuzzyMiningLab/src/ve/com/fml/view/EditDataWindow.java index ed72bce..9a68703 100644 --- a/FuzzyMiningLab/src/ve/com/fml/view/EditDataWindow.java +++ b/FuzzyMiningLab/src/ve/com/fml/view/EditDataWindow.java @@ -1,340 +1,343 @@ package ve.com.fml.vie...
true
true
private void initComponents() { setTitle("Configuraci�n de datos"); jSeparator1 = new javax.swing.JSeparator(); normalizeButton = new javax.swing.JButton(); jLabel3 = new javax.swing.JLabel(); replaceLabel = new javax.swing.JLabel(); replaceButton = new javax.swing.JButton(); jSeparator2 = new javax.sw...
private void initComponents() { setTitle("Configuraci�n de datos"); jSeparator1 = new javax.swing.JSeparator(); normalizeButton = new javax.swing.JButton(); jLabel3 = new javax.swing.JLabel(); replaceLabel = new javax.swing.JLabel(); replaceButton = new javax.swing.JButton(); jSeparator2 = new javax.sw...
diff --git a/src/main/java/com/jayway/maven/plugins/android/phase04processclasses/DexMojo.java b/src/main/java/com/jayway/maven/plugins/android/phase04processclasses/DexMojo.java index 2ce3f829..911340f3 100644 --- a/src/main/java/com/jayway/maven/plugins/android/phase04processclasses/DexMojo.java +++ b/src/main/java/c...
false
true
public void execute() throws MojoExecutionException, MojoFailureException { CommandExecutor executor = CommandExecutor.Factory.createDefaultCommmandExecutor(); executor.setLogger(this.getLog()); File outputFile = new File(project.getBuild().getDirectory() + File.separator + "classes.dex");...
public void execute() throws MojoExecutionException, MojoFailureException { CommandExecutor executor = CommandExecutor.Factory.createDefaultCommmandExecutor(); executor.setLogger(this.getLog()); File outputFile = new File(project.getBuild().getDirectory() + File.separator + "classes.dex");...
diff --git a/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/Logger.java b/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/Logger.java index cad5dd3d5..f826867a1 100644 --- a/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/Logger.java +++ b/bundles/or...
false
true
private static void _log(int level, String message, Throwable exception) { if (level == OK_DEBUG || level == INFO_DEBUG || level == WARNING_DEBUG || level == ERROR_DEBUG) { if (!isDebugging()) return; } message = (message != null) ? message : ""; //$NON-NLS-1$ Status statusObj = new Status(level, PLUGIN...
private static void _log(int level, String message, Throwable exception) { if (level == OK_DEBUG || level == INFO_DEBUG || level == WARNING_DEBUG || level == ERROR_DEBUG) { if (!isDebugging()) return; } int severity = IStatus.OK; switch (level) { case INFO_DEBUG : case INFO : severity = IStatu...
diff --git a/src/com/skyost/jail/tasks/ReleasePlayer.java b/src/com/skyost/jail/tasks/ReleasePlayer.java index 8419033..c5918a6 100644 --- a/src/com/skyost/jail/tasks/ReleasePlayer.java +++ b/src/com/skyost/jail/tasks/ReleasePlayer.java @@ -1,33 +1,35 @@ package com.skyost.jail.tasks; import org.bukkit.Bukkit; imp...
false
true
public void run() { Player player = Bukkit.getPlayer(playername); try { BukkitJail.getBukkitJailConfig().JailedPlayers.remove(playername); BukkitJail.getBukkitJailConfig().save(); if(player != null && player.isOnline()) { player.teleport(Utils.getMainWorld().getSpawnLocation()); player.sendMessage...
public void run() { Player player = Bukkit.getPlayer(playername); if(BukkitJail.isJailed(player)) { try { BukkitJail.getBukkitJailConfig().JailedPlayers.remove(playername); BukkitJail.getBukkitJailConfig().save(); if(player != null && player.isOnline()) { player.teleport(Utils.getMainWorld().ge...
diff --git a/gson/src/main/java/com/google/gson/FieldAttributes.java b/gson/src/main/java/com/google/gson/FieldAttributes.java index b69ebf92..0aa47511 100644 --- a/gson/src/main/java/com/google/gson/FieldAttributes.java +++ b/gson/src/main/java/com/google/gson/FieldAttributes.java @@ -1,255 +1,256 @@ /* * Copyright...
false
true
public Collection<Annotation> getAnnotations() { if (annotations == null) { Pair<Class<?>, String> key = new Pair<Class<?>, String>(declaringClazz, name); annotations = ANNOTATION_CACHE.getElement(key); if (annotations == null) { annotations = Collections.unmodifiableCollection( ...
public Collection<Annotation> getAnnotations() { if (annotations == null) { Pair<Class<?>, String> key = new Pair<Class<?>, String>(declaringClazz, name); Collection<Annotation> cachedValue = ANNOTATION_CACHE.getElement(key); if (cachedValue == null) { cachedValue = Collections.unmodifia...
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/mapping/GitChangeSetSorter.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/mapping/GitChangeSetSorter.java index 082e7423..c7336bf0 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/mapping/...
true
true
public int compare(Viewer viewer, Object e1, Object e2) { if (e1 instanceof GitModelBlob && !(e2 instanceof GitModelBlob)) return 1; if (e2 instanceof GitModelBlob && !(e1 instanceof GitModelBlob)) return -1; if (e1 instanceof GitModelWorkingTree) return -1; if (e2 instanceof GitModelWorkingTree) ...
public int compare(Viewer viewer, Object e1, Object e2) { if (e1 instanceof GitModelBlob && !(e2 instanceof GitModelBlob)) return 1; if (e2 instanceof GitModelBlob && !(e1 instanceof GitModelBlob)) return -1; if (e1 instanceof GitModelWorkingTree) return -1; if (e2 instanceof GitModelWorkingTree) ...
diff --git a/src/com/jpii/navalbattle/pavo/GameWindow.java b/src/com/jpii/navalbattle/pavo/GameWindow.java index 6a670599..b30de44b 100644 --- a/src/com/jpii/navalbattle/pavo/GameWindow.java +++ b/src/com/jpii/navalbattle/pavo/GameWindow.java @@ -1,139 +1,139 @@ /** * */ package com.jpii.navalbattle.pavo; imp...
false
true
public void render() { buffer = new BufferedImage(getWidth()+1,getHeight()+1,BufferedImage.TYPE_INT_ARGB); Graphics2D g = PavoHelper.createGraphics(buffer); g.setColor(Color.black); g.drawRect(0,0,getWidth(),getHeight()); g.setColor(getBackgroundColor()); g.fillRect(1,1,getWidth()-2,getHeight()-2); if (i...
public void render() { buffer = new BufferedImage(getWidth()+1,getHeight()+1,BufferedImage.TYPE_INT_ARGB); Graphics2D g = PavoHelper.createGraphics(buffer); g.setColor(Color.black); g.drawRect(0,0,getWidth()-1,getHeight()-1); g.setColor(getBackgroundColor()); g.fillRect(1,1,getWidth()-2,getHeight()-2); i...
diff --git a/src/ProjectControl/src/org/cvut/wa2/projectcontrol/AddDocumentsServlet.java b/src/ProjectControl/src/org/cvut/wa2/projectcontrol/AddDocumentsServlet.java index 5483ddb..b234895 100644 --- a/src/ProjectControl/src/org/cvut/wa2/projectcontrol/AddDocumentsServlet.java +++ b/src/ProjectControl/src/org/cvut/wa2...
false
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { UserService userService = UserServiceFactory.getUserService(); RequestDispatcher disp = null; if (userService.isUserLoggedIn()) { User user = userService.getCurrentUser(); PersistenceManager pm ...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { UserService userService = UserServiceFactory.getUserService(); RequestDispatcher disp = null; if (userService.isUserLoggedIn()) { User user = userService.getCurrentUser(); PersistenceManager pm ...
diff --git a/src/minecraft/org/getspout/spout/gui/controls/GuiControlSlot.java b/src/minecraft/org/getspout/spout/gui/controls/GuiControlSlot.java index 3d42d083..381d7af4 100644 --- a/src/minecraft/org/getspout/spout/gui/controls/GuiControlSlot.java +++ b/src/minecraft/org/getspout/spout/gui/controls/GuiControlSlot.ja...
true
true
protected void drawSlot(int var1, int var2, int var3, int var4, Tessellator var5) { KeyBinding item = bindings.get(var1); String name = item.getDescription(); String key = "Key: "+Keyboard.getKeyName(item.getKey()); if(isSelectedNew){ key = "> ??? <"; } FontRenderer font = SpoutClient.getHandle().fontRe...
protected void drawSlot(int var1, int var2, int var3, int var4, Tessellator var5) { KeyBinding item = bindings.get(var1); String name = item.getDescription(); String key = "Key: "+Keyboard.getKeyName(item.getKey()); if(isSelectedNew && var1 == selectedBinding){ key = "> ??? <"; } FontRenderer font = Spo...
diff --git a/core/src/main/java/org/springframework/security/config/RememberMeBeanDefinitionParser.java b/core/src/main/java/org/springframework/security/config/RememberMeBeanDefinitionParser.java index a590da531..80768d921 100644 --- a/core/src/main/java/org/springframework/security/config/RememberMeBeanDefinitionPars...
true
true
public BeanDefinition parse(Element element, ParserContext parserContext) { String tokenRepository = null; String dataSource = null; String key = null; Object source = null; String userServiceRef = null; String rememberMeServicesRef = null; String tokenValidit...
public BeanDefinition parse(Element element, ParserContext parserContext) { String tokenRepository = null; String dataSource = null; String key = null; Object source = null; String userServiceRef = null; String rememberMeServicesRef = null; String tokenValidit...
diff --git a/TKC/util/ControllerUI.java b/TKC/util/ControllerUI.java index 9015350..119b747 100644 --- a/TKC/util/ControllerUI.java +++ b/TKC/util/ControllerUI.java @@ -1,422 +1,422 @@ package TKC.util; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border....
true
true
public ControllerUI(TrackController paramtkc) { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Throwable e) { e.printStackTrace(); } //Create and set up the window. JFrame frame = new JFrame("Track Controller - UI"); frame.setDefaultCloseOperatio...
public ControllerUI(TrackController paramtkc) { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Throwable e) { e.printStackTrace(); } //Create and set up the window. JFrame frame = new JFrame("Track Controller - UI"); frame.setDefaultCloseOperatio...
diff --git a/server/src/main/java/ru/vkirilchuk/examples/spring/hessian/server/ScriptServiceImpl.java b/server/src/main/java/ru/vkirilchuk/examples/spring/hessian/server/ScriptServiceImpl.java index f1f8303..f0162b9 100644 --- a/server/src/main/java/ru/vkirilchuk/examples/spring/hessian/server/ScriptServiceImpl.java ++...
true
true
public Object execute(ScriptDTO script) throws ScriptException { String type = script.getType(); String text = script.getText(); ScriptEngine engine =scriptEngineFactory.getEngineByName(type); return engine.eval(text); }
public Object execute(ScriptDTO script) throws ScriptException { String type = script.getType(); String text = script.getText(); ScriptEngine engine = scriptEngineFactory.getEngineByName(type); return engine.eval(text); }
diff --git a/src/com/cyanogenmod/trebuchet/Workspace.java b/src/com/cyanogenmod/trebuchet/Workspace.java index 5f163f2d..41630ce0 100644 --- a/src/com/cyanogenmod/trebuchet/Workspace.java +++ b/src/com/cyanogenmod/trebuchet/Workspace.java @@ -1,3699 +1,3699 @@ /* * Copyright (C) 2008 The Android Open Source Project ...
false
true
void changeState(final State state, boolean animated, int delay) { if (mState == state) { return; } if (mFirstLayout) { // (mFirstLayout == "first layout has not happened yet") // cancel any pending shrinks that were set earlier mSwitchStateAft...
void changeState(final State state, boolean animated, int delay) { if (mState == state) { return; } if (mFirstLayout) { // (mFirstLayout == "first layout has not happened yet") // cancel any pending shrinks that were set earlier mSwitchStateAft...
diff --git a/src/minecraft/zensiert1997/realphysics/core/item/GearData.java b/src/minecraft/zensiert1997/realphysics/core/item/GearData.java index f73c182..7db089a 100644 --- a/src/minecraft/zensiert1997/realphysics/core/item/GearData.java +++ b/src/minecraft/zensiert1997/realphysics/core/item/GearData.java @@ -1,144 +...
true
true
public BoundingBox getBoundingBox() { float minX, maxX, minY, maxY, minZ, maxZ; if(axis == EnumAxis.Y) { minX = Math.max((0.5f+xCoord)-radiusOuterCircle, 0); maxX = Math.min((0.5f+xCoord)+radiusOuterCircle, 1); minY = Math.max((0.5f+yCoord)-RenderGear.halfGearThickness, 0); maxY = Math.min((0.5f+yCoord...
public BoundingBox getBoundingBox() { float minX, maxX, minY, maxY, minZ, maxZ; if(axis == EnumAxis.Y) { minX = Math.max((0.5f+xCoord)-radiusOuterCircle, 0); maxX = Math.min((0.5f+xCoord)+radiusOuterCircle, 1); minY = Math.max((0.5f+yCoord)-RenderGear.halfGearThickness, 0); maxY = Math.min((0.5f+yCoord...
diff --git a/src/com/android/contacts/interactions/ImportExportDialogFragment.java b/src/com/android/contacts/interactions/ImportExportDialogFragment.java index 078f63e10..e0b617ccb 100644 --- a/src/com/android/contacts/interactions/ImportExportDialogFragment.java +++ b/src/com/android/contacts/interactions/ImportExpor...
false
true
public Dialog onCreateDialog(Bundle savedInstanceState) { // Wrap our context to inflate list items using the correct theme final Resources res = getActivity().getResources(); final LayoutInflater dialogInflater = (LayoutInflater)getActivity() .getSystemService(Context.LAYOUT...
public Dialog onCreateDialog(Bundle savedInstanceState) { // Wrap our context to inflate list items using the correct theme final Resources res = getActivity().getResources(); final LayoutInflater dialogInflater = (LayoutInflater)getActivity() .getSystemService(Context.LAYOUT...
diff --git a/src/org/nc/engine/Button.java b/src/org/nc/engine/Button.java index a2c2bf5..b5bfe75 100644 --- a/src/org/nc/engine/Button.java +++ b/src/org/nc/engine/Button.java @@ -1,47 +1,47 @@ package org.nc.engine; import java.awt.font.FontRenderContext; import java.awt.geom.AffineTransform; import org.nc.en...
true
true
public Button(String buttonLoc, int x, int y, Game game, int Width, int Height, Input input, String text) { this.x = x; this.y = y; this.width = 250; this.height = 70; this.game = game; this.input = input; this.text = text; this.buttonLoc = buttonLoc; }
public Button(String buttonLoc, int x, int y, Game game, int Width, int Height, Input input, String text) { this.x = x; this.y = y; this.width = Width; this.height = Height; this.game = game; this.input = input; this.text = text; this.buttonLoc = buttonLoc; }
diff --git a/src/qa/qcri/qnoise/external/TQnoiseSpecConverter.java b/src/qa/qcri/qnoise/external/TQnoiseSpecConverter.java index 7d0004d..f8c6c3a 100644 --- a/src/qa/qcri/qnoise/external/TQnoiseSpecConverter.java +++ b/src/qa/qcri/qnoise/external/TQnoiseSpecConverter.java @@ -1,89 +1,90 @@ /* * Copyright (c) Qatar C...
true
true
public static NoiseSpec convert(TQnoiseSpec spec) { NoiseSpec result = new NoiseSpec(); result.noiseType = TNoiseTypeConverter.convert(spec.getNoiseType()); result.percentage = spec.getPercentage(); result.model = TNoiseModelConverter.convert(spec.getModel()); if (spec.isSet...
public static NoiseSpec convert(TQnoiseSpec spec) { NoiseSpec result = new NoiseSpec(); result.noiseType = TNoiseTypeConverter.convert(spec.getNoiseType()); result.percentage = spec.getPercentage(); result.model = TNoiseModelConverter.convert(spec.getModel()); if (spec.isSet...
diff --git a/src/haven/ConsoleHost.java b/src/haven/ConsoleHost.java index f1286da..3d88967 100644 --- a/src/haven/ConsoleHost.java +++ b/src/haven/ConsoleHost.java @@ -1,130 +1,131 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and * ...
false
true
public void key(char c, int code, int mod) { if(c == 27) { cancel(); } else if((c == 8) && (mod == 0) && (line.length() == 0) && (point == 0)) { cancel(); } else if(code == KeyEvent.VK_UP) { if(hpos > 0) { if(hpos == history.size()) hcurrent = line; cmdline = new CommandLine(history...
public boolean key(char c, int code, int mod) { if(c == 27) { cancel(); } else if((c == 8) && (mod == 0) && (line.length() == 0) && (point == 0)) { cancel(); } else if(code == KeyEvent.VK_UP) { if(hpos > 0) { if(hpos == history.size()) hcurrent = line; cmdline = new CommandLine(hist...
diff --git a/BFRC-Run/src/bfrc/TestMain.java b/BFRC-Run/src/bfrc/TestMain.java index 1ca1482..757ed48 100644 --- a/BFRC-Run/src/bfrc/TestMain.java +++ b/BFRC-Run/src/bfrc/TestMain.java @@ -1,35 +1,40 @@ package bfrc; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.Write...
false
true
public static void main(String[] args) throws IOException { String src = ">+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-]<.>+++++++++++[<+++++>-]<.>++++++++[<+++>-]<.+++.------.--------.[-]>++++++++[<++++>-]<+.[-]++++++++++."; File srcFile = createTempFile(src); String[] backend...
public static void main(String[] args) throws Exception { String src = ">+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-]<.>+++++++++++[<+++++>-]<.>++++++++[<+++>-]<.+++.------.--------.[-]>++++++++[<++++>-]<+.[-]++++++++++."; File srcFile = createTempFile(src); String[] backends ...
diff --git a/org.spoofax.interpreter.library.jsglr/src/main/java/org/spoofax/interpreter/library/jsglr/STRSGLR_open_parse_table.java b/org.spoofax.interpreter.library.jsglr/src/main/java/org/spoofax/interpreter/library/jsglr/STRSGLR_open_parse_table.java index ad1714b9..72533c58 100644 --- a/org.spoofax.interpreter.lib...
true
true
public boolean call(IContext env, Strategy[] svars, IStrategoTerm[] tvars) throws InterpreterException { Map<IStrategoTerm, IStrategoInt> cache = getLibrary(env).getParseTableCache(); IStrategoInt cached = cache.get(tvars[0]); if (cached != null) { env.setCurrent(cached); if(!cache.cont...
public boolean call(IContext env, Strategy[] svars, IStrategoTerm[] tvars) throws InterpreterException { Map<IStrategoTerm, IStrategoInt> cache = getLibrary(env).getParseTableCache(); IStrategoInt cached = cache.get(tvars[0]); if (cached != null) { env.setCurrent(cached); if(!cache.cont...
diff --git a/incubator/org.restlet.ext.sip/src/org/restlet/ext/sip/example/B2buaApplication.java b/incubator/org.restlet.ext.sip/src/org/restlet/ext/sip/example/B2buaApplication.java index c144b1666..da267e189 100644 --- a/incubator/org.restlet.ext.sip/src/org/restlet/ext/sip/example/B2buaApplication.java +++ b/incubat...
true
true
protected void serverRedirect(Restlet next, Reference targetRef, final Request request, final Response response) { // Save the base URI if it exists as we might need it for // redirections final Reference resourceRef = request.getResourceRef(); fin...
protected void serverRedirect(Restlet next, Reference targetRef, final Request request, final Response response) { // Save the base URI if it exists as we might need it for // redirections final Reference resourceRef = request.getResourceRef(); fin...
diff --git a/src/smarthouse/autoswitchagent/AutoSwitchSubscribeBehaviour.java b/src/smarthouse/autoswitchagent/AutoSwitchSubscribeBehaviour.java index 00f4528..ac50ca2 100644 --- a/src/smarthouse/autoswitchagent/AutoSwitchSubscribeBehaviour.java +++ b/src/smarthouse/autoswitchagent/AutoSwitchSubscribeBehaviour.java @@ ...
true
true
public void action() { System.out.println("ON DEMARRE"); MessageTemplate template = MessageTemplate.MatchPerformative(ACLMessage.SUBSCRIBE); ACLMessage message = myAgent.receive(template); if (message != null) { ACLMessage reponse = new ACLMessage(ACLMessage.ACCEPT_PROPOSAL); //retrieving the da...
public void action() { System.out.println("ON DEMARRE"); MessageTemplate template = MessageTemplate.MatchPerformative(ACLMessage.SUBSCRIBE); ACLMessage message = myAgent.receive(template); if (message != null) { ACLMessage reponse = new ACLMessage(ACLMessage.ACCEPT_PROPOSAL); //retrieving the da...
diff --git a/src/main/java/org/jboss/as/weld/services/bootstrap/WeldEjbInjectionServices.java b/src/main/java/org/jboss/as/weld/services/bootstrap/WeldEjbInjectionServices.java index 90d5971..e88f7ff 100644 --- a/src/main/java/org/jboss/as/weld/services/bootstrap/WeldEjbInjectionServices.java +++ b/src/main/java/org/jb...
false
true
public Object resolveEjb(InjectionPoint injectionPoint) { //TODO: some of this stuff should be cached EJB ejb = injectionPoint.getAnnotated().getAnnotation(EJB.class); if (ejb == null) { throw new RuntimeException("@Ejb annotation not found on " + injectionPoint.getMember()); ...
public Object resolveEjb(InjectionPoint injectionPoint) { //TODO: some of this stuff should be cached EJB ejb = injectionPoint.getAnnotated().getAnnotation(EJB.class); if (ejb == null) { throw new RuntimeException("@Ejb annotation not found on " + injectionPoint.getMember()); ...
diff --git a/frost-wot/source/frost/fcp/fcp07/NodeMessage.java b/frost-wot/source/frost/fcp/fcp07/NodeMessage.java index 13a987ae..ecca43c3 100644 --- a/frost-wot/source/frost/fcp/fcp07/NodeMessage.java +++ b/frost-wot/source/frost/fcp/fcp07/NodeMessage.java @@ -1,152 +1,152 @@ /* NodeMessage.java / Frost Copyri...
false
true
public static NodeMessage readMessage(BufferedInputStream fcpInp) { NodeMessage result = null; String tmp; boolean isfirstline = true; ByteArrayOutputStream bytes = new ByteArrayOutputStream(); while(true) { bytes.reset(); tmp = readLine(fcpI...
public static NodeMessage readMessage(BufferedInputStream fcpInp) { NodeMessage result = null; String tmp; boolean isfirstline = true; ByteArrayOutputStream bytes = new ByteArrayOutputStream(128); while(true) { tmp = readLine(fcpInp, bytes); ...
diff --git a/mydlp-ui-service/src/main/java/com/mydlp/ui/service/LogExportServiceImpl.java b/mydlp-ui-service/src/main/java/com/mydlp/ui/service/LogExportServiceImpl.java index 946a0cf6..0101162f 100644 --- a/mydlp-ui-service/src/main/java/com/mydlp/ui/service/LogExportServiceImpl.java +++ b/mydlp-ui-service/src/main/j...
true
true
protected void toExcel(OutputStream outputStream, AuthUser authUser, List<List<Object>> criteriaList) throws IOException { List<IncidentLog> logs = incidentLogDAO.getIncidents(authUser, criteriaList, 0, 1000); XSSFWorkbook wb = new XSSFWorkbook(); Map<String, CellStyle> styles = createStyles(wb); Sh...
protected void toExcel(OutputStream outputStream, AuthUser authUser, List<List<Object>> criteriaList) throws IOException { List<IncidentLog> logs = incidentLogDAO.getIncidents(authUser, criteriaList, 0, 1000); XSSFWorkbook wb = new XSSFWorkbook(); Map<String, CellStyle> styles = createStyles(wb); Sh...
diff --git a/src/java/org/apache/cassandra/service/GCInspector.java b/src/java/org/apache/cassandra/service/GCInspector.java index e88f6719d..e9d494dba 100644 --- a/src/java/org/apache/cassandra/service/GCInspector.java +++ b/src/java/org/apache/cassandra/service/GCInspector.java @@ -1,149 +1,149 @@ package org.apache...
true
true
private void logGCResults() { for (GarbageCollectorMXBean gc : beans) { Long previousTotal = gctimes.get(gc.getName()); Long total = gc.getCollectionTime(); if (previousTotal == null) previousTotal = 0L; if (previousTotal.equals(tot...
private void logGCResults() { for (GarbageCollectorMXBean gc : beans) { Long previousTotal = gctimes.get(gc.getName()); Long total = gc.getCollectionTime(); if (previousTotal == null) previousTotal = 0L; if (previousTotal.equals(tot...
diff --git a/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NewsMyNewsSearchCommand.java b/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NewsMyNewsSearchCommand.java index a59943602..30fc9cc41 100644 --- a/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NewsMyNewsSe...
false
true
public SearchResult execute() { String myNews = (String) context.getDataModel().getJunkYard().getValue("myNews"); LOG.debug("Cookie is: " + myNews); if (myNews != null && myNews.length() > 0) { final SearchResult mergedResult = new BasicSearchResult(this); Matcher mat...
public SearchResult execute() { String myNews = (String) context.getDataModel().getJunkYard().getValue("myNews"); LOG.debug("Cookie is: " + myNews); if (myNews != null && myNews.length() > 0) { final SearchResult mergedResult = new BasicSearchResult(this); Matcher mat...
diff --git a/src/ZeroFrame/Analysis/VoiceAnalyzer.java b/src/ZeroFrame/Analysis/VoiceAnalyzer.java index c7e634d..4530348 100644 --- a/src/ZeroFrame/Analysis/VoiceAnalyzer.java +++ b/src/ZeroFrame/Analysis/VoiceAnalyzer.java @@ -1,49 +1,49 @@ package ZeroFrame.Analysis; import java.io.ByteArrayInputStream; import ...
false
true
public void analyzeUtterance(byte[] utteranceStream, ZeroFrame.Networking.Client sendingClient){ ByteArrayInputStream tempByteArrayInputStream = new ByteArrayInputStream(utteranceStream); AudioFormat format = new AudioFormat(44100, 16, 1, true, true); AudioInputStream audioStream = null; audioStream = new Aud...
public void analyzeUtterance(byte[] utteranceStream, ZeroFrame.Networking.Client sendingClient){ ByteArrayInputStream tempByteArrayInputStream = new ByteArrayInputStream(utteranceStream); AudioFormat format = new AudioFormat(16000, 16, 1, true, false); AudioInputStream audioStream = null; audioStream = new Au...
diff --git a/loci/formats/FormatReader.java b/loci/formats/FormatReader.java index 2220da433..e409832c8 100644 --- a/loci/formats/FormatReader.java +++ b/loci/formats/FormatReader.java @@ -1,898 +1,898 @@ // // FormatReader.java // /* LOCI Bio-Formats package for reading and converting biological file formats. ...
true
true
public static boolean testRead(IFormatReader reader, String[] args) throws FormatException, IOException { String id = null; boolean pixels = true; boolean doMeta = true; boolean thumbs = false; boolean merge = false; boolean stitch = false; boolean separate = false; boolean omexm...
public static boolean testRead(IFormatReader reader, String[] args) throws FormatException, IOException { String id = null; boolean pixels = true; boolean doMeta = true; boolean thumbs = false; boolean merge = false; boolean stitch = false; boolean separate = false; boolean omexm...
diff --git a/activemq-core/src/main/java/org/apache/activemq/store/kahadb/plist/PListStore.java b/activemq-core/src/main/java/org/apache/activemq/store/kahadb/plist/PListStore.java index 8191c0907..b2c0a1a71 100644 --- a/activemq-core/src/main/java/org/apache/activemq/store/kahadb/plist/PListStore.java +++ b/activemq-c...
false
true
protected synchronized void intialize() throws Exception { if (isStarted()) { if (this.initialized == false) { this.initialized = true; if (this.directory == null) { this.directory = new File(IOHelper.getDefaultDataDirectory() + File.pathSepara...
protected synchronized void intialize() throws Exception { if (isStarted()) { if (this.initialized == false) { if (this.directory == null) { this.directory = new File(IOHelper.getDefaultDataDirectory() + File.pathSeparator + "delayedDB"); } ...
diff --git a/tools/src/main/java/org/infinispan/tools/jopr/RhqPluginXmlGenerator.java b/tools/src/main/java/org/infinispan/tools/jopr/RhqPluginXmlGenerator.java index 1932b348af..05abb22a44 100644 --- a/tools/src/main/java/org/infinispan/tools/jopr/RhqPluginXmlGenerator.java +++ b/tools/src/main/java/org/infinispan/too...
false
true
private static void populateMetricsAndOperations(List<Class<?>> classes, Props props, boolean withNamePrefix) { props.setHasOperations(true); props.setHasMetrics(true); for (Class<?> clazz : classes) { MBean mbean = clazz.getAnnotation(MBean.class); String prefix = withNamePrefix ...
private static void populateMetricsAndOperations(List<Class<?>> classes, Props props, boolean withNamePrefix) { props.setHasOperations(true); props.setHasMetrics(true); for (Class<?> clazz : classes) { MBean mbean = clazz.getAnnotation(MBean.class); String prefix = withNamePrefix ...
diff --git a/ttools/src/main/uk/ac/starlink/ttools/task/Calc.java b/ttools/src/main/uk/ac/starlink/ttools/task/Calc.java index 11515585f..04ccd3945 100644 --- a/ttools/src/main/uk/ac/starlink/ttools/task/Calc.java +++ b/ttools/src/main/uk/ac/starlink/ttools/task/Calc.java @@ -1,142 +1,142 @@ package uk.ac.starlink.tto...
true
true
public Executable createExecutable( Environment env ) throws TaskException { /* Create a dummy table, since a JELRowReader is required. However, * we will be using no table data. */ StarTable table = ColumnStarTable.makeTableWithRows( 0 ); /* If an (optional) table is supplied, u...
public Executable createExecutable( Environment env ) throws TaskException { /* Create a dummy table, since a JELRowReader is required. However, * we will be using no table data. */ StarTable table = ColumnStarTable.makeTableWithRows( 0 ); /* If an (optional) table is supplied, u...
diff --git a/Android/ACLU_FD_Android/src/org/aclu/freedomdefenseandroid/AndroidGame.java b/Android/ACLU_FD_Android/src/org/aclu/freedomdefenseandroid/AndroidGame.java index 08a2f6d..9143dcf 100644 --- a/Android/ACLU_FD_Android/src/org/aclu/freedomdefenseandroid/AndroidGame.java +++ b/Android/ACLU_FD_Android/src/org/acl...
true
true
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); initialize(new Game(), false); }
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); initialize(new Game(true), false); }
diff --git a/src/org/processmining/plugins/xpdl/exporting/XpdlExportNet.java b/src/org/processmining/plugins/xpdl/exporting/XpdlExportNet.java index 8b3162a..c86bddf 100644 --- a/src/org/processmining/plugins/xpdl/exporting/XpdlExportNet.java +++ b/src/org/processmining/plugins/xpdl/exporting/XpdlExportNet.java @@ -1,7...
true
true
public void exportXPDLtoFile(CLIPluginContext context, BPMNDiagramExt brnet, File file) throws IOException { /*Xpdl net = brnet.getXpdltraslate(); String text = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n" + net.exportElement(); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new File...
public void exportXPDLtoFile(CLIPluginContext context, BPMNDiagramExt brnet, File file) throws IOException { /*Xpdl net = brnet.getXpdltraslate(); String text = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n" + net.exportElement(); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new File...
diff --git a/Chat/src/States/ConnectedServer.java b/Chat/src/States/ConnectedServer.java index 8904ae5..45ef96e 100644 --- a/Chat/src/States/ConnectedServer.java +++ b/Chat/src/States/ConnectedServer.java @@ -1,32 +1,32 @@ package States; import Communications.*; import Messages.*; import Utilities.User; publi...
true
true
public State process(String input, TCP tcp, UDPSender us, Message udpMessage, Message tcpMessage, long timeEnteredState,boolean firstCall) { if(firstCall){ System.out.println("You are connected to a server.\nType :update to try to bind your name to your ip.\nType :query <username> to ask the server for the ip of ...
public State process(String input, TCP tcp, UDPSender us, Message udpMessage, Message tcpMessage, long timeEnteredState,boolean firstCall) { if(firstCall){ System.out.println("You are connected to a server.\nType :update to try to bind your name to your ip.\nType :query <username> to ask the server for the ip of ...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java index 53cb1bf21..d007c8098 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java +++ b/org.eclipse.m...
true
true
public void updateHeaderToolBar() { if (isHeaderFormDisposed()) { return; } final Form form = getHeaderForm().getForm().getForm(); toolBarManager = form.getToolBarManager(); toolBarManager.removeAll(); // toolBarManager.update(true); TaskRepository outgoingNewRepository = TasksUiUtil.getOutgoingNewT...
public void updateHeaderToolBar() { if (isHeaderFormDisposed()) { return; } final Form form = getHeaderForm().getForm().getForm(); toolBarManager = form.getToolBarManager(); toolBarManager.removeAll(); // toolBarManager.update(true); TaskRepository outgoingNewRepository = TasksUiUtil.getOutgoingNewT...
diff --git a/application/src/test/java/org/clueminer/ApplicationTest.java b/application/src/test/java/org/clueminer/ApplicationTest.java index 52ef51a16..e822f3c55 100644 --- a/application/src/test/java/org/clueminer/ApplicationTest.java +++ b/application/src/test/java/org/clueminer/ApplicationTest.java @@ -1,30 +1,30 ...
true
true
public static Test suite() { return NbModuleSuite.createConfiguration(ApplicationTest.class). gui(false). failOnMessage(Level.WARNING). // works at least in RELEASE71 failOnException(Level.INFO). suite(); // RELEASE71+, else use NbModuleSuite.c...
public static Test suite() { return NbModuleSuite.createConfiguration(ApplicationTest.class). gui(false). //failOnMessage(Level.WARNING). // works at least in RELEASE71 failOnException(Level.INFO). suite(); // RELEASE71+, else use NbModuleSuite...
diff --git a/src/izpack/registry/src/Main.java b/src/izpack/registry/src/Main.java index f939cf4..9583e5f 100644 --- a/src/izpack/registry/src/Main.java +++ b/src/izpack/registry/src/Main.java @@ -1,140 +1,146 @@ // File : Main.java // Project : Scala // Author(s) : Stephane Micheloud (mics) // Environmen...
false
true
private static void updateRegistry(String homePath, String fullName) throws RegistryException { // HKEY_CURRENT_USER\Environment RegistryKey envKey = Registry.openSubkey( Registry.HKEY_CURRENT_USER, "Environment", RegistryKey.ACCESS_ALL); if (homePath != n...
private static void updateRegistry(String homePath, String fullName) throws RegistryException { // HKEY_CURRENT_USER\Environment RegistryKey envKey = Registry.openSubkey( Registry.HKEY_CURRENT_USER, "Environment", RegistryKey.ACCESS_ALL); if (homePath != n...
diff --git a/src/it/crs4/seal/prq/PairReadsQSeqMapper.java b/src/it/crs4/seal/prq/PairReadsQSeqMapper.java index fd9b17d..60c04d2 100644 --- a/src/it/crs4/seal/prq/PairReadsQSeqMapper.java +++ b/src/it/crs4/seal/prq/PairReadsQSeqMapper.java @@ -1,118 +1,118 @@ // Copyright (C) 2011-2012 CRS4. // // This file is part...
true
true
public void map(Text readId, SequencedFragment read, IMRContext<SequenceId, Text> context) throws IOException, InterruptedException { // build the key builder.delete(0, builder.length()); // field up and including the index number goes in the location. The read is on its own. if (read.getRead() == null) ...
public void map(Text readId, SequencedFragment read, IMRContext<SequenceId, Text> context) throws IOException, InterruptedException { // build the key builder.delete(0, builder.length()); // field up and including the index number goes in the location. The read is on its own. if (read.getRead() == null) ...
diff --git a/src/org/rascalmpl/parser/sgll/stack/SeparatedListStackNode.java b/src/org/rascalmpl/parser/sgll/stack/SeparatedListStackNode.java index 2be65cddfb..3845796fd0 100644 --- a/src/org/rascalmpl/parser/sgll/stack/SeparatedListStackNode.java +++ b/src/org/rascalmpl/parser/sgll/stack/SeparatedListStackNode.java @...
false
true
public AbstractStackNode[] getChildren(){ AbstractStackNode psn = child.getCleanCopy(); SeparatedListStackNode slpsn = new SeparatedListStackNode((id | IGLL.LIST_LIST_FLAG), symbol, child, separators, true, new ContainerNode()); AbstractStackNode from = psn; for(int i = 0; i < separators.length; i++){ Ab...
public AbstractStackNode[] getChildren(){ AbstractStackNode psn = child.getCleanCopy(); SeparatedListStackNode slpsn = new SeparatedListStackNode((id | IGLL.LIST_LIST_FLAG), symbol, child, separators, true, new ContainerNode()); AbstractStackNode from = psn; for(int i = 0; i < separators.length; i++){ Ab...
diff --git a/api/src/com/todoroo/andlib/sql/Join.java b/api/src/com/todoroo/andlib/sql/Join.java index 50f68d0c9..dd2777ada 100644 --- a/api/src/com/todoroo/andlib/sql/Join.java +++ b/api/src/com/todoroo/andlib/sql/Join.java @@ -1,48 +1,48 @@ package com.todoroo.andlib.sql; import static com.todoroo.andlib.sql.SqlC...
true
true
public String toString() { StringBuilder sb = new StringBuilder(); sb.append(joinType).append(SPACE).append(JOIN).append(SPACE).append(joinTable).append(SPACE).append(ON).append(SPACE).append("("); for (int i = 0; i < criterions.length; i++) { sb.append(criterions[i]); ...
public String toString() { StringBuilder sb = new StringBuilder(); sb.append(joinType).append(SPACE).append(JOIN).append(SPACE).append(joinTable).append(SPACE).append(ON).append(SPACE).append("("); for (int i = 0; i < criterions.length; i++) { sb.append(criterions[i]); ...
diff --git a/ocl/src/tudresden/ocl/check/types/testfacade/TestModelFacade.java b/ocl/src/tudresden/ocl/check/types/testfacade/TestModelFacade.java index 68b127d03..27cf8a40b 100644 --- a/ocl/src/tudresden/ocl/check/types/testfacade/TestModelFacade.java +++ b/ocl/src/tudresden/ocl/check/types/testfacade/TestModelFacade....
true
true
public TestModelFacade() { // Person - Company - Model person = new TestClassifier("Person"); company = new TestClassifier("Company"); bank = new BankClassifier(person); person.features.put("age", new TestSFeature("age", Basic.INTEGER)); person.features.put("name", new TestSFeature("name", B...
public TestModelFacade() { // Person - Company - Model person = new TestClassifier("Person"); company = new TestClassifier("Company"); bank = new BankClassifier(person); person.features.put("age", new TestSFeature("age", Basic.INTEGER)); person.features.put("name", new TestSFeature("name", B...
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java index d7f4d90b..cb7cbfb7 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java +++ b/gwtquery-core/src/main/java/com/google/gwt/qu...
true
true
public final String toJsonString() { String ret = ""; for (String k : keys()){ String ky = k.matches("\\d+") ? k : "\"" + k + "\""; JsCache o = getArray(k).cast(); if (o != null) { ret += ky + ":["; for (int i = 0, l = o.length(); i < l ; i++) { Properties p = ...
public final String toJsonString() { String ret = ""; for (String k : keys()){ String ky = k.matches("\\d+") ? k : "\"" + k + "\""; // We do not have to restore gwt hashCodes. if (k.equals("$H")) { continue; } JsCache o = getArray(k).cast(); if (o != null) { ...
diff --git a/src/main/java/com/redhat/ceylon/compiler/js/GenerateJsVisitor.java b/src/main/java/com/redhat/ceylon/compiler/js/GenerateJsVisitor.java index 0ae048b7..dafe1317 100644 --- a/src/main/java/com/redhat/ceylon/compiler/js/GenerateJsVisitor.java +++ b/src/main/java/com/redhat/ceylon/compiler/js/GenerateJsVisito...
true
true
private String qualifiedPath(Node that, Declaration d, boolean inProto) { boolean isMember = d.isClassOrInterfaceMember(); if (!isMember && isImported(that == null ? null : that.getUnit().getPackage(), d)) { return names.moduleAlias(d.getUnit().getPackage().getModule()); } ...
private String qualifiedPath(Node that, Declaration d, boolean inProto) { boolean isMember = d.isClassOrInterfaceMember(); if (!isMember && isImported(that == null ? null : that.getUnit().getPackage(), d)) { return names.moduleAlias(d.getUnit().getPackage().getModule()); } ...
diff --git a/src/org/geworkbench/bison/datastructure/biocollections/views/CSMicroarraySetView.java b/src/org/geworkbench/bison/datastructure/biocollections/views/CSMicroarraySetView.java index 6a83e172..5be33066 100755 --- a/src/org/geworkbench/bison/datastructure/biocollections/views/CSMicroarraySetView.java +++ b/src...
false
true
public DSItemList<T> getUniqueMarkers() { if (useMarkerPanel && markerPanel.size() > 0) { ListOrderedSet<T> orderedSet = new ListOrderedSet<T>(); for (T t : markerPanel) { orderedSet.add(t); } CSItemList<T> itemList = new CSItemList<T>(); for (T item : orderedSet) { itemList.add(item); } ...
public DSItemList<T> getUniqueMarkers() { int s = markerPanel.size(); if (useMarkerPanel && s > 0) { ListOrderedSet<T> orderedSet = new ListOrderedSet<T>(); for (int i=0; i<s; i++) { T t = markerPanel.get(i); orderedSet.add(t); } CSItemList<T> itemList = new CSItemList<T>(); for (T item : o...
diff --git a/src/main/java/org/encog/neural/flat/FlatNetwork.java b/src/main/java/org/encog/neural/flat/FlatNetwork.java index af0ede32f..dd68e6b84 100644 --- a/src/main/java/org/encog/neural/flat/FlatNetwork.java +++ b/src/main/java/org/encog/neural/flat/FlatNetwork.java @@ -1,782 +1,780 @@ /* * Encog(tm) Core v3.0...
true
true
public void init(final FlatLayer[] layers) { final int layerCount = layers.length; this.inputCount = layers[0].getCount(); this.outputCount = layers[layerCount - 1].getCount(); this.layerCounts = new int[layerCount]; this.layerContextCount = new int[layerCount]; this.weightIndex = new int[layerCount]; ...
public void init(final FlatLayer[] layers) { final int layerCount = layers.length; this.inputCount = layers[0].getCount(); this.outputCount = layers[layerCount - 1].getCount(); this.layerCounts = new int[layerCount]; this.layerContextCount = new int[layerCount]; this.weightIndex = new int[layerCount]; ...
diff --git a/TeaLeaf/src/com/tealeaf/EditTextView.java b/TeaLeaf/src/com/tealeaf/EditTextView.java index fdc5b99..7561dad 100644 --- a/TeaLeaf/src/com/tealeaf/EditTextView.java +++ b/TeaLeaf/src/com/tealeaf/EditTextView.java @@ -1,430 +1,432 @@ package com.tealeaf; import android.app.Activity; import android.conte...
false
true
public static EditTextView Get(final Activity activity) { if (instance == null && activity != null) { instance = (EditTextView) editTextFullLayout.findViewById(R.id.edit_text); offscreenEditText = (EditText) editTextFullLayout.findViewById(R.id.offscreen_edit_text); offscreenEditText.setVisibility(View.INV...
public static EditTextView Get(final Activity activity) { if (instance == null && activity != null) { instance = (EditTextView) editTextFullLayout.findViewById(R.id.edit_text); offscreenEditText = (EditText) editTextFullLayout.findViewById(R.id.offscreen_edit_text); offscreenEditText.setVisibility(View.INV...
diff --git a/ShoppingList/src/org/openintents/shopping/ui/ShoppingActivity.java b/ShoppingList/src/org/openintents/shopping/ui/ShoppingActivity.java index 30ab8a3..5886f19 100644 --- a/ShoppingList/src/org/openintents/shopping/ui/ShoppingActivity.java +++ b/ShoppingList/src/org/openintents/shopping/ui/ShoppingActivity....
false
true
private void createView() { //Temp-create either Spinner or List based upon the Display createList(); mEditText = (AutoCompleteTextView) findViewById(R.id.autocomplete_add_item); if (mItemsCursor != null) { if (debug) Log.d(TAG, "mItemsCursor managedQuery 1"); stopManagingCursor(mItemsCursor); m...
private void createView() { //Temp-create either Spinner or List based upon the Display createList(); mEditText = (AutoCompleteTextView) findViewById(R.id.autocomplete_add_item); if (mItemsCursor != null) { if (debug) Log.d(TAG, "mItemsCursor managedQuery 1"); stopManagingCursor(mItemsCursor); m...
diff --git a/src/main/java/org/basex/build/xml/DOCWrapper.java b/src/main/java/org/basex/build/xml/DOCWrapper.java index cbeb706b9..7f163bee3 100644 --- a/src/main/java/org/basex/build/xml/DOCWrapper.java +++ b/src/main/java/org/basex/build/xml/DOCWrapper.java @@ -1,133 +1,140 @@ package org.basex.build.xml; import...
true
true
public void parse(final Builder builder) throws IOException { builder.startDoc(token(filename)); final Stack<NodeIterator> stack = new Stack<NodeIterator>(); stack.push(new NodeIterator(root)); while(!stack.empty()) { final NodeIterator ni = stack.peek(); if(ni.more()) { final No...
public void parse(final Builder builder) throws IOException { builder.startDoc(token(filename)); final Stack<NodeIterator> stack = new Stack<NodeIterator>(); stack.push(new NodeIterator(root)); while(!stack.empty()) { final NodeIterator ni = stack.peek(); if(ni.more()) { final No...
diff --git a/src/net/slipcor/pvparena/runnables/PlayerStateCreateRunnable.java b/src/net/slipcor/pvparena/runnables/PlayerStateCreateRunnable.java index 8bb26dee..d21fe457 100644 --- a/src/net/slipcor/pvparena/runnables/PlayerStateCreateRunnable.java +++ b/src/net/slipcor/pvparena/runnables/PlayerStateCreateRunnable.ja...
true
true
public void run() { if (a.getState() == null) { Arena arena = a.getArena(); PAJoinEvent event = new PAJoinEvent(arena, p, false); Bukkit.getPluginManager().callEvent(event); a.createState(p); ArenaPlayer.backupAndClearInventory(arena, p); a.dump(); if (a.getArenaClass() == null) { ...
public void run() { if (a.getState() == null) { Arena arena = a.getArena(); PAJoinEvent event = new PAJoinEvent(arena, p, false); Bukkit.getPluginManager().callEvent(event); a.createState(p); ArenaPlayer.backupAndClearInventory(arena, p); a.dump(); if (a.getArenaTeam() != null && a...
diff --git a/src/FP/NotificationWindow.java b/src/FP/NotificationWindow.java index 8d36d1c..5bd7f92 100644 --- a/src/FP/NotificationWindow.java +++ b/src/FP/NotificationWindow.java @@ -1,68 +1,68 @@ package FP; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.GridBagConstraints; import ja...
false
true
private void drawWindow(String message) { setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); c.gridy = 0; c.anchor = GridBagConstraints.FIRST_LINE_START; c.insets = new Insets(15, 15, 10, 15); notification = new JLabel(message); notification.setBorder(BorderFactory.createEt...
private void drawWindow(String message) { setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); c.gridy = 0; c.anchor = GridBagConstraints.FIRST_LINE_START; c.insets = new Insets(15, 15, 10, 15); notification = new JLabel(message); notification.setBorder(BorderFactory.createEt...
diff --git a/Server/src/com/abstractedsheep/ShuttleTrackerServer/JSONSender.java b/Server/src/com/abstractedsheep/ShuttleTrackerServer/JSONSender.java index d36a081..0632a66 100644 --- a/Server/src/com/abstractedsheep/ShuttleTrackerServer/JSONSender.java +++ b/Server/src/com/abstractedsheep/ShuttleTrackerServer/JSONSen...
false
true
public static void saveToFileAsJSON(ArrayList<Shuttle> shuttleList) { try { JsonFactory f = new JsonFactory(); JsonGenerator gen = f.createJsonGenerator(new FileWriter(new File("shuttleOutputData.txt"))); HashMap<String, Integer> map = null; //gen.writeArrayFieldStart("ShuttleETA"); for(Shuttle sh...
public static void saveToFileAsJSON(ArrayList<Shuttle> shuttleList) { try { JsonFactory f = new JsonFactory(); JsonGenerator gen = f.createJsonGenerator(new FileWriter(new File("shuttleOutputData.txt"))); HashMap<String, Integer> map = null; //gen.writeArrayFieldStart("ShuttleETA"); gen.writeStart...
diff --git a/pdfbox/src/main/java/org/apache/pdfbox/pdfviewer/PageDrawer.java b/pdfbox/src/main/java/org/apache/pdfbox/pdfviewer/PageDrawer.java index ad7fa1d..d702f5c 100644 --- a/pdfbox/src/main/java/org/apache/pdfbox/pdfviewer/PageDrawer.java +++ b/pdfbox/src/main/java/org/apache/pdfbox/pdfviewer/PageDrawer.java @@ ...
true
true
protected void processTextPosition( TextPosition text ) { try { switch(this.getGraphicsState().getTextState().getRenderingMode()) { case PDTextState.RENDERING_MODE_FILL_TEXT: graphics.setColor( this.getGraphicsState().getNonStrokingColor().getJavaC...
protected void processTextPosition( TextPosition text ) { try { switch(this.getGraphicsState().getTextState().getRenderingMode()) { case PDTextState.RENDERING_MODE_FILL_TEXT: graphics.setColor( this.getGraphicsState().getNonStrokingColor().getJavaC...
diff --git a/src/de/ub0r/android/websms/connector/common/Log.java b/src/de/ub0r/android/websms/connector/common/Log.java index bf638b9e..a98371d9 100644 --- a/src/de/ub0r/android/websms/connector/common/Log.java +++ b/src/de/ub0r/android/websms/connector/common/Log.java @@ -1,271 +1,276 @@ /* * Copyright (C) 2010 Fe...
false
true
public static void collectAndSendLog(final Activity activity) { final PackageManager packageManager = activity.getPackageManager(); Intent intent = packageManager .getLaunchIntentForPackage(SENDLOG_PACKAGE_NAME); int title, message; if (intent == null) { intent = new Intent(Intent.ACTION_VIEW, Uri ...
public static void collectAndSendLog(final Activity activity) { final PackageManager packageManager = activity.getPackageManager(); Intent intent = packageManager .getLaunchIntentForPackage(SENDLOG_PACKAGE_NAME); final String pkg = activity.getPackageName(); int title, message; if (intent == null) { i...
diff --git a/src/main/java/net/md_5/specialsource/provider/ClassLoaderProvider.java b/src/main/java/net/md_5/specialsource/provider/ClassLoaderProvider.java index e1fc1b3..a219dd3 100644 --- a/src/main/java/net/md_5/specialsource/provider/ClassLoaderProvider.java +++ b/src/main/java/net/md_5/specialsource/provider/Clas...
true
true
public Collection<String> getParents(String owner) { // TODO: ToInternalName String ownerInternalName = owner.replace('.', '/').concat(".class"); InputStream input = classLoader.getResourceAsStream(ownerInternalName); if (input == null) { return null; } t...
public Collection<String> getParents(String owner) { // TODO: ToInternalName String ownerInternalName = owner.replace('.', '/').concat(".class"); InputStream input = classLoader.getResourceAsStream(ownerInternalName); if (input == null) { return null; } t...
diff --git a/Prog-Aufgabe1/src/de/proglabor/aufgabe2/Pflanze.java b/Prog-Aufgabe1/src/de/proglabor/aufgabe2/Pflanze.java index 7bc434e..0867245 100644 --- a/Prog-Aufgabe1/src/de/proglabor/aufgabe2/Pflanze.java +++ b/Prog-Aufgabe1/src/de/proglabor/aufgabe2/Pflanze.java @@ -1,66 +1,66 @@ package de.proglabor.aufgabe2; ...
false
true
public int compareTo(Pflanze anderePflanze) { if (this.x == anderePflanze.x) { return 0; } else if (this.x < anderePflanze.x) { return -1; } else { return 1; } }
public int compareTo(Pflanze anderePflanze) { if (this.x == anderePflanze.x && this.y == anderePflanze.y) { return 0; } else if (this.x < anderePflanze.x ) { return -1; } else { return 1; } }
diff --git a/src/com/example/froyvisuals/FroyVisuals.java b/src/com/example/froyvisuals/FroyVisuals.java index 5c9cac3f..7b398880 100644 --- a/src/com/example/froyvisuals/FroyVisuals.java +++ b/src/com/example/froyvisuals/FroyVisuals.java @@ -1,157 +1,157 @@ /* * Copyright (C) 2010 The Android Open Source Project ...
true
true
@Override protected void onDraw(Canvas canvas) { if( mW != getWidth() || mH != getHeight()) { mW = getWidth(); mH = getHeight(); mBitmap = Bitmap.createBitmap(mW, mH, Bitmap.Config.RGB_565); //screenResize(mW, mH); } /* mAudio.startRecording(); short[] data = new ...
@Override protected void onDraw(Canvas canvas) { if( mW != getWidth() || mH != getHeight()) { mW = getWidth(); mH = getHeight(); mBitmap = Bitmap.createBitmap(mW, mH, Bitmap.Config.RGB_565); screenResize(mW, mH); } /* mAudio.startRecording(); short[] data = new sh...
diff --git a/test/src/test/java/org/apache/accumulo/test/functional/ScannerIT.java b/test/src/test/java/org/apache/accumulo/test/functional/ScannerIT.java index e364b4626..f2211e5a3 100644 --- a/test/src/test/java/org/apache/accumulo/test/functional/ScannerIT.java +++ b/test/src/test/java/org/apache/accumulo/test/funct...
false
true
public void testScannerReadaheadConfiguration() throws Exception { final String table = "table"; Connector c = getConnector(); c.tableOperations().create(table); BatchWriter bw = c.createBatchWriter(table, new BatchWriterConfig()); Mutation m = new Mutation("a"); for (int i = 0; i < 10; i++)...
public void testScannerReadaheadConfiguration() throws Exception { final String table = "table"; Connector c = getConnector(); c.tableOperations().create(table); BatchWriter bw = c.createBatchWriter(table, new BatchWriterConfig()); Mutation m = new Mutation("a"); for (int i = 0; i < 10; i++)...
diff --git a/src/main/java/org/klco/email2html/OutputWriter.java b/src/main/java/org/klco/email2html/OutputWriter.java index 4dea55f..b2f1930 100644 --- a/src/main/java/org/klco/email2html/OutputWriter.java +++ b/src/main/java/org/klco/email2html/OutputWriter.java @@ -1,474 +1,472 @@ /* * Copyright (C) 2012 Dan Klco...
true
true
public boolean writeAttachment(EmailMessage containingMessage, Part part) throws IOException, MessagingException { log.trace("writeAttachment"); File attachmentFolder; File attachmentFile; InputStream in = null; OutputStream out = null; try { attachmentFolder = new File(outputDir.getAbsolutePath() ...
public boolean writeAttachment(EmailMessage containingMessage, Part part) throws IOException, MessagingException { log.trace("writeAttachment"); File attachmentFolder; File attachmentFile; InputStream in = null; OutputStream out = null; try { attachmentFolder = new File(outputDir.getAbsolutePath() ...
diff --git a/core/service/src/main/java/com/camunda/fox/platform/impl/jobexecutor/ContainerExecuteJobsRunnable.java b/core/service/src/main/java/com/camunda/fox/platform/impl/jobexecutor/ContainerExecuteJobsRunnable.java index 305c33cb6..49ec87fcd 100644 --- a/core/service/src/main/java/com/camunda/fox/platform/impl/jo...
true
true
public void run() { // all jobs in the list are from the same // process instance -> same deployment ProcessArchiveContext processArchiveContext = null; try { String processDefinitionKey = jobExecutor.getCommandExecutor() .execute(new GetProcessDefintionKeyForJobId(jobIds....
public void run() { // all jobs in the list are from the same // process instance -> same deployment ProcessArchiveContext processArchiveContext = null; try { String processDefinitionKey = jobExecutor.getCommandExecutor() .execute(new GetProcessDefintionKeyForJobId(jobIds....
diff --git a/src/main/java/com/github/joschi/jadconfig/converters/FileConverter.java b/src/main/java/com/github/joschi/jadconfig/converters/FileConverter.java index c25193e..8ac7b02 100644 --- a/src/main/java/com/github/joschi/jadconfig/converters/FileConverter.java +++ b/src/main/java/com/github/joschi/jadconfig/conve...
true
true
public File convertFrom(String value) { if (value == null) { throw new ParameterException("Couldn convert value \"" + value + "\" to File object."); } return new File(value); }
public File convertFrom(String value) { if (value == null) { throw new ParameterException("Couldn't convert value \"" + value + "\" to File object."); } return new File(value); }
diff --git a/spring-batch-execution/src/test/java/org/springframework/batch/execution/bootstrap/support/TypeConverterMethodInterceptorTests.java b/spring-batch-execution/src/test/java/org/springframework/batch/execution/bootstrap/support/TypeConverterMethodInterceptorTests.java index 4626ca89a..55120f9e4 100644 --- a/s...
true
true
public void testTyepConverter() throws Exception { final TestCase testCase = this; interceptor.setTypeConverter(new SimpleTypeConverter() { public Object convertIfNecessary(Object value, Class requiredType) { return testCase; } }); ProxyFactory factory = new ProxyFactory(Test.class, interceptor); f...
public void testTypeConverter() throws Exception { final TestCase testCase = this; interceptor.setTypeConverter(new SimpleTypeConverter() { public Object convertIfNecessary(Object value, Class requiredType) { return testCase; } }); ProxyFactory factory = new ProxyFactory(Test.class, interceptor); f...
diff --git a/atlas-web/src/main/java/ae3/servlet/ArrayExpressApplicationListener.java b/atlas-web/src/main/java/ae3/servlet/ArrayExpressApplicationListener.java index 864a6a902..9b043d845 100644 --- a/atlas-web/src/main/java/ae3/servlet/ArrayExpressApplicationListener.java +++ b/atlas-web/src/main/java/ae3/servlet/Arra...
true
true
public void contextInitialized(ServletContextEvent sce) { try { System.setProperty("java.awt.headless", "true"); // ServletContext sc = sce.getServletContext(); ArrayExpressSearchService as = ArrayExpressSearchService.instance(); DBhandler dbHand...
public void contextInitialized(ServletContextEvent sce) { try { System.setProperty("java.awt.headless", "true"); // ServletContext sc = sce.getServletContext(); ArrayExpressSearchService as = ArrayExpressSearchService.instance(); DBhandler dbHand...
diff --git a/servers/sip-servlets/sip-servlets-test-suite/testsuite/src/main/java/org/mobicents/servlet/sip/SipEmbedded.java b/servers/sip-servlets/sip-servlets-test-suite/testsuite/src/main/java/org/mobicents/servlet/sip/SipEmbedded.java index 36191538b..246ce34b2 100644 --- a/servers/sip-servlets/sip-servlets-test-su...
true
true
private ClassLoader createClassLoader(String name, ClassLoader parent) throws Exception { String value = CatalinaProperties.getProperty(name + ".loader"); if ((value == null) || (value.equals(""))) return parent; ArrayList repositoryLocations = new ArrayList(); ...
private ClassLoader createClassLoader(String name, ClassLoader parent) throws Exception { String value = CatalinaProperties.getProperty(name + ".loader"); if ((value == null) || (value.equals(""))) return parent; ArrayList repositoryLocations = new ArrayList(); ...
diff --git a/mcp/src/minecraft/sammko/quantumCraft/client/ClientTickHandler.java b/mcp/src/minecraft/sammko/quantumCraft/client/ClientTickHandler.java index 0130f2d..d41ca8c 100755 --- a/mcp/src/minecraft/sammko/quantumCraft/client/ClientTickHandler.java +++ b/mcp/src/minecraft/sammko/quantumCraft/client/ClientTickHand...
true
true
public String getItemDamage(ItemStack item) { if (mc.inGameHasFocus == true && mc.thePlayer.inventory.getCurrentItem() != null && mc.thePlayer.inventory.getCurrentItem().itemID == QuantumCraftSettings.CrystalPickaxeID + 256 ) { final int damage = item.getItemDamageForDisplay(); final int damageLeft = 500-damag...
public String getItemDamage(ItemStack item) { if (mc.inGameHasFocus == true && mc.thePlayer.inventory.getCurrentItem() != null && mc.thePlayer.inventory.getCurrentItem().itemID == QuantumCraftSettings.CrystalPickaxeID + 256 ) { final int damage = item.getItemDamageForDisplay(); final int damageLeft = 500-damag...
diff --git a/test/de/schildbach/pte/live/TlswProviderLiveTest.java b/test/de/schildbach/pte/live/TlswProviderLiveTest.java index 5006052c..71b6da4a 100644 --- a/test/de/schildbach/pte/live/TlswProviderLiveTest.java +++ b/test/de/schildbach/pte/live/TlswProviderLiveTest.java @@ -1,90 +1,90 @@ /* * Copyright 2010, 201...
true
true
public void shortConnection() throws Exception { final QueryConnectionsResult result = provider.queryConnections(new Location(LocationType.STATION, 0, null, "Hauptwache"), null, new Location(LocationType.STATION, 0, null, "Südbahnhof"), new Date(), true, ALL_PRODUCTS, WalkSpeed.NORMAL); System.out.println(res...
public void shortConnection() throws Exception { final QueryConnectionsResult result = provider.queryConnections(new Location(LocationType.STATION, 0, null, "70003023"), null, new Location( LocationType.STATION, 0, null, "70003025"), new Date(), true, ALL_PRODUCTS, WalkSpeed.NORMAL); System.out.println(result...
diff --git a/src/main/java/com/gyver/matrixmover/gui/component/VuMeterPanel.java b/src/main/java/com/gyver/matrixmover/gui/component/VuMeterPanel.java index 4b8cac5..0adddca 100644 --- a/src/main/java/com/gyver/matrixmover/gui/component/VuMeterPanel.java +++ b/src/main/java/com/gyver/matrixmover/gui/component/VuMeterPa...
true
true
protected void paintComponent(Graphics grphcs) { super.paintComponent(grphcs); Graphics2D vuGraphics = (Graphics2D) grphcs; int vuWidth = Math.round(this.getSize().width / 35F * vuValue); vuGraphics.setColor(new Color(0x292929)); vuGraphics.fillRect(0, 0, t...
protected void paintComponent(Graphics grphcs) { super.paintComponent(grphcs); Graphics2D vuGraphics = (Graphics2D) grphcs; int vuWidth = Math.round(this.getSize().width / 35F * vuValue); vuGraphics.setColor(new Color(0x292929)); vuGraphics.fillRect(0, 0, t...
diff --git a/source/RMG/inchiDictionaryReader.java b/source/RMG/inchiDictionaryReader.java index 6b36fa1f..ce81cd97 100644 --- a/source/RMG/inchiDictionaryReader.java +++ b/source/RMG/inchiDictionaryReader.java @@ -1,149 +1,149 @@ //this utility reads the inchiDictionary.txt file and computes thermo using QMTP without...
true
true
public static void main(String[] args) { String workingDir = System.getenv("RMG"); System.setProperty("RMG.workingDirectory", workingDir); //System.setProperty("LJDatabase.pathName", workingDir + "\\databases\\RMG_database\\Joback"); //gmagoon 2/19/10: created inchiDict...
public static void main(String[] args) { String workingDir = System.getenv("RMG"); System.setProperty("RMG.workingDirectory", workingDir); System.setProperty("LJDatabase.pathName", workingDir + "\\databases\\RMG_database\\transport_groups"); //gmagoon 2/19/10: created i...
diff --git a/svnkit-cli/src/main/java/org/tmatesoft/svn/cli/svn/SVNAddCommand.java b/svnkit-cli/src/main/java/org/tmatesoft/svn/cli/svn/SVNAddCommand.java index cd6c55d14..4824633ad 100644 --- a/svnkit-cli/src/main/java/org/tmatesoft/svn/cli/svn/SVNAddCommand.java +++ b/svnkit-cli/src/main/java/org/tmatesoft/svn/cli/sv...
false
true
public void run() throws SVNException { List targets = getSVNEnvironment().combineTargets(getSVNEnvironment().getTargets(), true); if (targets.isEmpty()) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.CL_INSUFFICIENT_ARGS), SVNLogType.CLIENT); } SVNDepth dept...
public void run() throws SVNException { List targets = getSVNEnvironment().combineTargets(getSVNEnvironment().getTargets(), true); if (targets.isEmpty()) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.CL_INSUFFICIENT_ARGS), SVNLogType.CLIENT); } SVNDepth dept...
diff --git a/src/siminov/orm/database/sqlite/Database.java b/src/siminov/orm/database/sqlite/Database.java index 33782d6..79ddd11 100644 --- a/src/siminov/orm/database/sqlite/Database.java +++ b/src/siminov/orm/database/sqlite/Database.java @@ -1,315 +1,317 @@ /** * [SIMINOV FRAMEWORK] * Copyright [2013] [Siminov...
true
true
public void executeBindQuery(final DatabaseDescriptor databaseDescriptor, final DatabaseMappingDescriptor databaseMappingDescriptor, final String query, final Iterator<Object> columnValues) throws DatabaseException { Log.logd(Database.class.getName(), "executeBindQuery", "QUERY: " + query); SQLiteStatement stat...
public void executeBindQuery(final DatabaseDescriptor databaseDescriptor, final DatabaseMappingDescriptor databaseMappingDescriptor, final String query, final Iterator<Object> columnValues) throws DatabaseException { Log.logd(Database.class.getName(), "executeBindQuery", "QUERY: " + query); SQLiteStatement stat...
diff --git a/src/net/jnwd/origamiFinder/ShowBook.java b/src/net/jnwd/origamiFinder/ShowBook.java index 4df9d8d..ae18488 100644 --- a/src/net/jnwd/origamiFinder/ShowBook.java +++ b/src/net/jnwd/origamiFinder/ShowBook.java @@ -1,126 +1,126 @@ package net.jnwd.origamiFinder; import net.jnwd.origamiData.Model; impor...
false
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.i(TAG, "Show loading screen..."); setContentView(R.layout.loading_data); oData = new ModelTable(this); oData.open(); Intent intent = getIntent(); Log.i(TAG, "Tryi...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.i(TAG, "Show loading screen..."); setContentView(R.layout.loading_data); oData = new ModelTable(this); oData.open(); Intent intent = getIntent(); Log.i(TAG, "Tryi...
diff --git a/BasicCommands/src/info/tregmine/basiccommands/BasicCommandsBlock.java b/BasicCommands/src/info/tregmine/basiccommands/BasicCommandsBlock.java index 3a5df26..0edeac6 100644 --- a/BasicCommands/src/info/tregmine/basiccommands/BasicCommandsBlock.java +++ b/BasicCommands/src/info/tregmine/basiccommands/BasicCo...
true
true
public void fireWorkButton(PlayerInteractEvent event) { if (event.getAction() == Action.RIGHT_CLICK_BLOCK) { TregminePlayer player = this.plugin.tregmine.getPlayer(event.getPlayer()); Block block = event.getClickedBlock(); this.colorFirework(player, Color.WHITE, -1845477288, block); this.colorFirework...
public void fireWorkButton(PlayerInteractEvent event) { if (event.getAction() == Action.RIGHT_CLICK_BLOCK) { TregminePlayer player = this.plugin.tregmine.getPlayer(event.getPlayer()); Block block = event.getClickedBlock(); this.colorFirework(player, Color.WHITE, -1845477288, block); this.colorFirework...
diff --git a/modules/extension/app-schema/app-schema/src/main/java/org/geotools/data/complex/DataAccessMappingFeatureIterator.java b/modules/extension/app-schema/app-schema/src/main/java/org/geotools/data/complex/DataAccessMappingFeatureIterator.java index eb3048767d..d5b775a6c6 100644 --- a/modules/extension/app-schem...
false
true
protected Attribute setAttributeValue(Attribute target, String id, final Object source, final AttributeMapping attMapping, Object values, StepList inputXpath, List<PropertyName> selectedProperties) throws IOException { final Expression sourceExpression = attMapping.getSourceExpression(); ...
protected Attribute setAttributeValue(Attribute target, String id, final Object source, final AttributeMapping attMapping, Object values, StepList inputXpath, List<PropertyName> selectedProperties) throws IOException { final Expression sourceExpression = attMapping.getSourceExpression(); ...
diff --git a/topcat/src/main/uk/ac/starlink/topcat/plot/AxisLabels.java b/topcat/src/main/uk/ac/starlink/topcat/plot/AxisLabels.java index 49373559c..7e18388c0 100644 --- a/topcat/src/main/uk/ac/starlink/topcat/plot/AxisLabels.java +++ b/topcat/src/main/uk/ac/starlink/topcat/plot/AxisLabels.java @@ -1,179 +1,180 @@ pa...
true
true
public static AxisLabels labelLogAxis( double lo, double hi, int approxTicks ) { if ( hi <= lo || lo <= 0 || hi <= 0 ) { throw new IllegalArgumentException(); } if ( hi / lo < 4.0 ) { return labelLinearAxis( lo, hi, approxTic...
public static AxisLabels labelLogAxis( double lo, double hi, int approxTicks ) { if ( hi <= lo || lo <= 0 || hi <= 0 ) { throw new IllegalArgumentException( "Bad range: " + lo + " .. " + hi ); } ...
diff --git a/src/minecraft/net/minecraft/src/GuiScreen.java b/src/minecraft/net/minecraft/src/GuiScreen.java index bade9b6b..de4822cf 100644 --- a/src/minecraft/net/minecraft/src/GuiScreen.java +++ b/src/minecraft/net/minecraft/src/GuiScreen.java @@ -1,235 +1,235 @@ package net.minecraft.src; import java.awt.Toolki...
true
true
public void handleInput() { while(Mouse.next()) { this.handleMouseInput(); } //Spout Start while(Keyboard.next()) { if(mc.thePlayer instanceof EntityClientPlayerMP){ EntityClientPlayerMP player = (EntityClientPlayerMP)mc.thePlayer; ScreenType screen = ScreenType.UNKNOWN; ...
public void handleInput() { while(Mouse.next()) { this.handleMouseInput(); } //Spout Start while(Keyboard.next()) { if(mc.thePlayer instanceof EntityClientPlayerMP && Spout.isEnabled()){ EntityClientPlayerMP player = (EntityClientPlayerMP)mc.thePlayer; ScreenType screen = ScreenTy...
diff --git a/deegree-core/deegree-core-base/src/main/java/org/deegree/feature/xpath/TypedObjectNodeXPathEvaluator.java b/deegree-core/deegree-core-base/src/main/java/org/deegree/feature/xpath/TypedObjectNodeXPathEvaluator.java index d16f5b01b9..4788ae04e4 100644 --- a/deegree-core/deegree-core-base/src/main/java/org/de...
true
true
public TypedObjectNode[] eval( GMLObject context, ValueReference propName ) throws FilterEvaluationException { // simple property with just a simple element step? QName simplePropName = propName.getAsQName(); if ( bindings != null && ( simplePropName...
public TypedObjectNode[] eval( GMLObject context, ValueReference propName ) throws FilterEvaluationException { // simple property with just a simple element step? QName simplePropName = propName.getAsQName(); if ( bindings != null && simplePropName != null ...
diff --git a/net/acomputerdog/BlazeLoader/main/BlazeLoader.java b/net/acomputerdog/BlazeLoader/main/BlazeLoader.java index 6c1f8ab..516ad6d 100644 --- a/net/acomputerdog/BlazeLoader/main/BlazeLoader.java +++ b/net/acomputerdog/BlazeLoader/main/BlazeLoader.java @@ -1,170 +1,170 @@ package net.acomputerdog.BlazeLoader.m...
false
true
public static void init(File mainDir){ log("Starting up..."); try{ ApiBase.mainDir = mainDir; apiDir = new File(mainDir, "/BL/"); if(!apiDir.exists() && !apiDir.mkdir()){ log("[ERROR] Could not create main API directory!"); } ...
public static void init(File mainDir){ log("Starting up..."); try{ ApiBase.mainDir = mainDir; apiDir = new File(mainDir, "/BL/"); if(!apiDir.exists() && !apiDir.mkdir()){ log("[ERROR] Could not create main API directory!"); } ...
diff --git a/nephele/nephele-management/src/test/java/eu/stratosphere/nephele/event/job/ManagementEventTest.java b/nephele/nephele-management/src/test/java/eu/stratosphere/nephele/event/job/ManagementEventTest.java index ef75d28d6..51c650f32 100644 --- a/nephele/nephele-management/src/test/java/eu/stratosphere/nephele/...
false
true
public void testRecentJobEvent() { final RecentJobEvent orig = new RecentJobEvent(new JobID(), JOBNAME, JobStatus.SCHEDULED, true, TIMESTAMP); final RecentJobEvent copy = (RecentJobEvent) ManagementTestUtils.createCopy(orig); assertEquals(orig.getJobID(), copy.getJobID()); assertEquals(orig.getJobName(), co...
public void testRecentJobEvent() { final RecentJobEvent orig = new RecentJobEvent(new JobID(), JOBNAME, JobStatus.SCHEDULED, true, TIMESTAMP, TIMESTAMP); final RecentJobEvent copy = (RecentJobEvent) ManagementTestUtils.createCopy(orig); assertEquals(orig.getJobID(), copy.getJobID()); assertEquals(orig.ge...
diff --git a/src/AggregateReducer.java b/src/AggregateReducer.java index b255744..bded8d0 100644 --- a/src/AggregateReducer.java +++ b/src/AggregateReducer.java @@ -1,99 +1,99 @@ import java.io.IOException; import java.util.Arrays; import java.util.ArrayList; import java.util.Iterator; import org.apache.hadoop.f...
true
true
public void reduce(Text itemset, Iterator<DoubleWritable> values, OutputCollector<Text,Text> output, Reporter reporter) throws IOException { ArrayList<Double> valuesArrList = new ArrayList<Double>(); while (values.hasNext()) { String valueString = (values.next()).toString(); valuesArrList.add(Dou...
public void reduce(Text itemset, Iterator<DoubleWritable> values, OutputCollector<Text,Text> output, Reporter reporter) throws IOException { ArrayList<Double> valuesArrList = new ArrayList<Double>(); while (values.hasNext()) { String valueString = (values.next()).toString(); valuesArrList.add(Dou...
diff --git a/src/main/java/dk/nsi/haiba/epimibaimporter/importer/ImportExecutor.java b/src/main/java/dk/nsi/haiba/epimibaimporter/importer/ImportExecutor.java index 427a0c3..0366ac1 100644 --- a/src/main/java/dk/nsi/haiba/epimibaimporter/importer/ImportExecutor.java +++ b/src/main/java/dk/nsi/haiba/epimibaimporter/impo...
true
true
public void doProcess() { // Fetch new records from LPR contact table try { statusRepo.importStartedAt(new DateTime()); currentImportProgress.reset(); // update tab tables first, in order to copy proper values into location/classification tables for used ...
public void doProcess() { // Fetch new records from LPR contact table try { statusRepo.importStartedAt(new DateTime()); currentImportProgress.reset(); // update tab tables first, in order to copy proper values into location/classification tables for used ...
diff --git a/KMK_PROJET_PDS/railsimulator.referentiel.webapp/src/main/java/railsimulator/tools/PassTourniquet.java b/KMK_PROJET_PDS/railsimulator.referentiel.webapp/src/main/java/railsimulator/tools/PassTourniquet.java index 638ba2b..f6d9c51 100644 --- a/KMK_PROJET_PDS/railsimulator.referentiel.webapp/src/main/java/rai...
false
true
public Boolean PassTourniquet(Tourniquet tourniquet, AbonnementMany abo,int idtransaction){ //tour=new Tourniquet(); clientPassT = new ClientPassTourniquet(); aboM = new AbonnementMany(); tour = new Tourniquet(); tour = tourniquet; Session session = HibernateUtils.getSession(); Session session2 = Hiberna...
public Boolean PassTourniquet(Tourniquet tourniquet, AbonnementMany abo,int idtransaction){ //tour=new Tourniquet(); clientPassT = new ClientPassTourniquet(); aboM = new AbonnementMany(); tour = new Tourniquet(); tour = tourniquet; Session session = HibernateUtils.getSession(); Session session2 = Hiberna...
diff --git a/tests/org.eclipse.acceleo.engine.tests/src/org/eclipse/acceleo/engine/tests/unit/evaluation/AcceleoEvaluationVisitorFileBlockTest.java b/tests/org.eclipse.acceleo.engine.tests/src/org/eclipse/acceleo/engine/tests/unit/evaluation/AcceleoEvaluationVisitorFileBlockTest.java index d1ede45d..d996dfe7 100644 ---...
true
true
public void testFileBlockAppendMode() { final FileBlock mtlFileBlock = getDummyFileBlock(); final String fileName = "validFile.url"; //$NON-NLS-1$ mtlFileBlock.setFileUrl(createOCLExpression('\'' + fileName + '\'')); mtlFileBlock.setOpenMode(OpenModeKind.APPEND); /* * Appending with no file at first : we...
public void testFileBlockAppendMode() { final FileBlock mtlFileBlock = getDummyFileBlock(); final String fileName = "validFile.url"; //$NON-NLS-1$ mtlFileBlock.setFileUrl(createOCLExpression('\'' + fileName + '\'')); mtlFileBlock.setOpenMode(OpenModeKind.APPEND); /* * Appending with no file at first : we...
diff --git a/src/plugin/shortener/ErrorPage.java b/src/plugin/shortener/ErrorPage.java index e9159fe..c166310 100644 --- a/src/plugin/shortener/ErrorPage.java +++ b/src/plugin/shortener/ErrorPage.java @@ -1,104 +1,104 @@ /* * shortener - ErrorPage.java - Copyright © 2010 David Roden * * This program is free soft...
true
true
public Response handleRequest(Request request) { ToadletContext toadletContext = request.getToadletContext(); PageMaker pageMaker = toadletContext.getPageMaker(); BaseL10n pluginL10n = ShortenerPlugin.l10n.getBase(); PageNode pageNode = pageMaker.getPageNode(pluginL10n.getString("Page." + errorName + ".Title")...
public Response handleRequest(Request request) { ToadletContext toadletContext = request.getToadletContext(); PageMaker pageMaker = toadletContext.getPageMaker(); BaseL10n pluginL10n = ShortenerPlugin.l10n.getBase(); PageNode pageNode = pageMaker.getPageNode(pluginL10n.getString("Page." + errorName + ".Title")...
diff --git a/barchart-feed-ddf-instrument/src/test/java/com/barchart/feed/ddf/instrument/provider/TestInstrumentXML.java b/barchart-feed-ddf-instrument/src/test/java/com/barchart/feed/ddf/instrument/provider/TestInstrumentXML.java index a39bd15e..7bb94013 100644 --- a/barchart-feed-ddf-instrument/src/test/java/com/barc...
true
true
public void testXML() throws Exception { final SAXParserFactory factory = SAXParserFactory.newInstance(); final SAXParser parser = factory.newSAXParser(); final List<InstrumentDefinition> result = new ArrayList<InstrumentDefinition>(); final DefaultHandler handler = handler(result); parser.parse(new ByteAr...
public void testXML() throws Exception { final SAXParserFactory factory = SAXParserFactory.newInstance(); final SAXParser parser = factory.newSAXParser(); final List<InstrumentDefinition> result = new ArrayList<InstrumentDefinition>(); final DefaultHandler handler = handler(result); parser.parse(new ByteAr...
diff --git a/vraptor-core/src/main/java/br/com/caelum/vraptor/ioc/spring/ComponentFactoryBean.java b/vraptor-core/src/main/java/br/com/caelum/vraptor/ioc/spring/ComponentFactoryBean.java index b5e4b7a34..5548d81fe 100644 --- a/vraptor-core/src/main/java/br/com/caelum/vraptor/ioc/spring/ComponentFactoryBean.java +++ b/v...
false
true
private Class targetTypeForComponentFactory(Class<?> type) { Type[] interfaces = type.getGenericInterfaces(); for (Type implemented : interfaces) { if (implemented instanceof ParameterizedType) { Type rawType = ((ParameterizedType) implemented).getRawType(); ...
private Class targetTypeForComponentFactory(Class<?> type) { Type[] interfaces = type.getGenericInterfaces(); for (Type implemented : interfaces) { if (implemented instanceof ParameterizedType) { Type rawType = ((ParameterizedType) implemented).getRawType(); ...
diff --git a/Genotype-IO/src/main/java/org/molgenis/genotype/oxford/GenGenotypeData.java b/Genotype-IO/src/main/java/org/molgenis/genotype/oxford/GenGenotypeData.java index 10e72bb8..4efc4311 100644 --- a/Genotype-IO/src/main/java/org/molgenis/genotype/oxford/GenGenotypeData.java +++ b/Genotype-IO/src/main/java/org/mol...
true
true
private int loadVariants(String forceSeqName) throws IOException { StringBuilder stringBuilder = new StringBuilder(); byte[] buffer = new byte[8192]; boolean eol = false; String seqName = null; String variantId = null; int position = 0; String allele1 = null; String allele2; int longestedChunk = 0;...
private int loadVariants(String forceSeqName) throws IOException { StringBuilder stringBuilder = new StringBuilder(); byte[] buffer = new byte[8192]; boolean eol = false; String seqName = null; String variantId = null; int position = 0; String allele1 = null; String allele2; int longestedChunk = 0;...
diff --git a/obdalib/obdalib-core/src/main/java/it/unibz/krdb/obda/gui/swing/panel/DatasourceParameterEditorPanel.java b/obdalib/obdalib-core/src/main/java/it/unibz/krdb/obda/gui/swing/panel/DatasourceParameterEditorPanel.java index d67dd7d95..f286cde5e 100644 --- a/obdalib/obdalib-core/src/main/java/it/unibz/krdb/obda...
true
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; pnlOBDAModelData = new javax.swing.JPanel(); lblSources = new javax.swing.JLabel(); lblSourcesNumber = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); pnlDataSourceParameters = new javax.swing.JPanel(); txtJdbc...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; pnlOBDAModelData = new javax.swing.JPanel(); lblSources = new javax.swing.JLabel(); lblSourcesNumber = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); pnlDataSourceParameters = new javax.swing.JPanel(); txtJdbc...
diff --git a/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DefaultElementFactory.java b/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DefaultElementFactory.java index 603996f86..c139bb4af 100644 --- a/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DefaultElementFactory.java +++ b/html...
false
true
public HtmlElement createElementNS(final HtmlPage page, final String namespaceURI, final String qualifiedName, final Attributes attributes) { final Map attributeMap = setAttributes(page, attributes); final HtmlElement element; final String tagName; final int colonIndex =...
public HtmlElement createElementNS(final HtmlPage page, final String namespaceURI, final String qualifiedName, final Attributes attributes) { final Map attributeMap = setAttributes(page, attributes); final HtmlElement element; final String tagName; final int colonIndex =...
diff --git a/src/org/achartengine/chart/TimeChart.java b/src/org/achartengine/chart/TimeChart.java index 2fbf83d..864e5f8 100644 --- a/src/org/achartengine/chart/TimeChart.java +++ b/src/org/achartengine/chart/TimeChart.java @@ -1,208 +1,211 @@ /** * Copyright (C) 2009 - 2012 SC 4ViewSoft SRL * * Licensed unde...
false
true
protected List<Double> getXLabels(double min, double max, int count) { if (!mXAxisSmart) { return super.getXLabels(min, max, count); } if (mStartPoint == null) { mStartPoint = min - (min % DAY) + DAY + new Date(Math.round(min)).getTimezoneOffset() * 60 * 1000; } if (count > 2...
protected List<Double> getXLabels(double min, double max, int count) { if (!mXAxisSmart) { return super.getXLabels(min, max, count); } if (mStartPoint == null) { mStartPoint = min - (min % DAY) + DAY + new Date(Math.round(min)).getTimezoneOffset() * 60 * 1000; } if (count > 2...
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/model/ElementUtils.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/model/ElementUtils.java index bf1ef2d30..72f4ba19c 100644 --- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/u...
true
true
public static void updateRepositoryUsingElements(final MetadataRepositoryElement[] elements, final Shell shell) { Job job = new Job(ProvUIMessages.ElementUtils_UpdateJobTitle) { public IStatus run(IProgressMonitor monitor) { ProvUI.startBatchOperation(); try { URI[] currentlyEnabled = ProvisioningUti...
public static void updateRepositoryUsingElements(final MetadataRepositoryElement[] elements, final Shell shell) { Job job = new Job(ProvUIMessages.ElementUtils_UpdateJobTitle) { public IStatus run(IProgressMonitor monitor) { ProvUI.startBatchOperation(); try { URI[] currentlyEnabled = ProvisioningUti...
diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/ChangeSetTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/ChangeSetTest.java index f41cc916e0..71373a7ac4 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/ChangeSetTest.java +++ b/drools-decisionta...
true
true
public void testIntegregation() { KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); kbuilder.add( ResourceFactory.newClassPathResource( "changeset1Test.xml", getClass()), ResourceType.ChangeSet ); assertFalse( kbuilder.hasErrors() ); KnowledgeBase kbase = Kno...
public void testIntegregation() { KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); kbuilder.add( ResourceFactory.newClassPathResource( "changeset1Test.xml", getClass()), ResourceType.CHANGE_SET ); assertFalse( kbuilder.hasErrors() ); KnowledgeBase kbase = Kn...
diff --git a/src/net/azib/photos/RequestRouter.java b/src/net/azib/photos/RequestRouter.java index 27835ff..f4dea2c 100644 --- a/src/net/azib/photos/RequestRouter.java +++ b/src/net/azib/photos/RequestRouter.java @@ -1,110 +1,110 @@ package net.azib.photos; import com.google.gdata.data.BaseFeed; import com.google....
true
true
public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response = (HttpServletResponse) resp; String path = request.getServletPath(); String b...
public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response = (HttpServletResponse) resp; String path = request.getServletPath(); String b...