Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/petrglad/javarpc/util/Sockets.java b/src/petrglad/javarpc/util/Sockets.java index 626e7a7..61d8932 100644 --- a/src/petrglad/javarpc/util/Sockets.java +++ b/src/petrglad/javarpc/util/Sockets.java @@ -1,53 +1,53 @@ package petrglad.javarpc.util; import java.io.IOException; import java.net.ServerSoc...
false
true
public static Socket openClientSocket(final String host, final int port) { try { return new Socket(host, port); } catch (UnknownHostException e) { throw new RuntimeException("Host is not found " + host + ":" + port); } catch (IOException e) { throw new Run...
public static Socket openClientSocket(final String host, final int port) { try { return new Socket(host, port); } catch (UnknownHostException e) { throw new RuntimeException("Host is not found " + host + ":" + port, e); } catch (IOException e) { throw new ...
diff --git a/HSRBuddy/src/ch/hsr/hsrbuddy/activity/map/MapActivity.java b/HSRBuddy/src/ch/hsr/hsrbuddy/activity/map/MapActivity.java index a70d51a..90917b3 100644 --- a/HSRBuddy/src/ch/hsr/hsrbuddy/activity/map/MapActivity.java +++ b/HSRBuddy/src/ch/hsr/hsrbuddy/activity/map/MapActivity.java @@ -1,72 +1,69 @@ package ...
false
true
private void changeMap(int id){ Intent intent = new Intent(this, MapActivityDetail.class); Integer buildingId = 0; switch (id) { case R.id.building1: buildingId = R.drawable.schulgebaeude_og; break; case R.id.building2: buildingId = R.drawable.laborgebaeude_eg; ...
private void changeMap(int id){ Intent intent = new Intent(this, MapActivityDetail.class); Integer buildingId = 0; switch (id) { case R.id.building1: buildingId = R.drawable.geb1; break; case R.id.building3: buildingId = R.drawable.geb3; break; ca...
diff --git a/bundles/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/ScenarioStatusTable.java b/bundles/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/ScenarioStatusTable.java index 327c93c..76ab08f 100644 --- a/bundles/org.eclipse.test.performance.ui/src/org/eclipse/test/perfor...
false
true
public void print(PrintStream stream, boolean filter) { String OS="config"; Scenario[] scenarios= DB.queryScenarios(variations, scenarioPattern, OS, null); if (scenarios != null && scenarios.length > 0) { ArrayList scenarioStatusList=new ArrayList(); for (int i= 0; i < scenarios.length; i++) { ...
public void print(PrintStream stream, boolean filter) { String OS="config"; Scenario[] scenarios= DB.queryScenarios(variations, scenarioPattern, OS, null); if (scenarios != null && scenarios.length > 0) { ArrayList scenarioStatusList=new ArrayList(); for (int i= 0; i < scenarios.length; i++) { ...
diff --git a/IGVC2013_Component_1/src/ClientSocket.java b/IGVC2013_Component_1/src/ClientSocket.java index f9353e1..a5aaf6f 100644 --- a/IGVC2013_Component_1/src/ClientSocket.java +++ b/IGVC2013_Component_1/src/ClientSocket.java @@ -1,232 +1,232 @@ package src; import java.net.*; import java.util.LinkedList; im...
true
true
public void connect() //String host,int port { /**Define a host **/ String host = "192.168.32.64"; /**Define a port**/ int port = 19998; StringBuffer instr = new StringBuffer(); System.out.println("SocketClient initialized"); try{//how to request a socket and establishing a connection /**obtain...
public void connect() //String host,int port { /**Define a host **/ String host = "192.168.33.73"; /**Define a port**/ int port = 19998; StringBuffer instr = new StringBuffer(); System.out.println("SocketClient initialized"); try{//how to request a socket and establishing a connection /**obtain...
diff --git a/src/com/menny/android/anysoftkeyboard/keyboards/LatinKeyboard.java b/src/com/menny/android/anysoftkeyboard/keyboards/LatinKeyboard.java index 010e38d1..c63d0f9d 100644 --- a/src/com/menny/android/anysoftkeyboard/keyboards/LatinKeyboard.java +++ b/src/com/menny/android/anysoftkeyboard/keyboards/LatinKeyboar...
false
true
protected void setPopupKeyChars(Key aKey) { if ((aKey.codes != null) && (aKey.codes.length > 0)) { switch((char)aKey.codes[0]) { case 'a': aKey.popupCharacters = "\u00e0\u00e2\u00e1\u00e4\u00e3\u00e6\u00e5\u0105"; aKey.popupResId = com.menny.android.anysoftkeyboard.R.xml.popup; bre...
protected void setPopupKeyChars(Key aKey) { if ((aKey.codes != null) && (aKey.codes.length > 0)) { switch((char)aKey.codes[0]) { case 'a': aKey.popupCharacters = "\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5\u00e6\u0105"; aKey.popupResId = com.menny.android.anysoftkeyboard.R.xml.popup; bre...
diff --git a/rest/src/main/java/org/mayocat/shop/rest/resources/LoginResource.java b/rest/src/main/java/org/mayocat/shop/rest/resources/LoginResource.java index 5f833d3b..414cc670 100644 --- a/rest/src/main/java/org/mayocat/shop/rest/resources/LoginResource.java +++ b/rest/src/main/java/org/mayocat/shop/rest/resources/...
false
true
public Response login(@FormParam("username") String username, @FormParam("password") String password, @FormParam("remember") @DefaultValue("false") Boolean remember, @Context UriInfo uri) { try { User user = userService.findByEmailOrUserName(username); if (user == null) ...
public Response login(@FormParam("username") String username, @FormParam("password") String password, @FormParam("remember") @DefaultValue("false") Boolean remember, @Context UriInfo uri) { try { User user = userService.findByEmailOrUserName(username); if (user == null) ...
diff --git a/src/uk/me/parabola/mkgmap/combiners/TdbBuilder.java b/src/uk/me/parabola/mkgmap/combiners/TdbBuilder.java index 161c00ba..2965d6c5 100644 --- a/src/uk/me/parabola/mkgmap/combiners/TdbBuilder.java +++ b/src/uk/me/parabola/mkgmap/combiners/TdbBuilder.java @@ -1,265 +1,265 @@ /* * Copyright (C) 2007 Steve ...
false
true
private void addToOverviewMap(FileInfo finfo) { Area bounds = finfo.getBounds(); //System.out.printf("overview shift %d\n", overviewSource.getShift()); int overviewMask = ((1 << overviewSource.getShift()) - 1); //System.out.printf("mask %x\n", overviewMask); //System.out.println("overviewSource.getShift() =...
private void addToOverviewMap(FileInfo finfo) { Area bounds = finfo.getBounds(); //System.out.printf("overview shift %d\n", overviewSource.getShift()); int overviewMask = ((1 << overviewSource.getShift()) - 1); //System.out.printf("mask %x\n", overviewMask); //System.out.println("overviewSource.getShift() =...
diff --git a/orcid-persistence/src/main/java/org/orcid/persistence/jpa/entities/OrcidOauth2TokenDetail.java b/orcid-persistence/src/main/java/org/orcid/persistence/jpa/entities/OrcidOauth2TokenDetail.java index 7d187579a5..5c74b7eb9c 100644 --- a/orcid-persistence/src/main/java/org/orcid/persistence/jpa/entities/OrcidO...
true
true
public int compareTo(OrcidOauth2TokenDetail other) { ProfileEntity otherProfileEntity = other.getProfile(); int compareName = profile.getCreditName().compareTo(otherProfileEntity.getCreditName()); if (compareName != 0) { return compareName; } Date thisDateCreated ...
public int compareTo(OrcidOauth2TokenDetail other) { ProfileEntity clientProfileEntity = clientDetailsEntity.getProfile(); ProfileEntity otherClientProfileEntity = other.getClientDetailsEntity().getProfile(); int compareName = clientProfileEntity.getCreditName().compareTo(otherClientProfileE...
diff --git a/CBDT/src/cbdt/view/analysis/tree/treemodel/NodeLine.java b/CBDT/src/cbdt/view/analysis/tree/treemodel/NodeLine.java index 5b1117c..def807d 100644 --- a/CBDT/src/cbdt/view/analysis/tree/treemodel/NodeLine.java +++ b/CBDT/src/cbdt/view/analysis/tree/treemodel/NodeLine.java @@ -1,24 +1,24 @@ package cbdt.vie...
true
true
public void draw(){ int x1 = pApplet.getZoomConverter().convertToWindowCoordinatesX(from.getDocumentCoordinateX()); int y1 = pApplet.getZoomConverter().convertToWindowCoordinatesY(from.getDocumentCoordinateY()) + NodeCircle.radius; int x2 = pApplet.getZoomConverter().convertToWindowCoordinatesX(to.getDocumentCoo...
public void draw(){ int x1 = pApplet.getZoomConverter().convertToWindowCoordinatesX(from.getDocumentCoordinateX()); int y1 = pApplet.getZoomConverter().convertToWindowCoordinatesY(from.getDocumentCoordinateY()) + NodeCircle.radius; int x2 = pApplet.getZoomConverter().convertToWindowCoordinatesX(to.getDocumentCoo...
diff --git a/test/tekai/test/ParserTest.java b/test/tekai/test/ParserTest.java index e007a1b..4f9b663 100644 --- a/test/tekai/test/ParserTest.java +++ b/test/tekai/test/ParserTest.java @@ -1,422 +1,422 @@ package tekai.test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; impor...
true
true
private void configureParser(Parser parser) { // PRECEDENCE (What to parse first. Higher numbers means more precedence) int x = 1; final int ATOM = x++; final int OR = x++; final int AND = x++; final int NOT = x++; final int LIKE = x++; final int EQUAL...
private void configureParser(Parser parser) { // PRECEDENCE (What to parse first. Higher numbers means more precedence) int x = 1; final int ATOM = x++; final int OR = x++; final int AND = x++; final int NOT = x++; final int LIKE = x++; final int EQUAL...
diff --git a/src/main/java/org/apache/james/jspf/DNSServiceXBillImpl.java b/src/main/java/org/apache/james/jspf/DNSServiceXBillImpl.java index f72f27f..d1c113b 100644 --- a/src/main/java/org/apache/james/jspf/DNSServiceXBillImpl.java +++ b/src/main/java/org/apache/james/jspf/DNSServiceXBillImpl.java @@ -1,185 +1,187 @@...
false
true
public List getRecords(String hostname, int recordType) throws TimeoutException { String recordTypeDescription; int dnsJavaType; switch (recordType) { case A: recordTypeDescription = "A"; dnsJavaType = Type.A; break; case AAAA: recordTypeDescription = "AAA...
public List getRecords(String hostname, int recordType) throws TimeoutException { String recordTypeDescription; int dnsJavaType; int recordCount = 0; switch (recordType) { case A: recordTypeDescription = "A"; dnsJavaType = Type.A; break; case AAAA:...
diff --git a/cvs/trunk/src/version1/src/com/rohanclan/cfml/views/snips/SnipVarParser.java b/cvs/trunk/src/version1/src/com/rohanclan/cfml/views/snips/SnipVarParser.java index 96b1e6ff..d89c63c7 100644 --- a/cvs/trunk/src/version1/src/com/rohanclan/cfml/views/snips/SnipVarParser.java +++ b/cvs/trunk/src/version1/src/com...
false
true
public static String parse(String str, IFile activeFile, Shell shell ) { String currentFile = ""; String currentFolder = ""; String currentPath = ""; String currentProjectPath = ""; /* not sure why this next block is needed, but it causes the snippet * insert to fail on QA. Hope I am not misunde...
public static String parse(String str, IFile activeFile, Shell shell ) { String currentFile = ""; String currentFolder = ""; String currentPath = ""; String currentProjectPath = ""; /* not sure why this next block is needed, but it causes the snippet * insert to fail on QA. Hope I am not misunde...
diff --git a/src/org/nutz/ioc/loader/annotation/AnnotationIocLoader.java b/src/org/nutz/ioc/loader/annotation/AnnotationIocLoader.java index e4fe98d8b..bdd3f9f8e 100644 --- a/src/org/nutz/ioc/loader/annotation/AnnotationIocLoader.java +++ b/src/org/nutz/ioc/loader/annotation/AnnotationIocLoader.java @@ -1,253 +1,257 @@...
false
true
private void addClass(Class<?> classZ) { if (classZ.isInterface() || classZ.isMemberClass() || classZ.isEnum() || classZ.isAnnotation() || classZ.isAnonymousClass()) return; int modify = classZ.getModifiers(); if (Modifier.isAbstrac...
private void addClass(Class<?> classZ) { if (classZ.isInterface() || classZ.isMemberClass() || classZ.isEnum() || classZ.isAnnotation() || classZ.isAnonymousClass()) return; int modify = classZ.getModifiers(); if (Modifier.isAbstrac...
diff --git a/src/edu/sc/seis/sod/database/DatabaseManager.java b/src/edu/sc/seis/sod/database/DatabaseManager.java index 7a95bfed1..d6294ffbb 100644 --- a/src/edu/sc/seis/sod/database/DatabaseManager.java +++ b/src/edu/sc/seis/sod/database/DatabaseManager.java @@ -1,52 +1,55 @@ package edu.sc.seis.sod.database; imp...
false
true
public static AbstractDatabaseManager getDatabaseManager(Properties props, String type) { try { if(databaseManager != null) return databaseManager; //use reflection to get the appropriate Database Manager. String className = getDatabaseType(props); Class[] constructorArgTypes = new Class[1]; constructorArgTyp...
public static AbstractDatabaseManager getDatabaseManager(Properties props, String type) { String className = null; try { if(databaseManager != null) return databaseManager; //use reflection to get the appropriate Database Manager. className = getDatabaseType(props); Class[] constructorArgTypes = new Class[1];...
diff --git a/GUI.java b/GUI.java index e6a55abb..34d1f8bf 100644 --- a/GUI.java +++ b/GUI.java @@ -1,2690 +1,2690 @@ //////////////////////////////////////////////////////////////////////////////// // // RMG - Reaction Mechanism Generator // // Copyright (c) 2002-2009 Prof. William H. Green (whgreen@mit.edu) and t...
false
true
public void openConditionFile(File filePath) { int numSpecies = 0; tmodelPTL.clear(); tmodelPRL.clear(); tmodelSM.clear(); tmodelInput.clear(); tmodelSens.clear(); System.out.println("GUI cannot read in file's header (comments)"); // Read in the .txt file FileRe...
public void openConditionFile(File filePath) { int numSpecies = 0; tmodelPTL.clear(); tmodelPRL.clear(); tmodelSM.clear(); tmodelInput.clear(); tmodelSens.clear(); System.out.println("GUI cannot read in file's header (comments)"); // Read in the .txt file FileRe...
diff --git a/freeplane/src/org/freeplane/features/common/attribute/AttributeBuilder.java b/freeplane/src/org/freeplane/features/common/attribute/AttributeBuilder.java index a568496c3..e26cb03f1 100644 --- a/freeplane/src/org/freeplane/features/common/attribute/AttributeBuilder.java +++ b/freeplane/src/org/freeplane/fea...
false
true
private void registerAttributeHandlers(final ReadManager reader) { reader.addAttributeHandler(AttributeBuilder.XML_NODE_REGISTERED_ATTRIBUTE_NAME, "NAME", new IAttributeHandler() { public void setAttribute(final Object userObject, final String value) { final RegisteredAttributeProperties rap = (...
private void registerAttributeHandlers(final ReadManager reader) { reader.addAttributeHandler(AttributeBuilder.XML_NODE_REGISTERED_ATTRIBUTE_NAME, "NAME", new IAttributeHandler() { public void setAttribute(final Object userObject, final String value) { final RegisteredAttributeProperties rap = (...
diff --git a/fest-swing/src/test/java/org/fest/swing/core/ComponentIsFocusableQuery_isFocusable_Test.java b/fest-swing/src/test/java/org/fest/swing/core/ComponentIsFocusableQuery_isFocusable_Test.java index ecef9945..f736c9ba 100644 --- a/fest-swing/src/test/java/org/fest/swing/core/ComponentIsFocusableQuery_isFocusabl...
true
true
public void should_return_Component_is_focusable() { new EasyMockTemplate(component) { protected void expectations() { expect(component.isFocusable()).andReturn(isFocusable); } protected void codeToTest() { boolean b = ComponentIsFocusableQuery.isFocusable(component); ...
public void should_return_Component_is_focusable() { new EasyMockTemplate(component) { protected void expectations() { expect(component.isFocusable()).andReturn(isFocusable); } protected void codeToTest() { assertThat(ComponentIsFocusableQuery.isFocusable(component)).isEqu...
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/util/WTPModulesTranslator.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/util/WTPModulesTranslator.java index 89c03371..4f5f3831 100644 --- a...
true
true
private static Translator createWBModuleTranslator(EStructuralFeature afeature) { GenericTranslator result = new GenericTranslator(WORKBENCH_COMPONENT, afeature); result.setChildren(new Translator[] { IDTranslator.INSTANCE, //new Translator(HANDLE, MODULE_CORE_PKG.getWorkbenchComponent_Handle(), DOM_ATTRIBUT...
private static Translator createWBModuleTranslator(EStructuralFeature afeature) { GenericTranslator result = new GenericTranslator(WORKBENCH_COMPONENT, afeature); result.setChildren(new Translator[] { IDTranslator.INSTANCE, //new Translator(HANDLE, MODULE_CORE_PKG.getWorkbenchComponent_Handle(), DOM_ATTRIBUT...
diff --git a/src/minecraft/net/minecraft/src/GuiIngame.java b/src/minecraft/net/minecraft/src/GuiIngame.java index a8348c3e..0af2e44b 100644 --- a/src/minecraft/net/minecraft/src/GuiIngame.java +++ b/src/minecraft/net/minecraft/src/GuiIngame.java @@ -1,640 +1,640 @@ package net.minecraft.src; import java.util.Array...
true
true
public void renderGameOverlay(float f, boolean flag, int i, int j) { SpoutClient.getInstance().onTick(); InGameHUD mainScreen = SpoutClient.getInstance().getActivePlayer().getMainScreen(); ScaledResolution scaledRes = new ScaledResolution(this.mc.gameSettings, this.mc.displayWidth, this.mc.displayHeight); in...
public void renderGameOverlay(float f, boolean flag, int i, int j) { SpoutClient.getInstance().onTick(); InGameHUD mainScreen = SpoutClient.getInstance().getActivePlayer().getMainScreen(); ScaledResolution scaledRes = new ScaledResolution(this.mc.gameSettings, this.mc.displayWidth, this.mc.displayHeight); in...
diff --git a/hazelcast/src/main/java/com/hazelcast/impl/ListenerManager.java b/hazelcast/src/main/java/com/hazelcast/impl/ListenerManager.java index 96cad276..07357450 100644 --- a/hazelcast/src/main/java/com/hazelcast/impl/ListenerManager.java +++ b/hazelcast/src/main/java/com/hazelcast/impl/ListenerManager.java @@ -1...
true
true
private void callListener(ListenerItem listenerItem, EntryEvent event) { Object listener = listenerItem.listener; EntryEventType entryEventType = event.getEventType(); if (listenerItem.instanceType == Instance.InstanceType.MAP) { if (!listenerItem.name.startsWith("c:__hz_")) { ...
private void callListener(ListenerItem listenerItem, EntryEvent event) { Object listener = listenerItem.listener; EntryEventType entryEventType = event.getEventType(); if (listenerItem.instanceType == Instance.InstanceType.MAP) { if (!listenerItem.name.startsWith("c:__hz_")) { ...
diff --git a/impl/src/java/uk/ac/ox/oucs/oxam/logic/SakaiLocation.java b/impl/src/java/uk/ac/ox/oucs/oxam/logic/SakaiLocation.java index 00ec9c5..0960050 100644 --- a/impl/src/java/uk/ac/ox/oucs/oxam/logic/SakaiLocation.java +++ b/impl/src/java/uk/ac/ox/oucs/oxam/logic/SakaiLocation.java @@ -1,63 +1,66 @@ package uk.a...
true
true
public String getPrefix() { if (prefix == null) { try { prefix = contentHostingService.getCollection(sitePath).getUrl(true); // Ignore all the exceptions. } catch (PermissionException e) { // } catch (IdUnusedException e) { // } catch (TypeException e) { // } } return prefix; ...
public String getPrefix() { if (prefix == null) { try { // This is so that we can have a relative path, without the hostname. String siteUrl = contentHostingService.getCollection(sitePath).getUrl(true); String prefix = serverConfigurationService.getString("accessPath", "/access"); this.prefix = Ut...
diff --git a/src/net/azib/ipscan/gui/PreferencesDialog.java b/src/net/azib/ipscan/gui/PreferencesDialog.java index a44213d..6467caf 100755 --- a/src/net/azib/ipscan/gui/PreferencesDialog.java +++ b/src/net/azib/ipscan/gui/PreferencesDialog.java @@ -1,511 +1,511 @@ /** * This file is a part of Angry IP Scanner source...
false
true
private void createScanningTab() { RowLayout rowLayout = createRowLayout(); scanningTab = new Composite(tabFolder, SWT.NONE); scanningTab.setLayout(rowLayout); GridLayout groupLayout = new GridLayout(); groupLayout.numColumns = 2; Group threadsGroup = new Group(scanningTab, SWT.NONE); threadsGroup.set...
private void createScanningTab() { RowLayout rowLayout = createRowLayout(); scanningTab = new Composite(tabFolder, SWT.NONE); scanningTab.setLayout(rowLayout); GridLayout groupLayout = new GridLayout(); groupLayout.numColumns = 2; Group threadsGroup = new Group(scanningTab, SWT.NONE); threadsGroup.set...
diff --git a/apps/xgap/plugins/reportbuilder/Statistics.java b/apps/xgap/plugins/reportbuilder/Statistics.java index 5d18a4d93..fbf229e3b 100644 --- a/apps/xgap/plugins/reportbuilder/Statistics.java +++ b/apps/xgap/plugins/reportbuilder/Statistics.java @@ -1,170 +1,170 @@ package plugins.reportbuilder; import java....
true
true
public static TreeMap<String, Double> getSpearManCorr(DataMatrixInstance i, String name, boolean isRow) throws Exception { HashMap<String, Double> map = new HashMap<String, Double>(); ValueComparator bvc = new ValueComparator(map); boolean decimals = i.getData().getValueType().equals("Decimal") ? true : fals...
public static TreeMap<String, Double> getSpearManCorr(DataMatrixInstance i, String name, boolean isRow) throws Exception { HashMap<String, Double> map = new HashMap<String, Double>(); ValueComparator bvc = new ValueComparator(map); boolean decimals = i.getData().getValueType().equals("Decimal") ? true : fals...
diff --git a/src/jpcsp/HLE/modules150/sceSasCore.java b/src/jpcsp/HLE/modules150/sceSasCore.java index 20022646..a70dccda 100644 --- a/src/jpcsp/HLE/modules150/sceSasCore.java +++ b/src/jpcsp/HLE/modules150/sceSasCore.java @@ -1,1222 +1,1229 @@ /* This file is part of jpcsp. Jpcsp is free software: you can redistr...
true
true
protected short[] decodeSamples(Processor processor, int vagAddr, int size) { Memory mem = Processor.memory; // Based on vgmstream short[] samples = new short[size / 16 * 28]; int numSamples = 0; int headerCheck = mem.read32(vagAddr); if ((headerCheck & 0x00FFFFFF) == 0x0...
protected short[] decodeSamples(Processor processor, int vagAddr, int size) { Memory mem = Processor.memory; // Based on vgmstream short[] samples = new short[size / 16 * 28]; int numSamples = 0; int headerCheck = mem.read32(vagAddr); if ((headerCheck & 0x00FFFFFF) == 0x0...
diff --git a/src/org/cchmc/bmi/snpomics/annotation/interactive/HgvsProtName.java b/src/org/cchmc/bmi/snpomics/annotation/interactive/HgvsProtName.java index 9f7b190..3bdae0b 100644 --- a/src/org/cchmc/bmi/snpomics/annotation/interactive/HgvsProtName.java +++ b/src/org/cchmc/bmi/snpomics/annotation/interactive/HgvsProtN...
true
true
private void buildName() { if (startCoord == 0) { name = ""; return; } /* * Challenging cases: * * gCATga => gga * A* => G * p.Ala#_*#delinsGlyext*# (need to catch the readthrough and calculate the ext) * * caacgatcg => caTTGacgatcg * QRS => H*RS * p.Gln#delinsH* * * at...
private void buildName() { if (startCoord == 0) { name = ""; return; } /* * Challenging cases: * * gCATga => gga * A* => G * p.Ala#_*#delinsGlyext*# (need to catch the readthrough and calculate the ext) * * caacgatcg => caTTGacgatcg * QRS => H*RS * p.Gln#delinsH* * * at...
diff --git a/plugins/org.eclipse.mylyn.docs.intent.client.ui/src/org/eclipse/mylyn/docs/intent/client/ui/editor/quickfix/IntentSynchronizationCompletionProposal.java b/plugins/org.eclipse.mylyn.docs.intent.client.ui/src/org/eclipse/mylyn/docs/intent/client/ui/editor/quickfix/IntentSynchronizationCompletionProposal.java...
false
true
public void apply(IDocument document) { // Step 1 : getting the resources to compare URI String generatedResourceURI = syncAnnotation.getAdditionalInformations().iterator().next() .replace("\"", ""); String workingCopyResourceURI = ((String)syncAnnotation.getAdditionalInformations().toArray()[1]) .replac...
public void apply(IDocument document) { // Step 1 : getting the resources to compare URI String workingCopyResourceURI = syncAnnotation.getAdditionalInformations().iterator().next() .replace("\"", ""); String generatedResourceURI = ((String)syncAnnotation.getAdditionalInformations().toArray()[1]) .replac...
diff --git a/src/net/sf/drftpd/master/command/plugins/Dir.java b/src/net/sf/drftpd/master/command/plugins/Dir.java index 557f3118..0ed748cc 100644 --- a/src/net/sf/drftpd/master/command/plugins/Dir.java +++ b/src/net/sf/drftpd/master/command/plugins/Dir.java @@ -1,970 +1,969 @@ /* * This file is part of DrFTPD, Dist...
true
true
private Reply doCWD(BaseFtpConnection conn) { FtpRequest request = conn.getRequest(); if (!request.hasArgument()) { return Reply.RESPONSE_501_SYNTAX_ERROR; } LinkedRemoteFile newCurrentDirectory; try { newCurrentDirectory = conn.getCurrentDirectory(...
private Reply doCWD(BaseFtpConnection conn) { FtpRequest request = conn.getRequest(); if (!request.hasArgument()) { return Reply.RESPONSE_501_SYNTAX_ERROR; } LinkedRemoteFile newCurrentDirectory; try { newCurrentDirectory = conn.getCurrentDirectory(...
diff --git a/src/org/apache/xerces/impl/XMLVersionDetector.java b/src/org/apache/xerces/impl/XMLVersionDetector.java index ad16a1ea..9fa44308 100644 --- a/src/org/apache/xerces/impl/XMLVersionDetector.java +++ b/src/org/apache/xerces/impl/XMLVersionDetector.java @@ -1,266 +1,268 @@ /* * The Apache Software License, ...
false
true
public short determineDocVersion(XMLInputSource inputSource) throws IOException { fEncoding = fEntityManager.setupCurrentEntity(fXMLSymbol, inputSource, false, true); // must assume 1.1 at this stage so that whitespace // handling is correct in the XML decl... fEntityManager.setScan...
public short determineDocVersion(XMLInputSource inputSource) throws IOException { fEncoding = fEntityManager.setupCurrentEntity(fXMLSymbol, inputSource, false, true); // must assume 1.1 at this stage so that whitespace // handling is correct in the XML decl... fEntityManager.setScan...
diff --git a/code/server/app/Import.java b/code/server/app/Import.java index 852dfe5..f769ed7 100644 --- a/code/server/app/Import.java +++ b/code/server/app/Import.java @@ -1,86 +1,87 @@ import models.Transaction; import models.User; import org.apache.commons.io.IOUtils; import org.apache.log4j.Level; import org.a...
true
true
private Transaction parseTransaction(String line) { String[] s = line.split("_"); try { Date accountingDate = dateFormat.parse(s[0]); String text = s[4]; Double out = Double.parseDouble(s[5]); Double in = Double.parseDouble(s[6]); Transacti...
private Transaction parseTransaction(String line) { String[] s = line.split("_"); try { Date accountingDate = dateFormat.parse(s[0]); String text = s[4]; Double out = Double.parseDouble(s[5]); Double in = Double.parseDouble(s[6]); Transacti...
diff --git a/examples/fixengine/examples/console/commands/Config.java b/examples/fixengine/examples/console/commands/Config.java index 1f4d4d01..6abacb3d 100644 --- a/examples/fixengine/examples/console/commands/Config.java +++ b/examples/fixengine/examples/console/commands/Config.java @@ -1,73 +1,73 @@ /* * Copyrig...
true
true
private Version version(Scanner scanner) throws CommandArgException { if (!scanner.hasNext()) throw new CommandArgException("version must be specified"); String value = scanner.next(); for (Version version : Version.values()) { if (version.value().equals(value.toUpperCase())) { return ...
private Version version(Scanner scanner) throws CommandArgException { if (!scanner.hasNext()) throw new CommandArgException("version must be specified"); String value = scanner.next(); for (Version version : Version.values()) { if (version.value().equals(value.toUpperCase())) { return ...
diff --git a/src/com/strategy/havannah/logic/PathsIter.java b/src/com/strategy/havannah/logic/PathsIter.java index b1d294a..b373e2b 100644 --- a/src/com/strategy/havannah/logic/PathsIter.java +++ b/src/com/strategy/havannah/logic/PathsIter.java @@ -1,178 +1,183 @@ package com.strategy.havannah.logic; import net.sf....
true
true
private void initReachability() { // number of vertices int V = board.getColumns() * board.getRows(); // adjacency matrix with bdd style reachWhite = new BDD[V * V]; reachBlack = new BDD[V * V]; for (int p = 0; p < V; p++) { if (!board.isValidField(p)) { continue; } for (int q = 0; q < V; q+...
private void initReachability() { // number of vertices int V = board.getColumns() * board.getRows(); // adjacency matrix with bdd style reachWhite = new BDD[V * V]; reachBlack = new BDD[V * V]; for (int p = 0; p < V; p++) { if (!board.isValidField(p)) { continue; } for (int q = 0; q < V; q+...
diff --git a/src/net/java/sip/communicator/plugin/updatechecker/UpdateCheckActivator.java b/src/net/java/sip/communicator/plugin/updatechecker/UpdateCheckActivator.java index ee8c36574..07772109b 100644 --- a/src/net/java/sip/communicator/plugin/updatechecker/UpdateCheckActivator.java +++ b/src/net/java/sip/communicato...
false
true
private void windowsUpdate() { File tempF = null; try { final File temp = File.createTempFile("sc-install", ".exe"); tempF = temp; URL u = new URL(downloadLink); URLConnection uc = u.openConnection(); if (uc instanceof HttpURL...
private void windowsUpdate() { File tempF = null; try { final File temp = File.createTempFile("sc-install", ".exe"); tempF = temp; URL u = new URL(downloadLink); URLConnection uc = u.openConnection(); if (uc instanceof HttpURL...
diff --git a/src/org/jruby/debug/DebugEventHook.java b/src/org/jruby/debug/DebugEventHook.java index 40157ae..6d7e5e6 100644 --- a/src/org/jruby/debug/DebugEventHook.java +++ b/src/org/jruby/debug/DebugEventHook.java @@ -1,625 +1,625 @@ /* * header & license * Copyright (c) 2007-2008 Martin Krauskopf * Copyright...
true
true
private void processEvent(final ThreadContext tCtx, final int event, final String file, final int line0, final String methodName, final IRubyObject klass, DebugContextPair contexts) { if (debugger.isDebug()) { Util.logEvent(event, file, line0, methodName, klass); } /...
private void processEvent(final ThreadContext tCtx, final int event, final String file, final int line0, final String methodName, final IRubyObject klass, DebugContextPair contexts) { if (debugger.isDebug()) { Util.logEvent(event, file, line0, methodName, klass); } /...
diff --git a/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseCallbackReceiver.java b/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseCallbackReceiver.java index 6de7af8f3..02621fdec 100644 --- a/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseCallbackReceiv...
true
true
private void handleMessage(MessageContext response, org.apache.synapse.MessageContext synapseOutMsgCtx) { Object o = response.getProperty("sending_fault"); if (o != null && Boolean.TRUE.equals(o)) { // there is a sending fault. propagate the fault to fault handlers. ...
private void handleMessage(MessageContext response, org.apache.synapse.MessageContext synapseOutMsgCtx) { Object o = response.getProperty("sending_fault"); if (o != null && Boolean.TRUE.equals(o)) { // there is a sending fault. propagate the fault to fault handlers. ...
diff --git a/src/main/java/org/jboss/loom/migrators/_ext/ExternalMigratorsLoader.java b/src/main/java/org/jboss/loom/migrators/_ext/ExternalMigratorsLoader.java index 4bdb538..45bec12 100644 --- a/src/main/java/org/jboss/loom/migrators/_ext/ExternalMigratorsLoader.java +++ b/src/main/java/org/jboss/loom/migrators/_ext/...
true
true
private static Map<String, Class<? extends IConfigFragment>> loadJaxbClasses( MigratorDefinition desc ) throws MigrationException { Map<String, Class<? extends IConfigFragment>> jaxbClasses = new HashMap(); List<Exception> problems = new LinkedList(); // JAXB class....
private static Map<String, Class<? extends IConfigFragment>> loadJaxbClasses( MigratorDefinition desc ) throws MigrationException { Map<String, Class<? extends IConfigFragment>> jaxbClasses = new HashMap(); List<Exception> problems = new LinkedList(); // JAXB class....
diff --git a/src/main/java/com/treasure_data/td_import/reader/NonFixnumColumnsFileReader.java b/src/main/java/com/treasure_data/td_import/reader/NonFixnumColumnsFileReader.java index 913e7ed..c3ee31a 100644 --- a/src/main/java/com/treasure_data/td_import/reader/NonFixnumColumnsFileReader.java +++ b/src/main/java/com/tr...
true
true
public boolean next() throws PreparePartsException { try { if (!readRow()) { return false; } setColumnNames(); writer.setColumnNames(getColumnNames()); setColumnTypes(); writer.setColumnTypes(getColumnTypes()); ...
public boolean next() throws PreparePartsException { try { if (!readRow()) { return false; } setColumnNames(); writer.setColumnNames(getColumnNames()); setColumnTypes(); writer.setColumnTypes(getColumnTypes()); ...
diff --git a/src/uk/ac/ebi/age/log/Log2JSON.java b/src/uk/ac/ebi/age/log/Log2JSON.java index 4323fea..ca551e8 100644 --- a/src/uk/ac/ebi/age/log/Log2JSON.java +++ b/src/uk/ac/ebi/age/log/Log2JSON.java @@ -1,67 +1,67 @@ package uk.ac.ebi.age.log; import uk.ac.ebi.age.log.LogNode.Level; import com.pri.util.StringU...
true
true
private static void convertNode( LogNode ln, StringBuilder sb, int lyr ) { sb.append("{\n"); sb.append(" level: \"").append(ln.getLevel().name()).append("\",\n"); if( ln.getMessage() != null ) { sb.append(" message: \""); StringUtils.appendSlashed(sb, ln.getMessage()); sb.append("\",\n"); } ...
private static void convertNode( LogNode ln, StringBuilder sb, int lyr ) { sb.append("{\n"); sb.append(" level: \"").append(ln.getLevel().name()).append("\",\n"); if( ln.getMessage() != null ) { sb.append(" message: \""); StringUtils.appendBackslashed(sb, ln.getMessage(),'"'); sb.append("\",\n");...
diff --git a/src/com/androzic/Splash.java b/src/com/androzic/Splash.java index 62ec7d0..d6e5e19 100644 --- a/src/com/androzic/Splash.java +++ b/src/com/androzic/Splash.java @@ -1,618 +1,619 @@ /* * Androzic - android navigation client that uses OziExplorer maps (ozf2, ozfx3). * Copyright (C) 2010-2012 Andrey Novi...
true
true
public void run() { while (wait) { try { sleep(100); } catch (InterruptedException e) { e.printStackTrace(); } } total = 0; Message msg = mHandler.obtainMessage(MSG_STATUS); Bundle b = new Bundle(); b.putString("message", getString(R.string.msg_initializin...
public void run() { while (wait) { try { sleep(100); } catch (InterruptedException e) { e.printStackTrace(); } } total = 0; Message msg = mHandler.obtainMessage(MSG_STATUS); Bundle b = new Bundle(); b.putString("message", getString(R.string.msg_initializin...
diff --git a/server/src/main/java/imagej/omero/server/DefaultOMEROService.java b/server/src/main/java/imagej/omero/server/DefaultOMEROService.java index b320804..6c3ebee 100644 --- a/server/src/main/java/imagej/omero/server/DefaultOMEROService.java +++ b/server/src/main/java/imagej/omero/server/DefaultOMEROService.java...
false
true
public Object toImageJ(final omero.client client, final omero.RType value, final Class<?> type) { if (value instanceof omero.RCollection) { // collection of objects final Collection<omero.RType> omeroCollection = ((omero.RCollection) value).getValue(); final Collection<Object> collection; if (valu...
public Object toImageJ(final omero.client client, final omero.RType value, final Class<?> type) { if (value instanceof omero.RCollection) { // collection of objects final Collection<omero.RType> omeroCollection = ((omero.RCollection) value).getValue(); final Collection<Object> collection; if (valu...
diff --git a/teo/teo/isgci/drawing/GraphEvent.java b/teo/teo/isgci/drawing/GraphEvent.java index 87bec2a..a60e840 100644 --- a/teo/teo/isgci/drawing/GraphEvent.java +++ b/teo/teo/isgci/drawing/GraphEvent.java @@ -1,29 +1,30 @@ package teo.isgci.drawing; import java.awt.event.MouseAdapter; import com.mxgraph.swin...
true
true
public void registerMouseAdapter(MouseAdapter adapter) { graphComponent.addMouseListener(adapter); graphComponent.addMouseWheelListener(adapter); }
public void registerMouseAdapter(MouseAdapter adapter) { graphComponent.addMouseListener(adapter); graphComponent.getGraphControl().addMouseListener(adapter); graphComponent.addMouseWheelListener(adapter); }
diff --git a/src/main/java/ch/o2it/weblounge/contentrepository/impl/endpoint/FilesEndpointDocs.java b/src/main/java/ch/o2it/weblounge/contentrepository/impl/endpoint/FilesEndpointDocs.java index ce63d42b1..515151e94 100644 --- a/src/main/java/ch/o2it/weblounge/contentrepository/impl/endpoint/FilesEndpointDocs.java +++ ...
true
true
public static String createDocumentation(String endpointUrl) { EndpointDocumentation docs = new EndpointDocumentation(endpointUrl, "files"); docs.setTitle("Weblounge Files"); // GET /?path= Endpoint getFileByPathEndpoint = new Endpoint("/{resource}", Method.GET, "getfile"); getFileByPathEndpoint....
public static String createDocumentation(String endpointUrl) { EndpointDocumentation docs = new EndpointDocumentation(endpointUrl, "files"); docs.setTitle("Weblounge Files"); // GET /?path= Endpoint getFileByPathEndpoint = new Endpoint("/", Method.GET, "getfile"); getFileByPathEndpoint.setDescrip...
diff --git a/src/org/sparvnastet/rnf/GameThread.java b/src/org/sparvnastet/rnf/GameThread.java index 6d3ca40..34664af 100644 --- a/src/org/sparvnastet/rnf/GameThread.java +++ b/src/org/sparvnastet/rnf/GameThread.java @@ -1,103 +1,104 @@ /** * Copyright (c) 2012 Anders Sundman <anders@4zm.org> * * This file is p...
true
true
public void run() { while (running_.get()) { MotionEvent[] motionEvents = inputBroker_.takeBundle(); // Check how much to advance the simulation long now = System.currentTimeMillis(); float elapsed = (float) ((now - lastTime_) / 1000.0); gameStat...
public void run() { while (running_.get()) { MotionEvent[] motionEvents = inputBroker_.takeBundle(); // Check how much to advance the simulation long now = System.currentTimeMillis(); float elapsed = (float) ((now - lastTime_) / 1000.0); lastTime...
diff --git a/src/org/ohmage/controls/ActionBarControl.java b/src/org/ohmage/controls/ActionBarControl.java index 35cca76..189e1e6 100644 --- a/src/org/ohmage/controls/ActionBarControl.java +++ b/src/org/ohmage/controls/ActionBarControl.java @@ -1,222 +1,223 @@ package org.ohmage.controls; import org.ohmage.R; impo...
true
true
public ActionBarControl(Context context, AttributeSet attrs) { super(context, attrs); mActivity = (Activity)context; // load up the elements of the actionbar from controls_actionbar.xml LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); inflater.inflate...
public ActionBarControl(Context context, AttributeSet attrs) { super(context, attrs); mActivity = (Activity)context; // load up the elements of the actionbar from controls_actionbar.xml LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); inflater.inflate...
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java b/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java index 8f968b4397..ebdc9c7230 100755 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java +++ b/tests/DumpRenderTree...
false
true
public void onCreate(Bundle icicle) { super.onCreate(icicle); this.mTestPath = (String) icicle.get("path"); String timeout_str = (String) icicle.get("timeout"); if (timeout_str != null) { try { this.mTimeoutInMillis = Integer.parseInt(timeout_str); ...
public void onCreate(Bundle icicle) { this.mTestPath = (String) icicle.get("path"); String timeout_str = (String) icicle.get("timeout"); if (timeout_str != null) { try { this.mTimeoutInMillis = Integer.parseInt(timeout_str); } catch (Exception e) { ...
diff --git a/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/actions/structure/UpdateProposedDocument.java b/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/actions/structure/UpdateProposedDocument.java index 1f5ddcaaa..31f79af9c 100644 --- a/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/actions/struct...
false
true
public void execute(Context context, Parameters parameters, MVCContext mvcContext, TemplatingContext templatingContext, HttpContext httpContext, CoralSession coralSession) throws ProcessingException { boolean valid = true; try { long docId = parameters.getLong...
public void execute(Context context, Parameters parameters, MVCContext mvcContext, TemplatingContext templatingContext, HttpContext httpContext, CoralSession coralSession) throws ProcessingException { boolean valid = true; try { long docId = parameters.getLong...
diff --git a/pace-base/src/main/java/com/pace/base/project/utils/PafExcelUtil.java b/pace-base/src/main/java/com/pace/base/project/utils/PafExcelUtil.java index b96cdf67..866f5ea0 100644 --- a/pace-base/src/main/java/com/pace/base/project/utils/PafExcelUtil.java +++ b/pace-base/src/main/java/com/pace/base/project/utils...
true
true
public static void writeExcelSheet(PafExcelInput input, List<PafExcelRow> paceRowList) throws PafException { if ( input == null ) { throw new IllegalArgumentException("Pace Excel Input cannot be null"); } else if ( input.getFullWorkbookName() == null && input.getWorkbook() == null ) { thro...
public static void writeExcelSheet(PafExcelInput input, List<PafExcelRow> paceRowList) throws PafException { if ( input == null ) { throw new IllegalArgumentException("Pace Excel Input cannot be null"); } else if ( input.getFullWorkbookName() == null && input.getWorkbook() == null ) { thro...
diff --git a/SampleWebApplication/src/edu/gac/mcs270/ui/client/SampleWebApplication.java b/SampleWebApplication/src/edu/gac/mcs270/ui/client/SampleWebApplication.java index 880b20c..809fac0 100644 --- a/SampleWebApplication/src/edu/gac/mcs270/ui/client/SampleWebApplication.java +++ b/SampleWebApplication/src/edu/gac/mc...
false
true
public void onModuleLoad() { final Button sendButton = new Button("Send"); final TextBox nameField = new TextBox(); nameField.setText("GWT User"); final Label errorLabel = new Label(); // We can add style names to widgets sendButton.addStyleName("sendButton"); // Add the nameField and sendButton to the...
public void onModuleLoad() { final Button sendButton = new Button("Send"); final TextBox nameField = new TextBox(); nameField.setText("GWT User"); final Label errorLabel = new Label(); // We can add style names to widgets sendButton.addStyleName("sendButton"); // Add the nameField and sendButton to the...
diff --git a/src/edu/sc/seis/sod/NetworkArm.java b/src/edu/sc/seis/sod/NetworkArm.java index 0a0d392b4..65ce6dee6 100644 --- a/src/edu/sc/seis/sod/NetworkArm.java +++ b/src/edu/sc/seis/sod/NetworkArm.java @@ -1,818 +1,820 @@ package edu.sc.seis.sod; import java.sql.SQLException; import java.util.ArrayList; import...
false
true
public CacheNetworkAccess[] getSuccessfulNetworks() throws NetworkNotFound { synchronized(netGetSync) { SodDB sodDb = SodDB.getSingleton(); if(lastQueryTime == null) { // try from db lastQueryTime = sodDb.getQueryTime(finder.getName(), ...
public CacheNetworkAccess[] getSuccessfulNetworks() throws NetworkNotFound { synchronized(netGetSync) { SodDB sodDb = SodDB.getSingleton(); if(lastQueryTime == null) { // try from db lastQueryTime = sodDb.getQueryTime(finder.getName(), ...
diff --git a/src/main/java/org/cchmc/bmi/snpomics/OutputField.java b/src/main/java/org/cchmc/bmi/snpomics/OutputField.java index ce879a4..059802a 100644 --- a/src/main/java/org/cchmc/bmi/snpomics/OutputField.java +++ b/src/main/java/org/cchmc/bmi/snpomics/OutputField.java @@ -1,57 +1,58 @@ package org.cchmc.bmi.snpomi...
true
true
public OutputField(Method source) { method = source; annotation = method.getAnnotation(MetaAnnotation.class); throw new SnpomicsException("Method '"+method.getClass().getCanonicalName()+"."+method.getName()+ "' is an OutputField with no MetaAnnotation"); }
public OutputField(Method source) { method = source; annotation = method.getAnnotation(MetaAnnotation.class); if (annotation == null) throw new SnpomicsException("Method '"+method.getDeclaringClass().getCanonicalName()+"."+method.getName()+ "' is an OutputField with no MetaAnnotation"); }
diff --git a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestMessageMainPanel.java b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestMessageMainPanel.java index 8b757d406..88a34a498 100644 --- a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestMessageMainPanel.java +++ b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestMessageMa...
true
true
private void customizeComponents() { messagePanel = new IngestMessagePanel(this); detailsPanel = new IngestMessageDetailsPanel(this); //we need to handle resizing ourselves due to absence of layout manager //in layered layout this.addComponentListener(new ComponentListener()...
private void customizeComponents() { messagePanel = new IngestMessagePanel(this); detailsPanel = new IngestMessageDetailsPanel(this); //we need to handle resizing ourselves due to absence of layout manager //in layered layout this.addComponentListener(new ComponentListener()...
diff --git a/sinciput/src/com/technosophos/sinciput/commands/admin/RemoveUser.java b/sinciput/src/com/technosophos/sinciput/commands/admin/RemoveUser.java index 866c903..b946d87 100644 --- a/sinciput/src/com/technosophos/sinciput/commands/admin/RemoveUser.java +++ b/sinciput/src/com/technosophos/sinciput/commands/admin...
true
true
public void doCommand(Map<String, Object> params, List<CommandResult> results) throws ReRouteRequest { RepositorySearcher search = null; try { search = this.repoman.getSearcher(SETTINGS_REPO); } catch (RhizomeInitializationException e) { String errMsg = "RepositorySearcher could not be retrieved."; ...
public void doCommand(Map<String, Object> params, List<CommandResult> results) throws ReRouteRequest { RepositorySearcher search = null; try { search = this.repoman.getSearcher(SETTINGS_REPO); } catch (RhizomeInitializationException e) { String errMsg = "RepositorySearcher could not be retrieved."; ...
diff --git a/Android/src/pt/traincompany/account/CardAdapter.java b/Android/src/pt/traincompany/account/CardAdapter.java index bb0e631..f71a6c0 100644 --- a/Android/src/pt/traincompany/account/CardAdapter.java +++ b/Android/src/pt/traincompany/account/CardAdapter.java @@ -1,57 +1,58 @@ package pt.traincompany.account;...
true
true
public View getView(int position, View convertView, ViewGroup parent) { View row = convertView; CardHolder holder = null; if (row == null) { LayoutInflater inflater = ((Activity) context).getLayoutInflater(); row = inflater.inflate(layoutResourceId, parent, false); holder = new CardHolder(); holder...
public View getView(int position, View convertView, ViewGroup parent) { View row = convertView; CardHolder holder = null; if (row == null) { LayoutInflater inflater = ((Activity) context).getLayoutInflater(); row = inflater.inflate(layoutResourceId, parent, false); holder = new CardHolder(); holder...
diff --git a/tool/src/java/org/sakaiproject/profile2/tool/entityprovider/ProfileEntityProvider.java b/tool/src/java/org/sakaiproject/profile2/tool/entityprovider/ProfileEntityProvider.java index 0e9417fb..b0e0998e 100644 --- a/tool/src/java/org/sakaiproject/profile2/tool/entityprovider/ProfileEntityProvider.java +++ b/...
true
true
private String getUserProfileAsHTML(UserProfile userProfile) { //note there is no birthday in this field. we need a good way to get the birthday without the year. //maybe it needs to be stored in a separate field and treated differently. Or returned as a localised string. StringBuilder sb = new StringBuil...
private String getUserProfileAsHTML(UserProfile userProfile) { //note there is no birthday in this field. we need a good way to get the birthday without the year. //maybe it needs to be stored in a separate field and treated differently. Or returned as a localised string. StringBuilder sb = new StringBuil...
diff --git a/insight/insight-camel/src/main/java/org/fusesource/insight/camel/breadcrumb/Breadcrumbs.java b/insight/insight-camel/src/main/java/org/fusesource/insight/camel/breadcrumb/Breadcrumbs.java index b72822ad9..744190aa1 100644 --- a/insight/insight-camel/src/main/java/org/fusesource/insight/camel/breadcrumb/Bre...
true
true
public static Set<String> getBreadcrumbs(Exchange exchange) { Object val = exchange.getIn().getHeader(BREADCRUMB); Set<String> breadcrumbs; if (val instanceof BreadcrumbSet) { return (BreadcrumbSet) val; } breadcrumbs = new BreadcrumbSet(); if (val instanc...
public static Set<String> getBreadcrumbs(Exchange exchange) { Object val = exchange.getIn().getHeader(BREADCRUMB); Set<String> breadcrumbs; if (val instanceof BreadcrumbSet) { return (BreadcrumbSet) val; } breadcrumbs = new BreadcrumbSet(); exchange.getIn(...
diff --git a/izpack-src/trunk/src/lib/com/izforge/izpack/installer/Unpacker.java b/izpack-src/trunk/src/lib/com/izforge/izpack/installer/Unpacker.java index 32fde411..ca071d6c 100644 --- a/izpack-src/trunk/src/lib/com/izforge/izpack/installer/Unpacker.java +++ b/izpack-src/trunk/src/lib/com/izforge/izpack/installer/Unp...
false
true
public void run() { addToInstances(); try { // // Initialisations FileOutputStream out = null; ArrayList<ParsableFile> parsables = new ArrayList<ParsableFile>(); ArrayList<ExecutableFile> executables = new ArrayList<ExecutableFi...
public void run() { addToInstances(); try { // // Initialisations FileOutputStream out = null; ArrayList<ParsableFile> parsables = new ArrayList<ParsableFile>(); ArrayList<ExecutableFile> executables = new ArrayList<ExecutableFi...
diff --git a/src/simple/home/jtbuaa/simpleHome.java b/src/simple/home/jtbuaa/simpleHome.java index 4795ca8..7cd7503 100755 --- a/src/simple/home/jtbuaa/simpleHome.java +++ b/src/simple/home/jtbuaa/simpleHome.java @@ -1,1415 +1,1415 @@ package simple.home.jtbuaa; import java.io.EOFException; import java.io.File; i...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); myPackageName = this.getPackageName(); pm = getPackageManager(); version = util.getVersion(this); try { getPackageSizeInfo = PackageManager.class.getMethod( "getPackageSiz...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); myPackageName = this.getPackageName(); pm = getPackageManager(); version = util.getVersion(this); try { getPackageSizeInfo = PackageManager.class.getMethod( "getPackageSiz...
diff --git a/se/sics/mspsim/core/MSP430Core.java b/se/sics/mspsim/core/MSP430Core.java index a6c7c3d..5ed2a40 100644 --- a/se/sics/mspsim/core/MSP430Core.java +++ b/se/sics/mspsim/core/MSP430Core.java @@ -1,1210 +1,1211 @@ /** * Copyright (c) 2007, Swedish Institute of Computer Science. * All rights reserved. * ...
true
true
public boolean emulateOP() { //System.out.println("CYCLES BEFORE: " + cycles); int pc = readRegister(PC); long startCycles = cycles; // ------------------------------------------------------------------- // Event processing // ------------------------------------------------------------------...
public boolean emulateOP() { //System.out.println("CYCLES BEFORE: " + cycles); int pc = readRegister(PC); long startCycles = cycles; // ------------------------------------------------------------------- // Event processing // ------------------------------------------------------------------...
diff --git a/src/java/org/grails/plugin/config/AbstractConfigHelper.java b/src/java/org/grails/plugin/config/AbstractConfigHelper.java index 37bd017..730033b 100644 --- a/src/java/org/grails/plugin/config/AbstractConfigHelper.java +++ b/src/java/org/grails/plugin/config/AbstractConfigHelper.java @@ -1,371 +1,372 @@ /*...
true
true
protected ConfigObject buildMergedConfig(GrailsPluginManager pluginManager, GrailsApplication grailsApplication) { if (log.isDebugEnabled()) { log.debug("getMergedConfigImpl()"); } Assert.notNull(pluginManager); Assert.notNull...
protected ConfigObject buildMergedConfig(GrailsPluginManager pluginManager, GrailsApplication grailsApplication) { if (log.isDebugEnabled()) { log.debug("getMergedConfigImpl()"); } Assert.notNull(pluginManager); Assert.notNull...
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/ConfigurationLoader.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/ConfigurationLoader.java index 11e99b9c..2eec1a9d 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/ConfigurationLoader.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyl...
false
true
public void startElement(String aNamespaceURI, String aLocalName, String aQName, Attributes aAtts) throws SAXException { // TODO: debug logging for support puposes DefaultConfiguration conf = new D...
public void startElement(String aNamespaceURI, String aLocalName, String aQName, Attributes aAtts) throws SAXException { // TODO: debug logging for support puposes DefaultConfiguration conf = new D...
diff --git a/test/edu/msu/cme/rdp/kmer/cli/KmerCoverageTest.java b/test/edu/msu/cme/rdp/kmer/cli/KmerCoverageTest.java index d0deaa6..7cbf19d 100644 --- a/test/edu/msu/cme/rdp/kmer/cli/KmerCoverageTest.java +++ b/test/edu/msu/cme/rdp/kmer/cli/KmerCoverageTest.java @@ -1,112 +1,112 @@ /* * Copyright (C) 2014 wangqion...
true
true
public void testGetContigMap() throws Exception { System.out.println("getContigMap"); int kmer_size = 30; String contigs = ">contig1\n" + "ccccacgagcaggcgaccaagcaaggcccgaagatcatggaattccggctcacggttga\n" + ">contig2\n" + "caggcgaccaagcaaggcccgaagatcatggaattccggctcacggtt...
public void testGetContigMap() throws Exception { System.out.println("getContigMap"); int kmer_size = 30; String contigs = ">contig1\n" + "ccccacgagcaggcgaccaagcaaggcccgaagatcatggaattccggctcacggttga\n" + ">contig2\n" + "caggcgaccaagcaaggcccgaagatcatggaattccggctcacggtt...
diff --git a/logic/src/de/zib/gndms/logic/model/gorfx/AbstractTransferORQCalculator.java b/logic/src/de/zib/gndms/logic/model/gorfx/AbstractTransferORQCalculator.java index ce5fcbbc..ff3f2a3f 100644 --- a/logic/src/de/zib/gndms/logic/model/gorfx/AbstractTransferORQCalculator.java +++ b/logic/src/de/zib/gndms/logic/mode...
true
true
protected Long estimateTransferSize( ) throws ServerException, IOException, ClientException { GridFTPClient clnt = null; try { URI suri = new URI( getORQArguments().getSourceURI() ); clnt = NetworkAuxiliariesProvider.getGridFTPClientFactory().createClient( suri, getCredent...
protected Long estimateTransferSize( ) throws ServerException, IOException, ClientException { GridFTPClient clnt = null; try { URI suri = new URI( getORQArguments().getSourceURI() ); clnt = NetworkAuxiliariesProvider.getGridFTPClientFactory().createClient( suri, getCredent...
diff --git a/src/java/com/eviware/soapui/impl/wsdl/submit/filters/HttpRequestFilter.java b/src/java/com/eviware/soapui/impl/wsdl/submit/filters/HttpRequestFilter.java index 0a00e6a52..b309fe599 100644 --- a/src/java/com/eviware/soapui/impl/wsdl/submit/filters/HttpRequestFilter.java +++ b/src/java/com/eviware/soapui/imp...
true
true
public void filterHttpRequest( SubmitContext context, HttpRequestInterface<?> request ) { HttpRequestBase httpMethod = ( HttpRequestBase )context.getProperty( BaseHttpRequestTransport.HTTP_METHOD ); String path = PropertyExpander.expandProperties( context, request.getPath() ); StringBuffer query = new StringBu...
public void filterHttpRequest( SubmitContext context, HttpRequestInterface<?> request ) { HttpRequestBase httpMethod = ( HttpRequestBase )context.getProperty( BaseHttpRequestTransport.HTTP_METHOD ); String path = PropertyExpander.expandProperties( context, request.getPath() ); StringBuffer query = new StringBu...
diff --git a/flexmojos-testing/flexmojos-test-harness/src/test/java/org/sonatype/flexmojos/tests/concept/ArchetypesTest.java b/flexmojos-testing/flexmojos-test-harness/src/test/java/org/sonatype/flexmojos/tests/concept/ArchetypesTest.java index a4f91bf42..49fc3bdd7 100644 --- a/flexmojos-testing/flexmojos-test-harness/...
true
true
private void testArchetype( String kind ) throws IOException, VerificationException { if ( baseTestDir == null ) { baseTestDir = getProject( "/concept/archetype" ); } String artifactId = "artifact-it-" + kind; String[] args = new String[]...
private void testArchetype( String kind ) throws IOException, VerificationException { if ( baseTestDir == null ) { baseTestDir = getProject( "/concept/archetype" ); } String artifactId = "artifact-it-" + kind; String[] args = new String[]...
diff --git a/src/de/bwv_aachen/dijkstra/gui/Mainwindow.java b/src/de/bwv_aachen/dijkstra/gui/Mainwindow.java index 5394aa1..8ba619d 100644 --- a/src/de/bwv_aachen/dijkstra/gui/Mainwindow.java +++ b/src/de/bwv_aachen/dijkstra/gui/Mainwindow.java @@ -1,228 +1,228 @@ /** * Mainwindow * <p> * The main window * ...
false
true
public void draw() { super.getContentPane().removeAll(); // making this function being able // to repaint the mainwindow super.setTitle("Dijkstra"); super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); super.setResizable(false); s...
public void draw() { super.getContentPane().removeAll(); // making this function being able // to repaint the mainwindow super.setTitle("Dijkstra"); super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); super.setResizable(false); s...
diff --git a/chips/src/com/android/ex/chips/SingleAddressAdapter.java b/chips/src/com/android/ex/chips/SingleAddressAdapter.java index 97ad21e..8131fc3 100644 --- a/chips/src/com/android/ex/chips/SingleAddressAdapter.java +++ b/chips/src/com/android/ex/chips/SingleAddressAdapter.java @@ -1,63 +1,63 @@ /* * Copyright...
false
true
private void bindView(View view, Context context, RecipientEntry entry) { TextView display = (TextView) view.findViewById(android.R.id.text1); ImageView imageView = (ImageView) view.findViewById(android.R.id.icon); display.setText(entry.getDisplayName()); display.setVisibility(View.V...
private void bindView(View view, Context context, RecipientEntry entry) { TextView display = (TextView) view.findViewById(android.R.id.title); ImageView imageView = (ImageView) view.findViewById(android.R.id.icon); display.setText(entry.getDisplayName()); display.setVisibility(View.V...
diff --git a/util/plugins/eu.esdihumboldt.util/src/eu/esdihumboldt/util/StructuredEquals.java b/util/plugins/eu.esdihumboldt.util/src/eu/esdihumboldt/util/StructuredEquals.java index 3ea38784a..2c1b99806 100644 --- a/util/plugins/eu.esdihumboldt.util/src/eu/esdihumboldt/util/StructuredEquals.java +++ b/util/plugins/eu....
true
true
public boolean deepIterableEquals(Object o1, Object o2) { if (o1 == o2) { return true; } Iterable<?> iterable1 = asIterable(o1); Iterable<?> iterable2 = asIterable(o1); if (iterable1 != null && iterable2 != null) { if (Iterables.size(iterable1) == Iterables.size(iterable2)) { // size check Itera...
public boolean deepIterableEquals(Object o1, Object o2) { if (o1 == o2) { return true; } Iterable<?> iterable1 = asIterable(o1); Iterable<?> iterable2 = asIterable(o2); if (iterable1 != null && iterable2 != null) { if (Iterables.size(iterable1) == Iterables.size(iterable2)) { // size check Itera...
diff --git a/src/impl/java/org/wyona/yarep/impl/repo/xmldb/XMLDBStorage.java b/src/impl/java/org/wyona/yarep/impl/repo/xmldb/XMLDBStorage.java index a83da06..b119749 100644 --- a/src/impl/java/org/wyona/yarep/impl/repo/xmldb/XMLDBStorage.java +++ b/src/impl/java/org/wyona/yarep/impl/repo/xmldb/XMLDBStorage.java @@ -1,3...
true
true
public void readConfig(Configuration aStorageConfig, File aRepoConfigFile) throws RepositoryException { Boolean createPrefix; Configuration repositoryConfig; Configuration credentialsConfig; Database database; File databaseHomeDir; Service co...
public void readConfig(Configuration aStorageConfig, File aRepoConfigFile) throws RepositoryException { boolean createPrefix; Configuration repositoryConfig; Configuration credentialsConfig; Database database; File databaseHomeDir; Service co...
diff --git a/mes-plugins/mes-plugins-time-norms-for-operations/src/test/java/com/qcadoo/mes/timeNormsForOperations/hooks/TechnologyOperationComponentDetailsHooksTest.java b/mes-plugins/mes-plugins-time-norms-for-operations/src/test/java/com/qcadoo/mes/timeNormsForOperations/hooks/TechnologyOperationComponentDetailsHook...
true
true
public void init() { MockitoAnnotations.initMocks(this); technologyOperationComponentDetailsHooks = new TechnologyOperationComponentDetailsHooks(); ReflectionTestUtils.setField(technologyOperationComponentDetailsHooks, "technologyService", technologyService); ReflectionTestUtils.se...
public void init() { MockitoAnnotations.initMocks(this); technologyOperationComponentDetailsHooks = new TechnologyOperationComponentDetailsHooks(); ReflectionTestUtils.setField(technologyOperationComponentDetailsHooks, "technologyService", technologyService); ReflectionTestUtils.se...
diff --git a/com.mountainminds.eclemma.ui/src/com/mountainminds/eclemma/internal/ui/launching/InplaceInstrumentationWarning.java b/com.mountainminds.eclemma.ui/src/com/mountainminds/eclemma/internal/ui/launching/InplaceInstrumentationWarning.java index f590ea2..8089c89 100644 --- a/com.mountainminds.eclemma.ui/src/com/...
true
true
public Object handleStatus(IStatus status, Object source) throws CoreException { ILaunchConfiguration config = (ILaunchConfiguration) source; Shell parent = EclEmmaUIPlugin.getInstance().getShell(); String title = UIMessages.InstrumentationWarning_title; String message = NLS.bind(UIMessages.Ins...
public Object handleStatus(IStatus status, Object source) throws CoreException { ILaunchConfiguration config = (ILaunchConfiguration) source; Shell parent = EclEmmaUIPlugin.getInstance().getShell(); String title = UIMessages.InstrumentationWarning_title; String message = NLS.bind(UIMessages.Ins...
diff --git a/src/node/src/main/java/vdi/node/rest/InitializeContext.java b/src/node/src/main/java/vdi/node/rest/InitializeContext.java index 07525aa..b5fb864 100644 --- a/src/node/src/main/java/vdi/node/rest/InitializeContext.java +++ b/src/node/src/main/java/vdi/node/rest/InitializeContext.java @@ -1,57 +1,57 @@ pack...
true
true
public void contextInitialized(ServletContextEvent contextEvent) { // Load configuration InputStream is = contextEvent.getServletContext().getResourceAsStream("/WEB-INF/configuration.properties"); if (is != null) { Configuration.loadProperties(is); try { is.close(); } catch (IOException e) { e....
public void contextInitialized(ServletContextEvent contextEvent) { // Load configuration InputStream is = contextEvent.getServletContext().getResourceAsStream("/WEB-INF/configuration.properties"); if (is != null) { Configuration.loadProperties(is); try { is.close(); } catch (IOException e) { e....
diff --git a/src/main/java/com/p000ison/dev/copybooks/commands/DownloadCommand.java b/src/main/java/com/p000ison/dev/copybooks/commands/DownloadCommand.java index 43f5dec..81f6d28 100644 --- a/src/main/java/com/p000ison/dev/copybooks/commands/DownloadCommand.java +++ b/src/main/java/com/p000ison/dev/copybooks/commands/...
true
true
public void execute(CommandSender sender, String label, String[] args) { if (sender instanceof Player) { Player player = (Player) sender; String author = player.getName(); if (args.length == 3) { author = args[2]; } WrittenBo...
public void execute(CommandSender sender, String label, String[] args) { if (sender instanceof Player) { Player player = (Player) sender; String author = player.getName(); if (args.length == 3) { author = args[2]; } WrittenBo...
diff --git a/src/com/cyanogenmod/filemanager/ui/dialogs/InitialDirectoryDialog.java b/src/com/cyanogenmod/filemanager/ui/dialogs/InitialDirectoryDialog.java index 9e5e0e2..2761531 100644 --- a/src/com/cyanogenmod/filemanager/ui/dialogs/InitialDirectoryDialog.java +++ b/src/com/cyanogenmod/filemanager/ui/dialogs/Initial...
true
true
public InitialDirectoryDialog(Context context) { super(); //Save the context this.mContext = context; //Extract current value String value = Preferences.getSharedPreferences().getString( FileManagerSettings.SETTINGS_INITIAL_DIR.getId(), (Stri...
public InitialDirectoryDialog(Context context) { super(); //Save the context this.mContext = context; //Extract current value String value = Preferences.getSharedPreferences().getString( FileManagerSettings.SETTINGS_INITIAL_DIR.getId(), (Stri...
diff --git a/Edge3.java b/Edge3.java index 60bc2e67..c0d116f9 100644 --- a/Edge3.java +++ b/Edge3.java @@ -1,253 +1,253 @@ package cs.threephase; import java.util.*; import java.io.*; import static cs.threephase.Util.*; import static cs.threephase.Moves.*; final class Edge3 implements Runnable { int[] edge = ...
true
true
static void createPrun() { System.out.println("Create Phase3 Edge Pruning Table..."); prun = new int[12*11*10*9*8*7*6*5*4*3/16]; Arrays.fill(prun, (int)-1); Arrays.fill(modedTable, (byte)0xbb); setPruning(modedTable, 0, 0); prun[0] = 0xfffffffc; for (depth=0; depth<10; depth++) { depm3 = depth % 3;...
static void createPrun() { System.out.println("Create Phase3 Edge Pruning Table..."); prun = new int[12*11*10*9*8*7*6*5*4*3/16]; Arrays.fill(prun, -1); Arrays.fill(modedTable, (byte)0xbb); setPruning(modedTable, 0, 0); prun[0] = 0xfffffffc; for (depth=0; depth<10; depth++) { depm3 = depth % 3; d...
diff --git a/TestNetworkTable/src/NetworkTablesDesktopClient.java b/TestNetworkTable/src/NetworkTablesDesktopClient.java index 4f7a4f9..1349a18 100644 --- a/TestNetworkTable/src/NetworkTablesDesktopClient.java +++ b/TestNetworkTable/src/NetworkTablesDesktopClient.java @@ -1,42 +1,42 @@ import edu.wpi.first.smartdashbo...
true
true
static void run() { NetworkTable.setTeam(2557); //sets our team number NetworkTable table = (NetworkTable) Robot.getTable(); while (true) { try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } table.putNumber("Q", 11); //puts the number "11" into a key c...
static void run() { NetworkTable.setIPAddress("10.25.57.2"); //sets our team number NetworkTable table = NetworkTable.getTable("SmartDashboard"); while (true) { try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } table.putNumber("Q", 11); //puts the num...
diff --git a/src/graphview/LineShape.java b/src/graphview/LineShape.java index eb188ee..9a86f8b 100644 --- a/src/graphview/LineShape.java +++ b/src/graphview/LineShape.java @@ -1,200 +1,200 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package graphview; ...
true
true
public void draw(Graphics2D g) { g.setColor(color); if(bSelected) g.setColor(Color.red); Vec2 point=null; Vec2 point1=null; for(int i=0;i<getNumPointsWithPort()-1;i++) { point=getPointWithPort(i); point1=getPointWithPort(i+1); ...
public void draw(Graphics2D g) { g.setColor(color); if(bSelected) g.setColor(Color.red); Vec2 point=null; Vec2 point1=null; for(int i=0;i<getNumPointsWithPort()-1;i++) { point=getPointWithPort(i); point1=getPointWithPort(i+1); ...
diff --git a/src/main/java/com/laurinka/skga/server/data/SearchProducer.java b/src/main/java/com/laurinka/skga/server/data/SearchProducer.java index 8e5b652..e21a9f7 100644 --- a/src/main/java/com/laurinka/skga/server/data/SearchProducer.java +++ b/src/main/java/com/laurinka/skga/server/data/SearchProducer.java @@ -1,1...
true
true
public void retrieveLastSnapshotsOrderedByName() { if (null == q || q.isEmpty()) { log.info("search string is empty!"); results = Collections.emptyList(); return; } if (number.matcher(q).matches()) { log.info("User entered number on page:" + q)...
public void retrieveLastSnapshotsOrderedByName() { if (null == q || q.isEmpty()) { log.info("search string is empty!"); results = Collections.emptyList(); return; } if (number.matcher(q).matches()) { log.info("User entered number on page:" + q)...
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java index 0ab6bd596..53fb46058 100644 --- a/src/com/android/camera/PhotoModule.java +++ b/src/com/android/camera/PhotoModule.java @@ -1,2291 +1,2283 @@ /* * Copyright (C) 2012 The Android Open Source Project * * Licensed u...
true
true
public void onPictureTaken( final byte [] jpegData, final android.hardware.Camera camera) { if (mPaused) { return; } if (mSceneMode == Util.SCENE_MODE_HDR) { mActivity.showSwitcher(); mActivity.setSwipingEnabled(...
public void onPictureTaken( final byte [] jpegData, final android.hardware.Camera camera) { if (mPaused) { return; } if (mSceneMode == Util.SCENE_MODE_HDR) { mActivity.showSwitcher(); mActivity.setSwipingEnabled(...
diff --git a/src/net/mcft/copy/betterstorage/block/BlockReinforcedChest.java b/src/net/mcft/copy/betterstorage/block/BlockReinforcedChest.java index a1524ca..d33f300 100644 --- a/src/net/mcft/copy/betterstorage/block/BlockReinforcedChest.java +++ b/src/net/mcft/copy/betterstorage/block/BlockReinforcedChest.java @@ -1,1...
true
true
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) { if (world.isRemote) return true; TileEntityReinforcedChest chest = WorldUtils.get(world, x, y, z, TileEntityReinforcedChest.class); ItemStack holding = player.getHeldItem(); ...
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) { if (world.isRemote) return true; TileEntityReinforcedChest chest = WorldUtils.get(world, x, y, z, TileEntityReinforcedChest.class); ItemStack holding = player.getHeldItem(); ...
diff --git a/core/java/src/net/i2p/client/naming/SingleFileNamingService.java b/core/java/src/net/i2p/client/naming/SingleFileNamingService.java index f00102c46..30722a04f 100644 --- a/core/java/src/net/i2p/client/naming/SingleFileNamingService.java +++ b/core/java/src/net/i2p/client/naming/SingleFileNamingService.java...
false
true
public Map<String, Destination> getEntries(Properties options) { if (!_file.exists()) return Collections.EMPTY_MAP; String searchOpt = null; String startsWith = null; if (options != null) { searchOpt = options.getProperty("search"); startsWith = op...
public Map<String, Destination> getEntries(Properties options) { if (!_file.exists()) return Collections.EMPTY_MAP; String searchOpt = null; String startsWith = null; if (options != null) { searchOpt = options.getProperty("search"); startsWith = op...
diff --git a/OpTalk/OpTalk/src/be/infogroep/optalk/ItemShare.java b/OpTalk/OpTalk/src/be/infogroep/optalk/ItemShare.java index 5669fbc..938df38 100644 --- a/OpTalk/OpTalk/src/be/infogroep/optalk/ItemShare.java +++ b/OpTalk/OpTalk/src/be/infogroep/optalk/ItemShare.java @@ -1,129 +1,131 @@ package be.infogroep.optalk; ...
false
true
ItemShare(CommandSender sender, String[] msg) { Bukkit.getLogger().info("ItemShare"); if (msg.length > 0) { String name = msg[0]; receiver_ = Bukkit.getServer().getPlayer(name); } sender_ = (Player) sender; item_ = sender_.getItemInHand(); meta_ = item_.getItemMeta(); if (meta_ != null) { if...
ItemShare(CommandSender sender, String[] msg) { Bukkit.getLogger().info("ItemShare"); if (msg.length > 0) { String name = msg[0]; receiver_ = Bukkit.getServer().getPlayer(name); } sender_ = (Player) sender; item_ = sender_.getItemInHand(); meta_ = item_.getItemMeta(); if (meta_ != null) { if...
diff --git a/plugins/org.bigraph.model/src/org/bigraph/model/SignatureDescriptorHandler.java b/plugins/org.bigraph.model/src/org/bigraph/model/SignatureDescriptorHandler.java index 1bc57f15..c1eaa54c 100644 --- a/plugins/org.bigraph.model/src/org/bigraph/model/SignatureDescriptorHandler.java +++ b/plugins/org.bigraph.m...
true
true
public boolean tryValidateChange(Process context, IChangeDescriptor change) throws ChangeCreationException { final PropertyScratchpad scratch = context.getScratch(); final Resolver resolver = context.getResolver(); if (change instanceof ChangeAddControlDescriptor) { ChangeAddControlDescriptor cd = (ChangeA...
public boolean tryValidateChange(Process context, IChangeDescriptor change) throws ChangeCreationException { final PropertyScratchpad scratch = context.getScratch(); final Resolver resolver = context.getResolver(); if (change instanceof ChangeAddControlDescriptor) { ChangeAddControlDescriptor cd = (ChangeA...
diff --git a/src/main/java/org/jsonman/NodeUpdater.java b/src/main/java/org/jsonman/NodeUpdater.java index e465c39..37c64aa 100644 --- a/src/main/java/org/jsonman/NodeUpdater.java +++ b/src/main/java/org/jsonman/NodeUpdater.java @@ -1,113 +1,113 @@ /* * Copyright 2013 Takao Nakaguchi. * * Licensed under the Apac...
true
true
public void update(Iterable<Reference> path, Node node){ final Iterator<Reference> it = path.iterator(); Node t = target; while(true){ Reference r = it.next(); if(t.isArray() && r.isArray()){ ArrayNode an = t.cast(); Integer index = r.getId(); t = an.getChild(index); if(t != null){ if(...
public void update(Iterable<Reference> path, Node node){ final Iterator<Reference> it = path.iterator(); Node t = target; while(true){ Reference r = it.next(); if(t.isArray() && r.isArray()){ ArrayNode an = t.cast(); Integer index = r.getId(); t = an.getChild(index); if(t != null){ if(...
diff --git a/core/src/java/org/apache/ftpserver/command/MKD.java b/core/src/java/org/apache/ftpserver/command/MKD.java index d2e9af5a..bccabf36 100644 --- a/core/src/java/org/apache/ftpserver/command/MKD.java +++ b/core/src/java/org/apache/ftpserver/command/MKD.java @@ -1,144 +1,144 @@ /* * Licensed to the Apache So...
true
true
public void execute(Connection connection, FtpRequest request, FtpSessionImpl session, FtpReplyOutput out) throws IOException, FtpException { // reset state session.resetState(); FtpServerContext serverContex...
public void execute(Connection connection, FtpRequest request, FtpSessionImpl session, FtpReplyOutput out) throws IOException, FtpException { // reset state session.resetState(); FtpServerContext serverContex...
diff --git a/search-util/src/test/org/sakaiproject/search/util/test/HTMLParserTest.java b/search-util/src/test/org/sakaiproject/search/util/test/HTMLParserTest.java index 9e8d9a58..c1fbbb9b 100644 --- a/search-util/src/test/org/sakaiproject/search/util/test/HTMLParserTest.java +++ b/search-util/src/test/org/sakaiprojec...
true
true
public void testParser() throws Exception { Properties p = new Properties(); InputStream inStream = getClass().getResourceAsStream("parsertest.config"); p.load(inStream); inStream.close(); for ( Iterator tests = p.keySet().iterator(); tests.hasNext(); ) { String tname = (String)tests.next(); String...
public void testParser() throws Exception { Properties p = new Properties(); InputStream inStream = getClass().getResourceAsStream("parsertest.config"); p.load(inStream); inStream.close(); for ( Iterator tests = p.keySet().iterator(); tests.hasNext(); ) { String tname = (String)tests.next(); String...
diff --git a/patientview-parent/radar/src/test/java/org/patientview/radar/test/service/PatientLinkManagerTest.java b/patientview-parent/radar/src/test/java/org/patientview/radar/test/service/PatientLinkManagerTest.java index 1ff3f482..68b2f0a2 100644 --- a/patientview-parent/radar/src/test/java/org/patientview/radar/te...
true
true
public void testLinkingPatientRecord() { Patient patient = new Patient(); patient.setUnitcode(testRenalUnit); patient.setSurname("Test"); patient.setForename("Test"); patient.setDob(new Date()); patient.setNhsno("234235242"); DiseaseGroup diseaseGroup = new...
public void testLinkingPatientRecord() throws Exception { Patient patient = new Patient(); patient.setUnitcode(testRenalUnit); patient.setSurname("Test"); patient.setForename("Test"); patient.setDob(new Date()); patient.setNhsno("234235242"); DiseaseGroup d...
diff --git a/src/ch/amana/android/cputuner/view/fragments/ProfilesListFragment.java b/src/ch/amana/android/cputuner/view/fragments/ProfilesListFragment.java index 51cac8c9..e1f62d2d 100644 --- a/src/ch/amana/android/cputuner/view/fragments/ProfilesListFragment.java +++ b/src/ch/amana/android/cputuner/view/fragments/Pro...
true
true
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); Activity act = getActivity(); Cursor c = act.managedQuery(DB.CpuProfile.CONTENT_URI, DB.CpuProfile.PROJECTION_DEFAULT, null, null, DB.CpuProfile.SORTORDER_DEFAULT); adapter = new SimpleCursorAdapter(act, R...
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); Activity act = getActivity(); Cursor c = act.managedQuery(DB.CpuProfile.CONTENT_URI, DB.CpuProfile.PROJECTION_DEFAULT, null, null, DB.CpuProfile.SORTORDER_DEFAULT); adapter = new SimpleCursorAdapter(act, R...
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java index eeaf65c16..b4a07b87d 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java +++ b/org.eclipse.jface.text/src/org/...
true
true
private void doPaint1(GC gc) { if (fTextViewer == null) return; Rectangle r= new Rectangle(0, 0, 0, 0); int yy, hh= ANNOTATION_HEIGHT; ITextViewerExtension5 extension= (ITextViewerExtension5) fTextViewer; IDocument document= fTextViewer.getDocument(); StyledText textWidget= fTextViewer.getTextWidge...
private void doPaint1(GC gc) { if (fTextViewer == null || fModel == null) return; Rectangle r= new Rectangle(0, 0, 0, 0); int yy, hh= ANNOTATION_HEIGHT; ITextViewerExtension5 extension= (ITextViewerExtension5) fTextViewer; IDocument document= fTextViewer.getDocument(); StyledText textWidget= fTextV...
diff --git a/src/cz/muni/stanse/cppparser/CppUnit.java b/src/cz/muni/stanse/cppparser/CppUnit.java index 01971cf..d1a549a 100644 --- a/src/cz/muni/stanse/cppparser/CppUnit.java +++ b/src/cz/muni/stanse/cppparser/CppUnit.java @@ -1,76 +1,76 @@ /* Distributed under GPLv2 */ package cz.muni.stanse.cppparser; import...
true
true
public void parse() throws ParserException { String command = Stanse.getInstance().getRootDirectory() + File.separator + "bin" + File.separator + "cppparser"; List<String> parserArgs = new ArrayList<String>(); parserArgs.add(command); parserArgs.add("-J"); parserArgs.addAll(args); ProcessBuilder builder = n...
public void parse() throws ParserException { String command = Stanse.getInstance().getRootDirectory() + File.separator + "bin" + File.separator + "cpp2sir"; List<String> parserArgs = new ArrayList<String>(); parserArgs.add(command); parserArgs.add("-J"); parserArgs.addAll(args); ProcessBuilder builder = new...
diff --git a/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/parser/AbstractXtextGrammarParsingTest.java b/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/parser/AbstractXtextGrammarParsingTest.java index 9d11989ed..e8c7f43e2 100644 --- a/tests/org.eclipse.xtext.generator.tests/src/org/eclip...
true
true
protected Iterable<Pair<String, String>> getAllModels() { List<Class<?>> classes = Arrays.asList(GenerateAllTestGrammars.testclasses); return CollectionUtils.map(classes, new Function<Class<?>, Pair<String, String>>() { public Pair<String, String> exec(Class<?> param) { String filename = "" + param.getName(...
protected Iterable<Pair<String, String>> getAllModels() { List<Class<?>> classes = Arrays.asList(GenerateAllTestGrammars.testclasses); return CollectionUtils.map(classes, new Function<Class<?>, Pair<String, String>>() { public Pair<String, String> exec(Class<?> param) { String filename = GenerateAllTestGram...
diff --git a/weasis-base/weasis-base-explorer/src/main/java/org/weasis/base/explorer/JIThumbnailCache.java b/weasis-base/weasis-base-explorer/src/main/java/org/weasis/base/explorer/JIThumbnailCache.java index fd93329c6..d3d27e152 100644 --- a/weasis-base/weasis-base-explorer/src/main/java/org/weasis/base/explorer/JIThu...
true
true
private void loadThumbnail(final ImageElement diskObject, final JIThumbnailList thumbnailList, final int index) { if ((index > thumbnailList.getLastVisibleIndex()) || (index < thumbnailList.getFirstVisibleIndex())) { return; } try { // ////////////////////////////////...
private void loadThumbnail(final ImageElement diskObject, final JIThumbnailList thumbnailList, final int index) { if ((index > thumbnailList.getLastVisibleIndex()) || (index < thumbnailList.getFirstVisibleIndex())) { return; } try { // ////////////////////////////////...
diff --git a/src/web/org/openmrs/web/filter/initialization/InitializationFilter.java b/src/web/org/openmrs/web/filter/initialization/InitializationFilter.java index 23787c9f..84a72abb 100644 --- a/src/web/org/openmrs/web/filter/initialization/InitializationFilter.java +++ b/src/web/org/openmrs/web/filter/initialization...
false
true
private void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException { String page = httpRequest.getParameter("page"); Map<String, Object> referenceMap = new HashMap<String, Object>(); Writer writer = httpResponse.getWriter(); // clear existing errors wizardModel.err...
private void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException { String page = httpRequest.getParameter("page"); Map<String, Object> referenceMap = new HashMap<String, Object>(); Writer writer = httpResponse.getWriter(); // clear existing errors wizardModel.err...
diff --git a/wings/src/org/wings/SRootContainer.java b/wings/src/org/wings/SRootContainer.java index 67b9085f..5831b163 100644 --- a/wings/src/org/wings/SRootContainer.java +++ b/wings/src/org/wings/SRootContainer.java @@ -1,126 +1,126 @@ /* * $Id$ * (c) Copyright 2001 wingS development team. * * This file is ...
true
true
public SDialog popDialog() { int count = getComponentCount(); if (count <= 1) throw new IllegalStateException("there's no dialog left!"); SDialog dialog = (SDialog) getComponent(count - 1); super.remove(dialog); logger.debug("popDialog: " + count); dialog...
public SDialog popDialog() { int count = getComponentCount(); if (count <= 1) throw new IllegalStateException("there's no dialog left!"); SDialog dialog = (SDialog) getComponent(count - 1); super.remove(dialog); logger.debug("popDialog: " + count); // dial...
diff --git a/src/com/facebook/buck/cli/Main.java b/src/com/facebook/buck/cli/Main.java index 58ea0a3cf2..66f548faeb 100644 --- a/src/com/facebook/buck/cli/Main.java +++ b/src/com/facebook/buck/cli/Main.java @@ -1,685 +1,690 @@ /* * Copyright 2012-present Facebook, Inc. * * Licensed under the Apache License, Vers...
true
true
public int executeCommand( File projectRoot, Command.ParseResult commandParseResult, Optional<NGContext> context, String... args) throws IOException { // Create common command parameters. projectFilesystem initialization looks odd because it needs // ignorePaths from a BuckConfig ins...
public int executeCommand( File projectRoot, Command.ParseResult commandParseResult, Optional<NGContext> context, String... args) throws IOException { // Create common command parameters. projectFilesystem initialization looks odd because it needs // ignorePaths from a BuckConfig ins...
diff --git a/opentripplanner-graph-builder/src/main/java/org/opentripplanner/graph_builder/impl/osm/OpenStreetMapGraphBuilderImpl.java b/opentripplanner-graph-builder/src/main/java/org/opentripplanner/graph_builder/impl/osm/OpenStreetMapGraphBuilderImpl.java index 2d5bc003c..92d1cc8d1 100644 --- a/opentripplanner-graph...
false
true
public void buildGraph(Graph graph) { // We want to prune nodes that don't have any edges Set<Integer> nodesWithNeighbors = new HashSet<Integer>(); for (OSMWay way : _ways.values()) { List<Integer> nodes = way.getNodeRefs(); if (nodes.size() ...
public void buildGraph(Graph graph) { // We want to prune nodes that don't have any edges Set<Integer> nodesWithNeighbors = new HashSet<Integer>(); for (OSMWay way : _ways.values()) { List<Integer> nodes = way.getNodeRefs(); if (nodes.size() ...
diff --git a/org.eclipse.gmf.runtime/tests/org.eclipse.gmf.tests.runtime.common.core/src/org/eclipse/gmf/tests/runtime/common/core/internal/util/StringUtilTest.java b/org.eclipse.gmf.runtime/tests/org.eclipse.gmf.tests.runtime.common.core/src/org/eclipse/gmf/tests/runtime/common/core/internal/util/StringUtilTest.java i...
false
true
public void test_dgdEncodeURL() { //These should not change after encoding assertTrue(StringUtil.encodeURL("http://www.ibm.ca/").equals("http://www.ibm.ca/")); //$NON-NLS-1$ //$NON-NLS-2$ assertTrue(StringUtil.encodeURL("http://www.ibm.ca").equals("http://www.ibm.ca")); //$NON-NLS-1$ //$NON-NLS-2$ ...
public void test_dgdEncodeURL() { //These should not change after encoding assertTrue(StringUtil.encodeURL("http://www.ibm.ca/").equals("http://www.ibm.ca/")); //$NON-NLS-1$ //$NON-NLS-2$ assertTrue(StringUtil.encodeURL("http://www.ibm.ca").equals("http://www.ibm.ca")); //$NON-NLS-1$ //$NON-NLS-2$ ...
diff --git a/test/src/com/rabbitmq/client/test/functional/FanoutTest.java b/test/src/com/rabbitmq/client/test/functional/FanoutTest.java index 5c2012441..34d119bf5 100644 --- a/test/src/com/rabbitmq/client/test/functional/FanoutTest.java +++ b/test/src/com/rabbitmq/client/test/functional/FanoutTest.java @@ -1,51 +1,51 ...
true
true
public void testFanout() throws Exception { List<String> queues = new ArrayList<String>(); for (int i = 0; i < N; i++) { String q = "Q-" + System.nanoTime(); channel.queueDeclare(ticket, q); channel.queueBind(ticket, q, X, K); queues.add(q); ...
public void testFanout() throws Exception { List<String> queues = new ArrayList<String>(); for (int i = 0; i < N; i++) { String q = "Q-" + System.nanoTime(); channel.queueDeclare(ticket, q); channel.queueBind(ticket, q, X, K); queues.add(q); ...
diff --git a/src/rules/model/BackwardChaining.java b/src/rules/model/BackwardChaining.java index 0ad56e6..3d627fd 100644 --- a/src/rules/model/BackwardChaining.java +++ b/src/rules/model/BackwardChaining.java @@ -1,118 +1,118 @@ /* * To change this template, choose Tools | Templates * and open the template in the ...
true
true
public boolean get(Fact f) { // check if fact is in primary facts {1} if (gdb.contains(f)) { logger.log(" %s yra pradinis faktas.\n", f); return true; } // check if the fact was previously deducted if (previouslyDeducted.contains(f)) { logger.log(" %s yra jau išvestas.\n", f); ...
public boolean get(Fact f) { // check if fact is in primary facts {1} if (gdb.contains(f)) { logger.log(" %s yra pradinis faktas.\n", f); return true; } // check if the fact was previously deducted if (previouslyDeducted.contains(f)) { logger.log(" %s yra jau išvestas.\n", f); ...
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.process/src/org/eclipse/tcf/te/ui/terminals/process/ProcessConnector.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.process/src/org/eclipse/tcf/te/ui/terminals/process/ProcessConnector.java index 233d940b8..7b8bff3f6 100644 --- a/targe...
true
true
public void connect(ITerminalControl control) { Assert.isNotNull(control); super.connect(control); pty = null; width = -1; height = -1; try { // Try to determine process and PTY instance from the process settings process = settings.getProcess(); pty = settings.getPTY(); // No process -> crea...
public void connect(ITerminalControl control) { Assert.isNotNull(control); super.connect(control); pty = null; width = -1; height = -1; try { // Try to determine process and PTY instance from the process settings process = settings.getProcess(); pty = settings.getPTY(); // No process -> crea...
diff --git a/org.eclipse.scout.rt.ui.rap/src/org/eclipse/scout/rt/ui/rap/ext/browser/BrowserExtension.java b/org.eclipse.scout.rt.ui.rap/src/org/eclipse/scout/rt/ui/rap/ext/browser/BrowserExtension.java index 5661808fcd..feabf9c7c7 100644 --- a/org.eclipse.scout.rt.ui.rap/src/org/eclipse/scout/rt/ui/rap/ext/browser/Bro...
true
true
private static String rewriteLocalHyperlinks(String html, String ajaxParentContext, String rwtServiceHandler, Map<String /*externalKey*/, String /*url*/> generatedMappings) { if (html == null) { return html; } StringBuilder buf = new StringBuilder(); Matcher m = LOCAL_URL_PATTERN.matcher(html); ...
private static String rewriteLocalHyperlinks(String html, String ajaxParentContext, String rwtServiceHandler, Map<String /*externalKey*/, String /*url*/> generatedMappings) { if (html == null) { return html; } StringBuilder buf = new StringBuilder(); Matcher m = LOCAL_URL_PATTERN.matcher(html); ...
diff --git a/nuxeo-platform-categorization-service/src/main/java/org/nuxeo/ecm/platform/categorization/categorizer/tfidf/TfIdfCategorizerFactory.java b/nuxeo-platform-categorization-service/src/main/java/org/nuxeo/ecm/platform/categorization/categorizer/tfidf/TfIdfCategorizerFactory.java index 5ef0d9a..845a2cb 100644 -...
true
true
public Categorizer loadInstance(String modelFile, boolean readonly) throws IOException { try { TfIdfCategorizer categorizer = TfIdfCategorizer.load(modelFile); if (readonly) { categorizer.disableUpdate(); } return categorizer; ...
public Categorizer loadInstance(String modelFile, boolean readonly) throws IOException { try { TfIdfCategorizer categorizer = TfIdfCategorizer.load(modelFile); if (readonly) { categorizer.disableUpdate(); } return categorizer; ...