Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/ca/agnate/EconXP/EconXP.java b/src/ca/agnate/EconXP/EconXP.java index 8e1b49e..1b5ea7f 100644 --- a/src/ca/agnate/EconXP/EconXP.java +++ b/src/ca/agnate/EconXP/EconXP.java @@ -1,352 +1,359 @@ package ca.agnate.EconXP; import java.util.LinkedList; import java.util.List; import org.bukkit.ChatCol...
false
true
public void onEnable() { // Add in permission node checks for OPs. permissionOPs = new LinkedList<Node>(); permissionOPs.add( Node.ADD ); permissionOPs.add( Node.SUBTRACT ); permissionOPs.add( Node.BALANCE ); permissionOPs.add( Node.CLEAR ); // Setup con...
public void onEnable() { // Add in permission node checks for OPs. permissionOPs = new LinkedList<Node>(); permissionOPs.add( Node.ADD ); permissionOPs.add( Node.SUBTRACT ); permissionOPs.add( Node.BALANCE ); permissionOPs.add( Node.BALANCESELF ); permissionOPs.a...
diff --git a/msv/src/com/sun/msv/reader/relax/core/InlineElementState.java b/msv/src/com/sun/msv/reader/relax/core/InlineElementState.java index d61b5d2b..397952e0 100644 --- a/msv/src/com/sun/msv/reader/relax/core/InlineElementState.java +++ b/msv/src/com/sun/msv/reader/relax/core/InlineElementState.java @@ -1,118 +1,...
true
true
protected Expression makeExpression() { try { final RELAXCoreReader reader = (RELAXCoreReader)this.reader; final String name = startTag.getAttribute("name"); if( name==null ) { reader.reportError( reader.ERR_MISSING_ATTRIBUTE, "element","name" ); // recover by ignoring this element. return ...
protected Expression makeExpression() { try { final RELAXCoreReader reader = (RELAXCoreReader)this.reader; final String name = startTag.getAttribute("name"); if( name==null ) { reader.reportError( reader.ERR_MISSING_ATTRIBUTE, "element","name" ); // recover by ignoring this element. return ...
diff --git a/src/java/com/stackframe/sarariman/tickets/StatusChangeHandler.java b/src/java/com/stackframe/sarariman/tickets/StatusChangeHandler.java index 48e0e24..48fa1fb 100644 --- a/src/java/com/stackframe/sarariman/tickets/StatusChangeHandler.java +++ b/src/java/com/stackframe/sarariman/tickets/StatusChangeHandler....
true
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { int ticket = Integer.parseInt(request.getParameter("id")); String status = request.getParameter("status"); Employee employee = (Employee)request.getAttribute("user"); ...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { int ticket = Integer.parseInt(request.getParameter("id")); String status = request.getParameter("status"); Employee employee = (Employee)request.getAttribute("user"); ...
diff --git a/application/src/nl/sogeti/android/gpstracker/viewer/TrackList.java b/application/src/nl/sogeti/android/gpstracker/viewer/TrackList.java index 28a180a7..8e2cf7e0 100644 --- a/application/src/nl/sogeti/android/gpstracker/viewer/TrackList.java +++ b/application/src/nl/sogeti/android/gpstracker/viewer/TrackLis...
false
true
public void run() { int eventType; ContentValues lastPosition = null; Vector<ContentValues> bulk = new Vector<ContentValues>(); boolean speed = false; boolean elevation = false; boolean name = false; boolean time = fal...
public void run() { int eventType; ContentValues lastPosition = null; Vector<ContentValues> bulk = new Vector<ContentValues>(); boolean speed = false; boolean elevation = false; boolean name = false; boolean time = fal...
diff --git a/plugins/org.eclipse.xtend.ide/src/org/eclipse/xtend/ide/highlighting/ShowWhitespaceCharactersActionContributor.java b/plugins/org.eclipse.xtend.ide/src/org/eclipse/xtend/ide/highlighting/ShowWhitespaceCharactersActionContributor.java index f988fee59..1974ae56e 100644 --- a/plugins/org.eclipse.xtend.ide/src...
true
true
public void contributeActions(XtextEditor editor) { IAction action = editor.getAction(ITextEditorActionConstants.SHOW_WHITESPACE_CHARACTERS); action.setImageDescriptor(ImageDescriptor.createFromImage(imageHelper .getImage("full/etool16/show_whitespace_chars.gif"))); action.setDisabledImageDescriptor(ImageDes...
public void contributeActions(XtextEditor editor) { IAction action = editor.getAction(ITextEditorActionConstants.SHOW_WHITESPACE_CHARACTERS); action.setImageDescriptor(ImageDescriptor.createFromImage(imageHelper .getImage("full/etool16/show_whitespace_chars.gif"))); action.setDisabledImageDescriptor(ImageDes...
diff --git a/src/ch/amana/android/cputuner/provider/db/DBBackendTrigger.java b/src/ch/amana/android/cputuner/provider/db/DBBackendTrigger.java index dbedd03f..a197e3fe 100644 --- a/src/ch/amana/android/cputuner/provider/db/DBBackendTrigger.java +++ b/src/ch/amana/android/cputuner/provider/db/DBBackendTrigger.java @@ -1...
true
true
public static Cursor query(OpenHelper openHelper, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); qb.setTables(DB.Trigger.TABLE_NAME); qb.setProjectionMap(sTriggerProjectionMap); switch (sUriMatcher.match(uri)) { c...
public static Cursor query(OpenHelper openHelper, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); qb.setTables(DB.Trigger.TABLE_NAME); qb.setProjectionMap(sTriggerProjectionMap); switch (sUriMatcher.match(uri)) { c...
diff --git a/src/net/_87k/blog/Path.java b/src/net/_87k/blog/Path.java index 781fdb2..7f5e09c 100644 --- a/src/net/_87k/blog/Path.java +++ b/src/net/_87k/blog/Path.java @@ -1,175 +1,175 @@ package net._87k.blog; import java.util.Calendar; import java.util.Date; import java.util.logging.Logger; import com.googl...
true
true
Path(String path) { if (path == null) { return; } String[] parts = path.split("/"); try { calendar = Calendar.getInstance(); int y = 0; int m = 0; int d = 1; if (parts.length > 1) { y = Integer.parseInt(parts[1]); if (y < 1999 || y ...
Path(String path) { if (path == null) { return; } String[] parts = path.split("/"); try { calendar = Calendar.getInstance(); int y = 0; int m = 0; int d = 1; if (parts.length > 1) { y = Integer.parseInt(parts[1]); if (y < 1998 || y ...
diff --git a/src/edu/jas/ufd/GreatestCommonDivisorAbstract.java b/src/edu/jas/ufd/GreatestCommonDivisorAbstract.java index a534e4ff..a83f6ec3 100644 --- a/src/edu/jas/ufd/GreatestCommonDivisorAbstract.java +++ b/src/edu/jas/ufd/GreatestCommonDivisorAbstract.java @@ -1,928 +1,930 @@ /* * $Id$ */ package edu.jas....
false
true
public SortedMap<GenPolynomial<GenPolynomial<C>>,Long> recursiveSquarefreeFactors( GenPolynomial<GenPolynomial<C>> P ) { SortedMap<GenPolynomial<GenPolynomial<C>>,Long> sfactors = new TreeMap<GenPolynomial<GenPolynomial<C>>,Long>(); if (P == null || P.isZERO()) { retu...
public SortedMap<GenPolynomial<GenPolynomial<C>>,Long> recursiveSquarefreeFactors( GenPolynomial<GenPolynomial<C>> P ) { SortedMap<GenPolynomial<GenPolynomial<C>>,Long> sfactors = new TreeMap<GenPolynomial<GenPolynomial<C>>,Long>(); if (P == null || P.isZERO()) { retu...
diff --git a/src/net/leifandersen/mobile/android/netcatch/recievers/BootCompletedReceiver.java b/src/net/leifandersen/mobile/android/netcatch/recievers/BootCompletedReceiver.java index 5551b2f..99431a9 100644 --- a/src/net/leifandersen/mobile/android/netcatch/recievers/BootCompletedReceiver.java +++ b/src/net/leifander...
true
true
private void startAlarms() { // Sleep for 30 seconds (to let system get network started) try { Thread.sleep(30000); } catch (InterruptedException e) { Log.e("BootCompletedReceiver", "Interupted, continuting on with work"); } Log.w("BootCompletedREceiver", "Starting up subscriptionAlarms"); ...
private void startAlarms() { // Sleep for 30 seconds (to let system get network started) try { Thread.sleep(30000); } catch (InterruptedException e) { Log.e("BootCompletedReceiver", "Interupted, continuting on with work"); } Log.w("BootCompletedReceiver", "Starting up subscriptionAlarms"); ...
diff --git a/src/state/World.java b/src/state/World.java index 84bd860..5e095fc 100644 --- a/src/state/World.java +++ b/src/state/World.java @@ -1,81 +1,81 @@ package state; import java.awt.Image; import java.util.ArrayList; import java.util.Random; public class World { private Tile[][] worldTile; privat...
false
true
public boolean addStructure(Structure s) { int x = s.getX(), y = s.getY(), w = s.getWidth(), h = s.getHeight(); if(x < 0 || y < 0 || x+w > getXSize() || y+h > getYSize()) return false; // check for overlap for(int X = 0; X < w; X++) for(int Y = 0; Y < h; Y++) if(worldTile[x][y].getStructure() != nu...
public boolean addStructure(Structure s) { int x = s.getX(), y = s.getY(), w = s.getWidth(), h = s.getHeight(); if(x-w < -1 || y-h < -1 || x >= getXSize() || y >= getYSize()) return false; // check for overlap for(int X = 0; X < w; X++) for(int Y = 0; Y < h; Y++) if(worldTile[x-X][y-Y].getStructure...
diff --git a/src/com/android/browser/IntentHandler.java b/src/com/android/browser/IntentHandler.java index 9f054990..e32f871d 100644 --- a/src/com/android/browser/IntentHandler.java +++ b/src/com/android/browser/IntentHandler.java @@ -1,390 +1,390 @@ /* * Copyright (C) 2010 The Android Open Source Project * * Li...
true
true
void onNewIntent(Intent intent) { Tab current = mTabControl.getCurrentTab(); // When a tab is closed on exit, the current tab index is set to -1. // Reset before proceed as Browser requires the current tab to be set. if (current == null) { // Try to reset the tab in case ...
void onNewIntent(Intent intent) { Tab current = mTabControl.getCurrentTab(); // When a tab is closed on exit, the current tab index is set to -1. // Reset before proceed as Browser requires the current tab to be set. if (current == null) { // Try to reset the tab in case ...
diff --git a/Net/src/edu/uw/cs/cse461/Net/Base/UDPDataThread.java b/Net/src/edu/uw/cs/cse461/Net/Base/UDPDataThread.java index 9b39ba6..c205905 100644 --- a/Net/src/edu/uw/cs/cse461/Net/Base/UDPDataThread.java +++ b/Net/src/edu/uw/cs/cse461/Net/Base/UDPDataThread.java @@ -1,138 +1,139 @@ package edu.uw.cs.cse461.Net.B...
true
true
public void run() { //attempt to set up socket on target port number try { _dSocket = new DatagramSocket(_portNumber); } catch (Exception e) { e.printStackTrace(); return; } //attempt to set the timeout between successive checks of _timeToClose flag try { _dSocket.setSoTimeout(_timeOut); }...
public void run() { //attempt to set up socket on target port number try { _dSocket = new DatagramSocket(_portNumber); } catch (Exception e) { e.printStackTrace(); return; } //attempt to set the timeout between successive checks of _timeToClose flag try { _dSocket.setSoTimeout(_timeOut); }...
diff --git a/src/admin/MainFrame.java b/src/admin/MainFrame.java index c8efa11..ad0512c 100644 --- a/src/admin/MainFrame.java +++ b/src/admin/MainFrame.java @@ -1,332 +1,332 @@ package admin; import java.awt.BorderLayout; import java.awt.Component; import java.awt.Dimension; import java.awt.Toolkit; import java...
true
true
public MainFrame() { GameData g = GameData.initGameData(); Settings s = Settings.initSettingsData(); initMenuBar(); if (g != null) initGUI(); else initSeasonCreateGUI(); if (s == null) s = new Settings("Snow"); applyTheme(); this.setSize(640, 480); this.setVisible(true); this.set...
public MainFrame() { GameData g = GameData.initGameData(); Settings s = Settings.initSettingsData(); initMenuBar(); if (g != null) initGUI(); else initSeasonCreateGUI(); if (s == null) s = new Settings("Snow"); applyTheme(); this.setSize(640, 480); this.setVisible(true); this.set...
diff --git a/src/com/android/email/mail/store/WebDavStore.java b/src/com/android/email/mail/store/WebDavStore.java index 9dd1955d..a6301e3a 100644 --- a/src/com/android/email/mail/store/WebDavStore.java +++ b/src/com/android/email/mail/store/WebDavStore.java @@ -1,1863 +1,1863 @@ package com.android.email.mail.store; ...
true
true
public CookieStore doAuthentication(String username, String password, String url) throws IOException, MessagingException { String authPath = "/exchweb/bin/auth/owaauth.dll"; CookieStore cookies = null; String[] urlParts = url.split("/"); String...
public CookieStore doAuthentication(String username, String password, String url) throws IOException, MessagingException { String authPath = "/exchweb/bin/auth/owaauth.dll"; CookieStore cookies = null; String[] urlParts = url.split("/"); String...
diff --git a/java/src/ShortestHamiltonianPath.java b/java/src/ShortestHamiltonianPath.java index f3968ad..9a4d4cd 100644 --- a/java/src/ShortestHamiltonianPath.java +++ b/java/src/ShortestHamiltonianPath.java @@ -1,55 +1,55 @@ import java.util.*; public class ShortestHamiltonianPath { public static int getShort...
false
true
public static int getShortestHamiltonianPath(int[][] dist) { int n = dist.length; int[][] dp = new int[1 << n][n]; for (int[] d : dp) Arrays.fill(d, Integer.MAX_VALUE / 2); for (int i = 0; i < n; i++) dp[1 << i][i] = 0; for (int mask = 0; mask < 1 << n; mask++) { for (int i = 0; i < n; i++) { if...
public static int getShortestHamiltonianPath(int[][] dist) { int n = dist.length; int[][] dp = new int[1 << n][n]; for (int[] d : dp) Arrays.fill(d, Integer.MAX_VALUE / 2); for (int i = 0; i < n; i++) dp[1 << i][i] = 0; for (int mask = 0; mask < 1 << n; mask++) { for (int i = 0; i < n; i++) { if...
diff --git a/src2/cs5625/deferred/materials/ReflectionMaterial.java b/src2/cs5625/deferred/materials/ReflectionMaterial.java index d54cbb0..446fb60 100644 --- a/src2/cs5625/deferred/materials/ReflectionMaterial.java +++ b/src2/cs5625/deferred/materials/ReflectionMaterial.java @@ -1,81 +1,81 @@ package cs5625.deferred....
true
true
public void bind(GL2 gl) throws OpenGLException { /* Bind shader, and any textures, and update uniforms. */ getShaderProgram().bind(gl); // TODO PA2: Set shader uniforms //mCubeMap.bind(gl, 0); gl.glUniform1f(mCubeMapIndexUniformLocation, mCubeMap.mCubeMapIndex); }
public void bind(GL2 gl) throws OpenGLException { /* Bind shader, and any textures, and update uniforms. */ getShaderProgram().bind(gl); // TODO PA2: Set shader uniforms //mCubeMap.bind(gl, 0); gl.glUniform1i(mCubeMapIndexUniformLocation, mCubeMap.mCubeMapIndex); }
diff --git a/impl/src/main/java/org/jboss/seam/security/management/picketlink/IdentitySessionProducer.java b/impl/src/main/java/org/jboss/seam/security/management/picketlink/IdentitySessionProducer.java index a4208c0..a4927f5 100644 --- a/impl/src/main/java/org/jboss/seam/security/management/picketlink/IdentitySessionP...
true
true
public void init() throws IdentityConfigurationException, IdentityException { IdentityConfigurationMetaDataImpl metadata = new IdentityConfigurationMetaDataImpl(); // Create the identity store configuration List<IdentityStoreConfigurationMetaData> stores = new ArrayList<IdentityStoreConfigurati...
public void init() throws IdentityConfigurationException, IdentityException { IdentityConfigurationMetaDataImpl metadata = new IdentityConfigurationMetaDataImpl(); // Create the identity store configuration List<IdentityStoreConfigurationMetaData> stores = new ArrayList<IdentityStoreConfigurati...
diff --git a/src/jvm/com/twitter/maple/jdbc/TupleRecord.java b/src/jvm/com/twitter/maple/jdbc/TupleRecord.java index 21a3208..12353bf 100644 --- a/src/jvm/com/twitter/maple/jdbc/TupleRecord.java +++ b/src/jvm/com/twitter/maple/jdbc/TupleRecord.java @@ -1,52 +1,52 @@ /* * Copyright (c) 2009 Concurrent, Inc. * * T...
true
true
public void readFields( ResultSet resultSet ) throws SQLException { tuple = new Tuple(); for( int i = 0; i < resultSet.getMetaData().getColumnCount(); i++ ) tuple.add( (Comparable) resultSet.getObject( i + 1 ) ); }
public void readFields( ResultSet resultSet ) throws SQLException { tuple = new Tuple(); for( int i = 0; i < resultSet.getMetaData().getColumnCount(); i++ ) tuple.add( resultSet.getObject( i + 1 ) ); }
diff --git a/ShoppingList/src/org/openintents/shopping/ShoppingActivity.java b/ShoppingList/src/org/openintents/shopping/ShoppingActivity.java index e4d699d6..34027941 100644 --- a/ShoppingList/src/org/openintents/shopping/ShoppingActivity.java +++ b/ShoppingList/src/org/openintents/shopping/ShoppingActivity.java @@ -1...
true
true
private void createView() { mSpinnerListFilter = (Spinner) findViewById(R.id.spinner_listfilter); mSpinnerListFilter .setOnItemSelectedListener(new OnItemSelectedListener() { public void onItemSelected(AdapterView parent, View v, int position, long id) { Log.d(TAG, "Spinner: onItemSelecte...
private void createView() { mSpinnerListFilter = (Spinner) findViewById(R.id.spinner_listfilter); mSpinnerListFilter .setOnItemSelectedListener(new OnItemSelectedListener() { public void onItemSelected(AdapterView parent, View v, int position, long id) { Log.d(TAG, "Spinner: onItemSelecte...
diff --git a/src/java/org/infoglue/cms/jobs/SubscriptionsJob.java b/src/java/org/infoglue/cms/jobs/SubscriptionsJob.java index 3cc96ddf9..790271f0e 100755 --- a/src/java/org/infoglue/cms/jobs/SubscriptionsJob.java +++ b/src/java/org/infoglue/cms/jobs/SubscriptionsJob.java @@ -1,233 +1,233 @@ /* =======================...
true
true
private void handleExpirationEvents(PropertySet ps, int numberOfDays) throws Exception, ConstraintException, SystemException, Bug { List<SiteNodeVO> upcomingSiteNodes = SiteNodeController.getController().getUpcomingExpiringSiteNodes(numberOfDays); Iterator<SiteNodeVO> upcomingSiteNodesIterator = upcomingSiteNodes...
private void handleExpirationEvents(PropertySet ps, int numberOfDays) throws Exception, ConstraintException, SystemException, Bug { List<SiteNodeVO> upcomingSiteNodes = SiteNodeController.getController().getUpcomingExpiringSiteNodes(numberOfDays); Iterator<SiteNodeVO> upcomingSiteNodesIterator = upcomingSiteNodes...
diff --git a/ttools/src/main/uk/ac/starlink/ttools/plot/Plot3D.java b/ttools/src/main/uk/ac/starlink/ttools/plot/Plot3D.java index 29153a752..fb78e99f0 100644 --- a/ttools/src/main/uk/ac/starlink/ttools/plot/Plot3D.java +++ b/ttools/src/main/uk/ac/starlink/ttools/plot/Plot3D.java @@ -1,836 +1,836 @@ package uk.ac.star...
true
true
private void drawData( Graphics g, Component c ) { /* Prepare data. */ Plot3DState state = (Plot3DState) getState(); if ( state == null || ! state.getValid() ) { return; } PlotData data = state.getPlotData(); if ( data == null ) { return; ...
private void drawData( Graphics g, Component c ) { /* Prepare data. */ Plot3DState state = (Plot3DState) getState(); if ( state == null || ! state.getValid() ) { return; } PlotData data = state.getPlotData(); if ( data == null ) { return; ...
diff --git a/ini/trakem2/display/graphics/TestGraphicsSource.java b/ini/trakem2/display/graphics/TestGraphicsSource.java index d5b521ab..74d52ae0 100644 --- a/ini/trakem2/display/graphics/TestGraphicsSource.java +++ b/ini/trakem2/display/graphics/TestGraphicsSource.java @@ -1,42 +1,42 @@ package ini.trakem2.display.gr...
true
true
public Collection<? extends Paintable> asPaintable(final Collection<? extends Paintable> ds) { final ArrayList<Paintable> a = new ArrayList<Paintable>(); for (final Paintable p : ds) { if (p instanceof Patch) { final Paintable pa = new Paintable() { public void paint(Graphics2D g, double magnification,...
public Collection<? extends Paintable> asPaintable(final Collection<? extends Paintable> ds) { final ArrayList<Paintable> a = new ArrayList<Paintable>(); for (final Paintable p : ds) { if (p instanceof Patch) { final Paintable pa = new Paintable() { public void paint(Graphics2D g, double magnification,...
diff --git a/seadas-reader/src/main/java/gov/nasa/gsfc/seadas/dataio/L1BModisFileReader.java b/seadas-reader/src/main/java/gov/nasa/gsfc/seadas/dataio/L1BModisFileReader.java index fd53d25b..bc6f64d9 100644 --- a/seadas-reader/src/main/java/gov/nasa/gsfc/seadas/dataio/L1BModisFileReader.java +++ b/seadas-reader/src/mai...
true
true
private Map<Band, Variable> addModisBands(Product product, List<Variable> variables) { final int sceneRasterWidth = product.getSceneRasterWidth(); final int sceneRasterHeight = product.getSceneRasterHeight(); Map<Band, Variable> bandToVariableMap = new HashMap<Band, Variable>(); in...
private Map<Band, Variable> addModisBands(Product product, List<Variable> variables) { final int sceneRasterWidth = product.getSceneRasterWidth(); final int sceneRasterHeight = product.getSceneRasterHeight(); Map<Band, Variable> bandToVariableMap = new HashMap<Band, Variable>(); in...
diff --git a/src/com/android/gallery3d/app/PhotoPageBottomControls.java b/src/com/android/gallery3d/app/PhotoPageBottomControls.java index f416fe52..415111fb 100644 --- a/src/com/android/gallery3d/app/PhotoPageBottomControls.java +++ b/src/com/android/gallery3d/app/PhotoPageBottomControls.java @@ -1,135 +1,136 @@ /* ...
true
true
public void refresh() { boolean visible = mDelegate.canDisplayBottomControls(); boolean containerVisibilityChanged = (visible != mContainerVisible); if (containerVisibilityChanged) { if (visible) { show(); } else { hide(); }...
public void refresh() { boolean visible = mDelegate.canDisplayBottomControls(); boolean containerVisibilityChanged = (visible != mContainerVisible); if (containerVisibilityChanged) { if (visible) { show(); } else { hide(); }...
diff --git a/src/main/java/amu/licence/edt/model/dao/jpa/DAOTeacherJPA.java b/src/main/java/amu/licence/edt/model/dao/jpa/DAOTeacherJPA.java index 619b430..c89e3a6 100644 --- a/src/main/java/amu/licence/edt/model/dao/jpa/DAOTeacherJPA.java +++ b/src/main/java/amu/licence/edt/model/dao/jpa/DAOTeacherJPA.java @@ -1,48 +1...
true
true
public List<Teacher> findAvailables(TU tu, Date date, Integer duration) { Query q = entityManager.createNativeQuery("SELECT teacher_busy(?, ?, ?) FROM dual"); q.setParameter(2, date); q.setParameter(3, duration); List<Teacher> availableTeachers = new ArrayList<Teacher>(); fo...
public List<Teacher> findAvailables(TU tu, Date date, Integer duration) { Query q = entityManager.createNativeQuery("SELECT teacher_busy(?1, ?2, ?3) FROM dual"); q.setParameter(2, date); q.setParameter(3, duration); List<Teacher> availableTeachers = new ArrayList<Teacher>(); ...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/MoveUpAction.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/MoveUpAction.java index d75661fb6..887424032 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/MoveUpAction.java +...
true
true
public void run() { List targets = getOrderedSelection(); if (targets.isEmpty()) { return; } int top = 0; int index = 0; List list = getEntiresAsList(); Iterator entries = list.iterator(); while (entries.hasNext()) { Object target = entries.next(); index = list.indexOf(target); if (index > ...
public void run() { List targets = getOrderedSelection(); if (targets.isEmpty()) { return; } int top = 0; int index = 0; List list = getEntiresAsList(); Iterator entries = targets.iterator(); while (entries.hasNext()) { Object target = entries.next(); index = list.indexOf(target); if (index...
diff --git a/test/app/SettingValidatorTest.java b/test/app/SettingValidatorTest.java index 1b4d7ea..2305dbc 100644 --- a/test/app/SettingValidatorTest.java +++ b/test/app/SettingValidatorTest.java @@ -1,94 +1,94 @@ package app; import static org.junit.Assert.*; import static org.junit.matchers.JUnitMatchers.hasIte...
false
true
public static Collection<Object[]> params() { return Arrays.asList(new Object[][] { {true, "1", "1", "false", "http://foo.bar", "a;15,b;14"}, // 0 {false,"1", "1", "false", "http://foo.bar", "5;15,6;14"}, // 1 {false,"0", "1", "false", "http://foo.bar", "a;15,b;14"}, // 2 {false,"-1", "1", "fal...
public static Collection<Object[]> params() { return Arrays.asList(new Object[][] { {true, "1", "1", "false", "http://foo.bar", "a;15,b;14"}, // 0 {false,"1", "1", "false", "http://foo.bar", "5;15,6;14"}, // 1 {false,"0", "1", "false", "http://foo.bar", "a;15,b;14"}, // 2 {false,"-1", "1", "fal...
diff --git a/src/com/android/exchange/service/EmailSyncAdapterService.java b/src/com/android/exchange/service/EmailSyncAdapterService.java index d4d69bcb..93aa0a4b 100644 --- a/src/com/android/exchange/service/EmailSyncAdapterService.java +++ b/src/com/android/exchange/service/EmailSyncAdapterService.java @@ -1,835 +1,...
true
true
public void onPerformSync(final android.accounts.Account acct, final Bundle extras, final String authority, final ContentProviderClient provider, final SyncResult syncResult) { LogUtils.i(TAG, "onPerformSync: %s, %s", acct.toString(), extras.toString()); T...
public void onPerformSync(final android.accounts.Account acct, final Bundle extras, final String authority, final ContentProviderClient provider, final SyncResult syncResult) { LogUtils.i(TAG, "onPerformSync: %s, %s", acct.toString(), extras.toString()); T...
diff --git a/CompactSolarArrays/src/cpw/mods/compactsolars/client/GUISolar.java b/CompactSolarArrays/src/cpw/mods/compactsolars/client/GUISolar.java index a67aa82..3ba114c 100644 --- a/CompactSolarArrays/src/cpw/mods/compactsolars/client/GUISolar.java +++ b/CompactSolarArrays/src/cpw/mods/compactsolars/client/GUISolar....
true
true
protected void drawGuiContainerBackgroundLayer(float f, int i, int j) { GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); mc.renderEngine.bindTexture("/ic2/sprites/GUISolarGenerator.png"); int l = (width - xSize) / 2; int i1 = (height - ySize) / 2; drawTexturedModalRect(l, i1, 0, 0, xSize...
protected void drawGuiContainerBackgroundLayer(float f, int i, int j) { GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); mc.renderEngine.bindTexture("/mods/ic2/textures/gui/GUISolarGenerator.png"); int l = (width - xSize) / 2; int i1 = (height - ySize) / 2; drawTexturedModalRect(l, i1, 0...
diff --git a/src/com/android/settings/wifi/WifiApEnabler.java b/src/com/android/settings/wifi/WifiApEnabler.java index 0496ba73..97221f28 100644 --- a/src/com/android/settings/wifi/WifiApEnabler.java +++ b/src/com/android/settings/wifi/WifiApEnabler.java @@ -1,279 +1,279 @@ /* * Copyright (C) 2010 The Android Open S...
true
true
public void setSoftapEnabled(boolean enable) { final ContentResolver cr = mContext.getContentResolver(); boolean result = false; if (mTransmitPower) { /* Disable here, enabled on receiving success broadcast */ mCheckBox.setEnabled(false); // Change trans...
public void setSoftapEnabled(boolean enable) { final ContentResolver cr = mContext.getContentResolver(); boolean result = false; if (mTransmitPower) { /* Disable here, enabled on receiving success broadcast */ mCheckBox.setEnabled(false); // Change trans...
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java index c1aaded..642d6c5 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java...
true
true
public void onBlockPlace(BlockPlaceEvent event) { if (event.isCancelled()) return; initialize(); ItemStack item = event.getItemInHand(); User user = User.get(event.getPlayer()); if (EssentialsProtect.playerSettings.get("protect.disable.build") && !user.canBuild()) { if(Essentials.getSettings().warnOnB...
public void onBlockPlace(BlockPlaceEvent event) { if (event.isCancelled()) return; initialize(); ItemStack item = event.getItemInHand(); User user = User.get(event.getPlayer()); if (EssentialsProtect.playerSettings.get("protect.disable.build") && !user.canBuild()) { if(Essentials.getSettings().warnOnB...
diff --git a/src/main/java/com/chrischurchwell/radioheadlazershow/RadioheadLazerShow.java b/src/main/java/com/chrischurchwell/radioheadlazershow/RadioheadLazerShow.java index 6e4732b..5ace179 100644 --- a/src/main/java/com/chrischurchwell/radioheadlazershow/RadioheadLazerShow.java +++ b/src/main/java/com/chrischurchwel...
true
true
public void onEnable() { //double check for spout. if (!Bukkit.getPluginManager().isPluginEnabled("Spout")) { Bukkit.getLogger().log(Level.WARNING, "[JukeBukkit] Could not start: SpoutPlugin not found. SpoutPlugin is required for JukeBukkit to operate."); setEnabled(false); return; } instance = ...
public void onEnable() { //double check for spout. if (!Bukkit.getPluginManager().isPluginEnabled("Spout")) { Bukkit.getLogger().log(Level.WARNING, "[RadioHeadLazerShow] Could not start: SpoutPlugin not found. SpoutPlugin is required for JukeBukkit to operate."); setEnabled(false); return; } ins...
diff --git a/application/app/controllers/UserController.java b/application/app/controllers/UserController.java index e4b8bd8f..112b23b9 100644 --- a/application/app/controllers/UserController.java +++ b/application/app/controllers/UserController.java @@ -1,202 +1,202 @@ package controllers; import java.security.NoS...
false
true
public static Result register(){ // Bind play form request. Form<Register> registerForm = form(Register.class).bindFromRequest(); Pattern pattern = Pattern.compile("[^a-z ]", Pattern.CASE_INSENSITIVE); Matcher matcher = pattern.matcher(registerForm.get().name); List<Link> breadcrumbs = new ArrayList<Link>();...
public static Result register(){ // Bind play form request. Form<Register> registerForm = form(Register.class).bindFromRequest(); Pattern pattern = Pattern.compile("[^a-z ]", Pattern.CASE_INSENSITIVE); Matcher matcher = pattern.matcher(registerForm.get().name); List<Link> breadcrumbs = new ArrayList<Link>();...
diff --git a/InvPotionEffects/src/com/glen3b/plugin/invpotions/InventoryPotionEffects.java b/InvPotionEffects/src/com/glen3b/plugin/invpotions/InventoryPotionEffects.java index 07ac710..1aad3d5 100644 --- a/InvPotionEffects/src/com/glen3b/plugin/invpotions/InventoryPotionEffects.java +++ b/InvPotionEffects/src/com/glen...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if (cmd.getName().equalsIgnoreCase("invpotions")){ if(args.length > 2){ sender.sendMessage("§cToo many arguments."); return false; }if(args.length < 1){ sender.sendMessage("§cToo few argu...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if (cmd.getName().equalsIgnoreCase("invpotions")){ if(args.length < 1){ sender.sendMessage("§cToo few arguments."); return false; } if(args[0].equalsIgnoreCase("reload")){ this.r...
diff --git a/com.eclipsesource.jshint/src/com/eclipsesource/jshint/JSHint.java b/com.eclipsesource.jshint/src/com/eclipsesource/jshint/JSHint.java index 402a693..670e7ca 100644 --- a/com.eclipsesource.jshint/src/com/eclipsesource/jshint/JSHint.java +++ b/com.eclipsesource.jshint/src/com/eclipsesource/jshint/JSHint.java...
true
true
public boolean check( String code, ProblemHandler handler ) { Context context = Context.enter(); boolean result; try { ScriptableObject scope = context.initStandardObjects(); Object[] args = new Object[] { code, opts }; try { result = ( (Boolean)jshint.call( context, scope, null,...
public boolean check( String code, ProblemHandler handler ) { Context context = Context.enter(); boolean result; try { ScriptableObject scope = context.initStandardObjects(); Object[] args = new Object[] { code, opts }; try { result = ( (Boolean)jshint.call( context, scope, null,...
diff --git a/agentspring-engine/src/main/java/agentspring/lod/LODFactory.java b/agentspring-engine/src/main/java/agentspring/lod/LODFactory.java index 5655903..885f8a1 100644 --- a/agentspring-engine/src/main/java/agentspring/lod/LODFactory.java +++ b/agentspring-engine/src/main/java/agentspring/lod/LODFactory.java @@ ...
true
true
private void createObjects(String prefix) { AutowireCapableBeanFactory factory = applicationContext.getAutowireCapableBeanFactory(); // scan for classes annotated with LODType Reflections reflections = new Reflections(new ConfigurationBuilder() .filterInputsBy(new FilterBuil...
private void createObjects(String prefix) { AutowireCapableBeanFactory factory = applicationContext.getAutowireCapableBeanFactory(); // scan for classes annotated with LODType Reflections reflections = new Reflections(new ConfigurationBuilder() .filterInputsBy(new FilterBuil...
diff --git a/src/main/java/org/neo4j/gis/spatial/indexprovider/LayerNodeIndex.java b/src/main/java/org/neo4j/gis/spatial/indexprovider/LayerNodeIndex.java index d23e625..5afdc26 100644 --- a/src/main/java/org/neo4j/gis/spatial/indexprovider/LayerNodeIndex.java +++ b/src/main/java/org/neo4j/gis/spatial/indexprovider/Lay...
false
true
public IndexHits<Node> query( String key, Object params ) { IndexHits<Node> results = new SpatialRecordHits( new ArrayList<SpatialDatabaseRecord>() ); // System.out.println( key + "," + params ); if ( key.equals( WITHIN_QUERY ) ) { Map<?, ?> p = (Map<?, ?>) params; ...
public IndexHits<Node> query( String key, Object params ) { IndexHits<Node> results = new SpatialRecordHits( new ArrayList<SpatialDatabaseRecord>() ); // System.out.println( key + "," + params ); if ( key.equals( WITHIN_QUERY ) ) { Map<?, ?> p = (Map<?, ?>) params; ...
diff --git a/org.dawnsci.slicing/src/org/dawnsci/slicing/component/SpanEditingSupport.java b/org.dawnsci.slicing/src/org/dawnsci/slicing/component/SpanEditingSupport.java index 220485eac..dcf2cf425 100644 --- a/org.dawnsci.slicing/src/org/dawnsci/slicing/component/SpanEditingSupport.java +++ b/org.dawnsci.slicing/src/o...
true
true
protected CellEditor getCellEditor(final Object element) { try { final SpinnerCellEditor ret = new SpinnerCellEditor(((TableViewer)getViewer()).getTable(), SWT.BORDER); final DimsData data = (DimsData)element; int dimension = data.getDimension(); ret.setMinimum(1); final int max = LazyDataset.getMaxS...
protected CellEditor getCellEditor(final Object element) { try { final SpinnerCellEditor ret = new SpinnerCellEditor(((TableViewer)getViewer()).getTable(), SWT.BORDER); final DimsData data = (DimsData)element; int dimension = data.getDimension(); ret.setMinimum(1); final int max = (int)Math.round(Laz...
diff --git a/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/util/CollectionProtocolEventComparator.java b/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/util/CollectionProtocolEventComparator.java index 9ed7f9a10..705901892 100644 --- a/software/caTissue/modules/core/src/main/j...
false
true
public int compare(Object arg0, Object arg1) { int returnVal=0; if(arg0 instanceof CollectionProtocolEvent && arg1 instanceof CollectionProtocolEvent) { CollectionProtocolEvent collectionProtocolEventFirst = (CollectionProtocolEvent)arg0; CollectionProtocolEvent collectionProtocolEventSec = (CollectionPr...
public int compare(Object arg0, Object arg1) { int returnVal=0; if(arg0 instanceof CollectionProtocolEvent && arg1 instanceof CollectionProtocolEvent) { CollectionProtocolEvent collectionProtocolEventFirst = (CollectionProtocolEvent)arg0; CollectionProtocolEvent collectionProtocolEventSec = (CollectionPr...
diff --git a/mmstudio/src/org/micromanager/utils/StatePresetCellEditor.java b/mmstudio/src/org/micromanager/utils/StatePresetCellEditor.java index 7333c16f4..324fd47d2 100644 --- a/mmstudio/src/org/micromanager/utils/StatePresetCellEditor.java +++ b/mmstudio/src/org/micromanager/utils/StatePresetCellEditor.java @@ -1,1...
true
true
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int rowIndex, int vColIndex) { if (isSelected) { // cell (and perhaps other cells) are selected } StateTableData data = (StateTableData) table.getModel(); item_ = da...
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int rowIndex, int vColIndex) { if (isSelected) { // cell (and perhaps other cells) are selected } StateTableData data = (StateTableData) table.getModel(); item_ = da...
diff --git a/src_lib/yang/graphics/skeletons/pose/PositionPosture3D.java b/src_lib/yang/graphics/skeletons/pose/PositionPosture3D.java index e96bf2f3..9ee6a64b 100644 --- a/src_lib/yang/graphics/skeletons/pose/PositionPosture3D.java +++ b/src_lib/yang/graphics/skeletons/pose/PositionPosture3D.java @@ -1,95 +1,96 @@ pa...
true
true
public void applyPosture(MassAggregation skeleton, PositionPosture3D interpolationPose, float weight) { int c = 0; final float dWeight = 1-weight; for(final Joint joint:skeleton.mJoints) { if(joint.mAnimate) { if(mData[c]!=Float.MAX_VALUE || joint.mParent!=null) { if(joint.mAnimDisabled || mData[c]==...
public void applyPosture(MassAggregation skeleton, PositionPosture3D interpolationPose, float weight) { int c = 0; final float dWeight = 1-weight; for(final Joint joint:skeleton.mJoints) { if(joint.mAnimate) { if(mData[c]!=Float.MAX_VALUE || joint.mParent!=null) { if(joint.mAnimDisabled || mData[c]==...
diff --git a/src/main/java/org/openengsb/xlinkSQLViewer/xlink/OpenEngSBConnectionManager.java b/src/main/java/org/openengsb/xlinkSQLViewer/xlink/OpenEngSBConnectionManager.java index c4955db..7299a29 100644 --- a/src/main/java/org/openengsb/xlinkSQLViewer/xlink/OpenEngSBConnectionManager.java +++ b/src/main/java/org/op...
true
true
public void connectToOpenEngSbWithXLink(SqlViewerGUI gui) throws JMSException, ConnectorValidationFailedException { /*Create/Register the connector*/ jmsConfig = new JmsProtocolHandler(xlinkBaseUrl); domainFactory = new ProxyConnectorFactory(jmsConfig, openengsbUser, new Password(openengsbPassword));...
public void connectToOpenEngSbWithXLink(SqlViewerGUI gui) throws JMSException, ConnectorValidationFailedException { /*Create/Register the connector*/ jmsConfig = new JmsProtocolHandler(xlinkBaseUrl, "sample-xlink-java-client"); domainFactory = new ProxyConnectorFactory(jmsConfig, openengsbUser,...
diff --git a/src/main/java/uk/co/uwcs/choob/modules/ChoobURLStreamHandler.java b/src/main/java/uk/co/uwcs/choob/modules/ChoobURLStreamHandler.java index cee25bc..7aa02ce 100644 --- a/src/main/java/uk/co/uwcs/choob/modules/ChoobURLStreamHandler.java +++ b/src/main/java/uk/co/uwcs/choob/modules/ChoobURLStreamHandler.java...
true
true
protected URLConnection openConnection(URL u) throws IOException { final String path = u.getPath(); { final URL resource = ChoobURLStreamHandler.class.getResource(path); if (null != resource) return resource.openConnection(); } for (File sourcePath : new File[] { new File("src/main/plugins-alph...
protected URLConnection openConnection(URL u) throws IOException { final String path = u.getPath(); { final URL resource = ChoobURLStreamHandler.class.getResource(path); if (null != resource) return resource.openConnection(); } for (File sourcePath : new File[] { new File("main/plugins-alpha"),...
diff --git a/dspace-rest/src/test/java/uk/ac/jorum/integration/RestApiTest.java b/dspace-rest/src/test/java/uk/ac/jorum/integration/RestApiTest.java index e67ac8c..0163c77 100644 --- a/dspace-rest/src/test/java/uk/ac/jorum/integration/RestApiTest.java +++ b/dspace-rest/src/test/java/uk/ac/jorum/integration/RestApiTest....
true
true
public void emptyCommunitiesList() throws Exception { loadFixture("emptyDatabase"); String result = makeRequest("/communities"); assertThat(result, containsString("communities")); }
public void emptyCommunitiesList() throws Exception { loadFixture("emptyDatabase"); String result = makeRequest("/communities"); assertThat(result, containsString("\"communities_collection\": [\n\n]}")); }
diff --git a/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/HRMControllerObservable.java b/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/HRMControllerObservable.java index 352b37ac..03bd5c1a 100644 --- a/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/HRMControllerObservable...
true
true
public void notifyObservers(Object pArgument) { Logging.log(this, "Got notification with argument " + pArgument + ", will notify " + countObservers() + " observers"); // mark the Observable object as "changed" setChanged(); // notify all registered observers (GUIs) about the change super.notifyObservers...
public void notifyObservers(Object pArgument) { if (HRMConfig.DebugOutput.GUI_NOTIFICATIONS){ Logging.log(this, "Got notification with argument " + pArgument + ", will notify " + countObservers() + " observers"); } // mark the Observable object as "changed" setChanged(); // notify all registered obse...
diff --git a/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/launching/DroolsVMDebugger.java b/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/launching/DroolsVMDebugger.java index 61c97c97..fe34f526 100644 --- a/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/la...
true
true
public void run(VMRunnerConfiguration config, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (monitor == null) { monitor = new NullProgressMonitor(); } IProgressMonitor subMonitor = new SubProgressMonitor(monitor, 1); subMonitor.beginTask(LaunchingM...
public void run(VMRunnerConfiguration config, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (monitor == null) { monitor = new NullProgressMonitor(); } IProgressMonitor subMonitor = new SubProgressMonitor(monitor, 1); subMonitor.beginTask(LaunchingM...
diff --git a/src/Node.java b/src/Node.java index 41510f5..4099eaa 100644 --- a/src/Node.java +++ b/src/Node.java @@ -1,123 +1,123 @@ import java.util.ArrayList; import java.util.HashSet; public class Node { public Criterion m_splitting_criterion; public ArrayList<Entry> m_entries; public Node m_...
true
true
public void split() throws Exception { //Stop at the stopping parameter if (m_entries.size() < m_stoppingParam){ //stop splitting m_label = calculateLabel(m_entries); p_leafNode = true; return; } //find the local best split int bestAttr = -1; int bestValue = -1 * Integer.MAX_VALUE...
public void split() throws Exception { //Stop at the stopping parameter if (m_entries.size() < m_stoppingParam){ //stop splitting m_label = calculateLabel(m_entries); p_leafNode = true; return; } //find the local best split int bestAttr = -1; int bestValue = Integer.MIN_VALUE; ...
diff --git a/src/main/java/hu/sztaki/ilab/longneck/process/block/WeblogLine.java b/src/main/java/hu/sztaki/ilab/longneck/process/block/WeblogLine.java index 7923724..dd54dea 100644 --- a/src/main/java/hu/sztaki/ilab/longneck/process/block/WeblogLine.java +++ b/src/main/java/hu/sztaki/ilab/longneck/process/block/WeblogL...
true
true
public void apply(Record record, VariableSpace parentScope) throws CheckError { for (String fieldName : applyTo) { String value = BlockUtils.getValue(fieldName, record, parentScope); try { logParser.doProcess(record, value); } catch (InputMismatchExcept...
public void apply(Record record, VariableSpace parentScope) throws CheckError { for (String fieldName : applyTo) { String value = BlockUtils.getValue(fieldName, record, parentScope); try { logParser.doProcess(record, value); } catch (InputMismatchExcept...
diff --git a/opentaps/opentaps-common/src/base/org/opentaps/foundation/service/ofbiz/POJOJavaEngine.java b/opentaps/opentaps-common/src/base/org/opentaps/foundation/service/ofbiz/POJOJavaEngine.java index 4a0d7d909..58690c96e 100644 --- a/opentaps/opentaps-common/src/base/org/opentaps/foundation/service/ofbiz/POJOJavaE...
false
true
private Object serviceInvoker(String localName, ModelService modelService, Map<String, Object> context) throws GenericServiceException { DispatchContext dctx = dispatcher.getLocalContext(localName); if (modelService == null) { Debug.logError("ERROR: Null Model Service.", module); ...
private Object serviceInvoker(String localName, ModelService modelService, Map<String, Object> context) throws GenericServiceException { DispatchContext dctx = dispatcher.getLocalContext(localName); if (modelService == null) { Debug.logError("ERROR: Null Model Service.", module); ...
diff --git a/src/service/hr/fer/zemris/vhdllab/vhdl/simulations/VcdParser.java b/src/service/hr/fer/zemris/vhdllab/vhdl/simulations/VcdParser.java index b5d2f4d8..b45c9867 100644 --- a/src/service/hr/fer/zemris/vhdllab/vhdl/simulations/VcdParser.java +++ b/src/service/hr/fer/zemris/vhdllab/vhdl/simulations/VcdParser.ja...
true
true
public void parse() { /* Pretrazuje sve do kraja datoteke, tj. polja Stringova. Izmedu svake * tocke u kojima se dogada promjena (tocke tranzicije) cita red po red i * provjerava vrijednosti signala. Ako vrijednost pocinje s slovom 'b' * znaci da slijedi vrijednost vektora iza koj...
public void parse() { /* Pretrazuje sve do kraja datoteke, tj. polja Stringova. Izmedu svake * tocke u kojima se dogada promjena (tocke tranzicije) cita red po red i * provjerava vrijednosti signala. Ako vrijednost pocinje s slovom 'b' * znaci da slijedi vrijednost vektora iza koj...
diff --git a/java/marytts/tools/voiceimport/HnmTimelineMaker.java b/java/marytts/tools/voiceimport/HnmTimelineMaker.java index e4de42f6b..7ca0c9078 100644 --- a/java/marytts/tools/voiceimport/HnmTimelineMaker.java +++ b/java/marytts/tools/voiceimport/HnmTimelineMaker.java @@ -1,429 +1,429 @@ /** * Portions Copyright...
true
true
public boolean compute() { long start = System.currentTimeMillis(); // start timing System.out.println("---- Importing Harmonics plus noise parameters\n\n"); System.out.println("Base directory: " + db.getProp(db.ROOTDIR) + "\n"); /* Export the basename list into...
public boolean compute() { long start = System.currentTimeMillis(); // start timing System.out.println("---- Importing Harmonics plus noise parameters\n\n"); System.out.println("Base directory: " + db.getProp(db.ROOTDIR) + "\n"); /* Export the basename list into...
diff --git a/couteau-context/src/main/java/com/agileapes/couteau/context/impl/SynchronousEventPublisher.java b/couteau-context/src/main/java/com/agileapes/couteau/context/impl/SynchronousEventPublisher.java index 5f47a3f..5ccbb0d 100644 --- a/couteau-context/src/main/java/com/agileapes/couteau/context/impl/SynchronousE...
true
true
public void addEventListener(EventListener<? extends Event> eventListener) { SmartEventListener smartEventListener; if (eventListener instanceof SmartEventListener) { smartEventListener = (SmartEventListener) eventListener; } else { //noinspection unchecked ...
public void addEventListener(EventListener<? extends Event> eventListener) { SmartEventListener smartEventListener; if (eventListener instanceof SmartEventListener) { smartEventListener = (SmartEventListener) eventListener; } else { //noinspection unchecked ...
diff --git a/config/src/main/java/com/typesafe/config/impl/SimpleConfigObject.java b/config/src/main/java/com/typesafe/config/impl/SimpleConfigObject.java index fb3ac60..1977bd1 100644 --- a/config/src/main/java/com/typesafe/config/impl/SimpleConfigObject.java +++ b/config/src/main/java/com/typesafe/config/impl/SimpleC...
true
true
protected void render(StringBuilder sb, int indent, ConfigRenderOptions options) { if (isEmpty()) { sb.append("{}"); } else { boolean outerBraces = indent > 0 || options.getJson(); if (outerBraces) sb.append("{"); if (options.getForma...
protected void render(StringBuilder sb, int indent, ConfigRenderOptions options) { if (isEmpty()) { sb.append("{}"); } else { boolean outerBraces = indent > 0 || options.getJson(); if (outerBraces) sb.append("{"); if (options.getForma...
diff --git a/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest.java b/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest.java index 8f0c42017..f10bf1000 100644 --- a/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/v...
false
true
public void testBlockComment() throws Throwable{ //Test open page openPage(); setEditor(bot.editorByTitle(TEST_PAGE).toTextEditor()); setEditorText(getEditor().getText()); //Test add block comment from Source menu getEditor().navigateTo(22,22); bot.menu("Source").menu("Add Block Comment").c...
public void testBlockComment() throws Throwable{ //Test open page openPage(); setEditor(bot.editorByTitle(TEST_PAGE).toTextEditor()); setEditorText(getEditor().getText()); //Test add block comment from Source menu getEditor().navigateTo(22,22); bot.menu("Source").menu("Add Block Comment").c...
diff --git a/applications/petascope/src/main/java/petascope/wcps/server/core/ScalarExpr.java b/applications/petascope/src/main/java/petascope/wcps/server/core/ScalarExpr.java index 4dff8a60..fa66b23f 100644 --- a/applications/petascope/src/main/java/petascope/wcps/server/core/ScalarExpr.java +++ b/applications/petascop...
true
true
public ScalarExpr(Node node, XmlQuery xq) throws WCPSException, SecoreException { while ((node != null) && node.getNodeName().equals("#" + WcpsConstants.MSG_TEXT)) { node = node.getNextSibling(); } String nodeName = node.getNodeName(); Node childNode = node; whi...
public ScalarExpr(Node node, XmlQuery xq) throws WCPSException, SecoreException { while ((node != null) && node.getNodeName().equals("#" + WcpsConstants.MSG_TEXT)) { node = node.getNextSibling(); } String nodeName = node.getNodeName(); Node childNode = node; whi...
diff --git a/gsf-facades/src/main/java/com/fatwire/gst/foundation/facade/runtag/assetset/GetAttributeValues.java b/gsf-facades/src/main/java/com/fatwire/gst/foundation/facade/runtag/assetset/GetAttributeValues.java index 9afb5c0e..85a284f8 100644 --- a/gsf-facades/src/main/java/com/fatwire/gst/foundation/facade/runtag/...
true
true
public static IList getAttributeValues(ICS ics, AssetId id, String deptype, String locale, String attr, String attrType, String ordering) { // create asset set SetAsset setAsset = new SetAsset(); final String assetSetName = "__AssetSet" + ics.genID(false); setAsset.setNa...
public static IList getAttributeValues(ICS ics, AssetId id, String deptype, String locale, String attr, String attrType, String ordering) { // create asset set SetAsset setAsset = new SetAsset(); final String assetSetName = "__AssetSet" + ics.genID(false); setAsset.setNa...
diff --git a/strategoxt-java-backend/java/runtime/org/strategoxt/lang/compat/sglr/SGLRCompatLibrary.java b/strategoxt-java-backend/java/runtime/org/strategoxt/lang/compat/sglr/SGLRCompatLibrary.java index e457f3c14..13fa3d67f 100644 --- a/strategoxt-java-backend/java/runtime/org/strategoxt/lang/compat/sglr/SGLRCompatLi...
false
true
private void initFilterSettings() { filterSettings.setFilterAny(true); add(new AbstractFilterSetting(filterSettings, "STRSGLR_set_filter_direct_eagernes_on") { // (sic) @Override public void set() { filterSettings.setFilterDirectPreference(true); } }); add(new AbstractFilterSetting(filterSettin...
private void initFilterSettings() { filterSettings.setFilterAny(true); add(new AbstractFilterSetting(filterSettings, "STRSGLR_set_filter_direct_eagernes_on") { // (sic) @Override public void set() { filterSettings.setFilterDirectPreference(true); } }); add(new AbstractFilterSetting(filterSettin...
diff --git a/src/org/nosco/ant/ClassGenerator.java b/src/org/nosco/ant/ClassGenerator.java index 6adb12a..8cd3285 100644 --- a/src/org/nosco/ant/ClassGenerator.java +++ b/src/org/nosco/ant/ClassGenerator.java @@ -1,1032 +1,1049 @@ package org.nosco.ant; import java.io.BufferedReader; import java.io.BufferedWriter;...
true
true
private void generate(String schema, String table, JSONObject columns, JSONArray pks, List<FK> fks, List<FK> fksIn, String dataSourceName, String callbackPackage, JSONObject enums) throws IOException, JSONException { String className = genTableClassName(table); Set<String> pkSet = new HashSet<String>(); i...
private void generate(String schema, String table, JSONObject columns, JSONArray pks, List<FK> fks, List<FK> fksIn, String dataSourceName, String callbackPackage, JSONObject enums) throws IOException, JSONException { String className = genTableClassName(table); Set<String> pkSet = new HashSet<String>(); i...
diff --git a/server/src/main/java/net/jamosa/ixtens/test/server/ServiceHandler.java b/server/src/main/java/net/jamosa/ixtens/test/server/ServiceHandler.java index d9fa36c..8e68c19 100644 --- a/server/src/main/java/net/jamosa/ixtens/test/server/ServiceHandler.java +++ b/server/src/main/java/net/jamosa/ixtens/test/server...
true
true
public void run() { try { ObjectOutputStream out = new ObjectOutputStream(socket.getOutputStream()); ObjectInputStream in = new ObjectInputStream(socket.getInputStream()); log.debug("Connection received from {}", socket.getInetAddress().getHostName()); Reque...
public void run() { try { ObjectOutputStream out = new ObjectOutputStream(socket.getOutputStream()); ObjectInputStream in = new ObjectInputStream(socket.getInputStream()); log.debug("Connection received from {}", socket.getInetAddress().getHostName()); Reque...
diff --git a/src/poker/Hand.java b/src/poker/Hand.java index 16809bf..8936c72 100644 --- a/src/poker/Hand.java +++ b/src/poker/Hand.java @@ -1,194 +1,194 @@ /* * Copyright 2012 Cameron Zemek <grom358@gmail.com>. */ package poker; import java.util.List; /** * A poker hand. * * @author Cameron Zemek <gr...
false
true
static public Hand eval(CardSet cs) { long val = cs.longValue(); long test, mask; // Ace low straight flush for (int i = 0, n = Card.Suit.size; i < n; ++i) { mask = ACE_LOW_STRAIGHT_FLUSH_MASK << i; test = val & mask; if (test == mask) { ...
static public Hand eval(CardSet cs) { long val = cs.longValue(); long test, mask; // Ace low straight flush for (int i = 0, n = Card.Suit.size; i < n; ++i) { mask = ACE_LOW_STRAIGHT_FLUSH_MASK << i; test = val & mask; if (test == mask) { ...
diff --git a/java/test/com/natpryce/pearlfish/example/BasicArithmeticExample.java b/java/test/com/natpryce/pearlfish/example/BasicArithmeticExample.java index 25812d8..8a1b60e 100644 --- a/java/test/com/natpryce/pearlfish/example/BasicArithmeticExample.java +++ b/java/test/com/natpryce/pearlfish/example/BasicArithmetic...
true
true
public void addition() throws IOException { approvals.assertApproved(results( section("basic", scenario("simple add", new Operands(1, 2), BigInteger.valueOf(3)), scenario("zero left", new Operands(0, 2), BigInteger.valueOf(2)), ...
public void addition() throws IOException { approvals.assertApproved(results( section("basic", scenario("simple add", new Operands(1, 2), BigInteger.valueOf(3)), scenario("zero left", new Operands(0, 2), BigInteger.valueOf(2)), ...
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugTest.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugTest.java index 1cc10794f..5c45f954b 100644 --- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugTest.java +++ b/org....
true
true
protected void terminateAndRemove(IJavaDebugTarget debugTarget) { ILaunch launch = debugTarget.getLaunch(); if (debugTarget != null && !debugTarget.isTerminated()) { IPreferenceStore jdiUIPreferences = JDIDebugUIPlugin.getDefault().getPreferenceStore(); boolean suspendOnException = jdiUIPreferences.getBoo...
protected void terminateAndRemove(IJavaDebugTarget debugTarget) { ILaunch launch = debugTarget.getLaunch(); if (debugTarget != null && !(debugTarget.isTerminated() || debugTarget.isDisconnected())) { IPreferenceStore jdiUIPreferences = JDIDebugUIPlugin.getDefault().getPreferenceStore(); boolean suspendOnE...
diff --git a/src/main/java/sorts/impl/SortingImpl.java b/src/main/java/sorts/impl/SortingImpl.java index dafdc0d..37389e8 100644 --- a/src/main/java/sorts/impl/SortingImpl.java +++ b/src/main/java/sorts/impl/SortingImpl.java @@ -1,622 +1,622 @@ package sorts.impl; import static com.google.common.base.Preconditions....
true
true
protected void performAdd(SortableResult id, Iterable<? extends QueryResult<?>> queryResults) throws MutationsRejectedException, TableNotFoundException, IOException { BatchWriter bw = null, metadataBw = null; try { // Add the values of columns to the sortableresult as we want Set<Index>...
protected void performAdd(SortableResult id, Iterable<? extends QueryResult<?>> queryResults) throws MutationsRejectedException, TableNotFoundException, IOException { BatchWriter bw = null, metadataBw = null; try { // Add the values of columns to the sortableresult as we want Set<Index>...
diff --git a/ara-estable/ara-web/src/java/org/inbio/ara/web/gathering/SearchGathering.java b/ara-estable/ara-web/src/java/org/inbio/ara/web/gathering/SearchGathering.java index bd3b717..7a325a4 100644 --- a/ara-estable/ara-web/src/java/org/inbio/ara/web/gathering/SearchGathering.java +++ b/ara-estable/ara-web/src/java/...
true
true
public String searchButton_action() { if (!isValidInput()) { return null; } Hashtable searchCriteria = new Hashtable(); if (txt_identification.getText() != null) { searchCriteria.put("table.id = ", txt_identification.getText().toString...
public String searchButton_action() { if (!isValidInput()) { return null; } Hashtable searchCriteria = new Hashtable(); if (txt_identification.getText() != null) { searchCriteria.put("table.id = ", txt_identification.getText().toString...
diff --git a/src/main/java/org/eleventhlabs/ncomplo/business/services/ScoreboardService.java b/src/main/java/org/eleventhlabs/ncomplo/business/services/ScoreboardService.java index d683529..00330e1 100644 --- a/src/main/java/org/eleventhlabs/ncomplo/business/services/ScoreboardService.java +++ b/src/main/java/org/eleve...
false
true
public List<ScoreboardEntry> computeScoreboard( final Integer leagueId, final Integer roundId, final Locale locale) { final List<ScoreboardEntry> scoreboard = new ArrayList<ScoreboardEntry>(); final League league = this.leagueRepository.findOne(leagueId); final...
public List<ScoreboardEntry> computeScoreboard( final Integer leagueId, final Integer roundId, final Locale locale) { final List<ScoreboardEntry> scoreboard = new ArrayList<ScoreboardEntry>(); final League league = this.leagueRepository.findOne(leagueId); final...
diff --git a/src/main/java/Sirius/server/localserver/user/UserStore.java b/src/main/java/Sirius/server/localserver/user/UserStore.java index 85ddf368..e31919f8 100644 --- a/src/main/java/Sirius/server/localserver/user/UserStore.java +++ b/src/main/java/Sirius/server/localserver/user/UserStore.java @@ -1,360 +1,360 @@ ...
true
true
public UserStore(final DBConnectionPool conPool, final ServerProperties properties) { this.conPool = conPool; this.properties = properties; users = new Vector(100, 100); userGroups = new Vector(10, 10); // userGroupHash = new Hashtable(25); memberships = new Vector(10...
public UserStore(final DBConnectionPool conPool, final ServerProperties properties) { this.conPool = conPool; this.properties = properties; users = new Vector(100, 100); userGroups = new Vector(10, 10); // userGroupHash = new Hashtable(25); memberships = new Vector(10...
diff --git a/hale/eu.esdihumboldt.hale.gmlwriter/src/eu/esdihumboldt/hale/gmlwriter/impl/internal/geometry/StreamGeometryWriter.java b/hale/eu.esdihumboldt.hale.gmlwriter/src/eu/esdihumboldt/hale/gmlwriter/impl/internal/geometry/StreamGeometryWriter.java index 84088aed4..3a6b32bc6 100644 --- a/hale/eu.esdihumboldt.hale...
false
true
public void write(XMLStreamWriter writer, Geometry geometry, TypeDefinition attributeType) throws XMLStreamException { Class<? extends Geometry> geomType = geometry.getClass(); // remember if we already found a solution to this problem DefinitionPath path = restoreCandidate(attributeType, geomType); i...
public void write(XMLStreamWriter writer, Geometry geometry, TypeDefinition attributeType) throws XMLStreamException { Class<? extends Geometry> geomType = geometry.getClass(); // remember if we already found a solution to this problem DefinitionPath path = restoreCandidate(attributeType, geomType); i...
diff --git a/src/main/java/com/clusterclient/Main.java b/src/main/java/com/clusterclient/Main.java index b2d588c..e170416 100644 --- a/src/main/java/com/clusterclient/Main.java +++ b/src/main/java/com/clusterclient/Main.java @@ -1,111 +1,111 @@ package com.clusterclient; import java.io.IOException; import java.uti...
true
true
private static void setUpLogging() { try { FileHandler handler = new FileHandler("logs/log-grabber.log", 100000, 5, true); handler.setFormatter(new SimpleFormatter()); Logger logger = Logger.getLogger("com.dnb.loggrabber"); logger.addHandler(handler); logger.setUseParentHandlers(false); logger...
private static void setUpLogging() { try { FileHandler handler = new FileHandler("logs/log-grabber.log", 100000, 5, true); handler.setFormatter(new SimpleFormatter()); Logger logger = Logger.getLogger("com.clusterclient"); logger.addHandler(handler); logger.setUseParentHandlers(false); logger....
diff --git a/src/net/rptools/maptool/client/MapToolLineParser.java b/src/net/rptools/maptool/client/MapToolLineParser.java index 2f2df62f..cf5a7529 100644 --- a/src/net/rptools/maptool/client/MapToolLineParser.java +++ b/src/net/rptools/maptool/client/MapToolLineParser.java @@ -1,295 +1,294 @@ /* * Licensed under th...
false
true
public String parseLine(Token tokenInContext, String line) throws ParserException { if (line == null) { return ""; } line = line.trim(); if (line.length() == 0) { return ""; } // Keep the same context for this line MapToolVariableResolver resolver = new Ma...
public String parseLine(Token tokenInContext, String line) throws ParserException { if (line == null) { return ""; } line = line.trim(); if (line.length() == 0) { return ""; } // Keep the same context for this line MapToolVariableResolver resolver = new Ma...
diff --git a/extension/wps/wps-core/src/test/java/org/geoserver/wps/gs/ReprojectProcessTest.java b/extension/wps/wps-core/src/test/java/org/geoserver/wps/gs/ReprojectProcessTest.java index cd4a180f3..f0a01f9e9 100644 --- a/extension/wps/wps-core/src/test/java/org/geoserver/wps/gs/ReprojectProcessTest.java +++ b/extensi...
false
true
public void testReproject() throws Exception { // note, we use 3395 instead of 900913 because it's more accurate, the referencing subsystem // with assertions enabled will flip if we use the latter due to small reprojection errors String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" ...
public void testReproject() throws Exception { // note, we use 3395 instead of 900913 because it's more accurate, the referencing subsystem // with assertions enabled will flip if we use the latter due to small reprojection errors String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" ...
diff --git a/source/com/mucommander/file/impl/ar/ArArchiveFile.java b/source/com/mucommander/file/impl/ar/ArArchiveFile.java index 945dbb7c..a5b29b35 100644 --- a/source/com/mucommander/file/impl/ar/ArArchiveFile.java +++ b/source/com/mucommander/file/impl/ar/ArArchiveFile.java @@ -1,76 +1,76 @@ /* * This file is pa...
true
true
public InputStream getEntryInputStream(ArchiveEntry entry, ArchiveEntryIterator entryIterator) throws IOException { InputStream in = getInputStream(); ArchiveEntryIterator iterator = new ArArchiveEntryIterator(getInputStream()); ArchiveEntry currentEntry; while((currentEntry = itera...
public InputStream getEntryInputStream(ArchiveEntry entry, ArchiveEntryIterator entryIterator) throws IOException { InputStream in = getInputStream(); ArchiveEntryIterator iterator = new ArArchiveEntryIterator(in); ArchiveEntry currentEntry; while((currentEntry = iterator.nextEntry(...
diff --git a/src/minecraft/net/minecraft/src/EntityRenderer.java b/src/minecraft/net/minecraft/src/EntityRenderer.java index 5d0b24f0..e0f76a9c 100644 --- a/src/minecraft/net/minecraft/src/EntityRenderer.java +++ b/src/minecraft/net/minecraft/src/EntityRenderer.java @@ -1,1521 +1,1521 @@ package net.minecraft.src; ...
true
true
public void renderWorld(float var1, long var2) { Profiler.startSection("lightTex"); if (this.lightmapUpdateNeeded) { this.updateLightmap(); } GL11.glEnable(2884 /* GL_CULL_FACE */); GL11.glEnable(2929 /* GL_DEPTH_TEST */); if (this.mc.renderViewEntity == null) { this.mc.renderViewEntity = this.mc.th...
public void renderWorld(float var1, long var2) { Profiler.startSection("lightTex"); if (this.lightmapUpdateNeeded) { this.updateLightmap(); } GL11.glEnable(2884 /* GL_CULL_FACE */); GL11.glEnable(2929 /* GL_DEPTH_TEST */); if (this.mc.renderViewEntity == null) { this.mc.renderViewEntity = this.mc.th...
diff --git a/scaffold-faces/src/test/java/org/jboss/forge/scaffold/faces/scenario/petclinic/FacesScaffoldPetClinicTest.java b/scaffold-faces/src/test/java/org/jboss/forge/scaffold/faces/scenario/petclinic/FacesScaffoldPetClinicTest.java index 6375df30a..38142d22f 100644 --- a/scaffold-faces/src/test/java/org/jboss/forg...
false
true
public void testGenerate() throws Exception { Project current = getShell().getCurrentProject(); Project project = setupScaffoldProject("petClinic"); queueInputLines(""); getShell().execute("entity --named Owner"); getShell().execute("field string --named firstName"); getShell(...
public void testGenerate() throws Exception { Project current = getShell().getCurrentProject(); final String targetDir = "petClinic"; Project project = setupScaffoldProject(targetDir); queueInputLines(""); getShell().execute("entity --named Owner"); getShell().execute("field s...
diff --git a/src/java/integration/ivory/integration/irj2012/VerifyFeatureExtraction.java b/src/java/integration/ivory/integration/irj2012/VerifyFeatureExtraction.java index e5c1ee80..7a728c74 100644 --- a/src/java/integration/ivory/integration/irj2012/VerifyFeatureExtraction.java +++ b/src/java/integration/ivory/integr...
false
true
@Test public void runRegression() throws Exception { FileSystem fs = FileSystem.getLocal(new Configuration()); File vectors = File.createTempFile("ffgDocumentVector", null); File features = File.createTempFile("ffgFeatures", null); // Verify Monolithic (Small Adaptive to retrieve and compute features...
@Test public void runRegression() throws Exception { FileSystem fs = FileSystem.getLocal(new Configuration()); File vectors = File.createTempFile("ffgDocumentVector", null); File features = File.createTempFile("ffgFeatures", null); // Verify Monolithic (Small Adaptive to retrieve and compute features...
diff --git a/dataset/rest/src/main/java/edu/dfci/cccb/mev/dataset/rest/assembly/json/DatasetJsonSerializer.java b/dataset/rest/src/main/java/edu/dfci/cccb/mev/dataset/rest/assembly/json/DatasetJsonSerializer.java index c14f21f3..9969a7dc 100644 --- a/dataset/rest/src/main/java/edu/dfci/cccb/mev/dataset/rest/assembly/js...
true
true
private void writeValues (JsonGenerator jgen, Values values, List<String> rows, List<String> columns) throws IOException, JsonProcessingException, ...
private void writeValues (JsonGenerator jgen, Values values, List<String> rows, List<String> columns) throws IOException, JsonProcessingException, ...
diff --git a/HelloWorld/src/test/java/TestHelloWorld.java b/HelloWorld/src/test/java/TestHelloWorld.java index 0f24d43..f6d71bb 100644 --- a/HelloWorld/src/test/java/TestHelloWorld.java +++ b/HelloWorld/src/test/java/TestHelloWorld.java @@ -1,18 +1,18 @@ import static org.junit.Assert.*; import no.bekk.fagdag.mylyn...
true
true
public void testHelloWorld() { HelloWorld helloWorld = new HelloWorld(); assertEquals("Hello World!", helloWorld.sayHello()); }
public void testHelloWorld() { HelloWorld helloWorld = new HelloWorld(); assertEquals("Heisann Sveisann", helloWorld.sayHello()); }
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsEcoBlockListener.java b/Essentials/src/com/earth2me/essentials/EssentialsEcoBlockListener.java index c8266e9..1fa0440 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsEcoBlockListener.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsE...
false
true
public void onSignChange(SignChangeEvent event) { if (ess.getSettings().areSignsDisabled()) { return; } User user = ess.getUser(event.getPlayer()); String username = user.getName().substring(0, user.getName().length() > 14 ? 14 : user.getName().length()); if ((event.getLine(0).equalsIgnoreCase("[Buy]"...
public void onSignChange(SignChangeEvent event) { if (ess.getSettings().areSignsDisabled()) { return; } User user = ess.getUser(event.getPlayer()); String username = user.getName().substring(0, user.getName().length() > 14 ? 14 : user.getName().length()); if ((event.getLine(0).equalsIgnoreCase("[Buy]"...
diff --git a/src/org/apache/xerces/impl/xs/traversers/XSDAttributeTraverser.java b/src/org/apache/xerces/impl/xs/traversers/XSDAttributeTraverser.java index 73bd5fdb..4109dce8 100644 --- a/src/org/apache/xerces/impl/xs/traversers/XSDAttributeTraverser.java +++ b/src/org/apache/xerces/impl/xs/traversers/XSDAttributeTrav...
true
true
protected XSAttributeUse traverseLocal(Element attrDecl, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // General Attribute Checking Object[] attrValues = fAttrChecker.checkAttributes(attrDecl, false, schemaD...
protected XSAttributeUse traverseLocal(Element attrDecl, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // General Attribute Checking Object[] attrValues = fAttrChecker.checkAttributes(attrDecl, false, schemaD...
diff --git a/twitter4j-core/src/test/java/twitter4j/MBeansIntegrationTest.java b/twitter4j-core/src/test/java/twitter4j/MBeansIntegrationTest.java index 7662936e..82cdcc00 100644 --- a/twitter4j-core/src/test/java/twitter4j/MBeansIntegrationTest.java +++ b/twitter4j-core/src/test/java/twitter4j/MBeansIntegrationTest.ja...
false
true
public void testMonitoringIntegration() throws Exception { // monitoring is turned on with mbeanEnabled=true TwitterAPIMonitor monitor = TwitterAPIMonitor.getInstance(); assertEquals(0, monitor.getStatistics().getCallCount()); twitter1.getHomeTimeline(); assertEquals(1, monit...
public void testMonitoringIntegration() throws Exception { // monitoring is turned on with mbeanEnabled=true TwitterAPIMonitor monitor = TwitterAPIMonitor.getInstance(); long count = monitor.getStatistics().getCallCount(); twitter1.getHomeTimeline(); assertEquals(count + 1, m...
diff --git a/cucumber-java/src/org/jetbrains/plugins/cucumber/java/run/CucumberJavaRunConfiguration.java b/cucumber-java/src/org/jetbrains/plugins/cucumber/java/run/CucumberJavaRunConfiguration.java index 59591bd25f..77c23cbf26 100644 --- a/cucumber-java/src/org/jetbrains/plugins/cucumber/java/run/CucumberJavaRunConfig...
true
true
public RunProfileState getState(@NotNull Executor executor, @NotNull ExecutionEnvironment env) throws ExecutionException { return new JavaApplicationCommandLineState<CucumberJavaRunConfiguration>(CucumberJavaRunConfiguration.this, env) { protected JavaParameters createJavaParameters() throws ExecutionExcept...
public RunProfileState getState(@NotNull Executor executor, @NotNull ExecutionEnvironment env) throws ExecutionException { return new JavaApplicationCommandLineState<CucumberJavaRunConfiguration>(CucumberJavaRunConfiguration.this, env) { protected JavaParameters createJavaParameters() throws ExecutionExcept...
diff --git a/logs-analysis/src/main/java/pl/edu/icm/coansys/logsanalysis/jobs/HTableToSequenceFile.java b/logs-analysis/src/main/java/pl/edu/icm/coansys/logsanalysis/jobs/HTableToSequenceFile.java index 8e8a7177..05509655 100644 --- a/logs-analysis/src/main/java/pl/edu/icm/coansys/logsanalysis/jobs/HTableToSequenceFile...
false
true
public int run(String[] args) throws Exception { if (args.length < 4) { System.err.println("Usage: HTableToSequenceFile <table_name> <column_family> <column_name> <sequence_file_path>"); System.exit(1); } conf.set("COLUMN_FAMILY", args[1]); conf.set("COLUMN_NA...
public int run(String[] args) throws Exception { if (args.length < 4) { System.err.println("Usage: HTableToSequenceFile <table_name> <column_family> <column_name> <sequence_file_path>"); System.exit(1); } conf.set("COLUMN_FAMILY", args[1]); conf.set("COLUMN_NA...
diff --git a/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java b/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java index 8db7ca3d..f271ac34 100644 --- a/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java +++ b/core/src/com/google/zxing/qrcode/decoder/DecodedBitStr...
false
true
private static String guessEncoding(byte[] bytes) { if (ASSUME_SHIFT_JIS) { return SHIFT_JIS; } // Does it start with the UTF-8 byte order mark? then guess it's UTF-8 if (bytes.length > 3 && bytes[0] == (byte) 0xEF && bytes[1] == (byte) 0xBB && bytes[2] == (byte) 0xBF) { return UTF8; }...
private static String guessEncoding(byte[] bytes) { if (ASSUME_SHIFT_JIS) { return SHIFT_JIS; } // Does it start with the UTF-8 byte order mark? then guess it's UTF-8 if (bytes.length > 3 && bytes[0] == (byte) 0xEF && bytes[1] == (byte) 0xBB && bytes[2] == (byte) 0xBF) { return UTF8; }...
diff --git a/src/dummydk/controller/Spiel.java b/src/dummydk/controller/Spiel.java index ffc5792..9d411db 100644 --- a/src/dummydk/controller/Spiel.java +++ b/src/dummydk/controller/Spiel.java @@ -1,233 +1,233 @@ package dummydk.controller; import dummydk.gui.Frame; import dummydk.model.Spieler; import dummydk.mo...
false
true
private void erzeugeSpielfelder(File textDatei) { BufferedReader reader = null; try { /* Datei oeffnen. */ reader = new BufferedReader(new FileReader(textDatei)); } catch (IOException e) { this.parentFrame.zeigeFehler("Einlesefehler", "Fehler beim oeffnen der Datei"); } String zeile = null...
private void erzeugeSpielfelder(File textDatei) { BufferedReader reader = null; try { /* Datei oeffnen. */ reader = new BufferedReader(new FileReader(textDatei)); } catch (IOException e) { this.parentFrame.zeigeFehler("Einlesefehler", "Fehler beim oeffnen der Datei"); } String zeile = null...
diff --git a/src/de/typology/trainers/Neo4JTypologyTrainer.java b/src/de/typology/trainers/Neo4JTypologyTrainer.java index 6fa9aa27..9a6f6bbd 100644 --- a/src/de/typology/trainers/Neo4JTypologyTrainer.java +++ b/src/de/typology/trainers/Neo4JTypologyTrainer.java @@ -1,277 +1,279 @@ package de.typology.trainers; imp...
true
true
private double trainLucene(String path) throws IOException { long startTime = System.currentTimeMillis(); // neo4j database initialization int relType; this.graphDb = new GraphDatabaseFactory().newEmbeddedDatabaseBuilder( this.storagePath).newGraphDatabase(); IndexManager index = this.graphDb.index(); ...
private double trainLucene(String path) throws IOException { long startTime = System.currentTimeMillis(); // neo4j database initialization int relType; this.graphDb = new GraphDatabaseFactory().newEmbeddedDatabaseBuilder( this.storagePath).newGraphDatabase(); IndexManager index = this.graphDb.index(); ...
diff --git a/src/main/java/edu/ucar/unidata/sruth/SourceNode.java b/src/main/java/edu/ucar/unidata/sruth/SourceNode.java index 88f4d05..e836e35 100644 --- a/src/main/java/edu/ucar/unidata/sruth/SourceNode.java +++ b/src/main/java/edu/ucar/unidata/sruth/SourceNode.java @@ -1,268 +1,268 @@ /** * Copyright 2011 Univers...
true
true
public Void call() throws InterruptedException, IOException { logger.trace("Starting up: {}", this); final String origThreadName = Thread.currentThread().getName(); Thread.currentThread().setName(toString()); try { final Future<Void> serverFuture = completionService ...
public Void call() throws InterruptedException, IOException { logger.trace("Starting up: {}", this); final String origThreadName = Thread.currentThread().getName(); Thread.currentThread().setName(toString()); try { final Future<Void> serverFuture = completionService ...
diff --git a/src/main/java/org/bestgrid/virtscreen/model/gromacs/GromacsJob.java b/src/main/java/org/bestgrid/virtscreen/model/gromacs/GromacsJob.java index 31158af..8c8277c 100644 --- a/src/main/java/org/bestgrid/virtscreen/model/gromacs/GromacsJob.java +++ b/src/main/java/org/bestgrid/virtscreen/model/gromacs/Gromacs...
true
true
public synchronized void createAndSubmitJob() throws JobSubmissionException, JobPropertiesException { // job.setTimestampJobname(FilenameUtils.getBaseName(goldConfFile // .getName())); job.setTimestampJobname("gromacs"); job.setApplication("GROMACS"); job.setApplicationVersion(GrisuVirtScreen.GROMACS_VER...
public synchronized void createAndSubmitJob() throws JobSubmissionException, JobPropertiesException { // job.setTimestampJobname(FilenameUtils.getBaseName(goldConfFile // .getName())); job.setTimestampJobname("gromacs"); job.setApplication("GROMACS"); job.setApplicationVersion(GrisuVirtScreen.GROMACS_VER...
diff --git a/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/InvalidCredentialsOpenshiftException.java b/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/InvalidCredentialsOpenshiftException.java index be96eb7bc..f32a29558 1006...
true
true
public InvalidCredentialsOpenshiftException(String url, Throwable cause, String message, String... arguments) { super(url, cause, message); }
public InvalidCredentialsOpenshiftException(String url, Throwable cause, String message, Object... arguments) { super(url, cause, message); }
diff --git a/source/RMG/jing/rxn/PDepReaction.java b/source/RMG/jing/rxn/PDepReaction.java index e2eea256..447e1c61 100644 --- a/source/RMG/jing/rxn/PDepReaction.java +++ b/source/RMG/jing/rxn/PDepReaction.java @@ -1,613 +1,614 @@ //////////////////////////////////////////////////////////////////////////////// // //...
true
true
public String toChemkinString(Temperature t, Pressure p) { if (pDepRate != null) { String result = getStructure().toChemkinString(true).toString(); if (PDepRateConstant.getMode() == PDepRateConstant.Mode.RATE) { result = String.format(result = formPDepSign(result)); result += String.format("\t%....
public String toChemkinString(Temperature t, Pressure p) { if (pDepRate != null) { String result = getStructure().toChemkinString(true).toString(); if (PDepRateConstant.getMode() == PDepRateConstant.Mode.RATE) { result = String.format("%-52s",result); result += String.format("\t%.3e 0.0 0.0 ...
diff --git a/modello/modello-test/src/main/java/org/codehaus/modello/AbstractModelloGeneratorTest.java b/modello/modello-test/src/main/java/org/codehaus/modello/AbstractModelloGeneratorTest.java index fa7c1692..53d7229f 100755 --- a/modello/modello-test/src/main/java/org/codehaus/modello/AbstractModelloGeneratorTest.ja...
true
true
protected void compile( File generatedSources, File destinationDirectory ) throws Exception { addDependency( "junit", "junit", "3.8.1" ); addDependency( "plexus", "plexus-utils", "1.0-alpha-3" ); java.util.Properties properties = new java.util.Properties(); properties.l...
protected void compile( File generatedSources, File destinationDirectory ) throws Exception { addDependency( "junit", "junit", "3.8.1" ); addDependency( "plexus", "plexus-utils", "1.0-alpha-3" ); java.util.Properties properties = new java.util.Properties(); properties.l...
diff --git a/framework/src/main/java/org/radargun/stressors/PrivateLogChecker.java b/framework/src/main/java/org/radargun/stressors/PrivateLogChecker.java index d78f907b..625f3372 100644 --- a/framework/src/main/java/org/radargun/stressors/PrivateLogChecker.java +++ b/framework/src/main/java/org/radargun/stressors/Priv...
true
true
protected boolean containsOperation(Object value, AbstractStressorRecord record) { if (value == null) { return false; } if (!(value instanceof PrivateLogValue)) { log.error("Key " + record.getKeyId() + " has unexpected value " + value); return false; } Private...
protected boolean containsOperation(Object value, AbstractStressorRecord record) { if (value == null) { return false; } if (!(value instanceof PrivateLogValue)) { log.error("Key " + record.getKeyId() + " has unexpected value " + value); return false; } Private...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ShowSystemThreadsAction.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ShowSystemThreadsAction.java index ce6d75561..352b297ad 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actio...
true
true
private void refresh(Object source, final boolean select) { final IJavaThread thread = getJavaThread(source); if (thread != null) { try { if (thread.isSystemThread()) { Runnable r = new Runnable() { public void run() { getStructuredViewer().refresh(); if (select) { ...
private void refresh(Object source, final boolean select) { final IJavaThread thread = getJavaThread(source); if (thread != null) { try { if (thread.isSystemThread()) { Runnable r = new Runnable() { public void run() { getStructuredViewer().refresh(); if (select) { ...
diff --git a/src/main/java/com/jayway/maven/plugins/android/AbstractInstrumentationMojo.java b/src/main/java/com/jayway/maven/plugins/android/AbstractInstrumentationMojo.java index 2d6ea2ed..e3c1e467 100644 --- a/src/main/java/com/jayway/maven/plugins/android/AbstractInstrumentationMojo.java +++ b/src/main/java/com/jay...
true
true
protected void instrument() throws MojoExecutionException, MojoFailureException { parseConfiguration(); if ( parsedInstrumentationPackage == null ) { parsedInstrumentationPackage = extractPackageNameFromAndroidManifest( androidManifestFile ); } if ( parsedIn...
protected void instrument() throws MojoExecutionException, MojoFailureException { parseConfiguration(); if ( parsedInstrumentationPackage == null ) { parsedInstrumentationPackage = extractPackageNameFromAndroidManifest( androidManifestFile ); } if ( parsedIn...
diff --git a/src/main/java/ru/urbancamper/audiobookmarker/text/BitapSubtextFinding.java b/src/main/java/ru/urbancamper/audiobookmarker/text/BitapSubtextFinding.java index e634b56..1e17a64 100644 --- a/src/main/java/ru/urbancamper/audiobookmarker/text/BitapSubtextFinding.java +++ b/src/main/java/ru/urbancamper/audiobook...
true
true
public List<Integer> find(Integer[] doc, Integer[] pattern, int k) { // Range of the alphabet // 128 is enough if we stay in the ASCII range (0-127) int alphabetRange = 128; int firstMatchedText = -1; // Indexes where the pattern was found ArrayList<Integer> indexes = new ArrayList<Integer>...
public List<Integer> find(Integer[] doc, Integer[] pattern, int k) { // Range of the alphabet // 128 is enough if we stay in the ASCII range (0-127) int alphabetRange = 128; int firstMatchedText = -1; // Indexes where the pattern was found ArrayList<Integer> indexes = new ArrayList<Integer>...
diff --git a/src/com/itmill/toolkit/ui/Label.java b/src/com/itmill/toolkit/ui/Label.java index c3f74763e..af5b2a068 100644 --- a/src/com/itmill/toolkit/ui/Label.java +++ b/src/com/itmill/toolkit/ui/Label.java @@ -1,535 +1,535 @@ /* @ITMillApache2LicenseForJavaFiles@ */ package com.itmill.toolkit.ui; import j...
true
true
public void paintContent(PaintTarget target) throws PaintException { if (contentMode != CONTENT_TEXT) { target.addAttribute("mode", CONTENT_MODE_NAME[contentMode]); } if (contentMode == CONTENT_TEXT) { target.addText(toString()); } else if (contentMode == CONT...
public void paintContent(PaintTarget target) throws PaintException { if (contentMode != CONTENT_TEXT) { target.addAttribute("mode", CONTENT_MODE_NAME[contentMode]); } if (contentMode == CONTENT_TEXT) { target.addText(toString()); } else if (contentMode == CONT...
diff --git a/src/java/org/apache/cassandra/service/StorageProxy.java b/src/java/org/apache/cassandra/service/StorageProxy.java index bd1cb4e8..3f38b7f0 100644 --- a/src/java/org/apache/cassandra/service/StorageProxy.java +++ b/src/java/org/apache/cassandra/service/StorageProxy.java @@ -1,960 +1,958 @@ /** * Licensed...
false
true
private static List<Row> fetchRows(List<ReadCommand> commands, ConsistencyLevel consistency_level) throws IOException, UnavailableException, TimeoutException { List<ReadCallback<Row>> readCallbacks = new ArrayList<ReadCallback<Row>>(); List<List<InetAddress>> commandEndpoints = new ArrayList<Lis...
private static List<Row> fetchRows(List<ReadCommand> commands, ConsistencyLevel consistency_level) throws IOException, UnavailableException, TimeoutException { List<ReadCallback<Row>> readCallbacks = new ArrayList<ReadCallback<Row>>(); List<List<InetAddress>> commandEndpoints = new ArrayList<Lis...
diff --git a/examples/undocumented/java_modular/regression_libsvr_modular.java b/examples/undocumented/java_modular/regression_libsvr_modular.java index 8ecd24b72..bb006299b 100644 --- a/examples/undocumented/java_modular/regression_libsvr_modular.java +++ b/examples/undocumented/java_modular/regression_libsvr_modular....
true
true
public static void main(String argv[]) { modshogun.init_shogun_with_defaults(); double width = 0.8; int C = 1; double epsilon = 1e-5; double tube_epsilon = 1e-2; DoubleMatrix traindata_real = Load.load_numbers("../data/fm_train_real.dat"); DoubleMatrix testdata_real = Load.load_numbers("../data/fm_test_...
public static void main(String argv[]) { modshogun.init_shogun_with_defaults(); double width = 0.8; int C = 1; double epsilon = 1e-5; double tube_epsilon = 1e-2; DoubleMatrix traindata_real = Load.load_numbers("../data/fm_train_real.dat"); DoubleMatrix testdata_real = Load.load_numbers("../data/fm_test_...
diff --git a/src/modules/BeerAdvocate.java b/src/modules/BeerAdvocate.java index 1ae1959..8923f0d 100644 --- a/src/modules/BeerAdvocate.java +++ b/src/modules/BeerAdvocate.java @@ -1,68 +1,67 @@ package modules; import static org.jibble.pircbot.Colors.*; import java.io.IOException; import org.jsoup.Jsoup; im...
false
true
public void beer(Message message, String beerUrl) { Document page = null; try { page = Jsoup.connect(beerUrl).timeout(10000).get(); } catch (IOException e) { e.printStackTrace(); this.bot.sendMessage(COLOR_ERROR + "Error retrieving BA page..."); } String name = extract(page, "...
public void beer(Message message, String beerUrl) { Document page = null; try { page = Jsoup.connect(beerUrl).timeout(10000).get(); } catch (IOException e) { e.printStackTrace(); this.bot.sendMessage(COLOR_ERROR + "Error retrieving BA page..."); } String name = extract(page, "...
diff --git a/ElementalTowerDefense/src/TowerAir.java b/ElementalTowerDefense/src/TowerAir.java index a97b5a7..227e3e3 100644 --- a/ElementalTowerDefense/src/TowerAir.java +++ b/ElementalTowerDefense/src/TowerAir.java @@ -1,35 +1,35 @@ import java.awt.Graphics2D; import java.awt.geom.Point2D; import javax.swing.Ima...
true
true
public boolean upgrade(Player p) { boolean generic = super.upgrade(p); if(generic){ this.speed /= 1.2; this.damage = (int) (400 * (1/(1+Math.exp(-(.5 * this.level) + 3)))) + this.baseDamage; } return generic; }
public boolean upgrade(Player p) { boolean generic = super.upgrade(p); if(generic){ this.speed -= 120; this.damage = (int) (400 * (1/(1+Math.exp(-(.5 * this.level) + 3)))) + this.baseDamage; } return generic; }
diff --git a/plugins/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/util/DiagonalLineImage.java b/plugins/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/util/DiagonalLineImage.java index b0293d5a0..94ed0371d 100644 --- a/plugins/o...
false
true
public byte[] drawImage( ) throws IOException { if ( diagonalNumber <= 0 && antidiagonalNumber <= 0 ) { return null; } if ( imageDpi < 0 ) { imageDpi = DEFAULT_IMAGE_DPI; } int imagePXWidth = HTMLEmitterUtil.getDimensionPixelValue( imageWidth, imageDpi ); int imagePXHeight = HTMLEmitterUtil.getD...
public byte[] drawImage( ) throws IOException { if ( diagonalNumber <= 0 && antidiagonalNumber <= 0 ) { return null; } if ( imageDpi < 0 ) { imageDpi = DEFAULT_IMAGE_DPI; } int imagePXWidth = HTMLEmitterUtil.getDimensionPixelValue( imageWidth, imageDpi ); int imagePXHeight = HTMLEmitterUtil.getD...
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/sync/MergeAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/sync/MergeAction.java index b9f4203eb..adde90946 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/sync/MergeA...
false
true
private void removeNodes(final ITeamNode[] nodes) { // Update the model for (int i = 0; i < nodes.length; i++) { if (nodes[i].getClass() == UnchangedTeamContainer.class) { // Unchanged containers get removed automatically when all // children are removed continue; } if (nodes[i].getClass() == ...
private void removeNodes(final ITeamNode[] nodes) { // Update the model for (int i = 0; i < nodes.length; i++) { if (nodes[i].getClass() == UnchangedTeamContainer.class) { // Unchanged containers get removed automatically when all // children are removed continue; } if (nodes[i].getClass() == ...