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/gerrit-server/src/main/java/com/google/gerrit/server/ChangeUtil.java b/gerrit-server/src/main/java/com/google/gerrit/server/ChangeUtil.java
index 54bfe60d7..132a4997a 100644
--- a/gerrit-server/src/main/java/com/google/gerrit/server/ChangeUtil.java
+++ b/gerrit-server/src/main/java/com/google/gerrit/server... | false | true | public static Change.Id editCommitMessage(final PatchSet.Id patchSetId,
final IdentifiedUser user, final String message, final ReviewDb db,
final ChangeHooks hooks, GitRepositoryManager gitManager,
final PatchSetInfoFactory patchSetInfoFactory,
final GitReferenceUpdated replication, PersonIden... | public static Change.Id editCommitMessage(final PatchSet.Id patchSetId,
final IdentifiedUser user, final String message, final ReviewDb db,
final ChangeHooks hooks, GitRepositoryManager gitManager,
final PatchSetInfoFactory patchSetInfoFactory,
final GitReferenceUpdated replication, PersonIden... |
diff --git a/src/edu/jhu/nlp/wikipedia/WikiTextParser.java b/src/edu/jhu/nlp/wikipedia/WikiTextParser.java
index 7f4c762..d9716fe 100644
--- a/src/edu/jhu/nlp/wikipedia/WikiTextParser.java
+++ b/src/edu/jhu/nlp/wikipedia/WikiTextParser.java
@@ -1,177 +1,180 @@
package edu.jhu.nlp.wikipedia;
import java.util.Vector;... | true | true | private InfoBox parseInfoBox() {
String INFOBOX_CONST_STR = "{{Infobox";
int startPos = wikiText.indexOf(INFOBOX_CONST_STR);
if(startPos < 0) return null;
int bracketCount = 2;
int endPos = startPos + INFOBOX_CONST_STR.length();
for(; endPos < wikiText.length(); endPos++) {
switch(wikiTe... | private InfoBox parseInfoBox() {
String INFOBOX_CONST_STR = "{{Infobox";
int startPos = wikiText.indexOf(INFOBOX_CONST_STR);
if(startPos < 0) return null;
int bracketCount = 2;
int endPos = startPos + INFOBOX_CONST_STR.length();
for(; endPos < wikiText.length(); endPos++) {
switch(wikiTe... |
diff --git a/src/test/java/org/jboss/threads/ThreadPoolTestCase.java b/src/test/java/org/jboss/threads/ThreadPoolTestCase.java
index a977013..b29324d 100644
--- a/src/test/java/org/jboss/threads/ThreadPoolTestCase.java
+++ b/src/test/java/org/jboss/threads/ThreadPoolTestCase.java
@@ -1,214 +1,217 @@
/*
* JBoss, Home... | false | true | public void testBlocking() throws InterruptedException {
final int queueSize = 20;
final int coreThreads = 5;
final int extraThreads = 5;
final int cnt = queueSize + coreThreads + extraThreads;
final CountDownLatch taskUnfreezer = new CountDownLatch(1);
final CountDow... | public void testBlocking() throws InterruptedException {
final int queueSize = 20;
final int coreThreads = 5;
final int extraThreads = 5;
final int cnt = queueSize + coreThreads + extraThreads;
final CountDownLatch taskUnfreezer = new CountDownLatch(1);
final CountDow... |
diff --git a/source/de/anomic/crawler/robotsParser.java b/source/de/anomic/crawler/robotsParser.java
index bb87e01f2..97b9648f0 100644
--- a/source/de/anomic/crawler/robotsParser.java
+++ b/source/de/anomic/crawler/robotsParser.java
@@ -1,224 +1,224 @@
//robotsParser.java
//-------------------------------------
//p... | true | true | private void parse(final BufferedReader reader) {
final ArrayList<String> deny4AllAgents = new ArrayList<String>();
final ArrayList<String> deny4YaCyAgent = new ArrayList<String>();
final ArrayList<String> allow4AllAgents = new ArrayList<String>();
final ArrayList<String> allow4YaCyA... | private void parse(final BufferedReader reader) {
final ArrayList<String> deny4AllAgents = new ArrayList<String>();
final ArrayList<String> deny4YaCyAgent = new ArrayList<String>();
final ArrayList<String> allow4AllAgents = new ArrayList<String>();
final ArrayList<String> allow4YaCyA... |
diff --git a/org.eclipse.mylyn.context.core/src/org/eclipse/mylyn/internal/context/core/CompositeInteractionContext.java b/org.eclipse.mylyn.context.core/src/org/eclipse/mylyn/internal/context/core/CompositeInteractionContext.java
index f12bdf8a9..a881e074a 100644
--- a/org.eclipse.mylyn.context.core/src/org/eclipse/my... | true | true | public IInteractionElement get(String handle) {
if (contexts.values().size() == 0) {
return null;
}
List<InteractionContextElement> nodes = new ArrayList<InteractionContextElement>();
for (InteractionContext taskscape : contexts.values()) {
InteractionContextElement node = (InteractionContextElement) tas... | public IInteractionElement get(String handle) {
if (handle == null || contexts.values().size() == 0) {
return null;
}
List<InteractionContextElement> nodes = new ArrayList<InteractionContextElement>();
for (InteractionContext taskscape : contexts.values()) {
InteractionContextElement node = (InteractionC... |
diff --git a/dashboard/src/main/java/com/appnomic/appsone/dashboard/action/config/ConfigUtilityAction.java b/dashboard/src/main/java/com/appnomic/appsone/dashboard/action/config/ConfigUtilityAction.java
index 81d09f9..82b2e0f 100644
--- a/dashboard/src/main/java/com/appnomic/appsone/dashboard/action/config/ConfigUtilit... | false | true | private PageListVO[] getDummyList() {
List<PageListVO> pageList = new ArrayList<PageListVO>();
PageListVO pageListVO = new PageListVO();
pageListVO.setName("Alerts Grid");
pageListVO.setId(UUID.randomUUID().toString());
pageListVO.setType(ActionConstants.ACCTYPE.GRID.name());
pageList.add(pageListVO);
... | private PageListVO[] getDummyList() {
List<PageListVO> pageList = new ArrayList<PageListVO>();
PageListVO pageListVO = new PageListVO();
pageListVO.setName("Alerts Grid");
pageListVO.setId(UUID.randomUUID().toString());
pageListVO.setType(ActionConstants.ACCTYPE.GRID.name());
pageList.add(pageListVO);
... |
diff --git a/src/org/goldclone/converter/areaConverter.java b/src/org/goldclone/converter/areaConverter.java
index fc44e52..970176e 100644
--- a/src/org/goldclone/converter/areaConverter.java
+++ b/src/org/goldclone/converter/areaConverter.java
@@ -1,52 +1,52 @@
package org.goldclone.converter;
public class areaCon... | false | true | public double convert(double input, int from, int to) {
double sqMMeter;
if (from == 0) {// Squaremillimeters
sqMMeter = input;
} else if (from == 1) { // Squarecentimeters
sqMMeter = input * 100;
} else if (from == 2) {// Squarefeet
sqMMeter = input * 92903;
} else if (from == 3) { // Squareinches... | public double convert(double input, int from, int to) {
double sqMMeter;
if (from == 0) {// Squaremillimeters
sqMMeter = input;
} else if (from == 1) { // Squarecentimeters
sqMMeter = input * 100;
} else if (from == 2) {// Squarefeet
sqMMeter = input * 92903;
} else if (from == 3) { // Squareinches... |
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/CompositeEditorProvider.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/CompositeEditorProvider.java
index 95348589be..0fd18fb410 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/CompositeEditorProvider.j... | true | true | public static EditorProvider compose(
@Nonnull Collection<? extends EditorProvider> providers) {
checkNotNull(providers);
switch (providers.size()) {
case 0:
return EMPTY_PROVIDER;
case 1:
return providers.iterator().next();
default:
... | public static EditorProvider compose(
@Nonnull Collection<? extends EditorProvider> providers) {
checkNotNull(providers);
switch (providers.size()) {
case 0:
return EMPTY_PROVIDER;
case 1:
return providers.iterator().next();
... |
diff --git a/src/com/zand/areaguard/Area.java b/src/com/zand/areaguard/Area.java
index 84dbb60..c555b22 100644
--- a/src/com/zand/areaguard/Area.java
+++ b/src/com/zand/areaguard/Area.java
@@ -1,148 +1,148 @@
package com.zand.areaguard;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSe... | false | true | public boolean playerCan(String player, String name, boolean checkAllow) {
if (checkAllow || listHas("owners", player)) return true;
if (listHas("restrict", name)) {
if (checkAllow || listHas("allow", player)) return true;
if (listHas(name, player)) return true;
return false;
}
if (listHas("no-allow",... | public boolean playerCan(String player, String name, boolean checkAllow) {
if (checkAllow && listHas("owners", player)) return true;
if (listHas("restrict", name)) {
if (checkAllow && listHas("allow", player)) return true;
if (listHas(name, player)) return true;
return false;
}
if (listHas("no-allow",... |
diff --git a/xwiki-platform-editor-tool-autocomplete/xwiki-platform-editor-tool-autocomplete-api/src/main/java/org/xwiki/editor/tool/autocomplete/internal/AutoCompletionResource.java b/xwiki-platform-editor-tool-autocomplete/xwiki-platform-editor-tool-autocomplete-api/src/main/java/org/xwiki/editor/tool/autocomplete/in... | true | true | private Hints getHints(String content, int offset)
{
Hints results = new Hints();
char[] chars = content.toCharArray();
VelocityContext velocityContext = this.velocityManager.getVelocityContext();
// Find the dollar sign before the current position
int dollarPos = String... | private Hints getHints(String content, int offset)
{
Hints results = new Hints();
char[] chars = content.toCharArray();
VelocityContext velocityContext = this.velocityManager.getVelocityContext();
// Find the dollar sign before the current position
int dollarPos = String... |
diff --git a/src/net/aufdemrand/denizen/CommandExecuter.java b/src/net/aufdemrand/denizen/CommandExecuter.java
index ab709733f..fc99ebf4b 100644
--- a/src/net/aufdemrand/denizen/CommandExecuter.java
+++ b/src/net/aufdemrand/denizen/CommandExecuter.java
@@ -1,444 +1,444 @@
package net.aufdemrand.denizen;
import java... | true | true | public void execute(Player thePlayer, String theStep) {
// Syntax of theStep
//
plugin = (Denizen) Bukkit.getPluginManager().getPlugin("Denizen");
/* Break down information from theStep for use */
String[] executeArgs = theStep.split(";");
NPC theDenizen = null;
if (!executeArgs[0].equalsIgnoreCase... | public void execute(Player thePlayer, String theStep) {
// Syntax of theStep
//
plugin = (Denizen) Bukkit.getPluginManager().getPlugin("Denizen");
/* Break down information from theStep for use */
String[] executeArgs = theStep.split(";");
NPC theDenizen = null;
if (!executeArgs[0].equalsIgnoreCase... |
diff --git a/src/org/mozilla/javascript/Synchronizer.java b/src/org/mozilla/javascript/Synchronizer.java
index cef0fb5c..f2fca522 100644
--- a/src/org/mozilla/javascript/Synchronizer.java
+++ b/src/org/mozilla/javascript/Synchronizer.java
@@ -1,81 +1,81 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi... | true | true | public Object call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
{
synchronized(thisObj) {
return ((Function)obj).call(cx,scope,thisObj,args);
}
}
| public Object call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
{
synchronized(thisObj instanceof Wrapper ? ((Wrapper)thisObj).unwrap() : thisObj) {
return ((Function)obj).call(cx,scope,thisObj,args);
}
}
|
diff --git a/src/test/java/fr/jamgotchian/abcd/core/controlflow/RPSTTest.java b/src/test/java/fr/jamgotchian/abcd/core/controlflow/RPSTTest.java
index 3544106..98fbf08 100644
--- a/src/test/java/fr/jamgotchian/abcd/core/controlflow/RPSTTest.java
+++ b/src/test/java/fr/jamgotchian/abcd/core/controlflow/RPSTTest.java
@@ ... | true | true | public void testCase1() throws IOException {
BasicBlock a = new BasicBlockTestImpl("a");
BasicBlock b = new BasicBlockTestImpl("b");
BasicBlock c = new BasicBlockTestImpl("c");
BasicBlock d = new BasicBlockTestImpl("d");
BasicBlock e = new BasicBlockTestImpl("e");
Bas... | public void testCase1() throws IOException {
BasicBlock a = new BasicBlockTestImpl("a");
BasicBlock b = new BasicBlockTestImpl("b");
BasicBlock c = new BasicBlockTestImpl("c");
BasicBlock d = new BasicBlockTestImpl("d");
BasicBlock e = new BasicBlockTestImpl("e");
Bas... |
diff --git a/src/minecraft/biomesoplenty/world/ChunkProviderBOP.java b/src/minecraft/biomesoplenty/world/ChunkProviderBOP.java
index aa3ac934d..57bcea514 100644
--- a/src/minecraft/biomesoplenty/world/ChunkProviderBOP.java
+++ b/src/minecraft/biomesoplenty/world/ChunkProviderBOP.java
@@ -1,731 +1,731 @@
package biomes... | true | true | private double[] initializeNoiseField(double[] par1ArrayOfDouble, int par2, int par3, int par4, int par5, int par6, int par7)
{
ChunkProviderEvent.InitNoiseField event = new ChunkProviderEvent.InitNoiseField(this, par1ArrayOfDouble, par2, par3, par4, par5, par6, par7);
MinecraftForge.EVENT_BUS.post(event);
... | private double[] initializeNoiseField(double[] par1ArrayOfDouble, int par2, int par3, int par4, int par5, int par6, int par7)
{
ChunkProviderEvent.InitNoiseField event = new ChunkProviderEvent.InitNoiseField(this, par1ArrayOfDouble, par2, par3, par4, par5, par6, par7);
MinecraftForge.EVENT_BUS.post(event);
... |
diff --git a/src/com/sdc/util/DeclarationWorker.java b/src/com/sdc/util/DeclarationWorker.java
index d643724..0362a98 100644
--- a/src/com/sdc/util/DeclarationWorker.java
+++ b/src/com/sdc/util/DeclarationWorker.java
@@ -1,527 +1,528 @@
package com.sdc.util;
import com.sdc.abstractLanguage.AbstractMethod;
import o... | true | true | private static String convertJetFunctionRawType(final String type) {
final int prefixLength = "Function".length();
if (type.startsWith("Function") && Character.isDigit(type.charAt(prefixLength))) {
final int parametersCount = Integer.valueOf(type.substring(prefixLength, type.indexOf("<"... | private static String convertJetFunctionRawType(final String type) {
final int prefixLength = "Function".length();
if (type.startsWith("Function") && Character.isDigit(type.charAt(prefixLength))) {
final int parametersCount = Integer.valueOf(type.substring(prefixLength, type.indexOf("<"... |
diff --git a/src/main/java/org/spoutcraft/launcher/Logging/SystemConsoleListener.java b/src/main/java/org/spoutcraft/launcher/Logging/SystemConsoleListener.java
index 081738f..14e15e7 100644
--- a/src/main/java/org/spoutcraft/launcher/Logging/SystemConsoleListener.java
+++ b/src/main/java/org/spoutcraft/launcher/Loggin... | false | true | public void initialize() throws Exception {
LogManager logManager = LogManager.getLogManager();
logManager.reset();
new File(PlatformUtils.getWorkingDirectory() + "Logs").mkdirs();
Handler fileHandler = new FileHandler(PlatformUtils.getWorkingDirectory() + "Logs" + File.separator + "log", 10000, 5,... | public void initialize() throws Exception {
LogManager logManager = LogManager.getLogManager();
logManager.reset();
File logDir = new File(PlatformUtils.getWorkingDirectory() + File.separator + "Logs");
logDir.mkdirs();
Handler fileHandler = new FileHandler(new File(logDir, "spoutcraft_%g.log").... |
diff --git a/src/org/waveprotocol/wave/client/scroll/ScrollBuilder.java b/src/org/waveprotocol/wave/client/scroll/ScrollBuilder.java
index b99607ea..e18353d1 100644
--- a/src/org/waveprotocol/wave/client/scroll/ScrollBuilder.java
+++ b/src/org/waveprotocol/wave/client/scroll/ScrollBuilder.java
@@ -1,40 +1,40 @@
/**
... | true | true | public static SmartScroller<? super View> install(WavePanelImpl panel) {
ProxyScrollPanel scroller = ProxyScrollPanel.create(panel);
ScrollHandler.install(panel, scroller);
return SmartScroller.create(scroller);
}
| public static SmartScroller<View> install(WavePanelImpl panel) {
ProxyScrollPanel scroller = ProxyScrollPanel.create(panel);
ScrollHandler.install(panel, scroller);
return SmartScroller.create(scroller);
}
|
diff --git a/ngrinder-controller/src/main/java/org/ngrinder/agent/controller/AgentManagerController.java b/ngrinder-controller/src/main/java/org/ngrinder/agent/controller/AgentManagerController.java
index 6848b6b5..64499434 100644
--- a/ngrinder-controller/src/main/java/org/ngrinder/agent/controller/AgentManagerControl... | true | true | public String getAll(@RequestParam(value = "region", required = false) final String region, ModelMap model) {
List<AgentInfo> agents = agentManagerService.getAllVisibleAgentInfoFromDB();
model.addAttribute("agents", Collections2.filter(agents, new Predicate<AgentInfo>() {
@Override
public boolean apply(Agent... | public String getAll(@RequestParam(value = "region", required = false) final String region, ModelMap model) {
List<AgentInfo> agents = agentManagerService.getAllVisibleAgentInfoFromDB();
model.addAttribute("agents", Collections2.filter(agents, new Predicate<AgentInfo>() {
@Override
public boolean apply(Agent... |
diff --git a/src/de/fhb/polyencoder/Util.java b/src/de/fhb/polyencoder/Util.java
index 82e850c..d1a147e 100644
--- a/src/de/fhb/polyencoder/Util.java
+++ b/src/de/fhb/polyencoder/Util.java
@@ -1,93 +1,94 @@
package de.fhb.polyencoder;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import jav... | true | true | public static String readFile(String fileName) {
String loadingFailedOutput = "";
FileReader fr;
StringBuilder sb = new StringBuilder();
String line;
try {
fr = new FileReader(fileName);
BufferedReader br = new BufferedReader(fr);
while ((line = br.readLine()) != null) {
... | public static String readFile(String fileName) {
String loadingFailedOutput = "";
FileReader fr;
StringBuilder sb = new StringBuilder();
String line;
try {
fr = new FileReader(fileName);
BufferedReader br = new BufferedReader(fr);
while ((line = br.readLine()) != null) {
... |
diff --git a/src/main/java/com/forgenz/mobmanager/bounty/config/BountyWorldConfig.java b/src/main/java/com/forgenz/mobmanager/bounty/config/BountyWorldConfig.java
index 8c9ee12..3a5210c 100644
--- a/src/main/java/com/forgenz/mobmanager/bounty/config/BountyWorldConfig.java
+++ b/src/main/java/com/forgenz/mobmanager/boun... | true | true | public BountyWorldConfig(FileConfiguration cfg, String folder)
{
ConfigurationSection sect;
/* ################ UseWorldSettings ################ */
if (folder.length() != 0)
{
useWorldSettings = cfg.getBoolean("UseWorldSettings", false);
set(cfg, "UseWorldsettings", useWorldSettings);
}
else
{... | public BountyWorldConfig(FileConfiguration cfg, String folder)
{
ConfigurationSection sect;
/* ################ UseWorldSettings ################ */
if (folder.length() != 0)
{
useWorldSettings = cfg.getBoolean("UseWorldSettings", false);
set(cfg, "UseWorldSettings", useWorldSettings);
}
else
{... |
diff --git a/MonacaFramework/src/mobi/monaca/framework/GCMIntentService.java b/MonacaFramework/src/mobi/monaca/framework/GCMIntentService.java
index fbbfa9e..1c938b1 100644
--- a/MonacaFramework/src/mobi/monaca/framework/GCMIntentService.java
+++ b/MonacaFramework/src/mobi/monaca/framework/GCMIntentService.java
@@ -1,6... | true | true | protected void onMessage(Context arg0, Intent arg1) {
MyLog.d(TAG, "onMessage");
Bundle b = arg1.getExtras();
if (b == null) {
return;
}
String message = b.getString("message");
String pushProjectId = b.getString("push_project_id");
String extraJsonString = b.getString("extra_json");
GCMPushDataset ... | protected void onMessage(Context arg0, Intent arg1) {
MyLog.d(TAG, "onMessage");
Bundle b = arg1.getExtras();
if (b == null) {
return;
}
String message = b.getString("message");
String pushProjectId = b.getString("push_project_id");
String extraJsonString = b.getString("extra_json");
GCMPushDataset ... |
diff --git a/src/main/battlecode/engine/RobotRunnable.java b/src/main/battlecode/engine/RobotRunnable.java
index 7f8ed482..9fb40307 100644
--- a/src/main/battlecode/engine/RobotRunnable.java
+++ b/src/main/battlecode/engine/RobotRunnable.java
@@ -1,84 +1,86 @@
package battlecode.engine;
import java.lang.Runnable;
... | false | true | public void run() {
Constructor ctor;
Object o;
Runnable r;
try {
try {
ctor = myPlayerClass.getConstructor(Class.forName("battlecode.common.RobotController"));
} catch (Throwable t) {
ErrorReporter.report(t, "Check that the... | public void run() {
Constructor ctor;
Object o;
Runnable r;
try {
try {
Scheduler.endTurn();
ctor = myPlayerClass.getConstructor(Class.forName("battlecode.common.RobotController"));
} catch (Throwable t) {
if ((t instanc... |
diff --git a/src/com/github/Indiv0/BookDupe/ItemCraftListener.java b/src/com/github/Indiv0/BookDupe/ItemCraftListener.java
index c27c6dd..1dad890 100644
--- a/src/com/github/Indiv0/BookDupe/ItemCraftListener.java
+++ b/src/com/github/Indiv0/BookDupe/ItemCraftListener.java
@@ -1,159 +1,159 @@
package com.github.Indiv0.... | true | true | public void onItemCraft(CraftItemEvent event) {
// Get the crafting inventory (3x3 matrix) used to craft the item.
CraftingInventory craftingInventory = event.getInventory();
// Get the index of the first (and only) Material.WRITTEN_BOOK used in
// the recipe.
int writtenBoo... | public void onItemCraft(CraftItemEvent event) {
// Get the crafting inventory (3x3 matrix) used to craft the item.
CraftingInventory craftingInventory = event.getInventory();
// Get the index of the first (and only) Material.WRITTEN_BOOK used in
// the recipe.
int writtenBoo... |
diff --git a/src/Account_IO.java b/src/Account_IO.java
index 101bbbe..dad7865 100644
--- a/src/Account_IO.java
+++ b/src/Account_IO.java
@@ -1,88 +1,90 @@
import java.util.*;
import java.io.*;
/**
*
* @author Mudrekh Goderya, James Sanderlin
*
* The Account_IO class handles input and output of the curren... | false | true | public Account_IO()
{
File accountFile = new File("accounts.txt");
try
{
Scanner in = new Scanner(accountFile);
//Parse the accounts file
while(in.hasNext())
{
String name = in.nextLine();
//System.out.println(name);
int accountId = Integer.parseInt(in.nextLine());
//System.out.pr... | public Account_IO()
{
File accountFile = new File("accounts.txt");
try
{
Scanner in = new Scanner(accountFile);
//Parse the accounts file
while(in.hasNext())
{
String name = in.nextLine();
//System.out.println(name);
int accountId = Integer.parseInt(in.nextLine());
//System.out.pr... |
diff --git a/SeriesGuide/src/com/battlelancer/seriesguide/ui/ConnectTraktFinishedFragment.java b/SeriesGuide/src/com/battlelancer/seriesguide/ui/ConnectTraktFinishedFragment.java
index 2fef70121..45b3ff0b4 100644
--- a/SeriesGuide/src/com/battlelancer/seriesguide/ui/ConnectTraktFinishedFragment.java
+++ b/SeriesGuide/s... | true | true | public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
// library button
getView().findViewById(R.id.buttonUploadShows).setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
... | public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
// library button
getView().findViewById(R.id.buttonShowLibrary).setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
... |
diff --git a/grails/src/persistence/org/codehaus/groovy/grails/metaclass/DataBindingDynamicConstructor.java b/grails/src/persistence/org/codehaus/groovy/grails/metaclass/DataBindingDynamicConstructor.java
index ab53fe5a3..cb4162b25 100644
--- a/grails/src/persistence/org/codehaus/groovy/grails/metaclass/DataBindingDyna... | false | true | public Object invoke(Class clazz, Object[] args) {
Object map = args[0];
Object instance;
try {
instance = clazz.newInstance();
} catch (InstantiationException e1) {
throw new GrailsDomainException("Error instantiated class [" + clazz + "]: " + e1.getMessage(),e1);
} catch (IllegalAccessException e1) {... | public Object invoke(Class clazz, Object[] args) {
Object map = args[0];
Object instance;
try {
instance = clazz.newInstance();
} catch (InstantiationException e1) {
throw new GrailsDomainException("Error instantiated class [" + clazz + "]: " + e1.getMessage(),e1);
} catch (IllegalAccessException e1) {... |
diff --git a/wings2/src/java/org/wings/plaf/css/ProgressBarCG.java b/wings2/src/java/org/wings/plaf/css/ProgressBarCG.java
index 45cf4ac9..6e80f0ab 100644
--- a/wings2/src/java/org/wings/plaf/css/ProgressBarCG.java
+++ b/wings2/src/java/org/wings/plaf/css/ProgressBarCG.java
@@ -1,134 +1,144 @@
// DO NOT EDIT! Your cha... | false | true | public void writeContent(final Device device,
final SComponent _c)
throws IOException {
final SProgressBar component = (SProgressBar) _c;
//--- code from write-template.
String style = component.getStyle();
SDimension size = component.getPreferredSi... | public void writeContent(final Device device,
final SComponent _c)
throws IOException {
final SProgressBar component = (SProgressBar) _c;
//--- code from write-template.
String style = component.getStyle();
SDimension size = component.getPreferredSi... |
diff --git a/blocks/sublima-app/src/main/java/com/computas/sublima/app/index/FreetextTriples.java b/blocks/sublima-app/src/main/java/com/computas/sublima/app/index/FreetextTriples.java
index 6957c920..d251eb0a 100644
--- a/blocks/sublima-app/src/main/java/com/computas/sublima/app/index/FreetextTriples.java
+++ b/blocks... | true | true | public String getConcatenatedTextFromURI(String uri, String[] fieldsToIndex, String[] prefixes, String[] graphs) {
if (!uri.startsWith("<") && !uri.endsWith(">")) {
uri = "<" + uri + ">";
}
String query = gu.createSelectQueryToGetFields(uri, fieldsToIndex, prefixes, graphs);
String xml = (Stri... | public String getConcatenatedTextFromURI(String uri, String[] fieldsToIndex, String[] prefixes, String[] graphs) {
if (!uri.startsWith("<") && !uri.endsWith(">")) {
uri = "<" + uri + ">";
}
String query = gu.createSelectQueryToGetFields(uri, fieldsToIndex, prefixes, graphs);
String xml = (Stri... |
diff --git a/src/de/enough/glaze/style/definition/converter/background/LayerBackgroundConverter.java b/src/de/enough/glaze/style/definition/converter/background/LayerBackgroundConverter.java
index 29cceb6..e853711 100644
--- a/src/de/enough/glaze/style/definition/converter/background/LayerBackgroundConverter.java
+++ b... | false | true | public Object convert(Definition definition) throws CssSyntaxError {
if (!definition.hasProperties(this)) {
return null;
}
Property backgroundTypeProp = definition.getProperty("background-type");
Property backgroundsProp = definition
.getProperty("background-backgrounds");
Property backgroundMarginsP... | public Object convert(Definition definition) throws CssSyntaxError {
if (!definition.hasProperties(this)) {
return null;
}
Property backgroundTypeProp = definition.getProperty("background-type");
Property backgroundsProp = definition
.getProperty("background-backgrounds");
Property backgroundMarginsP... |
diff --git a/smali/src/test/java/LexerTest.java b/smali/src/test/java/LexerTest.java
index ed28280..5afc2e2 100644
--- a/smali/src/test/java/LexerTest.java
+++ b/smali/src/test/java/LexerTest.java
@@ -1,212 +1,212 @@
/*
* [The "BSD licence"]
* Copyright (c) 2010 Ben Gruver
* All rights reserved.
*
* Redistri... | true | true | public void runTest(String test, boolean discardHiddenTokens) {
String smaliFile = String.format("LexerTest%s%s.smali", File.separatorChar, test);
String tokensFile = String.format("LexerTest%s%s.tokens", File.separatorChar, test);
expectedTokensTestGrammarLexer expectedTokensLexer = null;
... | public void runTest(String test, boolean discardHiddenTokens) {
String smaliFile = String.format("LexerTest%s%s.smali", File.separatorChar, test);
String tokensFile = String.format("LexerTest%s%s.tokens", File.separatorChar, test);
expectedTokensTestGrammarLexer expectedTokensLexer = null;
... |
diff --git a/class23_homework/A-Denis-Kalfov-10/src/org/elsys/homework_23/Main.java b/class23_homework/A-Denis-Kalfov-10/src/org/elsys/homework_23/Main.java
index 1d92a80..7eccb98 100644
--- a/class23_homework/A-Denis-Kalfov-10/src/org/elsys/homework_23/Main.java
+++ b/class23_homework/A-Denis-Kalfov-10/src/org/elsys/h... | false | true | public static void main(String[] args) throws IOException {
int seat_num=0;
int[] one_TwoTogether;
one_TwoTogether = new int[300];
int index=1;
int all=0;
int info=0;
int alone=0;
int seatNum_alone_cp=0;... | public static void main(String[] args) throws IOException {
int seat_num=0;
int[] one_TwoTogether;
one_TwoTogether = new int[300];
int index=1;
int all=0;
int info=0;
int alone=0;
int seatNum_alone_cp=0;... |
diff --git a/src/com/android/mms/ui/ConversationHeaderView.java b/src/com/android/mms/ui/ConversationHeaderView.java
index 4bd0c75..054637c 100644
--- a/src/com/android/mms/ui/ConversationHeaderView.java
+++ b/src/com/android/mms/ui/ConversationHeaderView.java
@@ -1,248 +1,248 @@
/*
* Copyright (C) 2008 Esmertec AG.... | false | true | public final void bind(Context context, final ConversationHeader ch) {
//if (DEBUG) Log.v(TAG, "bind()");
setConversationHeader(ch);
int bgcolor = ch.isRead()?
mContext.getResources().getColor(R.color.read_bgcolor) :
mContext.getResources().getColor(R.c... | public final void bind(Context context, final ConversationHeader ch) {
//if (DEBUG) Log.v(TAG, "bind()");
setConversationHeader(ch);
Drawable background = ch.isRead()?
mContext.getResources().getDrawable(R.drawable.conversation_item_background_read) :
mConte... |
diff --git a/org.iucn.sis.client/src/org/iucn/sis/client/tabs/WorkingSetPage.java b/org.iucn.sis.client/src/org/iucn/sis/client/tabs/WorkingSetPage.java
index cc9c277f..03d209e9 100644
--- a/org.iucn.sis.client/src/org/iucn/sis/client/tabs/WorkingSetPage.java
+++ b/org.iucn.sis.client/src/org/iucn/sis/client/tabs/Worki... | false | true | protected void drawOptions(DrawsLazily.DoneDrawingCallback callback) {
final WorkingSet item = WorkingSetCache.impl.getWorkingSet(getSelectedItem());
if (optionsContainer.getItemCount() == 0) {
final TableLayout layout = new TableLayout(1);
layout.setCellHorizontalAlign(HorizontalAlignment.CENTER);
lay... | protected void drawOptions(DrawsLazily.DoneDrawingCallback callback) {
//final WorkingSet item = WorkingSetCache.impl.getWorkingSet(getSelectedItem());
if (optionsContainer.getItemCount() == 0) {
final TableLayout layout = new TableLayout(1);
layout.setCellHorizontalAlign(HorizontalAlignment.CENTER);
l... |
diff --git a/core/api/src/main/java/org/qi4j/api/query/QueryExpressions.java b/core/api/src/main/java/org/qi4j/api/query/QueryExpressions.java
index b5203e78a..c9769ac19 100644
--- a/core/api/src/main/java/org/qi4j/api/query/QueryExpressions.java
+++ b/core/api/src/main/java/org/qi4j/api/query/QueryExpressions.java
@@ ... | true | true | public static <T> T templateFor( Class<T> clazz )
{
NullArgumentException.validateNotNull( "Template class", clazz );
if( clazz.isInterface() )
{
return clazz.cast( Proxy.newProxyInstance( clazz.getClassLoader(),
new Cla... | public static <T> T templateFor( Class<T> clazz )
{
NullArgumentException.validateNotNull( "Template class", clazz );
if( clazz.isInterface() )
{
return clazz.cast( Proxy.newProxyInstance( clazz.getClassLoader(),
new Cla... |
diff --git a/org.eclipse.iee.sample.formula/src/org/eclipse/iee/sample/formula/pad/hover/HoverShell.java b/org.eclipse.iee.sample.formula/src/org/eclipse/iee/sample/formula/pad/hover/HoverShell.java
index 3ccbe60..e89e0cd 100644
--- a/org.eclipse.iee.sample.formula/src/org/eclipse/iee/sample/formula/pad/hover/HoverShel... | true | true | public HoverShell(Composite parent, Image image) {
fShell = new Shell(SWT.TOOL | SWT.NO_FOCUS);
fShell.setVisible(false);
Point pt = parent.toDisplay(10, 30);
fShell.setLocation(pt.x, pt.y);
fShell.setSize(0, 0);
fShell.setLayout(new FillLayout());
fLabel = new Label(fShell, SWT.NONE);
setImage(i... | public HoverShell(Composite parent, Image image) {
fShell = new Shell(SWT.TOOL | SWT.NO_FOCUS | SWT.ON_TOP);
fShell.setVisible(false);
Point pt = parent.toDisplay(10, 30);
fShell.setLocation(pt.x, pt.y);
fShell.setSize(0, 0);
fShell.setLayout(new FillLayout());
fLabel = new Label(fShell, SWT.NONE);... |
diff --git a/testrunner/src/com/baidu/cafe/local/FPSTracer.java b/testrunner/src/com/baidu/cafe/local/FPSTracer.java
index 185a588..b1daa2d 100644
--- a/testrunner/src/com/baidu/cafe/local/FPSTracer.java
+++ b/testrunner/src/com/baidu/cafe/local/FPSTracer.java
@@ -1,114 +1,118 @@
package com.baidu.cafe.local;
impor... | true | true | public static void trace(final LocalLib local) {
final boolean threadDisable = true;
new Thread(new Runnable() {
@Override
public void run() {
int time = 0;
ArrayList<View> decorViews = new ArrayList<View>();
while (threadDisab... | public static void trace(final LocalLib local) {
final boolean threadDisable = true;
new Thread(new Runnable() {
@Override
public void run() {
int time = 0;
ArrayList<View> decorViews = new ArrayList<View>();
while (threadDisab... |
diff --git a/juddi-client/src/main/java/org/apache/juddi/v3/client/UDDIServiceWSDL.java b/juddi-client/src/main/java/org/apache/juddi/v3/client/UDDIServiceWSDL.java
index 9bd102812..b416fd4a2 100644
--- a/juddi-client/src/main/java/org/apache/juddi/v3/client/UDDIServiceWSDL.java
+++ b/juddi-client/src/main/java/org/apa... | true | true | public URL getWSDLFilePath(WSDLEndPointType endpointType, String soapAddressLocation) throws IOException
{
String wsdlString = getServiceWSDLContent();
String specEndPoint = specEndPoints.get(endpointType);
wsdlString = wsdlString.replace(specEndPoint, soapAddressLocation);
String destDir = System.g... | public URL getWSDLFilePath(WSDLEndPointType endpointType, String soapAddressLocation) throws IOException
{
String wsdlString = getServiceWSDLContent();
String specEndPoint = specEndPoints.get(endpointType);
wsdlString = wsdlString.replace(specEndPoint, soapAddressLocation);
String destDir = System.g... |
diff --git a/test-modules/test-core/src/main/java/org/openlmis/UiUtils/DBWrapper.java b/test-modules/test-core/src/main/java/org/openlmis/UiUtils/DBWrapper.java
index e91ecb9a03..4b05dc7908 100644
--- a/test-modules/test-core/src/main/java/org/openlmis/UiUtils/DBWrapper.java
+++ b/test-modules/test-core/src/main/java/o... | true | true | public void deleteData() throws SQLException, IOException {
update("delete from budget_line_items");
update("delete from budget_file_info");
update("delete from role_rights where roleId not in(1)");
update("delete from role_assignments where userId not in (1)");
update("delete from fulfillment_rol... | public void deleteData() throws SQLException, IOException {
update("delete from budget_line_items");
update("delete from budget_file_info");
update("delete from role_rights where roleId not in(1)");
update("delete from role_assignments where userId not in (1)");
update("delete from fulfillment_rol... |
diff --git a/src/main/ed/appserver/AppRequest.java b/src/main/ed/appserver/AppRequest.java
index 7d0694256..f5d85a31e 100644
--- a/src/main/ed/appserver/AppRequest.java
+++ b/src/main/ed/appserver/AppRequest.java
@@ -1,96 +1,96 @@
// AppRequest.java
package ed.appserver;
import java.io.*;
import java.util.*;
... | true | true | boolean isStatic(){
String uri = getURI();
if ( uri.endsWith( ".jxp" ) )
return false;
int period = uri.indexOf( "." );
if ( period < 0 )
return false;
String ext = uri.substring( period + 1 );
if ( MimeTypes.get( ext.toLower... | boolean isStatic(){
String uri = getWantedURI();
if ( uri.endsWith( ".jxp" ) )
return false;
int period = uri.indexOf( "." );
if ( period < 0 )
return false;
String ext = uri.substring( period + 1 );
if ( MimeTypes.get( ext.t... |
diff --git a/src/DerpyAI/DerpyBlank.java b/src/DerpyAI/DerpyBlank.java
index 1bc45b4..79271c5 100644
--- a/src/DerpyAI/DerpyBlank.java
+++ b/src/DerpyAI/DerpyBlank.java
@@ -1,14 +1,14 @@
package DerpyAI;
import java.awt.Point;
public class DerpyBlank extends DerpyPiece{
public DerpyBlank(Point p) {
- super(... | true | true | public DerpyBlank(Point p) {
super(true,"WX");
currentLocation = p;
xMoveConstraint = 8;
yMoveConstraint = 8;
}
| public DerpyBlank(Point p) {
super(true,"X");
currentLocation = p;
xMoveConstraint = 8;
yMoveConstraint = 8;
}
|
diff --git a/src/test/unit/org/jboss/seam/test/unit/ContextTest.java b/src/test/unit/org/jboss/seam/test/unit/ContextTest.java
index 4bcb8f1b..b69bd330 100644
--- a/src/test/unit/org/jboss/seam/test/unit/ContextTest.java
+++ b/src/test/unit/org/jboss/seam/test/unit/ContextTest.java
@@ -1,287 +1,287 @@
//$Id$
package ... | false | true | public void testContextManagement() throws Exception {
ELContext elContext = EL.createELContext();
SeamELResolver seamVariableResolver = new SeamELResolver();
// org.jboss.seam.bpm.SeamVariableResolver jbpmVariableResolver = new
// org.jboss.seam.bpm.SeamVariableResolver();
... | public void testContextManagement() throws Exception {
ELContext elContext = EL.createELContext();
SeamELResolver seamVariableResolver = new SeamELResolver();
// org.jboss.seam.bpm.SeamVariableResolver jbpmVariableResolver = new
// org.jboss.seam.bpm.SeamVariableResolver();
... |
diff --git a/src/main/java/de/tarent/maven/plugins/pkg/Utils.java b/src/main/java/de/tarent/maven/plugins/pkg/Utils.java
index 8eef398..60e1925 100644
--- a/src/main/java/de/tarent/maven/plugins/pkg/Utils.java
+++ b/src/main/java/de/tarent/maven/plugins/pkg/Utils.java
@@ -1,1172 +1,1177 @@
/*
* Maven Packaging Plugi... | false | true | public static void makeExecutable(Log l, String f) throws MojoExecutionException {
l.info("make executable " + f);
exec(new String[] { "chmod", "+x", f }, "Changing the " + f + " file attributes failed.", "Unable to make " + f
+ " file executable.");
}
/**
* This wraps doing a "chmod +x" on a file.
*
... | public static void makeExecutable(Log l, String f) throws MojoExecutionException {
l.info("make executable " + f);
exec(new String[] { "chmod", "+x", f }, "Changing the " + f + " file attributes failed.", "Unable to make " + f
+ " file executable.");
}
/**
* This wraps doing a "chmod +x" on a file.
*
... |
diff --git a/src/vooga/rts/leveleditor/components/MapLoader.java b/src/vooga/rts/leveleditor/components/MapLoader.java
index 14d043d3..fe6ad521 100644
--- a/src/vooga/rts/leveleditor/components/MapLoader.java
+++ b/src/vooga/rts/leveleditor/components/MapLoader.java
@@ -1,159 +1,159 @@
package vooga.rts.leveleditor.co... | false | true | public void loadMapFile(File resourceFile) throws FileNotFoundException {
myScanner = new Scanner(resourceFile);
loadTitle();
try {
loadPlayers();
loadSize();
}
catch (MapNotMatchException e) {
// TODO Auto-generated catch... | public void loadMapFile(File resourceFile) throws FileNotFoundException {
myScanner = new Scanner(resourceFile);
loadTitle();
try {
loadPlayers();
loadSize();
loadTileIndex();
}
catch (MapNotMatchException e) {
... |
diff --git a/src/main/java/org/tal/basiccircuits/BasicCircuits.java b/src/main/java/org/tal/basiccircuits/BasicCircuits.java
index 048180e..4aaecd6 100644
--- a/src/main/java/org/tal/basiccircuits/BasicCircuits.java
+++ b/src/main/java/org/tal/basiccircuits/BasicCircuits.java
@@ -1,43 +1,44 @@
package org.tal.basiccir... | true | true | public void onRedstoneChipsEnable(RedstoneChips rc) {
// add new pref keys.
rc.getPrefs().registerCircuitPreference(iptransmitter.class, "ports", "25600..25699");
// set sram data folder.
sram.dataFolder = new File(rc.getDataFolder(), "sram");
if (!sram.dataFolder.exists()) ... | public void onRedstoneChipsEnable(RedstoneChips rc) {
// add new pref keys.
rc.getPrefs().registerCircuitPreference(iptransmitter.class, "ports", "25600..25699");
// set sram data folder.
sram.dataFolder = new File(rc.getDataFolder(), "sram");
if (!sram.dataFolder.exists()) ... |
diff --git a/src/com/ferg/awful/network/NetworkUtils.java b/src/com/ferg/awful/network/NetworkUtils.java
index 581e53c4..6d5e0523 100644
--- a/src/com/ferg/awful/network/NetworkUtils.java
+++ b/src/com/ferg/awful/network/NetworkUtils.java
@@ -1,326 +1,326 @@
/***********************************************************... | true | true | public static TagNode getWithRedirects(String aUrl, HashMap<String, String> aParams,
List<URI> redirects) throws Exception {
TagNode response = null;
String parameters = getQueryStringParameters(aParams);
Log.i(TAG, "Fetching " + aUrl + parameters);
URI location = new URI(aUrl + pa... | public static TagNode getWithRedirects(String aUrl, HashMap<String, String> aParams,
List<URI> redirects) throws Exception {
TagNode response = null;
String parameters = getQueryStringParameters(aParams);
Log.i(TAG, "Fetching " + aUrl + parameters);
URI location = new URI(aUrl + pa... |
diff --git a/server/src/org/oryxeditor/server/AlternativesRenderer.java b/server/src/org/oryxeditor/server/AlternativesRenderer.java
index cd089e3d..b5974bd9 100644
--- a/server/src/org/oryxeditor/server/AlternativesRenderer.java
+++ b/server/src/org/oryxeditor/server/AlternativesRenderer.java
@@ -1,83 +1,83 @@
packag... | true | true | protected void doPost(HttpServletRequest req, HttpServletResponse res) {
String resource = req.getParameter("resource");
String data = req.getParameter("data");
String format = req.getParameter("format");
String tmpPath = this.getServletContext().getRealPath("/")
+ File.separator + "tmp" + File.separator;
... | protected void doPost(HttpServletRequest req, HttpServletResponse res) {
String resource = req.getParameter("resource");
String data = req.getParameter("data");
String format = req.getParameter("format");
String tmpPath = this.getServletContext().getRealPath("/")
+ File.separator + "tmp" + File.separator;
... |
diff --git a/src/org/apache/xerces/dom/CharacterDataImpl.java b/src/org/apache/xerces/dom/CharacterDataImpl.java
index 873e9df90..ee17c3a85 100644
--- a/src/org/apache/xerces/dom/CharacterDataImpl.java
+++ b/src/org/apache/xerces/dom/CharacterDataImpl.java
@@ -1,431 +1,431 @@
/*
* The Apache Software License, Versio... | true | true | public void setNodeValue(String value) {
if (isReadOnly())
throw new DOMExceptionImpl(
DOMException.NO_MODIFICATION_ALLOWED_ERR,
"DOM001 Modification not allowed");
// revisit: may want to set the value in ownerDocument.
// Default behavior, overridden in some subclasses
... | public void setNodeValue(String value) {
if (isReadOnly())
throw new DOMExceptionImpl(
DOMException.NO_MODIFICATION_ALLOWED_ERR,
"DOM001 Modification not allowed");
// revisit: may want to set the value in ownerDocument.
// Default behavior, overridden in some subclasses
... |
diff --git a/frost-wot/source/frost/threads/insertThread.java b/frost-wot/source/frost/threads/insertThread.java
index 7c2404e7..e07a15b7 100644
--- a/frost-wot/source/frost/threads/insertThread.java
+++ b/frost-wot/source/frost/threads/insertThread.java
@@ -1,244 +1,244 @@
/*
insertThread.java / Frost
Copyright... | true | true | public void run()
{
try
{
String lastUploadDate = null; // NEVER uploaded
boolean success = false;
String[] result = { "Error", "Error" };
String currentDate = DateFun.getExtendedDate();
boolean sign = frame1.frostSettings.getBoolValue(... | public void run()
{
try
{
String lastUploadDate = null; // NEVER uploaded
boolean success = false;
String[] result = { "Error", "Error" };
String currentDate = DateFun.getExtendedDate();
boolean sign = frame1.frostSettings.getBoolValue(... |
diff --git a/astrid/src/com/todoroo/astrid/service/UpgradeService.java b/astrid/src/com/todoroo/astrid/service/UpgradeService.java
index b1fd7a259..45f36b4f6 100644
--- a/astrid/src/com/todoroo/astrid/service/UpgradeService.java
+++ b/astrid/src/com/todoroo/astrid/service/UpgradeService.java
@@ -1,780 +1,780 @@
/**
... | true | true | public void showChangeLog(Context context, int from) {
if(!(context instanceof Activity) || from == 0)
return;
Preferences.clear(TagCaseMigrator.PREF_SHOW_MIGRATION_ALERT);
Preferences.clear(AstridPreferences.P_UPGRADE_FROM);
StringBuilder changeLog = new StringBuilder(... | public void showChangeLog(Context context, int from) {
if(!(context instanceof Activity) || from == 0)
return;
Preferences.clear(TagCaseMigrator.PREF_SHOW_MIGRATION_ALERT);
Preferences.clear(AstridPreferences.P_UPGRADE_FROM);
StringBuilder changeLog = new StringBuilder(... |
diff --git a/src/com/owentech/DevDrawer/utils/Database.java b/src/com/owentech/DevDrawer/utils/Database.java
index 6c7ea5d..48f2f18 100755
--- a/src/com/owentech/DevDrawer/utils/Database.java
+++ b/src/com/owentech/DevDrawer/utils/Database.java
@@ -1,352 +1,352 @@
package com.owentech.DevDrawer.utils;
import androi... | false | true | public int parseAndMatch(String p)
{
int match = NOT_FOUND;
connectDB();
Cursor getAllCursor = db.query("devdrawer_filter", null, null, null, null, null, null, null);
getAllCursor.moveToFirst();
while (!getAllCursor.isAfterLast())
{
String packageFilte... | public int parseAndMatch(String p)
{
int match = NOT_FOUND;
connectDB();
Cursor getAllCursor = db.query("devdrawer_filter", null, null, null, null, null, null, null);
getAllCursor.moveToFirst();
while (!getAllCursor.isAfterLast())
{
String packageFilte... |
diff --git a/StackBlur/src/com/enrique/stackblur/StackBlurManager.java b/StackBlur/src/com/enrique/stackblur/StackBlurManager.java
index 166b897..9265628 100644
--- a/StackBlur/src/com/enrique/stackblur/StackBlurManager.java
+++ b/StackBlur/src/com/enrique/stackblur/StackBlurManager.java
@@ -1,313 +1,318 @@
/**
* St... | true | true | public void process(int radius) {
if (radius < 1 )
radius = 1;
currentPixels = originalPixels.clone();
int wm=_width-1;
int hm=_height-1;
int wh=_width*_height;
int div=radius+radius+1;
int r[]=new int[wh];
int g[]=new int[wh];
int b[]=new int[wh];
int rsum,gsum,bsum,x,y,i,p,yp,yi,yw;
int vmi... | public void process(int radius) {
if (radius < 1 )
radius = 1;
currentPixels = originalPixels.clone();
int wm=_width-1;
int hm=_height-1;
int wh=_width*_height;
int div=radius+radius+1;
int r[]=new int[wh];
int g[]=new int[wh];
int b[]=new int[wh];
int rsum,gsum,bsum,x,y,i,p,yp,yi,yw;
int vmi... |
diff --git a/frost-wot/source/frost/threads/MessageUploadThread.java b/frost-wot/source/frost/threads/MessageUploadThread.java
index 7b92b44b..04e560f6 100644
--- a/frost-wot/source/frost/threads/MessageUploadThread.java
+++ b/frost-wot/source/frost/threads/MessageUploadThread.java
@@ -1,835 +1,835 @@
/*
MessageUpl... | false | true | private boolean uploadMessage() throws IOException {
boolean success = false;
int index = 0;
int tries = 0;
int maxTries = 8;
boolean error = false;
boolean tryAgain;
boolean retrySameIndex = false;
File lockRequestIndex = null;
... | private boolean uploadMessage() throws IOException {
boolean success = false;
int index = 0;
int tries = 0;
int maxTries = 8;
boolean error = false;
boolean tryAgain;
boolean retrySameIndex = false;
File lockRequestIndex = null;
... |
diff --git a/MathTextField.java b/MathTextField.java
index 06c8e9b..94f1ea1 100644
--- a/MathTextField.java
+++ b/MathTextField.java
@@ -1,146 +1,146 @@
/**
*
*/
package applets.Termumformungen$in$der$Technik_01_URI;
import javax.swing.JTextField;
import javax.swing.text.AttributeSet;
import javax.swing.tex... | true | true | protected Document createDefaultModel() {
PlainDocument d = (PlainDocument) super.createDefaultModel();
d.setDocumentFilter(new DocumentFilter() {
@Override
public void insertString(FilterBypass fb, int offset,
String string, AttributeSet attr)
throws BadLocationException {
replace(fb, of... | protected Document createDefaultModel() {
PlainDocument d = (PlainDocument) super.createDefaultModel();
d.setDocumentFilter(new DocumentFilter() {
@Override
public void insertString(FilterBypass fb, int offset,
String string, AttributeSet attr)
throws BadLocationException {
replace(fb, of... |
diff --git a/modules/grouping/src/test/org/apache/lucene/search/grouping/AllGroupsCollectorTest.java b/modules/grouping/src/test/org/apache/lucene/search/grouping/AllGroupsCollectorTest.java
index 00153e7f9..cff33202d 100644
--- a/modules/grouping/src/test/org/apache/lucene/search/grouping/AllGroupsCollectorTest.java
+... | false | true | public void testTotalGroupCount() throws Exception {
final String groupField = "author";
Directory dir = newDirectory();
RandomIndexWriter w = new RandomIndexWriter(
random,
dir,
newIndexWriterConfig(TEST_VERSIO... | public void testTotalGroupCount() throws Exception {
final String groupField = "author";
Directory dir = newDirectory();
RandomIndexWriter w = new RandomIndexWriter(
random,
dir,
newIndexWriterConfig(TEST_VERSIO... |
diff --git a/src/Core/org/objectweb/proactive/core/UniqueID.java b/src/Core/org/objectweb/proactive/core/UniqueID.java
index 748885845..8b654ff26 100644
--- a/src/Core/org/objectweb/proactive/core/UniqueID.java
+++ b/src/Core/org/objectweb/proactive/core/UniqueID.java
@@ -1,173 +1,173 @@
/*
* #######################... | true | true | public boolean equals(Object o) {
//System.out.println("Now checking for equality");
if (o instanceof UniqueID) {
return ((this.id.equals(((UniqueID) o).id)) && (this.vmID.equals(((UniqueID) o).vmID)));
} else {
return false;
}
}
| public boolean equals(Object o) {
//System.out.println("Now checking for equality");
if (o instanceof UniqueID) {
return ((this.id.equals(((UniqueID) o).getUID())) && (this.vmID.equals(((UniqueID) o).getVMID())));
} else {
return false;
}
}
|
diff --git a/brjs-core/src/main/java/org/bladerunnerjs/model/ChildSourceAssetLocation.java b/brjs-core/src/main/java/org/bladerunnerjs/model/ChildSourceAssetLocation.java
index 3013b6cf6..ee5f30eb3 100644
--- a/brjs-core/src/main/java/org/bladerunnerjs/model/ChildSourceAssetLocation.java
+++ b/brjs-core/src/main/java/o... | true | true | public String requirePrefix() throws RequirePathException {
String containerRequirePrefix = assetContainer.requirePrefix();
String locationRequirePrefix = assetContainer.file("src").toURI().relativize(dir().toURI()).getPath().replaceAll("/$", "");
if(!locationRequirePrefix.startsWith(containerRequirePrefix)) ... | public String requirePrefix() throws RequirePathException {
String containerRequirePrefix = assetContainer.requirePrefix();
String locationRequirePrefix = assetContainer.file("src").toURI().relativize(dir().toURI()).getPath().replaceAll("/$", "");
if(!locationRequirePrefix.startsWith(containerRequirePrefix)) ... |
diff --git a/src/Exec.java b/src/Exec.java
index e194c6e..7307253 100644
--- a/src/Exec.java
+++ b/src/Exec.java
@@ -1,176 +1,176 @@
import java.awt.*;
import javax.swing.*;
import java.util.*;
import java.awt.event.*;
import java.awt.image.*;
@SuppressWarnings("serial")
public class Exec extends JFrame
{
I... | false | true | public void init()
{
grid = new BufferedImage(800,600,BufferedImage.TYPE_INT_ARGB);
Graphics gs = grid.getGraphics();
gs.setColor(Color.black);
for (int x = 0; x < 800; x += 50) {
gs.drawLine(x,0,x,600);
}
for (int y = 0; y < 600; y += 50){
gs.drawLine(0,y,800,y);
}
reset();
this.addKeyList... | public void init()
{
grid = new BufferedImage(800,600,BufferedImage.TYPE_INT_ARGB);
Graphics gs = grid.getGraphics();
gs.setColor(Color.black);
for (int x = 0; x < 800; x += 50) {
gs.drawLine(x,0,x,600);
}
for (int y = 0; y < 600; y += 50){
gs.drawLine(0,y,800,y);
}
reset();
this.addKeyList... |
diff --git a/src/main/java/org/jboss/fpak/generator/FpakGenerator.java b/src/main/java/org/jboss/fpak/generator/FpakGenerator.java
index d9a18d2..2fc71fb 100644
--- a/src/main/java/org/jboss/fpak/generator/FpakGenerator.java
+++ b/src/main/java/org/jboss/fpak/generator/FpakGenerator.java
@@ -1,86 +1,87 @@
package org.... | true | true | private void writeFile(File file, PrintWriter out) throws IOException {
System.out.println(file.getAbsolutePath());
String fileName = file.getAbsolutePath().substring(workingDirectory.getAbsolutePath().length());
if (fileName.charAt(0) == '/') {
fileName = fileName.substring(1);... | private void writeFile(File file, PrintWriter out) throws IOException {
System.out.println(file.getAbsolutePath());
String fileName = file.getAbsolutePath().substring(workingDirectory.getAbsolutePath().length());
if (fileName.charAt(0) == '/') {
fileName = fileName.substring(1);... |
diff --git a/src/com/nexus/users/User.java b/src/com/nexus/users/User.java
index 174c612..c47e753 100644
--- a/src/com/nexus/users/User.java
+++ b/src/com/nexus/users/User.java
@@ -1,118 +1,118 @@
package com.nexus.users;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import... | true | true | public void SaveData(){
try{
Connection conn = MySQLHelper.GetConnection();
Statement stmt = conn.createStatement();
//@formatter:off
stmt.execute(String.format("UPDATE %s SET ", TableList.TABLE_USERS) +
"Username = '" + this.Username + "', " +
"Fullname = '" + this.Fullname + "', " +
"Ema... | public void SaveData(){
try{
Connection conn = MySQLHelper.GetConnection();
Statement stmt = conn.createStatement();
//@formatter:off
stmt.execute(String.format("UPDATE %s SET ", TableList.TABLE_USERS) +
"Username = '" + this.Username + "', " +
"Fullname = '" + this.Fullname + "', " +
"Ema... |
diff --git a/src/main/java/dk/statsbiblioteket/doms/ingest/reklamepbcoremapper/BiografPBCoreMapper.java b/src/main/java/dk/statsbiblioteket/doms/ingest/reklamepbcoremapper/BiografPBCoreMapper.java
index 82a130b..e59eeeb 100644
--- a/src/main/java/dk/statsbiblioteket/doms/ingest/reklamepbcoremapper/BiografPBCoreMapper.j... | false | true | private void mapResultSetToPBCoreFile(ResultSet resultSet, File outputdir, Connection c)
throws ParseException, IOException, TransformerException, SQLException {
// Initiate pbcore template
Document pbcoreDocument = DOM
.streamToDOM(getClass().getClassLoader().getResource... | private void mapResultSetToPBCoreFile(ResultSet resultSet, File outputdir, Connection c)
throws ParseException, IOException, TransformerException, SQLException {
// Initiate pbcore template
Document pbcoreDocument = DOM
.streamToDOM(getClass().getClassLoader().getResource... |
diff --git a/src/main/java/com/rogue/playtime/command/OnlineCommand.java b/src/main/java/com/rogue/playtime/command/OnlineCommand.java
index 30f7a0b..1efeafc 100644
--- a/src/main/java/com/rogue/playtime/command/OnlineCommand.java
+++ b/src/main/java/com/rogue/playtime/command/OnlineCommand.java
@@ -1,65 +1,65 @@
/*
... | true | true | public boolean execute(CommandSender sender, Command cmd, String commandLabel, String[] args) {
String check;
String perm = "playtime.use";
if (args.length == 0 && sender instanceof Player) {
check = sender.getName();
} else if (args.length == 1) {
check = plu... | public boolean execute(CommandSender sender, Command cmd, String commandLabel, String[] args) {
String check;
String perm = "playtime.online";
if (args.length == 0 && sender instanceof Player) {
check = sender.getName();
} else if (args.length == 1) {
check = ... |
diff --git a/src/main/java/org/jboss/aesh/util/FileLister.java b/src/main/java/org/jboss/aesh/util/FileLister.java
index 03694001..b72c6557 100644
--- a/src/main/java/org/jboss/aesh/util/FileLister.java
+++ b/src/main/java/org/jboss/aesh/util/FileLister.java
@@ -1,353 +1,353 @@
/*
* Copyright 2013 Red Hat, Inc. and/... | true | true | public void findMatchingDirectories(CompleteOperation completion) {
completion.doAppendSeparator(false);
//if incDir is empty, just list cwd
if(incDir.trim().isEmpty()) {
completion.addCompletionCandidates( listDirectory(cwd, null));
}
else if(startWithHome()) {
... | public void findMatchingDirectories(CompleteOperation completion) {
completion.doAppendSeparator(false);
//if incDir is empty, just list cwd
if(incDir.trim().isEmpty()) {
completion.addCompletionCandidates( listDirectory(cwd, null));
}
else if(startWithHome()) {
... |
diff --git a/software/webapp/src/main/java/brooklyn/entity/proxy/nginx/NginxConfigTemplate.java b/software/webapp/src/main/java/brooklyn/entity/proxy/nginx/NginxConfigTemplate.java
index f42c3c67c..23269a433 100644
--- a/software/webapp/src/main/java/brooklyn/entity/proxy/nginx/NginxConfigTemplate.java
+++ b/software/w... | true | true | public String configFile() {
// Check template URL exists
String templateUrl = driver.getEntity().getConfig(NginxController.SERVER_CONF_TEMPLATE_URL);
ResourceUtils.create(this).checkUrlExists(templateUrl);
// Check SSL configuration
ProxySslConfig ssl = driver.getEntity().g... | public String configFile() {
// Check template URL exists
String templateUrl = driver.getEntity().getConfig(NginxController.SERVER_CONF_TEMPLATE_URL);
ResourceUtils.create(this).checkUrlExists(templateUrl);
// Check SSL configuration
ProxySslConfig ssl = driver.getEntity().g... |
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/CheckoutWizard.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/CheckoutWizard.java
index 8fbfb562a..2cd65dd6d 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui... | true | true | public IWizardPage getNextPage(IWizardPage page, boolean aboutToShow) {
if (page == locationPage) {
if (locationPage.getLocation() == null) {
return createLocationPage;
} else {
if (aboutToShow) {
try {
modulePage.setLocation(getLocation());
} catch (TeamException e1) {
CVSUIPlugi... | public IWizardPage getNextPage(IWizardPage page, boolean aboutToShow) {
if (page == locationPage) {
if (locationPage.getLocation() == null) {
return createLocationPage;
} else {
if (aboutToShow) {
try {
modulePage.setLocation(getLocation());
} catch (TeamException e1) {
CVSUIPlugi... |
diff --git a/metadata/src/main/java/org/apache/oodt/cas/metadata/extractors/ExternConfigReader.java b/metadata/src/main/java/org/apache/oodt/cas/metadata/extractors/ExternConfigReader.java
index 7d05bcd88..c7707632e 100644
--- a/metadata/src/main/java/org/apache/oodt/cas/metadata/extractors/ExternConfigReader.java
+++ ... | true | true | public MetExtractorConfig parseConfigFile(File file)
throws MetExtractorConfigReaderException {
try {
Document doc = XMLUtils.getDocumentRoot(new FileInputStream(file));
ExternalMetExtractorConfig config = new ExternalMetExtractorConfig();
Element docElem = d... | public MetExtractorConfig parseConfigFile(File file)
throws MetExtractorConfigReaderException {
try {
Document doc = XMLUtils.getDocumentRoot(new FileInputStream(file));
ExternalMetExtractorConfig config = new ExternalMetExtractorConfig();
Element docElem = d... |
diff --git a/server/src/main/java/org/eurekastreams/server/action/validation/CreateGroupValidation.java b/server/src/main/java/org/eurekastreams/server/action/validation/CreateGroupValidation.java
index 723b72dd6..ab5b370a2 100644
--- a/server/src/main/java/org/eurekastreams/server/action/validation/CreateGroupValidati... | false | true | public void validate(final ActionContext inActionContext) throws ValidationException
{
Map<String, Serializable> fields = (Map<String, Serializable>) inActionContext.getParams();
ValidationException ve = new ValidationException();
ValidationHelper vHelper = new ValidationHelper();
... | public void validate(final ActionContext inActionContext) throws ValidationException
{
Map<String, Serializable> fields = (Map<String, Serializable>) inActionContext.getParams();
ValidationException ve = new ValidationException();
ValidationHelper vHelper = new ValidationHelper();
... |
diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZooKeeper.java b/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZooKeeper.java
index c4212ef09e..a926afc313 100644
--- a/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZooKeeper.java
+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/Solr... | true | true | public void pauseCnxn(final long ms) {
Thread t = new Thread() {
public void run() {
try {
synchronized (cnxn) {
try {
getSendThreadChannel().close();
} catch (Exception e) {
throw new RuntimeException("Closing zookeper send channel faile... | public void pauseCnxn(final long ms) {
Thread t = new Thread() {
public void run() {
try {
synchronized (cnxn) {
try {
getSendThreadChannel().close();
} catch (Exception e) {
throw new RuntimeException("Closing Zookeeper send channel fail... |
diff --git a/trunk/src/edu/umich/lsa/cscs/gridsweeper/DateUtils.java b/trunk/src/edu/umich/lsa/cscs/gridsweeper/DateUtils.java
index bbfd06e..357ef66 100644
--- a/trunk/src/edu/umich/lsa/cscs/gridsweeper/DateUtils.java
+++ b/trunk/src/edu/umich/lsa/cscs/gridsweeper/DateUtils.java
@@ -1,43 +1,43 @@
package edu.umich.ls... | true | true | public static String getDateString(Calendar cal)
{
int year = cal.get(Calendar.YEAR);
int month = cal.get(Calendar.MONTH);
int day = cal.get(Calendar.DAY_OF_MONTH);
return format("%d-%02d-%02d", year, month, day);
}
| public static String getDateString(Calendar cal)
{
int year = cal.get(Calendar.YEAR);
int month = cal.get(Calendar.MONTH);
int day = cal.get(Calendar.DAY_OF_MONTH) + 1;
return format("%d-%02d-%02d", year, month, day);
}
|
diff --git a/src/me/ivantheforth/srotater/listeners/PlayerJoin.java b/src/me/ivantheforth/srotater/listeners/PlayerJoin.java
index 4b5125b..68bd72d 100644
--- a/src/me/ivantheforth/srotater/listeners/PlayerJoin.java
+++ b/src/me/ivantheforth/srotater/listeners/PlayerJoin.java
@@ -1,51 +1,51 @@
package me.ivantheforth.... | false | true | public void onPlayerJoin(PlayerJoinEvent e)
{
String ip = PlanetMinecraft.getIp();
e.getPlayer().sendMessage(ip);
ByteArrayOutputStream b = new ByteArrayOutputStream();
DataOutputStream out = new DataOutputStream(b);
try {
out.writeUTF("Connect");
... | public void onPlayerJoin(PlayerJoinEvent e)
{
String ip = PlanetMinecraft.getIp();
e.getPlayer().sendMessage(ip);
/*ByteArrayOutputStream b = new ByteArrayOutputStream();
DataOutputStream out = new DataOutputStream(b);
try {
out.writeUTF("Connect");
... |
diff --git a/test/org/plovr/ManifestTest.java b/test/org/plovr/ManifestTest.java
index fc7a28b5..c0f5ebd0 100644
--- a/test/org/plovr/ManifestTest.java
+++ b/test/org/plovr/ManifestTest.java
@@ -1,138 +1,138 @@
package org.plovr;
import java.io.File;
import java.util.Collection;
import java.util.List;
import j... | true | true | public void testSimpleManifest() throws CompilationException {
File closureLibraryDirectory = new File("../closure-library/closure/goog/");
final List<File> dependencies = ImmutableList.of();
String path = "test/org/plovr/example.js";
File testFile = new File(path);
JsSourceFile requiredInput = ... | public void testSimpleManifest() throws CompilationException {
File closureLibraryDirectory = new File("closure/closure-library/closure/goog/");
final List<File> dependencies = ImmutableList.of();
String path = "test/org/plovr/example.js";
File testFile = new File(path);
JsSourceFile requiredInp... |
diff --git a/src/net/cscott/sdr/calls/FormationList.java b/src/net/cscott/sdr/calls/FormationList.java
index 03852b7..cd0aa93 100644
--- a/src/net/cscott/sdr/calls/FormationList.java
+++ b/src/net/cscott/sdr/calls/FormationList.java
@@ -1,168 +1,171 @@
package net.cscott.sdr.calls;
import java.lang.reflect.Field;
... | true | true | public static NamedTaggedFormation valueOf(String s) {
s = s.toUpperCase()
.replace(' ','_')
.replace("1/4","QUARTER")
.replace("3/4","THREE_QUARTER")
.replace("1x2", "_1X2")
.replace("1x4", "_1X4")
.replace("2x2", "_2X2");
... | public static NamedTaggedFormation valueOf(String s) {
s = s.toUpperCase()
.replace(' ','_')
.replace("1/4","QUARTER")
.replace("3/4","THREE_QUARTER")
.replace("1X2", "_1x2")
.replace("1X4", "_1x4")
.replace("2X2", "_2x2")
... |
diff --git a/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableGrouping.java b/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableGrouping.java
index a149cd4f0..46407d7ce 100644
--- a/samples/showcase/showcase/src/main/... | true | true | public double groupTotal(String groupProperty, String valueProperty, Object i) {
// Fix for bugged method invocation in early TC7 releases
int index = (Integer) i;
double total = 0;
boolean nextRowInGroup = false;
FacesContext context = FacesContext.getCurrentInstance();
... | public double groupTotal(String groupProperty, String valueProperty, Object i) {
// Fix for bugged method invocation in early TC7 releases
int index = (Integer) i;
double total = 0;
boolean nextRowInGroup = false;
FacesContext context = FacesContext.getCurrentInstance();
... |
diff --git a/src/test/java/com/testmonkey/app/test/TestScheduleTest.java b/src/test/java/com/testmonkey/app/test/TestScheduleTest.java
index 0fc7f82..d8cb6f3 100644
--- a/src/test/java/com/testmonkey/app/test/TestScheduleTest.java
+++ b/src/test/java/com/testmonkey/app/test/TestScheduleTest.java
@@ -1,96 +1,96 @@
/**
... | true | true | public void getTestModuleListFromScheduleTest() throws IllegalArgumentException, XPathExpressionException, NoSuchAlgorithmException, VarNotFoundException, IOException {
// create mock hash object
final IHashMethod mockHash = context.mock(IHashMethod.class);
// register mock object factory
HashMethodFactor... | public void getTestModuleListFromScheduleTest() throws IllegalArgumentException, XPathExpressionException, NoSuchAlgorithmException, VarNotFoundException, IOException {
// create mock hash object
final IHashMethod mockHash = context.mock(IHashMethod.class);
// register mock object factory
HashMethodFactor... |
diff --git a/tests/jdbc/src/test/java/org/apache/manifoldcf/jdbc_tests/NavigationDerbyUI.java b/tests/jdbc/src/test/java/org/apache/manifoldcf/jdbc_tests/NavigationDerbyUI.java
index 9be6f6d76..63cd86273 100644
--- a/tests/jdbc/src/test/java/org/apache/manifoldcf/jdbc_tests/NavigationDerbyUI.java
+++ b/tests/jdbc/src/t... | false | true | public void createConnectionsAndJob()
throws Exception
{
testerInstance.newTest(Locale.US);
HTMLTester.Window window;
HTMLTester.Link link;
HTMLTester.Form form;
HTMLTester.Textarea textarea;
HTMLTester.Selectbox selectbox;
HTMLTester.Button button;
HTMLTester.Radiobutton ra... | public void createConnectionsAndJob()
throws Exception
{
testerInstance.newTest(Locale.US);
HTMLTester.Window window;
HTMLTester.Link link;
HTMLTester.Form form;
HTMLTester.Textarea textarea;
HTMLTester.Selectbox selectbox;
HTMLTester.Button button;
HTMLTester.Radiobutton ra... |
diff --git a/src/org/accesointeligente/server/robots/SIAC.java b/src/org/accesointeligente/server/robots/SIAC.java
index 922d216..0ec4d3e 100644
--- a/src/org/accesointeligente/server/robots/SIAC.java
+++ b/src/org/accesointeligente/server/robots/SIAC.java
@@ -1,309 +1,309 @@
/**
* Acceso Inteligente
*
* Copyrig... | false | true | public Request makeRequest(Request request) throws RobotException {
if (!loggedIn) {
login();
}
List<NameValuePair> formParams;
HttpPost post;
HttpResponse response;
TagNode document;
Pattern pattern = Pattern.compile("^Solicitud ingresada exitosamente, el número de su solicitud es: ([A-Z]{2}[0-9]{3}... | public Request makeRequest(Request request) throws RobotException {
if (!loggedIn) {
login();
}
List<NameValuePair> formParams;
HttpPost post;
HttpResponse response;
TagNode document;
Pattern pattern = Pattern.compile("^Solicitud ingresada exitosamente, el número de su solicitud es: ([A-Z]{2}[0-9]{3}... |
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java
index 2cb6b11e4..4c651f651 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/Reso... | false | true | public void resourceChanged(IResourceChangeEvent e) {
IResourceDelta delta= e.getDelta();
if (delta != null)
delta= delta.findMember(fFile.getFullPath());
if (delta != null && fIsInstalled) {
SafeFileChange fileChange= null;
switch (delta.getKind()) {
case IResourceDelta.CHANGED:
... | public void resourceChanged(IResourceChangeEvent e) {
IResourceDelta delta= e.getDelta();
if (delta != null)
delta= delta.findMember(fFile.getFullPath());
if (delta != null && fIsInstalled) {
SafeFileChange fileChange= null;
final int flags= delta.getFlags();
switch (delta.getKind()... |
diff --git a/android/src/org/coolreader/crengine/BookInfo.java b/android/src/org/coolreader/crengine/BookInfo.java
index ec7a4185..6a88ff58 100644
--- a/android/src/org/coolreader/crengine/BookInfo.java
+++ b/android/src/org/coolreader/crengine/BookInfo.java
@@ -1,289 +1,289 @@
package org.coolreader.crengine;
impo... | true | true | synchronized public boolean exportBookmarks( String fileName ) {
Log.i("cr3", "Exporting bookmarks to file " + fileName);
try {
FileOutputStream stream = new FileOutputStream(new File(fileName));
OutputStreamWriter writer = new OutputStreamWriter(stream, "UTF-8");
writer.write(0xfeff);
writer.write("... | synchronized public boolean exportBookmarks( String fileName ) {
Log.i("cr3", "Exporting bookmarks to file " + fileName);
try {
FileOutputStream stream = new FileOutputStream(new File(fileName));
OutputStreamWriter writer = new OutputStreamWriter(stream, "UTF-8");
writer.write(0xfeff);
writer.write("... |
diff --git a/src/java/com/eviware/soapui/security/check/MaliciousAttachmentSecurityCheck.java b/src/java/com/eviware/soapui/security/check/MaliciousAttachmentSecurityCheck.java
index 2b71da518..10f4e8c8b 100644
--- a/src/java/com/eviware/soapui/security/check/MaliciousAttachmentSecurityCheck.java
+++ b/src/java/com/evi... | true | true | private void addAttachments( TestStep testStep, List<MaliciousAttachmentConfig> list, boolean generated )
{
for( MaliciousAttachmentConfig element : list )
{
File file = new File( element.getFilename() );
if( element.getEnabled() )
{
try
{
if( !file.exists() )
{
if( generated )
... | private void addAttachments( TestStep testStep, List<MaliciousAttachmentConfig> list, boolean generated )
{
for( MaliciousAttachmentConfig element : list )
{
File file = new File( element.getFilename() );
if( element.getEnabled() )
{
try
{
if( !file.exists() )
{
if( generated )
... |
diff --git a/hibernate/hibernate-datasource/src/main/java/org/obiba/magma/datasource/hibernate/HibernateVariableValueSourceFactory.java b/hibernate/hibernate-datasource/src/main/java/org/obiba/magma/datasource/hibernate/HibernateVariableValueSourceFactory.java
index 8781c7eb..062d6249 100644
--- a/hibernate/hibernate-d... | true | true | public Iterable<Value> getValues(SortedSet<VariableEntity> entities) {
final Query valuesQuery;
valuesQuery = getCurrentSession().getNamedQuery("valuesWithEntities");
valuesQuery.setParameter("entityType", valueTable.getEntityType())//
.setParameterList("identifiers", ImmutableList.copyOf(It... | public Iterable<Value> getValues(SortedSet<VariableEntity> entities) {
if(entities.size() == 0) {
return ImmutableList.of();
}
final Query valuesQuery;
valuesQuery = getCurrentSession().getNamedQuery("valuesWithEntities");
valuesQuery.setParameter("entityType", valueTable.getEn... |
diff --git a/contents/developer/open/java/search.java b/contents/developer/open/java/search.java
index a2d293d..93ae34b 100755
--- a/contents/developer/open/java/search.java
+++ b/contents/developer/open/java/search.java
@@ -1,195 +1,196 @@
import java.io.IOException;
import java.net.URLDecoder;
import java.text... | true | true | public static void main(String[] args) {
HostConfiguration hostConfig = new HostConfiguration();
HttpConnectionManager connectionManager = new MultiThreadedHttpConnectionManager();
HttpConnectionManagerParams params = new HttpConnectionManagerParams();
int maxHostConnections = 20;
... | public static void main(String[] args) {
HostConfiguration hostConfig = new HostConfiguration();
HttpConnectionManager connectionManager = new MultiThreadedHttpConnectionManager();
HttpConnectionManagerParams params = new HttpConnectionManagerParams();
int maxHostConnections = 20;
... |
diff --git a/Project2/test/PrintTableTest.java b/Project2/test/PrintTableTest.java
index a83ed02..ebc789b 100644
--- a/Project2/test/PrintTableTest.java
+++ b/Project2/test/PrintTableTest.java
@@ -1,44 +1,44 @@
import junit.framework.Assert;
import junit.framework.TestCase;
import main.TicTacToe;
import java.io.B... | true | true | public final void testPrintTableTest()
{
PrintStream originalOut = System.out;
OutputStream os = new ByteArrayOutputStream();
PrintStream ps = new PrintStream(os);
System.setOut(ps);
String separator = System.getProperty("line.separator");
capture.printTable();
... | public final void testPrintTableTest()
{
PrintStream originalOut = System.out;
OutputStream os = new ByteArrayOutputStream();
PrintStream ps = new PrintStream(os);
System.setOut(ps);
String separator = System.getProperty("line.separator");
capture.printTable();
... |
diff --git a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/bean/UserSessionBean.java b/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/bean/UserSessionBean.java
index 518908af..b91e5fd5 100644
--- a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/bean/UserSessionBean.java
+++ b/software/ncitbrowser/... | true | true | public String searchAction() {
HttpServletRequest request = (HttpServletRequest) FacesContext
.getCurrentInstance().getExternalContext().getRequest();
request.getSession().setAttribute("contains_warning_msg", "");
String matchText = (String) request.getParameter("matchText");
//[#19965] Error message is... | public String searchAction() {
HttpServletRequest request = (HttpServletRequest) FacesContext
.getCurrentInstance().getExternalContext().getRequest();
request.getSession().setAttribute("contains_warning_msg", "");
String matchText = (String) request.getParameter("matchText");
//[#19965] Error message is... |
diff --git a/src/test/java/org/neo4j/index/lucene/TestRecovery.java b/src/test/java/org/neo4j/index/lucene/TestRecovery.java
index 6faf93c..8973742 100644
--- a/src/test/java/org/neo4j/index/lucene/TestRecovery.java
+++ b/src/test/java/org/neo4j/index/lucene/TestRecovery.java
@@ -1,206 +1,207 @@
/*
* Copyright (c) 2... | true | true | public void testReCommit() throws Exception
{
GraphDatabaseService graphDb = newGraphDbService();
IndexService idx = new LuceneIndexService( graphDb );
Transaction tx = graphDb.beginTx();
assertEquals( null, idx.getSingleNode( "test", "1" ) );
Node refNode = graphDb.getRe... | public void testReCommit() throws Exception
{
GraphDatabaseService graphDb = newGraphDbService();
IndexService idx = new LuceneIndexService( graphDb );
Transaction tx = graphDb.beginTx();
assertEquals( null, idx.getSingleNode( "test", "1" ) );
Node refNode = graphDb.getRe... |
diff --git a/android-service-sample/src/com/pannous/vaservice/sample/VoiceActionsService.java b/android-service-sample/src/com/pannous/vaservice/sample/VoiceActionsService.java
index 08de2bf..3645b19 100644
--- a/android-service-sample/src/com/pannous/vaservice/sample/VoiceActionsService.java
+++ b/android-service-samp... | false | true | public void runJeannie(String input, String location, String lang,
String hashedId) {
if (location == null)
location = "";
try {
input = URLEncoder.encode(input, "UTF-8");
} catch (Exception ex) {
}
int timeZoneInMinutes = TimeZone.getDefault().getOffset(System.currentTimeMillis()) / 1000 / 60... | public void runJeannie(String input, String location, String lang,
String hashedId) {
if (location == null)
location = "";
try {
input = URLEncoder.encode(input, "UTF-8");
} catch (Exception ex) {
}
int timeZoneInMinutes = TimeZone.getDefault().getOffset(System.currentTimeMillis()) / 1000 / 60... |
diff --git a/robospice-core-parent/robospice/src/main/java/com/octo/android/robospice/request/RequestProcessor.java b/robospice-core-parent/robospice/src/main/java/com/octo/android/robospice/request/RequestProcessor.java
index b32e119ad..8b6c153da 100644
--- a/robospice-core-parent/robospice/src/main/java/com/octo/andr... | true | true | protected <T> void processRequest(final CachedSpiceRequest<T> request) {
final long startTime = System.currentTimeMillis();
Ln.d("Processing request : " + request);
T result = null;
// add a progress listener to the request to be notified of
// progress during load data fro... | protected <T> void processRequest(final CachedSpiceRequest<T> request) {
final long startTime = System.currentTimeMillis();
Ln.d("Processing request : " + request);
T result = null;
// add a progress listener to the request to be notified of
// progress during load data fro... |
diff --git a/src/com/android/music/MediaPlaybackService.java b/src/com/android/music/MediaPlaybackService.java
index a035eaa..2977a3f 100644
--- a/src/com/android/music/MediaPlaybackService.java
+++ b/src/com/android/music/MediaPlaybackService.java
@@ -1,2525 +1,2525 @@
/*
* Copyright (C) 2007 The Android Open Sourc... | true | true | private void reloadQueue() {
String q = null;
int id = mCardId;
if (mPreferences.contains("cardid")) {
id = mPreferences.getInt("cardid", ~mCardId);
}
if (id == mCardId) {
// Only restore the saved playlist if the card is still
// the same... | private void reloadQueue() {
String q = null;
int id = mCardId;
if (mPreferences.contains("cardid")) {
id = mPreferences.getInt("cardid", ~mCardId);
}
if (id == mCardId) {
// Only restore the saved playlist if the card is still
// the same... |
diff --git a/fog.routing.hrm/src/de/tuilmenau/ics/fog/packets/hierarchical/election/BullyAlive.java b/fog.routing.hrm/src/de/tuilmenau/ics/fog/packets/hierarchical/election/BullyAlive.java
index 0ed0634c..7b81ed5d 100644
--- a/fog.routing.hrm/src/de/tuilmenau/ics/fog/packets/hierarchical/election/BullyAlive.java
+++ b/... | true | true | public BullyAlive(Name pSenderName) //TODO: ev. sollte hier auch die Prio. �bermittelt werden, so dass man nicht immer erst auf das BullyElect warten muss
{
super(pSenderName, HRMID.createBroadcast());
}
| public BullyAlive(Name pSenderName)
{
super(pSenderName, HRMID.createBroadcast());
}
|
diff --git a/src/main/java/net/krinsoft/privileges/commands/InfoCommand.java b/src/main/java/net/krinsoft/privileges/commands/InfoCommand.java
index 5e7f43e..3ab464d 100644
--- a/src/main/java/net/krinsoft/privileges/commands/InfoCommand.java
+++ b/src/main/java/net/krinsoft/privileges/commands/InfoCommand.java
@@ -1,6... | true | true | public void runCommand(CommandSender sender, List<String> args) {
List<String> lines = new ArrayList<String>();
CommandSender target = sender;
if (args.size() == 1) {
target = plugin.getServer().getPlayer(args.get(0));
if (target == null) {
if (sender ... | public void runCommand(CommandSender sender, List<String> args) {
List<String> lines = new ArrayList<String>();
CommandSender target = sender;
if (args.size() == 1) {
target = plugin.getServer().getPlayer(args.get(0));
if (target == null) {
if (sender ... |
diff --git a/src/nl/b3p/viewer/config/services/WMSService.java b/src/nl/b3p/viewer/config/services/WMSService.java
index d8bf6a4f6..dafbaeb4e 100644
--- a/src/nl/b3p/viewer/config/services/WMSService.java
+++ b/src/nl/b3p/viewer/config/services/WMSService.java
@@ -1,188 +1,190 @@
/*
* Copyright (C) 2011 B3Partners B... | true | true | public WMSService loadFromUrl(String url, Map params, WaitPageStatus status) throws Exception {
try {
status.setCurrentAction("Ophalen informatie...");
// XXX username / password by overriding HTTPClient?
WebMapServer gtwms = new WebMapServer(new URL(url));
... | public WMSService loadFromUrl(String url, Map params, WaitPageStatus status) throws Exception {
try {
status.setCurrentAction("Ophalen informatie...");
// XXX username / password by overriding HTTPClient?
WebMapServer gtwms = new WebMapServer(new URL(url));
... |
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/contraction/ContractionHierarchy.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/contraction/ContractionHierarchy.java
index 0645848cc..900d52fe1 100644
--- a/opentripplanner-routing/src/main/java/org/opentripplanner... | true | true | public GraphPath getShortestPath(Vertex origin, Vertex target, long time,
RoutingRequest opt) {
if (origin == null || target == null) {
return null;
}
RoutingRequest upOptions = opt.clone();
RoutingRequest downOptions = opt.clone();
//TODO: verify s... | public GraphPath getShortestPath(Vertex origin, Vertex target, long time,
RoutingRequest opt) {
if (origin == null || target == null) {
return null;
}
RoutingRequest upOptions = opt.clone();
RoutingRequest downOptions = opt.clone();
//TODO: verify s... |
diff --git a/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintSettings.java b/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintSettings.java
index c9d58a7b..187fb41d 100644
--- a/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintSettings.java
+++ b/src/org/openstreetmap/josm/data/osm/visitor/p... | false | true | private void load() {
showDirectionArrow = Main.pref.getBoolean("draw.segment.direction", true);
showRelevantDirectionsOnly = Main.pref.getBoolean("draw.segment.relevant_directions_only", true);
useRealWidth = Main.pref.getBoolean("mappaint.useRealWidth", false);
defaultSegmentWidth ... | private void load() {
showDirectionArrow = Main.pref.getBoolean("draw.segment.direction", true);
showRelevantDirectionsOnly = Main.pref.getBoolean("draw.segment.relevant_directions_only", true);
useRealWidth = Main.pref.getBoolean("mappaint.useRealWidth", false);
defaultSegmentWidth ... |
diff --git a/src/ComputerPlayer.java b/src/ComputerPlayer.java
index 7a52672..e023336 100644
--- a/src/ComputerPlayer.java
+++ b/src/ComputerPlayer.java
@@ -1,75 +1,75 @@
import java.util.ArrayList;
public class ComputerPlayer extends Player {
public ComputerPlayer(String n, Intersection.Piece p) {
super... | false | true | public void promptMove(GoEngine g) {
int row = 0;
int col = 0;
boolean placed = false;
while(placed != true) {
int leftSpace = 0;
int rightSpace = 0;
int topSpace = 0;
int bottomSpace = 0;
for(int i = 0; i < 81; i++){
if(g.board.getContents(row, col) != Intersection.Piece.EMPTY
&& ... | public void promptMove(GoEngine g) {
int row = 0;
int col = 0;
boolean placed = false;
while(placed != true) {
int leftSpace = 0;
int rightSpace = 0;
int topSpace = 0;
int bottomSpace = 0;
for(int i = 0; i < 81; i++){
if(g.board.getContents(row, col) != Intersection.Piece.EMPTY
&& ... |
diff --git a/client-android/src/org/pushtalk/android/service/TalkReceiver.java b/client-android/src/org/pushtalk/android/service/TalkReceiver.java
index 305a9b4..fd81b05 100644
--- a/client-android/src/org/pushtalk/android/service/TalkReceiver.java
+++ b/client-android/src/org/pushtalk/android/service/TalkReceiver.java... | false | true | public void onReceive(Context context, Intent intent) {
if (null == nm) {
nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
}
Bundle bundle = intent.getExtras();
Logger.d(TAG, "onReceive - " + intent.getAction() + ", extras: " + A... | public void onReceive(Context context, Intent intent) {
if (null == nm) {
nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
}
Bundle bundle = intent.getExtras();
Logger.d(TAG, "onReceive - " + intent.getAction() + ", extras: " + A... |
diff --git a/apps/cbm/plugins/xml/ImportCbmData.java b/apps/cbm/plugins/xml/ImportCbmData.java
index f56da2e3b..041bbf063 100644
--- a/apps/cbm/plugins/xml/ImportCbmData.java
+++ b/apps/cbm/plugins/xml/ImportCbmData.java
@@ -1,560 +1,560 @@
package plugins.xml;
import gme.cacore_cacore._3_2.gov_nih_nci_cbm_domain.A... | false | true | public void handleRequest(Database db, MolgenisRequest request) throws Exception
{
if (request.getString("__action").equals("upload"))
{
// get uploaded file and do checks
File file = request.getFile("uploadData");
if (file == null)
{
throw new Exception("No file selected.");
}
else if (!f... | public void handleRequest(Database db, MolgenisRequest request) throws Exception
{
if (request.getString("__action").equals("upload"))
{
// get uploaded file and do checks
File file = request.getFile("uploadData");
if (file == null)
{
throw new Exception("No file selected.");
}
else if (!f... |
diff --git a/Main.java b/Main.java
index f898b78..c4d8d2b 100644
--- a/Main.java
+++ b/Main.java
@@ -1,176 +1,173 @@
package abdjekt;
import static java.lang.System.*;
import java.util.ArrayList;
import java.util.NoSuchElementException;
import java.util.Scanner;
public class Main {
public static String... | false | true | public static void main(String[] args) {
Scanner keyboard = new Scanner(in);
spawned = new ArrayList<Item>();
spawned.add(new Item("foo"));
world = new World(25);
out.println("Welcome to Abdjekt!");
out.println("To spawn an object, use: spawn <noun>. To remove them, ... | public static void main(String[] args) {
Scanner keyboard = new Scanner(in);
spawned = new ArrayList<Item>();
spawned.add(new Item("foo"));
world = new World(25);
out.println("Welcome to Abdjekt!");
out.println("To spawn an object, use: spawn <noun>. To remove them, ... |
diff --git a/src/org/inceptus/Mecanum.java b/src/org/inceptus/Mecanum.java
index 5d4f307..35cf444 100644
--- a/src/org/inceptus/Mecanum.java
+++ b/src/org/inceptus/Mecanum.java
@@ -1,60 +1,60 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Re... | true | true | public void disabled() {
//Log disabled status
DriverStationLCD.getInstance().println(DriverStationLCD.Line.kUser2, 1, "Disabled");
}
| public void disabledInit() {
//Log disabled status
DriverStationLCD.getInstance().println(DriverStationLCD.Line.kUser2, 1, "Disabled");
}
|
diff --git a/core/src/test/java/hudson/model/RunTest.java b/core/src/test/java/hudson/model/RunTest.java
index b03d8aae1..cba30858e 100644
--- a/core/src/test/java/hudson/model/RunTest.java
+++ b/core/src/test/java/hudson/model/RunTest.java
@@ -1,68 +1,68 @@
/*
* The MIT License
*
* Copyright (c) 2004-2009, Sun... | false | true | private List<Run<?,?>.Artifact> createArtifactList(String... paths) {
Run<?,?> r = new Run(null,new GregorianCalendar()) {
public int compareTo(Object arg0) {
return 0;
}
};
Run<?,?>.ArtifactList list = r.new ArtifactList();
for (String p : paths) {
list.add(r.n... | private List<Run<?,?>.Artifact> createArtifactList(String... paths) {
Run<?,?> r = new Run(null,new GregorianCalendar()) {
public int compareTo(Run arg0) {
return 0;
}
};
Run<?,?>.ArtifactList list = r.new ArtifactList();
for (String p : paths) {
list.add(r.new ... |
diff --git a/src/java-common/org/xins/common/types/PatternType.java b/src/java-common/org/xins/common/types/PatternType.java
index 4ea63f3ea..71d598343 100644
--- a/src/java-common/org/xins/common/types/PatternType.java
+++ b/src/java-common/org/xins/common/types/PatternType.java
@@ -1,170 +1,169 @@
/*
* $Id$
*
... | false | true | protected final boolean isValidValueImpl(String value) {
// Determine if the value matches the pattern
try {
Perl5Matcher patternMatcher = new Perl5Matcher();
return patternMatcher.matches(value, _pattern);
// If the call causes an exception, then log that exception and assume
... | protected final boolean isValidValueImpl(String value) {
// Determine if the value matches the pattern
try {
Perl5Matcher patternMatcher = new Perl5Matcher();
return patternMatcher.matches(value, _pattern);
// If the call causes an exception, then log that exception and assume
... |
diff --git a/src/org/ukiuni/irc4j/server/command/FileRecieveThread.java b/src/org/ukiuni/irc4j/server/command/FileRecieveThread.java
index e9c31be..e07591b 100644
--- a/src/org/ukiuni/irc4j/server/command/FileRecieveThread.java
+++ b/src/org/ukiuni/irc4j/server/command/FileRecieveThread.java
@@ -1,63 +1,63 @@
package ... | true | true | public void run() {
try {
final String[] param = parameterString.split(" ");
Log.log("/////////////////// socket = " + param[4] + ":" + Integer.valueOf(param[5]));
Socket socket = new Socket("localhost", Integer.valueOf(param[5]));
long fileSize = Long.valueOf(Integer.valueOf(param[6]));
InputStream ... | public void run() {
try {
final String[] param = parameterString.split(" ");
Log.log("/////////////////// socket = " + selfClientConnection.getUser().getHostName() + ":" + Integer.valueOf(param[5]));
Socket socket = new Socket(selfClientConnection.getUser().getHostName(), Integer.valueOf(param[5]));
lon... |
diff --git a/src/LPSolve/IntegerLP.java b/src/LPSolve/IntegerLP.java
index d4a45d7..7211a00 100644
--- a/src/LPSolve/IntegerLP.java
+++ b/src/LPSolve/IntegerLP.java
@@ -1,169 +1,166 @@
/**
* Models the problem as a linear program and solves using lp_solve's ILP.
*/
package LPSolve;
import java.util.ArrayList;
... | false | true | public static void match(Tutor[] tutors, Slot[] slots, Weighting waiter) {
t = tutors;
s = slots;
w = waiter;
n = t.length * s.length;
try {
// create the LP solver: 0 constraints (for now),
// the variables are bindings between tutors and slots
... | public static void match(Tutor[] tutors, Slot[] slots, Weighting waiter) {
t = tutors;
s = slots;
w = waiter;
n = t.length * s.length;
try {
// create the LP solver: 0 constraints (for now),
// the variables are bindings between tutors and slots
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.