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/main/java/me/limebyte/battlenight/core/Util.java b/src/main/java/me/limebyte/battlenight/core/Util.java
index 52b40c5..c286090 100644
--- a/src/main/java/me/limebyte/battlenight/core/Util.java
+++ b/src/main/java/me/limebyte/battlenight/core/Util.java
@@ -1,64 +1,62 @@
package me.limebyte.battlenight.... | true | true | private static void reset(Player player) {
for (Player p : Bukkit.getServer().getOnlinePlayers()) {
if (!player.canSee(p)) {
player.showPlayer(p);
}
}
for (PotionEffect effect : player.getActivePotionEffects()) {
player.addPotionEffect(new... | private static void reset(Player player) {
for (Player p : Bukkit.getServer().getOnlinePlayers()) {
if (!player.canSee(p)) {
player.showPlayer(p);
}
}
for (PotionEffect effect : player.getActivePotionEffects()) {
player.addPotionEffect(new... |
diff --git a/instaplan/src/main/Main.java b/instaplan/src/main/Main.java
index 7f30fd3..439badd 100644
--- a/instaplan/src/main/Main.java
+++ b/instaplan/src/main/Main.java
@@ -1,107 +1,109 @@
package main;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.... | true | true | public static void DDLs(Statement st) throws Exception {
try {
st.execute(safeDropTable("business"));
st.execute(safeDropTable("category"));
st.execute(safeDropTable("review"));
st.execute(safeDropTable("yelpUser"));
st.execute(safeDropTable("writes"));
st.execute(safeDropTable("reviewOf"));
st.... | public static void DDLs(Statement st) throws Exception {
try {
st.execute(safeDropTable("business"));
st.execute(safeDropTable("category"));
st.execute(safeDropTable("review"));
st.execute(safeDropTable("yelpUser"));
st.execute(safeDropTable("writes"));
st.execute(safeDropTable("reviewOf"));
st.... |
diff --git a/src/eu/alefzero/owncloud/ui/fragment/ConfirmationDialogFragment.java b/src/eu/alefzero/owncloud/ui/fragment/ConfirmationDialogFragment.java
index 110f337..cc6a0f7 100644
--- a/src/eu/alefzero/owncloud/ui/fragment/ConfirmationDialogFragment.java
+++ b/src/eu/alefzero/owncloud/ui/fragment/ConfirmationDialogF... | false | true | public Dialog onCreateDialog(Bundle savedInstanceState) {
Object[] confirmationTarget = getArguments().getStringArray(ARG_CONF_ARGUMENTS);
int resourceId = getArguments().getInt(ARG_CONF_RESOURCE_ID, -1);
int posBtn = getArguments().getInt(ARG_POSITIVE_BTN_RES, -1);
int neuBtn = getA... | public Dialog onCreateDialog(Bundle savedInstanceState) {
Object[] confirmationTarget = getArguments().getStringArray(ARG_CONF_ARGUMENTS);
int resourceId = getArguments().getInt(ARG_CONF_RESOURCE_ID, -1);
int posBtn = getArguments().getInt(ARG_POSITIVE_BTN_RES, -1);
int neuBtn = getA... |
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/buffermgr/TableContentLayout.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/buffermgr/TableContentLayout.java
index 67f8182bc..a58484f6c 100644
--- a/plugins/org.eclipse.birt.report... | false | true | public TableContentLayout( ITableContent tableContent, String format,
HTMLLayoutContext context, String keyString )
{
this.format = format;
this.context = context;
this.tableContent = tableContent;
this.keyString = keyString;
this.colCount = tableContent.getColumnCount( );
int start = 0;
int end ... | public TableContentLayout( ITableContent tableContent, String format,
HTMLLayoutContext context, String keyString )
{
this.format = format;
this.context = context;
this.tableContent = tableContent;
this.keyString = keyString;
this.colCount = tableContent.getColumnCount( );
int start = 0;
int end ... |
diff --git a/src/edu/jas/ufd/FactorInteger.java b/src/edu/jas/ufd/FactorInteger.java
index 5f678394..8485742a 100644
--- a/src/edu/jas/ufd/FactorInteger.java
+++ b/src/edu/jas/ufd/FactorInteger.java
@@ -1,1107 +1,1107 @@
/*
* $Id$
*/
package edu.jas.ufd;
import java.util.ArrayList;
import java.util.BitSet... | false | true | public List<GenPolynomial<BigInteger>> factorsSquarefreeHensel(GenPolynomial<BigInteger> P) {
if (P == null) {
throw new IllegalArgumentException(this.getClass().getName() + " P != null");
}
GenPolynomialRing<BigInteger> pfac = P.ring;
if (pfac.nvar == 1) {
re... | public List<GenPolynomial<BigInteger>> factorsSquarefreeHensel(GenPolynomial<BigInteger> P) {
if (P == null) {
throw new IllegalArgumentException(this.getClass().getName() + " P != null");
}
GenPolynomialRing<BigInteger> pfac = P.ring;
if (pfac.nvar == 1) {
re... |
diff --git a/src/Model/Skills/Wizard/SkillFirestorm.java b/src/Model/Skills/Wizard/SkillFirestorm.java
index 0ae64ec..b36ae08 100644
--- a/src/Model/Skills/Wizard/SkillFirestorm.java
+++ b/src/Model/Skills/Wizard/SkillFirestorm.java
@@ -1,89 +1,89 @@
package Model.Skills.Wizard;
import org.newdawn.slick.Image;
imp... | true | true | public SkillFirestorm(){
//String name, int cd, int range, double speed, int aoe, int cost, int damage, StatusEffect SE
super("Firestorm", 9000, 350, 100, 8, 60, 15,"Firestorm:\nDeals heavy AoE damage over\ntime" +
"\nLevel 1: 15 damage\n" +
"Level 2: 25 damage\n" +
"Level 3: 35 damage\n" +
"Level ... | public SkillFirestorm(){
//String name, int cd, int range, double speed, int aoe, int cost, int damage, StatusEffect SE
super("Firestorm", 9000, 350, 100, 8, 60, 5,"Firestorm:\nDeals heavy AoE damage over\ntime" +
"\nLevel 1: 300 maximum damage\n" +
"Level 2: 420 maximum damage\n" +
"Level 3: 540 maxim... |
diff --git a/software/ncireportwriter/test/src/java/gov/nih/nci/evs/reportwriter/test/lexevs/DataUtilsTest.java b/software/ncireportwriter/test/src/java/gov/nih/nci/evs/reportwriter/test/lexevs/DataUtilsTest.java
index 409d569..ad890e2 100644
--- a/software/ncireportwriter/test/src/java/gov/nih/nci/evs/reportwriter/tes... | false | true | public void getAssociations() {
String scheme = "NCI Thesaurus";
String version = "09.12d";
String code = "C74456"; // CDISC SDTM Anatomical Location Terminology
code = "C63923"; // FDA Established Names and Unique Ingredient Identifier Codes Terminology
String assocName = "... | public void getAssociations() {
String scheme = "NCI Thesaurus";
String version = "09.12d";
String code = "C74456"; // CDISC SDTM Anatomical Location Terminology
code = "C63923"; // FDA Established Names and Unique Ingredient Identifier Codes Terminology
String assocName = "... |
diff --git a/src/in/haeg/csbot/Main.java b/src/in/haeg/csbot/Main.java
index 33a0839..b5ee4fd 100644
--- a/src/in/haeg/csbot/Main.java
+++ b/src/in/haeg/csbot/Main.java
@@ -1,175 +1,178 @@
package in.haeg.csbot;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.... | true | true | public static void main(String[] args) {
m_Log = Logger.getLogger(Main.class.getName());
m_Log.setLevel(Level.FINEST);
m_Karma = new HashMap<String, Integer>();
m_Conn = new IRCConnection(Constants.HOST, Constants.PORT, Constants.PASSWORD, Constants.NICK_NAME, Constants.USER_NAME, ... | public static void main(String[] args) {
m_Log = Logger.getLogger(Main.class.getName());
m_Log.setLevel(Level.FINEST);
m_Karma = new HashMap<String, Integer>();
m_Conn = new IRCConnection(Constants.HOST, Constants.PORT, Constants.PASSWORD, Constants.NICK_NAME, Constants.USER_NAME, ... |
diff --git a/Compiler/MAlice/src/malice_grammar/MaliceParser.java b/Compiler/MAlice/src/malice_grammar/MaliceParser.java
index c2ff575..41a6a9d 100644
--- a/Compiler/MAlice/src/malice_grammar/MaliceParser.java
+++ b/Compiler/MAlice/src/malice_grammar/MaliceParser.java
@@ -1,113 +1,114 @@
package malice_grammar;
imp... | false | true | public static void main(String[] args) throws IOException, RecognitionException {
String control_eventually =
"eventually (c==0) because" + '\n' +
" opened" +
" abs(y) spoke. \n" +
" x was a number. \n" +
" x was a letter too. \n" +
" x had 10 number. \n" +
" x became \"string\"... | public static void main(String[] args) throws IOException, RecognitionException {
String control_eventually =
"eventually (c==0) because" + '\n' +
" opened" +
" abs(y) spoke. \n" +
" x was a number. \n" +
" x was a letter too. \n" +
" x had 10 number. \n" +
" x became \"string\"... |
diff --git a/src/main/java/hudson/plugins/testng/parser/ResultsParser.java b/src/main/java/hudson/plugins/testng/parser/ResultsParser.java
index 887c51a..aa5a871 100644
--- a/src/main/java/hudson/plugins/testng/parser/ResultsParser.java
+++ b/src/main/java/hudson/plugins/testng/parser/ResultsParser.java
@@ -1,168 +1,17... | false | true | public static Collection<TestResults> parse(File file,
PrintStream printStream) {
if (null == file) {
if (printStream != null) {
printStream.println("File not specified");
}
return Collections.EMPTY_LIST;
}
if (!... | public static Collection<TestResults> parse(File file,
PrintStream printStream) {
if (null == file) {
if (printStream != null) {
printStream.println("File not specified");
}
return Collections.EMPTY_LIST;
}
if (!... |
diff --git a/web/src/main/java/org/fao/geonet/kernel/SchemaManager.java b/web/src/main/java/org/fao/geonet/kernel/SchemaManager.java
index bbaa51fb16..309d48d1be 100644
--- a/web/src/main/java/org/fao/geonet/kernel/SchemaManager.java
+++ b/web/src/main/java/org/fao/geonet/kernel/SchemaManager.java
@@ -1,1276 +1,1275 @@... | false | true | private void addSchema(String fromAppPath, String name, boolean isPluginSchema, Element schemaPluginCatRoot, String xmlSchemaFile, String xmlSuggestFile, String xmlSubstitutionsFile, String xmlIdFile, String oasisCatFile) throws Exception {
String path = new File(xmlSchemaFile).getParent();
MetadataSchema mds = n... | private void addSchema(String fromAppPath, String name, boolean isPluginSchema, Element schemaPluginCatRoot, String xmlSchemaFile, String xmlSuggestFile, String xmlSubstitutionsFile, String xmlIdFile, String oasisCatFile) throws Exception {
String path = new File(xmlSchemaFile).getParent();
MetadataSchema mds = n... |
diff --git a/server/src/de/hpi/epc/validation/EPCSyntaxChecker.java b/server/src/de/hpi/epc/validation/EPCSyntaxChecker.java
index e6182db8..85bfe845 100644
--- a/server/src/de/hpi/epc/validation/EPCSyntaxChecker.java
+++ b/server/src/de/hpi/epc/validation/EPCSyntaxChecker.java
@@ -1,161 +1,161 @@
package de.hpi.epc.v... | false | true | protected void checkNodes() {
List<DiagramNode> startEvents = new ArrayList<DiagramNode>();
List<DiagramNode> endEvents = new ArrayList<DiagramNode>();
for (DiagramNode node: diagram.getNodes()) {
int in = node.getIncomingEdges().size();
int out = node.getOutgoingEdges().size();
if (in == 0 && out == 0)... | protected void checkNodes() {
List<DiagramNode> startEvents = new ArrayList<DiagramNode>();
List<DiagramNode> endEvents = new ArrayList<DiagramNode>();
for (DiagramNode node: diagram.getNodes()) {
int in = node.getIncomingEdges().size();
int out = node.getOutgoingEdges().size();
if (in == 0 && out == 0)... |
diff --git a/src/screen/MainFrame.java b/src/screen/MainFrame.java
index e2ba65e..22c9a0f 100644
--- a/src/screen/MainFrame.java
+++ b/src/screen/MainFrame.java
@@ -1,141 +1,141 @@
package screen;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.Ke... | true | true | MainFrame() {
super("Paper Soccer");
this.setSize(960, 720);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setVisible(true);
class keyListener implements KeyListener {
@Override
public void keyPressed(KeyEvent arg0) {}
@Override
public void keyReleased(KeyEvent arg0) {}
@Overr... | MainFrame() {
super("Paper Soccer");
this.setSize(960, 720);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setVisible(true);
class keyListener implements KeyListener {
@Override
public void keyPressed(KeyEvent arg0) {}
@Override
public void keyReleased(KeyEvent arg0) {}
@Overr... |
diff --git a/pandox-china/src/main/java/pandox/china/controller/api/SocialUserAPI.java b/pandox-china/src/main/java/pandox/china/controller/api/SocialUserAPI.java
index 0caa64f..258f3b7 100644
--- a/pandox-china/src/main/java/pandox/china/controller/api/SocialUserAPI.java
+++ b/pandox-china/src/main/java/pandox/china/c... | false | true | public String feed(@PathVariable("id") Long id) throws IOException {
// TODO Clean this method
SocialUser user = service.findOne(id);
if (user != null) {
StringBuilder fbUrl = new StringBuilder("https://graph.facebook.com/oauth/access_token?client_id=");
fbUrl.append(... | public String feed(@PathVariable("id") Long id) throws IOException {
// TODO Clean this method
SocialUser user = service.findOne(id);
if (user != null) {
StringBuilder fbUrl = new StringBuilder("https://graph.facebook.com/oauth/access_token?client_id=");
fbUrl.append(... |
diff --git a/core/src/test/java/org/tautua/markdownpapers/BaseTest.java b/core/src/test/java/org/tautua/markdownpapers/BaseTest.java
index d1518c8..dcc9227 100644
--- a/core/src/test/java/org/tautua/markdownpapers/BaseTest.java
+++ b/core/src/test/java/org/tautua/markdownpapers/BaseTest.java
@@ -1,107 +1,107 @@
/*
*... | true | true | protected static void compare(File expected, File actual) throws IOException, SAXException, ParserConfigurationException {
XMLUnit.setIgnoreWhitespace(true);
XMLUnit.setIgnoreAttributeOrder(true);
XMLUnit.setNormalizeWhitespace(true);
XMLUnit.setNormalize(true);
TolerantSaxD... | protected static void compare(File expected, File actual) throws IOException, SAXException, ParserConfigurationException {
XMLUnit.setIgnoreWhitespace(true);
XMLUnit.setIgnoreAttributeOrder(true);
XMLUnit.setNormalizeWhitespace(true);
XMLUnit.setNormalize(true);
TolerantSaxD... |
diff --git a/src/rajawali/primitives/Plane.java b/src/rajawali/primitives/Plane.java
index ea349317..69a7016e 100644
--- a/src/rajawali/primitives/Plane.java
+++ b/src/rajawali/primitives/Plane.java
@@ -1,84 +1,84 @@
package rajawali.primitives;
import rajawali.BaseObject3D;
public class Plane extends BaseObject... | true | true | private void init() {
int i, j;
int numVertices = (mSegmentsW + 1) * (mSegmentsH + 1);
float[] vertices = new float[numVertices * 3];
float[] textureCoords = new float[numVertices * 2];
float[] normals = new float[numVertices * 3];
float[] colors = new float[numVertices * 4];
int[] indices = new int[mSeg... | private void init() {
int i, j;
int numVertices = (mSegmentsW + 1) * (mSegmentsH + 1);
float[] vertices = new float[numVertices * 3];
float[] textureCoords = new float[numVertices * 2];
float[] normals = new float[numVertices * 3];
float[] colors = new float[numVertices * 4];
int[] indices = new int[mSeg... |
diff --git a/tvguide-client/src/main/java/com/acme/gwt/server/TvViewerJsonBootstrap.java b/tvguide-client/src/main/java/com/acme/gwt/server/TvViewerJsonBootstrap.java
index e392edf4..f1641380 100644
--- a/tvguide-client/src/main/java/com/acme/gwt/server/TvViewerJsonBootstrap.java
+++ b/tvguide-client/src/main/java/com/... | true | true | public String getViewerAsJson() {
SimpleRequestProcessor p = new SimpleRequestProcessor(ServiceLayer
.create(isld));
TvViewer user = viewerProvider.get();
if (user == null) {
return "";
}
MessageFactory factory = MessageFactoryHolder.FACTORY;
AutoBean<IdMessage> id = factory.id();
try {
id.as(... | public String getViewerAsJson() {
SimpleRequestProcessor p = new SimpleRequestProcessor(ServiceLayer
.create(isld));
TvViewer user = viewerProvider.get();
if (user == null) {
return "";
}
MessageFactory factory = MessageFactoryHolder.FACTORY;
AutoBean<IdMessage> id = factory.id();
try {
id.as(... |
diff --git a/src/main/java/com/era7/bioinfo/bio4jmodel/util/Bio4jManager.java b/src/main/java/com/era7/bioinfo/bio4jmodel/util/Bio4jManager.java
index 2175d72..bde2c73 100644
--- a/src/main/java/com/era7/bioinfo/bio4jmodel/util/Bio4jManager.java
+++ b/src/main/java/com/era7/bioinfo/bio4jmodel/util/Bio4jManager.java
@@ ... | true | true | public Bio4jManager(String dbFolder){
super(dbFolder,firstTimeCalled());
graphDbService = Neo4jManager.graphService;
Map<String,String> indexProps = new HashMap<String, String>();
indexProps.put(PROVIDER_ST, LUCENE_ST);
indexProps.put(TYPE_ST, EXACT_ST);
Map... | public Bio4jManager(String dbFolder){
super(dbFolder,firstTimeCalled(), null);
graphDbService = Neo4jManager.graphService;
Map<String,String> indexProps = new HashMap<String, String>();
indexProps.put(PROVIDER_ST, LUCENE_ST);
indexProps.put(TYPE_ST, EXACT_ST);
... |
diff --git a/src/test/java/com/zestia/rest/capsule/restapi/CapsuleTest.java b/src/test/java/com/zestia/rest/capsule/restapi/CapsuleTest.java
index 20e6d4d..c275fd7 100644
--- a/src/test/java/com/zestia/rest/capsule/restapi/CapsuleTest.java
+++ b/src/test/java/com/zestia/rest/capsule/restapi/CapsuleTest.java
@@ -1,21 +1... | true | true | public FakeApplication fakeApplication() {
Map<String, String> capsuleConfig = ImmutableMap.of(
"capsulecrm.url", "https://pearsons.capsulecrm.com",
"capsulecrm.token", "e1d2dacc6dfa2213635c458beb86674c");
return new FakeApplication(new java.io.File("."), Helpers.cla... | public FakeApplication fakeApplication() {
Map<String, String> capsuleConfig = ImmutableMap.of(
"capsulecrm.url", "https://YOUTS.capsulecrm.com",
"capsulecrm.token", "YOURS");
return new FakeApplication(new java.io.File("."), Helpers.class.getClassLoader(), capsuleCo... |
diff --git a/SeriesGuide/src/com/battlelancer/seriesguide/ui/UpcomingFragment.java b/SeriesGuide/src/com/battlelancer/seriesguide/ui/UpcomingFragment.java
index 4a72cd864..8ab8e8774 100644
--- a/SeriesGuide/src/com/battlelancer/seriesguide/ui/UpcomingFragment.java
+++ b/SeriesGuide/src/com/battlelancer/seriesguide/ui/U... | false | true | public View getView(int position, View convertView, ViewGroup parent) {
if (!mDataValid) {
throw new IllegalStateException(
"this should only be called when the cursor is valid");
}
if (!mCursor.moveToPosition(position)) {
... | public View getView(int position, View convertView, ViewGroup parent) {
if (!mDataValid) {
throw new IllegalStateException(
"this should only be called when the cursor is valid");
}
if (!mCursor.moveToPosition(position)) {
... |
diff --git a/src/org/achartengine/chart/LineChart.java b/src/org/achartengine/chart/LineChart.java
index 96c981e..2c45898 100644
--- a/src/org/achartengine/chart/LineChart.java
+++ b/src/org/achartengine/chart/LineChart.java
@@ -1,170 +1,175 @@
/**
* Copyright (C) 2009 - 2012 SC 4ViewSoft SRL
*
* Licensed unde... | true | true | public void drawSeries(Canvas canvas, Paint paint, float[] points,
SimpleSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, int startIndex) {
int length = points.length;
XYSeriesRenderer renderer = (XYSeriesRenderer) seriesRenderer;
float lineWidth = paint.getStrokeWidth();
paint.... | public void drawSeries(Canvas canvas, Paint paint, float[] points,
SimpleSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, int startIndex) {
int length = points.length;
XYSeriesRenderer renderer = (XYSeriesRenderer) seriesRenderer;
float lineWidth = paint.getStrokeWidth();
paint.... |
diff --git a/cli/src/main/java/org/jahia/server/tools/scriptrunner/ScriptRunner.java b/cli/src/main/java/org/jahia/server/tools/scriptrunner/ScriptRunner.java
index b30c01a..a28e740 100644
--- a/cli/src/main/java/org/jahia/server/tools/scriptrunner/ScriptRunner.java
+++ b/cli/src/main/java/org/jahia/server/tools/script... | true | true | public static void main(String[] args) {
// create the parser
CommandLineParser parser = new PosixParser();
try {
displayStartupBanner();
displayWarning();
userHomeDir = new File(System.getProperty("user.home"), ".jahia-scriptrunner");
tempDi... | public static void main(String[] args) {
// create the parser
CommandLineParser parser = new PosixParser();
try {
displayStartupBanner();
displayWarning();
userHomeDir = new File(System.getProperty("user.home"), ".jahia-scriptrunner");
tempDi... |
diff --git a/src/android2iphone/android/view/Window.java b/src/android2iphone/android/view/Window.java
index b1513316..fb231aef 100644
--- a/src/android2iphone/android/view/Window.java
+++ b/src/android2iphone/android/view/Window.java
@@ -1,168 +1,172 @@
/*
* Copyright (c) 2004-2009 XMLVM --- An XML-based Programmin... | false | true | private void layoutContentView() {
int widthMeasureSpec;
int heightMeasureSpec;
LayoutParams lp = contentView.getLayoutParams();
if (lp == null || lp.width == LayoutParams.WRAP_CONTENT) {
widthMeasureSpec = MeasureSpec.makeMeasureSpec((int) rect.size.width,
... | private void layoutContentView() {
int widthMeasureSpec;
int heightMeasureSpec;
LayoutParams lp = contentView.getLayoutParams();
if (lp == null || lp.width == LayoutParams.FILL_PARENT) {
widthMeasureSpec = MeasureSpec.makeMeasureSpec((int) rect.size.width,
... |
diff --git a/src/com/turt2live/antishare/ASListener.java b/src/com/turt2live/antishare/ASListener.java
index 21d59ae2..2cc18907 100644
--- a/src/com/turt2live/antishare/ASListener.java
+++ b/src/com/turt2live/antishare/ASListener.java
@@ -1,1913 +1,1913 @@
/*************************************************************... | false | true | public void onBlockBreak(BlockBreakEvent event){
if(event.isCancelled())
return;
long timerId = plugin.getTimer().start(event.getClass(), "BLOCK BREAK");
Player player = event.getPlayer();
Block block = event.getBlock();
AlertType type = AlertType.ILLEGAL;
boolean special = false;
boolean region = fal... | public void onBlockBreak(BlockBreakEvent event){
if(event.isCancelled())
return;
long timerId = plugin.getTimer().start(event.getClass(), "BLOCK BREAK");
Player player = event.getPlayer();
Block block = event.getBlock();
AlertType type = AlertType.ILLEGAL;
boolean special = false;
boolean region = fal... |
diff --git a/maven-plugins/maven-projecthelp-plugin/src/main/java/org/apache/maven/plugins/projecthelp/DescribeMojo.java b/maven-plugins/maven-projecthelp-plugin/src/main/java/org/apache/maven/plugins/projecthelp/DescribeMojo.java
index 7532b8773..39ecdddab 100644
--- a/maven-plugins/maven-projecthelp-plugin/src/main/j... | true | true | public void execute()
throws MojoExecutionException
{
String pluginPrefix = null;
if ( plugin != null && plugin.length() > 0 )
{
if ( plugin.indexOf( ":" ) > -1 )
{
String[] pluginParts = plugin.split( ":" );
switch ( plug... | public void execute()
throws MojoExecutionException
{
String pluginPrefix = null;
if ( plugin != null && plugin.length() > 0 )
{
if ( plugin.indexOf( ":" ) > -1 )
{
String[] pluginParts = plugin.split( ":" );
switch ( plug... |
diff --git a/src/test/java/com/javaetmoi/core/batch/test/TestParallelAndPartitioning.java b/src/test/java/com/javaetmoi/core/batch/test/TestParallelAndPartitioning.java
index 26ce291..8c5f3df 100644
--- a/src/test/java/com/javaetmoi/core/batch/test/TestParallelAndPartitioning.java
+++ b/src/test/java/com/javaetmoi/core... | true | true | public void launchJob() throws Exception {
// Launch the parallelAndPartitioningJob
JobExecution execution = testUtils.launchJob();
// Batch Status
assertEquals(ExitStatus.COMPLETED, execution.getExitStatus());
// Movies
assertEquals("8 movies", 8, getStepExecution(... | public void launchJob() throws Exception {
// Launch the parallelAndPartitioningJob
JobExecution execution = testUtils.launchJob();
// Batch Status
assertEquals(ExitStatus.COMPLETED, execution.getExitStatus());
// Movies
assertEquals("8 movies", 8, getStepExecution(... |
diff --git a/src/com/example/glucoseapp/AdjustMealActivity.java b/src/com/example/glucoseapp/AdjustMealActivity.java
index e370e30..df6d77a 100644
--- a/src/com/example/glucoseapp/AdjustMealActivity.java
+++ b/src/com/example/glucoseapp/AdjustMealActivity.java
@@ -1,127 +1,127 @@
package com.example.glucoseapp;
i... | false | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_adjust_meal);
calendar = Calendar.getInstance();
context = this.getApplicationContext();
food_item = (FoodItem) getIntent().getParcelableExtra("FOOD_ITEM");
ServingSizeGrams = foo... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_adjust_meal);
calendar = Calendar.getInstance();
context = this.getApplicationContext();
food_item = (FoodItem) getIntent().getParcelableExtra("FOOD_ITEM");
ServingSizeGrams = foo... |
diff --git a/Implementation/Workspace/Simulation/src/server/SpeciesServerApplication.java b/Implementation/Workspace/Simulation/src/server/SpeciesServerApplication.java
index 9074fbc..a65dc32 100644
--- a/Implementation/Workspace/Simulation/src/server/SpeciesServerApplication.java
+++ b/Implementation/Workspace/Simulat... | true | true | public SpeciesServerApplication(){
SpeciesStats loup = new SpeciesStats();
loup.setNom("Loup");
loup.setDescriptif("Carnivore méchant");
loup.setIsHerbivorious(false);
loup.setType("Canis Rufus");
loup.setSmellPoint(270.0);
loup.setVisionPoint(45.0);
loup.setMovePoint(120000.0);
loup.setMaxLifetime... | public SpeciesServerApplication(){
SpeciesStats loup = new SpeciesStats();
loup.setNom("Loup");
loup.setDescriptif("Carnivore méchant");
loup.setIsHerbivorious(false);
loup.setType("Canis Rufus");
loup.setSmellPoint(270.0);
loup.setVisionPoint(45.0);
loup.setMovePoint(120000.0);
loup.setMaxLifetime... |
diff --git a/puyopuyo-android/src/com/tacoid/puyopuyo/PuyoPuyo.java b/puyopuyo-android/src/com/tacoid/puyopuyo/PuyoPuyo.java
index 8f21e0b..b5632b5 100644
--- a/puyopuyo-android/src/com/tacoid/puyopuyo/PuyoPuyo.java
+++ b/puyopuyo-android/src/com/tacoid/puyopuyo/PuyoPuyo.java
@@ -1,76 +1,77 @@
package com.tacoid.puyop... | true | true | private void loadAssets() {
/*** Textures ***/
manager = new AssetManager();
manager.load("images/fond_solo.png", Texture.class);
manager.load("images/perdu-fr.png", Texture.class);
manager.load("images/gagne-fr.png", Texture.class);
manager.load("images/continuer-fr.png", Texture.class);
manag... | private void loadAssets() {
/*** Textures ***/
manager = new AssetManager();
manager.load("images/fond_solo.png", Texture.class);
manager.load("images/perdu-fr.png", Texture.class);
manager.load("images/gagne-fr.png", Texture.class);
manager.load("images/continuer-fr.png", Texture.class);
manag... |
diff --git a/test/org/pentaho/metadata/registry/SimpleRegistryTest.java b/test/org/pentaho/metadata/registry/SimpleRegistryTest.java
index 722de89f..b4ce0c0d 100644
--- a/test/org/pentaho/metadata/registry/SimpleRegistryTest.java
+++ b/test/org/pentaho/metadata/registry/SimpleRegistryTest.java
@@ -1,448 +1,448 @@
pack... | true | true | public void testFactory () throws Exception {
RegistryFactory factory = RegistryFactory.getInstance();
Assert.assertNotNull( "Factory is null", factory );
SimpleFileRegistry metadataRegistry = new SimpleFileRegistry();
metadataRegistry.setFilePath("bin/mdregtest.xml");
Assert.assertEquals("File path is... | public void testFactory () throws Exception {
RegistryFactory factory = RegistryFactory.getInstance();
Assert.assertNotNull( "Factory is null", factory );
SimpleFileRegistry metadataRegistry = new SimpleFileRegistry();
metadataRegistry.setFilePath("bin/mdregtest.xml");
Assert.assertEquals("File path is... |
diff --git a/Chat/src/Communications/TCP.java b/Chat/src/Communications/TCP.java
index db06300..2c7e09f 100644
--- a/Chat/src/Communications/TCP.java
+++ b/Chat/src/Communications/TCP.java
@@ -1,172 +1,175 @@
package Communications;
import java.io.*;
import java.net.*;
import java.util.Enumeration;
import java.u... | true | true | public Message read(){
if (!needsMore) {
if (queue.size() >= size) {
System.out.println("Getting first");
current = new byte[size];
for (int i = 0; i < size; i++) {
current[i] = queue.poll();
}
moreNeeded=parser.parse(current);
if(0>moreNeeded){
System.out.println("Parser Error")... | public Message read(){
if (!needsMore) {
if(queue.size()!=0){
System.out.println(queue.size());
}
if (queue.size() >= size) {
System.out.println("Getting first");
current = new byte[size];
for (int i = 0; i < size; i++) {
current[i] = queue.poll();
}
moreNeeded=parser.parse(curr... |
diff --git a/javafx.editor/src/org/netbeans/modules/javafx/editor/imports/MarkUnusedImportsTask.java b/javafx.editor/src/org/netbeans/modules/javafx/editor/imports/MarkUnusedImportsTask.java
index 2bbc7348..4bccbf51 100644
--- a/javafx.editor/src/org/netbeans/modules/javafx/editor/imports/MarkUnusedImportsTask.java
+++... | true | true | public void run(CompilationInfo cp) throws Exception {
try {
if (canceled.get() || file.get() == null || !file.get().isValid()) return;
final JavaFXDocument document = getDoc(file.get());
if (document == null || canceled.get()) return;
ArrayList<ErrorDescript... | public void run(CompilationInfo cp) throws Exception {
try {
if (canceled.get() || file.get() == null || !file.get().isValid()) return;
final JavaFXDocument document = getDoc(file.get());
if (document == null || canceled.get()) return;
ArrayList<ErrorDescript... |
diff --git a/flume-core/src/main/java/com/cloudera/flume/core/EventImpl.java b/flume-core/src/main/java/com/cloudera/flume/core/EventImpl.java
index 63f19967..42c0365b 100644
--- a/flume-core/src/main/java/com/cloudera/flume/core/EventImpl.java
+++ b/flume-core/src/main/java/com/cloudera/flume/core/EventImpl.java
@@ -1... | true | true | public EventImpl(byte[] s, long timestamp, Priority pri, long nanoTime,
String host, Map<String, byte[]> fields) {
super(fields);
Preconditions.checkNotNull(s,
"Failed when attempting to create event with null body");
Preconditions.checkArgument(s.length <= MAX_BODY_SIZE, "Failed when "
... | public EventImpl(byte[] s, long timestamp, Priority pri, long nanoTime,
String host, Map<String, byte[]> fields) {
super(fields);
Preconditions.checkNotNull(s,
"Failed when attempting to create event with null body");
Preconditions.checkArgument(s.length <= MAX_BODY_SIZE, "Failed when "
... |
diff --git a/jaxrs-provider/src/main/java/org/developers/blog/osgi/webservice/jaxrs/activator/JAXRSProviderWhiteboardActivator.java b/jaxrs-provider/src/main/java/org/developers/blog/osgi/webservice/jaxrs/activator/JAXRSProviderWhiteboardActivator.java
index 1e0ba92..dade1dc 100644
--- a/jaxrs-provider/src/main/java/or... | true | true | public void start(BundleContext context) throws Exception {
RestProviderServiceTrackerCustomizer restProviderServiceTrackerCustomizer =
new RestProviderServiceTrackerCustomizer(context);
HttpServiceTrackerCustomizer httpServiceTrackerCustomizer =
new HttpServiceTrack... | public void start(BundleContext context) throws Exception {
RestProviderServiceTrackerCustomizer restProviderServiceTrackerCustomizer =
new RestProviderServiceTrackerCustomizer(context);
HttpServiceTrackerCustomizer httpServiceTrackerCustomizer =
new HttpServiceTrack... |
diff --git a/src/web/api/src/main/java/org/geogit/web/api/commands/UpdateRefWeb.java b/src/web/api/src/main/java/org/geogit/web/api/commands/UpdateRefWeb.java
index 5ee40a0e..878f685e 100644
--- a/src/web/api/src/main/java/org/geogit/web/api/commands/UpdateRefWeb.java
+++ b/src/web/api/src/main/java/org/geogit/web/api/... | true | true | public void run(CommandContext context) {
if (name == null) {
throw new CommandSpecException("No name was given.");
} else if (delete == false && newValue.equals(ObjectId.NULL)) {
throw new CommandSpecException(
"Nothing specified to update with, must spec... | public void run(CommandContext context) {
if (name == null) {
throw new CommandSpecException("No name was given.");
} else if (delete == false && newValue.equals(ObjectId.NULL)) {
throw new CommandSpecException(
"Nothing specified to update with, must spec... |
diff --git a/src/com/gitblit/utils/TimeUtils.java b/src/com/gitblit/utils/TimeUtils.java
index cd8e895..662025b 100644
--- a/src/com/gitblit/utils/TimeUtils.java
+++ b/src/com/gitblit/utils/TimeUtils.java
@@ -1,274 +1,280 @@
/*
* Copyright 2011 gitblit.com.
*
* Licensed under the Apache License, Version 2.0 (the... | false | true | private static String timeAgo(Date date, boolean css) {
if (isToday(date) || isYesterday(date)) {
int mins = minutesAgo(date, true);
if (mins >= 120) {
if (css) {
return "age1";
}
int hours = hoursAgo(date, true);
if (hours > 23) {
return "yesterday";
} else {
return hours + ... | private static String timeAgo(Date date, boolean css) {
if (isToday(date) || isYesterday(date)) {
int mins = minutesAgo(date, true);
if (mins >= 120) {
if (css) {
return "age1";
}
int hours = hoursAgo(date, true);
if (hours > 23) {
return "yesterday";
} else {
return hours + ... |
diff --git a/test/org/nexml/model/TestAnnotation.java b/test/org/nexml/model/TestAnnotation.java
index d2f4dbb..77b8a6c 100644
--- a/test/org/nexml/model/TestAnnotation.java
+++ b/test/org/nexml/model/TestAnnotation.java
@@ -1,174 +1,174 @@
package org.nexml.model;
import java.io.ByteArrayInputStream;
import java.... | true | true | public void testAnnotation () {
/**
* First, let's create a document object. If this throws
* an exception, I guess that means we failed our first test.
*/
Document nexmlDocument = null;
try {
nexmlDocument = DocumentFactory.createDocument();
} catch (ParserConfigurationException e) {
Assert.... | public void testAnnotation () {
/**
* First, let's create a document object. If this throws
* an exception, I guess that means we failed our first test.
*/
Document nexmlDocument = null;
try {
nexmlDocument = DocumentFactory.createDocument();
} catch (ParserConfigurationException e) {
Assert.... |
diff --git a/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/traintest/ComponentCache.java b/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/traintest/ComponentCache.java
index 52f7bbcca..5788fc29e 100644
--- a/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/traintest/ComponentCache.java
+++ b/lenskit... | true | true | public Object call() throws IOException, NullComponentException {
File cacheFile = null;
if (cacheDir != null) {
UUID key = getKey(node);
cacheFile = new File(cacheDir, key.toString() + ".dat.gz");
if (cacheFile.exists()) {
... | public Object call() throws IOException, NullComponentException {
File cacheFile = null;
if (cacheDir != null) {
UUID key = getKey(node);
cacheFile = new File(cacheDir, key.toString() + ".dat.gz");
if (cacheFile.exists()) {
... |
diff --git a/cmd/src/kg/apc/cmdtools/AbstractCMDTool.java b/cmd/src/kg/apc/cmdtools/AbstractCMDTool.java
index 19cf27cd..fc77a596 100644
--- a/cmd/src/kg/apc/cmdtools/AbstractCMDTool.java
+++ b/cmd/src/kg/apc/cmdtools/AbstractCMDTool.java
@@ -1,31 +1,34 @@
package kg.apc.cmdtools;
import java.io.PrintStream;
impor... | true | true | protected int getLogicValue(String string) {
if (string.equalsIgnoreCase("on")) {
return 1;
}
if (string.equalsIgnoreCase("1")) {
return 1;
}
if (string.equalsIgnoreCase("yes")) {
return 1;
}
return 0;
}
| protected int getLogicValue(String string) {
if (string.equalsIgnoreCase("on")) {
return 1;
}
if (string.equalsIgnoreCase("1")) {
return 1;
}
if (string.equalsIgnoreCase("yes")) {
return 1;
}
if (string.equalsIgnoreCase("tru... |
diff --git a/src/main/java/hudson/plugins/clearcase/ucm/UcmMakeBaseline.java b/src/main/java/hudson/plugins/clearcase/ucm/UcmMakeBaseline.java
index df8a9e2..caedfb2 100644
--- a/src/main/java/hudson/plugins/clearcase/ucm/UcmMakeBaseline.java
+++ b/src/main/java/hudson/plugins/clearcase/ucm/UcmMakeBaseline.java
@@ -1,4... | true | true | public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException {
SCM scm = build.getProject().getScm();
if (scm instanceof ClearCaseUcmSCM) {
ClearCaseUcmSCM ucm = (ClearCaseUcmSCM) scm;
VariableResolver<String>... | public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException {
SCM scm = build.getProject().getScm();
if (scm instanceof ClearCaseUcmSCM) {
ClearCaseUcmSCM ucm = (ClearCaseUcmSCM) scm;
VariableResolver<String>... |
diff --git a/core-entry/src/test/java/org/apache/directory/server/core/entry/ServerStringValueTest.java b/core-entry/src/test/java/org/apache/directory/server/core/entry/ServerStringValueTest.java
index ef40a12be7..bcd8b45b1c 100644
--- a/core-entry/src/test/java/org/apache/directory/server/core/entry/ServerStringValue... | false | true | @Test public void testConstrainedString()
{
s.setSyntaxChecker( new SyntaxChecker() {
public String getSyntaxOid() { return "1.1.1.1"; }
public boolean isValidSyntax( Object value )
{
if ( value instanceof String )
{
... | @Test public void testConstrainedString()
{
s.setSyntaxChecker( new SyntaxChecker( "1.1.1.1" ) {
public boolean isValidSyntax( Object value )
{
if ( value instanceof String )
{
String strval = ( String ) value;
... |
diff --git a/SpaceTrader/src/com/cs2340/spacetrader/Ship.java b/SpaceTrader/src/com/cs2340/spacetrader/Ship.java
index e019bbc..256fdb8 100644
--- a/SpaceTrader/src/com/cs2340/spacetrader/Ship.java
+++ b/SpaceTrader/src/com/cs2340/spacetrader/Ship.java
@@ -1,70 +1,70 @@
package com.cs2340.spacetrader;
//planet
pub... | true | true | public void deltaFuel(int fuelAmount)
{
int newFuel = this.fuel+fuelAmount;
if (newFuel < 0)
this.fuel=0;
else if (newFuel > this.fuelCapacity)
this.fuel = this.fuelCapacity;
else
this.fuel = newFuel;
}
| public void deltaFuel(int fuelAmount)
{
int newFuel = this.fuel-fuelAmount;
if (newFuel < 0)
this.fuel=0;
else if (newFuel > this.fuelCapacity)
this.fuel = this.fuelCapacity;
else
this.fuel = newFuel;
}
|
diff --git a/src/java/org/wyona/yanel/impl/map/MapImpl.java b/src/java/org/wyona/yanel/impl/map/MapImpl.java
index 10811b6c0..c9e01bbe9 100644
--- a/src/java/org/wyona/yanel/impl/map/MapImpl.java
+++ b/src/java/org/wyona/yanel/impl/map/MapImpl.java
@@ -1,54 +1,54 @@
/*
* Copyright 2006 Wyona
*
* Licensed under ... | true | true | public MapImpl() {
try {
Repository repo = new RepositoryFactory().newRepository("yanel");
} catch(Exception e) {
System.err.println(e);
}
}
| public MapImpl() {
try {
Repository repo = new RepositoryFactory().newRepository("yanel");
} catch(Exception e) {
System.err.println("ERROR 2432423: " + e);
}
}
|
diff --git a/src/com/imaginea/android/sugarcrm/ServiceHelper.java b/src/com/imaginea/android/sugarcrm/ServiceHelper.java
index 9de3158..1a4528e 100644
--- a/src/com/imaginea/android/sugarcrm/ServiceHelper.java
+++ b/src/com/imaginea/android/sugarcrm/ServiceHelper.java
@@ -1,67 +1,68 @@
package com.imaginea.android.sug... | false | true | public static void startServiceForDelete(Context context, Uri uri, String module, String beanId) {
Intent serviceIntent = new Intent(context, SugarService.class);
serviceIntent.setData(uri);
Map<String, String> nameValuePairs = new LinkedHashMap<String, String>();
nameValuePairs.put(... | public static void startServiceForDelete(Context context, Uri uri, String module, String beanId) {
Intent serviceIntent = new Intent(context, SugarService.class);
serviceIntent.setData(uri);
Map<String, String> nameValuePairs = new LinkedHashMap<String, String>();
nameValuePairs.put(... |
diff --git a/src/Main/Client.java b/src/Main/Client.java
index 24c119c..1d43250 100644
--- a/src/Main/Client.java
+++ b/src/Main/Client.java
@@ -1,334 +1,334 @@
package Main;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.... | true | true | public void StartClient(int passedPort, String passedTarget) {
// Start up client networking
network = new Networking(mylog, passedPort, passedTarget);
// Bring the created socket into this scope
Socket MySock = network.PassBackClient();
// Bind I/O to the socket
network.BringUp(MySock);
// Prep and beg... | public void StartClient(int passedPort, String passedTarget) {
// Start up client networking
network = new Networking(mylog, passedPort, passedTarget);
// Bring the created socket into this scope
Socket MySock = network.PassBackClient();
// Bind I/O to the socket
network.BringUp(MySock);
// Prep and beg... |
diff --git a/src/com/redhat/ceylon/compiler/java/codegen/BoxingDeclarationVisitor.java b/src/com/redhat/ceylon/compiler/java/codegen/BoxingDeclarationVisitor.java
index e81e23a9a..3a6e35b6b 100644
--- a/src/com/redhat/ceylon/compiler/java/codegen/BoxingDeclarationVisitor.java
+++ b/src/com/redhat/ceylon/compiler/java/c... | true | true | private void setBoxingState(TypedDeclaration declaration, TypedDeclaration refinedDeclaration) {
ProducedType type = declaration.getType();
if(type == null){
// an error must have already been reported
return;
}
// inherit underlying type constraints
i... | private void setBoxingState(TypedDeclaration declaration, TypedDeclaration refinedDeclaration) {
ProducedType type = declaration.getType();
if(type == null){
// an error must have already been reported
return;
}
// inherit underlying type constraints
i... |
diff --git a/languish-base/src/main/java/com/hjfreyer/util/Tree.java b/languish-base/src/main/java/com/hjfreyer/util/Tree.java
index 9f4db4b..471c428 100644
--- a/languish-base/src/main/java/com/hjfreyer/util/Tree.java
+++ b/languish-base/src/main/java/com/hjfreyer/util/Tree.java
@@ -1,95 +1,95 @@
package com.hjfreyer... | true | true | public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Tree other = (Tree) obj;
if (node == null) {
if (other.node != null)
return false;
} else if (!node.equals(other.node... | public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Tree<?> other = (Tree<?>) obj;
if (node == null) {
if (other.node != null)
return false;
} else if (!node.equals(othe... |
diff --git a/src/biz/bokhorst/xprivacy/SettingsDialog.java b/src/biz/bokhorst/xprivacy/SettingsDialog.java
index f9101854..05eb7aab 100644
--- a/src/biz/bokhorst/xprivacy/SettingsDialog.java
+++ b/src/biz/bokhorst/xprivacy/SettingsDialog.java
@@ -1,574 +1,575 @@
package biz.bokhorst.xprivacy;
import java.security.I... | false | true | public static void edit(final ActivityBase context, ApplicationInfoEx appInfo) {
final int userId = Util.getUserId(Process.myUid());
final int uid = (appInfo == null ? userId : appInfo.getUid());
// Build dialog
String themeName = PrivacyManager.getSetting(userId, PrivacyManager.cSettingTheme, "", false);
i... | public static void edit(final ActivityBase context, ApplicationInfoEx appInfo) {
final int userId = Util.getUserId(Process.myUid());
final int uid = (appInfo == null ? userId : appInfo.getUid());
// Build dialog
String themeName = PrivacyManager.getSetting(userId, PrivacyManager.cSettingTheme, "", false);
i... |
diff --git a/ted-ui/gwt/GwtTed/src/nu/ted/ui/gwt/server/page/SearchServiceImpl.java b/ted-ui/gwt/GwtTed/src/nu/ted/ui/gwt/server/page/SearchServiceImpl.java
index efb0d78..4b1a2de 100644
--- a/ted-ui/gwt/GwtTed/src/nu/ted/ui/gwt/server/page/SearchServiceImpl.java
+++ b/ted-ui/gwt/GwtTed/src/nu/ted/ui/gwt/server/page/Se... | true | true | public List<String> search(final String filter) {
JavaClient tedClient = new JavaClient("localhost", 9030);
final ArrayList<String> shows = new ArrayList<String>();
tedClient.run(new ClientAction() {
@Override
public void run(Client client) throws TException {
List<SeriesSearchResult> found = clien... | public List<String> search(final String filter) {
JavaClient tedClient = new JavaClient("localhost", 9030);
final ArrayList<String> shows = new ArrayList<String>();
tedClient.run(new ClientAction() {
@Override
public void run(Client client) throws TException {
List<SeriesSearchResult> found = clien... |
diff --git a/src/com/gmail/jaquadro/oreplus/OrePopulator.java b/src/com/gmail/jaquadro/oreplus/OrePopulator.java
index dbb47f0..760acd4 100644
--- a/src/com/gmail/jaquadro/oreplus/OrePopulator.java
+++ b/src/com/gmail/jaquadro/oreplus/OrePopulator.java
@@ -1,158 +1,158 @@
package com.gmail.jaquadro.oreplus;
import ... | true | true | private void generate (World world, Random rand, int x, int y, int z, int size, OPMaterial material)
{
double rpi = rand.nextDouble() * Math.PI;
double x1 = x + 8 + Math.sin(rpi) * size / 8.0F;
double x2 = x + 8 - Math.sin(rpi) * size / 8.0F;
double z1 = z + 8 + Math.cos(rpi) * ... | private void generate (World world, Random rand, int x, int y, int z, int size, OPMaterial material)
{
double rpi = rand.nextDouble() * Math.PI;
double x1 = x + 8 + Math.sin(rpi) * size / 8.0F;
double x2 = x + 8 - Math.sin(rpi) * size / 8.0F;
double z1 = z + 8 + Math.cos(rpi) * ... |
diff --git a/src/cryptocast/client/ServersFragment.java b/src/cryptocast/client/ServersFragment.java
index c67b4d8..7f2b54a 100644
--- a/src/cryptocast/client/ServersFragment.java
+++ b/src/cryptocast/client/ServersFragment.java
@@ -1,52 +1,52 @@
package cryptocast.client;
import java.net.InetSocketAddress;
impo... | true | true | public ServersFragment(ClientApplication app, String message, final OnServerSelected callback) {
super(message);
listing = new ListView(app);
listing.setAdapter(new ServerListAdapter(
app, app.getResources(), app.getServerHistory().getServerList()));
listing.setCl... | public ServersFragment(ClientApplication app, String message, final OnServerSelected callback) {
super(message);
listing = new ListView(app);
listing.setAdapter(new ServerListAdapter(
app, app.getServerHistory().getServerList()));
listing.setClickable(true);
... |
diff --git a/source/ictrobot/gems/magnetic/item/RepelPlayer.java b/source/ictrobot/gems/magnetic/item/RepelPlayer.java
index 55a70e5..5d04d8f 100644
--- a/source/ictrobot/gems/magnetic/item/RepelPlayer.java
+++ b/source/ictrobot/gems/magnetic/item/RepelPlayer.java
@@ -1,50 +1,50 @@
package ictrobot.gems.magnetic.item;... | true | true | public RepelPlayer(int par1, EnumToolMaterial par2EnumToolMaterial, int TmpLevel) {
super(par1, 0, par2EnumToolMaterial, Block.blocksList);
setMaxDamage((12*Level)-1);
setUnlocalizedName("RepelPlayerLvl" + TmpLevel);
setCreativeTab(CreativeTabs.tabTools);
setTextureName(Core.ModID + ":RepelPlayer"... | public RepelPlayer(int par1, EnumToolMaterial par2EnumToolMaterial, int TmpLevel) {
super(par1, 0, par2EnumToolMaterial, Block.blocksList);
setMaxDamage((12*TmpLevel)-1);
setUnlocalizedName("RepelPlayerLvl" + TmpLevel);
setCreativeTab(CreativeTabs.tabTools);
setTextureName(Core.ModID + ":RepelPlay... |
diff --git a/srcj/com/sun/electric/tool/generator/layout/Tech.java b/srcj/com/sun/electric/tool/generator/layout/Tech.java
index db195d891..f5789aa5c 100755
--- a/srcj/com/sun/electric/tool/generator/layout/Tech.java
+++ b/srcj/com/sun/electric/tool/generator/layout/Tech.java
@@ -1,384 +1,392 @@
/* -*- tab-width: 4 -*... | false | true | public static void setTechnology(String techNm) {
error(!techNm.equals("mocmos") && !techNm.equals("tsmc90"),
"LayoutLib only supports two technologies: mocmos or tsmc90: "+techNm);
isTsmc90 = techNm.equals("tsmc90");
tech = Technology.findTechnology(techNm);
layerNms = isTsmc90 ? TSMC90_LAYER_NAMES : ... | public static void setTechnology(String techNm) {
error(!techNm.equals("mocmos") && !techNm.equals("tsmc90"),
"LayoutLib only supports two technologies: mocmos or tsmc90: "+techNm);
isTsmc90 = techNm.equals("tsmc90");
tech = Technology.findTechnology(techNm);
layerNms = isTsmc90 ? TSMC90_LAYER_NAMES : ... |
diff --git a/beam-globalbedo-bbdr-retrieval/src/main/java/org/esa/beam/globalbedo/bbdr/LandcoverLevel2.java b/beam-globalbedo-bbdr-retrieval/src/main/java/org/esa/beam/globalbedo/bbdr/LandcoverLevel2.java
index ccf621e9..4c251100 100644
--- a/beam-globalbedo-bbdr-retrieval/src/main/java/org/esa/beam/globalbedo/bbdr/Lan... | true | true | public void initialize() throws OperatorException {
Product aotProduct;
if (step1) {
aotProduct = processAot(sourceProduct);
if (aotProduct == GaMasterOp.EMPTY_PRODUCT) {
setTargetProduct(GaMasterOp.EMPTY_PRODUCT);
return;
}
... | public void initialize() throws OperatorException {
Product aotProduct;
if (step1) {
aotProduct = processAot(sourceProduct);
if (aotProduct == GaMasterOp.EMPTY_PRODUCT) {
setTargetProduct(GaMasterOp.EMPTY_PRODUCT);
return;
}
... |
diff --git a/src/com/archmageinc/RealStore/PriceSetListener.java b/src/com/archmageinc/RealStore/PriceSetListener.java
index 41b4036..4ee19ec 100644
--- a/src/com/archmageinc/RealStore/PriceSetListener.java
+++ b/src/com/archmageinc/RealStore/PriceSetListener.java
@@ -1,131 +1,131 @@
package com.archmageinc.RealStore;... | true | true | public void onPlayerInteract(PlayerInteractEvent event){
//We don't care about players other than the owner
if(!event.getPlayer().equals(owner))
return;
//We don't care about interactions with non-chests
if(!(event.getClickedBlock().getState() instanceof Chest))
return;
Chest chest = (Chest) event.g... | public void onPlayerInteract(PlayerInteractEvent event){
//We don't care about players other than the owner
if(!event.getPlayer().equals(owner))
return;
//We don't care about interactions with non-chests
if(!(event.getClickedBlock().getState() instanceof Chest))
return;
Chest chest = (Chest) event.g... |
diff --git a/src/de/MrX13415/Massband/MassbandCommandExecuter.java b/src/de/MrX13415/Massband/MassbandCommandExecuter.java
index b29c05d..d00aaef 100644
--- a/src/de/MrX13415/Massband/MassbandCommandExecuter.java
+++ b/src/de/MrX13415/Massband/MassbandCommandExecuter.java
@@ -1,132 +1,132 @@
package de.MrX13415.Massba... | false | true | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (sender instanceof Player) {
Player player = (Player) sender;
PlayerVars tmpVars = null;
//search for current player ...
for (int playerIndex = 0; playerIndex < Massband.getPla... | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (sender instanceof Player) {
Player player = (Player) sender;
PlayerVars tmpVars = null;
//search for current player ...
for (int playerIndex = 0; playerIndex < Massband.getPla... |
diff --git a/src/main/java/mikera/arrayz/AbstractArray.java b/src/main/java/mikera/arrayz/AbstractArray.java
index 17c85c56..b4640104 100644
--- a/src/main/java/mikera/arrayz/AbstractArray.java
+++ b/src/main/java/mikera/arrayz/AbstractArray.java
@@ -1,182 +1,183 @@
package mikera.arrayz;
import java.util.ArrayList... | false | true | public void set (INDArray a) {
int tdims=this.dimensionality();
int adims=a.dimensionality();
if (adims<tdims) {
int sc=getShape()[0];
for (int i=0; i<sc; i++) {
INDArray s=slice(i);
s.set(a);
}
} else if (adims==tdims) {
int sc=sliceCount();
for (int i=0; i<sc; i++) {
INDArray s=sli... | public void set (INDArray a) {
int tdims=this.dimensionality();
int adims=a.dimensionality();
if (adims<tdims) {
int sc=getShape()[0];
for (int i=0; i<sc; i++) {
INDArray s=slice(i);
s.set(a);
}
} else if (adims==tdims) {
int sc=sliceCount();
for (int i=0; i<sc; i++) {
INDArray s=sli... |
diff --git a/src/test/java/org/fuin/srcgen4j/core/emf/AbstractHelloTstGen.java b/src/test/java/org/fuin/srcgen4j/core/emf/AbstractHelloTstGen.java
index de69b29..51b6a98 100644
--- a/src/test/java/org/fuin/srcgen4j/core/emf/AbstractHelloTstGen.java
+++ b/src/test/java/org/fuin/srcgen4j/core/emf/AbstractHelloTstGen.java... | true | true | public final GeneratedArtifact create(final Greeting greeting) throws GenerateException {
try {
final String src = FileUtils.readFileToString(new File(
"src/test/resources/AbstractHello.template"));
final Map<Object, Object> vars = new HashMap<Object, Object>();
... | public final GeneratedArtifact create(final Greeting greeting) throws GenerateException {
try {
final String src = FileUtils.readFileToString(new File(
"src/test/resources/AbstractHello.template"));
final Map<Object, Object> vars = new HashMap<Object, Object>();
... |
diff --git a/src/main/java/org/javamoney/moneta/format/internal/DefaultAmountFormatProviderSpi.java b/src/main/java/org/javamoney/moneta/format/internal/DefaultAmountFormatProviderSpi.java
index f4390ca..95130ab 100644
--- a/src/main/java/org/javamoney/moneta/format/internal/DefaultAmountFormatProviderSpi.java
+++ b/sr... | true | true | public MonetaryAmountFormat getFormat(AmountStyle style) {
Objects.requireNonNull(style, "AmountStyle required");
return new DefaultMonetaryAmountFormat(style);
}
| public MonetaryAmountFormat getAmountFormat(AmountStyle style) {
Objects.requireNonNull(style, "AmountStyle required");
return new DefaultMonetaryAmountFormat(style);
}
|
diff --git a/src/org/ssgwt/share/i18n/impl/DateRecord.java b/src/org/ssgwt/share/i18n/impl/DateRecord.java
index f5ca593..db42f01 100644
--- a/src/org/ssgwt/share/i18n/impl/DateRecord.java
+++ b/src/org/ssgwt/share/i18n/impl/DateRecord.java
@@ -1,345 +1,346 @@
/*
* Copyright 2008 Google Inc.
*
* Licensed under t... | false | true | public boolean calcDate(SSDate date, boolean strict) {
// Year 0 is 1 BC, and so on.
if (this.era == 0 && this.year > 0) {
this.year = -(this.year - 1);
}
if (this.year > Integer.MIN_VALUE) {
date.setYear(this.year - JS_START_YEAR);
}
// "setMonth" and "setDate" is a little bit t... | public boolean calcDate(SSDate date, boolean strict) {
// Year 0 is 1 BC, and so on.
if (this.era == 0 && this.year > 0) {
this.year = -(this.year - 1);
}
if (this.year > Integer.MIN_VALUE) {
date.setYear(this.year - JS_START_YEAR);
}
// "setMonth" and "setDate" is a little bit t... |
diff --git a/src/java/org/infoglue/cms/controllers/kernel/impl/simple/ContentController.java b/src/java/org/infoglue/cms/controllers/kernel/impl/simple/ContentController.java
index d6774205e..6afcda9a6 100755
--- a/src/java/org/infoglue/cms/controllers/kernel/impl/simple/ContentController.java
+++ b/src/java/org/infogl... | true | true | public /*synchronized*/ Content create(Database db, Integer parentContentId, Integer contentTypeDefinitionId, Integer repositoryId, ContentVO contentVO) throws ConstraintException, SystemException, Exception
{
Content content = null;
try
{
Content parentContent = ... | public /*synchronized*/ Content create(Database db, Integer parentContentId, Integer contentTypeDefinitionId, Integer repositoryId, ContentVO contentVO) throws ConstraintException, SystemException, Exception
{
Content content = null;
try
{
Content parentContent = ... |
diff --git a/src/main/java/us/codecraft/blackhole/connector/UDPForwardConnection.java b/src/main/java/us/codecraft/blackhole/connector/UDPForwardConnection.java
index a1d465d..50b5c8f 100755
--- a/src/main/java/us/codecraft/blackhole/connector/UDPForwardConnection.java
+++ b/src/main/java/us/codecraft/blackhole/connect... | true | true | public byte[] forward(final byte[] query) {
if (configure.getDnsHost() == null) {
logger.warn("The forward DNS server is not configured!");
return null;
}
byte[] result = null;
FutureTask<Object> future = new FutureTask<Object>(
new Callable<Object>() {
public Object call() throws IOException {... | public byte[] forward(final byte[] query) {
if (configure.getDnsHost() == null) {
logger.warn("The forward DNS server is not configured!");
return null;
}
byte[] result = null;
FutureTask<Object> future = new FutureTask<Object>(
new Callable<Object>() {
public Object call() throws IOException {... |
diff --git a/src/org/linphone/RemoteProvisioning.java b/src/org/linphone/RemoteProvisioning.java
index c44af7a..3e35ec1 100644
--- a/src/org/linphone/RemoteProvisioning.java
+++ b/src/org/linphone/RemoteProvisioning.java
@@ -1,119 +1,120 @@
package org.linphone;
import java.io.BufferedInputStream;
import java.io.I... | false | true | public void run() {
try {
value = false;
Log.i("Download remote provisioning file from " + mRPAddress);
URL url = new URL(mRPAddress);
URLConnection ucon = url.openConnection();
InputStream is = ucon.getInputStream();
BufferedInputStream bis = new BufferedInputStream(is);
... | public void run() {
try {
value = false;
Log.i("Download remote provisioning file from " + mRPAddress);
URL url = new URL(mRPAddress);
URLConnection ucon = url.openConnection();
InputStream is = ucon.getInputStream();
BufferedInputStream bis = new BufferedInputStream(is);
... |
diff --git a/pn-dispatcher/src/main/java/info/papyri/dispatch/FileUtils.java b/pn-dispatcher/src/main/java/info/papyri/dispatch/FileUtils.java
index 2ece0dae..34905870 100644
--- a/pn-dispatcher/src/main/java/info/papyri/dispatch/FileUtils.java
+++ b/pn-dispatcher/src/main/java/info/papyri/dispatch/FileUtils.java
@@ -1... | true | true | private Pattern[] getPatterns(String query) {
if (patternMap.containsKey(query)) {
return patternMap.get(query);
} else {
String q = query.replace("*", "£").replace("?", "#");
ANTLRStringStream a = new ANTLRStringStream(q.replaceAll("[\\\\/]", "").replaceAll("\"([^\"]+)\"~\\d+", ... | private Pattern[] getPatterns(String query) {
if (patternMap.containsKey(query)) {
return patternMap.get(query);
} else {
String q = query.replace("*", "£").replace("?", "#");
ANTLRStringStream a = new ANTLRStringStream(q.replaceAll("[\\\\/]", "").replaceAll("\"([^\"]+)\"~\\d+", ... |
diff --git a/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java b/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java
index b224eeb1..fd826bdf 100644
--- a/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java
+++ b/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java
@@ -1,666 +1,666 @@
/*
* Copyright... | true | true | void addRoadWithoutLoops(Way way, GType gt) {
List<Integer> nodeIndices = new ArrayList<Integer>();
List<Coord> points = way.getPoints();
Way trailingWay = null;
// make sure the way has nodes at each end
points.get(0).incHighwayCount();
points.get(points.size() - 1).incHighwayCount();
// collect the W... | void addRoadWithoutLoops(Way way, GType gt) {
List<Integer> nodeIndices = new ArrayList<Integer>();
List<Coord> points = way.getPoints();
Way trailingWay = null;
// make sure the way has nodes at each end
points.get(0).incHighwayCount();
points.get(points.size() - 1).incHighwayCount();
// collect the W... |
diff --git a/src/com/hanhuy/android/bluetooth/keyguard/LockMediator.java b/src/com/hanhuy/android/bluetooth/keyguard/LockMediator.java
index ab2b8d1..cbef0b7 100644
--- a/src/com/hanhuy/android/bluetooth/keyguard/LockMediator.java
+++ b/src/com/hanhuy/android/bluetooth/keyguard/LockMediator.java
@@ -1,198 +1,207 @@
pa... | false | true | public Status getLockMediatorStatus() {
boolean disableLock = false;
boolean disableKG = false;
boolean requireUnlock = false;
if (!CryptoUtils.isPasswordSaved(ctx)) {
Log.v(TAG, "password and/or hmac not set [properly]");
return new Status(!disableLock, !dis... | public Status getLockMediatorStatus() {
boolean disableLock = false;
boolean disableKG = false;
boolean requireUnlock = false;
if (!CryptoUtils.isPasswordSaved(ctx)) {
Log.v(TAG, "password and/or hmac not set [properly]");
return new Status(!disableLock, !dis... |
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/PatchSetsBlock.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/PatchSetsBlock.java
index 005423ffc..b9ed4e793 100644
--- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/PatchSetsBlock.java
+++ b/gerrit-gwtui/src/ma... | true | true | public void display(final ChangeDetail detail, final PatchSet.Id diffBaseId) {
clear();
final PatchSet currps = detail.getCurrentPatchSet();
currentPatchSetId = currps.getId();
patchSets = detail.getPatchSets();
if (Gerrit.isSignedIn()) {
final AccountGeneralPreferences p =
Gerri... | public void display(final ChangeDetail detail, final PatchSet.Id diffBaseId) {
clear();
final PatchSet currps = detail.getCurrentPatchSet();
currentPatchSetId = currps.getId();
patchSets = detail.getPatchSets();
if (Gerrit.isSignedIn()) {
final AccountGeneralPreferences p =
Gerri... |
diff --git a/src/marino39/agamepad/protocol/MouseMovePacket.java b/src/marino39/agamepad/protocol/MouseMovePacket.java
index ed7fe23..527b551 100644
--- a/src/marino39/agamepad/protocol/MouseMovePacket.java
+++ b/src/marino39/agamepad/protocol/MouseMovePacket.java
@@ -1,79 +1,79 @@
package marino39.agamepad.protocol;
... | true | true | public byte[] getBytes() {
byte[] data = new byte[10];
data[0] = op_id;
data[1] = len;
byte[] xb = ConvertUtil.toByta(x);
data[2] = xb[0]; data[3] = xb[1]; data[4] = xb[2];
data[5] = xb[3];
byte[] yb = ConvertUtil.toByta(x);
data[6] = yb[0]; data[7] = yb[1]; data[8] = yb[2];
data[9] = yb[3];
retu... | public byte[] getBytes() {
byte[] data = new byte[10];
data[0] = op_id;
data[1] = len;
byte[] xb = ConvertUtil.toByta(x);
data[2] = xb[0]; data[3] = xb[1]; data[4] = xb[2];
data[5] = xb[3];
byte[] yb = ConvertUtil.toByta(y);
data[6] = yb[0]; data[7] = yb[1]; data[8] = yb[2];
data[9] = yb[3];
retu... |
diff --git a/src/edu/stuy/subsystems/Conveyor.java b/src/edu/stuy/subsystems/Conveyor.java
index 01d9a33..ba17170 100644
--- a/src/edu/stuy/subsystems/Conveyor.java
+++ b/src/edu/stuy/subsystems/Conveyor.java
@@ -1,105 +1,106 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the ... | false | true | public void conveyAutomatic() {
double time = Timer.getFPGATimestamp();
if (Acquirer.getInstance().isAcquiring() && (isBottomDiscDetected())) {
Lights.getInstance().setWhiteSignalLight(true);
isConveying = true;
lastTime = 0.0;
}
if (isConveying())... | public void conveyAutomatic() {
double time = Timer.getFPGATimestamp();
if (Acquirer.getInstance().isAcquiring() && (isBottomDiscDetected())) {
Lights.getInstance().setWhiteSignalLight(true);
isConveying = true;
lastTime = time;
}
if (isConveying()... |
diff --git a/MCMEPVP/src/at/doebi/MCMEPVP.java b/MCMEPVP/src/at/doebi/MCMEPVP.java
index 3cb8561..6b0e8a0 100644
--- a/MCMEPVP/src/at/doebi/MCMEPVP.java
+++ b/MCMEPVP/src/at/doebi/MCMEPVP.java
@@ -1,164 +1,170 @@
package at.doebi;
import java.util.HashMap;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
//Identify the player
Player player = sender.getServer().getPlayer(sender.getName());
if(cmd.getName().equalsIgnoreCase("pvp")){
//What to do when a player types /pvp
String method = args[0];
//JOIN
if(me... | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
//Identify the player
Player player = sender.getServer().getPlayer(sender.getName());
if(cmd.getName().equalsIgnoreCase("pvp")){
//What to do when a player types /pvp
String method = args[0];
//JOIN
if(me... |
diff --git a/src/com/brennan/dartscorecard/HammerGameActivity.java b/src/com/brennan/dartscorecard/HammerGameActivity.java
index 984f2bb..a267ac3 100644
--- a/src/com/brennan/dartscorecard/HammerGameActivity.java
+++ b/src/com/brennan/dartscorecard/HammerGameActivity.java
@@ -1,152 +1,152 @@
package com.brennan.dartsc... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//Retrieve extras
Bundle extras = getIntent().getExtras();
if(extras != null){
players = extras.getParcelableArrayList("players");
}
Log.v(TAG,"Recived players in intent");
game = new HammerGame();
game.addPl... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//Retrieve extras
Bundle extras = getIntent().getExtras();
if(extras != null){
players = extras.getParcelableArrayList("players");
}
Log.v(TAG,"Recived players in Hammer Game");
game = new HammerGame();
game.... |
diff --git a/core/plugins/org.eclipse.dltk.validators.ui/src/org/eclipse/dltk/validators/internal/ui/eternalchecker/WildcardLabelProvider.java b/core/plugins/org.eclipse.dltk.validators.ui/src/org/eclipse/dltk/validators/internal/ui/eternalchecker/WildcardLabelProvider.java
index 50a9b434e..c2ae2ee5e 100644
--- a/core/... | true | true | public String getColumnText(Object element, int columnIndex) {
switch (columnIndex) {
case 0:
return (new StringBuilder(((CustomWildcard)element).getLetter())).toString();
case 1:
return ((CustomWildcard)element).getSpattern();
default:
return null;
}
}
| public String getColumnText(Object element, int columnIndex) {
switch (columnIndex) {
case 0:
return new String(new char[]{ ((CustomWildcard)element).getLetter() });
case 1:
return ((CustomWildcard)element).getSpattern();
default:
return null;
}
}
|
diff --git a/src/main/java/org/tal/basiccircuits/counter.java b/src/main/java/org/tal/basiccircuits/counter.java
index cf8606d..b150aed 100644
--- a/src/main/java/org/tal/basiccircuits/counter.java
+++ b/src/main/java/org/tal/basiccircuits/counter.java
@@ -1,130 +1,130 @@
package org.tal.basiccircuits;
import org.b... | true | true | public boolean init(Player player, String[] args) {
if (inputs.length==0) {
error(player, "Expecting at least 1 input.");
return false;
}
if (args.length==0) {
min = 0;
max = (int)Math.pow(2, inputs.length);
direction = 1;
... | public boolean init(Player player, String[] args) {
if (inputs.length==0) {
error(player, "Expecting at least 1 input.");
return false;
}
if (args.length==0) {
min = 0;
max = (int)Math.pow(2, outputs.length);
direction = 1;
... |
diff --git a/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/views/security/MemberList.java b/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/views/security/MemberList.java
index 96b269142..6b629d9e2 100644
--- a/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/views/security/MemberList.java
+++ b/cyklotr... | true | true | public void process(Parameters parameters, MVCContext mvcContext, TemplatingContext templatingContext, HttpContext httpContext, I18nContext i18nContext, CoralSession coralSession)
throws ProcessingException
{
try
{
SiteResource site = getSite();
Role teamMember = ... | public void process(Parameters parameters, MVCContext mvcContext, TemplatingContext templatingContext, HttpContext httpContext, I18nContext i18nContext, CoralSession coralSession)
throws ProcessingException
{
try
{
SiteResource site = getSite();
Role teamMember = ... |
diff --git a/src/main/java/eu/isas/peptideshaker/fileimport/FileImporter.java b/src/main/java/eu/isas/peptideshaker/fileimport/FileImporter.java
index 69671b3..7ccc86f 100644
--- a/src/main/java/eu/isas/peptideshaker/fileimport/FileImporter.java
+++ b/src/main/java/eu/isas/peptideshaker/fileimport/FileImporter.java
@@ ... | true | true | protected Object doInBackground() throws Exception {
long nRetained = 0;
long nSpectra = 0;
long nPSMs = 0;
long nSecondary = 0;
ArrayList<String> mgfUsed = new ArrayList<String>();
boolean idReport, goodFirstHit, unknown = false;
... | protected Object doInBackground() throws Exception {
long nRetained = 0;
long nSpectra = 0;
long nPSMs = 0;
long nSecondary = 0;
ArrayList<String> mgfUsed = new ArrayList<String>();
boolean idReport, goodFirstHit, unknown = false;
... |
diff --git a/src/main/groovy/nl/javadude/gradle/plugins/license/maven/LicenseCheckMojo.java b/src/main/groovy/nl/javadude/gradle/plugins/license/maven/LicenseCheckMojo.java
index 93d01d5..2212e53 100644
--- a/src/main/groovy/nl/javadude/gradle/plugins/license/maven/LicenseCheckMojo.java
+++ b/src/main/groovy/nl/javadud... | true | true | public void onHeaderNotFound(Document document, Header header) {
if (skipExistingHeaders) {
logger.lifecycle("Ignoring header in: {}", DocumentFactory.getRelativeFile(basedir, document));
return;
} else {
logger.lifecycle("Missing header in: {}", DocumentFactory.g... | public void onHeaderNotFound(Document document, Header header) {
document.parseHeader();
if (document.headerDetected() && skipExistingHeaders) {
logger.lifecycle("Ignoring header in: {}", DocumentFactory.getRelativeFile(basedir, document));
return;
} else {
... |
diff --git a/src/main/java/org/mapdb/AsyncWriteEngine.java b/src/main/java/org/mapdb/AsyncWriteEngine.java
index 859cdc6e..2bc0b534 100644
--- a/src/main/java/org/mapdb/AsyncWriteEngine.java
+++ b/src/main/java/org/mapdb/AsyncWriteEngine.java
@@ -1,336 +1,335 @@
package org.mapdb;
import java.io.IOError;
import ja... | true | true | private void writerThreadRun() {
while(true)try{
while(writes.isEmpty() && newRecids.remainingCapacity()==0){
if(writes.isEmpty() && shutdownSignal){
//store closed, shutdown this thread
shutdownResponse.countDown();
ret... | private void writerThreadRun() {
while(true)try{
while(writes.isEmpty() && newRecids.remainingCapacity()==0){
if(writes.isEmpty() && shutdownSignal){
//store closed, shutdown this thread
shutdownResponse.countDown();
ret... |
diff --git a/src/markehme/factionsplus/FactionsPlusJail.java b/src/markehme/factionsplus/FactionsPlusJail.java
index fda1a2f..03077d5 100644
--- a/src/markehme/factionsplus/FactionsPlusJail.java
+++ b/src/markehme/factionsplus/FactionsPlusJail.java
@@ -1,296 +1,297 @@
package markehme.factionsplus;
import java.io.D... | false | true | public static boolean setJail(CommandSender sender) {
if(!FactionsPlus.permission.has(sender, "factionsplus.setjail")) {
sender.sendMessage(ChatColor.RED + "No permission!");
return false;
}
FPlayer fplayer = FPlayers.i.get(sender.getName());
Faction currentFaction = fplayer.getFaction();
boolean... | public static boolean setJail(CommandSender sender) {
if(!FactionsPlus.permission.has(sender, "factionsplus.setjail")) {
sender.sendMessage(ChatColor.RED + "No permission!");
return false;
}
FPlayer fplayer = FPlayers.i.get(sender.getName());
Faction currentFaction = fplayer.getFaction();
boolean... |
diff --git a/core/src/main/java/hudson/model/Build.java b/core/src/main/java/hudson/model/Build.java
index 02ab4ffed..0fce24149 100644
--- a/core/src/main/java/hudson/model/Build.java
+++ b/core/src/main/java/hudson/model/Build.java
@@ -1,164 +1,164 @@
/*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Micro... | false | true | protected Result doRun(BuildListener listener) throws Exception {
if(!preBuild(listener,project.getBuilders()))
return Result.FAILURE;
if(!preBuild(listener,project.getPublishers()))
return Result.FAILURE;
buildEnvironments = new ArrayList<Env... | protected Result doRun(BuildListener listener) throws Exception {
if(!preBuild(listener,project.getBuilders()))
return Result.FAILURE;
if(!preBuild(listener,project.getPublishers()))
return Result.FAILURE;
buildEnvironments = new ArrayList<Env... |
diff --git a/src/scripting/AbstractScriptManager.java b/src/scripting/AbstractScriptManager.java
index de6e84b4..4dc50dad 100644
--- a/src/scripting/AbstractScriptManager.java
+++ b/src/scripting/AbstractScriptManager.java
@@ -1,73 +1,75 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 200... | true | true | protected Invocable getInvocable(String path, MapleClient c) {
try {
path = "scripts/" + path;
engine = null;
if (c != null) {
engine = c.getScriptEngine(path);
}
if (engine == null) {
File scriptFile = new File(path);
if (!scriptFile.exists()) {
return null;
}
engine = sem.ge... | protected Invocable getInvocable(String path, MapleClient c) {
try {
path = "scripts/" + path;
engine = null;
if (c != null) {
engine = c.getScriptEngine(path);
}
if (engine == null) {
File scriptFile = new File(path);
if (!scriptFile.exists()) {
return null;
}
engine = sem.ge... |
diff --git a/JunkHub/src/edu/unsw/triangle/web/ItemFormController.java b/JunkHub/src/edu/unsw/triangle/web/ItemFormController.java
index 44aa11e..6dd566e 100644
--- a/JunkHub/src/edu/unsw/triangle/web/ItemFormController.java
+++ b/JunkHub/src/edu/unsw/triangle/web/ItemFormController.java
@@ -1,115 +1,128 @@
package ed... | false | true | protected ModelView handleFormSubmit(Object command)
{
Bid bid = (Bid) command;
Item item = bid.getItem();
if (item == null)
{
logger.severe("item id: " + bid.getItemId() + " is null");
Errors errors = new Errors().rejectValue("item.error", "item id: " + bid.getItemId() + " is null");
return hand... | protected ModelView handleFormSubmit(Object command)
{
Bid bid = (Bid) command;
Item item = bid.getItem();
if (item == null)
{
logger.severe("item id: " + bid.getItemId() + " is null");
Errors errors = new Errors().rejectValue("item.error", "item id: " + bid.getItemId() + " is null");
return hand... |
diff --git a/SeriesGuide/src/com/battlelancer/thetvdbapi/TheTVDB.java b/SeriesGuide/src/com/battlelancer/thetvdbapi/TheTVDB.java
index ad27ba61b..2719dbd52 100644
--- a/SeriesGuide/src/com/battlelancer/thetvdbapi/TheTVDB.java
+++ b/SeriesGuide/src/com/battlelancer/thetvdbapi/TheTVDB.java
@@ -1,829 +1,831 @@
/*
* Cop... | false | true | public static ArrayList<ContentProviderOperation> parseEpisodes(String url, String showId,
final long showAirtime, Context context) throws SAXException {
RootElement root = new RootElement("Data");
Element episode = root.getChild("Episode");
final ArrayList<ContentProviderOperati... | public static ArrayList<ContentProviderOperation> parseEpisodes(String url, String showId,
final long showAirtime, Context context) throws SAXException {
RootElement root = new RootElement("Data");
Element episode = root.getChild("Episode");
final long oneYearAgoEpoch = System.cu... |
diff --git a/src/main/java/org/jboss/virtual/VFSUtils.java b/src/main/java/org/jboss/virtual/VFSUtils.java
index 4b328e1..98337d4 100644
--- a/src/main/java/org/jboss/virtual/VFSUtils.java
+++ b/src/main/java/org/jboss/virtual/VFSUtils.java
@@ -1,369 +1,370 @@
/*
* JBoss, Home of Professional Open Source
* Copyright... | false | true | public static void addManifestLocations(VirtualFile file, List<VirtualFile> paths) throws IOException
{
if (file == null)
throw new IllegalArgumentException("Null file");
if (paths == null)
throw new IllegalArgumentException("Null paths");
Manifest manifest = getManifest... | public static void addManifestLocations(VirtualFile file, List<VirtualFile> paths) throws IOException
{
if (file == null)
throw new IllegalArgumentException("Null file");
if (paths == null)
throw new IllegalArgumentException("Null paths");
Manifest manifest = getManifest... |
diff --git a/plugins/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/servlet/BirtSoapMessageDispatcherServlet.java b/plugins/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/servlet/BirtSoapMessageDispatcherServlet.java
index 5578bbf9..28b289e5 100644
--- a/plugins... | true | true | public void doPost( HttpServletRequest request, HttpServletResponse response )
throws ServletException, IOException
{
if ( !__authenticate( request, response ) )
{
return;
}
// create SOAP URL with post parameters
StringBuffer builder = new StringBuffer( );
Iterator it = request.getParameterMap( ).... | public void doPost( HttpServletRequest request, HttpServletResponse response )
throws ServletException, IOException
{
if ( !__authenticate( request, response ) )
{
return;
}
// create SOAP URL with post parameters
StringBuffer builder = new StringBuffer( );
Iterator it = request.getParameterMap( ).... |
diff --git a/identity_provisioning_commit/src/edu/psu/iam/cpr/ip/ui/action/VerifyInfoAction.java b/identity_provisioning_commit/src/edu/psu/iam/cpr/ip/ui/action/VerifyInfoAction.java
index b588ede..2421035 100644
--- a/identity_provisioning_commit/src/edu/psu/iam/cpr/ip/ui/action/VerifyInfoAction.java
+++ b/identity_pr... | true | true | public String execute()
{
if(!setup("vfy"))
{
return FAILURE;
}
log.debug(String.format("%s ", getUniqueId())) ;
// Ensure that 'edits' return to verify if necessary
getSessionMap().put(getPrefix() +".return.to.verify", "true");
/* 'success' will go to Policy, by default unless the ind... | public String execute()
{
if(!setup("vfy"))
{
return FAILURE;
}
log.debug(String.format("%s ", getUniqueId())) ;
// Ensure that 'edits' return to verify if necessary
getSessionMap().put(getPrefix() +".return.to.verify", "true");
/* 'success' will go to Policy, by default unless the ind... |
diff --git a/cas-server-3.4.2/cas-server-support-x509/src/main/java/org/jasig/cas/adaptors/x509/authentication/handler/support/CRLDistributionPointRevocationChecker.java b/cas-server-3.4.2/cas-server-support-x509/src/main/java/org/jasig/cas/adaptors/x509/authentication/handler/support/CRLDistributionPointRevocationChec... | false | true | protected X509CRL getCRL(final X509Certificate cert) {
final URL[] urls = getDistributionPoints(cert);
if (this.logger.isDebugEnabled()) {
this.logger.debug(String.format(
"Distribution points for %s: %s.", CertUtils.toString(cert), Arrays.asList(urls)));
}
... | protected X509CRL getCRL(final X509Certificate cert) {
final URL[] urls = getDistributionPoints(cert);
if (this.logger.isDebugEnabled()) {
this.logger.debug(String.format(
"Distribution points for %s: %s.", CertUtils.toString(cert), Arrays.asList(urls)));
}
... |
diff --git a/java/modules/core/src/org/apache/synapse/mediators/AbstractMediator.java b/java/modules/core/src/org/apache/synapse/mediators/AbstractMediator.java
index 0bc74181c..d1c1a578c 100644
--- a/java/modules/core/src/org/apache/synapse/mediators/AbstractMediator.java
+++ b/java/modules/core/src/org/apache/synapse... | true | true | public String getType() {
return getClass().getSimpleName();
}
| public String getType() {
return getClass().getName();
}
|
diff --git a/src/carnero/cgeo/cgBase.java b/src/carnero/cgeo/cgBase.java
index 10698a6..1bcbc66 100644
--- a/src/carnero/cgeo/cgBase.java
+++ b/src/carnero/cgeo/cgBase.java
@@ -1,5800 +1,5800 @@
package carnero.cgeo;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
impo... | true | true | public cgCacheWrap parseCache(String page, int reason) {
if (page == null || page.length() == 0) {
Log.e(cgSettings.tag, "cgeoBase.parseCache: No page given");
return null;
}
final Pattern patternGeocode = Pattern.compile("<meta name=\"og:url\" content=\"[^\"]+(GC[0-9A-Z]+)\"[^>]*>", Pattern.CASE_INSENSIT... | public cgCacheWrap parseCache(String page, int reason) {
if (page == null || page.length() == 0) {
Log.e(cgSettings.tag, "cgeoBase.parseCache: No page given");
return null;
}
final Pattern patternGeocode = Pattern.compile("<meta name=\"og:url\" content=\"[^\"]+(GC[0-9A-Z]+)\"[^>]*>", Pattern.CASE_INSENSIT... |
diff --git a/kernel/src/main/java/org/vosao/service/back/impl/TemplateServiceImpl.java b/kernel/src/main/java/org/vosao/service/back/impl/TemplateServiceImpl.java
index 9cf5bb5..178430b 100644
--- a/kernel/src/main/java/org/vosao/service/back/impl/TemplateServiceImpl.java
+++ b/kernel/src/main/java/org/vosao/service/ba... | true | true | public ServiceResponse saveTemplate(Map<String, String> vo) {
TemplateEntity template = null;
if (!StringUtils.isEmpty(vo.get("id"))) {
template = getDao().getTemplateDao().getById(vo.get("id"));
}
if (template == null) {
template = new TemplateEntity();
}
template.setTitle(vo.get("title"));
templa... | public ServiceResponse saveTemplate(Map<String, String> vo) {
TemplateEntity template = null;
if (!StringUtils.isEmpty(vo.get("id"))) {
template = getDao().getTemplateDao().getById(vo.get("id"));
}
if (template == null) {
template = new TemplateEntity();
}
template.setTitle(vo.get("title"));
templa... |
diff --git a/luni/src/test/java/libcore/java/lang/ArrayStoreExceptionTest.java b/luni/src/test/java/libcore/java/lang/ArrayStoreExceptionTest.java
index 21c0ce7a6..1b4288e09 100644
--- a/luni/src/test/java/libcore/java/lang/ArrayStoreExceptionTest.java
+++ b/luni/src/test/java/libcore/java/lang/ArrayStoreExceptionTest.... | true | true | public void testArrayStoreException() throws Exception {
Object[] array = new String[10];
Object o = new Exception();
try {
array[0] = o;
fail();
} catch (ArrayStoreException ex) {
ex.printStackTrace();
assertEquals("java.lang.Exception... | public void testArrayStoreException() throws Exception {
Object[] array = new String[10];
Object o = new Exception();
try {
array[0] = o;
fail();
} catch (ArrayStoreException ex) {
ex.printStackTrace();
assertEquals("java.lang.Exception... |
diff --git a/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/FeedServlet.java b/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/FeedServlet.java
index 082a8ecb7..ee064a594 100644
--- a/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/FeedServlet.java
+++ b/dspace-jspui/src/main/java/org/dspace/ap... | true | true | private Channel generateFeed(Context context, DSpaceObject dso)
throws IOException, SQLException
{
try
{
// container-level elements
String dspaceUrl = ConfigurationManager.getProperty("dspace.url");
String type = null;
String description = null;
String title = n... | private Channel generateFeed(Context context, DSpaceObject dso)
throws IOException, SQLException
{
try
{
// container-level elements
String dspaceUrl = ConfigurationManager.getProperty("dspace.url");
String type = null;
String description = null;
String title = n... |
diff --git a/src/org/apache/fop/image/JimiImage.java b/src/org/apache/fop/image/JimiImage.java
index a4b3113b5..80bdb609b 100644
--- a/src/org/apache/fop/image/JimiImage.java
+++ b/src/org/apache/fop/image/JimiImage.java
@@ -1,148 +1,148 @@
/*
* $Id$
* Copyright (C) 2001 The Apache Software Foundation. All rights ... | true | true | protected void loadImage() {
int[] tmpMap = null;
try {
ImageProducer ip =
Jimi.getImageProducer(this.m_href.openStream(),
Jimi.SYNCHRONOUS | Jimi.IN_MEMORY);
FopImageConsumer consumer = new FopImageConsumer(ip);
i... | protected void loadImage() {
int[] tmpMap = null;
try {
ImageProducer ip =
Jimi.getImageProducer(this.m_href.openStream(),
Jimi.SYNCHRONOUS | Jimi.IN_MEMORY);
FopImageConsumer consumer = new FopImageConsumer(ip);
i... |
diff --git a/MPDroid/src/com/namelessdev/mpdroid/SettingsActivity.java b/MPDroid/src/com/namelessdev/mpdroid/SettingsActivity.java
index e99599cb..b85d10cc 100644
--- a/MPDroid/src/com/namelessdev/mpdroid/SettingsActivity.java
+++ b/MPDroid/src/com/namelessdev/mpdroid/SettingsActivity.java
@@ -1,399 +1,399 @@
package ... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final MPDApplication app = (MPDApplication) getApplicationContext();
handler = new Handler();
addPreferencesFromResource(R.layout.settings);
// Log.i("MPDroid", "onCreate");
onPrefe... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final MPDApplication app = (MPDApplication) getApplicationContext();
handler = new Handler();
addPreferencesFromResource(R.layout.settings);
// Log.i("MPDroid", "onCreate");
onPrefe... |
diff --git a/src/net/animeimports/android/AnimeImportsAppActivity.java b/src/net/animeimports/android/AnimeImportsAppActivity.java
index 4be7ba1..65b8ea8 100644
--- a/src/net/animeimports/android/AnimeImportsAppActivity.java
+++ b/src/net/animeimports/android/AnimeImportsAppActivity.java
@@ -1,406 +1,405 @@
package ne... | true | true | public void run() {
depth = 1;
currentMenu = UPCOMING_EVENTS;
events = new ArrayList<AIEventEntry>();
try {
CustomCalendarURL customUrl = CustomCalendarURL.getUrl();
customUrl.startMin = new DateTime(getStartDate());
customUrl.startMax = new DateTime(getEndDate());
... | public void run() {
depth = 1;
currentMenu = UPCOMING_EVENTS;
events = new ArrayList<AIEventEntry>();
try {
CustomCalendarURL customUrl = CustomCalendarURL.getUrl();
customUrl.startMin = new DateTime(getStartDate());
customUrl.startMax = new DateTime(getEndDate());
... |
diff --git a/sopremo/sopremo-common/src/main/java/eu/stratosphere/sopremo/io/Source.java b/sopremo/sopremo-common/src/main/java/eu/stratosphere/sopremo/io/Source.java
index 4bab5c13d..2b2ddbf68 100644
--- a/sopremo/sopremo-common/src/main/java/eu/stratosphere/sopremo/io/Source.java
+++ b/sopremo/sopremo-common/src/main... | true | true | public PactModule asPactModule(final EvaluationContext context) {
final String inputPath = this.inputPath, name = this.getName();
GenericDataSource<?> contract;
if (this.isAdhoc()) {
contract = new GenericDataSource<GeneratorInputFormat>(
GeneratorInputFormat.class, String.format("Adhoc %s", name));
So... | public PactModule asPactModule(final EvaluationContext context) {
final String inputPath = this.inputPath, name = this.getName();
GenericDataSource<?> contract;
if (this.isAdhoc()) {
contract = new GenericDataSource<GeneratorInputFormat>(
GeneratorInputFormat.class, String.format("Adhoc %s", name));
So... |
diff --git a/src/krasa/visualvm/VisualVMJavaProgramPatcher.java b/src/krasa/visualvm/VisualVMJavaProgramPatcher.java
index 2eff453..342889a 100644
--- a/src/krasa/visualvm/VisualVMJavaProgramPatcher.java
+++ b/src/krasa/visualvm/VisualVMJavaProgramPatcher.java
@@ -1,53 +1,55 @@
package krasa.visualvm;
import com.in... | true | true | private VisualVMContext patch(JavaParameters javaParameters) {
String jdkPath = null;
try {
jdkPath = javaParameters.getJdkPath();
} catch (CantRunException e) {
// return;
}
final Long appId = VisualVMHelper.getNextID();
LogHelper.print("Patching: jdkPath=" + jdkPath + "; appId=" + appId, this);
... | private VisualVMContext patch(JavaParameters javaParameters) {
String jdkPath = null;
try {
if (javaParameters.getJdk() != null && javaParameters.getJdk().getHomeDirectory() != null) {
jdkPath = javaParameters.getJdkPath();
}
} catch (CantRunException e) {
// return;
}
final Long appId = Visual... |
diff --git a/src/jpcsp/graphics/VideoEngine.java b/src/jpcsp/graphics/VideoEngine.java
index 5c8f6c2d..b1d22ea7 100644
--- a/src/jpcsp/graphics/VideoEngine.java
+++ b/src/jpcsp/graphics/VideoEngine.java
@@ -1,1896 +1,1896 @@
/*
Parts based on soywiz's pspemulator.
This file is part of jpcsp.
Jpcsp is free softw... | false | true | public void executeCommand(int instruction) {
int normalArgument = intArgument(instruction);
float floatArgument = floatArgument(instruction);
switch (command(instruction)) {
case END:
listHasEnded = true;
log(helper.getCommandString(END));
... | public void executeCommand(int instruction) {
int normalArgument = intArgument(instruction);
float floatArgument = floatArgument(instruction);
switch (command(instruction)) {
case END:
listHasEnded = true;
log(helper.getCommandString(END));
... |
diff --git a/src/main/java/org/jbei/ice/lib/permissions/AuthenticatedSampleManager.java b/src/main/java/org/jbei/ice/lib/permissions/AuthenticatedSampleManager.java
index 7d95e822c..1537d8f2f 100644
--- a/src/main/java/org/jbei/ice/lib/permissions/AuthenticatedSampleManager.java
+++ b/src/main/java/org/jbei/ice/lib/per... | false | true | public static Sample save(Sample sample, String sessionKey) throws ManagerException {
Sample oldSample = SampleManager.get(sample.getId());
Account user = AccountManager.getAccountByAuthToken(sessionKey);
if (oldSample.getDepositor().equals(user.getEmail())) {
return SampleManage... | public static Sample save(Sample sample, String sessionKey) throws ManagerException {
if (sample.getId() == 0) {
// This is a new sample, which means anyone is allowed to create.
return SampleManager.save(sample);
} else {
try {
Sample oldSample = ... |
diff --git a/SnakeProject/SnakeV4/src/com/thu9group/snake/Grid.java b/SnakeProject/SnakeV4/src/com/thu9group/snake/Grid.java
index 2170f10..59b9321 100644
--- a/SnakeProject/SnakeV4/src/com/thu9group/snake/Grid.java
+++ b/SnakeProject/SnakeV4/src/com/thu9group/snake/Grid.java
@@ -1,244 +1,245 @@
package com.thu9group.... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
gameState = new GameState(this);
gridView = new GridView(this);
mHandler = new GameOverHandler(Looper.getMainLooper(), this);
LinearLay... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
gameState = new GameState(this);
gridView = new GridView(this);
mHandler = new GameOverHandler(Looper.getMainLooper(), this);
LinearLay... |
diff --git a/java/src/com/android/inputmethod/latin/Settings.java b/java/src/com/android/inputmethod/latin/Settings.java
index c42f0564..e99bb701 100644
--- a/java/src/com/android/inputmethod/latin/Settings.java
+++ b/java/src/com/android/inputmethod/latin/Settings.java
@@ -1,614 +1,616 @@
/*
* Copyright (C) 2008 Th... | true | true | public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setInputMethodSettingsCategoryTitle(R.string.language_selection_title);
setSubtypeEnablerTitle(R.string.select_language);
final Resources res = getResources();
final Context context = getActivityInternal();
... | public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setInputMethodSettingsCategoryTitle(R.string.language_selection_title);
setSubtypeEnablerTitle(R.string.select_language);
final Resources res = getResources();
final Context context = getActivityInternal();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.