query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Editar MuestraSuperficie existente en la base de datos | public boolean editarMuestraSuperficie(MuestraSuperficie muestra) {
ContentValues cv = MuestraHelper.crearMuestraSuperficieContentValues(muestra);
return mDb.update(MuestrasDBConstants.MUESTRA_SUPERFICIE_TABLE, cv, MuestrasDBConstants.codigo + "='"
+ muestra.getCodigo() + "'", null) > 0;... | [
"private void editar(){\n EmpleadoLogica cl = new EmpleadoLogica();\n cl.setIdempleado(this.jFTFCodigo.getText());\n cl.setNombre(this.jTFNombre.getText());\n cl.setApellido(this.jTFApellido.getText());\n cl.setTelefono(this.jFTFTelefono.getText());\n cl.setDireccion(this.j... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
No special resource required. The victim is communicating with the target application via a web based UI and not a thick client. The victim's browser security policies allow iFrames. The victim uses a modern browser that supports UI elements like clickable buttons (i.e. not using an old text only browser). The victim h... | @Given("prepare to Attacker tricks victim to load the iFrame overlay page")
public void preattackertricksvictimtoloadtheiframeoverlaypage(){
} | [
"IFRAME createIFRAME();",
"@Test\n public void testEvilOpen() {\n MockPIFrame frame1 = startSession();\n\n // 1. driver issues an \"open\" command\n DriverRequest driverRequest = sendCommand(\"open\", \"blah.html\", \"\");\n // 2. original frame receives open request\n // ... but doesn't reply \"O... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__CompareEqOp__Alternatives" $ANTLR start "rule__ShiftOp__Alternatives" InternalReflex.g:2210:1: rule__ShiftOp__Alternatives : ( ( ( '>>' ) ) | ( ( '<<' ) ) ); | public final void rule__ShiftOp__Alternatives() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalReflex.g:2214:1: ( ( ( '>>' ) ) | ( ( '<<' ) ) )
int alt23=2;
int LA23_0 = input.LA(1);
if ( (LA23_0==67) ) {
... | [
"public final void rule__AstExpressionShift__OperatorAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2912:1: ( ( '... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the descripcionCaracterizacion value for this Caracterizacion. | public java.lang.String getDescripcionCaracterizacion() {
return descripcionCaracterizacion;
} | [
"public void setDescripcionCaracterizacion(java.lang.String descripcionCaracterizacion) {\n this.descripcionCaracterizacion = descripcionCaracterizacion;\n }",
"public java.lang.String getDescripcion(){\n\t\treturn descripcion;\n\t}",
"public String getDescripcion(){\n\t\treturn descripcion;\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the maximum life of the actor. I.e. starting amount of life. | public ActorDef setHealthMax(float maxLife) {
mMaxLife = maxLife;
return this;
} | [
"public void setMaxLife(long max) {\n\t\tmaxLife = max;\n\t}",
"public void setLife(int life) {\n this.life = life;\n if(this.life>1000){\n this.life = 1000;\n }\n }",
"void setMaxLifetime(long maxLifetime);",
"public void setLife(int life) {\n if(life<0){ life = 0; ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Used to check the state of the client instance. | private void checkState() {
if (mIsClosed) {
throw new IllegalStateException("Client instance can't be used after being closed.");
}
} | [
"public boolean isSetClient() {\r\n return this.client != null;\r\n }",
"private void checkStatus() {\n \t\tRpcException rep = null;\n \t\tswitch (connStatus) {\n \t\t\tcase INNITIAL:\n \t\t\t\trep = new RpcException(\"Client not connected.\", RpcException.Type.NOT_CONNECTED, null);\n \t\t\t\tthrow rep;\n \t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
precondition: input string has length > 0 postcondition: returns reversed string s flip("desserts") > "stressed" | public static String flip( String s )
{
int size = s.length();
Latkes t = new Latkes( size );
String retStr = "";
// Push each letter in string
for( int i = 0; i < size; i++ )
{
t.push( s.substring( i, i + 1 ) );
}
// Add every pop to retStr
for( int x = 0; x < size; x++ )
{
retStr = retStr + t.pop(... | [
"public String reverse(String input) {\n \n // if there is no string, send it back\n if (input == null) {\n return input;\n }\n // string to return\n String output = \"\";\n // go from the back of input and put its last character at the front of the new string\n for (int i = input.len... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Builds the URL used to query backend. | public static URL buildUrl(String backendSearchQuery) {
Uri builtUri = Uri.parse(BACKEND_BASE_URL).buildUpon()
.appendPath(backendSearchQuery)
//.appendQueryParameter(PARAM_QUERY, backendSearchQuery)
//.appendQueryParameter(PARAM_SORT, sortBy)
.bui... | [
"public void createURL(){\n\t\t//Concatenate separate portions\n\t\tthis.url = new String(this.base_url + this.query_url + this.keyword);\n\t}",
"public static URL builtConfigURL(Context context) {\n URL url = null;\n basequery=context.getResources().getString(R.string.configBaseQuery);\n Uri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
System.out.println("Sum[" + s + "][" + e + "]=" + (sumSoFar[e] sumSoFar[s])); | private static int sum(int arr[], int s, int e) {
return sumSoFar[e] - sumSoFar[s] + arr[s];
} | [
"protected static void printPairsEqualToSum(int[] arr1, int[] arr2, int sum) {\n\t\t\r\n\t\tint count = 0; \r\n\t \r\n\t\t// creating an arraylist from first array to use the contains() method\r\n\t ArrayList<Integer> as = new ArrayList<Integer>(); \r\n\t \r\n\t // insert all the elements \r\n\t ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test that the no valid font is returned when the entry is missing. | public void testNoFontDefinition() {
FontRegistry fontRegistry = JFaceResources.getFontRegistry();
FontData[] currentTestFonts = PreferenceConverter.getFontDataArray(preferenceStore, MISSING_FONT_ID);
FontData[] bestFont = fontRegistry.filterData(currentTestFonts, Display.getCurrent());
... | [
"public void testGetFont_Default(){\n // regression test for Harmony-1605\n assertEquals(null, w.getFont());\n }",
"public void testBadFirstFontDefinition() {\n FontRegistry fontRegistry = JFaceResources.getFontRegistry();\n FontData[] currentTestFonts = PreferenceConverter.getFontD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleEntitiesFeature" $ANTLR start "entryRulePrimitiveFeature" ../com.mguidi.soa/srcgen/com/mguidi/soa/parser/antlr/internal/InternalSOA.g:884:1: entryRulePrimitiveFeature returns [EObject current=null] : iv_rulePrimitiveFeature= rulePrimitiveFeature EOF ; | public final EObject entryRulePrimitiveFeature() throws RecognitionException {
EObject current = null;
EObject iv_rulePrimitiveFeature = null;
try {
// ../com.mguidi.soa/src-gen/com/mguidi/soa/parser/antlr/internal/InternalSOA.g:885:2: (iv_rulePrimitiveFeature= rulePrimitiveFeatur... | [
"public final void entryRulePrimitiveFeature() throws RecognitionException {\n try {\n // ../com.mguidi.soa.ui/src-gen/com/mguidi/soa/ui/contentassist/antlr/internal/InternalSOA.g:425:1: ( rulePrimitiveFeature EOF )\n // ../com.mguidi.soa.ui/src-gen/com/mguidi/soa/ui/contentassist/antlr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Takes a CommsObject message, and looks to see if there is a mapping and justification mapping, and if so, adds these to the CommitmentStore. If either of the mappings already exist in the CommitmentStore, then nothing is added | private void addMapping(CommsObject co, boolean received) {
// Now handle the mapping that was exchanged in the message
CandidateAlignment localAlignment = null;
if (received) {
localAlignment = opponentsAlignment;
} else {
localAlignment = myAlignment;
}
// First, check that there was even a ... | [
"@Override\n public void map(final ObjectId mapped, final ObjectId original) {\n Vertex commitNode = null;\n try {\n // See if it already exists\n commitNode = getOrAddNode(mapped);\n \n Iterator<Edge> mappedTo = commitNode.getEdges(OUT,\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The SyncAdapter runs on a background thread. To update the UI, onStatusChanged() runs on the UI thread. | @Override
public void run() {
// Create a handle to the account that was created by
// SyncService.CreateSyncAccount(). This will be used to query the system to
// see how the sync status has changed.
Account account = Authe... | [
"@Override\n public void onStatusChanged(int which) {\n getActivity().runOnUiThread(new Runnable() {\n /**\n * The SyncAdapter runs on a background thread. To update the UI, onStatusChanged()\n * runs on the UI thread.\n */\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'FACTS Device'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseFACTSDevice(FACTSDevice object) {
return null;
} | [
"public T caseDevice(Device object) {\n\t\treturn null;\n\t}",
"@Nullable\n @Generated\n @Selector(\"device\")\n public native MLCDevice device();",
"public T caseDeviceComponent(DeviceComponent object) {\n\t\treturn null;\n\t}",
"public T caseDeviceFunction(DeviceFunction object) {\n\t\treturn null;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
applies change comment to page | private void applyComment()
{
Map<String, GWikiArtefakt<?>> map = new HashMap<String, GWikiArtefakt<?>>();
page.collectParts(map);
GWikiArtefakt<?> artefakt = map.get("ChangeComment");
if (artefakt instanceof GWikiChangeCommentArtefakt == false) {
return;
}
GWikiChangeCommentArtefakt co... | [
"void update(Comment comment);",
"private void updateLiveComment(String comment) {\n MainActivity mainActivity = (MainActivity) this.getContext();\n mainActivity.setLiveComment(comment);\n }",
"String getCommentToChange();",
"public void handleComment(HtmlObjects.Comment t)\n {\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function generates random wall position: distance from 10 to 100 and height from 10 to 20 | public static double[] createWall(){
Random random = new Random();
double distance = random.nextDouble()*90+10;
double height = random.nextDouble()*20+10;
double wallPosition[] = new double[2];
wallPosition[0] = distance;
wallPosition[1] = height;
return wallPosit... | [
"@Override\n\tpublic void generate() {\n\t\t// pick position (x,y) with x being random, y being 0\n\t\t// pick position (x,y) with x being random, y being 0\n\t\tint x = randNo(0, width-1) ;\n\t\tint y = randNo(0, height - 1);\n\t\tArrayList<Wall> walls = new ArrayList<Wall>();\n\t\tif (cells.canGo(x, y, 0, 1))\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find dto by patient dto. | public abstract List<ClinicalDocumentDto> findClinicalDocumentDtoByPatientId(Long patientId); | [
"@Override\n @Transactional(readOnly = true)\n public Optional<DoctorantDTO> findOne(Long id) {\n log.debug(\"Request to get Doctorant : {}\", id);\n return doctorantRepository.findById(id)\n .map(doctorantMapper::toDto);\n }",
"@Override\n public Optional<DuLieuBaoCaoDTO> fin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
AES_Init: initialize the tables needed at runtime. Call this function before the (first) key expansion. | public void AES_Init() {
for(int i = 0; i < 256; i++)
AES_Sbox_Inv[AES_Sbox[i]] = i;
for(int i = 0; i < 16; i++)
AES_ShiftRowTab_Inv[AES_ShiftRowTab[i]] = i;
for(int i = 0; i < 128; i++) {
AES_xtime[i] = i << 1;
AES_xtime[128 + i] = (i << 1) ^ 0x1b;
}
} | [
"public abstract void init(Key theKey, byte theMode, byte[] bArray, short bOff,\r\n short bLen) throws CryptoException;",
"public abstract void init(Key theKey, byte theMode) throws CryptoException;",
"private void initKeysVector() throws IOException {\n FileInputStream inputSt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the reference screen width for computing sizes. If reference width is 1280, and screen width is 1280 Then the fontSize paramater will be unaltered when creating a font. If the screen width is 720, the font fontSize will by scaled down to (720 / 1280) of original fontSize. | public void setReferenceScreenWidth(int width) {
referenceScreenWidth = width;
} | [
"public void setScreenWidth(int screenWidth) {\n ScreenWidth = screenWidth;\n }",
"public void setWidth(int w) { fWidth = w; }",
"public void setWidth( int w );",
"void setViewerDesktopWidth(int width);",
"public void setScreenSize(float value) {\n this.screenSize = value;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the element container. | @FxThread
protected @NotNull VBox getElementContainer() {
return notNull(elementContainer);
} | [
"Container getContainer();",
"public Container getContainer();",
"private MElementContainer<? extends MUIElement> getContainer() {\r\n\t\tMElementContainer<? extends MUIElement> outerContainer = (workbenchWindow != null) ? workbenchWindow\r\n\t\t\t\t: application;\r\n\r\n\t\t// see if we can narrow it down to t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
HSV to RGB color conversion H runs from 0 to 360 degrees S and V run from 0 to 100 Ported from the excellent java algorithm by Eugene Vishnevsky at: | public RGB hsvToRgb(int h,int s,int v)
{
int r, g, b;
int i;
int f, p, q, t;
// Make sure our arguments stay in-range
h = Math.max(0, Math.min(360, h));
s = Math.max(0, Math.min(100, s));
v = Math.max(0, Math.min(100, v));
// We accept saturation and... | [
"private int hsvToRgb(float H, float S, float V)\n {\n \n float R, G, B;\n \n H /= 360f;\n S /= 100f;\n V /= 100f;\n \n if (S == 0)\n {\n R = V * 255;\n G = V * 255;\n B = V * 255;\n }\n else\n {\n float var_h = H * 6;\n if (var_h == 6)\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'field947' field. | public void setField947(java.lang.CharSequence value) {
this.field947 = value;
} | [
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField947(java.lang.CharSequence value) {\n validate(fields()[947], value);\n this.field947 = value;\n fieldSetFlags()[947] = true;\n return this; \n }",
"public void setField945(java.lang.CharSequence value) {\n this.field945 ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build the main window of the chat application. | public MainWindow()
{
Chat loadedChat = loadChat();
if (loadedChat != null) {
chat = loadedChat;
for (User user : chat.getUsers()) {
chatWindows.add(new ChatWindow(user, chat));
}
}
add(new JLabel("Username"));
addNameInput(... | [
"private void buildChatFrame(){\n\t\t//Initialisierung des ChatFrames mit übergabe aller wichtigen Daten an den Konstruktor\n\t\tchatFrame = new ChatFrame(nickname.getText(), socket, this);\n\t\tchatFrame.setVisible(true);\n\t}",
"public ChatWindow()\n {\n if (!ConfigurationUtils.isWindowDecorated())\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Finds ConfigData based on config string key Returns score if found in Dictionary Returns 1 if not found in Dictionary (nonJavadoc) | public int find(String config) {
int result = -1;
// Searches for key in Node array and finds the
// config that matches the config string input given
int key = hashFunction(config);
if (hashtable[key] == null) {
return -1;
}
if (hashtable[key].getNodeEntry().getConfig().equals(config)){
return has... | [
"public int getScore(String config){\n\t\tint hashKey = hash(config);\n\t\tNode<Configuration> requiredNode = dict[hashKey];\n\t\tif(requiredNode == null) {\n\t\t\treturn -1;\n\t\t}else {\n\t\t\treturn requiredNode.getData().getScore();\n\t\t}\n\t}",
"public int isRepeatedConfig(HashDictionary dict) {\r\n\t\t\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests tank's ability to move left | @Test
public void testTCanMoveLeft() {
tank.AbilityToMoveLeft();
assertEquals(true, tank.getLeft());
} | [
"@Test\n\tpublic void testTLeft2() {\n\t\ttank.AbilityToMoveLeft();\n\t\ttank.goLeft();\n\t\tassertEquals(-1, tank.getX());\n\t}",
"@Test\n\tpublic void testTCannotMoveLeft() {\n\t\ttank.InabilityToMoveLeft();\n\t\tassertEquals(false, tank.getLeft());\n\t}",
"@Test\n public void testTankMoveLeftRight() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional bool realPhoto = 3; | public Builder setRealPhoto(boolean value) {
bitField0_ |= 0x00000004;
realPhoto_ = value;
onChanged();
return this;
} | [
"boolean getRealPhoto();",
"public boolean getRealPhoto() {\n return realPhoto_;\n }",
"private void setPhotoAttcher() {\n\n }",
"public boolean hasPhoto(){\r\n\t\treturn hasPhoto;\r\n\t}",
"public void changePhoto() {\r\n\t\tisPictFetche = false;\r\n\t\tlaPhoto = new Photo();\r\n\t\tlaPhotoC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column t_d0_stuff.ifStaffPer | public void setIfstaffper(String ifstaffper) {
this.ifstaffper = ifstaffper == null ? null : ifstaffper.trim();
} | [
"public void setUStaff(String v);",
"public void setStaff(Integer staff) {\n\t\tthis.staff = staff;\n\t}",
"public void setMainStaff(String mainStaff) {\n this.mainStaff = mainStaff;\n }",
"public void setStaff(java.lang.String staff) {\n this.staff = staff;\n }",
"public void setStaffID... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A group is "primitive" iff its comparator is the default comparator. | private boolean isPrimitiveGroup(Group group) {
return group
.comparator
.getQualifiedName()
.toString()
.equals(getDefaultComparatorQualifiedName());
} | [
"public final void rule__PrimitiveObject__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalJSchema.g:1205:1: ( ( ( rule__PrimitiveObject__Group_1__0 )? ) )\n // InternalJSchema.g:1206:1: ( ( rule__PrimitiveOb... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.party.Part part = 2; | net.runelite.client.party.Party.Part getPart(); | [
"net.runelite.client.party.Party.UserPart getPart();",
"@java.lang.Override\n public net.runelite.client.party.Party.Part getPart() {\n if (msgCase_ == 2) {\n return (net.runelite.client.party.Party.Part) msg_;\n }\n return net.runelite.client.party.Party.Part.getDefaultInstance();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Formats the output of the children's book info. | public String toString() {
String formatType;
switch (this.format) {
case 'P':
formatType = "Picture Book";
break;
case 'E':
formatType = "Early Readers";
break;
case 'C':
formatType = "Chapter Book";
break;
default:
formatType = "Null";
}
return super.toString() + String.format("%-... | [
"private static void outputBook() {\n\t\toutput(\"\");\r\n\t\tfor (book book : library.outputBook()) { // method name changes BOOKS to outputBook()\r\n\t\t\toutput(book + \"\\n\");\r\n\t\t}\t\t\r\n\t}",
"public void createChildrensBook(String[] bookInfo) {\n\t\tString isbn = bookInfo[0];\n\t\tString callNumber = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.dstore.values.BooleanValue get_unused_condition_parts = 3; | io.dstore.values.BooleanValueOrBuilder getGetUnusedConditionPartsOrBuilder(); | [
"io.dstore.values.BooleanValue getGetUnusedConditionParts();",
"io.dstore.values.BooleanValue getGetUnusedConditions();",
"io.dstore.values.BooleanValueOrBuilder getGetUnusedConditionsOrBuilder();",
"public io.dstore.values.BooleanValueOrBuilder getGetUnusedConditionPartsOrBuilder() {\n return getGetUnus... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a range of all the cscl appointee masters where isActive = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will re... | @Override
public List<CsclAppointeeMaster> findByisActive(
Boolean isActive, int start, int end) {
return findByisActive(isActive, start, end, null);
} | [
"public java.util.List<CsclAppointeeMaster> findByisActive(\n\t\tBoolean isActive, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);",
"@Override\n\tpublic List<CsclAppointeeMaster> findByisActive(\n\t\tBoolean isActive, int start, int end,\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Keep only those elements in a stream that are of a given type. assertThat(Arrays.asList(1, 2, 3), equalTo( Streams.ofType(Stream.of(1, "a", 2, "b", 3,Integer.class)); | @SuppressWarnings("unchecked")
public static <T, U> Stream<U> ofType(final Stream<T> stream, final Class<? extends U> type) {
return stream.filter(type::isInstance)
.map(t -> (U) t);
} | [
"@Test\r\n void filterMethod() {\r\n\t\tStream<TransactionBean> transactionBeanStream = transactions.stream().filter(t -> t.getType() == Transaction.GROCERY);\r\n\t\tList<TransactionBean> afterStreamList = transactionBeanStream.peek(System.out::println).collect(Collectors.toCollection(ArrayList::new));\r\n\t\tas... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To test error case1: if it is not current player attacking, nothing will be happened | @Test
public void errorCaseTest1() {
Player thirdPlayer= new Player(2);
attackCtry.setPlayer(thirdPlayer);
assertFalse(thirdPlayer.equals(game.getCurPlayer()));
assertEquals(1,attackCtry.getArmiesNum());
assertEquals(1,defendCtry.getArmiesNum());
} | [
"@Test\n public void test_UnpreventableCombatDamage() {\n addCard(Zone.BATTLEFIELD, playerB, \"Questing Beast\", 1);\n //\n // Prevent all damage that would be dealt to creatures.\n addCard(Zone.BATTLEFIELD, playerA, \"Bubble Matrix\", 1);\n addCard(Zone.BATTLEFIELD, playerA, \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the Domino thread. | public static void initThread() {
LOG.trace("initializing Domino thread");
if (!Factory.isStarted()) {
LOG.trace("starting Domino factory");
Factory.startup();
}
Factory.initThread(Factory.STRICT_THREAD_CONFIG);
Factory.setSessionFactory(
F... | [
"public final void init() {\t\n\t\tmyRobotThread = new Thread(this);\n\t\tmyRobotThread.setDaemon(true);\n\t\tmyRobotThread.start();\n\t}",
"public static void initializeThreads()\n\t{\n\t //Initialize threads\n element = new Element(listSystemInfo());\n agent = new NEAgent(element.agentData());\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the pdp channel | public int getPDPChannel() {
return pdpChannel;
} | [
"int getChannel();",
"public int getChannel()\r\n\t{\r\n\t\treturn channel;\r\n\t}",
"gpss.Channel getChannel();",
"java.lang.String getChannel();",
"public int getChannel() {\r\n\t\treturn channel;\r\n\t}",
"public String getChannel() {\n return channel;\n }",
"public String getChannel() {\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Overrides the performRole in tax and space performs the tax performRole and moves the player to Lunch space | @Override
public void performRole(Player player)
{
super.performRole(player);
player.getPiece().moveTo(_lunchSpace);
} | [
"public void tryTakeRole() {\n if (currentPlayer.isEmployed() == false) {\n if(currentPlayer.getLocation().getName() == \"office\" || currentPlayer.getLocation().getName() == \"trailer\"){\n view.showPopUp(currentPlayer.isComputer(), \"You are currently in the \" + currentPlayer.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Erzeugt ein neues SpritSheet. Es wird ein neues Image eingelesen; Der Parameter gibt dessen Pfad an. Das Array pixel basiert auf dem RGBPrinzip und deshalb wird jedem Element dieses Arrays der entsprechende Pixel des SpriteSheets zugewiesen. | public SpriteSheet(String path) {
BufferedImage image = null;
try {
image = ImageIO.read(SpriteSheet.class.getResourceAsStream(path));
} catch (IOException e) {
e.printStackTrace();
}
if (image == null) {
return;
}
this.path = path;
this.width = image.getWidth();
this.height = image.getHei... | [
"private void loadSheet() {\n\t\ttry {\n\t\t\tBufferedImage image = ImageIO.read(SpriteSheet.class\n\t\t\t\t\t.getResource(path));\n\t\t\tint w = image.getWidth();\n\t\t\tint h = image.getHeight();\n\t\t\timage.getRGB(0, 0, w, h, sheetPixles, 0, w);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stores the given Tuple3i instance in the pool. | public static void toPool(Tuple3i o) {
POOL.get().free(o);
} | [
"public static Tuple3i fromPool() {\n\t\treturn (POOL.get().alloc());\n\t}",
"public static Tuple3i fromPool(Tuple3i tuple) {\n\t\treturn (fromPool(tuple.getX(), tuple.getY(), tuple.getZ()));\n\t}",
"public static Tuple3i fromPool(int x, int y, int z) {\n\t\treturn (POOL.get().alloc(x, y, z));\n\t}",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Builds a success message for an AND node (btree node) where left node and right node are true. | private void buildAndNodeSuccessMessage(BooleanNode node) {
if(node.getLabel().equals("*") &&
node.getLeftNode() != null &&
node.getRightNode() != null &&
node.getLeftNode().getNodeMessage() != null &&
node.getRightNode().getNodeMessage() != null) {
String preIndent = "";
if(node.getLeftNode(... | [
"private void buildOrNodeSuccessMessage(BooleanNode node) {\n\t\t// OR2\n\t\tif(node.getLabel().equals(\"+\") &&\n\t\t\t\tnode.getLeftNode() != null && \n\t\t\t\tnode.getRightNode() != null &&\n\t\t\t\tnode.getLeftNode().getNodeMessage() != null && \n\t\t\t\tnode.getRightNode().getNodeMessage() != null) {\n\t\t\tSt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form AppFrame | public AppFrame() {
initComponents();
} | [
"Frame createFrame();",
"protected MainFrame newFrame() {\n return new MainFrame(\"New Window\");\n }",
"protected void createFrame() {\n MyInternalFrame frame = new MyInternalFrame();\n frame.setVisible(true); //necessary as of 1.3\n desktop.add(frame);\n try {\n fram... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Is exception handler responsible with no matching servlet path and no handler. | @Test
void isExceptionHandlerResponsibleWithNoMatchingServletPathAndNoHandler() {
ApiExceptionResolver targetWithNoApiPaths = new ApiExceptionResolver(
List.of(), exceptionMapper);
HttpServletRequest request = mock(HttpServletRequest.class);
boolean actual = targetWithNoApiPaths.isExceptionHandler... | [
"@Test\n void isExceptionHandlerResponsibleWithNoMatchingServletPathButHandler() {\n ApiExceptionResolver targetWithNoApiPaths = new ApiExceptionResolver(\n List.of(), exceptionMapper);\n HttpServletRequest request = mock(HttpServletRequest.class);\n boolean actual = targetWithNoApiPaths\n .... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a UserDetails object based on the user name contained in the given token, and the GrantedAuthorities as returned by the GrantedAuthoritiesContainer implementation as returned by the token.getDetails() method. | @Override
public final UserDetails loadUserDetails(PreAuthenticatedAuthenticationToken token) throws AuthenticationException {
Assert.notNull(token.getDetails(), "token.getDetails() cannot be null");
Assert.isInstanceOf(GrantedAuthoritiesContainer.class, token.getDetails());
Collection<? extends GrantedAuthority... | [
"User getUserDetails(String token);",
"public Optional<org.springframework.security.core.userdetails.User> findByToken(String token);",
"public static User getUserInfo(String token) {\n JSONObject post = new JSONObject();\n try {\n String result = HttpClientUtil.getWithToken(USER_INFO_U... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AssignmentExpression__Group_0__0__Impl" $ANTLR start "rule__AssignmentExpression__Group_0__1" InternalReflex.g:9467:1: rule__AssignmentExpression__Group_0__1 : rule__AssignmentExpression__Group_0__1__Impl ; | public final void rule__AssignmentExpression__Group_0__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalReflex.g:9471:1: ( rule__AssignmentExpression__Group_0__1__Impl )
// InternalReflex.g:9472:2: rule__AssignmentExpression__Group_... | [
"public final void rule__XAssignment__Group_1_1_0__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17420:1: ( rule__X... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the uuid of this second. | @Override
public java.lang.String getUuid() {
return _second.getUuid();
} | [
"public String getUuid()\n {\n return uuid.getValue();\n }",
"public String toString() {\n return uuid.toString();\n }",
"public String getUuid() {\n return (String) getAttributeInternal(UUID);\n }",
"public String getUuid() {\r\n return (String) getAttributeInternal(UUID);\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
auto generated Axis2 call back method for addRevisionAssignableToRequest method override this method for handling normal response from addRevisionAssignableToRequest operation | public void receiveResultaddRevisionAssignableToRequest(
org.eclipse.mylyn.targetprocess.modules.services.RequestServiceStub.AddRevisionAssignableToRequestResponse result
) {
} | [
"public void receiveResultretrieveRevisionAssignablesForRequest(\n org.eclipse.mylyn.targetprocess.modules.services.RequestServiceStub.RetrieveRevisionAssignablesForRequestResponse result\n ) {\n }",
"com.conferma.cpapi.UpdateDeploymentResponseDocument.UpdateDep... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
SmsListener interface : this interface implements the messageRecived method | public interface SmsListener{
void MessageReceived(String messageText , String messageSender);
} | [
"public interface MessageReceivedListener {\r\n\r\n /**\r\n * Receives notification that an ELM327 message response has been received.\r\n * @param message The Message object.\r\n */\r\n void onMessageReceived(Message message);\r\n }",
"public interface MessageListener {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates AJP listener based on values from options.ajpPort, options.ajpListenAdress. | public void setAjpListener(Builder serverBuilder) {
if (options.ajp13Port == -1)
return;
if (options.ajp13Port < -1 || options.ajp13Port > MAX_PORT) {
log.warn("Unallowed ajp13Port value. AJP listener is disabled!");
return;
}
if (options.ajp13ListenA... | [
"public void createServerListener(CoapServer serverListener, int localPort);",
"private void createListeners(Undertow.Builder serverBuilder) {\n SimpleListenerBuilder simpleListenerBuilder = new SimpleListenerBuilder(options);\n simpleListenerBuilder.setHttpListener(serverBuilder);\n simpleLi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__PartiturHandler__Group__3__Impl" $ANTLR start "rule__PartiturHandler__Group__4" InternalPartitur.g:974:1: rule__PartiturHandler__Group__4 : rule__PartiturHandler__Group__4__Impl rule__PartiturHandler__Group__5 ; | public final void rule__PartiturHandler__Group__4() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalPartitur.g:978:1: ( rule__PartiturHandler__Group__4__Impl rule__PartiturHandler__Group__5 )
// InternalPartitur.g:979:2: rule__Partitur... | [
"public final void rule__PartiturHandler__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPartitur.g:951:1: ( rule__PartiturHandler__Group__3__Impl rule__PartiturHandler__Group__4 )\n // InternalPartitur.g:952:2: ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ComponentParametersRef__Group__3__Impl" $ANTLR start "rule__ComponentParametersRef__Group_2__0" InternalComponentDefinition.g:6456:1: rule__ComponentParametersRef__Group_2__0 : rule__ComponentParametersRef__Group_2__0__Impl rule__ComponentParametersRef__Group_2__1 ; | public final void rule__ComponentParametersRef__Group_2__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalComponentDefinition.g:6460:1: ( rule__ComponentParametersRef__Group_2__0__Impl rule__ComponentParametersRef__Group_2__1 )
// I... | [
"public final void rule__ComponentParametersRef__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalComponentDefinition.g:6418:1: ( ( ( rule__ComponentParametersRef__Group_2__0 )? ) )\n // InternalComponentDefi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Optional. Number of attached SSDs, from 0 to 8 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and [HDFS]( data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries. Note: Local SSD opti... | int getNumLocalSsds(); | [
"public static int countHostsForSD(String sdname) {\r\n int count = 0;\r\n\r\n for (int j = 0; j < defined_hosts.size(); j++) {\r\n Host host = (Host) defined_hosts.elementAt(j);\r\n if (host.luns_used.get(sdname) != null)\r\n count++;\r\n }\r\n\r\n return count;\r\n }",
"int getBoot... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
String getMacSn(); String getBatchId(); | @Query(value = "select distinct batch_id as batchId, mac_sn as macSn from product_info", nativeQuery = true)
public List<ProductSummary> getMacSnAndBatchId(); | [
"long getBatchId();",
"public String getBatchNo() {\r\n return batchNo;\r\n }",
"public String getBatchNo() {\r\n return batchNo;\r\n }",
"public String getBatchCode() {\n return batchCode;\n }",
"public java.lang.Integer getBatchIdentifier() {\n return batchIdentifier;\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
fail("Not yet implemented"); Intern expectedIntern = new Intern(); | @Test
public final void testIntern() {
HR hr = new HR();
Object result;
result = hr.recruit("I");
assertTrue(result instanceof Intern);
//assertEquals(expectedIntern, result);
} | [
"public void testImplementation_differentImplementationIsNotCached() throws Exception;",
"public FuncionInternaTest(String name) {\n\t\tsuper(name);\n\t}",
"public static void main5(String[] args) {\n String str1 = \"hello\";\n String str2 = new String(\"hello\").intern();\n str2 = str2.int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of AdDirSyncResponseControlGrammar. | @SuppressWarnings("unchecked")
private AdDirSyncResponseGrammar()
{
setName( AdDirSyncResponseGrammar.class.getName() );
super.transitions = new GrammarTransition[AdDirSyncResponseStatesEnum.LAST_AD_DIR_SYNC_RESPONSE_STATE.ordinal()][256];
/**
* Transition from initial state t... | [
"@SuppressWarnings(\"unchecked\")\n private AdDirSyncRequestGrammar()\n {\n setName( AdDirSyncRequestGrammar.class.getName() );\n\n super.transitions = new GrammarTransition[AdDirSyncRequestStatesEnum.LAST_AD_DIR_SYNC_REQUEST_STATE.ordinal()][256];\n\n /**\n * Transition from init... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the exception field. | public void setExceptionField(String exceptionField) {
this.exceptionField = exceptionField;
} | [
"protected void setException(Exception value) {\n this.exception = value;\n\n }",
"void setException(Exception e);",
"void setException(Exception exception) {\n this.exception = exception;\n }",
"void setException(Throwable e);",
"public void setException(Integer exception) {\r\n this.excepti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Zero the potentiometer if the difference between the old value and new value is greater than ERROR_TOLERANCE. Currently only called from the ElevatorPositionIntake command when the limit switch is pressed. | public void zeroPot() {
double position = motor.getSelectedSensorPosition(DEFAULT_PIDX);
double difference = Math.abs(POT_BOTTOM - position);
if (difference > ERROR_TOLERANCE) {
POT_BOTTOM = position;
Preferences.getInstance().putDouble(POT_KEY, POT_BOTTOM);
D... | [
"void setCantExcess(double cantExcess);",
"private void checkForHardLimitError(Direction targetDirection) {\n\t\tif(isHardLimitNeedingCalibration(targetDirection)) {\n\t\t\tLogger.warning(this, \" \", targetDirection, \" HARD LIMIT has drifted. We're past the limit, but the switch is not active. Limit: \", both... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A A | / getfield aload | iaload | | \ i_load | | FieldArrayElementIncrement(post) | / getfield aload | iastore iload | | \ [fieldArrayElementMinusOne] | | | B B | @Override public Instruction transform(ExpressionList _expressionList, Instruction i) {
InstructionMatch result = null;
if ((result = InstructionPattern.fieldArrayElementAccess.matches(i,
InstructionPattern.longHandFieldArrayElementDecrement)).ok) {
... | [
"public void increaseField() {\n\n }",
"private static native void _recordObjectFieldOffset (long offset, Field f);",
"private byte[] increment(byte[] array) {\n for (int i = array.length - 1; i >= 0; --i) {\n byte elem = array[i];\n ++elem;\n array[i] = elem;\n if (elem != 0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a GraphModelSearch object with all default settings. (null model, depthFirstSearch = false, fullSearch = true) | public GraphModelSearch() {} | [
"public GraphModelSearch(GraphModel model, boolean depthFirstSearch, boolean fullSearch) {\n this(model, depthFirstSearch);\n this.fullSearch = fullSearch;\n }",
"public GraphModelSearch(GraphModel model, boolean depthFirstSearch) {\n this(model);\n this.depthFirstSearch = depthFirstSearch;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the turns to run in debug mode. | public static int getDebugRunTurns() {
return FreeColDebugger.debugRunTurns;
} | [
"boolean isDebugEnabled();",
"boolean isDebug();",
"public int getDebugFlags()\n {\n return debugFlags;\n }",
"public boolean getDebugStatus() {\r\n return DEBUG;\r\n }",
"public static boolean isDebugOn() {\n\t\treturn DEBUG;\n\t}",
"public boolean isDebugEnabled() {\n return is... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get player's list of top scores | public List<RankingHistoryListInterface> getTopScore() {
return this.topScore;
} | [
"public List<ScoreEntry> getTopTen() {\n\t\tList<ScoreEntry> topten;\n\n\t\tCollections.sort(scorelist);\t\n\t\ttopten = scorelist.subList(0, (int)Math.min(scorelist.size(), 10));\n\t\t\n\t\treturn topten;\n\t}",
"LinkedHashMap<String, Integer> getTopScores() {\n return this.topScores;\n }",
"public d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / Binds the given value to the specified attribute, using the / given hint. / / / / / | void bind_attribute_with_hint(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, int hint, RakudoObject Value); | [
"void setValue(Attribute att, double value);",
"void bind_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, RakudoObject value);",
"protected void bindAttribute(int attribute, String variableName) {\n\t\tGL20.glBindAttribLocation(programID, attribute, variableName);\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
SELECT COUNT() FROM Contract u WHERE u.dateStart BETWEEN cast('19900101' as date) AND cast('20191231' as date) | public int numberOfContractBetween(String start, String end){
Query query = entityManager.createQuery(
"SELECT u FROM Contract u WHERE u.dateStart BETWEEN cast(:start as date) AND cast(:end as date)");
query.setParameter("start", start);
query.setParameter("end", end);
return query.getRes... | [
"public int countByDate(Date date);",
"long countUniqueClientsBetween(String companyId, DateTime startDate, DateTime endDate);",
"@GetMapping(\"/count/in/period/{startDate}/{endDate}\")\n\tpublic int countInPeriod(@PathVariable(\"startDate\") @DateTimeFormat(pattern = \"MM-dd-yyyy\") LocalDate startDate,\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the entity, of class c, that is being targeted by the Living Entity, excluding entities in avoid. Optionally targets people hidden from the player. | public static <T extends Entity> T getTargetedEntity(LivingEntity entity, double range, Class<T> c,
Collection<? extends T> avoid, boolean targetHidden) {
Location eyeLocation = entity.getEyeLocation();
Vector direction = eyeLocation.getDirection();
Set<T> candidates;
if (avoid == null) {
candidates... | [
"protected Entity findPlayerToAttack()\n {\n EntityPlayer var1 = this.worldObj.getClosestVulnerablePlayerToEntity(this, 16.0D);\n return var1 != null && this.canEntityBeSeen(var1) ? var1 : null;\n }",
"public static EntityLivingBase getEntityFromPlayer(EntityPlayer player) {\n Vec3d vec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of setCantidad method, of class Cliente. | @Test
public void testSetCantidad() {
System.out.println("setCantidad");
int cantidad = 0;
Cliente instance = new Cliente();
instance.setCantidad(cantidad);
} | [
"@Test\r\n public void testSetCantidadVendidos() {\r\n int expResult = 5;\r\n articuloPrueba.setCantidadVendidos(expResult);\r\n assertEquals(expResult, articuloPrueba.getCantidadVendidos());\r\n }",
"public void setCantidad(int value) {\r\n this.cantidad = value;\r\n }",
"@... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the lab by id | public Lab getLab(Integer id) {
return labMapper.selectById(id);
} | [
"@RequestMapping(method = RequestMethod.GET,\n path = \"/{labTestId}\",\n produces = MediaType.APPLICATION_JSON_VALUE)\n public Optional<LabTest> findById(@Valid @PathVariable Long labTestId) {\n return labTestService.findLabTestById(labTestId);\n }",
"public Lab... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the order_code_id value for this Renewal_card_offer_list_request. | public void setOrder_code_id(java.lang.Integer order_code_id) {
this.order_code_id = order_code_id;
} | [
"public void setOrder_code_id(int order_code_id) {\n this.order_code_id = order_code_id;\n }",
"public void setOrderCode( String orderCode )\n {\n this.orderCode = orderCode;\n }",
"public void setOrderCode(String orderCode) {\r\n this.orderCode = orderCode;\r\n }",
"public void set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a value of property Listofauthors from an instance of A_0 First, all existing values are removed, then this value is added. Cardinality constraints are not checked, but this method exists only for properties with no minCardinality or minCardinality == 1. | public static void setbiboListofauthors(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, A_0 value) {
Base.set(model, instanceResource, LISTOFAUTHORS, value);
} | [
"public void setbiboListofauthors(A_0 value) {\n\t\tBase.set(this.model, this.getResource(), LISTOFAUTHORS, value);\n\t}",
"public void setbiboListofauthors( org.ontoware.rdf2go.model.node.Node value) {\n\t\tBase.set(this.model, this.getResource(), LISTOFAUTHORS, value);\n\t}",
"public void addbiboListofauthors... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
An interface of RMIServer where it takes data from Client and sends them to the ServerModelManager All the methods throw RemoteException so that it is not thrown in other classes | public interface RMIServer extends Remote
{
void startServer() throws RemoteException, AlreadyBoundException;
void registerClient(RemoteObserver client) throws RemoteException;
String checkMemberData(String username, String password,
String confirmPassword, String email, String phone,
String otherInf... | [
"public interface ServerRMIViewInterface extends Remote {\r\n\r\n\tpublic void impostaParametriBonus(Bonus bonus) throws RemoteException;\r\n\r\n\tpublic void riceviAzione(AzioneFactory azioneFactory) throws RemoteException;\r\n\r\n\tpublic void riceviOggettoVendibile(OggettoVendibile oggettoVendibile) throws Remot... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets whether we are pasing through CC | public void setPassThroughCC(final boolean val)
{
synchronized(passThroughCCLock)
{
passThroughCC = val;
setLastX("" + val, "PassThroughCC", getSynthNameLocal(), false);
SwingUtilities.invokeLater(new Runnable()
{
publi... | [
"public void setChained(boolean value) {\r\n this.chained = value;\r\n }",
"private void setCC(int CC) {\n\t\tCMN.CC = CC;\n\t}",
"public void setLearningCC(boolean val)\n {\n learning = val;\n model.clearLastKey();\n if (learning)\n {\n setShowingMuta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res); | public static native void CVec_ChannelDetailsZ_free(long[] _res); | [
"public static native void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(long _res);",
"public static native void CVec_ChannelMonitorZ_free(long[] _res);",
"public static native void C2Tuple_BlockHashChannelManagerZ_free(long _res);",
"public static native void C2Tuple_BlockHashChannelMonitorZ_f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interface for factory creating mapping scripts. | public interface MappingScriptFactory<T> {
/**
*
* Create
*
*
* @param scripts
* @return
*/
public MappingScript<T> create(InputStream... scripts);
} | [
"Script createScript();",
"interface ScriptCreator {\n Script create(String value)\n throws ProtocolException;\n }",
"public StaticMappingStrategy(AgiScript agiScript) {\n this.agiScript = agiScript;\n }",
"public abstract Navajo createNavaScript();",
"public interface Map... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
metodo que descarga una imagen de internet y la coloca en el JLabel | private void Cargar_Imagen(){
try {
//libera lo que se halla almacenado en el buffer
snap.flush();
//carga la nueva imagen
/* ----------------- */
//Odate street
//snap = new ImageIcon(new URL("http://www.odate-houjinkai.or.jp/snap.jpg")).getImag... | [
"public ProxyImage(URL url, Component component)\n { super(url);\n this.component = component;\n ci = null; // no concrete image yet loaded\n imageAvailable = false;\n // load the temporary image\n tempIcon = new ImageIcon(getClass().getResource(\"downloading.gif\")); // local image\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to save a collection of VSTP messages. | public void save(List<VSTPMsg> vstpMsgList) {
vstpMsgRepository.save(vstpMsgList);
} | [
"void save(MessageListDto messages);",
"void saveMessages(ActionMessages messages);",
"public List<TwilioSmsDto> saveAll(List<TwilioSmsDto> twilioSmsToSave);",
"void save(Context context, Message... messages);",
"void migrateEmailsToFileStorage(List<SendingMessage> messages);",
"public void save () {\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if the location is in the area. | private boolean isInArea(Location location) {
if (location.getWorld().getName().equals(UPPER_CORNER.getWorld().getName())) {
if (location.getX() >= UPPER_CORNER.getX() && location.getX() <= LOWER_CORNER.getX()) {
if (location.getY() >= UPPER_CORNER.getY() && location.getY() <= LOWER_... | [
"public abstract boolean isLocationInArea(Location location);",
"public abstract boolean isLocationInArea(BlockLocation location);",
"abstract boolean isOutsideSupportedArea(double lat, double lon);",
"private boolean isInArea(Area area, Position p) {\n long shipLongitude = p.getLongitude();\n l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
PutMapping for updating a specific Activity | @PutMapping("/activities/{id}")
public Activity updateActivity(@RequestBody Activity newActivity, @PathVariable("id") int id) {
return activityService.updateActivity(id, newActivity);
} | [
"public void update(LearningResultHasActivityPk pk, LearningResultHasActivity dto) throws LearningResultHasActivityDaoException;",
"public void updateActivity(ExoSocialActivity existingActivity) throws ActivityStorageException;",
"@PutMapping(\"/activities/{id}\")\n\tpublic ResponseEntity<Activity> updateActivi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
main acting method for units the main acting method for units | public void unitActs() {
if (owner!=null && !owner.equals(GameData.getInstance().playerName)){
lock = true; //always keep it locked
enemyUnit = true;
}
if (underattack){
unitDamaged(damage);
underattack = false;
}
if (chosen){
... | [
"abstract void actOnUnitTargets();",
"protected void runUnits() {\t// Run road-side units\r\n \tint i = 0;\r\n\t\tint j = 0;\r\n\t\tfinal int clusterSize = 100;\r\n \tfor (Lane l : network) {\r\n \t\tif (i > clusterSize) {\r\n \t\t\ttime = System.currentTimeMillis() - beginTime;\r\n \t\t\tint lane... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
helper method : remove the Time substring from the expected results otherwise assertions fail randomly | private String removeTime(String str)
{
String tmp = "";
for (String s : str.split("\n"))
if (!s.startsWith("Time"))
tmp += s + "\n";
return tmp;
} | [
"@Override\n protected String assertValidTime( String value)\n {\n return assertDate( value);\n }",
"@Test\n public void testValidTime() {\n String expectedResult = \"O\\r\\n\" +\n \"RROO\\r\\n\" +\n \"RRRO\\r\\n\" +\n \"YYROOOOOOOO\\r\\n\" +\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form PagoAlumno | public PagoAlumno() {
initComponents();
} | [
"public void crearAlumno_Materia(AlumnoMateria alumno_materia);",
"public Alumno() { }",
"public FichaAlumno() {\n initComponents();\n\n }",
"public Alumno() {\n }",
"public frmAlumno() {\n initComponents();\n }",
"public void crearModelo() {\n modeloagr = new DefaultTableMod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Associative between an application ant its supported language. This relation tells us that an application has translations in this language and therefore can be installed by a user in this language. The application has a specific rank (popularity) in this language too | public interface ApplicationLang extends AssoRecord<Application, ApplicationLang> {
Application getApplication();
Lang getLang();
long getRank();
void setRank(long rnk);
} | [
"public interface LanguageModel {\n\n\tString getPreferredLanguage();\n}",
"public void compareLanguage() {\n for (User f : friends) {\n if (thisUser.getLanguage().equalsIgnoreCase(f.getLanguage())) {\n f.incrementCount(\"language\");\n }\n }\n }",
"public i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests "slow scaling" issue encountered with some JPEG's. | public void testSlowScalingIssue() throws Exception {
Simapi simapi = new Simapi();
long startTime = System.currentTimeMillis();
BufferedImage img1 = Simapi.read(getClass().getResource("slow_scale01.jpg"));
BufferedImage img2 = Simapi.read(getClass().getResource("slow_s... | [
"@Test\n @SdkSuppress(minSdkVersion = Build.VERSION_CODES.O_MR1)\n public void testQualityDownscaleLinear() {\n scaledBitmapAndAssertQuality(19, 19, true, 187.5f, DOWNSCALE_VARIANCE,\n Bitmap.Config.ARGB_8888);\n }",
"@Test\n public void testScaling() {\n System.out.printl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column tsts_api_performance_detail_log.largestSendSuccessResponseThroughput | public Double getLargestSendSuccessResponseThroughput()
{
return largestSendSuccessResponseThroughput;
} | [
"public Double getLargestReceiveSuccessResponseThroughput()\r\n {\r\n return largestReceiveSuccessResponseThroughput;\r\n }",
"public Double getSendSuccessResponseThroughput()\r\n {\r\n return sendSuccessResponseThroughput;\r\n }",
"public Double getLargestReceiveSuccessRequestThroughp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculate the cost of the specified list of cities. | void calculateCost(City[] cities) {
cost = 0;
for (int i = 0; i < cityList.length - 1; i++) {
cost += cities[cityList[i]].proximity(cities[cityList[i + 1]]);
}
} | [
"void calculateCost(City[] cities) {\n cost = 0;\n for (int i = 0; i < cityList.length - 1; i++) {\n double dist = cities[cityList[i]].proximity(cities[cityList[i + 1]]);\n cost += dist;\n }\n\n cost += cities[cityList[0]].proximity(cities[cityList[cityList.length -... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
int32 oneof_1996 = 1996; | int getOneof1996(); | [
"public int getOneof1996() {\n if (hugeOneofCase_ == 1996) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }",
"public int getOneof1996() {\n if (hugeOneofCase_ == 1996) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }",
"Int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test that adding multiple new imports using addAll() inserts them in the correct positions. | @Test
public void shouldAddMultipleImportsInCorrectPositions() {
ImportStatements imports = new ImportStatements(basePackage, baseImportList, FAKE_END_POS_MAP);
boolean added = imports.addAll(Arrays.asList("import static org.junit.Assert.assertEquals",
"import javax.servlet.http.HttpServletRequest",
... | [
"@Test\n public void shouldAddImportInCorrectPosition() {\n ImportStatements imports = new ImportStatements(basePackage, baseImportList, FAKE_END_POS_MAP);\n boolean added = imports.add(\"import static org.junit.Assert.assertEquals\");\n\n assertTrue(added);\n assertEquals(\n \"import static com... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will extract all of the instanceNumbers for annotations and the Class associated with that annotation and put it into a map so that a key(instanceNum) will map to the Class it is associated with. | private void createMap()
{
Scanner s = createScanner(file);
//The map that will store the (instanceNum, Class) pairs
wordsToClass = new HashMap<String, String>();
//Scan through the .pins file line by line.
while (s.hasNext())
{
//Store next token
... | [
"private Map<String, AnnotationExpr> getAnnotMap(\n \t\tClassOrInterfaceDeclaration classDecl) {\n \t\n \tMap<String, AnnotationExpr> result = \n \t\t\tnew HashMap<String, AnnotationExpr>();\n \tif (classDecl.getAnnotations() != null) {\n \t \tfor (AnnotationExpr annot : classDecl.getAnnotati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates panel with parameters for SAE | private JPanel createSAEPane() {
JPanel saePane = new JPanel();
saePane.setBorder(BorderFactory
.createTitledBorder("Stacked Auto Encoder"));
saePane.setLayout(new GridLayout(0, 2));
JLabel iterLabel = new JLabel("Number of neurons");
saePane.add(iterLabel);
SpinnerNumberModel iterSnm = new SpinnerNumb... | [
"private Panel designPanel() {\n Panel panel = new Panel();\n contentLayout = new FormLayout();\n wrapperLayout = new VerticalLayout();\n numberOfDatasetsBox = new ComboBox<>();\n numberOfReplicatesBox = new ComboBox<>(\"Select number of Replicates\");\n\n\n List<Integer> p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Saves the selection history at the specified filename. The file will be a list of the heuristics selected in order from beginning to end separated by the desired separator | public boolean saveHistory(OperatorSelectionHistory history,String filename,String separator) {
try(FileWriter fw = new FileWriter(new File(filename))){
ArrayList<Variation> orderedHistory = history.getOrderedHistory();
ArrayList<Integer> orderedTime = history.getOrderedSelectionTime();... | [
"public boolean saveSelectionFrequency(OperatorSelectionHistory history,String filename,String separator) {\n try(FileWriter fw = new FileWriter(new File(filename))){\n Iterator<Variation> iter = history.getOperators().iterator();\n while(iter.hasNext()){\n Variation heur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converts a Ds3Element into an NetNullableVariable | NetNullableVariable toElement(final Ds3Element ds3Element, final ImmutableMap<String, Ds3Type> typeMap); | [
"ImmutableList<NetNullableVariable> toElementsList(final ImmutableList<Ds3Element> ds3Elements, final ImmutableMap<String, Ds3Type> typeMap);",
"public T caseVariableElement(VariableElement object) {\r\n\t\treturn null;\r\n\t}",
"Vector3fVariable createVector3fVariable();",
"public java.lang.Double getVar3() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
create factor for observed variable | private void observedVariableFactor(Variable variable, ArrayList<ProbRow> table, int factor_idx) {
ArrayList<String> pr = new ArrayList();
pr.add("p");
ArrayList<ProbRow> new_prop = new ArrayList();
Variable fact = new Variable("f_" + factor_idx, pr);
ArrayList<Variable> parents ... | [
"private Factor makeFactor(CountTable counts, Map<BNode, SampleTable> nonEnumSamples) {\r\n Factor f = new Factor(qvars);\r\n for (int index = 0; index < counts.table.getSize(); index ++) {\r\n double value = counts.get(index);\r\n f.setFactor(index, value);\r\n JDF jd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get amount of strings which start which start with given prefix. Complexity: O(|prefix|). | int howManyStartsWithPrefix(String prefix) {
Node node = root;
for (int i = 0; i < prefix.length(); i++) {
final Character letter = prefix.charAt(i);
if (node.leafs.containsKey(letter)) {
node = node.leafs.get(letter);
} else {
return 0;
}
}
return node.howMany;
... | [
"public int howManyStartWithPrefix(@NotNull String prefix) {\n Node current = root;\n for (char symbol : prefix.toCharArray()) {\n if (!current.existsNext(symbol)) {\n return 0;\n }\n current = current.getNext(symbol);\n }\n return current.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the OpenVPN executable. | public void setOpenVPNExecutable(File openVPNExecutable) {
this.openVPNExecutable = openVPNExecutable;
} | [
"public void setExecutable(String executable);",
"public static void setExecutable(String executable) {\n \tGlobals.executable = executable;\n \tsetProperty(\"executable\", executable);\n }",
"public File getOpenVPNExecutable() {\r\n return this.openVPNExecutable;\r\n }",
"public void setEx... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Appends and returns a new empty "anticodon" element | gov.nih.nlm.ncbi.www.TrnaExtDocument.TrnaExt.Anticodon addNewAnticodon(); | [
"void addEmptyElement(String tag) throws IOException;",
"public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}",
"XomNode appendElement(Element element) throws XmlBuilderException;",
"public void createRootEle()\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Quick shortcut to add a row to to this parent. parent must have a GridLayout creates a new Composite that will take the full width of the parent, with no margins populates the new Composite using the Coat sets the layout on the new Composite to be a GridLayout with no margins and as many columns as there are child cont... | public static Composite newGridRow(Composite parent, Coat coat) {
Composite cmp = new Composite(parent, SWT.NONE);
Layouts.setGridData(cmp)
.grabHorizontal()
.horizontalSpan(Layouts.modifyGrid(parent).getRaw().numColumns);
LayoutsGridLayout gridData = Layouts.setGrid(cmp).margin(0);
coat.putOn(cmp);
g... | [
"public static LayoutsRowData newRowPlaceholder(Composite parent) {\n\t\tLabel placeholder = new Label(parent, SWT.NONE);\n\t\treturn setRowData(placeholder);\n\t}",
"protected org.eclipse.swt.widgets.Layout createDefaultCompositeLayout() {\r\n\treturn new org.eclipse.swt.layout.RowLayout();\r\n }",
"GridDat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Awaits the termination of the Container. | public int awaitTermination() {
return client
.waitContainerCmd(containerId)
.exec(new WaitContainerResultCallback())
.awaitStatusCode();
} | [
"public void terminateContainer()\n\t{\n\t\t//this will trigger shoot down hook, which nicely kills container.\n\t\tSystem.exit(0);\n\t}",
"public void terminate() {\n notifyCompletion(false);\n }",
"public void awaitTermination() {\r\n\t\tactorSystem.awaitTermination();\r\n\t}",
"private void exit(){\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
JDBC 2.0 Makes the set of commands in the current batch empty. This method is optional. | public void clearBatch() throws java.sql.SQLException {
wrappedStatement.clearBatch();
} | [
"@Override\n public void clearBatch() throws SQLException {\n throw new SQLException(\"tinySQL does not support clearBatch.\");\n }",
"public void clearStatement() {\n\t\tif (pstmt != null) {\n\t\t\ttry {\n\t\t\t\tpstmt.clearParameters();\n\t\t\t} catch (SQLException se) {\n\t\t\t\tse.printStackTrace()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates mapper for given parameter. | private <Type> Introspector.ParameterMapperWrapper<Type> createParameterMapper(Parameter parameter)
{
// try to fetch provider by parameter type
@SuppressWarnings("unchecked")
Class<Type> type = (Class<Type>) parameter.getType();
@SuppressWarnings("unchecked")
ParameterMapper... | [
"public Mapper<K, V, T> create();",
"private <Type> Introspector.ParameterMapperWrapper<Type> createParameterMapperWrapper(\n ParameterMapper<? super Type> mapper,\n String name\n )\n {\n return (Type value, Map<String, Object> params) -> mapper.putParam(name, value, params);\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the averaged weight of a feature. Returns 0 if the feature is unknown. | public double getAvg(String feature) {
if (weightMap.containsKey(feature)) {
Double cache = weightCacheMap.get(feature);
if (cache == null) cache = 0.0;
return weightMap.get(feature) - (cache/averagingCoefficient);
} else {
return 0;
}
} | [
"public double get(String feature) {\n if (weightMap.containsKey(feature)) {\n return weightMap.get(feature);\n } else {\n return 0;\n }\n }",
"@GetMapping(\"average-weight\")\n\tpublic Float averageWeight() {\n\t\tif (animals.size() == 0) {\n\t\t\tthrow new NotFoundE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
renvoie le nom de la colonne col | @Override
public String getColumnName(int col)
{
return nomColonnes[col];
} | [
"public java.lang.CharSequence getColonia() {\n return colonia;\n }",
"public java.lang.CharSequence getColonia() {\n return colonia;\n }",
"public void setColonia(java.lang.CharSequence value) {\n this.colonia = value;\n }",
"java.lang.String getColNm();",
"String getColon();",
"public St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the last CRM Contact in the ordered set where uuid = &63; and companyId = &63;. | @Override
public CrmContact fetchByUuid_C_Last(
String uuid, long companyId,
OrderByComparator<CrmContact> orderByComparator) {
int count = countByUuid_C(uuid, companyId);
if (count == 0) {
return null;
}
List<CrmContact> list = findByUuid_C(
uuid, companyId, count - 1, count, orderByComparator);
... | [
"public Foo fetchByUuid_C_Last(java.lang.String uuid, long companyId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Foo> orderByComparator);",
"@Override\n\tpublic Arret fetchByUuid_C_Last(\n\t\tString uuid, long companyId,\n\t\tOrderByComparator<Arret> orderByComparator) {\n\n\t\tint count = countByUuid_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
source DICOM object:Overlay plane module DICOM name and code:(60xx,0100) Overlay Bits Allocated US 1 destination TDS object:Image destination TDS attribute:OverlayBitsAllocated | @Override
public SingleIntWithState getOverlayBitsAllocated() throws DIException {
DValue dataElement = dicomDataSet.getValueByGroupElementString("6099,0100");
if (dataElement == null) {
return null;
}
return getSingleIntegerAnswer(dataElement);
} | [
"private void createDicomFile(byte[] decoded_PixelData, File source, File destination, String TransferSyntax) {\n DicomInputStream in = null;\n DicomOutputStream dcmOut = null;\n try {\n in = new DicomInputStream(source);\n DicomObject dcmObj = in.readDicomObject();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |