conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
//out.println("<p><a href=\"http://" + CommonConfiguration.getURLLocation(request) + "/individuals.jsp?number=" + request.getParameter("individual") + "\">Return to <strong>" + request.getParameter("individual") + "</strong></a></p>\n");
=======
out.println("<p><a href=\""+request.getScheme()+... |
<<<<<<<
import org.apache.commons.lang3.StringUtils;
import java.util.regex.Pattern;
import net.jpountz.xxhash.XXHashFactory;
import net.jpountz.xxhash.StreamingXXHash32;
import net.jpountz.xxhash.XXHash32;
=======
>>>>>>>
import org.apache.commons.lang3.StringUtils;
import java.util.regex.Pattern;
import net.jpou... |
<<<<<<<
private final Set<SosOffering> offerings = Sets.newHashSet();
private final Set<String> featuresOfInterest = Sets.newHashSet();
private final Map<String, AbstractFeature> featuresOfInterestMap = Maps.newHashMap();
private final Map<String, AbstractPhenomenon> phenomenonMap = Maps.newHashMap();
... |
<<<<<<<
//return a forward to display.jsp
System.out.println("Ending adoption data submission.");
//if((submitterID!=null)&&(submitterID.equals("deepblue"))) {
if (adoptionSuccess) {
response.setStatus(HttpServletResponse.SC_OK);
response.sendRedirect("http://" + CommonConfigurat... |
<<<<<<<
//out.println("<p><a href=\"http://" + CommonConfiguration.getURLLocation(request) + "/individuals.jsp?number=" + request.getParameter("individual") + "\">Return to " + request.getParameter("individual") + "</a></p>\n");
//out.println(ServletUtilities.getFooter(context));
=======
... |
<<<<<<<
log(itask, "created new " + ind);
=======
ind.refreshNamesCache();
log(importId, "created new " + ind);
>>>>>>>
log(itask, "created new " + ind);
ind.refreshNamesCache(); |
<<<<<<<
import org.json.JSONObject;
=======
import org.ecocean.security.Collaboration;
import org.ecocean.servlet.ServletUtilities;
import javax.servlet.http.HttpServletRequest;
>>>>>>>
import org.json.JSONObject;
import org.ecocean.security.Collaboration;
import org.ecocean.servlet.ServletUtilities;
import javax... |
<<<<<<<
this.individualID = "Unassigned";
this.setDWCDateAdded();
this.setDWCDateLastModified();
this.resetDateInMilliseconds();
=======
resetDateInMilliseconds();
>>>>>>>
this.setDWCDateAdded();
this.setDWCDateLastModified();
this.resetDateInMilliseconds();
<<<<<<<
public voi... |
<<<<<<<
JSONObject projectJSON = (JSONObject) projectsJSONArr.get(i);
=======
JSONObject projectJSON = projectsJSONArr.optJSONObject(i);
>>>>>>>
JSONObject projectJSON = projectsJSONArr.optJSONObject(i);
<<<<<<<
System.out.printl... |
<<<<<<<
public static String scrubURL(URL u) {
if (u == null) return (String) null;
return u.toString().replace("#", "%23");
}
=======
public static JSONObject copy(JSONObject original) {
return new JSONObject(original, JSONObject.getNames(original));
}
>>>>>>>
public static Strin... |
<<<<<<<
Shepherd myShepherd = new Shepherd(context);
=======
>>>>>>>
Shepherd myShepherd = new Shepherd(context); |
<<<<<<<
public String getNickName() {
if (nickName != null) {
return nickName;
} else {
return DEFAULT_NICKNAME;
=======
/*
now part of migration of all names to .names MultiValue property
we still want "a (singular) nickname" and notably a nickNamer
so we set nickname to a special k... |
<<<<<<<
=======
>>>>>>>
<<<<<<<
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
=======
import java.io.FileOutputStream;
>>>>>>>
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
<<<<<<<
import java.util.Has... |
<<<<<<<
if (!setts.sameFocus()) {
removeActionReQueue(curInt);
=======
if (!isSameFocus) {
updateIntention(curInt);
>>>>>>>
if (!isSameFocus) {
removeActionReQueue(curInt); |
<<<<<<<
ObjectInstance o = st.getObjectsOfClass(CLASSAGENT).get(0);
int n = o.getDiscValForAttribute(ATTNODE);
=======
ObjectInstance o = st.getObjectsOfTrueClass(CLASSAGENT).get(0);
int n = o.getIntValForAttribute(ATTNODE);
>>>>>>>
ObjectInstance o = st.getObjectsOfClass(CLASSAGENT).get(0);
int n ... |
<<<<<<<
import com.jetbrains.php.lang.psi.elements.Parameter;
=======
import com.jetbrains.php.lang.psi.elements.Method;
>>>>>>>
import com.jetbrains.php.lang.psi.elements.Method;
import com.jetbrains.php.lang.psi.elements.Parameter;
<<<<<<<
protected void assertHasReferencetoConstructorParameter(
f... |
<<<<<<<
import com.magento.idea.magento2plugin.actions.generation.dialog.validator.rule.BoxNotEmptyRule;
import com.magento.idea.magento2plugin.actions.generation.dialog.validator.rule.ConfigPathRule;
import com.magento.idea.magento2plugin.actions.generation.dialog.validator.rule.CronScheduleRule;
=======
import com.... |
<<<<<<<
public class FormButtonBlockPhp extends AbstractPhpClass {
public static String template = "Magento Php Form Button Block Class";
=======
import com.intellij.lang.Language;
import com.jetbrains.php.lang.PhpLanguage;
public class FormButtonBlockPhp implements ModuleFileInterface {
public static String... |
<<<<<<<
import org.apache.commons.lang.StringUtils;
=======
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.exception.ExceptionUtils;
>>>>>>>
import org.apache.commons.lang3.StringUtils; |
<<<<<<<
List<String> strings = Arrays.asList("ଓଡ଼ିଆଭାଷା", "한국어", "ગુજરાતી ਪੰਜਾਬੀ தமிழ்", "සිංහල", "န\u103Aမာဘာသာ",
"ਹਰਜੋਤ ਸਿੰਘ ភាសាខ្មែរ latin ąćęłńóśźż ทดสอบ വീട मानक हिन्दी ് జ উ ☗⦄✸▃ ");
=======
List<String> strings = Arrays.asList("한국어", "ગુજરાતી ਪੰਜਾਬੀ தமிழ்", "සිංහල", "န\u103Aမာဘ... |
<<<<<<<
import org.xwiki.model.reference.EntityReference;
=======
import org.xwiki.component.util.DefaultParameterizedType;
>>>>>>>
import org.xwiki.component.util.DefaultParameterizedType;
import org.xwiki.model.reference.EntityReference; |
<<<<<<<
=======
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
>>>>>>>
import java.util.Iterator;
import java.util.LinkedList;
<<<<<<<
try {
Query q =
this.qm.createQuery(
"select patient.identifier from Document doc, doc... |
<<<<<<<
Assert.assertNull(container.get("pubmed_id"));
=======
Assert.assertFalse(container.has("pubmed_id"));
Assert.assertFalse(container.has("gene"));
>>>>>>>
Assert.assertFalse(container.has("pubmed_id")); |
<<<<<<<
seedlessRequestPeers = new SeedlessRequestPeers(seedlessParameters, 60);
seedlessScrapePeers = new SeedlessScrapePeers(seedlessParameters, 10);
seedlessScrapeServers = new SeedlessScrapeServers(seedlessParameters, 10);
seedlessAnnounce = new SeedlessAnnounce(socke... |
<<<<<<<
seedlessRequestPeers = new SeedlessRequestPeers(seedlessParameters, 60);
seedlessScrapePeers = new SeedlessScrapePeers(seedlessParameters, 10);
seedlessScrapeServers = new SeedlessScrapeServers(seedlessParameters, 10);
seedlessAnnounce = new SeedlessAnnounce(socke... |
<<<<<<<
=======
@Override
public CapabilitiesExtension getExtension() {
final SosInsertionCapabilities insertionCapabilities = new SosInsertionCapabilities();
insertionCapabilities.addFeatureOfInterestTypes(getCache().getFeatureOfInterestTypes());
insertionCapabilities.addObservationTy... |
<<<<<<<
.add(new MethodDeclarationRenameSingleParameterToCent())//
.add(new AnyMatch());
=======
.add(new LispLastElement())
.add(new MethodDeclarationRenameSingleParameterToCent());//
>>>>>>>
.add(new LispLastElement())
... |
<<<<<<<
=======
/** Remove the first statement with side effects residing under a given
* {@link Statement}, for which all next statements are side effects. if ¢ is
* empty or has only one statement return empty statement.
* @param ¢ JD <code><b>null</b></code> if not such sideEffects exists.
* @return ... |
<<<<<<<
/*
* Copyright (C) 2012-2019 52°North Initiative for Geospatial Open Source
=======
/**
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source
>>>>>>>
/*
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source |
<<<<<<<
new BodyDeclarationModifiersSort.ofMethod() , //
//new BodyDeclarationAnnotationsSort.ofMethod() , //
=======
new BodyDeclarationModifiersSort.ofMethod(), //
>>>>>>>
new BodyDeclarationModifiersSort.ofMethod() , //
//new BodyDeclarationAnn... |
<<<<<<<
System.out.println(¢.getNodeType());
=======
>>>>>>>
<<<<<<<
if (!f.getPath().matches("[\\/A-Za-z0-9]*[\\/]test[\\/A-Za-z0-9]*") || f.getName().matches("[A-Za-z0-9_-]*[Tt]est[A-Za-z0-9_-]*.java")); //contains("src/test"))
=======
if (!f.getPath().matches("[\\/A-Za-z0-9]*[\\/]test[\\/A-Za-z0-9]... |
<<<<<<<
public IFile compilatinUnitIFile() {
return (IFile) iCompilationUnit.getResource();
}
public String compilationUnitName() {
return iCompilationUnit.getElementName();
}
/** Count the number files that would change after Spartanization.
* <p>
* This is an slow operation. Do not call ligh... |
<<<<<<<
static Set<Entry<String, Environment.Information>> listToSet(final List<Annotation> as) {
final Set<Entry<String, Environment.Information>> $ = Collections.unmodifiableSet(new HashSet<>());
for (final Annotation ¢ : as) {
}
return $;
}
private final ASTNode cUnit;
=======
private f... |
<<<<<<<
public static boolean javaToken(PsiElement element) {
return typeCheck(PsiJavaToken.class, element);
}
=======
public static boolean MethodCallExpression(PsiExpression element) {
return typeCheck(PsiMethodCallExpressionImpl.class, element);
}
>>>>>>>
public static boole... |
<<<<<<<
private static List<IExtendedModifier> modifiersOf(final VariableDeclarationStatement ¢) {
final List<IExtendedModifier> $ = new ArrayList<>();
duplicate.modifiers(step.extendedModifiers(¢), $);
return $;
}
private static List<VariableDeclarationFragment> nextFragmentsOf(final VariableDeclar... |
<<<<<<<
import fluent.ly.*;
import il.org.spartan.plugin.preferences.revision.XMLSpartan.*;
=======
import il.org.spartan.*;
>>>>>>>
import fluent.ly.*; |
<<<<<<<
import il.org.spartan.spartanizer.java.*;
=======
>>>>>>>
<<<<<<<
// .add(EnhancedForStatement.class, //
// new Aggregate(), //
// new Collect(), //
// new CountIf(), //
// new FindFirst(), //
// new ForEach(), //
// new ForEachSuchThat(), //
/... |
<<<<<<<
return anyTips(tippers, step.parent(¢));
=======
return anyTips(tippers, parentAsTryStatement(¢));
>>>>>>>
return anyTips(tippers, parent(¢));
<<<<<<<
return firstTip(tippers, step.parent(¢));
=======
return firstTip(tippers, parentAsTryStatement(¢));
>>>>>>>
return firstTip(tippe... |
<<<<<<<
=======
public static final String ZOOMER_AUTO_ACTIVISION_ID = "ZOOMER_AUTO_ACTIVISION";
public static final String ZOOMER_AUTO_ACTIVISION_ID_TEXT = "Activate zommer on startup";
public static final String WIDGET_SHORTCUT_METHOD_ID = "WIDGET_SHORTCUT_METHOD";
public static final String WIDGET_SHORTCUT... |
<<<<<<<
@SuppressWarnings("unchecked") final List<String> ps = (List<String>) step.parameters(d).stream().map(x -> x.getName() + "");
=======
if (step.parameters(d) == null || step.parameters(d).isEmpty())
return false;
final List<String> ps = step.parameters(d).stream().map(x -> x.getName() + "").c... |
<<<<<<<
assert null != replacement;
=======
assert replacement != null;
>>>>>>>
assert replacement != null;
<<<<<<<
assert null != s;
assert s.scopeIncludes(e);
=======
assert s != null;
assert (s.scopeIncludes(e));
>>>>>>>
assert s != null;
assert s.scopeIncludes(e);
<<<<<<<... |
<<<<<<<
/*
* Copyright (C) 2012-2019 52°North Initiative for Geospatial Open Source
=======
/**
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source
>>>>>>>
/*
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source |
<<<<<<<
=======
import org.n52.sos.util.JavaHelper;
>>>>>>> |
<<<<<<<
@Override public ASTNode replacement(ForStatement s) {
AST create = s.getAST();
DoStatement $ = create.newDoStatement();
IfStatement i = copy.of(az.ifStatement(extract.lastStatement(s)));
=======
@Override public ASTNode replacement(final ForStatement n) {
final AST create = n.getAST();
... |
<<<<<<<
=======
>>>>>>>
<<<<<<<
.replaceAll("^[ \t]+$", "") // Remove preliminary sapces
=======
.replaceAll("^[ \t]+$", "") // No space at line beginnings
.replaceAll("^[ \t]+;", ";") // No space before ;
>>>>>>>
.replaceAll("^[ \t]+", "") // Remove preliminary spaces
.... |
<<<<<<<
assert null == new InfixAdditionSubtractionExpand().replacement(INPUT);
=======
assert new InfixAdditionSubtractionExpand().replacement(INPUT) == null;
>>>>>>>
assert null == new InfixAdditionSubtractionExpand().replacement(INPUT);
assert new InfixAdditionSubtractionExpand().replacement(INPUT... |
<<<<<<<
=======
import static il.org.spartan.spartanizer.ast.factory.trick.*;
>>>>>>>
<<<<<<<
import il.org.spartan.spartanizer.ast.factory.*;
import il.org.spartan.spartanizer.ast.navigate.*;
=======
import il.org.spartan.spartanizer.ast.factory.*;
>>>>>>>
import il.org.spartan.spartanizer.ast.factory.*;
impor... |
<<<<<<<
interface literal {
/** @param ¢ JD
* @return <code><b>true</b></code> <em>iff</em>the given node is a literal
* false or false otherwise */
static boolean false¢(final ASTNode ¢) {
return iz.literal(¢, false);
}
/** @param ¢ JD
* @return <code><b>true</b></code> ... |
<<<<<<<
@Ignore("#92:under construction") public static class NotWorking {
@Test public void issue92_1() {
trimming("1.+2*3 / 4 - 5").to("-2.5"); // check it out...
}
=======
@Test @Ignore("#92:under construction") public void issue92_1() {
trimming("1.+2*3 / 4 - 5").to("-3"); //check it out...
... |
<<<<<<<
@Test public void issue76a() {
trimming("a*b + a*c").to("a*(b+c)");
}
@Test public void issue76b() {
trimming("b*a + c*a").to("a*(b+c)");
}
@Test public void issue76c() {
trimming("b*a + c*a + d*a").to("a*(b+c+d)");
}
=======
@Test public void issue82a() {
trimming(... |
<<<<<<<
public static void onAble(@SuppressWarnings("unused") IProject __) {
String prefOpsIDs = store().getString("prefOpsIDs"), prefOpsMapConfs = store().getString("prefOpsMapConfs");
if(prefOpsIDs ==null)
=======
public static void onAble(@SuppressWarnings("unused") IProject p) {
String prefOpsI... |
<<<<<<<
@Override protected void consolidateSuggestions(final ASTRewrite r, final CompilationUnit u, final IMarker m) {
u.accept(new ASTVisitor() {
@Override public void preVisit(final ASTNode ¢) {
super.preVisit(¢);
if (¢.getClass() == clazz || wring.canSuggest(¢) || inRange(m, ¢))
... |
<<<<<<<
import fluent.ly.*;
import il.org.spartan.plugin.preferences.revision.XMLSpartan.*;
=======
import il.org.spartan.*;
>>>>>>>
import fluent.ly.*; |
<<<<<<<
import org.n52.sos.service.operator.ServiceOperatorKey;
import com.google.common.base.Strings;
import com.google.common.collect.Sets;
=======
import org.n52.sos.ds.hibernate.entities.ResultTemplate;
import org.n52.sos.ds.hibernate.entities.ValidProcedureTime;
import org.n52.sos.ds.hibernate.util.HibernateHel... |
<<<<<<<
/*
* Copyright (C) 2012-2019 52°North Initiative for Geospatial Open Source
=======
/**
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source
>>>>>>>
/*
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source |
<<<<<<<
new BodyDeclarationModifiersSort.ofMethod() , //
//new BodyDeclarationAnnotationsSort.ofMethod() , //
=======
new BodyDeclarationModifiersSort.ofMethod(), //
>>>>>>>
new BodyDeclarationModifiersSort.ofMethod() , //
//new BodyDeclarationAnn... |
<<<<<<<
=======
public static void setFileName(String $) {
fileName = $;
}
public static void fileProperties() {
// TODO Auto-generated method stub
}
public static int getMaxApplications() {
return maxApplications;
}
public static void setMaxApplications(int maxApplications) {
... |
<<<<<<<
@Test public void ifSequencerNoElseSequencer05a() {
=======
// TODO: Doron Meshulam - fix this
@Ignore @Test public void ifSequencerNoElseSequencer05a() {
>>>>>>>
@Ignore @Test public void ifSequencerNoElseSequencer05a() { |
<<<<<<<
/*
Defines code examples and results after applying the tipper. This is used to test the tipper.
*/
=======
>>>>>>> |
<<<<<<<
/** Search for an {@link Expression} in the tree rooted at an {@link ASTNode}.
* @param pattern JD
* @return first {@link Expression} found in an {@link ASTNode n}, or
* <code><b>null</b> if there is no such statement. */
static Expression expression(final ASTNode ¢) {
return findFirst... |
<<<<<<<
public class EvaluateAux {
public static double extractDouble(final Expression x) {
if (!isLong(x))
return !iz.prefixExpression(x) ? Double.parseDouble(az.numberLiteral(x).getToken())
: -1 * Double.parseDouble(az.numberLiteral(az.prefixExpression(x).getOperand()).getToken());
final ... |
<<<<<<<
/**
* @param ¢ JD
* @return true iff the statement is side effect and updating an initializer from the for initializers.
* returns false if the parent is not a for loop.
*/
static boolean usingForInitializer(Statement ¢) {
ForStatement parent = az.forStatement(¢.getParent());
if (parent... |
<<<<<<<
import org.n52.sos.ogc.om.AbstractStreaming;
import org.n52.sos.ogc.om.ObservationMerger;
=======
import org.n52.sos.ogc.gml.time.Time;
import org.n52.sos.ogc.gml.time.TimeInstant;
import org.n52.sos.ogc.gml.time.TimePeriod;
>>>>>>>
import org.n52.sos.ogc.om.AbstractStreaming;
import org.n52.sos.ogc.om.Obser... |
<<<<<<<
@Test public void booleanFalseLiteralTestTrue() {
List<Expression> expressions = new LinkedList<>();
expressions.add(into.e("false"));
azzert.assertTrue(have.falseLiteral(expressions));
}
@Test public void booleanFalseLiteralTestFalse() {
List<Expression> expressions = new LinkedList<... |
<<<<<<<
List<DataEntity<?>> list = new LinkedList<>();
for (SubQueryIdentifier identifier : ResultFilterRestrictions.SubQueryIdentifier.values()) {
=======
List<AbstractValuedLegacyObservation<?>> list = new LinkedList<>();
for (SubQueryIdentifier identifier : ResultFil... |
<<<<<<<
assertThat(countOpportunities(new Trimmer(), (CompilationUnit) As.COMPILIATION_UNIT.ast(Wrap.Expression.on("on * notion * of * no * nothion != the * plain + kludge"))), is(2));
=======
assertThat(countOpportunities(new Trimmer(), (CompilationUnit) As.COMPILIATION_UNIT.ast(Wrap.Expression.on("on * noti... |
<<<<<<<
new ForAndReturnToFor(), //
=======
new ForRedundantContinue(), //
>>>>>>>
new ForAndReturnToFor(), //
new ForRedundantContinue(), // |
<<<<<<<
for (int i = 0; i < b.size() - 1; ++i) {
if (b.get(i).compareTo(b.get(i + 1)) <= 0) {
=======
for (int i = 0; i < b.size() - 1; ++i)
if (!b.get(i).compareTo(b.get(i + 1))) {
>>>>>>>
for (int i = 0; i < b.size() - 1; ++i)
if (b.get(i).compareTo(b.get(i + 1)) <= 0) {
<<<<<<<
... |
<<<<<<<
=======
private static final String RESULT_TIME = "resultTime";
private final XMLEventFactory eventFactory = XMLEventFactory.newInstance();
private final XMLOutputFactory outputFactory = XMLOutputFactory.newInstance();
>>>>>>>
private static final String RESULT_TIME = "resultTime";
<<<<<... |
<<<<<<<
=======
private static PrudentType conditionalWithNoInfo(final PrudentType t) {
switch (t) {
case BYTE:
case SHORT:
case CHAR:
case INT:
case INTEGRAL:
case LONG:
case FLOAT:
case NUMERIC:
return NUMERIC;
case DOUBLE:
return DOUBLE;
... |
<<<<<<<
=======
final int enhancedForLoops = statistics.enhancedForLoops(), totalLoops = statistics.totalLoops(), definites = statistics.definites();
>>>>>>>
<<<<<<<
final HashMap<String, Int> hist = statistics.nanoHistogram(Integer.valueOf(ENHANCED));
// hist.keySet().forEach(¢ -> rawWriter.col(¢ + " p... |
<<<<<<<
/** Failing tests of issue 295 -
* FragmentInitializerStatementTerminatingScope.
* @since 2016 */
=======
/** Failing tests of issue 295 -
* DeclarationInitializerStatementTerminatingScope.
* @author Yossi Gil <yossi.gil@gmail.com>
* @since 2016
*/
>>>>>>>
/** Failing tests of issue 295 -
* Fragme... |
<<<<<<<
assert null == new InfixAdditionSubtractionExpand().replacement(INPUT);
=======
assert new InfixAdditionSubtractionExpand().replacement(INPUT) == null;
>>>>>>>
assert null == new InfixAdditionSubtractionExpand().replacement(INPUT);
assert new InfixAdditionSubtractionExpand().replacement(INPUT... |
<<<<<<<
/*
* Copyright (C) 2012-2019 52°North Initiative for Geospatial Open Source
=======
/**
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source
>>>>>>>
/*
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source |
<<<<<<<
public IfFooElseIfBarElseFoo() {
andAlso("if and final else must be the same",() -> wizard.eq(then, elzeElze));
andAlso("else if expression must have no side effects",() ->//
sideEffects.free(elzeIfCondition));
}
@Override public Examples examples() {
return convert("if(a) f(); else i... |
<<<<<<<
.add(EnhancedForStatement.class, //
new EnhancedForParameterRenameToCent(), //
null)//
=======
.add(Modifier.class, new RedundantModifier())//
.add(EnhancedForStatement.class, new EnhancedForParameterRenameToCent())//
>>>>>>>
.add(EnhancedForStatement.c... |
<<<<<<<
if (d == null)
fullBuild(m);
=======
if (d == null || d.getAffectedChildren().length == 0)
fullBuild();
>>>>>>>
if (d == null || d.getAffectedChildren().length == 0)
fullBuild(m); |
<<<<<<<
/*
* Copyright (C) 2012-2019 52°North Initiative for Geospatial Open Source
=======
/**
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source
>>>>>>>
/*
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source |
<<<<<<<
import static il.org.spartan.spartanizer.engine.type.Primitive.Certain.*;
=======
>>>>>>>
import static il.org.spartan.spartanizer.engine.type.Primitive.Certain.*; |
<<<<<<<
@Ignore("#92:under construction") public static class NotWorking {
@Test public void issue92_1() {
trimming("1.+2*3 / 4 - 5").to("-2.5"); // check it out...
}
=======
@Test @Ignore("#92:under construction") public void issue92_1() {
trimming("1.+2*3 / 4 - 5").to("-3"); //check it out...
... |
<<<<<<<
import org.spout.vanilla.protocol.codec.ClientStatusCodec;
import org.spout.vanilla.protocol.codec.CollectItemCodec;
=======
>>>>>>>
import org.spout.vanilla.protocol.codec.ClientStatusCodec; |
<<<<<<<
short minecraftID = VanillaMaterials.getMinecraftId(blockMaterial);
BlockFace clickedFace = VanillaMessageHandlerUtils.messageToBlockFace(face);
=======
int minecraftID = VanillaMaterials.getMinecraftId(blockMaterial);
BlockFace clickedFace = message.getFace();
>>>>>>>
short minecraftID = VanillaM... |
<<<<<<<
import org.spout.vanilla.protocol.msg.ClientStatusMessage;
import org.spout.vanilla.protocol.msg.CollectItemMessage;
=======
>>>>>>>
<<<<<<<
import org.spout.vanilla.protocol.msg.UseBedMessage;
import org.spout.vanilla.protocol.msg.login.request.ServerLoginRequestMessage;
=======
import org.spout.vanilla.... |
<<<<<<<
TextRenderer.render(g, "x: " + (int) Input.mouse().getMapLocation().getX() + " y: " + (int) Input.mouse().getMapLocation().getY() + " tile: [" + tile.x + ", " + tile.y + "]" + " zoom: " + (int) (Game.world().camera().getRenderScale() * 100) + " %", 10,
Game.window().getHeight() - 40);
TextRender... |
<<<<<<<
private static final int[] MAX_SUPPORTED_VERSION = { 1, 2, 3 };
=======
private static final long serialVersionUID = 402776584608365440L;
private static final int[] MAX_SUPPORTED_VERSION = { 1, 2 };
>>>>>>>
private static final int[] MAX_SUPPORTED_VERSION = { 1, 2 }; |
<<<<<<<
=======
public static void addEnvironmentLoadedListener(EnvironmentLoadedListener listener) {
environmentLoadedListeners.add(listener);
}
public static void removeEnvironmentLoadedListener(EnvironmentLoadedListener listener) {
environmentLoadedListeners.remove(listener);
}
public static vo... |
<<<<<<<
if (Game.loop().getDeltaTime(this.lastSpawn) < this.getInterval()) {
=======
if (Game.getLoop().getDeltaTime(this.lastSpawnWave) < this.getSpawnInterval()) {
>>>>>>>
if (Game.loop().getDeltaTime(this.lastSpawnWave) < this.getSpawnInterval()) {
<<<<<<<
this.lastSpawn = Game.loop().getTicks();... |
<<<<<<<
public static final String VERSION = "1.2.8";
=======
public static final String VERSION = "0.7.3";
>>>>>>>
public static final String VERSION = "1.2.8";
<<<<<<<
/** 戦闘ログファイルの名前 */
public static final String BATTLE_LOGFILE_DATE_FORMAT = DATE_DAYS_FORMAT;
=======
/** タイムゾーン(任務が更新され... |
<<<<<<<
return new String[] { "No.", "日付", "海域", "マス", "ランク", "敵艦隊", "ドロップ艦種", "ドロップ艦娘",
"大破艦", "旗艦", "旗艦(第二艦隊)", "MVP", "MVP(第二艦隊)" };
=======
return new String[] { "", "日付", "海域", "マス", "ボス", "ランク",
"艦隊行動", "味方陣形", "敵陣形", "敵艦隊", "ドロップ艦種", "ドロップ艦娘" };
>>>>>>>
... |
<<<<<<<
final Button useRecommendedSakuteki = new Button(compositeFleetTab, SWT.CHECK);
useRecommendedSakuteki.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1));
useRecommendedSakuteki.setText("推奨索敵計算式を使用する");
useRecommendedSakuteki.setSelection(AppConfig.get().isUseR... |
<<<<<<<
if (audioEncoder.prepareAudioEncoder(bitrate, sampleRate, isStereo,
microphoneManager.getMaxInputSize())) {
audioInitialized = true;
return true;
}
return false;
=======
return audioEncoder.prepareAudioEncoder(bitrate, sampleRate, isStereo,
microphoneManager.get... |
<<<<<<<
double rawAngle2 = rawAngle1 < 0 ? rawAngle1 + Math.PI : rawAngle1 - Math.PI;
double angleDiff = Math.abs(rawAngle1 - Math.toRadians(moduleHeading.getAsDouble()));
if (angleDiff > Math.PI / 2) {
if (!takingShortestPath) {
reversed = !reversed;
}
... |
<<<<<<<
import android.database.Cursor;
import android.net.Uri;
=======
import android.database.Cursor;
import android.net.Uri;
import android.os.AsyncTask;
>>>>>>>
import android.database.Cursor;
import android.net.Uri;
import android.os.AsyncTask;
<<<<<<<
=======
import android.text.TextUtils;
import android.we... |
<<<<<<<
switch (encodeType) {
case LEGACY: {
int entries = (int) Bytes.readLength(in);
if (collectMetrics) {
metrics.updatePageSize(entries);
}
K firstKey = keyCoder.keyDecode(Bytes.readBy... |
<<<<<<<
import java.util.Collection;
import java.util.HashSet;
import java.util.concurrent.atomic.AtomicLong;
=======
>>>>>>>
import java.util.Collection;
import java.util.HashSet;
import java.util.concurrent.atomic.AtomicLong;
<<<<<<<
public final Collection<String> flushedFiles;
public final AtomicLong bytesU... |
<<<<<<<
datOut = dir.createOutput(IndexFileNames.segmentFileName(id, "",
DATA_EXTENSION), context);
boolean success = false;
try {
CodecUtil.writeHeader(datOut, CODEC_NAME, VERSION_CURRENT);
this.id = id;
docToValue = new long[1];
bytesUsed.addAndGet(RamUsageE... |
<<<<<<<
CompoundFileReader cfsReader = new CompoundFileReader(dir, "_2.cfs", newIOContext(random));
=======
CompoundFileDirectory cfsReader = dir.openCompoundInput("_2.cfs", 1024);
>>>>>>>
CompoundFileDirectory cfsReader = dir.openCompoundInput("_2.cfs", newIOContext(random)); |
<<<<<<<
* <b>NOTE:</b> by default, {@link IndexWriterConfig#getMaxFieldLength()}
* returns {@link IndexWriterConfig#UNLIMITED_FIELD_LENGTH}. Pay attention to
* whether this setting fits your application.
*
=======
*
>>>>>>>
* <b>NOTE:</b> by default, {@link IndexWriterConfig#getMaxFieldLength()}
... |
<<<<<<<
import org.apache.lucene.index.values.Bytes;
import org.apache.lucene.index.values.Ints;
import org.apache.lucene.index.values.DocValues;
import org.apache.lucene.index.values.Floats;
import org.apache.lucene.index.values.Type;
import org.apache.lucene.search.FieldCache; // not great (circular); used only to pu... |
<<<<<<<
for (int i = 0; i < fieldCount; i++) {
FieldInfo fi = fieldInfos.fieldInfo(i);
if (fi.isIndexed || fi.hasDocValues()) { // TODO this does not work for non-indexed fields
fields.add(fi.name);
Codec codec = segmentCodecs.codecs[fi.codecId];
if (!producers.contai... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.