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/test/java/org/jgum/category/type/TypeCategoryTutorialTest.java b/src/test/java/org/jgum/category/type/TypeCategoryTutorialTest.java index 48edefc..48f399d 100644 --- a/src/test/java/org/jgum/category/type/TypeCategoryTutorialTest.java +++ b/src/test/java/org/jgum/category/type/TypeCategoryTutorialTest....
true
true
public void testTypeCategoryInheritance() { JGum jgum = new JGum(); TypeCategory<?> parent = jgum.forClass(Fruit.class); //type category for Fruit.class TypeCategory<?> child = jgum.forClass(Orange.class); //type category for Orange.class FruitRenderer fruitRenderer = new FruitRenderer(); parent.setProperty(...
public void testTypeCategoryInheritance() { JGum jgum = new JGum(); TypeCategory<?> parent = jgum.forClass(Fruit.class); //type category for Fruit.class TypeCategory<?> child = jgum.forClass(Orange.class); //type category for Orange.class FruitRenderer fruitRenderer = new FruitRenderer(); parent.setProperty(...
diff --git a/src/net/loadingchunks/plugins/GuardWolf/GWSQL.java b/src/net/loadingchunks/plugins/GuardWolf/GWSQL.java index ef7e4af..a2d6581 100644 --- a/src/net/loadingchunks/plugins/GuardWolf/GWSQL.java +++ b/src/net/loadingchunks/plugins/GuardWolf/GWSQL.java @@ -1,122 +1,124 @@ package net.loadingchunks.plugins.Guar...
false
true
public void ListBan(int page, String user, CommandSender sender) { String tempString = ""; if(user.isEmpty()) { try { PreparedStatement stat = con.prepareStatement("SELECT *,COUNT(*) as c FROM `mcusers_ban` GROUP BY `user` ORDER BY `permanent`,`expires_at` DESC LIMIT " + ((page - 1)*(Integer.parseInt(thi...
public void ListBan(int page, String user, CommandSender sender) { String tempString = ""; if(user.isEmpty()) { try { PreparedStatement stat = con.prepareStatement("SELECT *,COUNT(*) as c FROM `mcusers_ban` GROUP BY `user` ORDER BY `permanent`,`expires_at` DESC LIMIT " + ((page - 1)*(Integer.parseInt(thi...
diff --git a/src/main/java/org/deegree/igeo/dataadapter/database/postgis/PostgisDataLoader.java b/src/main/java/org/deegree/igeo/dataadapter/database/postgis/PostgisDataLoader.java index fe16964..28654cc 100644 --- a/src/main/java/org/deegree/igeo/dataadapter/database/postgis/PostgisDataLoader.java +++ b/src/main/java/...
false
true
protected PreparedStatement createPreparedStatement( DatabaseDatasource datasource, Envelope envelope, Connection conn ) throws GeometryException, SQLException { // special case if all features need to be requested, eg. for...
protected PreparedStatement createPreparedStatement( DatabaseDatasource datasource, Envelope envelope, Connection conn ) throws GeometryException, SQLException { // special case if all features need to be requested, eg. for...
diff --git a/CubicTestPlugin/src/main/java/org/cubictest/common/utils/EnvironmentInfo.java b/CubicTestPlugin/src/main/java/org/cubictest/common/utils/EnvironmentInfo.java index 02fe4ffc..4cd7ac06 100644 --- a/CubicTestPlugin/src/main/java/org/cubictest/common/utils/EnvironmentInfo.java +++ b/CubicTestPlugin/src/main/ja...
true
true
public static boolean isRunningInEclipse() { if (runningInEclipse == null) { try { Class plugin = Class.forName("org.cubictest.CubicTestPlugin"); if (plugin == null) { runningInEclipse = false; } else { runningInEclipse = true; } } catch (Throwable e) { runningInEclips...
public static boolean isRunningInEclipse() { if (runningInEclipse == null) { try { Class<?> plugin = Class.forName("org.cubictest.CubicTestPlugin"); if (plugin == null) { runningInEclipse = false; } else { runningInEclipse = true; } } catch (Throwable e) { runningInEcl...
diff --git a/epcis-queryclient/src/main/java/org/fosstrak/epcis/queryclient/QueryClientSoapImpl.java b/epcis-queryclient/src/main/java/org/fosstrak/epcis/queryclient/QueryClientSoapImpl.java index e9225d6..0e1f7f3 100644 --- a/epcis-queryclient/src/main/java/org/fosstrak/epcis/queryclient/QueryClientSoapImpl.java +++ b...
true
true
private Object parseParamValue(Element valueElement) { Object paramValue = null; // check if we have an array of strings NodeList stringNodes = valueElement.getElementsByTagName("string"); int size = stringNodes.getLength(); if (size > 0) { String[] strings = new ...
private Object parseParamValue(Element valueElement) { Object paramValue = null; // check if we have an array of strings NodeList stringNodes = valueElement.getElementsByTagName("string"); int size = stringNodes.getLength(); if (size > 0) { String[] strings = new ...
diff --git a/src/org/fbreader/formats/fb2/FB2Reader.java b/src/org/fbreader/formats/fb2/FB2Reader.java index 700b917d..5c014f49 100644 --- a/src/org/fbreader/formats/fb2/FB2Reader.java +++ b/src/org/fbreader/formats/fb2/FB2Reader.java @@ -1,359 +1,359 @@ package org.fbreader.formats.fb2; import java.util.Map; impo...
false
true
public void startElementHandler(String tagName, Map<String, String> attributes) { String id = attributes.get("id"); if (id != null) { if (!myReadMainText) { myModelReader.setFootnoteTextModel(id); } myModelReader.addHyperlinkLabel(id); } FB2Tag tag; try { tag = getTag(tagName); } catch (Ill...
public void startElementHandler(String tagName, Map<String, String> attributes) { String id = attributes.get("id"); if (id != null) { if (!myReadMainText) { myModelReader.setFootnoteTextModel(id); } myModelReader.addHyperlinkLabel(id); } FB2Tag tag; try { tag = getTag(tagName); } catch (Ill...
diff --git a/io/rampant/bukkit/orchard/Tree.java b/io/rampant/bukkit/orchard/Tree.java index 29d2c96..f0980cd 100644 --- a/io/rampant/bukkit/orchard/Tree.java +++ b/io/rampant/bukkit/orchard/Tree.java @@ -1,59 +1,59 @@ package io.rampant.bukkit.orchard; import java.util.Map; import java.util.Random; import org.bu...
true
true
public static void pruneLeaf(Block leafBlock, Boolean decay, Player player) { int leafType = (leafBlock.getData() & 3); if( !Orchard.LEAF_MAP.containsKey(leafType) ) { return; } boolean wieldingShears = (null != player) && (player.getItemInHand().getType() == Material.SHEARS); Random generator = new Rand...
public static void pruneLeaf(Block leafBlock, Boolean decay, Player player) { int leafType = (leafBlock.getData() & 3); if( !Orchard.LEAF_MAP.containsKey(leafType) ) { return; } boolean wieldingShears = (null != player) && (player.getItemInHand().getType() == Material.SHEARS); Random generator = new Rand...
diff --git a/src/com/reil/bukkit/rTriggers/rPropertiesFile.java b/src/com/reil/bukkit/rTriggers/rPropertiesFile.java index 7e3137e..b73a76e 100644 --- a/src/com/reil/bukkit/rTriggers/rPropertiesFile.java +++ b/src/com/reil/bukkit/rTriggers/rPropertiesFile.java @@ -1,186 +1,186 @@ package com.reil.bukkit.rTriggers; im...
true
true
String[] load() throws IOException { /* Go through, line by line. * If the line starts with # or !, then save the line in list * If the line has an assignment, put the name here. */ Properties.clear(); ArrayList<String> messages = new ArrayList<String>(); BufferedReader reader; reader = new Buffere...
String[] load() throws IOException { /* Go through, line by line. * If the line starts with # or !, then save the line in list * If the line has an assignment, put the name here. */ Properties.clear(); ArrayList<String> messages = new ArrayList<String>(); BufferedReader reader; reader = new Buffere...
diff --git a/websockets/src/test/java/io/undertow/websockets/utils/WebSocketTestClient.java b/websockets/src/test/java/io/undertow/websockets/utils/WebSocketTestClient.java index 986eff8d1..14320b119 100644 --- a/websockets/src/test/java/io/undertow/websockets/utils/WebSocketTestClient.java +++ b/websockets/src/test/ja...
false
true
public WebSocketTestClient connect() throws Exception { String protocol = uri.getScheme(); if (!"ws".equals(protocol)) { throw new IllegalArgumentException("Unsupported protocol: " + protocol); } final WebSocketClientHandshaker handshaker = new WebSocketC...
public WebSocketTestClient connect() throws Exception { String protocol = uri.getScheme(); if (!"ws".equals(protocol)) { throw new IllegalArgumentException("Unsupported protocol: " + protocol); } final WebSocketClientHandshaker handshaker = new WebSocketCl...
diff --git a/src/main/java/com/me/tft_02/assassin/listeners/TagListener.java b/src/main/java/com/me/tft_02/assassin/listeners/TagListener.java index 8dd7fd9..f318a9d 100644 --- a/src/main/java/com/me/tft_02/assassin/listeners/TagListener.java +++ b/src/main/java/com/me/tft_02/assassin/listeners/TagListener.java @@ -1,4...
false
true
public void onNameTag(PlayerReceiveNameTagEvent event) { Player namedPlayer = event.getNamedPlayer(); if (data.isAssassin(namedPlayer)) { event.setTag(ChatColor.DARK_RED + "[ASSASSIN] " + data.getKillCount(namedPlayer)); if (Assassin.p.debug_mode) { System.o...
public void onNameTag(PlayerReceiveNameTagEvent event) { Player namedPlayer = event.getNamedPlayer(); if (data.isAssassin(namedPlayer)) { event.setTag(ChatColor.DARK_RED + "[ASSASSIN] " + data.getKillCount(namedPlayer)); Assassin.p.debug("Changed player tag to [ASSASSIN] fo...
diff --git a/GAE/src/org/waterforpeople/mapping/app/gwt/server/surveyinstance/SurveyInstanceServiceImpl.java b/GAE/src/org/waterforpeople/mapping/app/gwt/server/surveyinstance/SurveyInstanceServiceImpl.java index 7e80b3b43..1fa686876 100644 --- a/GAE/src/org/waterforpeople/mapping/app/gwt/server/surveyinstance/SurveyIn...
true
true
public List<QuestionAnswerStoreDto> updateQuestions( List<QuestionAnswerStoreDto> dtoList, boolean isApproved, boolean processSummaries) { List<QuestionAnswerStore> domainList = new ArrayList<QuestionAnswerStore>(); for (QuestionAnswerStoreDto dto : dtoList) { QuestionAnswerStore answer = new QuestionAnsw...
public List<QuestionAnswerStoreDto> updateQuestions( List<QuestionAnswerStoreDto> dtoList, boolean isApproved, boolean processSummaries) { List<QuestionAnswerStore> domainList = new ArrayList<QuestionAnswerStore>(); for (QuestionAnswerStoreDto dto : dtoList) { if ("".equals(dto.getValue()) && dto.getOldVa...
diff --git a/core/src/visad/trunk/ShadowTupleType.java b/core/src/visad/trunk/ShadowTupleType.java index 1714ad51b..ac94b66a3 100644 --- a/core/src/visad/trunk/ShadowTupleType.java +++ b/core/src/visad/trunk/ShadowTupleType.java @@ -1,507 +1,507 @@ // // ShadowTupleType.java // /* VisAD system for interactive an...
false
true
public boolean doTransform(Object group, Data data, float[] value_array, float[] default_values, DataRenderer renderer, ShadowType shadow_api) throws VisADException, RemoteException { if (data.isMissing()) return false; if (LevelOfDifficulty ...
public boolean doTransform(Object group, Data data, float[] value_array, float[] default_values, DataRenderer renderer, ShadowType shadow_api) throws VisADException, RemoteException { if (data.isMissing()) return false; if (LevelOfDifficulty ...
diff --git a/lucene/src/java/org/apache/lucene/index/DocumentsWriter.java b/lucene/src/java/org/apache/lucene/index/DocumentsWriter.java index 2ef58357b..7461ce52f 100644 --- a/lucene/src/java/org/apache/lucene/index/DocumentsWriter.java +++ b/lucene/src/java/org/apache/lucene/index/DocumentsWriter.java @@ -1,1161 +1,1...
false
true
synchronized SegmentInfo flush(IndexWriter writer, IndexFileDeleter deleter, MergePolicy mergePolicy, SegmentInfos segmentInfos) throws IOException { // We change writer's segmentInfos: assert Thread.holdsLock(writer); waitIdle(); if (numDocs == 0) { // nothing to do! if (infoStream != ...
synchronized SegmentInfo flush(IndexWriter writer, IndexFileDeleter deleter, MergePolicy mergePolicy, SegmentInfos segmentInfos) throws IOException { // We change writer's segmentInfos: assert Thread.holdsLock(writer); waitIdle(); if (numDocs == 0) { // nothing to do! if (infoStream != ...
diff --git a/src/main/java/jp/irof/ac/ImageRequestFilter.java b/src/main/java/jp/irof/ac/ImageRequestFilter.java index de9ad35..2f32468 100644 --- a/src/main/java/jp/irof/ac/ImageRequestFilter.java +++ b/src/main/java/jp/irof/ac/ImageRequestFilter.java @@ -1,105 +1,105 @@ package jp.irof.ac; import hudson.util.Plug...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { // 作業用に変数取る。 String path = ((HttpServletRequest) request).getRequestURI(); // デバッグソース FileWriter f = new FileWriter("./irofkins_test.log"); f.write("\npath:" + path); /...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { // 作業用に変数取る。 String path = ((HttpServletRequest) request).getRequestURI(); // デバッグソース FileWriter f = new FileWriter("./irofkins_test.log"); f.write("\npath:" + path); /...
diff --git a/src/main/java/org/jcwal/so/network/service/impl/NetworkSchemaRegistory.java b/src/main/java/org/jcwal/so/network/service/impl/NetworkSchemaRegistory.java index 2ca59e2..c4dc61b 100644 --- a/src/main/java/org/jcwal/so/network/service/impl/NetworkSchemaRegistory.java +++ b/src/main/java/org/jcwal/so/network/...
true
true
private FinderSchema createNetworkResourceSchema() { FinderSchema schema = new FinderSchema(); schema.setCode(NETWORKRESOURCE_SCHEMA); schema.setTitle("IP资源管理"); schema.setRelativePath("admin/network/networkresource/list"); FinderDataSet finderDataSet = new FinderDataSet("NETWORK_RESOURCE_SET"); schema.se...
private FinderSchema createNetworkResourceSchema() { FinderSchema schema = new FinderSchema(); schema.setCode(NETWORKRESOURCE_SCHEMA); schema.setTitle("IP资源管理"); schema.setRelativePath("admin/network/networkresource/list"); FinderDataSet finderDataSet = new FinderDataSet("NETWORK_RESOURCE_SET"); schema.se...
diff --git a/src/org/perez/ga/algorithms/TGA.java b/src/org/perez/ga/algorithms/TGA.java index c11e49f..da7f1fa 100644 --- a/src/org/perez/ga/algorithms/TGA.java +++ b/src/org/perez/ga/algorithms/TGA.java @@ -1,257 +1,257 @@ /* * To change this template, choose Tools | Templates * and open the template in the edit...
true
true
public Genotipo TGA() { Poblacion nva; double probs[]; Genotipo res[] = new Genotipo[2]; Genotipo g_x, g_y; int hechos; pobActual = new Poblacion(M, L, rnd); //1. Generate a random population //mejorInd = pobActual.getBest(func); me...
public Genotipo TGA() { Poblacion nva; double probs[]; Genotipo res[] = new Genotipo[2]; Genotipo g_x, g_y; int hechos; pobActual = new Poblacion(M, L, rnd); //1. Generate a random population //mejorInd = pobActual.getBest(func); me...
diff --git a/src/entities/BreakableWall.java b/src/entities/BreakableWall.java index 2e103c6..088078b 100644 --- a/src/entities/BreakableWall.java +++ b/src/entities/BreakableWall.java @@ -1,40 +1,40 @@ package entities; import game.Game; import graphics.Sprite; import java.util.Random; public class Breakabl...
false
true
public BreakableWall(int x, int y) { super(x, y); int z = new Random().nextInt(10); // int z = (int) (Math.random() * 10); if (z < 4) { this.images = Sprite.load("w1.png", 100, 100); } else if ((z >= 3) && (z < 8)) { this.images = Sprite.load("w2.png", 100, 100); } else if (z >= 8) { this.images =...
public BreakableWall(int x, int y) { super(x, y); int z = new Random().nextInt(12); // int z = (int) (Math.random() * 10); if (z < 4) { this.images = Sprite.load("w1.png", 100, 100); } else if ((z >= 4) && (z < 8)) { this.images = Sprite.load("w2.png", 100, 100); } else if (z >= 8) { this.images =...
diff --git a/Sorry!/src/EngineNonGUITest.java b/Sorry!/src/EngineNonGUITest.java index 351f114..2ffaf3b 100644 --- a/Sorry!/src/EngineNonGUITest.java +++ b/Sorry!/src/EngineNonGUITest.java @@ -1,936 +1,936 @@ import static org.junit.Assert.*; import org.junit.Test; /** * Class for testing the Engine, using Non...
true
true
public void testValidMoves() { BoardList board = new BoardList(); Engine e = new Engine(board, "english"); e.newGame(); Node start = new Node(); Node end = new Node(); Piece pawn = new Piece(Piece.COLOR.red); start.addPieceToPieces(pawn); createNodeChain(start, end, 2); assertEquals(start.countTo(...
public void testValidMoves() { BoardList board = new BoardList(); Engine e = new Engine(board, "english"); e.newGame(); Node start = new Node(); Node end = new Node(); Piece pawn = new Piece(Piece.COLOR.red); start.addPieceToPieces(pawn); createNodeChain(start, end, 2); assertEquals(start.countTo(...
diff --git a/src/main/java/org/spoutcraft/launcher/technic/skin/ImportOptions.java b/src/main/java/org/spoutcraft/launcher/technic/skin/ImportOptions.java index 827e42d..32cf83f 100644 --- a/src/main/java/org/spoutcraft/launcher/technic/skin/ImportOptions.java +++ b/src/main/java/org/spoutcraft/launcher/technic/skin/Im...
false
true
public void initComponents() { Font minecraft = MetroLoginFrame.getMinecraftFont(12); background = new JLabel(); background.setBounds(0,0, FRAME_WIDTH, FRAME_HEIGHT); MetroLoginFrame.setIcon(background, "platformBackground.png", background.getWidth(), background.getHeight()); Container contentPane = ge...
public void initComponents() { Font minecraft = MetroLoginFrame.getMinecraftFont(12); background = new JLabel(); background.setBounds(0,0, FRAME_WIDTH, FRAME_HEIGHT); MetroLoginFrame.setIcon(background, "platformBackground.png", background.getWidth(), background.getHeight()); Container contentPane = ge...
diff --git a/integrationtest/src/test/java/org/biojava/bio/structure/scop/ScopTest.java b/integrationtest/src/test/java/org/biojava/bio/structure/scop/ScopTest.java index eba0565d5..875fa799b 100644 --- a/integrationtest/src/test/java/org/biojava/bio/structure/scop/ScopTest.java +++ b/integrationtest/src/test/java/org/...
true
true
private void runSCOPTests(){ ScopDatabase scop = ScopFactory.getSCOP(); List<ScopDomain> domains = scop.getDomainsForPDB("4HHB"); assertTrue(domains.size() == 4); // test case sensitivity; List<ScopDomain> domains2 = scop.getDomainsForPDB("4hhb"); assertTrue(domains2.size() == domains.size()); //Sys...
private void runSCOPTests(){ ScopDatabase scop = ScopFactory.getSCOP(); List<ScopDomain> domains = scop.getDomainsForPDB("4HHB"); assertTrue(domains.size() == 4); // test case sensitivity; List<ScopDomain> domains2 = scop.getDomainsForPDB("4hhb"); assertTrue(domains2.size() == domains.size()); //Sys...
diff --git a/src/main/java/com/laytonsmith/PureUtilities/ClassDiscovery.java b/src/main/java/com/laytonsmith/PureUtilities/ClassDiscovery.java index 63f53461..9ea3172a 100644 --- a/src/main/java/com/laytonsmith/PureUtilities/ClassDiscovery.java +++ b/src/main/java/com/laytonsmith/PureUtilities/ClassDiscovery.java @@ -1...
true
true
public static Class[] GetClassesWithinPackageHierarchy(String url, Set<ClassLoader> loaders) { if (classCache.containsKey(url)) { return classCache.get(url); } if(loaders == null){ loaders = defaultClassLoaders; } String originalURL = url; if (url == null) { url = GetClassPackageHierachy(ClassDisc...
public static Class[] GetClassesWithinPackageHierarchy(String url, Set<ClassLoader> loaders) { if (classCache.containsKey(url)) { return classCache.get(url); } if(loaders == null){ loaders = defaultClassLoaders; } String originalURL = url; if (url == null) { url = GetClassPackageHierachy(ClassDisc...
diff --git a/svnkit-cli/src/org/tmatesoft/svn/cli2/svn/SVNCommandEnvironment.java b/svnkit-cli/src/org/tmatesoft/svn/cli2/svn/SVNCommandEnvironment.java index 2d1de00df..71b48657a 100644 --- a/svnkit-cli/src/org/tmatesoft/svn/cli2/svn/SVNCommandEnvironment.java +++ b/svnkit-cli/src/org/tmatesoft/svn/cli2/svn/SVNCommand...
true
true
protected void initOption(SVNOptionValue optionValue) throws SVNException { AbstractSVNOption option = optionValue.getOption(); if (option == SVNOption.LIMIT) { String limitStr = optionValue.getValue(); try { long limit = Long.parseLong(limitStr); ...
protected void initOption(SVNOptionValue optionValue) throws SVNException { AbstractSVNOption option = optionValue.getOption(); if (option == SVNOption.LIMIT) { String limitStr = optionValue.getValue(); try { long limit = Long.parseLong(limitStr); ...
diff --git a/grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/reflect/ClassPropertyFetcher.java b/grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/reflect/ClassPropertyFetcher.java index b6124819..2b0883bd 100644 --- a/grails-datastore-core/src/main/groovy/org/grails/datastore/mappin...
true
true
private void init() { List<Class> allClasses = resolveAllClasses(clazz); for (Class c : allClasses) { Field[] fields = c.getDeclaredFields(); for (Field field : fields) { processField(field); } Method[] methods = c.getDeclaredMethods()...
private void init() { List<Class> allClasses = resolveAllClasses(clazz); for (Class c : allClasses) { Field[] fields = c.getDeclaredFields(); for (Field field : fields) { processField(field); } Method[] methods = c.getDeclaredMethods()...
diff --git a/src/cz/muni/fi/pb138/log4jconverter/configuration/Logger.java b/src/cz/muni/fi/pb138/log4jconverter/configuration/Logger.java index 6737261..31c0179 100644 --- a/src/cz/muni/fi/pb138/log4jconverter/configuration/Logger.java +++ b/src/cz/muni/fi/pb138/log4jconverter/configuration/Logger.java @@ -1,187 +1,18...
true
true
public void generateXML(Document doc, Element config) { Element logger; if (!isCategory) { logger = doc.createElement("logger"); } else { logger = doc.createElement("category"); } logger.setAttribute("loggerName", name); if (className != null)...
public void generateXML(Document doc, Element config) { Element logger; if (!isCategory) { logger = doc.createElement("logger"); } else { logger = doc.createElement("category"); } logger.setAttribute("name", name); if (className != null) { ...
diff --git a/rmt/src/main/java/de/flower/rmt/ui/manager/page/players/PlayersPage.java b/rmt/src/main/java/de/flower/rmt/ui/manager/page/players/PlayersPage.java index 3efbc7c5..3ee35b95 100644 --- a/rmt/src/main/java/de/flower/rmt/ui/manager/page/players/PlayersPage.java +++ b/rmt/src/main/java/de/flower/rmt/ui/manager...
false
true
public PlayersPage() { final ModalDialogWindow modal = new ModalDialogWindow("playersDialog"); final PlayerEditPanel playerEditPanel = new PlayerEditPanel(modal.getContentId()); modal.setContent(playerEditPanel); add(modal); add(new MyAjaxLink("newButton") { @O...
public PlayersPage() { final ModalDialogWindow modal = new ModalDialogWindow("playerDialog"); final PlayerEditPanel playerEditPanel = new PlayerEditPanel(modal.getContentId()); modal.setContent(playerEditPanel); add(modal); add(new MyAjaxLink("newButton") { @Ov...
diff --git a/com/buglabs/nmea2/NMEASentenceFactory.java b/com/buglabs/nmea2/NMEASentenceFactory.java index 9a3d136..55996b1 100644 --- a/com/buglabs/nmea2/NMEASentenceFactory.java +++ b/com/buglabs/nmea2/NMEASentenceFactory.java @@ -1,79 +1,79 @@ /***********************************************************************...
true
true
public static AbstractNMEASentence getSentence(String gpsData) throws NMEAParserException { if (gpsData == null) { throw new NMEAParserException("Input data is NULL."); } try { if (gpsData.startsWith(SENTENCE_TYPES[0])) { return new PTTK(gpsData); } if (gpsData.startsWith(SENTENCE_TYPES[1])) {...
public static AbstractNMEASentence getSentence(String gpsData) throws NMEAParserException { if (gpsData == null) { throw new NMEAParserException("Input data is NULL."); } try { if (gpsData.startsWith(SENTENCE_TYPES[0])) { return new PTTK(gpsData); } if (gpsData.startsWith(SENTENCE_TYPES[1])) {...
diff --git a/data_structures/assignment_2/skeleton/Main.java b/data_structures/assignment_2/skeleton/Main.java index a03e030..51755a2 100644 --- a/data_structures/assignment_2/skeleton/Main.java +++ b/data_structures/assignment_2/skeleton/Main.java @@ -1,76 +1,76 @@ import java.io.BufferedReader; import java.io.File;...
true
true
public static void read_From_File( tring inputFilename, String outputFileName, MemoryManagementSystem memory) { try { File inFile = new File(inputFilename); FileReader ifr = new FileReader(inFile); BufferedReader ibr = new Bu...
public static void read_From_File( String inputFilename, String outputFileName, MemoryManagementSystem memory) { try { File inFile = new File(inputFilename); FileReader ifr = new FileReader(inFile); BufferedReader ibr = new B...
diff --git a/plugins/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/layout/RequesterFragment.java b/plugins/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/layout/RequesterFragment.java index ca0ce55f..b2fbfffd 10...
true
true
protected String doPostService( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { request.setAttribute( "ServletPath", request.getServletPath( ) ); //$NON-NLS-1$ String className = getClass( ).getName( ) .substring( getClass( ).getName( ).lastIndexOf( '.' ) + ...
protected String doPostService( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { //FIXME: workaround for Jetty request.setAttribute( "ServletPath", request.getServletPath( ) ); //$NON-NLS-1$ String className = getClass( ).getName( ) .substring( getClass( )....
diff --git a/runtime/src/com/sun/xml/bind/v2/model/annotation/LocatableAnnotation.java b/runtime/src/com/sun/xml/bind/v2/model/annotation/LocatableAnnotation.java index 6999e25d..addc8a22 100644 --- a/runtime/src/com/sun/xml/bind/v2/model/annotation/LocatableAnnotation.java +++ b/runtime/src/com/sun/xml/bind/v2/model/a...
true
true
public static <A extends Annotation> A create( A annotation, Locatable parentSourcePos ) { if(annotation==null) return null; Class<? extends Annotation> type = annotation.annotationType(); if(quicks.containsKey(type)) { // use the existing proxy implementation if available ...
public static <A extends Annotation> A create( A annotation, Locatable parentSourcePos ) { if(annotation==null) return null; Class<? extends Annotation> type = annotation.annotationType(); if(quicks.containsKey(type)) { // use the existing proxy implementation if available ...
diff --git a/net.paissad.waqtsalat.ui/src/net/paissad/waqtsalat/ui/actions/StopPlayingAdhanAction.java b/net.paissad.waqtsalat.ui/src/net/paissad/waqtsalat/ui/actions/StopPlayingAdhanAction.java index 6155c95..ef4f570 100644 --- a/net.paissad.waqtsalat.ui/src/net/paissad/waqtsalat/ui/actions/StopPlayingAdhanAction.java...
false
true
public StopPlayingAdhanAction(final Collection<Pray> prayTimes, String text, int style, ImageDescriptor image) { super(text, style); this.prays = prayTimes; setImageDescriptor(image); Thread t = new Thread(new Runnable() { @Override public void run() { ...
public StopPlayingAdhanAction(final Collection<Pray> prayTimes, String text, int style, ImageDescriptor image) { super(text, style); this.prays = prayTimes; setImageDescriptor(image); Thread t = new Thread(new Runnable() { @Override public void run() { ...
diff --git a/Npr/src/org/npr/android/news/NewsListAdapter.java b/Npr/src/org/npr/android/news/NewsListAdapter.java index bcffdea..526089d 100644 --- a/Npr/src/org/npr/android/news/NewsListAdapter.java +++ b/Npr/src/org/npr/android/news/NewsListAdapter.java @@ -1,311 +1,315 @@ // Copyright 2009 Google Inc. // Copyrigh...
true
true
public View getView(final int position, View convertView, final ViewGroup parent) { if (convertView == null) { convertView = inflater.inflate(R.layout.news_item, parent, false); } Story story = getItem(position); ImageView icon = (ImageView) convertView.findViewById(R.id.NewsItemIcon); Te...
public View getView(final int position, View convertView, final ViewGroup parent) { if (convertView == null) { convertView = inflater.inflate(R.layout.news_item, parent, false); } Story story = getItem(position); ImageView icon = (ImageView) convertView.findViewById(R.id.NewsItemIcon); Te...
diff --git a/morphia/src/main/java/com/google/code/morphia/query/QueryImpl.java b/morphia/src/main/java/com/google/code/morphia/query/QueryImpl.java index 51252f7..1cadf08 100644 --- a/morphia/src/main/java/com/google/code/morphia/query/QueryImpl.java +++ b/morphia/src/main/java/com/google/code/morphia/query/QueryImpl....
true
true
public Query<T> filter(String condition, Object value) { String[] parts = condition.trim().split(" "); if (parts.length < 1 || parts.length > 6) throw new IllegalArgumentException("'" + condition + "' is not a legal filter condition"); String prop = parts[0].trim(); FilterOperator op = (parts.length == 2...
public Query<T> filter(String condition, Object value) { String[] parts = condition.trim().split(" "); if (parts.length < 1 || parts.length > 6) throw new IllegalArgumentException("'" + condition + "' is not a legal filter condition"); String prop = parts[0].trim(); FilterOperator op = (parts.length == 2...
diff --git a/projects/base/src/main/java/org/muis/base/widget/Button.java b/projects/base/src/main/java/org/muis/base/widget/Button.java index 523b1f06..0ffab3d3 100644 --- a/projects/base/src/main/java/org/muis/base/widget/Button.java +++ b/projects/base/src/main/java/org/muis/base/widget/Button.java @@ -1,197 +1,197 ...
true
true
public Button() { setFocusable(true); atts().accept(new Object(), LAYOUT_ATTR); atts().accept(new Object(), ModelAttributes.action); life().runWhen(new Runnable() { @Override public void run() { state().addListener(MuisConstants.States.CLICK_NAME, new org.muis.core.mgr.StateEngine.StateListener() { ...
public Button() { setFocusable(true); atts().accept(new Object(), LAYOUT_ATTR); atts().accept(new Object(), ModelAttributes.action); life().runWhen(new Runnable() { @Override public void run() { state().addListener(MuisConstants.States.CLICK, new org.muis.core.mgr.StateEngine.StateListener() { p...
diff --git a/src/net/slipcor/pvparena/PVPArena.java b/src/net/slipcor/pvparena/PVPArena.java index 06579c36..4e8f332b 100644 --- a/src/net/slipcor/pvparena/PVPArena.java +++ b/src/net/slipcor/pvparena/PVPArena.java @@ -1,338 +1,338 @@ package net.slipcor.pvparena; import java.io.File; import java.io.IOException; ...
false
true
public boolean onCommand(final CommandSender sender, final Command cmd, final String commandLabel, final String[] args) { if (args.length < 1) { sender.sendMessage("�e�l|-- PVP Arena --|"); sender.sendMessage("�e�o--By slipcor--"); sender.sendMessage("�7�oDo �e/pa help �7�ofor help."); return true; ...
public boolean onCommand(final CommandSender sender, final Command cmd, final String commandLabel, final String[] args) { if (args.length < 1) { sender.sendMessage("�e�l|-- PVP Arena --|"); sender.sendMessage("�e�o--By slipcor--"); sender.sendMessage("�7�oDo �e/pa help �7�ofor help."); return true; ...
diff --git a/mcu/src/org/smbarbour/mcu/NativeLauncherThread.java b/mcu/src/org/smbarbour/mcu/NativeLauncherThread.java index 0f88926..d409905 100644 --- a/mcu/src/org/smbarbour/mcu/NativeLauncherThread.java +++ b/mcu/src/org/smbarbour/mcu/NativeLauncherThread.java @@ -1,222 +1,223 @@ package org.smbarbour.mcu; impo...
false
true
public void run() { String javaBin = "java"; File binDir = new File(jrePath+MCUpdater.sep+"bin"); if( binDir.exists() ) { javaBin = binDir + MCUpdater.sep + "java"; } StringBuilder sbClassPath = new StringBuilder(); String mcBinPath = parent.mcu.getMCFolder() + MCUpdater.sep + "bin" + MCUpdater.sep; ...
public void run() { String javaBin = "java"; File binDir = new File(jrePath+MCUpdater.sep+"bin"); if( binDir.exists() ) { javaBin = binDir + MCUpdater.sep + "java"; } StringBuilder sbClassPath = new StringBuilder(); String mcBinPath = parent.mcu.getMCFolder() + MCUpdater.sep + "bin" + MCUpdater.sep; ...
diff --git a/src/main/java/com/github/rnewson/couchdb/lucene/SearchServlet.java b/src/main/java/com/github/rnewson/couchdb/lucene/SearchServlet.java index 3352e4d..2b7ca8a 100644 --- a/src/main/java/com/github/rnewson/couchdb/lucene/SearchServlet.java +++ b/src/main/java/com/github/rnewson/couchdb/lucene/SearchServlet....
true
true
protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { if (req.getParameter("q") == null) { resp.sendError(400, "Missing q attribute."); return; } final ViewSignature sig = state.locator.lookup(req); ...
protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { if (req.getParameter("q") == null) { resp.sendError(400, "Missing q attribute."); return; } final ViewSignature sig = state.locator.lookup(req); ...
diff --git a/org.eclipse.mylyn.resources.ui/src/org/eclipse/mylyn/internal/resources/ui/ResourceInteractionMonitor.java b/org.eclipse.mylyn.resources.ui/src/org/eclipse/mylyn/internal/resources/ui/ResourceInteractionMonitor.java index e7892e93f..235bc7a99 100644 --- a/org.eclipse.mylyn.resources.ui/src/org/eclipse/myly...
true
true
protected void handleWorkbenchPartSelection(IWorkbenchPart part, ISelection selection, boolean contributeToContext) { if (selection instanceof StructuredSelection) { StructuredSelection structuredSelection = (StructuredSelection) selection; Object selectedObject = structuredSelection.getFirstElement(); if ...
protected void handleWorkbenchPartSelection(IWorkbenchPart part, ISelection selection, boolean contributeToContext) { if (selection instanceof StructuredSelection) { StructuredSelection structuredSelection = (StructuredSelection) selection; Object selectedObject = structuredSelection.getFirstElement(); if ...
diff --git a/java/src/com/google/template/soy/gosrc/internal/GoSrcMain.java b/java/src/com/google/template/soy/gosrc/internal/GoSrcMain.java index 088728f..443e646 100644 --- a/java/src/com/google/template/soy/gosrc/internal/GoSrcMain.java +++ b/java/src/com/google/template/soy/gosrc/internal/GoSrcMain.java @@ -1,121 +...
true
true
public List<Pair<String,String>> genGoSrc( SoyFileSetNode soyTree, SoyGoSrcOptions goSrcOptions, @Nullable SoyMsgBundle msgBundle) throws SoySyntaxException { try { (new InsertMsgsVisitor(msgBundle, false)).exec(soyTree); } catch (EncounteredPluralSelectMsgException e) { throw n...
public List<Pair<String,String>> genGoSrc( SoyFileSetNode soyTree, SoyGoSrcOptions goSrcOptions, @Nullable SoyMsgBundle msgBundle) throws SoySyntaxException { try { (new InsertMsgsVisitor(msgBundle, false)).exec(soyTree); } catch (EncounteredPluralSelectMsgException e) { throw n...
diff --git a/Inventory/src/com/fnz/dao/IncomingStockDAO.java b/Inventory/src/com/fnz/dao/IncomingStockDAO.java index 3876922..ad4d261 100644 --- a/Inventory/src/com/fnz/dao/IncomingStockDAO.java +++ b/Inventory/src/com/fnz/dao/IncomingStockDAO.java @@ -1,241 +1,241 @@ package com.fnz.dao; import java.sql.Connection...
true
true
public String addIncomingStock(String invoiceNo, String date, ObservableList<ItemVO> listData, ObservableList<CategoryTypeVO> typeList) throws Exception { Connection conn = null; ResultSet resultSet = null; SQLiteConfig config = null; java.sql.Statement statement = null; Class.forName(CommonConstants.DRIVE...
public String addIncomingStock(String invoiceNo, String date, ObservableList<ItemVO> listData, ObservableList<CategoryTypeVO> typeList) throws Exception { Connection conn = null; ResultSet resultSet = null; SQLiteConfig config = null; java.sql.Statement statement = null; Class.forName(CommonConstants.DRIVE...
diff --git a/modules/org.restlet/src/org/restlet/engine/local/LocalClientHelper.java b/modules/org.restlet/src/org/restlet/engine/local/LocalClientHelper.java index 2cc35f1f4..b928d1df7 100644 --- a/modules/org.restlet/src/org/restlet/engine/local/LocalClientHelper.java +++ b/modules/org.restlet/src/org/restlet/engine/...
true
true
public final void handle(Request request, Response response) { // Ensure that all ".." and "." are normalized into the path // to prevent unauthorized access to user directories. request.getResourceRef().normalize(); // As the path may be percent-encoded, it has to be percent-decode...
public final void handle(Request request, Response response) { // Ensure that all ".." and "." are normalized into the path // to prevent unauthorized access to user directories. request.getResourceRef().normalize(); // As the path may be percent-encoded, it has to be percent-decode...
diff --git a/ini/trakem2/display/graphics/TestGraphicsSource.java b/ini/trakem2/display/graphics/TestGraphicsSource.java index aab0071a..d5b521ab 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<? extends 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 magn...
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/PullPit/src/kea/kme/pullpit/server/persistence/PodioObjectHandler.java b/PullPit/src/kea/kme/pullpit/server/persistence/PodioObjectHandler.java index 7f820bd..66f1fbf 100644 --- a/PullPit/src/kea/kme/pullpit/server/persistence/PodioObjectHandler.java +++ b/PullPit/src/kea/kme/pullpit/server/persistence/Pod...
true
true
public void writeShows(PodioShow... pshow) throws SQLException { Connection c = DBConnector.getInstance().getConnection(); PreparedStatement ps = c.prepareStatement("INSERT INTO shows VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); for (PodioShow p : pshow) { pshow.setInt(1, pshow.getShowID()); ...
public void writeShows(PodioShow... pshow) throws SQLException { Connection c = DBConnector.getInstance().getConnection(); PreparedStatement ps = c.prepareStatement("INSERT INTO shows VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); for (PodioShow p : pshow) { ps.setInt(1, p.getShowID()); ps.setI...
diff --git a/src/java/org/hibernate/tool/hbm2x/HibernateConfigurationExporter.java b/src/java/org/hibernate/tool/hbm2x/HibernateConfigurationExporter.java index 3b17e754..7a877c3f 100644 --- a/src/java/org/hibernate/tool/hbm2x/HibernateConfigurationExporter.java +++ b/src/java/org/hibernate/tool/hbm2x/HibernateConfigur...
true
true
public void doStart() throws ExporterException { PrintWriter pw = null; File file = null; try { if(output==null) { file = new File(getOutputDirectory(), "hibernate.cfg.xml"); getTemplateHelper().ensureExistence(file); pw = new PrintWriter(new FileWriter(file) ); getArtifact...
public void doStart() throws ExporterException { PrintWriter pw = null; File file = null; try { if(output==null) { file = new File(getOutputDirectory(), "hibernate.cfg.xml"); getTemplateHelper().ensureExistence(file); pw = new PrintWriter(new FileWriter(file) ); getArtifact...
diff --git a/src/main/java/org/jmxexporter/QueryResult.java b/src/main/java/org/jmxexporter/QueryResult.java index 77a77a2..deab93e 100644 --- a/src/main/java/org/jmxexporter/QueryResult.java +++ b/src/main/java/org/jmxexporter/QueryResult.java @@ -1,77 +1,77 @@ /* * Copyright 2008-2012 Xebia and the original author...
true
true
public String toString() { return "QueryResult{" + ", epoch=" + new Timestamp(epochInMillis) + ", name='" + name + '\'' + ", value=" + value + '}'; }
public String toString() { return "QueryResult{" + " epoch=" + new Timestamp(epochInMillis) + ", name='" + name + '\'' + ", value=" + value + '}'; }
diff --git a/src/java/main/esg/node/filters/AccessLoggingFilter.java b/src/java/main/esg/node/filters/AccessLoggingFilter.java index ce89340..1f274f2 100644 --- a/src/java/main/esg/node/filters/AccessLoggingFilter.java +++ b/src/java/main/esg/node/filters/AccessLoggingFilter.java @@ -1,422 +1,423 @@ /*****************...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { if(filterConfig == null) return; int id = -1; //Record identifying tuple String userI...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { if(filterConfig == null) return; int id = -1; //Record identifying tuple String userI...
diff --git a/src/edu/gatech/oad/antlab/person/Person2.java b/src/edu/gatech/oad/antlab/person/Person2.java index 60b6702..108e9b4 100644 --- a/src/edu/gatech/oad/antlab/person/Person2.java +++ b/src/edu/gatech/oad/antlab/person/Person2.java @@ -1,63 +1,63 @@ package edu.gatech.oad.antlab.person; /** * A simple c...
true
true
private String calc(String input) { //Person 2 put your implementation here char[] charArray = input.toCharArray(); int shuffle = input.length(); for (int i = 0; i < shuffle; i++) { int index1 = (int) (Math.random() * turtle.length); int index2 = (int) (Math.random() * turtle.length); char temp1 = ...
private String calc(String input) { //Person 2 put your implementation here char[] charArray = input.toCharArray(); int shuffle = input.length(); for (int i = 0; i < shuffle; i++) { int index1 = (int) (Math.random() * charArray.length); int index2 = (int) (Math.random() * charArray.length); char te...
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/RoutingServiceImpl.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/RoutingServiceImpl.java index ac2b745..5bc32f6 100644 --- a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/RoutingS...
true
true
public GraphPath route(Vertex fromVertex, Vertex toVertex, State state, TraverseOptions options) { HashMap<Vertex, Edge> extraEdges = new HashMap<Vertex, Edge>(); ShortestPathTree spt = AStar.getShortestPathTree(_graph, fromVertex, toVertex, state, options, extraEdges); ret...
public GraphPath route(Vertex fromVertex, Vertex toVertex, State state, TraverseOptions options) { HashMap<Vertex, Edge> extraEdges = new HashMap<Vertex, Edge>(); ShortestPathTree spt = AStar.getShortestPathTree(_graph, fromVertex.getLabel(), toVertex.getLabel(), state, options); ...
diff --git a/src/com/group7/dragonwars/GameActivity.java b/src/com/group7/dragonwars/GameActivity.java index 11ea84a..ff06439 100644 --- a/src/com/group7/dragonwars/GameActivity.java +++ b/src/com/group7/dragonwars/GameActivity.java @@ -1,1016 +1,1016 @@ package com.group7.dragonwars; import android.app.Activity; ...
true
true
public void doDraw(final Canvas canvas) { Long startingTime = System.currentTimeMillis(); Configuration c = getResources().getConfiguration(); canvas.drawColor(Color.BLACK); GameField selectedField = map.getField(selected); List<Position> unitDests = getUnitDestinations(s...
public void doDraw(final Canvas canvas) { Long startingTime = System.currentTimeMillis(); Configuration c = getResources().getConfiguration(); canvas.drawColor(Color.BLACK); GameField selectedField = map.isValidField(selected) ? map.getField(selected) : map.getField(0, 0); ...
diff --git a/src/be/ibridge/kettle/trans/step/mergejoin/MergeJoin.java b/src/be/ibridge/kettle/trans/step/mergejoin/MergeJoin.java index 61176918..510727b8 100644 --- a/src/be/ibridge/kettle/trans/step/mergejoin/MergeJoin.java +++ b/src/be/ibridge/kettle/trans/step/mergejoin/MergeJoin.java @@ -1,475 +1,475 @@ /******...
false
true
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException { meta=(MergeJoinMeta)smi; data=(MergeJoinData)sdi; int compare; if (first) { first = false; data.one=getRowFrom(meta.getStepName1()); data.two=getRowFrom(me...
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException { meta=(MergeJoinMeta)smi; data=(MergeJoinData)sdi; int compare; if (first) { first = false; data.one=getRowFrom(meta.getStepName1()); data.two=getRowFrom(me...
diff --git a/app/controllers/Application.java b/app/controllers/Application.java index 08fb047..f27a900 100644 --- a/app/controllers/Application.java +++ b/app/controllers/Application.java @@ -1,45 +1,45 @@ package controllers; import static play.data.Form.*; import java.util.List; import models.MyData; im...
true
true
public static Result index() { String title = "play"; String msg = "フォーム"; Form<MyData> mydata = form(MyData.class); List<MyData> mydatas = MyData.find.all(); return ok(index.render(title, msg, mydatas, mydata)); }
public static Result index() { String title = "あなたはどこに行きたい?????"; String msg = "フォーム"; Form<MyData> mydata = form(MyData.class); List<MyData> mydatas = MyData.find.all(); return ok(index.render(title, msg, mydatas, mydata)); }
diff --git a/src/main/java/org/logblock/Commands.java b/src/main/java/org/logblock/Commands.java index 0383183..0283b00 100644 --- a/src/main/java/org/logblock/Commands.java +++ b/src/main/java/org/logblock/Commands.java @@ -1,100 +1,107 @@ package org.logblock; import java.lang.annotation.ElementType; import java...
false
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Method method = commandMap.get(label); if (method != null) { AnnotatedCommand annotation = method.getAnnotation(AnnotatedCommand.class); if (!sender.hasPermission("logbl...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Method method = commandMap.get(label); if (method != null) { AnnotatedCommand annotation = method.getAnnotation(AnnotatedCommand.class); if (!sender.hasPermission("logbl...
diff --git a/farrago/src/net/sf/farrago/type/runtime/NullablePrimitive.java b/farrago/src/net/sf/farrago/type/runtime/NullablePrimitive.java index a8f235d9a..9ba08d261 100644 --- a/farrago/src/net/sf/farrago/type/runtime/NullablePrimitive.java +++ b/farrago/src/net/sf/farrago/type/runtime/NullablePrimitive.java @@ -1,3...
true
true
public void assignFrom(Object obj) { if (obj == null) { setNull(true); } else if (obj instanceof Number) { setNull(false); setNumber((Number) obj); } else if (obj instanceof NullablePrimitive) { NullablePrimitive nullable = (NullablePrimiti...
public void assignFrom(Object obj) { if (obj == null) { setNull(true); } else if (obj instanceof Number) { setNull(false); setNumber((Number) obj); } else if (obj instanceof NullablePrimitive) { NullablePrimitive nullable = (NullablePrimiti...
diff --git a/cas-client-core/src/main/java/org/jasig/cas/client/util/AbstractConfigurationFilter.java b/cas-client-core/src/main/java/org/jasig/cas/client/util/AbstractConfigurationFilter.java index 2e2fdfb..1db5838 100644 --- a/cas-client-core/src/main/java/org/jasig/cas/client/util/AbstractConfigurationFilter.java ++...
true
true
protected final String getPropertyFromInitParams(final FilterConfig filterConfig, final String propertyName, final String defaultValue) { final String value = filterConfig.getInitParameter(propertyName); if (CommonUtils.isNotBlank(value)) { log.info("Property [" + propertyName + "] loa...
protected final String getPropertyFromInitParams(final FilterConfig filterConfig, final String propertyName, final String defaultValue) { final String value = filterConfig.getInitParameter(propertyName); if (CommonUtils.isNotBlank(value)) { log.info("Property [" + propertyName + "] loa...
diff --git a/Core/src/java/de/hattrickorganizer/net/ConvertXml2Hrf.java b/Core/src/java/de/hattrickorganizer/net/ConvertXml2Hrf.java index ad7db0a3..cbfd35c0 100644 --- a/Core/src/java/de/hattrickorganizer/net/ConvertXml2Hrf.java +++ b/Core/src/java/de/hattrickorganizer/net/ConvertXml2Hrf.java @@ -1,644 +1,644 @@ // %...
true
true
public final String createHrf(LoginWaitDialog waitDialog) throws Exception { //init m_sHRFBuffer = new StringBuffer(); try { //Hashtable's füllen final MyConnector mc = MyConnector.instance(); waitDialog.setValue(5); m_htTeamdeatils = new xmlTeam...
public final String createHrf(LoginWaitDialog waitDialog) throws Exception { //init m_sHRFBuffer = new StringBuffer(); try { //Hashtable's füllen final MyConnector mc = MyConnector.instance(); waitDialog.setValue(5); m_htTeamdetails = new xmlTeam...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/planner/TaskReportGenerator.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/planner/TaskReportGenerator.java index c0fab102e..82987d3c6 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/interna...
false
true
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { List<ITask> roots = tasklist.getRootTasks(); monitor.beginTask("Mylar Task Planner", 1 + tasklist.getCategories().size()); for(int i = 0; i < roots.size(); i++) { ITask task = (ITask) roots.get(i); for (ITask...
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { List<ITask> roots = tasklist.getRootTasks(); monitor.beginTask("Mylar Task Planner", tasklist.getRoots().size() * (1+tasklist.getCategories().size())); // for(int i = 0; i < roots.size(); i++) { ITask task = (IT...
diff --git a/src/test/functional/org/xmx0632/deliciousfruit/api/v1/FruitProductApiGetAllTest.java b/src/test/functional/org/xmx0632/deliciousfruit/api/v1/FruitProductApiGetAllTest.java index c212b23..294228f 100644 --- a/src/test/functional/org/xmx0632/deliciousfruit/api/v1/FruitProductApiGetAllTest.java +++ b/src/test...
true
true
public void testGetAllSuccess() throws Exception { HttpHeaders requestHeaders = createHttpHeader("user2", "password1"); AllFruitProductRequest allFruitProductRequest = new AllFruitProductRequest(); allFruitProductRequest.setTerminalType(TerminalType.IOS_RETINA.name()); HttpEntity<AllFruitProductRequest> enti...
public void testGetAllSuccess() throws Exception { HttpHeaders requestHeaders = createHttpHeader("user2", "password1"); AllFruitProductRequest allFruitProductRequest = new AllFruitProductRequest(); allFruitProductRequest.setTerminalType(TerminalType.IOS_RETINA.name()); HttpEntity<AllFruitProductRequest> enti...
diff --git a/src/net/rptools/maptool/client/ui/htmlframe/HTMLPaneFormView.java b/src/net/rptools/maptool/client/ui/htmlframe/HTMLPaneFormView.java index 84690aa8..859ea5ff 100644 --- a/src/net/rptools/maptool/client/ui/htmlframe/HTMLPaneFormView.java +++ b/src/net/rptools/maptool/client/ui/htmlframe/HTMLPaneFormView.ja...
true
true
private Map<String, String> getDataFrom(Element ele, String selectedImageMap) { Map<String, String> vals = new HashMap<String, String>(); for (int i = 0; i < ele.getElementCount(); i++) { Element e = ele.getElement(i); AttributeSet as = e.getAttributes(); if (as.getAttribute(StyleConstants.Mode...
private Map<String, String> getDataFrom(Element ele, String selectedImageMap) { Map<String, String> vals = new HashMap<String, String>(); for (int i = 0; i < ele.getElementCount(); i++) { Element e = ele.getElement(i); AttributeSet as = e.getAttributes(); if (as.getAttribute(StyleConstants.Mode...
diff --git a/src/services/DevService.java b/src/services/DevService.java index f9689348..9b0eae3e 100644 --- a/src/services/DevService.java +++ b/src/services/DevService.java @@ -1,316 +1,316 @@ /******************************************************************************* * Copyright (c) 2013 <Project SWG> * ...
false
true
public void sendCharacterBuilderSUI(CreatureObject creature, int childMenu) { Map<Long, String> suiOptions = new HashMap<Long, String>(); switch(childMenu) { case 0: // Root suiOptions.put((long) 1, "Character"); suiOptions.put((long) 2, "Items"); break; case 1: // Character suiOptions...
public void sendCharacterBuilderSUI(CreatureObject creature, int childMenu) { Map<Long, String> suiOptions = new HashMap<Long, String>(); switch(childMenu) { case 0: // Root suiOptions.put((long) 1, "Character"); suiOptions.put((long) 2, "Items"); break; case 1: // Character suiOptions...
diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/JSONServlet.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/JSONServlet.java index 3a27a8401..e250fece0 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/JSONServlet.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp...
false
true
protected static JSONObject getLuceneIndividualsByVClass(String vclassURI, HttpServletRequest req, HttpServletResponse resp, ServletContext context) throws Exception { VitroRequest vreq = new VitroRequest(req); VClass vclass=null; JSONObject rObj = new JSONObject(); ...
protected static JSONObject getLuceneIndividualsByVClass(String vclassURI, HttpServletRequest req, HttpServletResponse resp, ServletContext context) throws Exception { VitroRequest vreq = new VitroRequest(req); VClass vclass=null; JSONObject rObj = new JSONObject(); ...
diff --git a/proxy/src/main/java/org/fedoraproject/candlepin/auth/interceptor/AccessControlInterceptor.java b/proxy/src/main/java/org/fedoraproject/candlepin/auth/interceptor/AccessControlInterceptor.java index 400b84129..572ea6e5c 100644 --- a/proxy/src/main/java/org/fedoraproject/candlepin/auth/interceptor/AccessCont...
false
true
private void crudAccessControl(Object entity) { Principal currentUser = this.principalProvider.get(); Role role = currentUser.getRoles().get(0); // Only available on entities that implement AccessControlEnforced interface if (Role.CONSUMER == role) { ConsumerPrincipal co...
private void crudAccessControl(Object entity) { Principal currentUser = this.principalProvider.get(); Role role = currentUser.getRoles().get(0); // Only available on entities that implement AccessControlEnforced interface if (currentUser.getRoles().contains(Role.SUPER_ADMIN)) { ...
diff --git a/edu/wisc/ssec/mcidasv/data/hydra/GranuleAggregation.java b/edu/wisc/ssec/mcidasv/data/hydra/GranuleAggregation.java index 3ee066983..7fa0474d1 100644 --- a/edu/wisc/ssec/mcidasv/data/hydra/GranuleAggregation.java +++ b/edu/wisc/ssec/mcidasv/data/hydra/GranuleAggregation.java @@ -1,436 +1,436 @@ /* * $Id...
false
true
private synchronized Object readArray(String array_name, int[] start, int[] count, int[] stride) throws Exception { // how many dimensions are we dealing with int dimensionCount = start.length; // which granules will we be dealing with? int loGranuleId = start[inTrackIndex] / granuleLength;...
private synchronized Object readArray(String array_name, int[] start, int[] count, int[] stride) throws Exception { // how many dimensions are we dealing with int dimensionCount = start.length; // which granules will we be dealing with? int loGranuleId = start[inTrackIndex] / granuleLength;...
diff --git a/src/commands/Attack.java b/src/commands/Attack.java index 9feedfd..6449bd0 100644 --- a/src/commands/Attack.java +++ b/src/commands/Attack.java @@ -1,110 +1,115 @@ package commands; import graphics.Animation; import actors.Actor; import actors.Player; public class Attack extends Command { fina...
true
true
public void execute() { //make sure the animation is in relation to the target sprite anim.setRelation(invoker.getTarget().getSprite()); //reset damage damage = 0; hits = (1+(invoker.getAcc()/32))*1; if (!invoker.getTarget().getAlive()) return; /* * Calculate the chance of hitting * de...
public void execute() { //make sure the animation is in relation to the target sprite if (anim.getRelationType() == 2) anim.setRelation(invoker.getSprite()); else if (anim.getRelationType() == 1) anim.setRelation(invoker.getTarget().getSprite()); else anim.setRelation(null); //reset damage da...
diff --git a/src/org/fife/rsta/ac/js/resolver/JavaScriptCompletionResolver.java b/src/org/fife/rsta/ac/js/resolver/JavaScriptCompletionResolver.java index 7b2b88c..edf7322 100644 --- a/src/org/fife/rsta/ac/js/resolver/JavaScriptCompletionResolver.java +++ b/src/org/fife/rsta/ac/js/resolver/JavaScriptCompletionResolver....
true
true
public boolean visit(AstNode node) { Logger.log(JavaScriptHelper.convertNodeToSource(node)); Logger.log(node.shortName()); if(!validNode(node)) { //invalid node found, set last completion invalid and stop processing lastJavaScriptType = null; return false; } if (ignore(node...
public boolean visit(AstNode node) { Logger.log(JavaScriptHelper.convertNodeToSource(node)); Logger.log(node.shortName()); if(!validNode(node)) { //invalid node found, set last completion invalid and stop processing lastJavaScriptType = null; return false; } if (ignore(node...
diff --git a/hale/eu.esdihumboldt.hale.core/src/eu/esdihumboldt/hale/core/io/project/model/Project.java b/hale/eu.esdihumboldt.hale.core/src/eu/esdihumboldt/hale/core/io/project/model/Project.java index 3ff1a93f2..7e73045d4 100644 --- a/hale/eu.esdihumboldt.hale.core/src/eu/esdihumboldt/hale/core/io/project/model/Proje...
true
true
public static void save(Project project, OutputStream out) throws MappingException, MarshalException, ValidationException, IOException { Mapping mapping = new Mapping(Project.class.getClassLoader()); mapping.loadMapping(new InputSource( Project.class.getResourceAsStream("Project.xml"))); XMLContex...
public static void save(Project project, OutputStream out) throws MappingException, MarshalException, ValidationException, IOException { Mapping mapping = new Mapping(Project.class.getClassLoader()); mapping.loadMapping(new InputSource( Project.class.getResourceAsStream("Project.xml"))); XMLContex...
diff --git a/src/main/java/de/cismet/tools/gui/downloadmanager/DownloadManagerOptionsPanel.java b/src/main/java/de/cismet/tools/gui/downloadmanager/DownloadManagerOptionsPanel.java index 9e135e1..b24562b 100644 --- a/src/main/java/de/cismet/tools/gui/downloadmanager/DownloadManagerOptionsPanel.java +++ b/src/main/java/...
false
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; rgrOpenAutomatically = new javax.swing.ButtonGroup(); fileChooser = new javax.swing.JFileChooser(); rgrCloseAutomatically = new javax.swing.ButtonGroup(); lblDestinationDirectory = new javax.swin...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; rgrOpenAutomatically = new javax.swing.ButtonGroup(); fileChooser = new javax.swing.JFileChooser(); rgrCloseAutomatically = new javax.swing.ButtonGroup(); lblDestinationDirectory = new javax.swin...
diff --git a/src/org/dita/dost/writer/KeyrefPaser.java b/src/org/dita/dost/writer/KeyrefPaser.java index 87b96f8cb..1c200552e 100644 --- a/src/org/dita/dost/writer/KeyrefPaser.java +++ b/src/org/dita/dost/writer/KeyrefPaser.java @@ -1,777 +1,777 @@ /* * This file is part of the DITA Open Toolkit project hosted on ...
true
true
public void startElement(final String uri, final String localName, final String name, final Attributes atts) throws SAXException { currentElement = null; final String cls = atts.getValue(ATTRIBUTE_NAME_CLASS); for (final KeyrefInfo k: keyrefInfos) { if (k.type.matches...
public void startElement(final String uri, final String localName, final String name, final Attributes atts) throws SAXException { currentElement = null; final String cls = atts.getValue(ATTRIBUTE_NAME_CLASS); for (final KeyrefInfo k: keyrefInfos) { if (k.type.matches...
diff --git a/Coliseum/src/org/SkyCraft/Coliseum/ColiseumCommandExecutor.java b/Coliseum/src/org/SkyCraft/Coliseum/ColiseumCommandExecutor.java index 02940bb..e436e50 100644 --- a/Coliseum/src/org/SkyCraft/Coliseum/ColiseumCommandExecutor.java +++ b/Coliseum/src/org/SkyCraft/Coliseum/ColiseumCommandExecutor.java @@ -1,3...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String aliasUsed, String[] args) { if(sender instanceof ConsoleCommandSender || sender instanceof RemoteConsoleCommandSender) { sender.sendMessage("[Coliseum] Coliseum can only be used in-game."); return true; } else { if(args.length == 0) { ...
public boolean onCommand(CommandSender sender, Command cmd, String aliasUsed, String[] args) { if(sender instanceof ConsoleCommandSender || sender instanceof RemoteConsoleCommandSender) { sender.sendMessage("[Coliseum] Coliseum can only be used in-game."); return true; } else { if(args.length == 0) { ...
diff --git a/src/com/anysoftkeyboard/keyboards/views/AnyKeyboardBaseView.java b/src/com/anysoftkeyboard/keyboards/views/AnyKeyboardBaseView.java index c1631d2a..d4eae93e 100644 --- a/src/com/anysoftkeyboard/keyboards/views/AnyKeyboardBaseView.java +++ b/src/com/anysoftkeyboard/keyboards/views/AnyKeyboardBaseView.java @...
false
true
private void onBufferDraw(Canvas canvas) { if (mKeyboardChanged) { invalidateAllKeys(); mKeyboardChanged = false; } canvas.getClipBounds(mDirtyRect); if (mKeyboard == null) return; final boolean drawKeyboardNameText = (mKeyboardNameTextSize > 1) && AnyApplication.getConfig().getShowKeyboardNa...
private void onBufferDraw(Canvas canvas) { if (mKeyboardChanged) { invalidateAllKeys(); mKeyboardChanged = false; } canvas.getClipBounds(mDirtyRect); if (mKeyboard == null) return; final boolean drawKeyboardNameText = (mKeyboardNameTextSize > 1f) && AnyApplication.getConfig().getShowKeyboardN...
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java b/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java index f0b0742d8..6059e7d9f 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java @@ -1,1899 +1,1903 @@ /* *****************************...
true
true
public void weaveAroundInline( BcelAdvice munger, boolean hasDynamicTest) { /* Implementation notes: * * AroundInline still extracts the instructions of the original shadow into * an extracted method. This allows inlining of even that advice that doesn't * call proceed or calls proceed m...
public void weaveAroundInline( BcelAdvice munger, boolean hasDynamicTest) { /* Implementation notes: * * AroundInline still extracts the instructions of the original shadow into * an extracted method. This allows inlining of even that advice that doesn't * call proceed or calls proceed m...
diff --git a/src/plugin/Stalemate.java b/src/plugin/Stalemate.java index 3af2ac2..9940f30 100644 --- a/src/plugin/Stalemate.java +++ b/src/plugin/Stalemate.java @@ -1,859 +1,861 @@ package plugin; import java.io.*; import static util.ColorParser.parseColors; import org.bukkit.Location; import org.bukkit.World;...
false
true
public void onEnable() { if (getDataFolder().isFile()) getDataFolder().delete(); if (!getDataFolder().exists()) getDataFolder().mkdir(); // TODO: Implement all commands registerCommand(getSetting("help_cmd", "help"), getSetting("help_help", "Shows the help page."), new CommandCallback() { @Override ...
public void onEnable() { if (getDataFolder().isFile()) getDataFolder().delete(); if (!getDataFolder().exists()) getDataFolder().mkdir(); // TODO: Implement all commands registerCommand(getSetting("help_cmd", "help"), getSetting("help_help", "Shows the help page."), new CommandCallback() { @Override ...
diff --git a/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/CancelBuildAction.java b/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/CancelBuildAction.java index a016c1c10..f7dc63506 100644 --- a/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/CancelBuildA...
true
true
public String cancelBuilds() throws ContinuumException { // first we remove from the build queue if ( getSelectedProjects().isEmpty() ) { return SUCCESS; } int[] projectsId = new int[getSelectedProjects().size()]; for ( String selectedProjectId...
public String cancelBuilds() throws ContinuumException { // first we remove from the build queue if ( getSelectedProjects() != null && getSelectedProjects().isEmpty() ) { return SUCCESS; } int[] projectsId = new int[getSelectedProjects().size()]; ...
diff --git a/src/com/android/browser/OpenDownloadReceiver.java b/src/com/android/browser/OpenDownloadReceiver.java index 99e5f410..f66c332f 100644 --- a/src/com/android/browser/OpenDownloadReceiver.java +++ b/src/com/android/browser/OpenDownloadReceiver.java @@ -1,84 +1,84 @@ /* * Copyright (C) 2010 The Android Open...
false
true
public void onReceive(Context context, Intent intent) { ContentResolver cr = context.getContentResolver(); Uri data = intent.getData(); Cursor cursor = null; try { cursor = cr.query(data, new String[] { Downloads.Impl._ID, Downloads.Impl._DATA, ...
public void onReceive(Context context, Intent intent) { ContentResolver cr = context.getContentResolver(); Uri data = intent.getData(); Cursor cursor = null; try { cursor = cr.query(data, new String[] { Downloads.Impl._ID, Downloads.Impl._DATA, ...
diff --git a/src/test/java/org/atlasapi/remotesite/channel4/C4AtoZAtomAdapterTest.java b/src/test/java/org/atlasapi/remotesite/channel4/C4AtoZAtomAdapterTest.java index da3be0d65..899515e75 100644 --- a/src/test/java/org/atlasapi/remotesite/channel4/C4AtoZAtomAdapterTest.java +++ b/src/test/java/org/atlasapi/remotesite...
false
true
public void testPerformsGetCorrespondingGivenUriAndPassesResultToExtractor() throws Exception { checking(new Expectations() {{ one(itemClient).get("http://api.channel4.com/programmes/atoz/a.atom"); will(returnValue(atoza.build())); allowing(brandAdapter).canFetch("http://www.channel4.com/programmes/a-bipola...
public void testPerformsGetCorrespondingGivenUriAndPassesResultToExtractor() throws Exception { checking(new Expectations() {{ one(itemClient).get("http://api.channel4.com/pmlsd/atoz/a.atom"); will(returnValue(atoza.build())); allowing(brandAdapter).canFetch("http://www.channel4.com/programmes/a-bipolar-exp...
diff --git a/src/com/android/email/activity/MessageListItem.java b/src/com/android/email/activity/MessageListItem.java index d69ab18b..8d6eaea8 100644 --- a/src/com/android/email/activity/MessageListItem.java +++ b/src/com/android/email/activity/MessageListItem.java @@ -1,507 +1,511 @@ /* * Copyright (C) 2009 The An...
false
true
protected void onDraw(Canvas canvas) { if (mSnippetLineCount == NEEDS_LAYOUT) { calculateDrawingData(); } // Snippet starts at right of checkbox int snippetX = sCheckboxHitWidth; int snippetY; int lineHeight = (int)sDefaultPaint.getFontSpacing() + sPadding...
protected void onDraw(Canvas canvas) { if (mSnippetLineCount == NEEDS_LAYOUT) { calculateDrawingData(); } // Snippet starts at right of checkbox int snippetX = sCheckboxHitWidth; int snippetY; int lineHeight = (int)sDefaultPaint.getFontSpacing() + sPadding...
diff --git a/src/java/azkaban/trigger/builtin/ExecuteFlowAction.java b/src/java/azkaban/trigger/builtin/ExecuteFlowAction.java index d17aa9d0..36248a2d 100644 --- a/src/java/azkaban/trigger/builtin/ExecuteFlowAction.java +++ b/src/java/azkaban/trigger/builtin/ExecuteFlowAction.java @@ -1,276 +1,280 @@ package azkaban....
false
true
public void doAction() throws Exception { if(projectManager == null || executorManager == null) { throw new Exception("ExecuteFlowAction not properly initialized!"); } Project project = projectManager.getProject(projectId); if(project == null) { logger.error("Project to execute " + projectId + " does ...
public void doAction() throws Exception { if(projectManager == null || executorManager == null) { throw new Exception("ExecuteFlowAction not properly initialized!"); } Project project = projectManager.getProject(projectId); if(project == null) { logger.error("Project to execute " + projectId + " does ...
diff --git a/core/src/com/google/zxing/oned/Code128Reader.java b/core/src/com/google/zxing/oned/Code128Reader.java index b41d954d..e15370ae 100644 --- a/core/src/com/google/zxing/oned/Code128Reader.java +++ b/core/src/com/google/zxing/oned/Code128Reader.java @@ -1,473 +1,463 @@ /* * Copyright 2008 ZXing authors * ...
false
true
public Result decodeRow(int rowNumber, BitArray row, Hashtable hints) throws NotFoundException, FormatException, ChecksumException { int[] startPatternInfo = findStartPattern(row); int startCode = startPatternInfo[2]; int codeSet; switch (startCode) { case CODE_START_A: codeSet = ...
public Result decodeRow(int rowNumber, BitArray row, Hashtable hints) throws NotFoundException, FormatException, ChecksumException { int[] startPatternInfo = findStartPattern(row); int startCode = startPatternInfo[2]; int codeSet; switch (startCode) { case CODE_START_A: codeSet = ...
diff --git a/HttpdConfigParser/src/org/akquinet/audit/bsi/httpd/Quest11a.java b/HttpdConfigParser/src/org/akquinet/audit/bsi/httpd/Quest11a.java index de34cde..4624cfe 100644 --- a/HttpdConfigParser/src/org/akquinet/audit/bsi/httpd/Quest11a.java +++ b/HttpdConfigParser/src/org/akquinet/audit/bsi/httpd/Quest11a.java @@ ...
true
true
public boolean answer() { _console.println(FormattedConsole.OutputLevel.HEADING, "----" + _id + "----"); boolean ret = _console.askYesNoQuestion(_level, "Have you properly set up a chroot environment for the apache httpd server which will block access outside of the servers root directory?"); if(ret) { ret...
public boolean answer() { _console.println(FormattedConsole.OutputLevel.HEADING, "----" + _id + "----"); boolean ret = _console.askYesNoQuestion(_level, "Have you properly set up a chroot environment for the apache httpd server which will block access outside of the servers root directory?"); if(ret) { ret...
diff --git a/email2/src/com/android/email/NotificationController.java b/email2/src/com/android/email/NotificationController.java index c0073f261..42112fbd7 100644 --- a/email2/src/com/android/email/NotificationController.java +++ b/email2/src/com/android/email/NotificationController.java @@ -1,1067 +1,1070 @@ /* * C...
false
true
Notification createNewMessageNotification(long mailboxId, long newMessageId, int unseenMessageCount, int unreadCount) { final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId); if (mailbox == null) { return null; } final Account account = Acc...
Notification createNewMessageNotification(long mailboxId, long newMessageId, int unseenMessageCount, int unreadCount) { final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId); if (mailbox == null) { return null; } final Account account = Acc...
diff --git a/src/FallingBall.java b/src/FallingBall.java index bdd7007..ab51db2 100644 --- a/src/FallingBall.java +++ b/src/FallingBall.java @@ -1,93 +1,91 @@ /** * Class FallingBall * @author Casey Harford * @version 1.0 */ import java.awt.Color; import java.util.Random; import java.awt.Graphics; clas...
false
true
public void run() { int ballBelow; while (keepRunning) { try { Thread.sleep(10); /** check if ball below */ if(!manager.available(slot,(height/BALL_SIZE)+1)) { ballBelow = (manager.MAX_BALLS*BALL_SIZE-BALL_SIZE)-((height/BALL_SIZE)+1)*BALL_SIZE; } else...
public void run() { int ballBelow = 0; while (keepRunning) { try { Thread.sleep(10); /** check if ball below */ if(manager.available(slot,(height/BALL_SIZE)+1)) { ballBelow = height + BALL_SIZE; } if( (height+BALL_SIZE) <= ballBelow) { Syste...
diff --git a/test-modules/functional-tests/src/test/java/org/openlmis/functional/ConfigureRegimenProgramTemplate.java b/test-modules/functional-tests/src/test/java/org/openlmis/functional/ConfigureRegimenProgramTemplate.java index 0d8fdef034..6bb61d9f02 100644 --- a/test-modules/functional-tests/src/test/java/org/openl...
true
true
public void testVerifyNewRegimenCreated(String program, String[] credentials) throws Exception { dbWrapper.setRegimenTemplateConfiguredForProgram(false, program); String expectedProgramsString = dbWrapper.getAllActivePrograms(); LoginPage loginPage = new LoginPage(testWebDriver, baseUrlGlobal); HomePa...
public void testVerifyNewRegimenCreated(String program, String[] credentials) throws Exception { dbWrapper.setRegimenTemplateConfiguredForProgram(false, program); String expectedProgramsString = dbWrapper.getAllActivePrograms(); LoginPage loginPage = new LoginPage(testWebDriver, baseUrlGlobal); HomePa...
diff --git a/src/jrds/probe/RMI.java b/src/jrds/probe/RMI.java index e7855e4..32fb84b 100644 --- a/src/jrds/probe/RMI.java +++ b/src/jrds/probe/RMI.java @@ -1,49 +1,53 @@ package jrds.probe; import java.rmi.RemoteException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java...
true
true
public Map<String, Number> getNewSampleValuesConnected(RMIConnection cnx) { Map<String, Number> retValues = new HashMap<String, Number>(0); try { RProbe rp = (RProbe) cnx.getConnection(); remoteName = rp.prepare(getPd().getSpecific("remote"), args); retValues = rp.query(remoteName); } catch (RemoteExcep...
public Map<String, Number> getNewSampleValuesConnected(RMIConnection cnx) { Map<String, Number> retValues = new HashMap<String, Number>(0); try { RProbe rp = (RProbe) cnx.getConnection(); remoteName = rp.prepare(getPd().getSpecific("remote"), args); retValues = rp.query(remoteName); } catch (RemoteExcep...
diff --git a/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/admin/LockssAuthServiceBean.java b/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/admin/LockssAuthServiceBean.java index b5768d21..c4045feb 100644 --- a/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/admin/LockssAuthServiceBean.java +++ b/src/DVN-EJB/src/java/edu/ha...
false
true
public Boolean isAuthorizedLockssDownload ( VDC vdc, HttpServletRequest req, Boolean fileIsRestricted) { String remoteAddress = req.getRemoteHost(); if (remoteAddress == null || remoteAddress.equals("")...
public Boolean isAuthorizedLockssDownload ( VDC vdc, HttpServletRequest req, Boolean fileIsRestricted) { String remoteAddress = req.getRemoteHost(); if (remoteAddress == null || remoteAddress.equals("")...
diff --git a/src/com/google/android/apps/dashclock/calendar/CalendarExtension.java b/src/com/google/android/apps/dashclock/calendar/CalendarExtension.java index bfb354d..beb2f44 100644 --- a/src/com/google/android/apps/dashclock/calendar/CalendarExtension.java +++ b/src/com/google/android/apps/dashclock/calendar/Calend...
false
true
protected void onUpdateData(int reason) { SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); boolean showAllDay = sp.getBoolean(PREF_SHOW_ALL_DAY, false); try { mLookAheadHours = Integer.parseInt(sp.getString(PREF_LOOK_AHEAD_HOURS, In...
protected void onUpdateData(int reason) { SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); boolean showAllDay = sp.getBoolean(PREF_SHOW_ALL_DAY, false); try { mLookAheadHours = Integer.parseInt(sp.getString(PREF_LOOK_AHEAD_HOURS, In...
diff --git a/TechGuard/Archers/Arrow/ArrowHandler.java b/TechGuard/Archers/Arrow/ArrowHandler.java index 2b0ce82..556dc79 100644 --- a/TechGuard/Archers/Arrow/ArrowHandler.java +++ b/TechGuard/Archers/Arrow/ArrowHandler.java @@ -1,58 +1,60 @@ package TechGuard.Archers.Arrow; import net.minecraft.server.EntityArrow;...
false
true
public static void onArrowDestroy(EntityDamageByProjectileEvent event){ Arrow arrow = (Arrow)((CraftArrow)event.getProjectile()).getHandle(); event.setDamage(arrow.material.getDamageValue()); arrow.destroy(); if(arrow.material == EnumBowMaterial.FIRE){ event.getEntity().setFireTicks(80); } else if...
public static void onArrowDestroy(EntityDamageByProjectileEvent event){ Arrow arrow = (Arrow)((CraftArrow)event.getProjectile()).getHandle(); event.setDamage(arrow.material.getDamageValue()); arrow.destroy(); if(arrow.material == EnumBowMaterial.FIRE){ event.getEntity().setFireTicks(80); } else if...
diff --git a/java/src/org/broadinstitute/sting/gatk/dataSources/simpleDataSources/SAMDataSource.java b/java/src/org/broadinstitute/sting/gatk/dataSources/simpleDataSources/SAMDataSource.java index bf7f2622e..cd72550af 100755 --- a/java/src/org/broadinstitute/sting/gatk/dataSources/simpleDataSources/SAMDataSource.java +...
false
true
private BoundedReadIterator fastMappedReadSeek(long readCount, MergingSamRecordIterator2 iter) throws SimpleDataSourceLoadException { BoundedReadIterator bound;// is this the first time we're doing this? if (lastReadPos == null) { lastReadPos = new GenomeLoc(iter.getHeader().getSequenceD...
private BoundedReadIterator fastMappedReadSeek(long readCount, MergingSamRecordIterator2 iter) throws SimpleDataSourceLoadException { BoundedReadIterator bound;// is this the first time we're doing this? if (lastReadPos == null) { lastReadPos = new GenomeLoc(iter.getHeader().getSequenceD...
diff --git a/src/com/twitstreet/twitter/AnnouncerMgrImpl.java b/src/com/twitstreet/twitter/AnnouncerMgrImpl.java index dfbaacc..3eb7bb3 100644 --- a/src/com/twitstreet/twitter/AnnouncerMgrImpl.java +++ b/src/com/twitstreet/twitter/AnnouncerMgrImpl.java @@ -1,271 +1,271 @@ /** TwitStreet - Twitter Stock Market Game ...
true
true
public void loadAnnouncers() { Connection connection = null; PreparedStatement ps = null; ResultSet rs = null; try { connection = dbMgr.getConnection(); ps = connection.prepareStatement(LOAD_ANNOUNCER); rs = ps.executeQuery(); while (rs.next()) { Announcer announcer = new Announcer(); annou...
public void loadAnnouncers() { Connection connection = null; PreparedStatement ps = null; ResultSet rs = null; try { connection = dbMgr.getConnection(); ps = connection.prepareStatement(LOAD_ANNOUNCER); rs = ps.executeQuery(); while (rs.next()) { Announcer announcer = new Announcer(); annou...
diff --git a/src/com/chess/genesis/NetworkClient.java b/src/com/chess/genesis/NetworkClient.java index d27cb9d..d2edade 100644 --- a/src/com/chess/genesis/NetworkClient.java +++ b/src/com/chess/genesis/NetworkClient.java @@ -1,524 +1,524 @@ package com.chess.genesis; import android.content.Context; import android....
false
true
private boolean relogin(final SocketClient net) { if (SocketClient.isLoggedin) return true; final SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(context); final String username = pref.getString("username", "!error!"); final String password = pref.getString("passhash", "!error!"); ...
private boolean relogin(final SocketClient net) { if (net.isLoggedin) return true; final SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(context); final String username = pref.getString("username", "!error!"); final String password = pref.getString("passhash", "!error!"); JSONObj...
diff --git a/src/main/java/info/somethingodd/OddItem/OddItemCommandExecutor.java b/src/main/java/info/somethingodd/OddItem/OddItemCommandExecutor.java index bb1b2c1..25aa736 100644 --- a/src/main/java/info/somethingodd/OddItem/OddItemCommandExecutor.java +++ b/src/main/java/info/somethingodd/OddItem/OddItemCommandExecu...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (command.getName().equals("odditem")) { if (sender.hasPermission("odditem.alias")) { switch (args.length) { case 0: if (sender instanceof ...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (command.getName().equals("odditem")) { if (sender.hasPermission("odditem.alias")) { switch (args.length) { case 0: if (sender instanceof ...
diff --git a/src/main/java/cc/kune/tasks/client/actions/TasksClientActions.java b/src/main/java/cc/kune/tasks/client/actions/TasksClientActions.java index 0f1959ef9..0a65cb2bf 100644 --- a/src/main/java/cc/kune/tasks/client/actions/TasksClientActions.java +++ b/src/main/java/cc/kune/tasks/client/actions/TasksClientActi...
true
true
public TasksClientActions(final I18nUITranslationService i18n, final Session session, final StateManager stateManager, final ActionRegistryByType registry, final CoreResources res, final Provider<GoParentFolderBtn> folderGoUp, final Provider<NewTaskMenuItem> newTaskItem, final Provider<NewTaskIconBt...
public TasksClientActions(final I18nUITranslationService i18n, final Session session, final StateManager stateManager, final ActionRegistryByType registry, final CoreResources res, final Provider<GoParentFolderBtn> folderGoUp, final Provider<NewTaskMenuItem> newTaskItem, final Provider<NewTaskIconBt...
diff --git a/osmdroid-android/src/main/java/org/osmdroid/views/overlay/SafeDrawOverlay.java b/osmdroid-android/src/main/java/org/osmdroid/views/overlay/SafeDrawOverlay.java index c04b041..5629c5a 100644 --- a/osmdroid-android/src/main/java/org/osmdroid/views/overlay/SafeDrawOverlay.java +++ b/osmdroid-android/src/main/...
true
true
protected void draw(final Canvas c, final MapView osmv, final boolean shadow) { sSafeCanvas.setCanvas(c); if (this.isUsingSafeCanvas()) { // Find the screen offset Rect screenRect = osmv.getProjection().getScreenRect(); sSafeCanvas.xOffset = -screenRect.left; sSafeCanvas.yOffset = -screenRect.top; ...
protected void draw(final Canvas c, final MapView osmv, final boolean shadow) { sSafeCanvas.setCanvas(c); if (this.isUsingSafeCanvas()) { // Find the screen offset Rect screenRect = osmv.getProjection().getScreenRect(); sSafeCanvas.xOffset = -screenRect.left; sSafeCanvas.yOffset = -screenRect.top; ...
diff --git a/splat/src/main/uk/ac/starlink/splat/iface/ProgressFrame.java b/splat/src/main/uk/ac/starlink/splat/iface/ProgressFrame.java index 5658e6726..16317af02 100644 --- a/splat/src/main/uk/ac/starlink/splat/iface/ProgressFrame.java +++ b/splat/src/main/uk/ac/starlink/splat/iface/ProgressFrame.java @@ -1,153 +1,15...
true
true
protected void eventuallyMakeVisible() { // In fact this timer run continually and will check makeVisible // on the next timed event. if ( timer == null ) { timer = new Timer( TIMER_DELAY, new ActionListener() { ...
protected void eventuallyMakeVisible() { // In fact this timer run continually and will check makeVisible // on the next timed event. if ( timer == null ) { timer = new Timer( TIMER_DELAY, new ActionListener() { ...
diff --git a/common/java/com/android/common/contacts/DataUsageStatUpdater.java b/common/java/com/android/common/contacts/DataUsageStatUpdater.java index bc1f8ea..de1cddd 100644 --- a/common/java/com/android/common/contacts/DataUsageStatUpdater.java +++ b/common/java/com/android/common/contacts/DataUsageStatUpdater.java...
true
true
private boolean update(Collection<Long> contactIds, Collection<Long> dataIds, String type) { final long currentTimeMillis = System.currentTimeMillis(); boolean successful = false; // From ICS we can use per-contact-method structure. We'll check if the device supports it // and call...
private boolean update(Collection<Long> contactIds, Collection<Long> dataIds, String type) { final long currentTimeMillis = System.currentTimeMillis(); boolean successful = false; // From ICS we can use per-contact-method structure. We'll check if the device supports it // and call...
diff --git a/src/org/biojava/bio/program/sax/BlastSAXParser.java b/src/org/biojava/bio/program/sax/BlastSAXParser.java index 1400d3fc2..5754fe8b9 100755 --- a/src/org/biojava/bio/program/sax/BlastSAXParser.java +++ b/src/org/biojava/bio/program/sax/BlastSAXParser.java @@ -1,802 +1,802 @@ /* * BioJ...
true
true
private String hmmerDomainSummaryReached(String poLine) throws SAXException { //To be implemented - parse Contents stream up to end of //domain summary via delegation (analagous to hits parsing oAtts.clear(); this.startElement(new QName(this,this.prefix("DomainSummary")), (Attributes)oAtts); int...
private String hmmerDomainSummaryReached(String poLine) throws SAXException { //To be implemented - parse Contents stream up to end of //domain summary via delegation (analagous to hits parsing oAtts.clear(); this.startElement(new QName(this,this.prefix("DomainSummary")), (Attributes)oAtts); int...
diff --git a/src/java/com/scriptographer/ai/Timer.java b/src/java/com/scriptographer/ai/Timer.java index 6ca017c3..87893537 100644 --- a/src/java/com/scriptographer/ai/Timer.java +++ b/src/java/com/scriptographer/ai/Timer.java @@ -1,182 +1,188 @@ /* * Scriptographer * * This file is part of Scriptographer, a Plu...
false
true
private static boolean onExecute(int handle) { Timer timer = getTimer(handle); if (timer != null) { try { Document document = Document.getActiveDocument(); // Produce a normal undo cycle if in the previous cycle we have // created or removed items. Otherwise just merge the changes of // this cyc...
private static boolean onExecute(int handle) { Timer timer = getTimer(handle); if (timer != null) { try { Document document = Document.getActiveDocument(); // Produce a normal undo cycle if in the previous cycle we have // created or removed items. Otherwise just merge the changes of // this cyc...
diff --git a/src/org/x3/mail/SimpleMail.java b/src/org/x3/mail/SimpleMail.java index b3d8eb0..fcbb092 100644 --- a/src/org/x3/mail/SimpleMail.java +++ b/src/org/x3/mail/SimpleMail.java @@ -1,122 +1,122 @@ package org.x3.mail; import java.io.File; import java.util.ArrayList; import java.util.HashMap; import java....
true
true
public void send(Message message) { String recipient = message.getRecipient(); ArrayList<Message> playerMail = getMail(recipient); if (hasMail(recipient)) { mail.remove(recipient); } playerMail.add(message); mail.put(recipient, playerMail); if (recipient.equalsIgnoreCase("console")) { log.info(Chat...
public void send(Message message) { String recipient = message.getRecipient(); ArrayList<Message> playerMail = getMail(recipient); if (hasMail(recipient)) { mail.remove(recipient); } playerMail.add(message); mail.put(recipient, playerMail); if (recipient.equalsIgnoreCase("console")) { log.info("New...
diff --git a/src/nu/nerd/modmode/ModMode.java b/src/nu/nerd/modmode/ModMode.java index 82f022a..e2ed1cb 100644 --- a/src/nu/nerd/modmode/ModMode.java +++ b/src/nu/nerd/modmode/ModMode.java @@ -1,401 +1,403 @@ package nu.nerd.modmode; import de.bananaco.bpermissions.api.ApiLayer; import de.bananaco.bpermissions.api...
true
true
public void toggleModMode(final Player player, boolean toggle, boolean onJoin) { String displayName = player.getName(); String name = ChatColor.GREEN + player.getDisplayName() + ChatColor.WHITE; if (!toggle) { displayName = player.getDisplayName(); name = displayName;...
public void toggleModMode(final Player player, boolean toggle, boolean onJoin) { String displayName = player.getName(); String name = ChatColor.GREEN + player.getDisplayName() + ChatColor.WHITE; if (!toggle) { displayName = player.getDisplayName(); name = displayName;...
diff --git a/Enduro/src/sort/ResultCompilerMain.java b/Enduro/src/sort/ResultCompilerMain.java index 7d941d7..a409fd7 100644 --- a/Enduro/src/sort/ResultCompilerMain.java +++ b/Enduro/src/sort/ResultCompilerMain.java @@ -1,76 +1,73 @@ package sort; import java.io.File; import java.io.FileNotFoundException; import...
false
true
public static void main(String[] args) throws URISyntaxException { CodeSource codeSource = ResultCompilerMain.class.getProtectionDomain() .getCodeSource(); File jarFile = new File(codeSource.getLocation().toURI().getPath()); String jarDir = jarFile.getParentFile().getPath(); Parser p = new Parser(); St...
public static void main(String[] args) throws URISyntaxException { CodeSource codeSource = ResultCompilerMain.class.getProtectionDomain() .getCodeSource(); File jarFile = new File(codeSource.getLocation().toURI().getPath()); String jarDir = jarFile.getParentFile().getPath(); Parser p = new Parser(); St...
diff --git a/src/main/java/com/gitblit/wicket/pages/ForksPage.java b/src/main/java/com/gitblit/wicket/pages/ForksPage.java index cc483878..f59955ee 100644 --- a/src/main/java/com/gitblit/wicket/pages/ForksPage.java +++ b/src/main/java/com/gitblit/wicket/pages/ForksPage.java @@ -1,156 +1,160 @@ /* * Copyright 2012 gi...
true
true
public ForksPage(PageParameters params) { super(params); final RepositoryModel pageRepository = getRepositoryModel(); ForkModel root = GitBlit.self().getForkNetwork(pageRepository.name); List<FlatFork> network = flatten(root); ListDataProvider<FlatFork> forksDp = new ListDataProvider<FlatFork>(netwo...
public ForksPage(PageParameters params) { super(params); final RepositoryModel pageRepository = getRepositoryModel(); ForkModel root = GitBlit.self().getForkNetwork(pageRepository.name); List<FlatFork> network = flatten(root); ListDataProvider<FlatFork> forksDp = new ListDataProvider<FlatFork>(netwo...
diff --git a/src/test/java/pl/psnc/dl/wf4ever/monitoring/ChecksumVerificationJobTest.java b/src/test/java/pl/psnc/dl/wf4ever/monitoring/ChecksumVerificationJobTest.java index 631c4192..4c83a82a 100644 --- a/src/test/java/pl/psnc/dl/wf4ever/monitoring/ChecksumVerificationJobTest.java +++ b/src/test/java/pl/psnc/dl/wf4ev...
true
true
public void setUp() throws Exception { super.setUp(); DigitalLibrary dlMock = Mockito.mock(DigitalLibrary.class); Mockito.when(dlMock.getFileContents(researchObject.getUri(), FILE_PATH)).thenReturn( IOUtils.toInputStream("lorem ipsum")); Mockito.when(dlMock.ge...
public void setUp() throws Exception { super.setUp(); DigitalLibrary dlMock = Mockito.mock(DigitalLibrary.class); Mockito.when(dlMock.getFileContents(researchObject.getUri(), FILE_PATH)).thenReturn( IOUtils.toInputStream("lorem ipsum")); Mockito.when(dlMock.ge...
diff --git a/code/mnj/lua/Lua.java b/code/mnj/lua/Lua.java index 84936f0..f4d6bc2 100644 --- a/code/mnj/lua/Lua.java +++ b/code/mnj/lua/Lua.java @@ -1,3953 +1,3951 @@ /* $Header$ * (c) Copyright 2006, Intuwave Ltd. All Rights Reserved. * * Although Intuwave has tested this program and reviewed the documentati...
false
true
private void vmExecute(int nexeccalls) { // This labelled while loop is used to simulate the effect of C's // goto. The end of the while loop is never reached. The beginning // of the while loop is branched to using a "continue reentry;" // statement (when a Lua function is called or returns). ree...
private void vmExecute(int nexeccalls) { // This labelled while loop is used to simulate the effect of C's // goto. The end of the while loop is never reached. The beginning // of the while loop is branched to using a "continue reentry;" // statement (when a Lua function is called or returns). ree...