query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Returns the value of the 'Display Mode' containment reference. If the meaning of the 'Display Mode' containment reference isn't clear, there really should be more of a description here... | UbqDisplayMode getDisplayMode(); | [
"public String getDisplayMode() {\n\t\treturn displayMode;\n\t}",
"public int getDisplayMode() {\n return this.displayMode;\n }",
"public DisplayType getDisplay() {\n\t\treturn display;\n\t}",
"public byte getDisplay_mode() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn _... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests for IProject.delete where: project is CLOSED content area is the DEFAULT resources are IN_SYNC with the file system | public void testProjectDeletionClosedDefaultInSync() {
IProject project = getWorkspace().getRoot().getProject("Project");
IFile file = project.getFile("myfile.txt");
IFile otherFile = project.getFile("myotherfile.txt");
IFileStore projectStore, fileStore, otherFileStore;
/* ============================... | [
"public void testProjectDeletionOpenDefaultInSync() {\n \t\tIProject project = getWorkspace().getRoot().getProject(\"Project\");\n \t\tIFile file = project.getFile(\"myfile.txt\");\n \t\tIFileStore projectStore, fileStore;\n \n \t\t/* ======================================================================\n \t\t * F... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
writes the given degree to the message queue (with message header) | public void writeDegree(float degrees) throws QueueBlockedException {
// message header
byte sendCommandByte = this.getSendCommand(BTComm.DEGREE);
// degree as byte array
byte[] degreeBytes = CommunicationUtils.convertFloatToByteArray(degrees);
// write message to bt queue
this.write(common.WriterUtils.co... | [
"public void writeMessage(Message message) throws IOException;",
"public void requestDegree() throws QueueBlockedException {\n\t\t// send message header (request for degree)\n\t\tbyte requestCommandByte = this.getRequestCommand(BTComm.DEGREE);\n\n\t\t// write message to bt queue\n\t\tthis.write(requestCommandByte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__JvmLowerBound__Group__0__Impl" $ANTLR start "rule__JvmLowerBound__Group__1" ../org.xtext.guicemodules.ui/srcgen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:16278:1: rule__JvmLowerBound__Group__1 : rule__JvmLowerBound__Group__1__Impl ; | public final void rule__JvmLowerBound__Group__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:16282:1: ( rule__JvmLowerBound__Group__... | [
"public final void rule__JvmLowerBound__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:14677:1: ( rule__... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the selected supply point. | public SupplyPoint getSelectedSupplyPoint() {
int row = getSelectedRow();
if(row<0) return null;
else return getSupplyPoint(row);
} | [
"public Point getSelectedPoint() {\n\t\tfor(Point p : points) {\n\t\t\tif(p.getSelected()) {\n\t\t\t\treturn p;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public SupplyEdge getSelectedSupplyEdge() {\n\t\tint row = getSelectedRow();\n\t\tif(row<0) return null;\n\t\telse return getSupplyEdge(row);\n\t}",
"public T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Builds a parent node for a syntactic tree, with the specified type and the specified sons. | protected XNodeParent(TypeExpr type, XNodeExpr... sons) {
super(type);
this.sons = sons;
} | [
"public XNodeParent(TypeExpr type, XNode<V>[] sons) {\n\t\tsuper(type, sons);\n\t\tUtilities.control(sons.length > 0, \"Pb with this node that should be a parent\");\n\t}",
"public XNodeParent(TypeExpr type, List<XNode<V>> sons) {\n\t\tthis(type, sons.toArray(new XNode[sons.size()]));\n\t}",
"public XNodeParent... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int32 commentNum = 57; optional int32 commentNum = 57; | boolean hasCommentNum(); | [
"int getCommentNum();",
"public int getCommentNum() {\r\n return commentNum_;\r\n }",
"public Builder setCommentNum(int value) {\r\n bitField1_ |= 0x00000800;\r\n commentNum_ = value;\r\n onChanged();\r\n return this;\r\n }",
"public int getCommentNum() {\r\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interface/Corba/IFrontEnd.java . Generated by the IDLtoJava compiler (portable), version "3.2" from CORBA.idl Wednesday, November 21, 2018 10:47:27 o'clock PM EST | public interface IFrontEnd extends IFrontEndOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
{
} | [
"public void setEnd(int end)\n {\n _end = end;\n this.end = end;\n this.endSpecified = true;\n }",
"public void setEnd(int end)\n {\n this.end = end;\n this.endSpecified = true;\n }",
"public interface AbstractStartEndingJobTrigger extends EObject {\r\n}",
"public Instant getEnd() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indicate whether the anonymizer is enabled for the HttpImportService on the DICOM service. | public static boolean httpImportAnonymizerEnabled() {
if ((xml == null) || (httpImportAnonymize == null)) return false;
return httpImportAnonymize.equals("yes");
} | [
"public static boolean dicomImportAnonymizerEnabled() {\n\t\tif ((xml == null) || (dicomImportAnonymize == null)) return false;\n\t\treturn dicomImportAnonymize.equals(\"yes\");\n\t}",
"public static String getHttpImportAnonymize() {\n\t\tif ((xml == null) || (httpImportAnonymize == null)) return \"no\";\n\t\tret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method moves the elevator to the up position. | public void moveElevatorUp() {
elevator.goUp();
state = StackerState.RaiseingElevator;
} | [
"public void moveUp() {\n\t\tstate.updateFloor(state.getFloor()+1);\n\t}",
"public void moveUp()\r\n {\r\n this.y -= this.offset;\r\n }",
"public void moveUp() {\n\t\tthis.setLocation(this.getX(), this.getY() - BIRD_SPEED);\n\t}",
"public void moveUp() {\n locY = locY + 1;\n }",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the size, in bits, of the field 'numScales' | public static int sizeBits_numScales() {
return 8;
} | [
"public static int size_numScales() {\n\t\treturn (8 / 8);\n\t}",
"public short get_numScales() {\n\t\treturn (short) getUIntElement(offsetBits_numScales(), 8);\n\t}",
"public static int offset_numScales() {\n\t\treturn (0 / 8);\n\t}",
"int getScaleCount();",
"public double getScaleSize() {\n\t\treturn scal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
calc min and max for scaling set flagged samples to 0. | private void calculateStatistics() {
minMaxVals = new MinMaxVals(nrSubbands);
for (int time = 0; time < nrTimes; time++) {
for (int sb = 0; sb < nrSubbands; sb++) {
for (int ch = 0; ch < nrChannels; ch++) {
if (initialFlagged[time][sb][ch]) {
... | [
"public void updateMinMax( ) {\r\n if( (data == null) || (data.size() < 1) ) {\r\n min = 0.0;\r\n max = 0.0;\r\n return;\r\n }\r\n\r\n min = data.get( 0 );\r\n max = data.get( 0 );\r\n\r\n for( int i = 1; i < data.size(); i++ ) {\r\n if(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for LOCALE using the alias name Locale. | public String getLocale() {
return (String) getAttributeInternal(LOCALE);
} | [
"public String getLocale() {\n return (String)getAttributeInternal(LOCALE);\n }",
"public java.lang.String getLocale()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the general regexp pattern. | public Pattern getGeneralRegexpPattern() {
return regexpIfMatch;
} | [
"java.lang.String getRegex();",
"protected abstract String getMatchingRegex();",
"public String getPattern();",
"protected abstract Regex pattern();",
"java.lang.String getRE();",
"String getPattern_java_lang_String_();",
"public final String getRegex() {\n\t\treturn JsUtils.getNativePropertyString(this... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
throw new SecurityException("Attempting to write file! (" + paramFileDescriptor.toString() + ")"); | public void checkWrite(FileDescriptor paramFileDescriptor) {
} | [
"public WidaFileWriteException() {\n\t}",
"public WidaFileWriteException(Throwable cause) {\n\t\tsuper(cause);\n\t}",
"IOFileDescriptor createIOFileDescriptor();",
"public void checkWriteExtFileAccPerm() throws AccessDeniedException;",
"private static int check_fd_for_write(int fd) {\n int status = check... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parses the given string into a RelayState. It checks for numbers (0 == OFF and > 0 == ON) It checks case insensitive for Strings ([ON|oN|On|on] = ON and [OFF|off|Off|...] = OFF) It checks for boolean (true == ON and false == OFF) | public static RelayState toState(String s) {
try {
return RelayState.valueOf(s.toUpperCase());
} catch (ClassCastException e) {
// is Not a State value like "ON", "on" or "OFF", "off";
}
// Is Integer in String?
try {
int i = Integer.valueOf(... | [
"public static int getStateFromString( String stringState ) {\r\n\r\n int state = Condition.NO_STATE;\r\n\r\n if( stringState.equals( STATE_VALUES[0] ) )\r\n state = FlagCondition.FLAG_ACTIVE;\r\n\r\n else if( stringState.equals( STATE_VALUES[1] ) )\r\n state = FlagConditi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Makes a button representing a digit of a calculator. | public JButton makeDigitButton(String digit)
{
JButton button = new JButton(digit);
ActionListener listener = new DigitButtonListener(digit);
button.addActionListener(listener);
return button;
} | [
"public void clickDigit(View view){\n button = (Button) view;\n\n //Defines \"+/-\" button, it allows the user to enter a negative number\n //or to change the sign of an existing number\n if (button.getText().equals(\"+/-\")) {\n if (!result.isEmpty() && !result.equals(\"0\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Paint the walls on the board | private void paintWalls() {
for (Wall wall : walls) {
board.paintPath(wall.getSegments(), GridCell.WALL.getColor());
}
} | [
"private void drawWalls() {\n\t\tZombieSim.dp.setPenColor(Color.DARK_GRAY);\n\t\tfor(int r = 0; r < height; r++)\n\t\t{\n\t\t\tfor(int c = 0; c < width; c++)\n\t\t\t{\n\t\t\t\tif(walls[c][r])\n\t\t\t\t{\n\t\t\t\t\tZombieSim.dp.drawDot(c, r);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void render() {\n int pixel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Decimal__Group__1" $ANTLR start "rule__Decimal__Group__1__Impl" ../org.xtext.example.mydsl.extensions.ui/srcgen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1726:1: rule__Decimal__Group__1__Impl : ( '.' ) ; | public final void rule__Decimal__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1730:1: ( ( '.' ) )
... | [
"public final void rule__Decimal__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1718:1: ( rule__... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Final method to solve the equation | public static void Solve(
){
double varfinal = 0;
double numfinal = 0;
if (varleft >= varright){
varfinal = varleft - varright;
System.out.println("varfinal=" + varfinal);
}else{
varfinal = varright - varleft;
System.out.println("varfinal=" + varfinal);
}
if (numleft >= numright){
numfinal = ... | [
"public static void solveQuadraticEquation() {\n }",
"public void solve() {\r\n double d;\r\n d = b * b - 4 * a * c;\r\n if (d < 0) {\r\n System.out.println(\"There are no solutions \\n\");\r\n } else if (d == 0) {\r\n double x;\r\n x = (-b)/(2 * a);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The NetworkFunction definition stages. | interface DefinitionStages {
/** The first stage of the NetworkFunction definition. */
interface Blank extends WithLocation {
}
/** The stage of the NetworkFunction definition allowing to specify location. */
interface WithLocation {
/**
* Specifies the r... | [
"@Override\n public void networkSimulationStart() {}",
"public Functions(TreeNetwork network) {\n for (AbstractVariable v : network.getVariables()) {\n final CPAbstract f = v.getFunction();\n if (f != null)\n add(f);\n }\n }",
"NetworkFunction.Update upda... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method returns the value for the 'Xcorr_rank' column | public long getXcorr_rank() {
return this.iXcorr_rank;
} | [
"public Number getXcorr_score() {\n\t\treturn this.iXcorr_score;\n\t}",
"public void setXcorr_rank(long aXcorr_rank) {\n\t\tthis.iXcorr_rank = aXcorr_rank;\n\t\tthis.iUpdated = true;\n\t}",
"public int getValue() {\n return rank.value;\n }",
"public int getRank(){\r\n\t\tif(this.rank.equals(RANKS[0]... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get Messages from Store. | public HashMap<Long, Message> getMessages() throws MessageStoreException; | [
"List<Message> retrieve(MessageRetrieverContext messageRetrieverContext);",
"public List<Message> getAllMessages();",
"public List<Message> loadMessages() throws PersistentDataStoreException {\n\n List<Message> messages = new ArrayList<>();\n\n // Retrieve all messages from the datastore.\n Query query... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
update action goes to the primary, index op gets executed locally, then replicated | public void testUpdate() {
String[] updateShardActions = new String[] { UpdateAction.NAME + "[s]", BulkAction.NAME + "[s][p]", BulkAction.NAME + "[s][r]" };
interceptTransportActions(updateShardActions);
String indexOrAlias = randomIndexOrAlias();
client().prepareIndex(indexOrAlias).set... | [
"public abstract void updateIndex();",
"void updateIndexes();",
"public synchronized void reindex() {\n }",
"public abstract void collectIndexUpdate(IndexUpdateBuilder indexUpdateBuilder) throws InterruptedException, IOException, RepositoryException;",
"public void onIndexUpdate();",
"void reindex();",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "OCTAL_ESCAPE" $ANTLR start "UNICODE_ESCAPE" | public final void mUNICODE_ESCAPE() throws RecognitionException {
try {
// src/main/java/pl/ncdc/differentia/antlr/Java.g:1218:5: ( '\\\\' 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT )
// src/main/java/pl/ncdc/differentia/antlr/Java.g:1218:9: '\\\\' 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_... | [
"public final void mUNICODE_ESCAPE() throws RecognitionException {\n try {\n // /media/DEVELOP/wcl/software/salsa2/src/salsa/compiler2/Salsa.g:924:5: ( '\\\\\\\\' 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT )\n // /media/DEVELOP/wcl/software/salsa2/src/salsa/compiler2/Salsa.g:924:9: '\\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ your code to calculate values of fuelConsumptionOldRegulation and fuelConsumptionNewRegulation is here | private void calculateFuelConsumption() {
fuelConsumptionOldRegulation= 0;
fuelConsumptionNewRegulation= 0;
for(int i = 0; i < cars.length; i++){
fuelConsumptionNewRegulation += cars[i].calculateFuelConsumptionNewRegulations();
fuelConsumptionOldRegulation += cars[i].calculateFuelConsu... | [
"private void calculateFuelFlow() {this.fuelFlow = (0.9+(throttle*14.8))*mixture;}",
"public double calculateFuelConsumption()\n {\n return getFuelNeeds()/getDistance();\n }",
"float calFuelConsumption(float distance, float numLiters);",
"public double getCurrentFuel();",
"public double calcFue... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A recursive function to find nth catalan number | int calCatalan(int n) {
int res = 0;
// Base case
if (n <= 1) {
return 1;
}
for (int i = 0; i < n; i++) {
res += calCatalan(i) * calCatalan(n - i - 1);
}
return res;
} | [
"int catalan(int n) { \n int res = 0; \n \n // Base case \n if (n <= 1) { \n return 1; \n } \n for (int i = 0; i < n; i++) { \n res += catalan(i) * catalan(n - i - 1); \n } \n return res; \n }",
"int catalan(int n) {\n int r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add an item to history | public void add(Answer item) {
for (int i = AIKey.MAX_HISTORY-1; i > 0; i--) {
history[i] = history[i-1];
}
history[0] = item;
currentSize++;
} | [
"public void addHistoryEntry(String key, String entry);",
"private void addToHistory(CANValueItem<ValueType> currentItem) {\n if (currentItem.isAvailable()) {\n ValueItem<ValueType> historyItem = new ValueItem<ValueType>();\n historyItem.available = true;\n historyItem.timeStamp = currentItem.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the player body and assigns the player id to it. | public void createPlayer(Integer playerId) {
BodyDef bdef = new BodyDef();
bdef.type = BodyDef.BodyType.DynamicBody;
bdef.gravityScale = 5;
bdef.position.set(levelHandler.getLevel().getSpawnPoint());
FixtureDef fdef = new FixtureDef();
PolygonShape shape = new PolygonShap... | [
"public void CreatePlayer() {\n this.player = new Player();\n\n gamePlatform.getChildren().addAll(this.player.getBody(), this.player.getCannon());\n\n gamePlatform.getChildren().get(55).setTranslateX(WIDTH / 2);\n gamePlatform.getChildren().get(55).setTranslateY(WIDTH * 0.9375);\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test all types of environments | @Test
public void enviromentTest() {
this.environmentCollisionSetup();
for (int i = 24; i <= 27; i++) {
for (int j = 0; j < 32; j++) {
assert (m.onEnvironmentTile(i * Map.tileSize, j).equals(Environment.DEATH));
}
}
for (int i = 17; i <= 20; i++) {
for (int j = 0; j < 32; j++) {
as... | [
"@Test(enabled = true)\r\n\tpublic void testEnvironment() {\r\n\t\tSystem.err.println(\"OS test is Running: \" + System.getProperty(\"os.name\"));\r\n\t\tString result = System.getProperty(\"os.name\");\r\n\r\n\t\tList<String> osNames = Arrays.asList(\"Windows 10\", \"Windows 8\",\r\n\t\t\t\t\"Windows 8.1\", \"Wind... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return true if marking is classified as a Target State according to the logical expression created at runtime in the implementation | public boolean isTargetMarking(NewStateRecord marking); | [
"public boolean isTarget(final Environmental E);",
"public synchronized boolean isOnTarget()\n {\n final String funcName = \"isOnTarget\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n boolean onTarget = false;\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
play the MP3 file to the sound card | public void play() {
try {
FileInputStream fis = new FileInputStream(filename);
BufferedInputStream bis = new BufferedInputStream(fis);
Mp3Info mp3Info = new Mp3Info(filename);
System.out.println(mp3Info.toString());
System.out.print... | [
"public void playLocal(String audiofile);",
"public static void playShootingSound(){\n String musicFile = \"Sounds\\\\Shoot.mp3\";\n Media sound = new Media(new File(musicFile).toURI().toString());\n MediaPlayer mediaPlayer = new MediaPlayer(sound);\n mediaPlayer.setVolume(App.getVolum... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleSignedInt" $ANTLR start "ruleSignedInt" InternalAgreeParser.g:9697:1: ruleSignedInt returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= PlusSign | kw= HyphenMinus )? this_INTEGER_LIT_2= RULE_INTEGER_LIT ) ; | public final AntlrDatatypeRuleToken ruleSignedInt() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
Token this_INTEGER_LIT_2=null;
enterRule();
try {
// InternalAgreeParser.g:9701:6: ( ( (kw=... | [
"public final AntlrDatatypeRuleToken ruleSignedInt() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token kw=null;\n Token this_INTEGER_LIT_2=null;\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:11273:2: ( ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ onPause() fires off when there is any indication that the user is leaving the activity. It should be used to stop/adjust things that aren't in active use (such as the camera). It is important to do so because battery life or mobile device performance can be affected if resources aren't properly freed up. The applicat... | @Override
public void onPause(){
super.onPause();
Log.d(TAG, "onPause: app is in the Paused state");
} | [
"@Override\n public void onPause() {\n AppEventsLogger.deactivateApp(this);\n isResumed = false;\n\n super.onPause();\n uiHelper.onPause();\n }",
"public void onPause() {\n AppEventsLogger.deactivateApp(mActivity);\n }",
"@Override\n public void onPause() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The stage of the VideoEntity definition allowing to specify mediaInfo. | interface WithMediaInfo {
/**
* Specifies the mediaInfo property: Contains information about the video and audio content..
*
* @param mediaInfo Contains information about the video and audio content.
* @return the next definition stage.
*/
... | [
"interface WithMediaInfo {\n /**\n * Specifies the mediaInfo property: Contains information about the video and audio content..\n *\n * @param mediaInfo Contains information about the video and audio content.\n * @return the next definition stage.\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the sql datatype of this ColumnElement. | public final void setSqlType(final String sqlTypeToSet) {
this.sqlType = sqlTypeToSet;
} | [
"public void setColumnType(int columnType);",
"void encodeColumnType(final String sqlTypeName, final StringBuilder sql);",
"public void setDatatype(java.lang.String value) {\n this.datatype = value;\n }",
"public void setColumnType(ColumnType columnType) {\n m_columnType = columnType;\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Private empty constructor of LanguageContract. | private LanguageContract() {
// nothing here.
} | [
"private LanguageFactory ( )\n {\n super ( ) ;\n }",
"public L0Language ( )\n {\n // nothing to do here...\n }",
"private Lang(){}",
"Language() {\n System.out.println(\"Ini adalah Language Constructor tanpa parameter\");\n }",
"private ClothesContract() {}",
"public LanguageBean() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Forces an asynchronous packet to be sent regardless of how many other threads have said they're waiting to process it | public void forceSend() {
if(!isAsync()) {
NoXray.log(Level.WARNING, "Attempted to force send a sync packet, unnecesaary");
Thread.dumpStack();
return;
}
while(_event.getAsyncMarker().getProcessingDelay() > 0) {
decrementAsyncProcessingCountAndSen... | [
"@Override\r\n\t\t\t\tpublic void run(){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif (effectArgs[PACKETDELAYTIMEINDEX] instanceof Integer){\r\n\t\t\t\t\t\t\tThread.sleep((Integer)effectArgs[PACKETDELAYTIMEINDEX]);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tsleepUntilNotified(effectArgs[PACKETDELAYTIMEINDEX]);\r\n\t\t\t\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiate the sign up listener | @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mSignUpListener = (AddListener) getActivity();
} | [
"public SignUp() {\n \n initComponents();\n \n }",
"private void initAuthListener() {\n\n mAuthStateListener = new FirebaseAuth.AuthStateListener() {\n @Override\n public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {\n\n mExecutor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new simulation window for a Linear PsuedoBoolean Function from the settings provided. | public SimulationPresenter<BitString> createNewPblSimulationWindow() {
Algorithm<BitString> algorithm;
switch (this.getAlgorithmType()) {
case GENETIC:
algorithm = algorithmFactory.createLinearPbGeneticAlgorithm(this.getProblemSeed(),
problemSize, evoAlgoithmSettings);
break;
case ... | [
"private void createFunctionPanel()\n\t{\n\t\tGridLayout funcGrid = new GridLayout(2,5);\n\t\tfuncGrid.setHgap (5);\n\t\tfuncGrid.setVgap (5);\n\t\tfunctionPanel.setLayout(funcGrid);\n\t\tfunctionPanel.add (eToPower);\n\t\tfunctionPanel.add (ln);\n\t\tfunctionPanel.add (twoPower);\n\t\tfunctionPanel.add (xCube);\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Perform mapping of CoverageCategory (LossType) C maps to G Collision P maps to A Property Damage M maps to D Comprehensive A maps to O AAnimal to OOther | private CIECADocument updateCoverageCategory(final CIECADocument inDoc, final java.util.logging.Logger mLogger) {
if (inDoc != null && inDoc.getCIECA() != null && inDoc.getCIECA().getAssignmentAddRq() != null) {
//
// <ClaimInfo>/<PolicyInfo>/<CoverageInfo>/<Coverage>/<CoverageCategory>
//
final Cl... | [
"public abstract Map<ChocolateFlavorType, Integer> getPromotionRules();",
"private void translateTestcaseEffectivenessToDeficiencyType(IEnumAttribute effectiveness, IEnumAttribute type){\r\n\t\tList<IEnumerationItem> effectivenessEnumItem = effectiveness.getRawValue();\r\n\t\tfor (IEnumerationItem iEnumerationIte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when the page is presented to the user. | public abstract void pageActivated(); | [
"protected void onUserVisible() {\n }",
"void onPageStarted();",
"@Override\n protected void afterPageDisplayed()\n {\n summaryField.requestFocusInWindow();\n }",
"protected void onShowPage(boolean firstShow) {\n\t\t// do nothing\n\t}",
"private void redirectToLandingPage(){\n\t\tappInjector.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
pennies to dollars test | @Test
public void testPenniesToDollars_100_shouldReturn1() {
VendingMachineCLI vendingMachine = new VendingMachineCLI();
String expected = "$1.00";
String result = vendingMachine.penniesToDollars(100);
assertEquals(expected, result);
} | [
"public int dollars () {\n return dollars;\n }",
"public int getDollars() { return this.dollars; }",
"public int giveDollars()\n\t{\n\t\tint dollarsDue = (int) (payment - purchase);\n\t\tpayment -= dollarsDue;\n\t\treturn dollarsDue;\n\t}",
"@Test\n public void convert_EUR_to_USD_Test(){\n\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setup mapping for the user authentication whitelist. Throws RuntimeException on fail. | public static void setupAuthenticationWhitelistMapping(){
JSONObject res = Elasticsearch.putMapping(ElasticSearchConfig.getEndpoint(),
DB.WHITELIST, JSON.readJsonFromFile(Config.configurationFolder + "Elasticsearch/whitelist-mapping.json"));
if (JSON.getIntegerOrDefault(res, "code", -1) != 0){
throw new Run... | [
"@PostConstruct\n public void initializeUserDomainWhitelist() {\n String domains = appConfig.getWhitelistedUserDomains();\n if (domains.isEmpty()) {\n logger.info(\"No user domain whitelist specified. All domains allowed.\");\n whitelistedDomains = Optional.empty();\n }else {\n logger.info(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a new user variable to the list of available variables. | public UserVariableDefinitionDto addUserVariableDefinition(UserVariableDefinitionDto definition) throws ServerCallFailedException; | [
"public void addVariable(Variable newVariable) {\r\n\t\tthis.variables.add(newVariable);\r\n\t}",
"void addCandidateVariable(String name);",
"public void addVariable(Variable v)\n {\n observable.add(v);\n }",
"private void addVar(String name) {\r\n\t\tvarName.add(name);\r\n\t}",
"public void ad... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DELETE /meals/:id : delete the "id" meal. | @DeleteMapping("/meals/{id}")
@Timed
public ResponseEntity<Void> deleteMeal(@PathVariable Long id) {
log.debug("REST request to delete Meal : {}", id);
mealRepository.delete(id);
return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();... | [
"@RequestMapping(value = { \"/deletemeal\" }, method = RequestMethod.POST)\r\n\tpublic String deleteMeal(@RequestParam String id) {\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"Request to delete meal web service\");\r\n\t\t\tmealHandler.deleteMeal(id);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Sorry, Something... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test method for validateCompilationChallenge. | @Test
public void validateCompilationChallengeTest() {
int userId = 1;
String title = "Hello Word";
String description = "---";
String className = "HelloWordx2";
String source = "public String hello(){ return "+"HelloWord"+" }";
int point= 100;
int ownerSolutionId= 9;
Challenge challenge = Challenge.a... | [
"@Test\n\tpublic void addCompilationChallengeTest() {\n\t\tint userId = 32; \n\t\tString title= \"Hello Word Test\";\n\t\tString nameClass = \"HelloWordTest\";\n\t\tString description = \"Test Hello Word\";\n\t\tString source = \"System.out.println('Hello Word')\";\n\t\tint point = 52;\n\t\tint ownerSolutionId = 3;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleElementReferenceExpression" $ANTLR start "ruleElementReferenceExpression" ../org.yakindu.sct.model.stext/srcgen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3449:1: ruleElementReferenceExpression returns [EObject current=null] : ( () ( ( ruleFQN ) ) ) ; | public final EObject ruleElementReferenceExpression() throws RecognitionException {
EObject current = null;
enterRule();
try {
// ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3452:28: ( ( () ( ( ruleFQN... | [
"public final EObject entryRuleElementReferenceExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleElementReferenceExpression = null;\r\n\r\n\r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
only copy if specified beforehand with the copyIsMarried variable | public static AbstractCard Postfix(AbstractCard retVal, AbstractCard obj) {
if (WeddingRingPatch.copyIsMarried.get(obj)) {
//BaseMod.logger.log(Level.INFO,"Copying isMarried for: " + obj.name);
WeddingRingPatch.isMarried.set(retVal, WeddingRingPatch.isMarried.get(obj));
}
WeddingRingPatch.copyIsMarried... | [
"static void setNotCopying(){isCopying=false;}",
"Copiable copy();",
"Side copy();",
"public Behavior copy();",
"public boolean isCopyState() {\n\t\treturn true;\n\t}",
"Copy createCopy();",
"public abstract AbstractCardModifier makeCopy();",
"Exchange copy();",
"public void onCopy();",
"public ab... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the dataFilter property. | public void setDataFilter(long value) {
this.dataFilter = value;
} | [
"public void setDataFilter(String dataFilterString) {\r\n dataFilter = dataFilterString;\r\n }",
"public void setFilter(String filter){\n\tthis.filter = filter;\n\tfilterData();\n\tfireContentsChanged(this, 0, filteredData.size());\n }",
"void setFilter(Filter aFilter);",
"protected void setFilte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
POST /userinfos : Create a new userInfo. | @PostMapping("/user-infos")
@Timed
public ResponseEntity<UserInfoDTO> createUserInfo(@Valid @RequestBody UserInfoDTO userInfoDTO) throws URISyntaxException {
log.debug("REST request to save UserInfo : {}", userInfoDTO);
if (userInfoDTO.getId() != null) {
throw new BadRequestAlertExce... | [
"@PostMapping(\"/user-infos\")\n @Timed\n public ResponseEntity<UserInfo> createUserInfo(@Valid @RequestBody UserInfo userInfo) throws URISyntaxException {\n log.debug(\"REST request to save UserInfo : {}\", userInfo);\n if (userInfo.getId() != null) {\n return ResponseEntity.badReque... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build call for signUpdateSignCert | public com.squareup.okhttp.Call signUpdateSignCertCall(Integer id, SignCertUpdateDTO certUpdate, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = certUpdate;
// create... | [
"public UpdateSigningCertificateRequest() {}",
"public yandex.cloud.api.operation.OperationOuterClass.Operation update(yandex.cloud.api.organizationmanager.v1.saml.CertificateServiceOuterClass.UpdateCertificateRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the organisation id. | public String getOrganisationID() {
return organisationID;
} | [
"public long getOrganizationId() {\n return _app.getOrganizationId();\n }",
"private String getOrgId() {\n\t\tSession ses = SecurityUtils.getSubject().getSession();\n\t\treturn ses.getAttribute(\"orgid\").toString();\n\t}",
"Identifier getOrganismId();",
"public long getOrganizationId();",
"com.go... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column t_wash_order.accept_time | public Date getAcceptTime() {
return acceptTime;
} | [
"public String getAccepttime() {\n return accepttime;\n }",
"public String getAcceptTime() {\n return acceptTime;\n }",
"@Basic\n @Column(name = \"choose_time\", nullable = true)\n public Integer getChooseTime() {\n return chooseTime;\n }",
"public Date getWishPaymentTime()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of weathers where searchParamCity = &63; and searchParamDate = &63;. | public static int countByByCityAndDate(java.lang.String searchParamCity,
Date searchParamDate) {
return getPersistence()
.countByByCityAndDate(searchParamCity, searchParamDate);
} | [
"public static int countByByCity(java.lang.String searchParamCity) {\n return getPersistence().countByByCity(searchParamCity);\n }",
"public int readPersonDataByCity(String city) throws MyAddressBookException {\n\t String sql = String.format(\"SELECT COUNT(first_name) AS CITY_COUNT FROM contacts ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the ProductWithdrawalExposure field. Exposure | @gw.internal.gosu.parser.ExtendedProperty
public java.lang.Long getProductWithdrawalExposure(); | [
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.Exposure getExposure() {\n return (entity.Exposure)__getInternalInterface().getFieldValue(EXPOSURE_PROP.get());\n }",
"public void setProductWithdrawalExposure(java.lang.Long value);",
"public long getExposureAmount() {\n\t\treturn exposureAm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add a piece of ordinary dry land | public void addDryLand() {
lands.add(new DryLand());
Stdout.print(this, "A piece of Dry land is added");
} | [
"public void addWater(){\n Ground ground = getGround();\n if (ground.hasCapability(LakeStatus.ISLAKE)) {\n ground.addCapability(LakeStatus.ADDWATER);\n }\n }",
"public void addFertileLand() {\n lands.add(new FertileLand());\n Stdout.print(this, \"A piece of Dry lan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__IntegerArrayEntry__Group__1" $ANTLR start "rule__IntegerArrayEntry__Group__1__Impl" ../hu.bme.mit.androtext.androres.ui/srcgen/hu/bme/mit/androtext/androres/ui/contentassist/antlr/internal/InternalAndroResDsl.g:1749:1: rule__IntegerArrayEntry__Group__1__Impl : ( ( rule__IntegerArrayEntry__ValueAssignm... | public final void rule__IntegerArrayEntry__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../hu.bme.mit.androtext.androres.ui/src-gen/hu/bme/mit/androtext/androres/ui/contentassist/antlr/internal/InternalAndroResDsl.g:1753:1: ( (... | [
"public final void rule__IntegerArrayEntry__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../hu.bme.mit.androtext.androres.ui/src-gen/hu/bme/mit/androtext/androres/ui/contentassist/antlr/internal/InternalAndroResDsl.g:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
replace fragment with login Screen | @Override
public void loginClickedSignUp() {
startSignInFragment();
} | [
"protected void replaceLoginFragment() {\n\n\n }",
"protected void replaceLoginFragment() {\n\n// fragmentManager\n// .beginTransaction()\n// .setCustomAnimations(R.anim.left_enter, R.anim.right_out)\n// .replace(R.id.frameContainer, new Login_Fragment(),\n//... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end of 'TwowayOBD_lowPriority_invalidAPIToken_Request' / Invalid Authorization | @Test(description = "Passing invalid Authorization Token", groups = { "APIKonnectResponseErrorCode", "2WayOBDHighPriority" }, priority = 2)
public void TwowayOBD_lowPriority_invalidAuthorizationToken_Request() throws InterruptedException {
recpList.add("2348100000001");
recpList.add("2348100000002");
recpLi... | [
"public APIToken() {\n super();\n }",
"@Test(description = \"Passing invalid API Token\", groups = { \"APIKonnectResponseErrorCode\", \"2WayOBDHighPriority\" }, priority = 2)\n\t\tpublic void TwowayOBD_lowPriority_invalidAPIToken_Request() throws InterruptedException {\n\t\t\t\n\t\trecpList.add(\"234810... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the last task in the ordered set where userId = &63; and finished = &63;. | public static Task fetchByByUserIdAndFinished_Last(long userId,
boolean finished, OrderByComparator<Task> orderByComparator) {
return getPersistence()
.fetchByByUserIdAndFinished_Last(userId, finished,
orderByComparator);
} | [
"public static Task findByByUserIdAndFinished_Last(long userId,\n\t\tboolean finished, OrderByComparator<Task> orderByComparator)\n\t\tthrows serviceBuilder.exception.NoSuchTaskException {\n\t\treturn getPersistence()\n\t\t\t\t .findByByUserIdAndFinished_Last(userId, finished,\n\t\t\torderByComparator);\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Expects the stream to start with a chunksize in hex with optional comments after a semicolon. The line must end with a CRLF: "a3; some comment\r\n" Positions the stream at the start of the next line. | private int getChunkSize() throws IOException {
int st = this.state;
switch (st) {
case CHUNK_CRLF:
this.buffer = new StringBuffer();
int i = readLine(this.in, this.buffer);
if (i == -1) {
return 0;
}
if (this.buffer.length() != 0) {
throw new IllegalArgumentException(
"Unexpected con... | [
"@Test\n public void test_parsenewlines_crlf() {\n NewlineParser nlp = new NewlineParser();\n Diagnostics<Diagnosis> diagnostics = new Diagnostics<Diagnosis>();\n byte[] bytes;\n int expectedNewlines;\n boolean expectedMissingCr;\n boolean expectedMissingLf;\n boo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Etcd Keys (cameletcd) Get, set or delete keys in etcd keyvalue store. Category: clustering,database Since: 2.18 Maven coordinates: org.apache.camel:cameletcd Syntax: etcdkeys:path Path parameter: path The path the endpoint refers to | default EtcdKeysEndpointBuilder etcdKeys(String path) {
return EtcdKeysEndpointBuilderFactory.endpointBuilder("etcd-keys", path);
} | [
"default EtcdKeysEndpointBuilder etcdKeys(\n String componentName,\n String path) {\n return EtcdKeysEndpointBuilderFactory.endpointBuilder(componentName, path);\n }",
"PathKeys getPathKeys();",
"public interface EtcdKeysEndpointBuilder extends EndpointProducerBui... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a MapBackedDouble with a certain property name and default value of 0.0 | public MapBackedDouble(Map sourceMap, String property) {
this(sourceMap, property, 0.0);
} | [
"public MapBackedDouble(Map sourceMap, String property, Double valueIfMissing) {\n\t\tsuper(sourceMap, property, valueIfMissing);\n\t}",
"void initDouble(String key, double value);",
"public Double getDouble(String key, Double defaultValue);",
"public double getDouble(String property, double defaultValue);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
int64 FactoryId = 4; | public long getFactoryId() {
return factoryId_;
} | [
"long getFactoryId();",
"long getInstanceid();",
"long getInstanceID();",
"protected String getFactoryID( String id ){\n return id;\n }",
"private IDGen()\r\n {\r\n idCount = 1;\r\n }",
"Id createId();",
"public Integer getFactoryId() {\n\t\treturn factoryId;\n\t}",
"private St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get list of class filters to stop on. | public String[] getClassFilters () {
return classFilters;
} | [
"public String[] getClassExclusionFilters () {\n return classExclusionFilters;\n }",
"public List<Filter> getFilters(){\n List<Filter> filters = new ArrayList<>();\n Filter[] filterArr = Filter.class.getEnumConstants();\n for (int i = 0; i < filterArr.length; i++){\n filt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
CartDiscountValue Example to create a subtype instance using the builder pattern CartDiscountValue cartDiscountValue = CartDiscountValue.absoluteBuilder() plusMoney(moneyBuilder > moneyBuilder) .build() | @JsonSubTypes({
@JsonSubTypes.Type(value = com.commercetools.api.models.cart_discount.CartDiscountValueAbsoluteImpl.class, name = CartDiscountValueAbsolute.ABSOLUTE),
@JsonSubTypes.Type(value = com.commercetools.api.models.cart_discount.CartDiscountValueFixedImpl.class, name = CartDiscountValueFixed.FIX... | [
"Builder addEligibleQuantity(QuantitativeValue.Builder value);",
"public DiscountedLineItemPrice build() {\n Objects.requireNonNull(value, DiscountedLineItemPrice.class + \": value is missing\");\n Objects.requireNonNull(includedDiscounts, DiscountedLineItemPrice.class + \": includedDiscounts is mis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unselect the region at the given coordinate. | public void unselect(int x, int y)
{
if(x >= 0 && x < width && y >= 0 && y < height){
selected_regions.remove(Is[y][x]);
DIRTY = true;
}
repaint();
} | [
"public void unSelectTile() {\n this.setSelectedTile(-1);\n }",
"public void deselect() {\n\t\tm_pin.resetAndUnblock();\n\t\tClear();\n\t}",
"public void deselect() {\n if (selection != null) {\n \t\tworld.destroyJoint(mouseJoint);\n \t selection = null;\n \t mouseJoint = null;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ private int classId; private String className; private int creator; private Date createTime; private String teacherName; private int status; private String school; private String college; private String major; private String introduction; private String requirement; | @Select("select * from class")
@Results(id = "classMap", value ={
@Result(property = "classId", column = "class_id"),
@Result(property = "className", column = "class_name"),
@Result(property = "creator", column = "creator"),
@Result(property = "createTime", column = "... | [
"private void createClassVariables(){ \n //--------------------------------------------------------------------------- \n Hashtable table=sqlTagsGeneratorTable.getImportedForeignKeyHash();\n Enumeration enum=table.keys();\n buffer=new StringBuffer();\n //buffer.append(\" private Connection... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the value of dado1 | public int getNumero() {
return dado1;
} | [
"public int getDado1() {\n return dado1;\n }",
"public int getDado2() {\n return dado2;\n }",
"public void setDado1(int dado1) {\n this.dado1 = dado1;\n }",
"public java.lang.String getValor1();",
"public int getData1() {\n return data1_;\n }",
"public int getData1() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called during creation of the Scheduler in order to give the SchedulerPlugin a chance to initialize. | @Override
public void initialize(String name, final Scheduler scheduler) throws SchedulerException {
logger.info("Initializing AnnotationJobTriggerPlugin Plug-in.");
this.scheduler = scheduler;
} | [
"protected abstract void scheduler_init();",
"public void schedulerInitialize();",
"void initializeScheduler() throws SSchedulerException;",
"public static void init() {\n\t\tProperties params = new Properties();\n\t\tparams.put(StdSchedulerFactory.PROP_THREAD_POOL_CLASS,\n\t\t\t\t\"org.quartz.simpl.SimpleThr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for the COM property "RepeatItemsOnEachPrintedPage" | @VTID(104)
boolean getRepeatItemsOnEachPrintedPage(); | [
"@VTID(105)\r\n void setRepeatItemsOnEachPrintedPage(\r\n boolean rhs);",
"Page getRepeatedPageIndexItems(\n RepeatedPage repeated,\n int index);",
"Builder setPageRepeated(int repeatPage) {\n\t\t\tthis.repeatPage = repeatPage;\n\t\t\treturn this;\n\t\t}",
"public VBox getPnItems() {\n\t\tre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Writes the requested characteristic from the associated remote device by instance id. | @Rpc(description = "Writes the requested characteristic from the associated remote "
+ "device by instance id.")
public boolean gattClientWriteDescriptorByInstanceId(
@RpcParameter(name = "gattIndex") Integer gattIndex,
@RpcParameter(name = "discoveredServiceListIndex") Integer d... | [
"@Rpc(description = \"Writes the requested characteristic from the associated remote \"\n + \"device by instance id.\")\n public boolean gattClientWriteCharacteristicByInstanceId(\n @RpcParameter(name = \"gattIndex\") Integer gattIndex,\n @RpcParameter(name = \"discoveredServiceL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove duplicates in the data array. | public void removeDups() {
for (int i = 0; i < size; i++) {
for (int j = i + 1; j < size; j++) {
if (dataArray[i].equals(dataArray[j])) {
remove(j);
j--; // update j since the size is changed;
}
}
}
} | [
"protected void unique() {\n List<Double> unique = new ArrayList<Double>(size());\n for (Double f : data) {\n if (!unique.contains(f)) {\n unique.add(f);\n }\n }\n this.setData(unique);\n }",
"public void removeDuplicates()\n\t{\n\t\tComparator<P... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Answer whether or not I am a higher rank than anotherCandidate | public boolean hasHigherRankThan(Candidate aCandidate) {
return aCandidate.getRank() <= this.getRank();
} | [
"@Override\n public int compare(Object o1, Object o2){\n RankedCandidate c1=(RankedCandidate)o1;\n RankedCandidate c2=(RankedCandidate)o2;\n\n if(c1.getScore()>c2.getScore()) {\n return -1;\n }\n else if(c1.getScore()<c2.getScore()) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
refresh the information to display on the screen, including prompts, warns, scores and operation buttons | private void updateInformation(){
view.getPrompt().setText(getPrompt());
view.getScore().setText(getScore());
} | [
"public void refresh() {\r\n\t\tneeds.setText(needs());\r\n\t\tproduction.setText(production());\r\n\t\tjobs.setText(jobs());\r\n\t\tmarketPrices.setText(marketPrices());\r\n\t\tmarketSellAmounts.setText(marketSellAmounts());\r\n\t\tmarketBuyAmounts.setText(marketBuyAmounts());\r\n\t\tcompanies.setText(companies())... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the file name of the OWL file describing the currently loaded semantic map | public String getMapOwlFile() {
return mapOwlFile;
} | [
"public String getMapFileName();",
"public String getMapFileName() {\n \t\t\treturn getMapName() + \"-\" + getVersion() + \"-map\" + MAP_FORMAT_VERSION + \".zip\";\n \t\t}",
"public String getRecipeOwlFile() {\n \t\treturn recipeOwlFile;\n \t}",
"public String getMidletFileName() {\n \t\t\treturn getMidletNam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
In rare cases code needs to interact with resultSet object itself (e.g. to interact with resultSet metadata or have custom logic for how to iterate the rows, this method exposes the nativeQueryHandler interface allowing to interact with the raw resultSet object and return a value (or Void if no ret val is needed) | <T> T executeNativeQueryAndInteractWithRawResultSet(
String sql,
NativeQueryHandler<T> nativeQueryHandler,
List<Object> params); | [
"<T> T executeNativeQueryAndInteractWithRawResultSet(\n String sql,\n NativeQueryHandler<T> nativeQueryHandler,\n List<Object> params,\n FetchSpecification fetchSpecification);",
"void handleResultSet(String sql, NativeQueryRowBatchConverter<Void> converter);",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the next transaction ID | public static long getNextId()
{
return (AbstractTransaction.ID + 1);
} | [
"public long getNextTransmissionId() throws AeStorageException;",
"private static int getNextID()\n {\n return nextID;\n }",
"long nextId();",
"public Integer getNext_id() {\n return next_id;\n }",
"public String getNextTaskID()\r\n\t{\r\n\t\treturn taskItem.getNextTaskID();\r\n\t}",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Validate the sequence of braces | public static boolean validateBraces(String braces) {
Stack<String> stack = new Stack<String>();
for (int i = 0; i < braces.length(); i++) {
if (braces.charAt(i) == '(') stack.push("(");
if (braces.charAt(i) == ')') {
// Check stack before popping to avoid Exception
if (!stack.isEmpty()) {
stack.... | [
"public boolean isValid(String braces) {\n int len = braces.length(); \n if(len == 0 ) return false;\n else{\n //all odd length are supposed to return false\n if(len % 2 != 0){\n return false;\n }\n else{\n \n boolean status = true;\n int top = -1;\n ch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Criterion Specified' attribute. | boolean isCriterionSpecified(); | [
"public com.google.protobuf.StringValue getCampaignCriterion() {\n return campaignCriterion_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : campaignCriterion_;\n }",
"public com.google.protobuf.StringValue getCampaignCriterion() {\n if (campaignCriterionBuilder_ == null) {\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check whether the given file has been changed. | public boolean hasChanged(FileObject file) {
if (files == null) {
// all files on source filesystem are said to change
try {
return file.getFileSystem() == getSource();
} catch (FileStateInvalidException ex) {
// invalid files should not be cha... | [
"public boolean hasChanged (FileObject file) {\n if (files == null) {\n // all files on source filesystem are said to change\n try {\n return file.getFileSystem() == getSource ();\n } catch (FileStateInvalidException ex) {\n // invalid files shou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to Create the LineTokenizer Object And Separated IdentityCard2 Data By Using ';' (Semicolon) | private LineTokenizer createIdentityCard2LineTokenizer() {
DelimitedLineTokenizer lineTokenizer = new DelimitedLineTokenizer();
lineTokenizer.setDelimiter(";");
lineTokenizer.setNames(new String[] { "IdCard2Id", "IdCard2Number", "IdCard2Type","IdCard2HolderName","IdCard2IssuedOn","IdCard2IssuedBy","IdCard2expD... | [
"private LineTokenizer createCardLineTokenizer() {\r\n\t\tDelimitedLineTokenizer lineTokenizer = new DelimitedLineTokenizer();\r\n\t\tlineTokenizer.setDelimiter(\";\");\r\n\t\tlineTokenizer\r\n\t\t\t\t.setNames(new String[] { \"cardId\", \"cardNumber\", \"cardHolderName\", \"expiryDate\", \"cvv\", \"cardTypeId\" })... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds an artifact by java interface name. | private BaseArtifactType findJavaInterfaceArtifact(String interfaceName) {
int idx = interfaceName.lastIndexOf('.');
String packageName = interfaceName.substring(0, idx);
String shortName = interfaceName.substring(idx+1);
LinkerContext context = linkerContext.get();
Map<String, S... | [
"@Nullable\n PackageInfo findPackage(String name);",
"Gav findArtifact(String groupId, String artifactId, String version);",
"public InterfaceDefinition getInterface(String name) {\n InterfaceDefinition ret=null;\n \n for (int i=0; i < _interfaces.size(); i++) {\n if (_interfa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column portal_panel.yaxis | public void setYaxis(String yaxis) {
this.yaxis = yaxis;
} | [
"public ChartYAxis getYAxis() { return _yaxis; }",
"public void setY(int y) {\n\t\tif (y>=0 && y<=GridConstants.MAX_PANEL_HEIGHT)\n\t\tthis.y = y;\n\t\telse\n\t\t\tSystem.out.println(\"The value of y cannot be less than 0 or greather than the Height of the Panel.\");\n\t}",
"public IReportData setYValues(Strin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns whether an inprogress EntityAIBase should continue executing | public boolean shouldContinueExecuting() {
return (this.shouldExecute() || !this.entity.getNavigator().noPath()) && this.isBowInMainhand();
} | [
"public boolean continueExecuting() {\n\t\t\tEntityLivingBase entitylivingbase = this.entityLiving.getAttackTarget();\n\n\t\t\tif (entitylivingbase == null) {\n\t\t\t\treturn false;\n\t\t\t} else if (!entitylivingbase.isEntityAlive()) {\n\t\t\t\treturn false;\n\t\t\t} else if (entitylivingbase instanceof EntityPlay... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Devuelve el campo urlGetMapRequests | public String getUrlGetMapRequests() {
return urlGetMapRequests;
} | [
"public void setUrlGetMapRequests(String urlGetMapRequests) {\r\n this.urlGetMapRequests = urlGetMapRequests;\r\n }",
"public Map<String,Object> getRequestObjects();",
"public void setUrlGetFeatureInfoRequests(String urlGetFeatureInfoRequests) {\r\n this.urlGetFeatureInfoRequests = urlGetFeatur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
private static final Singleton IActivityTaskManagerSingleton | private static void installActivityTaskManager() {
XposedHelpers.setStaticObjectField(ActivityTaskManager.class, "IActivityTaskManagerSingleton", IActivityTaskManagerSingleton);
XLog.d("installActivityTaskManager done");
} | [
"public static TasksManager getInstance() {\n return TasksManagerWrapper.INSTANCE;\n }",
"public static TaskManager getTaskManager() {\r\n initTasks();\r\n return taskManager;\r\n }",
"public static TaskManager getSharedInstance(){\n\t\tif (sharedInstance == null) {\n\t\t\tsharedInstance = new ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the evaluation strategy used by this plane. | public EvaluationStrategy getEvaluationStrategy(); | [
"public IStrategy getStrategy() {\n\t\treturn currStrategy;\n\t}",
"public Strategy getStrategy() {\n\t\treturn strategy;\n\t}",
"public java.lang.String getStrategy() {\n return strategy;\n }",
"public ASEvaluation getEvaluator();",
"public void setEvaluationStrategy(EvaluationStrategy eval);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Enable retries and run testUpdateSecretMetadataWOptions. | public void testUpdateSecretMetadataWOptionsWRetries() throws Throwable {
secretsManagerService.enableRetries(4, 30);
testUpdateSecretMetadataWOptions();
// Disable retries and run testUpdateSecretMetadataWOptions.
secretsManagerService.disableRetries();
testUpdateSecretMetadata... | [
"public void testUpdateSecretWOptionsWRetries() throws Throwable {\n secretsManagerService.enableRetries(4, 30);\n testUpdateSecretWOptions();\n\n // Disable retries and run testUpdateSecretWOptions.\n secretsManagerService.disableRetries();\n testUpdateSecretWOptions();\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Caches the traccar users in the entity cache if it is enabled. | public void cacheResult(java.util.List<TraccarUser> traccarUsers); | [
"public void cacheResult(TraccarUser traccarUser);",
"public void cacheResult(java.util.List<com.vanban.model.user> users);",
"private final void initializeCache() {\r\n try {\r\n UserIndex index = makeUserIndex(this.dbManager.getUserIndex());\r\n for (UserRef ref : index.getUserRef()) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add the undo action button | private void addUndoButton() {
undoButton = new EAdSimpleButton(EAdSimpleButton.SimpleButton.UNDO);
undoButton.setEnabled(false);
toolPanel.add(undoButton);
redoButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0) {
controller.getCommandManager(... | [
"private void setUndoButton(){\n undoButton.setTranslateX(640);\n undoButton.setTranslateY(195);\n root.getChildren().add(undoButton);\n undoButton.setOnMouseClicked(event -> {\n TempInfo prevState = panels.getPrevStep();\n toPrevStep(prevState);\n });\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
pattern1 points to remember 1.) fro space in front i1 3.) for that use j<rowsi+1// | public static void main(String[] args) {
System.out.println("1.)");
int i,j;
int n=6;
for(i =1;i<=n;i++){
for(j=1;j<=n-i;j++){
System.out.print(" ");
}
for(j=1;j<=i;j++){
System.out.print("* ");
... | [
"public void fillPattern1()\r\n {\r\n for (int row = 0; row < matrix.length; row++)\r\n {\r\n for (int col = 0; col < matrix[0].length; \r\n col++)\r\n {\r\n if (row < col)\r\n matrix[row][col] = 1;\r\n else if (row == col)\r\n matrix[row][col] = 2;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use AuthData.newBuilder() to construct. | private AuthData(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
} | [
"private AuthInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private AuthRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getU... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test adding event to a false expression, no registered actions | @Test
public void testMatchExpr_FalseExpression() {
System.out.println("Simple add, false expression, no registered actions");
AddEventTrigger trigger = null;
EventExpression instance = new FalseEventExpression();
instance.execute(trigger, event1);
assertFalse(instance.isTrue... | [
"@Test\n public void testMatchExpr_FalseExpressionWithAction() {\n System.out.println(\"Simple add, false expression, one registered actions\");\n AddEventTrigger trigger = null;\n EventExpression instance = new FalseEventExpression();\n EventMatchActionImpl action = new EventMatchAct... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Submits given task to thread pool. | public void submitTask(WikiTask<?> task) {
// get thread pool
ServletContext context = VaadinServlet.getCurrent().getServletContext();
ExecutorService threadPool = (ExecutorService) context.getAttribute("threadPool");
// submit task
threadPool.submit(task);
} | [
"private <T> LightFuture<T> submit(PoolTask<T> task) {\n synchronized (tasksQueue) {\n if (shutdown) {\n task.reject(new IllegalStateException(\"Shutdown happened. No more tasks accepted\"));\n }\n\n tasksQueue.add(task);\n return task;\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
auto generated Axis2 call back method for accountMatchPwd method override this method for handling normal response from accountMatchPwd operation | public void receiveResultaccountMatchPwd(
org.tempuri.UserWcfStub.AccountMatchPwdResponse result) {
} | [
"public void receiveResultcheckPayPassword(\r\n org.tempuri.UserWcfStub.CheckPayPasswordResponse result) {\r\n }",
"public void receiveResultuserRePassword(\r\n org.tempuri.UserWcfStub.UserRePasswordResponse result) {\r\n }",
"public void receiveResultuserRePayPassword(\r\n org.tempur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Moves the minimum child of targetPos block up to targetPos; optionally compares priorities and terminates if targetPos element has lesser value than either of its children. | private int moveMinChildUp(int targetPos, long time, double comparePri) {
int leftIx = (targetPos << 1) + 1, rightIx = leftIx + 1;
if (leftIx >= heapSize) {
return -1; // Buffer is at the leaf node.
}
LlapCacheableBuffer left = heap[leftIx], right = null;
if (rightIx < heapSize) {
right ... | [
"void siftdownMin(int pos) {\n\t\tif (hasChildren(pos)) {\n\t\t\tint m = smallestChildOrGrandChild(pos);\n\t\t\tif (isGrandChild(pos, m)) {\n\t\t\t\tif (MMHeap[m].compareTo(MMHeap[pos]) < 0) {\n\t\t\t\t\tswap(m, pos);\n\t\t\t\t\tif (MMHeap[m].compareTo(MMHeap[parent(m)]) > 0) {\n\t\t\t\t\t\tswap(m, parent(m));\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the first data entry in the ordered set where dataCollectionId = &63;. | public DataEntry fetchByDataCollectionId_First(
long dataCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<DataEntry>
orderByComparator); | [
"public DataEntry findByDataCollectionId_First(\n\t\t\tlong dataCollectionId,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchDataEntryException;",
"public DataEntry fetchByUuid_C_First(\n\t\tString uuid, long companyId,\n\t\tcom.liferay.portal.kern... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compare two DocumentPair objects | public int compareTo(DocumentPair other) {
return (this.jsDiv - other.jsDiv);
} | [
"@Override\r\n public boolean equals(Object obj) {\r\n\r\n if (obj instanceof DocumentPair) {\r\n DocumentPair other = (DocumentPair) obj;\r\n return ((this.doc1.equals(other.doc1) && this.doc2.equals(other.doc2))\r\n || (this.doc1.equals(other.doc2) && (this.doc2.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |