query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Clears the value of the '_2420BREF02OperatingPhysicianSecondaryIdentifier' field | public net.explorys.samhat.z12.r837.X837Ins_2420B_REF_OperatingPhysicianSecondaryIdentification.Builder clear2420BREF02OperatingPhysicianSecondaryIdentifier$1() {
_2420BREF02OperatingPhysicianSecondaryIdentifier = null;
fieldSetFlags()[1] = false;
return this;
} | [
"public void set2420BREF02OperatingPhysicianSecondaryIdentifier$1(java.lang.CharSequence value) {\n this._2420BREF02OperatingPhysicianSecondaryIdentifier = value;\n }",
"public java.lang.CharSequence get2420BREF02OperatingPhysicianSecondaryIdentifier$1() {\n return _2420BREF02OperatingPhysicianSecondaryIde... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
constructs a view model by holding a model | public ViewModel(IModel model) {
this.model = model;
} | [
"public View makeView(Model model, String viewType);",
"public View(Application application, M model) {\n this.application = application;\n\n presenter = createPresenter(model);\n }",
"Model createModel();",
"@Override\n public <T extends ViewModel> T create(Class<T> modelClass) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get word pair grouping order offset for the specified slave (03). This sets specifies the grouping order of word pairs received from registers. When cleared to 0, bytes from register addresses 0 and 1, 2 and 3, etc (even, then odd register addresses) are paired to form a word. When set to 1, bytes from register address... | public boolean getSlaveWordGroupOffset(byte num) {
if (num > 3) {
return false;
}
buffer[0] = (byte) I2Cdev.readBit(MPU6050_Registers.MPU6050_RA_I2C_SLV0_CTRL + num * 3, MPU6050_Registers.MPU6050_I2C_SLV_GRP_BIT);
return buffer[0] == 1;
} | [
"public final byte getMiddleGroup()\r\n\t{\r\n\t\treturn (byte) (address >>> 8 & 0x07);\r\n\t}",
"public static int offsetBits_group() {\n return 24;\n }",
"public static int offset_group() {\n return (24 / 8);\n }",
"public final void rule__PeriodicProcess__Group__3__Impl() throws Recogni... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests the shuffle method | @Test
public void shuffle() {
} | [
"@Test\n void shuffleTest(){\n Deck weapons = Parser.createWeapons();\n Deck shuffledWeapons = Parser.createWeapons();\n shuffledWeapons.shuffle();\n assertEquals(weapons.size(), shuffledWeapons.size());\n }",
"public boolean shuffleNeeded();",
"@Test\n public void testShuff... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Mark the shortest path from source to target, Pre: this.run() is already executed. | public static void markPath(Cell target) {
Cell c = target;
Stack<Cell> stack = new Stack<>();
stack.push(c);
while (!c.equals(first)) {
c = previous.get(c);
stack.push(c);
}
for (Cell t : stack) {
t.setMarked(true);
}
// TODO Implement me!
// Hint: you should ... | [
"public static void shortestPath(Person a, Person b){\r\n\t\t/*Nishanth*/\r\n\t}",
"@Override\r\n public void execute() {\r\n if (newSource != null) {\r\n edge.setSource(newSource);\r\n } else if (newTarget != null) {\r\n edge.setTarget(newTarget);\r\n }\r\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the value of templDesc | public abstract String getTemplDesc(); | [
"public String getDescTemplate()\n {\n return m_sDescTemplate;\n }",
"public String getTemplateData();",
"java.lang.String getDesc();",
"public abstract void setTemplDesc(String templDesc);",
"public String getRtypDesc() {\r\n return (String)getAttributeInternal(RTYPDESC);\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'originating_ip_address' field has been set | public boolean hasOriginatingIpAddress() {
return fieldSetFlags()[3];
} | [
"public boolean isSetIp() {\n return this.ip != null;\n }",
"public void setOriginatingIpAddress(java.lang.CharSequence value) {\n this.originating_ip_address = value;\n }",
"public boolean isSetIPAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .BlitzMessage.UserProfile profiles = 2; | com.blitzhere.BlitzMessage.UserProfiles.UserProfileOrBuilder getProfilesOrBuilder(
int index); | [
"com.google.protobuf2.Any getProfile();",
"com.blitzhere.BlitzMessage.UserProfiles.UserProfile getProfiles(int index);",
"public com.blitzhere.BlitzMessage.UserProfiles.UserProfileOrBuilder getProfilesOrBuilder(\n int index) {\n if (profilesBuilder_ == null) {\n return profiles_.get(ind... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Rolls the backup files, adding one to the index of each backup file, in the end, there will be a free space on the first index of the backup files, and if the number of backup files is maxBackupCount the oldest one (the one with the end .maxBackupCount.bak) will be discarded. | private static void rollBackupFiles(@Nonnull final Path path, @Nonnegative final long maxBackupCount) throws IOException {
checkArgumentNotNull(path, "The path to the file cannot be null.");
checkArgument(java.nio.file.Files.exists(path) && !java.nio.file.Files.isDirectory(path),
"The provided path is referring... | [
"public void sizeRollover()\r\n\t{\r\n\t\tif (ROLLMODEL1.equals(this.getRolloverModel()))\r\n\t\t{\r\n\t\t\trollingIndex = rollingIndex + 1;\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tsetFile(fileName, true, bufferedIO, bufferSize);// Creates new file with new date stamp\r\n\t\t\t} catch (IOException e)\r\n\t\t\t{\r\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Draws the bingo cell on the provided canvas by using a helper class to wrap the text properly given the text and text size. Which paint to use is decided by whether or not it is a golden word and whether or not the cell is selected. | protected void draw(Canvas c) {
Paint frame = new Paint();
if (selected) {
frame.setColor(Color.GREEN);
p.setColor(Color.BLACK);
if (word.equals(BingoView.getGoldenWord())) {
p.setFakeBoldText(true);
p.setColor(Color.MAGENTA);
}
} else {
if (word.equals(BingoView.getGoldenWord())) {
fr... | [
"private void drawStrings(Canvas canvas)\n\t{\n\t\tPaint dark = new Paint();\n\t\tdark.setARGB(255, 15, 74, 0);\n\t\tdark.setTextAlign(Paint.Align.CENTER);\n\t\tfloat cellWidth = (Math.min(getMeasuredHeight(), getMeasuredWidth()) - PADDING);\n\t\tcellWidth = cellWidth/(float)_height;\n\t\tdark.setTextSize(cellWidth... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__NbRow__Group__1" $ANTLR start "rule__NbRow__Group__1__Impl" InternalCsv.g:1554:1: rule__NbRow__Group__1__Impl : ( 'nbrow' ) ; | public final void rule__NbRow__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalCsv.g:1558:1: ( ( 'nbrow' ) )
// InternalCsv.g:1559:1: ( 'nbrow' )
{
// InternalCsv.g:1559:1: ( 'nbrow' )
... | [
"public final void rule__NbRow__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:1573:1: ( rule__NbRow__Group__2__Impl )\n // InternalCsv.g:1574:2: rule__NbRow__Group__2__Impl\n {\n push... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the next page slot | public Integer getNextPageSlot() {
return nextPageSlot;
} | [
"public int getNextPage()\n {\n if (nextPage <= nbrPages)\n {\n return nextPage;\n }\n else\n {\n return 0;\n } \n }",
"int getNextSlot();",
"public ItemStack getNextPageItem() {\n return nextPageItem;\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Return True if the target supports Heliumalso known as the MProfile Vector Extension. | public boolean supportsHeliumExtension() {
return isArm() && TargetArch.ARMV8_1M_MAIN == getArch();
} | [
"boolean isFeatureSupported(String feature);",
"boolean hasHasFeature();",
"boolean hasFeaturesUsed();",
"public boolean isExtension(FeatureModel featureModel) throws OperationNotSupportedException, FMReasoningException {\n\t\tthrow new OperationNotSupportedException(\"Reasoning Operation Not Supported\");\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get part from key. | public PartBase getPart(String key) {
return parts.get(key);
} | [
"public String getUserPart(String key);",
"String get(int partitionID, String key);",
"java.lang.String getKey2();",
"V get(T key, K subkey);",
"private String splitAndGetField(String line, String key) {\r\n\t\tString[] tmps = line.substring(line.indexOf(key) + key.length()).split(\r\n\t\t\t\t\" \");\r\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ensures that no blank spaces are shown by making sure the xOffset and yOffset is never outside of the dimensions of the world. | public void checkBlankSpace(){
if(xOffset < 0){
xOffset = 0;
}else if(xOffset > handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth()){
xOffset = handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth();
}
if(yOffset < -50){
yOffset = -50;
cameraStop = true;
}else if(yO... | [
"public void checkBlankSpace(){\n\t\tif(xOffset < 0){\n\t\t\txOffset = 0;\n\t\t}else if(xOffset > handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth()){\n\t\t\txOffset = handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth();\n\t\t}\n\t\t\n\t\tif(yOffset < 0){\n\t\t\tyOffset = 0;\n\t\t}e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column blog.comment_Count | public void setCommentCount(Integer commentCount) {
this.commentCount = commentCount;
} | [
"public void setComment_count(Integer comment_count) {\n this.comment_count = comment_count;\n }",
"private void setCommentsCount(int value) {\n \n commentsCount_ = value;\n }",
"public void setCommentCount(Long commentCount) {\n this.commentCount = commentCount;\n }",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ruft den Wert der leagueIdEigenschaft ab. | public int getLeagueId() {
return leagueId;
} | [
"@Override\n public long getLeagueId() {\n return _leagueDay.getLeagueId();\n }",
"public java.lang.Long getLeagueId() {\n return leagueId;\n }",
"public java.lang.Long getLeagueId() {\n return leagueId;\n }",
"@Override\n public long getLeagueDayId() {\n return _leagueDay.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
builds commandSequences and dependentSpaces, if owner is not null, adds the move to the owner's list of moves | public MovePattern(ChessPiece owner){
this.owner= owner;
commandSequences = new ArrayList< MoveSequence>();
dependentSpaces= new Stack<ChessSpace>();
if(owner != null)
owner.addMoves(this);
} | [
"protected final void addCommandSequence(ChessSpace target, ChessSpace...liftPlaceSequence){\n\t\tcommandSequences.add( new MoveSequence(owner, this, target, liftPlaceSequence));\n\t}",
"private void createMoveCommand(Matcher matcher, String direction) {\n\t\tassert(invariant());\n\t\tif(matcher.find()) {\t\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new Pedometer Sensor to monitor user steps | public PedometerSensor() {
steps = 0;
} | [
"DeviceSensor createDeviceSensor();",
"Sensor createSensor();",
"ExternalSensor createExternalSensor();",
"void createSensor(String sensorName) throws DuplicateSensorNameException;",
"@Override\n public SensorManagerFacade createSensors() {\n \treturn new PassiveSensorManager();\n }",
"DeviceActu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the message list view | public ListView getMessageListView() {
return mMessageListView;
} | [
"private void createMessages() {\r\n Log.v(TAG, \"ConvoFrag / createMessages()\");\r\n try {\r\n AMHelper = new AMessageHelper(getActivity());\r\n messageList = AMHelper.selectMessagesByUID(mUID);\r\n }catch(Exception e) {\r\n messageList = new ArrayList<AMessag... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A listener for any signal | public interface SListener {
/**
* This listener calls exit when a signal occurs.
*/
public static SListener EXIT = new SListener() {
public void onSignal(SCtx i) {
System.exit(0);
}
};
/////////////////////////////////////////////////
/**
* The method called when the signal occurs.
* @param c ... | [
"private SignalEvent(Signal signal) {\n this.signal = signal;\n }",
"public void dispatch(EventListener listener) {\n\tif(!(listener instanceof SignalDetectorListener)) return;\n\tif (eventID.equals(ev_SignalDetected)) {\n\t ((SignalDetectorListener)listener).onSignalDetected(this);\n\t} else if (eventID.e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ensure the array is big enough | private void checkSize() {
if (validsIndex >= valids.length) {
// make new arrays
NDFAState[] tempValids = new NDFAState[valids.length+1000];
System.arraycopy(valids, 0, tempValids, 0, valids.length);
// set as the array -- used to skip checkSize()!
valids = tempValids;
}
} | [
"private void checkArraySize()\n {\n String arraySizeError = this.support.getLabel();\n String arraySizeEnd = this.support.getLabel();\n this.support.genMove(\"$t0\", \"$v0\");\n this.support.genComment(\"Jump to array size error if size is invalid\", 2);\n this.support.genCo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the bg color. | public Texture getBgColor () {
return this.bgColor;
} | [
"public final String getBgColor() {\n\t\treturn bgColor;\n\t}",
"public String getBgColor() {\n\t\treturn bgColor;\n\t}",
"public String bgColor() {\n String aColorString = (String)valueForBinding( \"bgcolor\" );\n if ( aColorString == null ) {\n aColorString = \"#ffffff\";\n }\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retorna a informacao se a Atividada ha ou nao Itens pendentes. | public boolean hasPendencias() {
for (Atividade atividade : associacao.getAtividades()) {
if (atividade != null) {
if (atividade.contaItensPendentes() > 0) {
return true;
}
}
}
return false;
} | [
"public abstract boolean hasOtaNotification();",
"boolean hasNeedsPiiTosAcceptance();",
"@Override\n public String getPeopleStatusAttending() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"getPeopleStatusAttending\");\n }\n\n List<ConnectathonParticipant> listOfCP = null;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Deleting a responder | public void deleteResponder(long responder_id) {
SQLiteDatabase db = this.getWritableDatabase();
db.delete(RESPONDERS_TABLE_NAME, KEY_ID + " = ?",
new String[] { String.valueOf(responder_id) });
} | [
"public static base_response delete(nitro_service client, responderpolicy resource) throws Exception {\n\t\tresponderpolicy deleteresource = new responderpolicy();\n\t\tdeleteresource.name = resource.name;\n\t\treturn deleteresource.delete_resource(client);\n\t}",
"public static base_response delete(nitro_service... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the connection thread name. The thread name represents the name of the thread in which the connection was created. | public void setThreadName(String name) {
threadName = name;
} | [
"public void setNameThread(String nameThread) {\n this.nameThread = nameThread;\n }",
"void setThreadId(String string)\n {\n this.threadName = string;\n }",
"@NonNull\n public String getThreadName() {\n return threadName;\n }",
"public String getThreadName() {\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ InternalWrapperContext returns the user data context that we are wrapping | @Override
public Context getInternalUserContext()
{
return context;
} | [
"public UserContext getUserContext();",
"public UserContext getUserContext() {\n return userContext;\n }",
"public ARServerUser getContext() { return context; }",
"public interface Context\n{\n\t/**\n\t * Gets the Context instance associated with the current call.\n\t */\n\tpublic static Context get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
testing equivalence classes in classify method equivalence classes are all classifications | @Test
public void classifyTest(){
Classification[] expectedClass = {Classification.First,Classification.UpperSecond,Classification.LowerSecond,Classification.Third,Classification.Fail};
int[] pointGrades = {3,6,10,13,18};
for(int i=0;i<pointGrades.length;i++)
{
assertEquals(expectedClass[i],new PointG... | [
"boolean classify()\n throws ClassificationException;",
"abstract String classify(Instance inst);",
"final static void determineEquivalenceClasses(Automaton automaton,\n\t\t\tBinaryMatrix equivs) {\n\t\tboolean changed = true;\n\t\tint size = automaton.nStates();\n\n\t\twhile (changed) {\n\t\t\tchang... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Performs the action run method which inturn refresh the watch list data for the index. | public void run()
{
debug("PopulateWatchListTrigger::run() - Index is [" + this.index + "] text is [" + this.text + "]");
this.refreshWatchListData(this.index);
} | [
"public RefreshResponse refreshIndex();",
"public void run()\r\n {\r\n debug(\"LoadHistoricData::run() - calling WatchListTableModule.loadHistoricData(\" + index + \")\");\r\n this.loadHistoricData(index);\r\n this.cancel();\r\n }",
"public void refresh() {\n getIndexOperations().ref... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test purge session history. | @Test
public void testPurgeSessionHistory() {
final Calendar calendar = configureTimeService();
calendar.add(Calendar.DATE, -THIRTY_DAY_HISTORY);
final SettingValue maxHistory = context.mock(SettingValue.class, "maxHistory");
final SettingValue batchSize = context.mock(SettingValue.class, "batchSize");
final... | [
"@Test @Disabled(\"Only one at a time\")\n public void testDeleteSession() {\n LOG.entering(CLASS, \"testDeleteSession\");\n try{\n String sessionId = MarionetteUtil.parseJsonObject(POST(getUri(\"newSession\"), \"\").body()).getString(\"session\");\n String result = DELETE(get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the natural logarithm of a double positive value. Not guarantees on accuracy or method are provided. Practical testing seems to indicate an absolute accuracy of 1E13 for a Special cases: log(NaN) returns NaN log(a); a log(Double.POSITIVE_INFINITY) returns Double.POSITIVE_INFINITY. log(0) returns Double.NEGATIVE... | public static double log(double a){
// migrated from jWMMG - the origin of the algorithm is not known.
if (Double.isNaN(a) || a < 0) {
return Double.NaN;
} else if (a == Double.POSITIVE_INFINITY) {
return Double.POSITIVE_INFINITY;
} else if (a == 0... | [
"public static native double logAbs(double x) ;",
"public double logZero(double x);",
"static double log_of(double x) {\n if(x >= 1 && x <= 1000)\n return logs(x,1,0,1000,3,0.001);\n System.out.println(\"Invalid number\");\n return 0;\n }",
"public final double lnToLog(double so... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to create a string with the alphabet with lowercase letters | static String generateAlphabetLC(){
for (int i = 97; i <= 122; i++){
alphabetLowerCase = alphabetLowerCase + (char) i;
}
return alphabetLowerCase;
} | [
"public static char getRandomLowerCaseLetter(){return (char)('a'+Math.random()*('z'-'a'+1));}",
"public static char getRandomLowerCaseLetter() \n\t {\n\t return getRandomCharacter('a', 'z');\n\t }",
"public static char getRandomLowerCaseLetter(){\n\t\treturn getRandomCharacter('a','z');\n\t}",
"private s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes an item from a collection, if present, and notifies observers about it. If the item is not found, observers are not notified. | public static <TItem, TObserver> boolean removeWithCheckAndNotify(
Collection<TItem> collection,
TItem item,
Iterable<TObserver> observers,
BiConsumer<TObserver, TItem> listeningMethod) {
boolean removed = removeWithCheck(collection, item);
if (removed)
notifyObservers(observers, listeningMethod, ite... | [
"public void itemRemoved(E item);",
"public void removeItem(T item);",
"public void itemRemoved(ItemRelation relation, DefaultItem item);",
"void itemRemoved(final Item theItem);",
"public static <T> boolean removeWithCheck(Collection<T> collection, T item) {\n\t\tif (collection.contains(item)) {\n\t\t\tcol... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
executes the next move and correctly updates east and north | private Action doNextMove(Action move){
// update east or north
if (move == Action.East){
east++;
} else if (move == Action.West){
east--;
} else if (move == Action.North){
north++;
} else if (move == Action.South){
north--;
}
return move;
} | [
"@Override\n public void act()\n {\n int direction = getDirection();\n Location loc = getLocation();\n int r = loc.getRow();\n int c = loc.getCol();\n if(direction == Location.EAST)\n {\n //if traversing correct memory location\n if(r > 0)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets view passes the control of the view to the controller. It also sets the features of the view as well as the key board features. | public void setView(IView v) {
view = v;
view.setFeatures(this);
setKeyBoard();
} | [
"public void setView(int view)\n {\n m_viewMode = view;\n \n if(view == ViewContainer.ALL)\n {\n removeAll();\n LayoutManager layout = new GridLayout(2,2);\n setLayout(layout);\n add(m_top);\n add(m_perspective);\n add(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Devuelve si el cliente es invitado o no | public boolean esInvitado(){
return Sesion.miCliente().getCliente().getPermisos() == 0;
} | [
"public boolean isIncomingInvitePending();",
"boolean hasFromIdIsReceived();",
"boolean isWaitForServerIdentBeforeSendingClientIdent();",
"public boolean isResponsible(PGridMessage msg) {\n\t\treturn false;\n\t}",
"public boolean isOutgoing();",
"public boolean onInviteResponseReceived(MMXChannel.MMXInvit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
3 6dvks137inq1ybpgc3p9il60e void PQupdate (snode n, int d) | public static Object PQupdate(Object... arg) {
UNSUPPORTED("c01vxogao855zs8fe94tpim9g"); // void
UNSUPPORTED("b1fi3xtkc0mzuq3pimbrumdj3"); // PQupdate (snode* n, int d)
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
UNSUPPORTED("byrcaa9kitj1mfe0we79iao5b"); // (n)->n_val = d;
UNSUPPORTED("az1v3dey64e8mmt571cqcmw5b");... | [
"void updateNode(DNode n);",
"public void update(Packet p, Node node) {\n }",
"private void updateQueue(Node n) throws PackingException, ParallelException {\n _nodesq.remove(n);\r\n Set nnbors = _k==2 ? n.getNNbors() : n.getNborsUnsynchronized(); // used to be n.getNbors();\r\n _nodesq.removeAll(nn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Loads content text for given message. | String loadContentText(SendingMessage sendingMessage); | [
"String loadMessage(String code, Locale locale, String basename);",
"private String loadMessageFromFile() {\n FileInputStream fileInputStream;\n InputStreamReader inputStreamReader;\n BufferedReader bufferedReader;\n StringBuilder builder = new StringBuilder();\n try {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Encodes anything post a column in a CREATE TABLE statement. This is appended after the column name and type. Subclasses may choose to override this method, the default implementation does nothing. | void encodePostColumnCreateTable(final AttributeDescriptor att, final StringBuilder sql); | [
"void encodeColumnType(final String sqlTypeName, final StringBuilder sql);",
"void encodePostCreateTable(final String tableName, final StringBuilder sql);",
"public void createColumn(String column) {\n String type = \"\";\n if (databaseType == 1) {\n type = \"TEXT DEFAULT NULL\";\n } else if (data... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the measure library service. | public MeasureLibraryService getMeasureLibraryService(){
return (MeasureLibraryService) context.getBean("measureLibraryService");
} | [
"public MetricsService getMetricsService() {\n \n MetricsService service = null;\n Object ejb = getEJB(MetricsService.class);\n \n if (ejb != null) {\n if (ejb instanceof mil.nga.bundler.ejb.MetricsService) {\n service = (MetricsService)ejb;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
creates the grammars for the user moves to ask for the signature if the name is known | public static Grammar importGrammarRequestSignatureName (OSFactory factory, String name) {
String grammarName = name;
grammarName = name.replace(" ", "_");
Grammar g = factory.createGrammar("gr_Request_Signature_" + grammarName);
g.addGrammarString(factory.factory.getOWLLiteral("[<gr_Request_Signature_Name... | [
"public static Grammar prefixGrammarRequestSignatureName (OSFactory factory){\n\t\t\tGrammar g = factory.createGrammar(\"gr_Request_Signature_Name\");\n\t\t\tg.addGrammarString(factory.factory.getOWLLiteral(\"[Hello | Hi] [and] (I want [to] | I would like [to] | I'd like [to] | I need [to] | I wanna | What is | Wha... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the run at given index. | public RMXStringRun getRun(int anIndex)
{
int index = anIndex; for(RMXStringRun run=this; run!=null; run=run.getNext(), index--) if(index==0) return run;
throw new ArrayIndexOutOfBoundsException("RMXStringRun.getRun: " + anIndex + " beyond " + getRunCount());
} | [
"public RMXStringRun getRunAt(int anIndex, boolean isInclusive)\n{\n for(RMXStringRun run=this; run!=null; run=run.getNext()) { int end = run.end();\n if(anIndex<end || anIndex==end && (isInclusive || run._next==null))\n return run; }\n throw new ArrayIndexOutOfBoundsException(\"RMXStringRun... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Declare__Group__1" $ANTLR start "rule__Declare__Group__1__Impl" InternalAst.g:2418:1: rule__Declare__Group__1__Impl : ( ( rule__Declare__NodesAssignment_1 ) ) ; | public final void rule__Declare__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalAst.g:2422:1: ( ( ( rule__Declare__NodesAssignment_1 )* ) )
// InternalAst.g:2423:1: ( ( rule__Declare__NodesAssignment_1 )* )
... | [
"public final void rule__Declare__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAst.g:2411:1: ( rule__Declare__Group__1__Impl )\n // InternalAst.g:2412:2: rule__Declare__Group__1__Impl\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Registers one or more extension schemas in the default schema set. This relieves SAML applications from managing their own JAXP schema objects and enables dual compatibility with SAML 1.0 and 1.1 Note that you must insure that any dependencies are specified ahead of the schemas that require them, because they must be l... | public synchronized void registerSchemas(
Map /* <String,EntityResolver> */exts) {
// First merge the new set into the maintained set.
if (exts != null)
extensions.putAll(exts);
/*
* Create a JAXP 1.3 Schema object from an array of open files.
* There is no EntityResolver or ResourceResolver, ... | [
"public void registerCustomSchemas(SchemaRegistry registry);",
"@Override\n public void setXMLSchemas(Object[] schemas) throws XMLPlatformException {\n if ((null == schemas) || (schemas.length == 0)) {\n return;\n }\n if (null == documentBuilderFactory) {\n loadDocume... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
setElementAt Set an element for a loaded DBSubset | public void setElementAt (Object oObj, String sCol, int iRow)
throws ArrayIndexOutOfBoundsException {
int iCol = getColumnPosition(sCol);
if (-1==iCol)
throw new ArrayIndexOutOfBoundsException("DBSubset.setElementAt() column "+sCol+" not found");
else
setElementAt (oObj, iCol, iRow);
... | [
"public T set(int index, T element);",
"void setActiveSubset(Dimension dimension,Subset subset);",
"public E set(int index, E element, boolean allowDependentField);",
"public void setElementAt(Object obj, int index);",
"public abstract void setElem(int bank, int i, int val);",
"void setActiveSubset2(Dimen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the equipped weapon, null if you have nothing equipped | public WeaponItem getWeapon(){
return equippedWeapon;
} | [
"public WeaponType getEquippedWeaponType() {\n return WeaponType.NULL;\n }",
"public Weapon getWeapon(){\r\n\t\treturn getWeapon(getPlayer().getInventory().getHeldItemSlot());\r\n\t}",
"public EquipmentType getWeapon() {\n return weapon;\n }",
"public String getEquippedWeaponName() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper method to convert a collection of nodes to their names | public Collection<String> getNodeNames (Collection<CyNode> nodes) {
return nodes.stream().map(node -> getNodeName(node)).collect(Collectors.toList());
} | [
"java.lang.String getNodes();",
"List<String> getNodeNames()\n {\n return allNodes.values().stream().map(CommunicationLink::getName).collect(Collectors.toList());\n }",
"private static List<String> getElementsAsStrings(\r\n Collection<? extends JsonNode> nodes)\r\n {\r\n List<Strin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a reference to the internal 2D array | public double[][] getArrayReference(){
return this.matrix;
} | [
"public Object[][] getComplexArray2() throws MathLinkException;",
"public int[][] getIntArray2() throws MathLinkException;",
"public double[][] getArrayCopy();",
"public boolean[][] accessNeighborhoodBuffer() {\n\t\treturn this.f2;\n\t}",
"public long[][] getLongArray2() throws MathLinkException;",
"Array... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Assume there are numberOfHearts available for transplantation surgery. Also assume that the hearts are of the same blood type as the persons on the listOfPatients. This method finds a set of persons to be the recepients of these hearts. The method returns a Person array from the listOfPatients array that have the hig... | public Person[] match(int numberOfHearts) {
if(numberOfHearts == 0){
return null;
}
if(numberOfHearts >= listOfPatients.length){
return listOfPatients;
}
Person[] returnList = new Person[numberOfHearts];
int i = 0;
for(int j = 0 ; j < sur... | [
"@Override\n public Matching stableMarriageGaleShapley_hospitaloptimal(Matching marriage) {\n int m = marriage.getHospitalCount();\n int n = marriage.getResidentCount();\n\n ArrayList<ArrayList<Integer>> hospital_preference = marriage.getHospitalPreference();\n ArrayList<ArrayList<Int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
(Segunda prioridad) Procesa el operador exponente | private double procesarOperadorExponente() throws Exception {
double resultado = procesarCoeficientesFuncionesParentesis();
while (!colaDeTokens.isEmpty()) {
switch (colaDeTokens.element().tipoToken) {
case EXPONENTE:
colaDeToken... | [
"public int getExponent();",
"public double exponent ( double p )\n {\n return Math.pow ( result, p );\n }",
"public double exp(double x, double y){\n\n SciCalculator.currValue=Math.pow(x,y);//exponent function \n return SciCalculator.currValue; \n }",
"public String get_exponent... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
RC channel 5 value | @MavlinkFieldInfo(
position = 6,
unitSize = 2,
description = "RC channel 5 value"
)
public final int chan5Raw() {
return this.chan5Raw;
} | [
"@MavlinkFieldInfo(\n position = 2,\n unitSize = 2,\n description = \"RC channel 1 value\"\n )\n public final int chan1Raw() {\n return this.chan1Raw;\n }",
"@MavlinkFieldInfo(\n position = 11,\n unitSize = 2,\n description = \"RC c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new feature dao with the given connection string which is a path to a database file or the path where a new database should be created. | @Inject
public PerstFeatureDao(@Named("connectionString") final String connectionString, final PerstEntityFactory entityFactory) {
super(connectionString);
checkNotNull(entityFactory);
this.entityFactory = entityFactory;
} | [
"Database createDatabase();",
"static protected <T extends DbConnection<T>> T create(String connectionString, CreateDBFn<T> fn) {\r\n try {\r\n T result = fn.create();\r\n\r\n result.connectionString = connectionString;\r\n\r\n result.connection = DriverManager.getConnectio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleEventFunction" $ANTLR start "ruleEventFunction" InternalDsl.g:2595:1: ruleEventFunction returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= '(' ( (lv_funcpara_2_0= ruleParaListItem ) )? otherlv_3= ')' otherlv_4= ';' ) ; | public final EObject ruleEventFunction() throws RecognitionException {
EObject current = null;
Token lv_name_0_0=null;
Token otherlv_1=null;
Token otherlv_3=null;
Token otherlv_4=null;
EObject lv_funcpara_2_0 = null;
enterRule();
try {
//... | [
"public final EObject entryRuleEventFunction() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleEventFunction = null;\n\n\n try {\n // InternalDsl.g:2588:54: (iv_ruleEventFunction= ruleEventFunction EOF )\n // InternalDsl.g:2589:2: iv_ruleEventFun... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the configured cache time, in seconds. | public int getCacheTimeSeconds() {
String key = toKey(CACHE_TIME_SECONDS);
return getInt(key, DEFAULT_CACHE_TIME_SECONDS);
} | [
"public long getCacheTimeDelta() {\n return cacheTimeDelta;\n }",
"public long getCacheExpirationSeconds() {\n return cache.getCacheExpirationSeconds();\n }",
"public Duration getCacheTimeout() {\n return Duration.duration(cacheTimeoutInMs, TimeUnit.MILLISECONDS);\n }",
"private ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get global registry from servlet context. | private Registry registry() {
return (Registry) servlet.getAttribute(ServerContextListener.REGISRTY);
} | [
"Context getGlobal();",
"public interface GlobalRegistry {\n\t/**\n\t * init: loads the globalization profiles.\n\t */\n\tpublic void init();\n\t\n\t/**\n\t * Returns the GlobalIdEntry of a given globalId.\n\t * \n\t * @param globalId the entry id\n\t * @return the global ID value\n\t */\n\tpublic GlobalIdEntry g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the eye patch. | public void setEyePatch(final int eyePatch) {
setValue(eyePatchCombinations, eyePatchFactor, eyePatch);
} | [
"public void setEyePosition(Position eye) {\n\t\tgetWWView().setEyePosition(eye);\n\t\trefresh();\n\t}",
"public void setEyeColor(Color e){\n eye = e;\n\n }",
"public void setEyeColor(String ec) {\r\n\t\t // Add your code here\r\n\t\t this.EyeColor = ec;\r\n\t }",
"public void resetEye() {\n\t\tdet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field needsMoreInput is set (has been assigned a value) and false otherwise | public boolean isSetNeedsMoreInput() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NEEDSMOREINPUT_ISSET_ID);
} | [
"public boolean isSetInput()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(INPUT$0) != 0;\n }\n }",
"public boolean isMore() {\n return totalCount == 0 ? false : (totalCount > myEstimateItem.size() ? true : false)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of orderses where isPayMent = &63; and dishTableId = &63;. | public int countBycurentOrder(int isPayMent, java.lang.String dishTableId)
throws com.liferay.portal.kernel.exception.SystemException; | [
"public irestads.model.Orders fetchBycurentOrder(int isPayMent,\n\t\tjava.lang.String dishTableId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public int getDrinkOrderCount() {\n String sqlCountQuery = \"SELECT * FROM \" + CoffeeShopDatabase.DrinkOrderTable.TABLE_NAME;\n SQLi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests PropertiesPanelgetUMLModelManager() for accuracy. | public void testGetUMLModelManager() {
assertSame("Failed to get the UMLModelManager.", manager, instance.getUMLModelManager());
} | [
"public static void configUMLModelManager() throws Exception {\n // clean the ConfigManager.\n clearConfig();\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"Config.xml\");\n UMLModelManager manager = UMLModelManager.getInstance();\n ProjectConfigurationManager... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
init Is this Person already in the database | private void init(){
String fullName = this.person_.getFirstName()+" "+this.person_.getLastName();
boolean alreadyExists = PersonModel.exists(fullName);
if(alreadyExists == true){
} else {
//need to create person
PersonModel pm = new PersonModel(fullName);
pm.save();
}
} | [
"private void loadExistingPerson() {\r\n\r\n\t\tSystem.out.println(\"Start Load existing Patient...\");\r\n\r\n\t\ttry {\r\n\t\t\tIPerson p1 = new Person(\"admin\", new Role(Roles.ADMINISTRATOR,\r\n\t\t\t\t\t\"Hauptadministrator\"), BCrypt.hashpw(\"admin\", BCrypt\r\n\t\t\t\t\t.gensalt()), \"te@te.te\", \"Vorname\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indicates whether this frame is a company data related frame. | public abstract boolean isCompanyFrame(); | [
"public boolean isCompanyFrame() {\n return true;\n }",
"public boolean isSetCompany() {\n return this.company != null;\n }",
"public boolean isSetCompanyBaseData()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the node representing the 'do' part of the choose rule. | public ASTNode getDoRule() {
return (ASTNode)getChildNode(ChooseRulePlugin.DO_RULE_NAME);
} | [
"public final void mDO() throws RecognitionException {\n try {\n int _type = DO;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // src/main/java/pl/ncdc/differentia/antlr/Java.g:100:4: ( 'do' )\n // src/main/java/pl/ncdc/differentia/antlr/Java.g:100:6: 'do'\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a list of Search Patterns for finding keywords TO DO: Merge with synonym method in other files | protected ArrayList<Pattern> keywordsToPatterns(ArrayList<String> keywords){
ArrayList<Pattern> keywordPatterns = new ArrayList<Pattern>();
//update keywords variable
for(int i = 0 ; i < keywords.size() ; i++ ){
keywordPatterns.add(Pattern.compile(".*(" + keywords.get(i) + ... | [
"Keywords createKeywords();",
"public void generateStopWordSynonyms()\r\n\t{\r\n\t\t//Read the stop list\r\n\t\tSet<String> stopList = StopList.read();\r\n\t\t//Process classes\r\n\t\tVector<String> nm = new Vector<String>(classNames.keySet());\r\n\t\tfor(String n: nm)\r\n\t\t{\r\n\t\t\tif(StringParser.isFormula(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a collider from the list of colliders | public void removeCollider(Collider collider) {
mColliders.remove(collider);
} | [
"@SuppressWarnings(\"WeakerAccess\")\n public void remove(RailCollider collider)\n {\n for (int i = 0; i < size; i++)\n {\n if (colliders[i].equals(collider))\n {\n System.arraycopy(colliders, i + 1, colliders, i, size-- - i);\n return;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculates the distance between two vectors provided by argument vector1 and vector2. A MetricException is thrown, if the dimensionalities of the two vectors differ. | public double distance(DoubleMatrix1D vector1, DoubleMatrix1D vector2) throws MetricException; | [
"public double distance(double[] vector1, double[] vector2) throws MetricException;",
"public double distance(DoubleMatrix1D vector1, double[] vector2) throws MetricException;",
"public double distance(double[] vector1, DoubleMatrix1D vector2) throws MetricException;",
"public static double calculateDistance(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Reduce Removes redundant nodes from the subtree, and returns a reduced subtree. | public RegexNode Reduce()
{
RegexNode n;
switch (Type())
{
case Alternate:
n = ReduceAlternation();
break;
case Concatenate:
n = ReduceConcatenation();
break;
case Loop:
case Lazyloop:
n = ReduceRep();
break;
case Group:
n = ReduceGroup();
break;
case Set:
... | [
"private List<Term> reduce() {\n List<Term> simplifyTerms = new ArrayList<>();\n\n Set<Integer> removeTerms = new HashSet<Integer>();\n for (int i = 0; i < terms.size(); i ++){\n Term t1 = terms.get(i);\n if (!removeTerms.contains(i)) {\n for (int j = i+1; j... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the "MI_RangeElementDescription" element | public org.isotc211.x2005.gmi.MIRangeElementDescriptionType getMIRangeElementDescription()
{
synchronized (monitor())
{
check_orphaned();
org.isotc211.x2005.gmi.MIRangeElementDescriptionType target = null;
target = (org.isotc211.x2005.gmi.MIRangeElementDescription... | [
"public void setMIRangeElementDescription(org.isotc211.x2005.gmi.MIRangeElementDescriptionType miRangeElementDescription)\n {\n generatedSetterHelperImpl(miRangeElementDescription, MIRANGEELEMENTDESCRIPTION$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Consumes the next token and returns it. Will return a never ending stream of TokenType.END_OF_FILE at the end of the file so callers don't have to check for EOF explicitly. Tokenizing is contextual. nextToken() will never return a regular expression literal. | private Token nextToken() {
Token token = scanner.nextToken();
lastSourcePosition = token.location.end;
return token;
} | [
"public Token nextToken() {\n\t\tif (token != null && token.getType() == TokenType.EOF) {\n\t\t\tthrow new LexerException(\n\t\t\t\t\t\"The end of file. No next token to generate.\");\n\t\t}\n\n\t\ttry {\n\t\t\tif (state == LexerState.BASIC) {\n\t\t\t\tbasicNext();\n\t\t\t} else {\n\t\t\t\textendedNext();\n\t\t\t}\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Default constructor. Loads the Spanish NER Models | public NEREsFinder()
{
// allows to load the default Spanish named entity HashMap
publicObjects = new PublicObjects();
// loading Spanish models
nerEsModelsLoader = new NEREsModelsLoader();
esModelsList = nerEsModelsLoader.getEsModelsList();
} | [
"public SpanishEnglish() {\n super(\"esen.txt\");\n }",
"public NaturalLanguageClassifier() {\n\t\tsuper(\"natural_language_classifier\");\n\t\tsetEndPoint(URL);\n\t}",
"public LanguageModel(){}",
"public Translator()\n {\n english = new DictionaryTree();\n french = new DictionaryTr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Hamcrest describes some of its matchers in a way that results in an awkward English sentence. This attempts to fix them. | private String describe(Matcher<?> matcher) {
// TODO: This is going to get very unwiedly and should eventually be
// pulled into a ruleset, or at the very least a separate class.
String description = matcher.toString();
// "is" is a prefix added by the Is matcher. It results in awkward... | [
"private void commonGermanAsserts(HunspellRule rule, JLanguageTool lt) throws IOException {\n assertEquals(0, rule.match(lt.getAnalyzedSentence(\"Der Waschmaschinentestversuch\")).length); // compound\n assertEquals(0, rule.match(lt.getAnalyzedSentence(\"Der Waschmaschinentest-Versuch\")).length); // compou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a row facet to the view at index "index". Handles the facet already being in the view (does a pivot). The facet being added should currently have a fixed facet value (unless it's already part of the view), which will be removed from cubeGrid.fixedFacetValues. methodType action | public native void addRowFacet(String facetId, int index) /*-{
var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();
self.addRowFacet(facetId, index);
}-*/; | [
"public native void addFacet(String facetId, boolean intoRows, int index) /*-{\r\n var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();\r\n self.addFacet(facetId, intoRows, index);\r\n }-*/;",
"public native void addColumnFacet(String facetId, int index) /*-{\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for the calculated attribute EmpExists. | public Boolean getEmpExistsAttr() {
return (Boolean) getAttributeInternal(EMPEXISTSATTR);
} | [
"public String getEmpStatusAttr() {\n return getEmpExistsAttr() == null ? (String) getAttributeInternal(EMPSTATUSATTR) : \n (getEmpExistsAttr() ? \"Employee \" + getFirstNameAttr() + \" is on our list\" \n : \"Employee \" + getFirstNameAttr() + \" is new\");\n }",
"public Number ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
See shortestCycleWithPrefix() for documentation. The only difference is that tryAllPrefixExtensions() is invoked with a guarantee that the given path, prefix, does not yet consist of all nodes so we must try to extend it. | private PathAndLen tryAllPrefixExtensions(Graph graph, Path prefix, int prefixDistance) throws WcbcException {
if (graph.getNumNodes() == prefix.getLength()) {
throw new WcbcException("tryAllPrefixExtensions() received a path that includes every node");
}
String lastNode = prefix.end();
Path bestCycle = null... | [
"private PathAndLen shortestCycleWithPrefix(Graph graph, Path prefix, int prefixDistance) throws WcbcException {\n\t\tif (prefix.getLength() < graph.getNumNodes()) {\n\t\t\t// At least one more node must be added to the path. For each\n\t\t\t// node N that can be reached from the final node of prefix, if N\n\t\t\t/... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Subsidiary method invoked in onBindViewHolder responsible for setting three different colors to different items backdrops. | private void setItemBackdrop(ViewHolder holder, int position) {
TypedValue typedValue = new TypedValue();
Resources.Theme theme = mContext.getTheme();
if (position % 3 == 0) {
theme.resolveAttribute(R.attr.item_one, typedValue, true);
@ColorInt int color = typedValue.da... | [
"private void setBackgroundRed(int position) {\n AudioItemAdapter.longClickItemIdx = position;\n audioRV.getAdapter().notifyItemChanged(position);\n }",
"private void initializeBackgroundDrawables() {\n int currentBackgroundID = 0;\n\n for(int i = 0; i < getCount(); i++) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A service to manage the database instance. The service defines a single method shutdown() to shut down the database instance used by the current driver. | public interface DatabaseInstanceManager extends Service {
/**
* Immediately shutdown the current database instance.
* This current user should be a member of the "dba" group
* or an exception will be thrown.
*
* @throws XMLDBException
*/
public void shutdown() throws XMLDBException;
/**
* Shutdow... | [
"public static synchronized DatabaseService getInstance() {\n\t\tif (service == null) {\n\t\t\tservice = new DatabaseService();\n\t\t}\n\t\treturn service;\n\t}",
"private DatabaseConnectionService() {\n ds = new HikariDataSource();\n ds.setMaximumPoolSize(20);\n ConfigProperties configProper... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The Snow device capacity preference for this job, specified at job creation. In US regions, you can choose between 50 TB and 80 TB Snowballs. All other regions use 80 TB capacity Snowballs. For more information, see " (Snow Family Devices and Capacity) in the Snowcone User Guide or " (Snow Family Devices and Capacity) ... | public void setSnowballCapacityPreference(String snowballCapacityPreference) {
this.snowballCapacityPreference = snowballCapacityPreference;
} | [
"public String getSnowballCapacityPreference() {\n return this.snowballCapacityPreference;\n }",
"public void setSnowballCapacityPreference(SnowballCapacity snowballCapacityPreference) {\n withSnowballCapacityPreference(snowballCapacityPreference);\n }",
"public JobMetadata withSnowballCapac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Grows children of all supported frequent patterns in a graph. | PatternEmbeddingsMap growPatterns(
int[] graph,
PatternEmbeddingsMap parentMap,
List<int[]> frequentPatterns,
List<int[]> rightmostPaths,
boolean uncompressEmbeddings,
List<int[]> compressedPatterns
); | [
"private void generateChildPatterns(GraphDatabaseService db, Node dataNode, Map<String, Object> currentNode, String[] label, int depth, Map<Integer, Map<String, PatternCount>> matchDictionary) {\n for (int i = 0; i < matchDictionary.size(); i++) {\n\n int counter = 0;\n // Order by matc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the command executor, to execute system commands with | protected CommandExecutor getCommandExecutor() {
return mExecutor;
} | [
"CommandExecutor getCommandExecutor();",
"public final CommandExecutor getExecutor() {\n return executor;\n }",
"public static RemoteCommandExecutor getRemoteCommandExecutor(){\r\n return new RemoteCommandExecutor();\r\n }",
"Executor getExecutor();",
"public SubCommandExecutor getExecut... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
From . Returns the number of bytes in a UTF8 character based on the bit pattern of the supplied byte. The only valid values are 1, 2 3 or 4. If the byte has an invalid bit pattern an IllegalArgumentException is thrown. | private static @IntVal({1, 2, 3, 4}) int getByteCount(byte b) throws IllegalArgumentException {
if ((b >= 0)) return 1; // Pattern is 0xxxxxxx.
if ((b >= (byte) 0b11000000) && (b <= (byte) 0b11011111)) return 2; // Pattern is 110xxxxx.
if ((b >= (byte) 0b11100000) && (b <= (byte) 0b11101111)) return 3; // P... | [
"private static int utf8EncodedLength(int arg) {\n if (arg < MINIMUM_TWO_BYTE_VALUE) {\n return 1;\n }\n else if (arg < MINIMUM_THREE_BYTE_VALUE) {\n return 2;\n }\n else if (arg < MINIMUM_FOUR_BYTE_VALUE) {\n return 3;\n }\n else if (arg < MINIMUM_FIVE_BYTE_VALUE) {\n retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column perms.perms_t_staff.cl_degrees_id | public void setClDegreesId(String clDegreesId) {
this.clDegreesId = clDegreesId;
} | [
"public String getClDegreesId() {\r\n\t\treturn clDegreesId;\r\n\t}",
"private void setDegreeNum(double deg) {\r\n degreeNum = deg % 360.0;\r\n }",
"protected void setDegreeProgram(Degree deg)\n {\n this.degree = deg;\n }",
"public abstract void setCod_actividad(java.lang.Long newCod_ac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Goes through the list of Pokemon in the given text file and counts the number of occurrences for each type. | private void countAllTypes() throws FileNotFoundException {
String pathname = "Pokemon_" + game + ".txt";
File myFile = new File(pathname);
Scanner scanner = new Scanner(myFile);
while (scanner.hasNextLine()) {
String nextLine = scanner.nextLine();
String type = n... | [
"private static Map<String, Integer> getWordCount(String filename)\r\n\t{\r\n\t\t// Create the Map that you will eventually return and call it wordCount\r\n\t\tMap<String, Integer> wordCount = new HashMap<String, Integer>();\r\n\r\n\t\t// Init file input objects\r\n\t\tFileInputStream fis = null;\r\n\t\tScanner sca... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method returning the Account URL for the logged in user. This is created by appending the account number to a base URL. This is valid in most order requests | public String getAccountUrl() {
return "https://api.robinhood.com/accounts/" + this.accountNumber + "/";
} | [
"public String getAccountUrl() {\n return client.getAccountUrl();\n }",
"public static URL getUrlForGetAccInfo()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/account\";\r\n return str2url( strUrl );\r\n }",
"public URL getAccountUrl() {\n try {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method uses predefined default values for the following parameters: java.lang.Object parameter categoryLabels is set to com4j.Variant.getMissing()java.lang.Object parameter replace is set to com4j.Variant.getMissing()java.lang.Object parameter newSeries is set to com4j.Variant.getMissing() Therefore, using this me... | @VTID(13)
@UseDefaultValues(paramIndexMapping = {0, 1, 5}, optParamIndex = {2, 3, 4}, javaType = {java.lang.Object.class, java.lang.Object.class, java.lang.Object.class}, nativeType = {NativeType.VARIANT, NativeType.VARIANT, NativeType.VARIANT}, variantType = {Variant.Type.VT_ERROR, Variant.Type.VT_ERROR, Variant.Typ... | [
"@VTID(13)\n @UseDefaultValues(paramIndexMapping = {0, 1, 2, 5}, optParamIndex = {3, 4}, javaType = {java.lang.Object.class, java.lang.Object.class}, nativeType = {NativeType.VARIANT, NativeType.VARIANT}, variantType = {Variant.Type.VT_ERROR, Variant.Type.VT_ERROR}, literal = {\"80020004\", \"80020004\"})\n @Retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the first cpu is executing process from the first stream | private boolean cpu1ProcessesFirstStreamProcess() {
System.out.println("second cpu is processing process from stream " + processQueue.getCpus().get(0).getProcessStreamID());
return processQueue.getCpus().get(0).getProcessStreamID() == 1;
} | [
"private boolean cpu2isFree() {\n return processQueue.getCpus().get(1).getProcessStreamID() == -1;\n }",
"boolean hasImmediateStartNeeded();",
"public boolean hasQueuedProcesses() { return queue.hasNext(); }",
"private void tryAddToSecondCPU(Process process) {\n if (cpu2isFree()) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructeur creant un dtype de nom "operateur polymorphe" | public POLYMORPHEOP() {
super("operateur polymorphe", 1);
} | [
"int getOperateType();",
"public void setOper(String oper) {\n this.oper = oper;\n }",
"Datatype createDatatype();",
"public String getOper() {\n return oper;\n }",
"IMutationOperatorsFactory getOperatorsFactory();",
"public String getOperTypeName() {\r\n\t\treturn operTypeName;\r\n\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if a list of classes exist and compares each result to whether or not they should exist. If any of them don't match or there is an error at any point, it will set the request as failed with an error message if the reason for failure is known and will throw a ServiceException. | public void checkClassesExistence(final Collection<String> classIds,
final boolean shouldExist) throws ServiceException {
for(String classId : classIds) {
checkClassExistence(classId, shouldExist);
}
} | [
"public ArrayList<ValidationResponse> validServiceClass(ACHFile file) {\n\t\tint numBatches = file.getBatchDetail().size();\n\t\tArrayList<ValidationResponse> errors = new ArrayList<ValidationResponse>();\n\t\tfor(int j = 0; j < numBatches; j++) {\n\t\t\tString serviceCode = file.getBatchDetail().get(j).getCompanyB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the idObjeto value for this Atributo. | public void setIdObjeto(java.lang.String idObjeto) {
this.idObjeto = idObjeto;
} | [
"public void setIdEstatusObjeto(int idEstatusObjeto) {\r\n\t\tthis.idEstatusObjeto = idEstatusObjeto;\r\n\t}",
"public void setIdEstatusObjeto(long idEstatusObjeto) {\r\n\t\tthis.idEstatusObjeto = idEstatusObjeto;\r\n\t}",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column large_class.large_class_id | public void setLargeClassId(Integer largeClassId) {
this.largeClassId = largeClassId;
} | [
"public Integer getLargeClassId() {\n return largeClassId;\n }",
"public void setClassId(Long classId) {\n this.classId = classId;\n }",
"public void setLargeClassName(String largeClassName) {\n this.largeClassName = largeClassName == null ? null : largeClassName.trim();\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This methods populates GridWorld with all of the new Baby Bonks that have been born in the last cycle. It then clears the babiesToAdd array. | private void populateNewBonkBabies() {
if (babiesToAdd == true) {
for (Bonk bBaby : gridWorld.getBonkBabies()) {
gridWorld.addBonk(bBaby);
bonkPopulation++;
}
gridWorld.clearBonkBabies();
babiesToAdd = false;
}
} | [
"private void giveBirthToRabbits() {\n\t\tfor (int i = (rabbitList.size() - 1); i >= 0; i--) {\n\t\t\tRabbitsGrassSimulationAgent rabbit = rabbitList.get(i);\n\t\t\tif (rabbit.isReproducing()) {\n\t\t\t\taddNewRabbit();\n\t\t\t}\n\t\t}\n\t}",
"private void updateBombs() {\r\n\t\tArrayList<Bomb> bombs = craft.getB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getPulkovo19953DegreeGKZone19 method, of class GaussKrugerPulkovo1995. | @Test
public void testPulkovo19953DegreeGKZone19() {
testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone19());
} | [
"@Test\n public void testPulkovo19953DegreeGKZone59() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone59());\n }",
"@Test\n public void testPulkovo19953DegreeGKZone64() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone64());\n }",
"@Test\n public void testPulkovo19953DegreeGKZone61() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
dd failed tests, number of reruns and cleanup to the set of properties in case of on failure scenario (rerun only failed tests) | private void addPropertiesForFailedTests(Properties props) {
//add number of reruns
if (!StringUtils.isEmpty(this.numberOfReruns)) {
props.put("Reruns1", this.numberOfReruns);
}
//add cleanup test
if (!StringUtils.isEmpty(this.cleanupTest)) {
props.put("Cl... | [
"private void addPropertiesForSpecificTests(Properties props){\n int j = 1;\n if(this.rerunSettingsModels != null && !this.rerunSettingsModels.isEmpty()) {\n for (RerunSettingsModel settings : this.rerunSettingsModels) {\n if (settings.getChecked()) {//test is selected\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Hook clients can override to add additional steps after the move of the shape happened. | protected void postMoveShape(IMoveShapeContext context) {
} | [
"protected void preMoveShape(IMoveShapeContext context) {\n \t}",
"protected void afterMove() {\n }",
"protected void internalMove(IMoveShapeContext context) {\n \t\tShape shapeToMove = context.getShape();\n \t\tContainerShape oldContainerShape = context.getSourceContainer();\n \t\tContainerShape newContaine... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
isPlaceOrderButtonClickable method is used to check if "Place Order" button is clickable on the Order page | @Step("Checking if \"Place Order\" button is clickable")
public static boolean isPlaceOrderButtonClickable(){
return isElementClickable(wait, placeOrderButtonLocator,"\"Place Order\" button does not clickable");
} | [
"public boolean isCheckoutButtonPresent() {\n\t\ttry{\n\t\t\tdriver.findElement(By.xpath(\"//android.view.View[@resource-id='\" + checkout + \"']\"));\n\t\t\treturn true;\n\t\t} catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean checkOrderButton() {\n return orderButton.isEnabled();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use Utxo.newBuilder() to construct. | private Utxo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"private Uuid(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private UInitTruck(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"UOp createUOp();",
"private EthereumTxRequest(com.google.protobuf.GeneratedMessageV3.Buil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Appends and returns a new empty "deletedentry" element | public org.purl.atompub.tombstones.x10.DeletedEntryDocument.DeletedEntry addNewDeletedEntry()
{
synchronized (monitor())
{
check_orphaned();
org.purl.atompub.tombstones.x10.DeletedEntryDocument.DeletedEntry target = null;
target = (org.purl.atompub.tombstones.x10.... | [
"org.purl.atompub.tombstones.x10.DeletedEntryDocument.DeletedEntry addNewDeletedEntry();",
"org.purl.atompub.tombstones.x10.DeletedEntryDocument.DeletedEntry getDeletedEntry();",
"public abstract void addEmptyEntry();",
"void setDeletedEntry(org.purl.atompub.tombstones.x10.DeletedEntryDocument.DeletedEntry de... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle a TLB Miss exception. Page translation was not found in TLB, translate Page from inverted Page Table | private void handleTLBMiss(int missedVirtualPage)
{
VMKernel.printDebug("=================================");
VMKernel.printDebug("TLB Miss! Process: " + super.getProcessID() + " On Virtual Page " + missedVirtualPage);
//TLBController.printTLBTable();
//Retrieve Physical transl... | [
"public static TranslationEntry handlePageFault(int pid, int vpn, LoaderForCoff loader)\n {\n printDebug(UThread.currentThread().getName() + \": handleTLB miss exception, page fault: \" + vpn);\n /*\n * Now that pages are being moved to and from memory and disk, you need to ensure that\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes the points from the database. Also notifies the appropriate model listeners. | public static com.ext.portlet.model.Points deletePoints(
com.ext.portlet.model.Points points)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().deletePoints(points);
} | [
"@FXML\n\tpublic void deleteButtonClicked() {\n\t\tObservableList<MyPoint> pointSelected, allPoints;\n\t\tallPoints = tableCoord.getItems();\n\t\tpointSelected = tableCoord.getSelectionModel().getSelectedItems();\n\t\tpointSelected.forEach(allPoints::remove);\n\t}",
"public void deleteCoordinates() {\n thi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the self link relationship children. | protected boolean addSelfLinkRelationshipChildren(ActiveInventoryNode processingNode,
RelationshipList relationshipList) {
if (relationshipList == null) {
LOG.debug(AaiUiMsgs.DEBUG_GENERIC, "No relationships added to parent node = "
+ processingNode.getNodeId() + " because relationshipList is... | [
"public void addChildren(List<Cascade> children){\r\n\t\tthis.children.addAll(children);\r\n\t}",
"private static void addSelfLink(GameDto gameDto) {\n Link selfLink =\n linkTo(methodOn(GameController.class).getGameById(gameDto.get_id())).withSelfRel();\n gameDto.add(selfLink);\n }",
"public Dynam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Exposed SAML metadata property. If true, all assertions received by the SAML provider must be signed. | @JsonProperty("wantAssertionSigned")
@Nullable
abstract Boolean getWantAssertionSigned(); | [
"public static boolean isSigned_infos_metadata() {\n return false;\n }",
"public boolean isSAML() {\n return saml;\n }",
"public boolean isSigned() {\n return signed;\n }",
"public Boolean getIsSelfSigned() {\n return isSelfSigned;\n }",
"public boolean getSigned()\n {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests if a field is persistent. | public boolean isPersistentField(String classPath, String fieldName)
throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError
{
return hasFieldModifier(classPath, fieldName,
(PersistenceModifier.PERSISTENT
| PersistenceModifier... | [
"private boolean isPersistentField(DeployBeanProperty prop) {\n Field field = prop.getField();\n if (field == null) {\n return false;\n }\n int modifiers = field.getModifiers();\n return !(Modifier.isStatic(modifiers) || Modifier.isTransient(modifiers)) && !field.isAnnotationPresent(Transient.cl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |