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/evostrattest/FuncTest2.java b/src/evostrattest/FuncTest2.java index aca8964..92036c2 100644 --- a/src/evostrattest/FuncTest2.java +++ b/src/evostrattest/FuncTest2.java @@ -1,69 +1,69 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package evos...
true
true
public float makeTestRun() { float x = params.get("x").val; float y = params.get("y").val; float n = 9.0f; // optimal sol.: x = 0.5, y = 0.5, z = 0.878 float z = (float)Math.pow( 15.0f * x * y * (1.0f - x) * (1.0f - y) * (fl...
public float makeTestRun() { float x = params.get("x").val; float y = params.get("y").val; float n = 9.0f; // maximum at x = 0.5, y = 0.5 with z = 0.878 float z = (float)Math.pow( 15.0f * x * y * (1.0f - x) * (1.0f - y) * (f...
diff --git a/TantalumLibrary/src/org/tantalum/util/CryptoUtils.java b/TantalumLibrary/src/org/tantalum/util/CryptoUtils.java index 91f09657..9e393324 100644 --- a/TantalumLibrary/src/org/tantalum/util/CryptoUtils.java +++ b/TantalumLibrary/src/org/tantalum/util/CryptoUtils.java @@ -1,140 +1,139 @@ /* * To change thi...
false
true
public synchronized long toDigest(final byte[] bytes) throws DigestException, UnsupportedEncodingException { if (bytes == null) { throw new IllegalArgumentException("You attempted to convert a null byte[] into a hash digest"); } final byte[] hashKey = new byte[DIGEST_LENGTH]; ...
public synchronized long toDigest(final byte[] bytes) throws DigestException, UnsupportedEncodingException { if (bytes == null) { throw new IllegalArgumentException("You attempted to convert a null byte[] into a hash digest"); } final byte[] hashKey = new byte[DIGEST_LENGTH]; ...
diff --git a/test/testStorage/TestStorage.java b/test/testStorage/TestStorage.java index a960047..042a1a8 100644 --- a/test/testStorage/TestStorage.java +++ b/test/testStorage/TestStorage.java @@ -1,79 +1,79 @@ package testStorage; import java.util.ArrayList; import junit.framework.*; import storage.*; public cl...
true
true
public void testAddEqualScore() { Statistics equalScoreOne = Storage.loadPlayer("one", "one"); Statistics equalScoreTwo = Storage.loadPlayer("two", "two"); equalScoreOne.addWin(100000); equalScoreTwo.addWin(100000); ArrayList<Statistics> hallOfFame = new ArrayList<Statistics>(); hallOfFame = HallOfFa...
public void testAddEqualScore() { Statistics equalScoreOne = Storage.loadPlayer("one", "one"); Statistics equalScoreTwo = Storage.loadPlayer("two", "two"); equalScoreOne.addWin(100000); equalScoreTwo.addWin(100000); ArrayList<Statistics> hallOfFame = new ArrayList<Statistics>(); hallOfFame = HallOfFa...
diff --git a/src/gov/nih/ncgc/bard/rest/BARDSearchResource.java b/src/gov/nih/ncgc/bard/rest/BARDSearchResource.java index 6b90abb..451447a 100644 --- a/src/gov/nih/ncgc/bard/rest/BARDSearchResource.java +++ b/src/gov/nih/ncgc/bard/rest/BARDSearchResource.java @@ -1,132 +1,132 @@ package gov.nih.ncgc.bard.rest; imp...
false
true
private SearchResult doSearch(ISolrSearch s, Integer skip, Integer top, String expand, String filter) throws MalformedURLException, SolrServerException { if (top == null) top = 10; if (skip == null) skip = 0; s.run(expand != null && expand.toLowerCase().equals("true"), null, top, skip); ...
private SearchResult doSearch(ISolrSearch s, Integer skip, Integer top, String expand, String filter) throws MalformedURLException, SolrServerException { if (top == null) top = 10; if (skip == null) skip = 0; s.run(expand != null && expand.toLowerCase().equals("true"), null, top, skip); ...
diff --git a/Koordinator/src/coordinator/CoordinatorImpl.java b/Koordinator/src/coordinator/CoordinatorImpl.java index ad7fe89..effd218 100644 --- a/Koordinator/src/coordinator/CoordinatorImpl.java +++ b/Koordinator/src/coordinator/CoordinatorImpl.java @@ -1,148 +1,153 @@ package coordinator; import ggTCalculator.C...
true
true
public int calculate(int timeout, int mindelay, int maxdelay, int minprocess, int maxprocess, int ggT, Log log) throws noStarter, alreadyRunning { termination_in_process = false; Random rnd = new Random(); int procnum = 0; // start random amount of processes for (...
public int calculate(int timeout, int mindelay, int maxdelay, int minprocess, int maxprocess, int ggT, Log log) throws noStarter, alreadyRunning { termination_in_process = false; Random rnd = new Random(); int procnum = 0; // start random amount of processes for (...
diff --git a/platforms/android/src/com/example/SanAngeles/DemoActivity.java b/platforms/android/src/com/example/SanAngeles/DemoActivity.java index 1792967..b99f777 100644 --- a/platforms/android/src/com/example/SanAngeles/DemoActivity.java +++ b/platforms/android/src/com/example/SanAngeles/DemoActivity.java @@ -1,502 +...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); DemoActivity.mWebViewMessages = new LinkedBlockingQueue<String>(); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); final Context myApp = this; ...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); DemoActivity.mWebViewMessages = new LinkedBlockingQueue<String>(); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); final Context myApp = this; ...
diff --git a/Syncro/src/uk/me/grambo/syncro/SyncroService.java b/Syncro/src/uk/me/grambo/syncro/SyncroService.java index 932bf3e..b80f393 100644 --- a/Syncro/src/uk/me/grambo/syncro/SyncroService.java +++ b/Syncro/src/uk/me/grambo/syncro/SyncroService.java @@ -1,523 +1,523 @@ /* This file is part of Syncro. Copyri...
false
true
protected boolean RunSync(int innServerID,String insHost,int innPort) { boolean retry = false; boolean gotInitialConnection = false; m_serverId = innServerID; //TODO: probably want to move innServerID into a member variable or something m_progressNotification = new ProgressNotification(this); m_progr...
protected boolean RunSync(int innServerID,String insHost,int innPort) { boolean retry = false; boolean gotInitialConnection = false; m_serverId = innServerID; //TODO: probably want to move innServerID into a member variable or something m_progressNotification = new ProgressNotification(this); m_progr...
diff --git a/src/com/matburt/mobileorg/SynchronizerPreferences.java b/src/com/matburt/mobileorg/SynchronizerPreferences.java index 300c271..f9bc26b 100644 --- a/src/com/matburt/mobileorg/SynchronizerPreferences.java +++ b/src/com/matburt/mobileorg/SynchronizerPreferences.java @@ -1,90 +1,90 @@ package com.matburt.mobi...
true
true
protected View onCreateView(ViewGroup parent){ LinearLayout layout = new LinearLayout(getContext()); LinearLayout.LayoutParams params1 = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutPara...
protected View onCreateView(ViewGroup parent){ LinearLayout layout = new LinearLayout(getContext()); LinearLayout.LayoutParams params1 = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutPara...
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/requirements/RequirementChecker.java b/src/main/java/net/aufdemrand/denizen/scripts/requirements/RequirementChecker.java index 116e6a55d..0437c5d1a 100644 --- a/src/main/java/net/aufdemrand/denizen/scripts/requirements/RequirementChecker.java +++ b/src/main/java...
true
true
public boolean check(String scriptName, NPC npc, Player player) throws RequirementMissingException { String reqMode = plugin.getScripts().getString(scriptName + ".REQUIREMENTS.MODE", "NONE"); List<String> reqList = plugin.getScripts().getStringList(scriptName + ".REQUIREMENTS.LIST"); dB.echoDebug(ChatColor.YEL...
public boolean check(String scriptName, NPC npc, Player player) throws RequirementMissingException { String reqMode = plugin.getScripts().getString(scriptName + ".REQUIREMENTS.MODE", "NONE"); List<String> reqList = plugin.getScripts().getStringList(scriptName + ".REQUIREMENTS.LIST"); dB.echoDebug(ChatColor.YEL...
diff --git a/src/main/java/com/github/ucchyocean/ct/DelayedTeleportTask.java b/src/main/java/com/github/ucchyocean/ct/DelayedTeleportTask.java index fb64b83..fcd0cab 100644 --- a/src/main/java/com/github/ucchyocean/ct/DelayedTeleportTask.java +++ b/src/main/java/com/github/ucchyocean/ct/DelayedTeleportTask.java @@ -1,8...
true
true
public void run() { if ( players.isEmpty() ) { // プレイヤー表示パケットを送信する (see issue #78) int packetDelay = ColorTeaming.instance.getCTConfig().getTeleportVisiblePacketSendDelay(); if ( packetDelay > 0 ) { Bukkit.getScheduler()....
public void run() { if ( players.isEmpty() ) { // プレイヤー表示パケットを送信する (see issue #78) int packetDelay = ColorTeaming.instance.getCTConfig().getTeleportVisiblePacketSendDelay(); if ( packetDelay > 0 ) { Bukkit.getScheduler()....
diff --git a/broadcast-transcoder-commandline/src/main/java/dk/statsbiblioteket/broadcasttranscoder/cli/parsers/SingleTranscodingOptionsParser.java b/broadcast-transcoder-commandline/src/main/java/dk/statsbiblioteket/broadcasttranscoder/cli/parsers/SingleTranscodingOptionsParser.java index a5d1581..e00ffe8 100644 --- a...
true
true
protected static void readBehaviouralProperties(SingleTranscodingContext context) throws IOException, OptionParseException { Properties props = new Properties(); props.load(new FileInputStream(context.getBehaviourConfigFile())); context.setVideoBitrate(readIntegerProperty(VIDEO_BITRATE, prop...
protected static void readBehaviouralProperties(SingleTranscodingContext context) throws IOException, OptionParseException { Properties props = new Properties(); props.load(new FileInputStream(context.getBehaviourConfigFile())); context.setVideoBitrate(readIntegerProperty(VIDEO_BITRATE, prop...
diff --git a/src/core/org/luaj/vm/LThread.java b/src/core/org/luaj/vm/LThread.java index 4b56cbb..2b3ddae 100644 --- a/src/core/org/luaj/vm/LThread.java +++ b/src/core/org/luaj/vm/LThread.java @@ -1,168 +1,169 @@ /******************************************************************************* * Copyright (c) 2007 Lua...
false
true
public void resumeFrom(LuaState vm, int nargs) { synchronized ( this ) { if ( status == STATUS_DEAD ) { vm.resettop(); vm.pushboolean(false); vm.pushstring("cannot resume dead coroutine"); return; } // set prior thread to normal status while we are running LThread prior = running; ...
public void resumeFrom(LuaState vm, int nargs) { synchronized ( this ) { if ( status == STATUS_DEAD ) { vm.resettop(); vm.pushboolean(false); vm.pushstring("cannot resume dead coroutine"); return; } // set prior thread to normal status while we are running LThread prior = running; ...
diff --git a/src/main/java/org/spout/vanilla/protocol/handler/PlayerDiggingMessageHandler.java b/src/main/java/org/spout/vanilla/protocol/handler/PlayerDiggingMessageHandler.java index 72b46800..55b9d612 100644 --- a/src/main/java/org/spout/vanilla/protocol/handler/PlayerDiggingMessageHandler.java +++ b/src/main/java/o...
true
true
public void handleServer(Session session, PlayerDiggingMessage message) { if(!session.hasPlayer()) { return; } Player player = session.getPlayer(); int x = message.getX(); int y = message.getY(); int z = message.getZ(); int state = message.getState(); World w = player.getWorld(); Point point ...
public void handleServer(Session session, PlayerDiggingMessage message) { if(!session.hasPlayer()) { return; } Player player = session.getPlayer(); int x = message.getX(); int y = message.getY(); int z = message.getZ(); int state = message.getState(); World w = player.getWorld(); Point point ...
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/presentationTier/widgets/TakenProcessesWidget.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/presentationTier/widgets/TakenProcessesWidget.java index 7c4e1a24..68e25cca 100644 --- a/expenditure-tracking/src/pt/ist/expenditureTracki...
false
true
public void doView(WidgetRequest request) { List<PaymentProcess> takenProcesses = Person.getLoggedPerson().getProcesses(PaymentProcess.class); request.setAttribute("takenProcesses", takenProcesses.subList(0, Math.min(10, takenProcesses.size()))); }
public void doView(WidgetRequest request) { Person loggedPerson = Person.getLoggedPerson(); List<PaymentProcess> takenProcesses = loggedPerson.getProcesses(PaymentProcess.class); request.setAttribute("takenProcesses", takenProcesses.subList(0, Math.min(10, takenProcesses.size()))); request.setAttribute("person"...
diff --git a/src/me/ellbristow/greylistVote/greylistVote.java b/src/me/ellbristow/greylistVote/greylistVote.java index f64e8ad..ddbbb9e 100644 --- a/src/me/ellbristow/greylistVote/greylistVote.java +++ b/src/me/ellbristow/greylistVote/greylistVote.java @@ -1,420 +1,432 @@ package me.ellbristow.greylistVote; import ...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (commandLabel.equalsIgnoreCase("glv")) { if (args.length == 0) { PluginDescriptionFile pdfFile = this.getDescription(); sender.sendMessage(ChatColor.GOLD + pdfFile.getName() + " version " + pdfFile.getVers...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (commandLabel.equalsIgnoreCase("glv")) { if (args.length == 0) { PluginDescriptionFile pdfFile = this.getDescription(); sender.sendMessage(ChatColor.GOLD + pdfFile.getName() + " version " + pdfFile.getVers...
diff --git a/src/com/github/triarry/PvPRestore/PvPRestorePlayerListener.java b/src/com/github/triarry/PvPRestore/PvPRestorePlayerListener.java index 50c11d0..4025fb1 100644 --- a/src/com/github/triarry/PvPRestore/PvPRestorePlayerListener.java +++ b/src/com/github/triarry/PvPRestore/PvPRestorePlayerListener.java @@ -1,1...
false
true
public void onPlayerDeath(PlayerDeathEvent event) { Player player = null; if (event.getEntity() instanceof Player) { player = event.getEntity(); } Player killer = player.getKiller(); if (killer != null) { if (player.hasPermission("pvprestore.keep")) { event.setKeepLevel(true); player.sendMess...
public void onPlayerDeath(PlayerDeathEvent event) { Player player = null; if (event.getEntity() instanceof Player) { player = event.getEntity(); } Player killer = player.getKiller(); if (killer != null) { if (player.hasPermission("pvprestore.keep") && plugin.getConfig().getBoolean("keep-inventory") =...
diff --git a/src/DVN-EJB/src/java/edu/harvard/hmdc/vdcnet/study/StudyGrant.java b/src/DVN-EJB/src/java/edu/harvard/hmdc/vdcnet/study/StudyGrant.java index 3bfe31686..1e41cf5f7 100644 --- a/src/DVN-EJB/src/java/edu/harvard/hmdc/vdcnet/study/StudyGrant.java +++ b/src/DVN-EJB/src/java/edu/harvard/hmdc/vdcnet/study/StudyGr...
true
true
public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof Study)) { return false; } StudyGrant other = (StudyGrant)object; if (this.id != other.id && (this.id == null || !this.id....
public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof StudyGrant)) { return false; } StudyGrant other = (StudyGrant)object; if (this.id != other.id && (this.id == null || !thi...
diff --git a/ShoppingSidekick/src/com/ISU/shoppingsidekick/FoodResultsActivity.java b/ShoppingSidekick/src/com/ISU/shoppingsidekick/FoodResultsActivity.java index a461870..38fdf5e 100644 --- a/ShoppingSidekick/src/com/ISU/shoppingsidekick/FoodResultsActivity.java +++ b/ShoppingSidekick/src/com/ISU/shoppingsidekick/Food...
false
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_food_results); final Account a = (Account) getIntent().getExtras().get("account"); Bundle scanVal = null; Intent scannerValue = getIntent(); scanVal = scannerValue.getExtras(); ...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_food_results); final Account a = (Account) getIntent().getExtras().get("account"); Bundle scanVal = null; Intent scannerValue = getIntent(); scanVal = scannerValue.getExtras(); ...
diff --git a/src/org/broad/igv/sam/AlignmentInterval.java b/src/org/broad/igv/sam/AlignmentInterval.java index 3196b109f..dce288231 100644 --- a/src/org/broad/igv/sam/AlignmentInterval.java +++ b/src/org/broad/igv/sam/AlignmentInterval.java @@ -1,613 +1,613 @@ /* * Copyright (c) 2007-2012 The Broad Institute, Inc. ...
false
true
public double calculateScore(AlignmentTrack.SortOption option, double center, AlignmentInterval interval, String tag) { int adjustedCenter = (int) center; Alignment centerAlignment = getFeatureContaining(alignments, adjustedCenter); if (centerAlignment == null) { ...
public double calculateScore(AlignmentTrack.SortOption option, double center, AlignmentInterval interval, String tag) { int adjustedCenter = (int) center; Alignment centerAlignment = getFeatureContaining(alignments, adjustedCenter); if (centerAlignment == null) { ...
diff --git a/src/haven/Material.java b/src/haven/Material.java index 14156f28..ee9c29a7 100644 --- a/src/haven/Material.java +++ b/src/haven/Material.java @@ -1,262 +1,262 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and * ...
false
true
public Res(Resource res, byte[] buf) { res.super(); id = Utils.uint16d(buf, 0); int[] off = {2}; while(off[0] < buf.length) { String thing = Utils.strd(buf, off).intern(); if(thing == "col") { Color amb = col(buf, off); Color dif = col(buf, off); Color spc = col(buf, off); ...
public Res(Resource res, byte[] buf) { res.super(); id = Utils.uint16d(buf, 0); int[] off = {2}; while(off[0] < buf.length) { String thing = Utils.strd(buf, off).intern(); if(thing == "col") { Color amb = col(buf, off); Color dif = col(buf, off); Color spc = col(buf, off); ...
diff --git a/src/com/dynamobi/ws/impl/UsersAndRolesServiceImpl.java b/src/com/dynamobi/ws/impl/UsersAndRolesServiceImpl.java index a0f5f10..113bf90 100644 --- a/src/com/dynamobi/ws/impl/UsersAndRolesServiceImpl.java +++ b/src/com/dynamobi/ws/impl/UsersAndRolesServiceImpl.java @@ -1,313 +1,313 @@ package com.dynamobi.w...
false
true
public RolesDetailsHolder getRolesDetails() throws AppException { String query = "SELECT DISTINCT granted_catalog, granted_schema, granted_element, " + "grantee, grantor, action, " + "CASE WHEN r.role IS NOT NULL THEN r.role " + "WHEN grant_type = 'Role' THEN grantee END AS role_name, " + ...
public RolesDetailsHolder getRolesDetails() throws AppException { String query = "SELECT DISTINCT granted_catalog, granted_schema, granted_element, " + "grantee, grantor, action, " + "CASE WHEN r.role IS NOT NULL THEN r.role " + "WHEN grant_type = 'Role' THEN grantee END AS role_name, " + ...
diff --git a/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISKeyboardListener.java b/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISKeyboardListener.java index 49df7fd8f..921785ea4 100644 --- a/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISKeyboardListener.java +++ b/src/main/java/me/eccentric_nz/TARD...
true
true
public void onSignChange(SignChangeEvent event) { String loc = event.getBlock().getLocation().toString(); if (!plugin.trackSign.containsKey(loc)) { return; } Sign keyboard = plugin.trackSign.get(loc); int i = 0; for (String l : event.getLines()) { ...
public void onSignChange(SignChangeEvent event) { String loc = event.getBlock().getLocation().toString(); if (!plugin.trackSign.containsKey(loc)) { return; } Sign keyboard = plugin.trackSign.get(loc); int i = 0; for (String l : event.getLines()) { ...
diff --git a/InterviewAnnihilator/src/com/huskysoft/interviewannihilator/ui/QuestionActivity.java b/InterviewAnnihilator/src/com/huskysoft/interviewannihilator/ui/QuestionActivity.java index 59fc17c..73f699d 100644 --- a/InterviewAnnihilator/src/com/huskysoft/interviewannihilator/ui/QuestionActivity.java +++ b/Intervie...
false
true
private void addSolution(Solution solution){ // get layout from xml LayoutInflater li = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); View solutionView = li.inflate(R.layout.solution_view, null, false); // build text String solutionBody = solution.getText(); String solutionDate...
private void addSolution(Solution solution){ // get layout from xml LayoutInflater li = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); View solutionView = li.inflate(R.layout.solution_view, solutionsLayout, false); // build text String solutionBody = solution.getText(); String s...
diff --git a/illaeasynpc/src/illarion/easynpc/parser/talk/TalkingLine.java b/illaeasynpc/src/illarion/easynpc/parser/talk/TalkingLine.java index 030540a8..501890ab 100644 --- a/illaeasynpc/src/illarion/easynpc/parser/talk/TalkingLine.java +++ b/illaeasynpc/src/illarion/easynpc/parser/talk/TalkingLine.java @@ -1,288 +1,...
false
true
public TalkingLine() { condPar = new ArrayList<ConditionParser>(); consPar = new ArrayList<ConsequenceParser>(); condPar.add(new illarion.easynpc.parser.talk.conditions.State()); condPar.add(new illarion.easynpc.parser.talk.conditions.Skill()); condPar.add(new illarion.easyn...
public TalkingLine() { condPar = new ArrayList<ConditionParser>(); consPar = new ArrayList<ConsequenceParser>(); condPar.add(new illarion.easynpc.parser.talk.conditions.State()); condPar.add(new illarion.easynpc.parser.talk.conditions.Skill()); condPar.add(new illarion.easyn...
diff --git a/src/org/jets3t/service/impl/rest/httpclient/RestS3Service.java b/src/org/jets3t/service/impl/rest/httpclient/RestS3Service.java index dcf3cd6..3ddeb32 100644 --- a/src/org/jets3t/service/impl/rest/httpclient/RestS3Service.java +++ b/src/org/jets3t/service/impl/rest/httpclient/RestS3Service.java @@ -1,1272 ...
false
true
protected void performRequest(HttpMethodBase httpMethod, int expectedResponseCode) throws S3ServiceException { // httpMethod.setRequestHeader("Cache-Control", "no-cache"); // TODO try { log.debug("Performing " + httpMethod.getName() + " reque...
protected void performRequest(HttpMethodBase httpMethod, int expectedResponseCode) throws S3ServiceException { // httpMethod.setRequestHeader("Cache-Control", "no-cache"); // TODO try { log.debug("Performing " + httpMethod.getName() + " reque...
diff --git a/src/net/bmaron/openfixmap/ErrorParsers/KeepRightCSVParser.java b/src/net/bmaron/openfixmap/ErrorParsers/KeepRightCSVParser.java index 51eb0f7..e232d82 100644 --- a/src/net/bmaron/openfixmap/ErrorParsers/KeepRightCSVParser.java +++ b/src/net/bmaron/openfixmap/ErrorParsers/KeepRightCSVParser.java @@ -1,155 +...
false
true
public void parse(BoundingBoxE6 boundingBox , int eLevel, boolean show_closed) { String next[] = {}; org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(KeepRightCSVParser.class); try { HttpClient httpClient = new DefaultHttpClient(); HttpContext localContext = ...
public void parse(BoundingBoxE6 boundingBox , int eLevel, boolean show_closed) { String next[] = {}; org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(KeepRightCSVParser.class); try { HttpClient httpClient = new DefaultHttpClient(); HttpContext localContext = ...
diff --git a/java/client/test/org/openqa/selenium/GetMultipleAttributeTest.java b/java/client/test/org/openqa/selenium/GetMultipleAttributeTest.java index cb18b5a21..c666dfe76 100644 --- a/java/client/test/org/openqa/selenium/GetMultipleAttributeTest.java +++ b/java/client/test/org/openqa/selenium/GetMultipleAttributeT...
true
true
public void testMultipleAttributeShouldBeFalseWhenNotSet() { driver.get(pages.selectPage); WebElement element = driver.findElement(By.id("selectWithoutMultiple")); assertEquals(null, element.getAttribute("multiple")); }
public void testMultipleAttributeShouldBeNullWhenNotSet() { driver.get(pages.selectPage); WebElement element = driver.findElement(By.id("selectWithoutMultiple")); assertEquals(null, element.getAttribute("multiple")); }
diff --git a/src/com/dmdirc/addons/osd/OsdPlugin.java b/src/com/dmdirc/addons/osd/OsdPlugin.java index a6dfea7a1..655415938 100644 --- a/src/com/dmdirc/addons/osd/OsdPlugin.java +++ b/src/com/dmdirc/addons/osd/OsdPlugin.java @@ -1,164 +1,164 @@ /* * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holm...
true
true
public void showConfig(final PreferencesManager manager) { x = IdentityManager.getGlobalConfig().getOptionInt(getDomain(), "locationX"); y = IdentityManager.getGlobalConfig().getOptionInt(getDomain(), "locationY"); final PreferencesCategory category = new PreferencesCategory("OSD", ...
public void showConfig(final PreferencesManager manager) { x = IdentityManager.getGlobalConfig().getOptionInt(getDomain(), "locationX"); y = IdentityManager.getGlobalConfig().getOptionInt(getDomain(), "locationY"); final PreferencesCategory category = new PreferencesCategory("OSD", ...
diff --git a/src/com/dmdirc/ui/swing/textpane/TextPane.java b/src/com/dmdirc/ui/swing/textpane/TextPane.java index a1b22754a..bb11ba2c9 100644 --- a/src/com/dmdirc/ui/swing/textpane/TextPane.java +++ b/src/com/dmdirc/ui/swing/textpane/TextPane.java @@ -1,731 +1,731 @@ /* * Copyright (c) 2006-2008 Chris Smith, Shane ...
true
true
public static AttributedString styledDocumentToAttributedString( final StyledDocument doc) { //Now lets get hacky, loop through the styled document and add all //styles to an attributedString AttributedString attString = null; final Element line = doc.getParagraphElement...
public static AttributedString styledDocumentToAttributedString( final StyledDocument doc) { //Now lets get hacky, loop through the styled document and add all //styles to an attributedString AttributedString attString = null; final Element line = doc.getParagraphElement...
diff --git a/svnkit/src/test/java/org/tmatesoft/svn/test/RevertTest.java b/svnkit/src/test/java/org/tmatesoft/svn/test/RevertTest.java index 5c6826c17..c5cc21031 100644 --- a/svnkit/src/test/java/org/tmatesoft/svn/test/RevertTest.java +++ b/svnkit/src/test/java/org/tmatesoft/svn/test/RevertTest.java @@ -1,316 +1,314 @@...
false
true
private void testRevertCopy(String testName, boolean recursiveRevert, boolean preserveModifiedCopies, boolean modifyFileContents, boolean modifyProperties, boolean expectedFileExistence16, SVNStatusType expectedNodeStatus16, boolean expectedFileExistence17, SVNStatusType expectedNodeStatus17) throws SVNException { ...
private void testRevertCopy(String testName, boolean recursiveRevert, boolean preserveModifiedCopies, boolean modifyFileContents, boolean modifyProperties, boolean expectedFileExistence16, SVNStatusType expectedNodeStatus16, boolean expectedFileExistence17, SVNStatusType expectedNodeStatus17) throws SVNException { ...
diff --git a/src/com/github/dreamrec/Filter.java b/src/com/github/dreamrec/Filter.java index 85904e9..315af4b 100644 --- a/src/com/github/dreamrec/Filter.java +++ b/src/com/github/dreamrec/Filter.java @@ -1,35 +1,35 @@ package com.github.dreamrec; /** * */ public abstract class Filter<T> implements IFilter { ...
true
true
private void checkIndexBounds(int index){ if(index < size() || index < 0 ){ throw new IndexOutOfBoundsException("index: "+index+",size: "+size()); } }
private void checkIndexBounds(int index){ if(index > size() || index < 0 ){ throw new IndexOutOfBoundsException("index: "+index+",size: "+size()); } }
diff --git a/src/main/java/io/iron/ironmq/Client.java b/src/main/java/io/iron/ironmq/Client.java index d8d1282..640769d 100644 --- a/src/main/java/io/iron/ironmq/Client.java +++ b/src/main/java/io/iron/ironmq/Client.java @@ -1,141 +1,149 @@ package io.iron.ironmq; import java.io.InputStream; import java.io.InputSt...
false
true
private Reader singleRequest(String method, URL url, String body) throws IOException { HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod(method); conn.setRequestProperty("Authorization", "OAuth " + token); conn.setRequestProperty("User-Agent", "...
private Reader singleRequest(String method, URL url, String body) throws IOException { HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod(method); conn.setRequestProperty("Authorization", "OAuth " + token); conn.setRequestProperty("User-Agent", "...
diff --git a/caadapter/components/hl7Transformation/src/gov/nih/nci/caadapter/hl7/transformation/MapProcssorCSVUtil.java b/caadapter/components/hl7Transformation/src/gov/nih/nci/caadapter/hl7/transformation/MapProcssorCSVUtil.java index 8aafdf719..e96fb2a36 100755 --- a/caadapter/components/hl7Transformation/src/gov/ni...
false
true
public List<CSVSegment> findCSVSegment(CSVSegment csvSegment, String targetXmlPath) { // System.out.println("CSVSegment "+csvSegment.getXmlPath() + "-->target"+targetXmlPath); List<CSVSegment> csvSegments = new ArrayList<CSVSegment>(); if (csvSegment.getXmlPath().equals(targetXmlPath)) { csvSegm...
public List<CSVSegment> findCSVSegment(CSVSegment csvSegment, String targetXmlPath) { // System.out.println("CSVSegment "+csvSegment.getXmlPath() + "-->target"+targetXmlPath); List<CSVSegment> csvSegments = new ArrayList<CSVSegment>(); if (csvSegment.getXmlPath().equals(targetXmlPath)) { csvSegm...
diff --git a/app/controllers/SearchApiController.java b/app/controllers/SearchApiController.java index 2088f5dd..8b0d4720 100644 --- a/app/controllers/SearchApiController.java +++ b/app/controllers/SearchApiController.java @@ -1,100 +1,100 @@ /** * Copyright 2013 Lennart Koopmann <lennart@torch.sh> * * This file...
false
true
public Result fieldStats(String q, String field, String rangeType, int relative, String interval) { if (q == null || q.isEmpty()) { q = "*"; } // Histogram interval. if (interval == null || interval.isEmpty() || !SearchTools.isAllowedDateHistogramInterval(interval)) { ...
public Result fieldStats(String q, String field, String rangeType, int relative, String from, String to, String keyword, String interval) { if (q == null || q.isEmpty()) { q = "*"; } // Histogram interval. if (interval == null || interval.isEmpty() || !SearchTools.isAllo...
diff --git a/src/main/java/pl/project13/janbanery/core/flow/TaskMoveFlowImpl.java b/src/main/java/pl/project13/janbanery/core/flow/TaskMoveFlowImpl.java index c8e585a..7b5b98a 100644 --- a/src/main/java/pl/project13/janbanery/core/flow/TaskMoveFlowImpl.java +++ b/src/main/java/pl/project13/janbanery/core/flow/TaskMoveF...
true
true
public TaskMoveFlow toNextColumn() throws IOException { TaskMoveFlow moveFlow; try { moveFlow = to(TaskLocation.NEXT); } catch (InternalServerErrorKanbaneryException e) { // fixme this is a bug workaround // kanbanery does handle "ArrayIndexOutOfBounds" right for movement to the left, //...
public TaskMoveFlow toNextColumn() throws IOException { TaskMoveFlow moveFlow; try { moveFlow = to(TaskLocation.NEXT); } catch (InternalServerErrorKanbaneryException e) { // fixme this is a bug workaround // kanbanery does handle "ArrayIndexOutOfBounds" right for movement to the left, //...
diff --git a/src/uk/org/ponder/rsf/templateresolver/BasicTemplateResolver.java b/src/uk/org/ponder/rsf/templateresolver/BasicTemplateResolver.java index 78ef32d..c7fbb0e 100644 --- a/src/uk/org/ponder/rsf/templateresolver/BasicTemplateResolver.java +++ b/src/uk/org/ponder/rsf/templateresolver/BasicTemplateResolver.java...
true
true
public ViewTemplate locateTemplate(ViewParameters viewparams) { // NB if we really want this optimisation, it must be based on # // of RETURNED templates, not the number of strategies! XMLCompositeViewTemplate xcvt = strategies.size() == 1 ? null : new XMLCompositeViewTemplate(); int highestp...
public ViewTemplate locateTemplate(ViewParameters viewparams) { // NB if we really want this optimisation, it must be based on # // of RETURNED templates, not the number of strategies! XMLCompositeViewTemplate xcvt = strategies.size() == 1 ? null : new XMLCompositeViewTemplate(); int highestp...
diff --git a/src/java/com/idega/core/location/business/AddressBusinessBean.java b/src/java/com/idega/core/location/business/AddressBusinessBean.java index 85be29daf..9d49a3aee 100644 --- a/src/java/com/idega/core/location/business/AddressBusinessBean.java +++ b/src/java/com/idega/core/location/business/AddressBusinessB...
true
true
public Address getUpdatedAddressByFullAddressString(Address address, String fullAddressString) throws RemoteException, CreateException { String streetName = null; String streetNumber = null; String postalCode = null; String postalName = null; String countryName = null; String countryISOAbbr = null; St...
public Address getUpdatedAddressByFullAddressString(Address address, String fullAddressString) throws RemoteException, CreateException { String streetName = null; String streetNumber = null; String postalCode = null; String postalName = null; String countryName = null; String countryISOAbbr = null; St...
diff --git a/java/src/org/pocketworkstation/pckeyboard/LatinKeyboardView.java b/java/src/org/pocketworkstation/pckeyboard/LatinKeyboardView.java index 483ad5d..3800360 100644 --- a/java/src/org/pocketworkstation/pckeyboard/LatinKeyboardView.java +++ b/java/src/org/pocketworkstation/pckeyboard/LatinKeyboardView.java @@ ...
true
true
public boolean onTouchEvent(MotionEvent me) { LatinKeyboard keyboard = (LatinKeyboard) getKeyboard(); if (DEBUG_LINE) { mLastX = (int) me.getX(); mLastY = (int) me.getY(); invalidate(); } // If an extension keyboard is visible or this is an extens...
public boolean onTouchEvent(MotionEvent me) { LatinKeyboard keyboard = (LatinKeyboard) getKeyboard(); if (DEBUG_LINE) { mLastX = (int) me.getX(); mLastY = (int) me.getY(); invalidate(); } // If an extension keyboard is visible or this is an extens...
diff --git a/src/mud/Main.java b/src/mud/Main.java index a7244ef..909c4be 100644 --- a/src/mud/Main.java +++ b/src/mud/Main.java @@ -1,54 +1,54 @@ package mud; import java.io.IOException; import java.net.UnknownHostException; import mud.network.client.ClientFrame; import mud.network.client.GameClient; import mu...
true
true
public static void connectClient() throws UnknownHostException, IOException { ClientFrame clientFrame = new ClientFrame(); GameClient gameClient = new GameClient(clientFrame.getjTextArea1(), clientFrame.getjTextField1()); clientFrame.setVisible(true); //Block until the connection cho...
public static void connectClient() throws UnknownHostException, IOException { ClientFrame clientFrame = new ClientFrame(); GameClient gameClient = new GameClient(clientFrame.getjTextArea1(), clientFrame.getjTextField1()); clientFrame.setVisible(true); //Block until the connection cho...
diff --git a/tubular-core/src/test/java/org/trancecode/xproc/XProcTestSuiteReportBuilder.java b/tubular-core/src/test/java/org/trancecode/xproc/XProcTestSuiteReportBuilder.java index 10ff3c9c..9c975f31 100644 --- a/tubular-core/src/test/java/org/trancecode/xproc/XProcTestSuiteReportBuilder.java +++ b/tubular-core/src/t...
true
true
public void write(final File file) { final Processor processor = new Processor(false); final SaxonBuilder builder = new SaxonBuilder(processor.getUnderlyingConfiguration()); builder.startDocument(); builder.startElement(Elements.TEST_REPORT); builder.startElement(Element...
public void write(final File file) { final Processor processor = new Processor(false); final SaxonBuilder builder = new SaxonBuilder(processor.getUnderlyingConfiguration()); builder.startDocument(); builder.startElement(Elements.TEST_REPORT); builder.startElement(Element...
diff --git a/src/logic/CheckEditorBoardDifficulty.java b/src/logic/CheckEditorBoardDifficulty.java index 4488d73..ae4d6ce 100644 --- a/src/logic/CheckEditorBoardDifficulty.java +++ b/src/logic/CheckEditorBoardDifficulty.java @@ -1,931 +1,934 @@ /** * */ package logic; import java.math.BigInteger; import java...
false
true
public String checkDifficulty() { /** * Dekleration der Variabeln f�r die Funktion checkDifficulty */ _tmpDiff = new eStatesDiff[_oBoard.getHeight()][_oBoard.getWidth()]; boolean isSolvable = false; boolean doMediumSearch = false; boolean doHardSearch = false; boolean isSolved = false; boolean ...
public String checkDifficulty() { /** * Dekleration der Variabeln f�r die Funktion checkDifficulty */ _tmpDiff = new eStatesDiff[_oBoard.getHeight()][_oBoard.getWidth()]; boolean isSolvable = false; boolean doMediumSearch = false; boolean doHardSearch = false; boolean isSolved = false; boolean ...
diff --git a/src/com/jpmiii/Realmscraft/RealmscraftListener.java b/src/com/jpmiii/Realmscraft/RealmscraftListener.java index 519ffad..59d7d81 100644 --- a/src/com/jpmiii/Realmscraft/RealmscraftListener.java +++ b/src/com/jpmiii/Realmscraft/RealmscraftListener.java @@ -1,114 +1,114 @@ package com.jpmiii.Realmscraft; i...
true
true
public void portalStep(PlayerInteractEvent event) { if (event.getAction() == Action.PHYSICAL && !plugin.getConfig().getString("portalServer").isEmpty()) { //plugin.portalLoc = new Location(event.getPlayer().getWorld(),0,61, 0) ; if (event.getClickedBlock().getLocation().distance(plugin.portalLoc)...
public void portalStep(PlayerInteractEvent event) { if (event.getAction() == Action.PHYSICAL && !plugin.getConfig().getString("portalServer").isEmpty()) { //plugin.portalLoc = new Location(event.getPlayer().getWorld(),0,61, 0) ; if (event.getClickedBlock().getLocation().distance(plugin.portalLoc)...
diff --git a/src/main/java/it/unito/geosummly/Main.java b/src/main/java/it/unito/geosummly/Main.java index e784c9e..612ce32 100644 --- a/src/main/java/it/unito/geosummly/Main.java +++ b/src/main/java/it/unito/geosummly/Main.java @@ -1,157 +1,157 @@ package it.unito.geosummly; import java.io.ByteArrayOutputStream; ...
false
true
public static void main(String[] args) throws FoursquareApiException, UnknownHostException{ /***************************************************************************************/ /******************************CREATE THE BOUNDING BOX**********************************/ /*************************************...
public static void main(String[] args) throws FoursquareApiException, UnknownHostException{ /***************************************************************************************/ /******************************CREATE THE BOUNDING BOX**********************************/ /*************************************...
diff --git a/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java b/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java index 9dcbc6065..ceca1ba3f 100644 --- a/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java +++ b/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java @@ -1,1282 +1,1285 @@ /** * Copyrigh...
false
true
void setTaskAppearance(ViewHolder viewHolder, Task task) { Activity activity = fragment.getActivity(); if (activity == null) return; // show item as completed if it was recently checked if(completedItems.get(task.getUuid()) != null || completedItems.get(task.getId()) != n...
void setTaskAppearance(ViewHolder viewHolder, Task task) { Activity activity = fragment.getActivity(); if (activity == null) return; // show item as completed if it was recently checked Boolean value = completedItems.get(task.getUuid()); if (value == null) ...
diff --git a/uk.ac.gda.common/src/uk/ac/gda/ClientManager.java b/uk.ac.gda.common/src/uk/ac/gda/ClientManager.java index 28760fd..e2b70cc 100644 --- a/uk.ac.gda.common/src/uk/ac/gda/ClientManager.java +++ b/uk.ac.gda.common/src/uk/ac/gda/ClientManager.java @@ -1,52 +1,52 @@ /*- * Copyright © 2009 Diamond Light Sourc...
true
true
public static boolean isClient() { // TODO Make test more appropriate if (System.getProperty("gda.root")==null || System.getProperty("gda.config")==null) { return false; } return true; }
public static boolean isClient() { // TODO Make test more appropriate if (System.getProperty("gda.config")==null) { return false; } return true; }
diff --git a/src/com/ramblingwood/minecraft/jsonapi/dynamic/Call.java b/src/com/ramblingwood/minecraft/jsonapi/dynamic/Call.java index 59425ac..957db79 100644 --- a/src/com/ramblingwood/minecraft/jsonapi/dynamic/Call.java +++ b/src/com/ramblingwood/minecraft/jsonapi/dynamic/Call.java @@ -1,233 +1,238 @@ package com.ra...
false
true
public void parseString (String input) { String[] parts = input.split("\\."); for(int i = 0; i < parts.length; i++) { String v = parts[i]; //if(i == 0) { if(v.equals("Server")) { stack.add(Server); } else if(v.equals("this")) { stack.add(APIInstance); } else if(v.equals("Plugin...
public void parseString (String input) { String[] parts = input.split("\\."); for(int i = 0; i < parts.length; i++) { String v = parts[i]; //if(i == 0) { if(v.equals("Server")) { stack.add(Server); } else if(v.equals("this")) { stack.add(APIInstance); } else if(v.equals("Plugin...
diff --git a/src/au/gov/naa/digipres/xena/util/SourceURIParser.java b/src/au/gov/naa/digipres/xena/util/SourceURIParser.java index a5453507..8fc010bf 100644 --- a/src/au/gov/naa/digipres/xena/util/SourceURIParser.java +++ b/src/au/gov/naa/digipres/xena/util/SourceURIParser.java @@ -1,112 +1,112 @@ /** * This file is...
true
true
public static String getRelativeSystemId(XenaInputSource xis, PluginManager pluginManager) throws SAXException { String xisRelativeSystemId = ""; try { java.net.URI uri = new java.net.URI(xis.getSystemId()); if (uri.getScheme() != null && "file".equals(uri.getScheme())) { File inputSourceFile = new File(...
public static String getRelativeSystemId(XenaInputSource xis, PluginManager pluginManager) throws SAXException { String xisRelativeSystemId = ""; try { java.net.URI uri = new java.net.URI(xis.getSystemId()); if (uri.getScheme() != null && "file".equals(uri.getScheme())) { File inputSourceFile = new File(...
diff --git a/Meteor/testcases/test/nchelp/meteor/SAMLAssertionTest.java b/Meteor/testcases/test/nchelp/meteor/SAMLAssertionTest.java index eaa285f1..b69fe9d3 100755 --- a/Meteor/testcases/test/nchelp/meteor/SAMLAssertionTest.java +++ b/Meteor/testcases/test/nchelp/meteor/SAMLAssertionTest.java @@ -1,156 +1,156 @@ /** ...
true
true
public void testSaml() { String userid = "ED.303"; try { Assertion aa = AssertionFactory.newInstance( new String( new Long(System.currentTimeMillis()).toString() ), "nchelp.org/meteor", new Date(), userid, "nchelp.org/meteor", "http://nchelp.org", new Date(), java.net.InetAddre...
public void testSaml() { String userid = "ED.303"; try { Assertion aa = AssertionFactory.newInstance( Long.toString(System.currentTimeMillis()) , "nchelp.org/meteor", new Date(), userid, "nchelp.org/meteor", "http://nchelp.org", new Date(), java.net.InetAddress.getLocalHost().g...
diff --git a/src/main/java/org/devtcg/five/meta/FileCrawler.java b/src/main/java/org/devtcg/five/meta/FileCrawler.java index e54e443..62fec03 100644 --- a/src/main/java/org/devtcg/five/meta/FileCrawler.java +++ b/src/main/java/org/devtcg/five/meta/FileCrawler.java @@ -1,559 +1,559 @@ /* * Copyright (C) 2009 Josh Gui...
true
true
private long handlePlaylistPls(File file) throws SQLException { try { BufferedReader reader = new BufferedReader(new FileReader(file), 1024); /* Sanity check. */ String firstLine = reader.readLine(); if (firstLine == null || firstLine.trim().equalsIgnoreCase("[playlist]") == false) return -...
private long handlePlaylistPls(File file) throws SQLException { try { BufferedReader reader = new BufferedReader(new FileReader(file), 1024); /* Sanity check. */ String firstLine = reader.readLine(); if (firstLine == null || firstLine.trim().equalsIgnoreCase("[playlist]") == false) return -...
diff --git a/src/org/apache/xerces/impl/dv/dtd/ListDatatypeValidator.java b/src/org/apache/xerces/impl/dv/dtd/ListDatatypeValidator.java index f05f80677..6a38f40c6 100644 --- a/src/org/apache/xerces/impl/dv/dtd/ListDatatypeValidator.java +++ b/src/org/apache/xerces/impl/dv/dtd/ListDatatypeValidator.java @@ -1,105 +1,10...
true
true
public void validate(String content, ValidationContext context) throws InvalidDatatypeValueException { StringTokenizer parsedList = new StringTokenizer(content); int numberOfTokens = parsedList.countTokens(); if (numberOfTokens == 0) { throw new InvalidDatatypeValueException("E...
public void validate(String content, ValidationContext context) throws InvalidDatatypeValueException { StringTokenizer parsedList = new StringTokenizer(content," "); int numberOfTokens = parsedList.countTokens(); if (numberOfTokens == 0) { throw new InvalidDatatypeValueExceptio...
diff --git a/src/se/bthstudent/sis/afk/GLaDOS/ConfigurationApparatus.java b/src/se/bthstudent/sis/afk/GLaDOS/ConfigurationApparatus.java index a6916d3..9ff7a82 100644 --- a/src/se/bthstudent/sis/afk/GLaDOS/ConfigurationApparatus.java +++ b/src/se/bthstudent/sis/afk/GLaDOS/ConfigurationApparatus.java @@ -1,73 +1,73 @@ ...
true
true
public void readConfig() { String location = ".GLaDOS.conf"; try { BufferedReader in = new BufferedReader(new FileReader(location)); String read = in.readLine(); while (read != null) { if (!read.equals("")) { String[] parts = read.split(" "); if (parts[0].equals("channels:")) { this...
public void readConfig() { String location = ".GLaDOS.conf"; try { BufferedReader in = new BufferedReader(new FileReader(location)); String read = in.readLine(); while (read != null) { if (!read.equals("")) { String[] parts = read.split(" "); if (parts[0].equals("channels:")) { this...
diff --git a/src/test/java/org/spout/api/util/cuboid/CuboidNibbleLightBufferTest.java b/src/test/java/org/spout/api/util/cuboid/CuboidNibbleLightBufferTest.java index 7d1d095d5..a54cded46 100644 --- a/src/test/java/org/spout/api/util/cuboid/CuboidNibbleLightBufferTest.java +++ b/src/test/java/org/spout/api/util/cuboid/...
false
true
public void copyTest() { Random r = new Random(); for (int c = 0; c < LOOPS; c++) { int bx = r.nextInt(); int by = r.nextInt(); int bz = r.nextInt(); int sx = r.nextInt(SIZE) + SIZE; int sy = r.nextInt(SIZE) + SIZE; int sz = r.nextInt(SIZE) + SIZE; int vol = sx * sy * sz; if (...
public void copyTest() { Random r = new Random(); for (int c = 0; c < LOOPS; c++) { int bx = r.nextInt(); int by = r.nextInt(); int bz = r.nextInt(); int sx = r.nextInt(SIZE) + SIZE; int sy = r.nextInt(SIZE) + SIZE; int sz = r.nextInt(SIZE) + SIZE; int vol = sx * sy * sz; if (...
diff --git a/src/com/github/MrTwiggy/OreGin/OreGinManager.java b/src/com/github/MrTwiggy/OreGin/OreGinManager.java index ffb3d8f..0c22184 100644 --- a/src/com/github/MrTwiggy/OreGin/OreGinManager.java +++ b/src/com/github/MrTwiggy/OreGin/OreGinManager.java @@ -1,140 +1,140 @@ package com.github.MrTwiggy.OreGin; imp...
true
true
public boolean IsOreGin(ItemStack item) { boolean result = false; if (item.getItemMeta().getDisplayName() == null) return false; for(int i = 0; i < OreGinPlugin.MAX_TIERS; i++) { if (item.getItemMeta().getDisplayName().equalsIgnoreCase("T" + i + " OreGin")) { result = true; break; } ...
public boolean IsOreGin(ItemStack item) { boolean result = false; if (item.getItemMeta().getDisplayName() == null) return false; for(int i = 1; i <= OreGinPlugin.MAX_TIERS; i++) { if (item.getItemMeta().getDisplayName().equalsIgnoreCase("T" + i + " OreGin")) { result = true; break; }...
diff --git a/src/me/libraryaddict/Hungergames/Types/Gamer.java b/src/me/libraryaddict/Hungergames/Types/Gamer.java index 6203fed..977f0b9 100644 --- a/src/me/libraryaddict/Hungergames/Types/Gamer.java +++ b/src/me/libraryaddict/Hungergames/Types/Gamer.java @@ -1,314 +1,314 @@ package me.libraryaddict.Hungergames.Types...
false
true
public void setAlive(boolean alive) { String name = ChatColor.DARK_GRAY + player.getName() + ChatColor.RESET; if (alive && !isAlive()) { setSpectating(!alive); setHuman(); show(); player.setFallDistance(0F); player.setAllowFlight(false); ...
public void setAlive(boolean alive) { String name = ChatColor.DARK_GRAY + player.getName() + ChatColor.RESET; if (alive) { setSpectating(false); setHuman(); show(); player.setFallDistance(0F); player.setAllowFlight(false); updat...
diff --git a/profiling/org.eclipse.linuxtools.tools.launch.core/src/org/eclipse/linuxtools/tools/launch/core/factory/RuntimeProcessFactory.java b/profiling/org.eclipse.linuxtools.tools.launch.core/src/org/eclipse/linuxtools/tools/launch/core/factory/RuntimeProcessFactory.java index 8b1e0c371..e64db7115 100644 --- a/pro...
true
true
public String whichCommand(String command, IProject project) throws IOException { if (project != null) { String[] envp = updateEnvironment(null, project); try { IRemoteFileProxy proxy = RemoteProxyManager.getInstance().getFileProxy(project); URI whichUri = URI.create(WHICH_CMD); IPath whichPath = n...
public String whichCommand(String command, IProject project) throws IOException { if (project != null) { String[] envp = updateEnvironment(null, project); try { IRemoteFileProxy proxy = RemoteProxyManager.getInstance().getFileProxy(project); URI whichUri = URI.create(WHICH_CMD); IPath whichPath = n...
diff --git a/java/tools/src/com/jopdesign/wcet/WCETAnalysis.java b/java/tools/src/com/jopdesign/wcet/WCETAnalysis.java index edf1d622..693d6733 100644 --- a/java/tools/src/com/jopdesign/wcet/WCETAnalysis.java +++ b/java/tools/src/com/jopdesign/wcet/WCETAnalysis.java @@ -1,220 +1,221 @@ /* This file is part of JOP, ...
false
true
private boolean run(ExecHelper exec) { project = null; ProjectConfig pConfig = new ProjectConfig(config); /* Initialize */ try { project = new Project(pConfig); project.setTopLevelLooger(tlLogger); Report.initVelocity(config); /* Initialize velocity engine */ tlLogger.info("Loading project"); ...
private boolean run(ExecHelper exec) { project = null; ProjectConfig pConfig = new ProjectConfig(config); /* Initialize */ try { project = new Project(pConfig); project.setTopLevelLooger(tlLogger); Report.initVelocity(config); /* Initialize velocity engine */ tlLogger.info("Loading project"); ...
diff --git a/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamComponentHyperlinkDetector.java b/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamComponentHyperlinkDetector.java index 1ba0c4a68..81b5a6936 100644 --- a/seam/plugins/org.jb...
true
true
public IHyperlink[] detectHyperlinks(ITextViewer textViewer, IRegion region, boolean canShowMultipleHyperlinks) { ITextEditor textEditor= (ITextEditor)getAdapter(ITextEditor.class); if (region == null || // canShowMultipleHyperlinks || !(textEditor instanceof JavaEditor)) return null; int offset= re...
public IHyperlink[] detectHyperlinks(ITextViewer textViewer, IRegion region, boolean canShowMultipleHyperlinks) { ITextEditor textEditor= (ITextEditor)getAdapter(ITextEditor.class); if (region == null || // canShowMultipleHyperlinks || !(textEditor instanceof JavaEditor)) return null; int offset= re...
diff --git a/src/nl/rutgerkok/BetterEnderChest/BetterEnderChest.java b/src/nl/rutgerkok/BetterEnderChest/BetterEnderChest.java index 51364f2..2be177d 100644 --- a/src/nl/rutgerkok/BetterEnderChest/BetterEnderChest.java +++ b/src/nl/rutgerkok/BetterEnderChest/BetterEnderChest.java @@ -1,312 +1,312 @@ package nl.rutgerk...
true
true
private void initConfig() { if(!getConfig().getString("enderBlock","NOT_FOUND").equals("NOT_FOUND")) { //we have a 0.1-0.3 config here! convertConfig(); } //Chestmaterial String chestBlock = getConfig().getString("EnderChest.block", "BOOKSHELF"); chestMaterial = Material.matchMaterial(chestBlock); ...
private void initConfig() { if(!getConfig().getString("enderBlock","NOT_FOUND").equals("NOT_FOUND")) { //we have a 0.1-0.3 config here! convertConfig(); } //Chestmaterial String chestBlock = getConfig().getString("EnderChest.block", "BOOKSHELF"); chestMaterial = Material.matchMaterial(chestBlock); ...
diff --git a/src/main/java/com/nateriver/app/cracking/Q21.java b/src/main/java/com/nateriver/app/cracking/Q21.java index 4839b80..b20bb82 100644 --- a/src/main/java/com/nateriver/app/cracking/Q21.java +++ b/src/main/java/com/nateriver/app/cracking/Q21.java @@ -1,81 +1,81 @@ package com.nateriver.app.cracking; impor...
false
true
public static void removeDuplicateLink(SingleLink head){ if(head == null || head.next == null) return; SingleLink node = head; HashMap<String,Integer> map = new HashMap<String, Integer>(); while (node != null && node.next != null){ SingleLink nextNode = node....
public static void removeDuplicateLink(SingleLink head){ if(head == null || head.next == null) return; SingleLink node = head; HashMap<String,Integer> map = new HashMap<String, Integer>(); while (node != null && node.next != null){ SingleLink nextNode = node....
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/raptor/TargetBound.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/raptor/TargetBound.java index 992b31e99..68ed44dbd 100644 --- a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/rapt...
true
true
public boolean shouldSkipTraversalResult(Vertex origin, Vertex target, State parent, State current, ShortestPathTree spt, RoutingRequest traverseOptions) { if (realTarget == null) return false; final Vertex vertex = current.getVertex(); int vertexIndex = vertex.getIn...
public boolean shouldSkipTraversalResult(Vertex origin, Vertex target, State parent, State current, ShortestPathTree spt, RoutingRequest traverseOptions) { if (realTarget == null) return false; final Vertex vertex = current.getVertex(); int vertexIndex = vertex.getIn...
diff --git a/src/com/csipsimple/service/DeviceStateReceiver.java b/src/com/csipsimple/service/DeviceStateReceiver.java index 1d0e2e14..122a5f7a 100644 --- a/src/com/csipsimple/service/DeviceStateReceiver.java +++ b/src/com/csipsimple/service/DeviceStateReceiver.java @@ -1,116 +1,116 @@ /** * Copyright (C) 2010-2012 ...
true
true
public void onReceive(Context context, Intent intent) { PreferencesProviderWrapper prefWrapper = new PreferencesProviderWrapper(context); String intentAction = intent.getAction(); // // ACTION_DATA_STATE_CHANGED // Data state change is used to detect changes in the mobile ...
public void onReceive(Context context, Intent intent) { PreferencesProviderWrapper prefWrapper = new PreferencesProviderWrapper(context); String intentAction = intent.getAction(); // // ACTION_DATA_STATE_CHANGED // Data state change is used to detect changes in the mobile ...
diff --git a/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/EventView.java b/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/EventView.java index e8384ca3..6f88f90b 100644 --- a/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/EventView.java +++ b/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/EventView.java @@ -1,442...
false
true
public boolean configure(Element element, ClientFactory clientFactory, Arguments args) { String height = args.getArg(0); if (args.size() > 1) { cmdBus = clientFactory.getEventBus(args.getArg(1)); } table.setSize("100%", height); table.setEmptyTableWidget(new Label("No Events")); add(table); Asyn...
public boolean configure(Element element, ClientFactory clientFactory, Arguments args) { String height = args.getArg(0); if (args.size() > 1) { cmdBus = clientFactory.getEventBus(args.getArg(1)); } table.setSize("100%", height); table.setEmptyTableWidget(new Label("No Events")); add(table); Asyn...
diff --git a/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java b/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java index db6385ca..56f43a46 100644 --- a/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java +++ b/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java @@ -1,57 +1,55 @@ /*...
false
true
protected void onCreate(Bundle icicle) { super.onCreate(icicle); // Add a persistent setting to allow other apps to know the device has been provisioned. Settings.Secure.putInt(getContentResolver(), Settings.Secure.DEVICE_PROVISIONED, 1); // Enable the GPS. // Not n...
protected void onCreate(Bundle icicle) { super.onCreate(icicle); // Add a persistent setting to allow other apps to know the device has been provisioned. Settings.Secure.putInt(getContentResolver(), Settings.Secure.DEVICE_PROVISIONED, 1); // Enable the GPS. // Not n...
diff --git a/jamwiki-core/src/main/java/org/jamwiki/parser/TableOfContents.java b/jamwiki-core/src/main/java/org/jamwiki/parser/TableOfContents.java index a248b5aa..a68228b4 100644 --- a/jamwiki-core/src/main/java/org/jamwiki/parser/TableOfContents.java +++ b/jamwiki-core/src/main/java/org/jamwiki/parser/TableOfContent...
false
true
public String toHTML() { StringBuffer text = new StringBuffer(); text.append("<table id=\"toc\">\n<tr>\n<td>\n"); TableOfContentsEntry entry = null; int adjustedLevel = 0; int previousLevel = 0; Iterator tocIterator = this.entries.values().iterator(); while (tocIterator.hasNext()) { entry = (TableOfCo...
public String toHTML() { StringBuffer text = new StringBuffer(); text.append("<table id=\"toc\">\n<tr>\n<td>\n"); TableOfContentsEntry entry = null; int adjustedLevel = 0; int previousLevel = 0; Iterator tocIterator = this.entries.values().iterator(); while (tocIterator.hasNext()) { entry = (TableOfCo...
diff --git a/src/de/aidger/model/models/HourlyWage.java b/src/de/aidger/model/models/HourlyWage.java index cd59b5f8..6fe292f4 100644 --- a/src/de/aidger/model/models/HourlyWage.java +++ b/src/de/aidger/model/models/HourlyWage.java @@ -1,195 +1,197 @@ package de.aidger.model.models; import java.math.BigDecimal; i...
false
true
public boolean equals(Object o) { if (o instanceof HourlyWage) { HourlyWage h = (HourlyWage) o; return h.id == id && h.month == month && h.year == year && (qualification == null ? h.qualification == null ...
public boolean equals(Object o) { if (o instanceof HourlyWage) { HourlyWage h = (HourlyWage) o; /* ID is not used anymore because the database table itself doesn't contain one. */ return h.month == month && h.year == year ...
diff --git a/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/command/checkin/PerforceCheckInCommand.java b/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/command/checkin/PerforceCheckInCommand.java index f811298d....
true
true
static String createChangeListSpecification( PerforceScmProviderRepository repo, ScmFileSet files, String msg, String canonicalPath, String jobs ) { StringBuffer buf = new StringBuffer(); buf.append( "Change: new" ).append( NEWLINE ).append...
public static String createChangeListSpecification( PerforceScmProviderRepository repo, ScmFileSet files, String msg, String canonicalPath, String jobs ) { StringBuffer buf = new StringBuffer(); buf.append( "Change: new" ).append( NEWLINE )...
diff --git a/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/EclipseGeneratorApplication.java b/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/EclipseGeneratorApplication.java index b351b739e..5508df639 10...
true
true
private void initialize(EclipseInstallGeneratorInfoProvider provider) throws ProvisionException { if ("-source".equalsIgnoreCase(operation)) //$NON-NLS-1$ provider.initialize(new File(argument)); else if ("-inplace".equalsIgnoreCase(operation)) { //$NON-NLS-1$ provider.initialize(new File(argument)); init...
private void initialize(EclipseInstallGeneratorInfoProvider provider) throws ProvisionException { if ("-source".equalsIgnoreCase(operation)) //$NON-NLS-1$ provider.initialize(new File(argument)); else if ("-inplace".equalsIgnoreCase(operation)) { //$NON-NLS-1$ provider.initialize(new File(argument)); init...
diff --git a/src/org/apache/xml/security/utils/resolver/implementations/ResolverXPointer.java b/src/org/apache/xml/security/utils/resolver/implementations/ResolverXPointer.java index 292cee56..b0d2ece7 100644 --- a/src/org/apache/xml/security/utils/resolver/implementations/ResolverXPointer.java +++ b/src/org/apache/xml...
false
true
public XMLSignatureInput engineResolve(Attr uri, String BaseURI) throws ResourceResolverException { Node resultNode = null; Document doc = uri.getOwnerElement().getOwnerDocument(); // this must be done so that Xalan can catch ALL namespaces //XMLUtils.circumventBug2650(doc); ...
public XMLSignatureInput engineResolve(Attr uri, String BaseURI) throws ResourceResolverException { Node resultNode = null; Document doc = uri.getOwnerElement().getOwnerDocument(); // this must be done so that Xalan can catch ALL namespaces //XMLUtils.circumventBug2650(doc); ...
diff --git a/Android/Roger/src/com/bignerdranch/franklin/roger/RogerActivity.java b/Android/Roger/src/com/bignerdranch/franklin/roger/RogerActivity.java index 5bd1346..4c5b7f0 100644 --- a/Android/Roger/src/com/bignerdranch/franklin/roger/RogerActivity.java +++ b/Android/Roger/src/com/bignerdranch/franklin/roger/RogerA...
false
true
private void loadLayout(LayoutDescription description) { management.layoutDescription = description; if (description.getMinVersion() < Build.VERSION.SDK_INT) { Log.e(TAG, "invalid version of Android"); ErrorManager.show(getApplicationContext(), rootContainer, "This view requires A...
private void loadLayout(LayoutDescription description) { management.layoutDescription = description; if (description.getMinVersion() != 0 && description.getMinVersion() > Build.VERSION.SDK_INT) { Log.e(TAG, "invalid version of Android"); ErrorManager.show(getApplicationContext(), ...
diff --git a/src/share/classes/sun/misc/MIDletClassLoader.java b/src/share/classes/sun/misc/MIDletClassLoader.java index 237bafe8..ec775e6b 100644 --- a/src/share/classes/sun/misc/MIDletClassLoader.java +++ b/src/share/classes/sun/misc/MIDletClassLoader.java @@ -1,289 +1,296 @@ /* * @(#)MIDletClassLoader.java 1.11...
false
true
public synchronized Class loadClass(String classname, boolean resolve) throws ClassNotFoundException { Class resultClass; int i = classname.lastIndexOf('.'); if (i != -1) { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm...
public synchronized Class loadClass(String classname, boolean resolve) throws ClassNotFoundException { Class resultClass; Throwable err = null; int i = classname.lastIndexOf('.'); if (i != -1) { SecurityManager sm = System.getSecurityManager(); if (sm...
diff --git a/src/main/java/com/ghlh/strategy/backma10/BackMA10IntradayStrategy.java b/src/main/java/com/ghlh/strategy/backma10/BackMA10IntradayStrategy.java index af1ae3b..e9a1118 100644 --- a/src/main/java/com/ghlh/strategy/backma10/BackMA10IntradayStrategy.java +++ b/src/main/java/com/ghlh/strategy/backma10/BackMA10I...
true
true
public void processBuy(StockTradeIntradyMonitor monitor, StockQuotesBean sqb) { if (!Boolean .parseBoolean(monitor.getMonitorstockVO().getOnmonitoring())) { return; } List possibleSellList = monitor.getPossibleSellList(); if (possibleSellList.size() == 0) { List previousDailyInfo = StockdailyinfoDAO...
public void processBuy(StockTradeIntradyMonitor monitor, StockQuotesBean sqb) { if (!Boolean .parseBoolean(monitor.getMonitorstockVO().getOnmonitoring())) { return; } List possibleSellList = monitor.getPossibleSellList(); if (possibleSellList.size() == 0) { List previousDailyInfo = StockdailyinfoDAO...
diff --git a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/JavaHotCodeReplaceManager.java b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/JavaHotCodeReplaceManager.java index 10f8535c5..ce742c67e 100644 --- a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/JavaHotCode...
false
true
protected void attemptDropToFrame(JDIDebugTarget target, List replacedClassNames) throws DebugException { JDIThread[] threads= (JDIThread[])target.getThreads(); List dropFrames= new ArrayList(1); int numThreads= threads.length; for (int i = 0; i < numThreads; i++) { JDIThread thread= (JDIThread) threads[i];...
protected void attemptDropToFrame(JDIDebugTarget target, List replacedClassNames) throws DebugException { IThread[] threads= target.getThreads(); List dropFrames= new ArrayList(1); int numThreads= threads.length; for (int i = 0; i < numThreads; i++) { JDIThread thread= (JDIThread) threads[i]; if (thread....
diff --git a/BinarySearchTree.java b/BinarySearchTree.java index 416a169..b7a546a 100644 --- a/BinarySearchTree.java +++ b/BinarySearchTree.java @@ -1,263 +1,263 @@ /** * A generic binary search tree. * * This binary search tree class is the outer class to the real BST which is * implemented internally with n...
true
true
public V remove(K key) { // Find the node to remove, and it's parent BSTNode parent = null; BSTNode remove_node = root; while (remove_node != null && !remove_node.getKey().equals(key)) { parent = remove_node; if (key.compareTo(remove_node.getKey()) < 0) { remove_node = remove_node.getLeft(); }...
public V remove(K key) { // Find the node to remove, and it's parent BSTNode parent = null; BSTNode remove_node = root; while (remove_node != null && !remove_node.getKey().equals(key)) { parent = remove_node; if (key.compareTo(remove_node.getKey()) < 0) { remove_node = remove_node.getLeft(); }...
diff --git a/izpack-src/trunk/src/lib/com/izforge/izpack/util/OsConstraint.java b/izpack-src/trunk/src/lib/com/izforge/izpack/util/OsConstraint.java index 7518276f..c5ff8f85 100644 --- a/izpack-src/trunk/src/lib/com/izforge/izpack/util/OsConstraint.java +++ b/izpack-src/trunk/src/lib/com/izforge/izpack/util/OsConstrain...
true
true
public boolean matchCurrentSystem() { boolean match = true; String osName = System.getProperty("os.name").toLowerCase(); if ((arch != null) && (arch.length() != 0)) { match = System.getProperty("os.arch").toLowerCase().equals(arch); } if (match && (version != null) && (version.length(...
public boolean matchCurrentSystem() { boolean match = true; String osName = System.getProperty("os.name").toLowerCase(); if ((arch != null) && (arch.length() != 0)) { match = System.getProperty("os.arch").toLowerCase().equals(arch); } if (match && (version != null) && (version.length(...
diff --git a/framework/src/play/Logger.java b/framework/src/play/Logger.java index 3c17c910..83632101 100644 --- a/framework/src/play/Logger.java +++ b/framework/src/play/Logger.java @@ -1,697 +1,697 @@ package play; import java.io.PrintWriter; import java.io.StringWriter; import java.net.URL; import java.text.M...
true
true
static boolean niceThrowable(org.apache.log4j.Level level, Throwable e, String message, Object... args) { if (e instanceof Exception) { Throwable toClean = e; for (int i = 0; i < 5; i++) { // Clean stack trace List<StackTraceElement> cleanTrace = new ...
static boolean niceThrowable(org.apache.log4j.Level level, Throwable e, String message, Object... args) { if (e instanceof Exception) { Throwable toClean = e; for (int i = 0; i < 5; i++) { // Clean stack trace List<StackTraceElement> cleanTrace = new ...
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/client/Request.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/client/Request.java index 2cb284269..467937dc4 100644 --- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/cli...
true
true
protected IStatus executeRequest(Session session, ICommandOutputListener listener, IProgressMonitor monitor) throws CVSException { // send request session.sendRequest(getRequestId()); // This number can be tweaked if the monitor is judged to move too // quickly or too slowly. After some experimentation this...
protected IStatus executeRequest(Session session, ICommandOutputListener listener, IProgressMonitor monitor) throws CVSException { // send request session.sendRequest(getRequestId()); // This number can be tweaked if the monitor is judged to move too // quickly or too slowly. After some experimentation this...
diff --git a/src/main/java/com/laytonsmith/core/functions/ArrayHandling.java b/src/main/java/com/laytonsmith/core/functions/ArrayHandling.java index 234e3c58..eb7f2e37 100644 --- a/src/main/java/com/laytonsmith/core/functions/ArrayHandling.java +++ b/src/main/java/com/laytonsmith/core/functions/ArrayHandling.java @@ -1...
true
true
public Construct exec(Target t, Environment env, Construct... args) throws CancelCommandException, ConfigRuntimeException { Construct index = new CSlice(0, -1, t); Construct defaultConstruct = null; if (args.length >= 2) { index = args[1]; } if (args.length >= 3) { defaultConstruct = args[2]; ...
public Construct exec(Target t, Environment env, Construct... args) throws CancelCommandException, ConfigRuntimeException { Construct index = new CSlice(0, -1, t); Construct defaultConstruct = null; if (args.length >= 2) { index = args[1]; } if (args.length >= 3) { defaultConstruct = args[2]; ...
diff --git a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/AddResearchDataToPublicationGenerator.java b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/AddResearchDataToPublicationGenerator.java index bbd7749..b0db03d 100644 --- a/src/edu/cornell/mannlib/vitro...
true
true
public EditConfigurationVTwo getEditConfiguration(VitroRequest vreq, HttpSession session) { EditConfigurationVTwo editConfiguration = new EditConfigurationVTwo(); //Creating an instance of SparqlEvaluateVTwo so that we can run queries //on our optional inferred statemen...
public EditConfigurationVTwo getEditConfiguration(VitroRequest vreq, HttpSession session) { EditConfigurationVTwo editConfiguration = new EditConfigurationVTwo(); //Creating an instance of SparqlEvaluateVTwo so that we can run queries //on our optional inferred statemen...
diff --git a/src/edu/berkeley/gamesman/game/Connections.java b/src/edu/berkeley/gamesman/game/Connections.java index 64bbc868..ca13a559 100644 --- a/src/edu/berkeley/gamesman/game/Connections.java +++ b/src/edu/berkeley/gamesman/game/Connections.java @@ -1,190 +1,190 @@ package edu.berkeley.gamesman.game; import ed...
true
true
public void initialize(Configuration conf) { super.initialize(conf); boardSide = conf.getInteger("gamesman.game.sideLength", 4); boardSize = boardSide * boardSide + (boardSide - 1) * (boardSide - 1); xPoints = new Point[boardSide + 1][boardSide]; // Bottom to top; Left to right oPoints = new Point[boardSid...
public void initialize(Configuration conf) { super.initialize(conf); boardSide = conf.getInteger("gamesman.game.side", 4); boardSize = boardSide * boardSide + (boardSide - 1) * (boardSide - 1); xPoints = new Point[boardSide + 1][boardSide]; // Bottom to top; Left to right oPoints = new Point[boardSide + 1]...
diff --git a/audiobox.fm-core/src/main/java/fm/audiobox/AudioBox.java b/audiobox.fm-core/src/main/java/fm/audiobox/AudioBox.java index 8602b33..45f379a 100644 --- a/audiobox.fm-core/src/main/java/fm/audiobox/AudioBox.java +++ b/audiobox.fm-core/src/main/java/fm/audiobox/AudioBox.java @@ -1,675 +1,675 @@ /***********...
true
true
private void buildClient() { // this.mAudioBoxRoute = new HttpRoute(new HttpHost( HOST, Integer.parseInt(PORT) ) ); SchemeRegistry schemeRegistry = new SchemeRegistry(); schemeRegistry.register( new Scheme("http", PlainSocketFactory.getSocketFactory(), Integer.parseInt( PORT ) )); scheme...
private void buildClient() { // this.mAudioBoxRoute = new HttpRoute(new HttpHost( HOST, Integer.parseInt(PORT) ) ); SchemeRegistry schemeRegistry = new SchemeRegistry(); schemeRegistry.register( new Scheme("http", PlainSocketFactory.getSocketFactory(), Integer.parseInt( PORT ) )); scheme...
diff --git a/src/com/android/browser/AddBookmarkPage.java b/src/com/android/browser/AddBookmarkPage.java index 7878762a..71bf481b 100644 --- a/src/com/android/browser/AddBookmarkPage.java +++ b/src/com/android/browser/AddBookmarkPage.java @@ -1,183 +1,183 @@ /* * Copyright (C) 2006 The Android Open Source Project ...
true
true
boolean save() { String title = mTitle.getText().toString().trim(); String unfilteredUrl = BrowserActivity.fixUrl(mAddress.getText().toString()); boolean emptyTitle = title.length() == 0; boolean emptyUrl = unfilteredUrl.trim().length() == 0; Resources r = ge...
boolean save() { String title = mTitle.getText().toString().trim(); String unfilteredUrl = BrowserActivity.fixUrl(mAddress.getText().toString()); boolean emptyTitle = title.length() == 0; boolean emptyUrl = unfilteredUrl.trim().length() == 0; Resources r = ge...
diff --git a/framework/test/integrationtest-java/test/test/SimpleTest.java b/framework/test/integrationtest-java/test/test/SimpleTest.java index 9b960a730..ea80c2232 100644 --- a/framework/test/integrationtest-java/test/test/SimpleTest.java +++ b/framework/test/integrationtest-java/test/test/SimpleTest.java @@ -1,313 +...
true
true
public void nestedContraints() { Form<JCustomer> customerForm = new Form<JCustomer>(JCustomer.class); // email constraints assertThat(customerForm.field("email").constraints().size()).as( "field(\"email\").constraints().size()").isEqualTo(2); assertThat(customerForm.f...
public void nestedConstraints() { Form<JCustomer> customerForm = new Form<JCustomer>(JCustomer.class); // email constraints assertThat(customerForm.field("email").constraints().size()).as( "field(\"email\").constraints().size()").isEqualTo(2); assertThat(customerForm....
diff --git a/src/de/unifr/acp/trafo/Main.java b/src/de/unifr/acp/trafo/Main.java index 8281438..a9515b9 100644 --- a/src/de/unifr/acp/trafo/Main.java +++ b/src/de/unifr/acp/trafo/Main.java @@ -1,51 +1,55 @@ package de.unifr.acp.trafo; import java.io.IOException; import java.io.InvalidClassException; import java...
true
true
public static void main(String[] args) throws NotFoundException, ClassNotFoundException, IOException, CannotCompileException { try { String className = args[0]; String outputDir = (args.length >= 2) ? args[1] : "bin"; ClassPool defaultPool = ClassPool.getDefault(); ...
public static void main(String[] args) throws NotFoundException, ClassNotFoundException, IOException, CannotCompileException { try { String className = args[0]; String outputDir = (args.length >= 2) ? args[1] : "bin"; ClassPool defaultPool = ClassPool.getDefault(); ...
diff --git a/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/InputFractionalValueTest_JBIDE4790.java b/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/InputFractionalValueTest_JBIDE4790.java index 5254a669..58aceddb 100644 --- a/tests/org.jboss.tools.jst.css.test/src/...
false
true
public void testInputFractionalValue() throws CoreException { IFile pageFile = getComponentPath(TEST_PAGE_NAME, getProjectName()); assertNotNull(pageFile); StructuredTextEditor editor = (StructuredTextEditor) openEditor( pageFile, CSS_EDITOR_ID); assertNotNull(editor); CSSEditorView view = (CSSEdito...
public void testInputFractionalValue() throws CoreException { IFile pageFile = getComponentPath(TEST_PAGE_NAME, getProjectName()); assertNotNull(pageFile); StructuredTextEditor editor = (StructuredTextEditor) openEditor( pageFile, CSS_EDITOR_ID); assertNotNull(editor); CSSEditorView view = (CSSEdito...
diff --git a/InputFileParser.java b/InputFileParser.java index 9b2838f..85a21eb 100644 --- a/InputFileParser.java +++ b/InputFileParser.java @@ -1,66 +1,66 @@ import java.io.*; import java.util.ArrayList; public class InputFileParser { private static final boolean INPUT_DEBUG = true; public static ArrayList<...
false
true
private static Process parseInputLine(String line) { debugPrint("Got line " + line); String[] lineParts = line.split("\\s"); debugPrintln(" (" + lineParts.length + ")"); //Need at least 4 items: pid, mem, and an entry/exit pair //Also, must be an even number of items (pairs of times only) if (lineParts.le...
private static Process parseInputLine(String line) { debugPrint("Got line " + line); String[] lineParts = line.split("\\s"); debugPrintln(" (" + lineParts.length + ")"); //Need at least 4 items: pid, mem, and an entry/exit pair //Also, must be an even number of items (pairs of times only) if (lineParts.le...
diff --git a/src/org/oscim/theme/renderinstruction/Line.java b/src/org/oscim/theme/renderinstruction/Line.java index e814e3b2..a8837abf 100644 --- a/src/org/oscim/theme/renderinstruction/Line.java +++ b/src/org/oscim/theme/renderinstruction/Line.java @@ -1,216 +1,216 @@ /* * Copyright 2010, 2011, 2012 mapsforge.org ...
true
true
public static Line create(Line line, String elementName, Attributes attributes, int level, boolean isOutline) { // Style name String style = null; // Bitmap //String src = null; float width = 0; Cap cap = Cap.ROUND; // Extras int fade = -1; boolean fixed = false; float blur = 0; float min =...
public static Line create(Line line, String elementName, Attributes attributes, int level, boolean isOutline) { // Style name String style = null; // Bitmap //String src = null; float width = 0; Cap cap = Cap.ROUND; // Extras int fade = -1; boolean fixed = false; float blur = 0; float min =...
diff --git a/src/minecraft/biomesoplenty/worldgen/WorldGenQuicksand.java b/src/minecraft/biomesoplenty/worldgen/WorldGenQuicksand.java index e06579b07..a419eb1b4 100644 --- a/src/minecraft/biomesoplenty/worldgen/WorldGenQuicksand.java +++ b/src/minecraft/biomesoplenty/worldgen/WorldGenQuicksand.java @@ -1,79 +1,79 @@ ...
true
true
public boolean generate(World par1World, Random par2Random, int par3, int par4, int par5) { float var6 = par2Random.nextFloat() * (float)Math.PI; double var7 = par3 + 8 + MathHelper.sin(var6) * numberOfBlocks / 8.0F; double var9 = par3 + 8 - MathHelper.sin(var6) * numberOfBlocks / 8.0F; double var11 = par5 + ...
public boolean generate(World par1World, Random par2Random, int par3, int par4, int par5) { float var6 = par2Random.nextFloat() * (float)Math.PI; double var7 = par3 + 8 + MathHelper.sin(var6) * numberOfBlocks / 8.0F; double var9 = par3 + 8 - MathHelper.sin(var6) * numberOfBlocks / 8.0F; double var11 = par5 + ...
diff --git a/src/main/java/com/tysanclan/site/projectewok/TysanApplication.java b/src/main/java/com/tysanclan/site/projectewok/TysanApplication.java index ed00cb8..47d01a9 100644 --- a/src/main/java/com/tysanclan/site/projectewok/TysanApplication.java +++ b/src/main/java/com/tysanclan/site/projectewok/TysanApplication....
true
true
private void mountBookmarkablePages() { mountPage("/news", NewsPage.class); mountPage("/charter", CharterPage.class); mountPage("/about", AboutPage.class); mountPage("/history", HistoryPage.class); mountPage("/member/${userid}", MemberPage.class); mountPage("/members", RosterPage.class); mountPage("/reg...
private void mountBookmarkablePages() { mountPage("/news", NewsPage.class); mountPage("/charter", CharterPage.class); mountPage("/about", AboutPage.class); mountPage("/history", HistoryPage.class); mountPage("/member/${userid}", MemberPage.class); mountPage("/members", RosterPage.class); mountPage("/reg...
diff --git a/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectViewAction.java b/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectViewAction.java index 1e0c66871..a03e042c9 100644 --- a/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectViewA...
true
true
public String execute() throws ContinuumException { // determine if we should obtain ProjectGroup details if ( projectGroupId > 0 ) projectGroup = getContinuum().getProjectGroup( projectGroupId ); else project = getContinuum().getProjectWithAllDetails( pro...
public String execute() throws ContinuumException { project = getContinuum().getProjectWithAllDetails( projectId ); return SUCCESS; }
diff --git a/helloworld-jms/src/main/java/org/jboss/as/quickstarts/jms/HelloWorldJMSClient.java b/helloworld-jms/src/main/java/org/jboss/as/quickstarts/jms/HelloWorldJMSClient.java index d3b8752a..4a6e1218 100644 --- a/helloworld-jms/src/main/java/org/jboss/as/quickstarts/jms/HelloWorldJMSClient.java +++ b/helloworld-j...
true
true
public static void main(String[] args) throws Exception { ConnectionFactory connectionFactory = null; Connection connection = null; Session session = null; MessageProducer producer = null; MessageConsumer consumer = null; Destination destination = null; TextM...
public static void main(String[] args) throws Exception { ConnectionFactory connectionFactory = null; Connection connection = null; Session session = null; MessageProducer producer = null; MessageConsumer consumer = null; Destination destination = null; TextM...
diff --git a/core/src/main/java/woko/actions/WokoFormatterFactory.java b/core/src/main/java/woko/actions/WokoFormatterFactory.java index 5e590e4c..b86dbd52 100644 --- a/core/src/main/java/woko/actions/WokoFormatterFactory.java +++ b/core/src/main/java/woko/actions/WokoFormatterFactory.java @@ -1,38 +1,38 @@ package wo...
true
true
public Formatter<?> getFormatter(Class<?> clazz, Locale locale, String formatType, String formatPattern) { if (woko!=null) { ObjectStore store = woko.getObjectStore(); List<Class<?>> mappedClasses = store.getMappedClasses(); for (Class<?> mappedClass : mappedClasses) { ...
public Formatter<?> getFormatter(Class<?> clazz, Locale locale, String formatType, String formatPattern) { if (woko!=null) { ObjectStore store = woko.getObjectStore(); List<Class<?>> mappedClasses = store.getMappedClasses(); for (Class<?> mappedClass : mappedClasses) { ...
diff --git a/src/image/processing/experimental/HistogramNormalization.java b/src/image/processing/experimental/HistogramNormalization.java index 4ccf8af..af22d62 100644 --- a/src/image/processing/experimental/HistogramNormalization.java +++ b/src/image/processing/experimental/HistogramNormalization.java @@ -1,156 +1,15...
true
true
public void process() { if (sourceImage == null) { throw new RuntimeException("Source image undefined!"); } // Для нормализации нам понадобятся интенсивности точек Grayscale grayscale = new Grayscale(sourceImage); grayscale.process(); BufferedImage intensityImage = grayscale.getProcessedIm...
public void process() { if (sourceImage == null) { throw new RuntimeException("Source image undefined!"); } // Для нормализации нам понадобятся интенсивности точек Grayscale grayscale = new Grayscale(sourceImage); grayscale.process(); BufferedImage intensityImage = grayscale.getProcessedIm...
diff --git a/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui/org/eclipse/jst/j2ee/internal/ui/J2EEModuleDependenciesPropertyPage.java b/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui/org/eclipse/jst/j2ee/internal/ui/J2EEModuleDependenciesPropertyPage.java index ea6009650..4b57ea2b0 100644 --- a/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui...
true
true
protected boolean saveReferenceChanges() { boolean subResult = super.saveReferenceChanges(); if(!subResult){ return subResult; } Map <IPath, IClasspathEntry> modified = new HashMap <IPath, IClasspathEntry>(); Map <IPath, IClasspathEntry> originalMap = new HashMap <IPath, IClasspathEntry>(); for(IClas...
protected boolean saveReferenceChanges() { boolean subResult = super.saveReferenceChanges(); if(!subResult){ return subResult; } Map <IPath, IClasspathEntry> modified = new HashMap <IPath, IClasspathEntry>(); Map <IPath, IClasspathEntry> originalMap = new HashMap <IPath, IClasspathEntry>(); for(IClas...
diff --git a/src/main/java/org/monstercraft/support/plugin/managers/SettingsManager.java b/src/main/java/org/monstercraft/support/plugin/managers/SettingsManager.java index 020b71b..3c2a472 100644 --- a/src/main/java/org/monstercraft/support/plugin/managers/SettingsManager.java +++ b/src/main/java/org/monstercraft/supp...
true
true
private void loadTicketsConfig() { File TICKETS_FILE = new File(SETTINGS_PATH, "Tickets.dat"); if (!TICKETS_FILE.exists()) { return; } List<String> tickets = new ArrayList<String>(); FileConfiguration config = new YamlConfiguration(); try { config.load(TICKETS_FILE); } catch (Exception e) { Conf...
private void loadTicketsConfig() { File TICKETS_FILE = new File(SETTINGS_PATH, "Tickets.dat"); if (!TICKETS_FILE.exists()) { return; } List<String> tickets = new ArrayList<String>(); FileConfiguration config = new YamlConfiguration(); try { config.load(TICKETS_FILE); } catch (Exception e) { Conf...
diff --git a/src/main/java/hudson/plugins/analysis/core/BuildHistory.java b/src/main/java/hudson/plugins/analysis/core/BuildHistory.java index f091f70..b0f3286 100644 --- a/src/main/java/hudson/plugins/analysis/core/BuildHistory.java +++ b/src/main/java/hudson/plugins/analysis/core/BuildHistory.java @@ -1,142 +1,142 @@...
true
true
private ResultAction<? extends BuildResult> getReferenceAction() { ResultAction<? extends BuildResult> currentAction = baseline.getAction(type); if (currentAction.hasReferenceAction()) { return currentAction.getReferenceAction(); } else { return getPreviousAct...
private ResultAction<? extends BuildResult> getReferenceAction() { ResultAction<? extends BuildResult> action = baseline.getAction(type); if (action != null && action.hasReferenceAction()) { return action.getReferenceAction(); } else { return getPreviousAction...
diff --git a/waterken/remote/src/org/waterken/remote/http/Pipeline.java b/waterken/remote/src/org/waterken/remote/http/Pipeline.java index f73d2914..25464531 100755 --- a/waterken/remote/src/org/waterken/remote/http/Pipeline.java +++ b/waterken/remote/src/org/waterken/remote/http/Pipeline.java @@ -1,240 +1,240 @@ // C...
true
true
static private Effect restart(final Vat vat, final String peer, final int max, final boolean skipTo, final int mid) { // Create a transaction effect that will schedule a new extend // transaction that actually puts the messages on the wire. return new Effect() { pu...
static private Effect restart(final Vat vat, final String peer, final int max, final boolean skipTo, final int mid) { // Create a transaction effect that will schedule a new extend // transaction that actually puts the messages on the wire. return new Effect() { pu...
diff --git a/coastal-hazards-ui/src/main/java/gov/usgs/cida/utilities/communication/UploadHandlerServlet.java b/coastal-hazards-ui/src/main/java/gov/usgs/cida/utilities/communication/UploadHandlerServlet.java index a52e6d410..627d03595 100644 --- a/coastal-hazards-ui/src/main/java/gov/usgs/cida/utilities/communication/...
false
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { int maxFileSize = FILE_UPLOAD_MAX_SIZE_DEFAULT; int fileSize = Integer.parseInt(request.getHeader("Content-Length")); String fileParamKey = props.getProperty(FILE_UPLOAD_FIL...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { int maxFileSize = FILE_UPLOAD_MAX_SIZE_DEFAULT; int fileSize = Integer.parseInt(request.getHeader("Content-Length")); String fileParamKey = props.getProperty(FILE_UPLOAD_FIL...
diff --git a/src/main/java/org/apache/hadoop/hbase/master/LoadBalancer.java b/src/main/java/org/apache/hadoop/hbase/master/LoadBalancer.java index 901be8bb4..cd83b054f 100644 --- a/src/main/java/org/apache/hadoop/hbase/master/LoadBalancer.java +++ b/src/main/java/org/apache/hadoop/hbase/master/LoadBalancer.java @@ -1,6...
true
true
public List<RegionPlan> balanceCluster( Map<HServerInfo,List<HRegionInfo>> clusterState) { long startTime = System.currentTimeMillis(); // Make a map sorted by load and count regions TreeMap<HServerInfo,List<HRegionInfo>> serversByLoad = new TreeMap<HServerInfo,List<HRegionInfo>>( n...
public List<RegionPlan> balanceCluster( Map<HServerInfo,List<HRegionInfo>> clusterState) { long startTime = System.currentTimeMillis(); // Make a map sorted by load and count regions TreeMap<HServerInfo,List<HRegionInfo>> serversByLoad = new TreeMap<HServerInfo,List<HRegionInfo>>( n...
diff --git a/src/java/org/infoglue/cms/util/SetCharacterEncodingFilter.java b/src/java/org/infoglue/cms/util/SetCharacterEncodingFilter.java index fd7fb2ed5..5db323459 100755 --- a/src/java/org/infoglue/cms/util/SetCharacterEncodingFilter.java +++ b/src/java/org/infoglue/cms/util/SetCharacterEncodingFilter.java @@ -1,1...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { // Conditionally select and set the character encoding to be used String referer = ((HttpServletRequest)request).getHeader("referer"); if(referer != null && r...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { // Conditionally select and set the character encoding to be used String referer = ((HttpServletRequest)request).getHeader("referer"); if(referer != null && r...
diff --git a/src/com/guntherdw/bukkit/tweakcraft/Commands/General/CommandLc.java b/src/com/guntherdw/bukkit/tweakcraft/Commands/General/CommandLc.java index e5cf286..c5783f2 100644 --- a/src/com/guntherdw/bukkit/tweakcraft/Commands/General/CommandLc.java +++ b/src/com/guntherdw/bukkit/tweakcraft/Commands/General/Comman...
true
true
public boolean executeCommand(CommandSender sender, String command, String[] args, TweakcraftUtils plugin) throws PermissionsException, CommandSenderException, CommandUsageException, CommandException { if(sender instanceof Player) { if(!plugin.check((Player)sender, "localchat...
public boolean executeCommand(CommandSender sender, String command, String[] args, TweakcraftUtils plugin) throws PermissionsException, CommandSenderException, CommandUsageException, CommandException { if(sender instanceof Player) { if(!plugin.check((Player)sender, "localchat...