query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Create a writer builder for TransportServiceDescriptionRequest. | @Nonnull
public static UBL23WriterBuilder <TransportServiceDescriptionRequestType> transportServiceDescriptionRequest ()
{
return UBL23WriterBuilder.create (TransportServiceDescriptionRequestType.class);
} | [
"@Nonnull public static UBL23ReaderBuilder<TransportServiceDescriptionRequestType> transportServiceDescriptionRequest(){return UBL23ReaderBuilder.create(TransportServiceDescriptionRequestType.class);}",
"@Nonnull\n public static UBL23WriterBuilder <TransportServiceDescriptionType> transportServiceDescription ()\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set a specific style in a stylegroup. | void set(String group, String name, String style); | [
"public void setStyle(Style newStyle){\r\n\tstyle = newStyle;\r\n }",
"public void setStyle(int style)\r\n {\r\n this.style = style;\r\n }",
"public StyleId setStyleId ( StyleId id );",
"public void setStyle (WindowStyle style) {\r\n \t\tthis.style = style;\r\n \t\tsetBackground(style.background);\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
proposition generation Generates propositions from the clauses in the sentence. | public void generatePropositions() {
propositions.clear();
// holds alternative options for each constituents (obtained by
// processing coordinated conjunctions and xcomps)
final List<List<Constituent>> constituents = new ArrayList<List<Constituent>>();
// which of the consti... | [
"@Override\n public Predicate generateOutputStructure(Predicate predicate) {\n Predicate modifiedPredicate = new Predicate(predicate.getPredicateName());\n phrase = nlgFactory.createClause();\n //create phrase using the annotations of each predicate element describing its function in the sen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Starts a new model run with the given configuration. | ModelProcessHandler runModel(RunConfiguration configuration,
ModelStatusReporter modelStatusReporter)
throws ProcessException, IOException; | [
"private static StsModel newModelFromLaunchFile(StsModel model) throws IOException\n {\n String errorMessages = \"\";\n StsProperties properties = new StsProperties();\n try\n {\n properties.readFromFile(new StsAsciiFile(StsFile.constructor(getLaunchFileName())));\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns dependencies from the given strings. | @NotNull
public static Dependency[] fromString(@NotNull String ... str) {
List<Dependency> deps = new ArrayList<>(str.length);
for (String s : str) {
Dependency dep = Dependency.fromString(s);
if (dep != null) {
deps.add(dep);
}
}
r... | [
"Set<String> getDependencies();",
"GolangDependencySet getDependencies();",
"public String[] getResolvedDependencies();",
"public static List<Depend> getDepends(String sentInfo, int id) {\n\t\tString[] lines = sentInfo.split(\"\\n\");\n\t\tList<String> depStrings = new ArrayList<>();\n\t\tList<String> poslist... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column tb_doctor_visit.visit_end_date | public void setVisitEndDate(Date visitEndDate) {
this.visitEndDate = visitEndDate;
} | [
"public void setEndDate(Date value)\n {\n\n validateEndDate(value);\n setAttributeInternal(ENDDATE, value);\n \n }",
"public Date getVisitEndDate() {\n return visitEndDate;\n }",
"public void setEndDate(Date value) {\n setAttributeInternal(ENDDATE, value);\n }",
"public void setREQ_EN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The function shall retrieve the whole history array of a specified layer. The layer is specified by its type. | public abstract void getNodesHistory(layer_type_E layer_type, double[][] history); | [
"public FabricQueryResponse<List<FabricHistory>> history(String key, String type);",
"public abstract void getNodesHistory(int idx_element, layer_type_E layer_type, double[] storage);",
"public List<LogRoomTypeHistory>getAllRoomTypeHistory(TblRoomType roomType);",
"List<HistoryData> loadAllHistoryData();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of InvoiceModel | public InvoiceModel() {
} | [
"public Invoice() {\n\t\t//\n\t}",
"public Invoice createInvoice(Order order);",
"public QrInvoice() {\n }",
"public Invoices() {\n this(DSL.name(\"invoices\"), null);\n }",
"InvoiceSpecification createInvoiceSpecification();",
"public PatientInvoice(){}",
"public GIPIWInvoice(){\n\t\t\n\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test : User.getEmail() : String | @Test
public void testGetEmail() {
assertEquals("Test : User.getEmail()", u.getEmail(), "email");
} | [
"java.lang.String getUserEmail();",
"@Test\r\n\tpublic void getEmailTest() {\r\n\t\tassertSame(usr.getEmail(), \"schmoe@gmail.com\");\r\n\t\tassertNotSame(usr.getEmail(), usr2.getEmail());\r\n\t}",
"@Test\n public void testGetEmail() {\n System.out.println(\"getEmail Test (Passing value)\");\n String exp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Takes the name of a conference and returns a reference to it. | @Override
public Conference findConference(String name) {
try {
Query query = em.createQuery(
"SELECT c FROM Conference c"
+ " WHERE c.name = :name");
query.setParameter("name", name);
List resultList = query.getResultList();... | [
"public String getConferenceID(String conferenceName);",
"public String getConferenceName(int conferenceId);",
"public Conference getConference();",
"public String getConferenceAcronym(int conferenceId);",
"ConferenceMember getConferenceMember(CallPeer peer, Component visualComponent);",
"ConferenceRoom c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to animate to toggle camera image | private void toggleCameraSwitchImage() {
RotateAnimation rotate = new RotateAnimation(180, 0, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
rotate.setDuration(300);
rotate.setInterpolator(new LinearInterpolator());
// mCameraSwitchView.startAnimation(rotate);
// ... | [
"public void toggleButtonImageCamera() {\n if (isCameraOn) {\n btnCamera.setImageResource(R.drawable.cam_on);\n } else {\n btnCamera.setImageResource(R.drawable.cam_off);\n }\n }",
"public ToggleCameraMode() {\n requires(Robot.vision);\n }",
"public void t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ return true if the object is a proxy for trading class hosted in another trade server | public boolean isProxy(); | [
"boolean isProxyTargetClass();",
"boolean hasUseAsProxy();",
"public boolean isProxy() {\n if (!hasField(PROXY)) {\n return false;\n }\n return get(PROXY, false);\n }",
"public static boolean isProxy(Object object) {\n\t\treturn object instanceof OcmProxy;\n\t}",
"boolean ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column member_profile.avatar_url | public void setAvatarUrl(String avatarUrl) {
this.avatarUrl = avatarUrl == null ? null : avatarUrl.trim();
} | [
"void setAvatarUrl(String avatarUrl);",
"public void setProfileImage() {\n int width = getContext().getResources().getDimensionPixelSize(R.dimen.user_profile_pic_size);\n int height = width;\n ImageView ivProfile = binding.userAvatar;\n RelativeLayout.LayoutParams layoutParams = (Relat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end of getPosition() method generateRandomNumber This method returns a random number between the closed interval 1 and 10 | private int generateRandomNumber() {
return (int) (10 * Math.random()) + 1; // generate random # between 1 and 10
} | [
"public void generateRandomPosition() {\n\t\tx.set((int)(Math.floor(Math.random()*23+1)));\n\t\ty.set((int)(Math.floor(Math.random()*23+1)));\n\n\t}",
"private int randomNum() {\r\n\t return((int)(Math.random() * 100));\r\n\t }",
"public int randomNumber()\n\t{\n\t\treturn (int) Math.floor( Math.random()*(H... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The FeedItem affected by this change. .google.protobuf.StringValue feed_item = 13; | public com.google.protobuf.StringValueOrBuilder getFeedItemOrBuilder() {
return getFeedItem();
} | [
"public com.google.protobuf.StringValue getFeedItem() {\n return feedItem_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : feedItem_;\n }",
"public com.google.protobuf.StringValue getFeedItem() {\n if (feedItemBuilder_ == null) {\n return feedItem_ == null ? com.google.protobuf.St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleStructOrUnion" $ANTLR start "ruleStructOrUnion" ../org.ow2.mindEd.idt.editor.textual.ui/srcgen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:352:1: ruleStructOrUnion : ( ( rule__StructOrUnion__Alternatives ) ) ; | public final void ruleStructOrUnion() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:356:2: ( ( ( rule__StructO... | [
"public final void rule__StructOrUnion__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFracta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
POST /i2csensors : Create a new i2cSensor. | @PostMapping("/i-2-c-sensors")
@Timed
public ResponseEntity<I2cSensorDTO> createI2cSensor(@Valid @RequestBody I2cSensorDTO i2cSensorDTO) throws URISyntaxException {
log.debug("REST request to save I2cSensor : {}", i2cSensorDTO);
if (i2cSensorDTO.getId() != null) {
return ResponseEnti... | [
"Sensor createSensor();",
"DeviceSensor createDeviceSensor();",
"public interface I2CPort extends IOPort, BasicSensorPort {\n\t\n public static final int STANDARD_MODE = 0;\n public static final int LEGO_MODE = 1;\n public static final int ALWAYS_ACTIVE = 2;\n \n /** Do not release the i2c bus be... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Unmarks error at this line. | public void unmarkError () {
error = false;
registerLine (1, null);
refreshState ();
} | [
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"void unsetERROR();",
"public void flagError() {\n flagError(Span.current());\n }",
"public void markError () {\n DocumentLine previous = registerLine (1, this);\n if (previous != null) {\n previous.error = false;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__PeriodicProcess__Group__8__Impl" $ANTLR start "rule__PeriodicProcess__Group__9" InternalDsl.g:16526:1: rule__PeriodicProcess__Group__9 : rule__PeriodicProcess__Group__9__Impl rule__PeriodicProcess__Group__10 ; | public final void rule__PeriodicProcess__Group__9() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:16530:1: ( rule__PeriodicProcess__Group__9__Impl rule__PeriodicProcess__Group__10 )
// InternalDsl.g:16531:2: rule__PeriodicProce... | [
"public final void rule__PeriodicProcess__Group__9__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:16542:1: ( ( ( rule__PeriodicProcess__Group_9__0 )? ) )\n // InternalDsl.g:16543:1: ( ( rule__PeriodicProcess__... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to retrieve the scope details given the scopeId | public ScopeInfoDTO getScopeInfoByScopeId(int scopeId)
throws APIMigrationException {
ScopeInfoDTO scopeInfoDTO = new ScopeInfoDTO();
try (Connection conn = APIMgtDBUtil.getConnection()) {
try (PreparedStatement ps = conn.prepareStatement(GET_SCOPE_BY_ID_SQL)) {
p... | [
"Scope getScope(String id);",
"public OntologyScope getScope(IRI scopeID);",
"Map getScope(String scopeName);",
"public String getScopeId() {\n return scopeId;\n }",
"String getScopeId();",
"public abstract String getScopeName(int id);",
"public Integer getScopeId() {\n return scopeId;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines if the delete button should be enabled for the given selection. | boolean canDeleteSelection(List<Analysis> selection) {
for (Analysis ae : selection) {
if (ae == null)
continue;
final String status = ae.getStatus();
if (!(FAILED.toString().equalsIgnoreCase(status)
|| COMPLETED.toString().equalsIgnoreCas... | [
"void setDeleteButtonEnabled(boolean isEnabled);",
"public boolean isDeleteEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn text.getSelectionCount() > 0\n \t\t\t|| text.getCaretPosition() < text.getCharCount();\n \t}",
"public boolean isDeleteButtonVisible() {\r\n\t\ti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
El parametro args recibe args[0] = dia args[1] = fechainicio args[2] = fecha fin args[3] = hora inicio args[4] = minuto inicio args[5] = hora fin args[6] = minuto fin | public Horarios crearObjetoHorario(Object args[]) {
Horarios horario = null;
String dia = args[0].toString();
Date fechaInicio = (Date) args[1];
Date fechaFin = (Date) args[2];
int horaInicio = TecladoException.getEntero(args[3].toString());
int minutoInicio = TecladoExc... | [
"public Horarios modificarObjetoHorario(Object args[], Horarios horario) {\n String dia = args[0].toString();\n Date fechaInicio = (Date) args[1];\n Date fechaFin = (Date) args[2];\n\n int horaInicio = TecladoException.getEntero(args[3].toString());\n int minutoInicio = TecladoExc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Create tests for `void remove(Dog dog)` | @Test
public void removeDogTest( ){
//given
Dog newDog = new Dog(" ", new Date(), 3);
DogHouse.add(newDog);
//when
DogHouse.remove(newDog);
Integer expectedValue= 0;
Integer actual = DogHouse.getNumberOfDogs();
//then
Assert.assertEquals(ex... | [
"@Test\n public void testRemove(){\n DogHouse testDogHouseRem = new DogHouse();\n Integer expected = 0;\n\n Dog newDog = new Dog(\"Thor\", new Date(), 23);\n testDogHouseRem.add(newDog);\n\n testDogHouseRem.remove(newDog);\n Integer actual = testDogHouseRem.getNumberOfDo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleJvmParameterizedTypeReference" $ANTLR start "entryRuleJvmArgumentTypeReference" ../org.xtext.example.helloxcore.ui/srcgen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:1869:1: entryRuleJvmArgumentTypeReference : ruleJvmArgumentTypeReference EOF ; | public final void entryRuleJvmArgumentTypeReference() throws RecognitionException {
try {
// ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:1870:1: ( ruleJvmArgumentTypeReference EOF )
// ../org.xtext.example.h... | [
"public final void entryRuleJvmArgumentTypeReference() throws RecognitionException {\n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2064:1: ( ruleJvmArgumentTypeReference EOF )\n // ../org.xtext.guicemodule... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleIterator" $ANTLR start "ruleIterator" InternalDOcl.g:2212:1: ruleIterator returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) (otherlv_1= ':' ( (lv_type_2_0= ruleOclType ) ) )? ) ; | public final EObject ruleIterator() throws RecognitionException {
EObject current = null;
Token lv_name_0_0=null;
Token otherlv_1=null;
EObject lv_type_2_0 = null;
enterRule();
try {
// InternalDOcl.g:2218:2: ( ( ( (lv_name_0_0= RULE_ID ) ) (otherlv_1= '... | [
"public final EObject entryRuleIterator() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleIterator = null;\n\n\n try {\n // InternalDOcl.g:2205:49: (iv_ruleIterator= ruleIterator EOF )\n // InternalDOcl.g:2206:2: iv_ruleIterator= ruleIterator EOF... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
9) calculatePartitionCoefficients() : Calculates and returns the partition coefficients of the stream via Raoult's Law, where K = y/x. | public double[] calculatePartitionCoefficients(Stream stream) throws FunctionException {
int componentCount = stream.getComponentCount();
double[] K = new double[componentCount];
for (int i = 0; i < componentCount; i++) {
if (stream.isComponentCondensable(i)) {
K[i] = Menu.getSpecie... | [
"private double getPartitionFunction() {\n if (partitionFunction != -1.0) {\n return partitionFunction;\n }\n\n partitionFunction = 0.0;\n Iterator<Outcome> outcomeIterator = outcomeIterator();\n while (outcomeIterator.hasNext()) {\n partitionFunction += outcomeIterator.next().getProbabilit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convertes any RenderedImage to a CacheableRed. If ri is already a CacheableRed it casts it down and returns it. In cases where ri is not already a CacheableRed it wraps ri with a helper class. The wrapped CacheableRed "Pretends" that it has no sources since it has no way of inteligently handling the dependency/dirty re... | public static CachableRed wrap(RenderedImage ri) {
if (ri instanceof CachableRed)
return (CachableRed) ri;
if (ri instanceof BufferedImage)
return new BufferedImageCachableRed((BufferedImage) ri);
return new RenderedImageCachableRed(ri);
} | [
"public static CachableRed convertToLsRGB(CachableRed src) {\n\t\tColorModel cm = src.getColorModel();\n\t\tColorSpace cs = cm.getColorSpace();\n\t\tif (cs == ColorSpace.getInstance(ColorSpace.CS_LINEAR_RGB))\n\t\t\treturn src;\n\n\t\treturn new Any2LsRGBRed(src);\n\t}",
"public static CachableRed convertTosRGB(C... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Run a task in onDrawFrame. | protected Object runOnDrawFrame(ResultRunnable task) {
assertActivityNotNull();
return mActivity.runOnDrawFrame(task);
} | [
"void drawFrame()\n\t\t{\n\t\t\tfinal SurfaceHolder holder = getSurfaceHolder();\n\n\t\t\tCanvas c = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tc = holder.lockCanvas();\n\t\t\t\tif (c != null)\n\t\t\t\t{\n\t\t\t\t\t// draw something\n\t\t\t\t\tdrawBackground(c);\n\t\t\t\t\t// drawParticles(c);\n\t\t\t\t}\n\t\t\t\tif (c != ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a wrapped GC for the given drawable. | public GC(Device device, Drawable drawable) {
this.gc = new org.eclipse.swt.graphics.GC(drawable);
this.device = device;
this.transparentColor = new Color(device, TRANSPARENT_RGB_VALUE);
this.substituteColor = new Color(device, SUBSTITUTE_RGB_VALUE);
} | [
"Drawable createDrawable(Context context, Bitmap b);",
"public SWTGraphics(GC gc) {\n this.gc = gc;\n init();\n }",
"private PetalDrawable30 createDrawable(Renderer renderer) {\n GraphicsOptions opt = new GraphicsOptions(true, false);\n drawable = new PetalDrawable30(opt, renderer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the concept associated with this answer | public Concept getConcept() {
return concept;
} | [
"public String getConcept() { return concept; }",
"String getConcept();",
"Concept getConceptType();",
"public long getConceptID () {\n\t\treturn conceptID;\n\t}",
"Concept getConcept(String id);",
"Concept getConceptName();",
"public String getConceptId();",
"default Concept getConcept(ConceptName co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the list of LayoutNodes within this partition. | public List<LayoutNode> getNodeList() {
return nodeList;
} | [
"public List<Component> getLayoutItems() {\r\n\t\treturn ComponentFactory.fromJsArray(_getLayoutItems());\r\n\t}",
"java.util.List<com.google.cloud.dataproc.v1beta2.WorkflowNode> getNodesList();",
"public Collection getAllNodes() {\n MNamespace model =\n ProjectManager.getManager().getCurrentP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XTypeLiteral__Group__4__Impl" $ANTLR start "rule__XTypeLiteral__Group__5" InternalDroneScript.g:14189:1: rule__XTypeLiteral__Group__5 : rule__XTypeLiteral__Group__5__Impl ; | public final void rule__XTypeLiteral__Group__5() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDroneScript.g:14193:1: ( rule__XTypeLiteral__Group__5__Impl )
// InternalDroneScript.g:14194:2: rule__XTypeLiteral__Group__5__Impl
... | [
"public final void rule__XTypeLiteral__Group__5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:12676:1: ( rule__X... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the name of the writeable object | @Override
public String getWriteableName() {
return NAME;
} | [
"String getWriterName();",
"java.lang.String getObjectName();",
"ObjectName nameFor(Object object);",
"String getStorableTypeName();",
"public String getObjectNameString() {\n return objectNameString;\n }",
"String getObjectRefName();",
"public UBJsonWriter name (String name) throws IOExceptio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the status of the game controllers DPad Down Y button. | public boolean getButtonDPadYD() {
return (joystick.getRawAxis(this.axisDPadY) > 0.5);
} | [
"public boolean getButtonY() {\n\t\treturn joystick.getRawButton(this.buttY);\n\t}",
"public int getYPosDown() {\n return y_pos_down;\n }",
"public JoystickButton getButtonY() {\n\t\treturn button[3];\n\t}",
"boolean getDown();",
"public boolean getYButton() {\n\t\treturn getRawButton(Y_Button);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates a serial number for a product. | public void generateSerialNumber(Product product, int uuid) {
String manufacturer = product.getManufacturer();
String manufacturerPrefix =
manufacturer.length() > 3 ? manufacturer.substring(0, 3) : manufacturer;
String paddedUuid = Util.padLeft(String.valueOf(uuid), 5, "0");
String serialNum = ... | [
"public static String generateProductID() {\n\tproductID++;\n\treturn String.valueOf(productID);\n }",
"public static int generateProductID() {\n newProductID = newProductID + 100;\n return newProductID;\n }",
"public int generateSerialNumber(){\r\n serialNumber++;\r\n return s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If reference (soft,weak or hard) cache is enabled, GC may not release references fast enough (or not at all in case of hard cache). So JDBM periodically checks amount of free heap memory. If free memory is less than 25% or 10MB, JDBM completely clears its reference cache to prevent possible memory issues. Calling this ... | public DBMaker disableCacheAutoClear(){
this.autoClearRefCacheOnLowMem = false;
return this;
} | [
"public void dereferenceCache() {\n this.cache = null;\n }",
"protected void gc() {\n if (false) {\n long last;\n long free = 1;\n Runtime runtime = Runtime.getRuntime();\n do {\n runtime.gc();\n last = free;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
====================== PUBLIC METHOD =======================// / Gets the player's disc type (0 or 1) | public int GetDiscType()
{
return discType; // Dummy return value
} | [
"String getPlayerType();",
"public PlayerTypes getPlayerType();",
"String getVolume_type();",
"java.lang.String getDiskType();",
"public PlayerType getPlayerType();",
"public Disc getPlayer1Disc() {\n\t\treturn player1Disc;\n\t}",
"int getPlayType();",
"public String getPlayerType() {\r\n retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Simple TopDown Pairing with PMX mating | public ArrayList<Chromosome> TopDownPMX(ArrayList<Chromosome> population, int numPairs)
{
for (int j = 0; j < numPairs; j++)
{
MT_father = population.get(MT_posFather);
MT_mother = population.get(MT_posMother);
MT_child1 = new Chromosome(MT_num... | [
"public ArrayList<Chromosome> TournamentPMX(ArrayList<Chromosome> population, int numPairs)\n {\n Random rnum = new Random();\n ArrayList<Chromosome> randomPop = new ArrayList<Chromosome>();\n ArrayList<Integer> randomPopIdx = new ArrayList<Integer>();\n \n for (int x = 0; ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TO CALCULATE THE TOTAL SHARE OF THE CUSTOMER | public List<CustomerDetails> totalShareCust(List<CustomerDetails> customerlist)
{
System.out.println("Total share of the customer is: ");
int temp = 0;
for(int i = 0;i < customerlist.size(); i++)
{
int share = customerlist.get(i).getNumOfShare();
temp = temp + share;
}
System.out.println(temp);
ret... | [
"@Override\n public List<Object[]> getTotalInvestmentPerCustomer() {\n return betRepository.sumInvestmentGroupByCustomerId();\n }",
"public double getTotalShares(){\n return totalShares;\n\n }",
"public double getTotalShares()\n {\n return this.totalShares;\n }",
"public List<C... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column sys_contentmain.LASTMODIFIEDDATE | public void setLastmodifieddate(Date lastmodifieddate) {
this.lastmodifieddate = lastmodifieddate;
} | [
"public void setLastmodified(Date lastmodified) {\n this.lastmodified = lastmodified;\n }",
"public void setLASTMODIFIEDDT(java.lang.CharSequence value) {\n this.LAST_MODIFIED_DT = value;\n }",
"public void setMODIFIED_DATE(Date MODIFIED_DATE) {\r\n this.MODIFIED_DATE = MODIFIED_DATE;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required int32 unLockLevel = 5; | boolean hasUnLockLevel(); | [
"int getUnLockLevel();",
"public int getUnLockLevel() {\n return unLockLevel_;\n }",
"LockLevel level();",
"public int getUnLockLevel() {\n return unLockLevel_;\n }",
"private void readUnlocked()\r\n {\r\n \t//unlocklevel = 5;\r\n //return;\r\n \t\r\n \r\n \t// t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Encode the message by tripling each character in the string | public void encodeMessage() {
for (int i = message.length() - 1; i >= 0; i--) {
message.insert(i, String.valueOf(message.charAt(i)).repeat(2));
}
} | [
"private String encodeMessage() {\n\t\tString encode = \"\";\n\t\tfor (int i = 0; i < message.length(); i++) {\n\t\t\tencode += map.get(message.charAt(i));\n\t\t}\n\t\tgenerateBack();\n\t\treturn encode;\n\t}",
"public String encode(String message){\n \n String output = \"\";\n for(int i = 0;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new object of class 'Temporal Guard'. | TemporalGuard createTemporalGuard(); | [
"public TimeConstraint() {\n\t\t// Start of user code constructor for TimeConstraint)\n\t\tsuper();\n\t\t// End of user code\n\t}",
"public Guard() {\n }",
"LogicExpression getTemporal();",
"private static DefaultTemporalDatum create() {\n final Map<String,Object> properties = new HashMap<>(4);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Number of readout requests queued for processing. | @Override
public long getNumReadoutRequestsQueued()
{
return getNumRequestsQueued();
} | [
"@Override\n public long getNumReadoutRequestsReceived()\n {\n return getNumRequestsReceived();\n }",
"long getReadRequestCount();",
"public static int getPendingRequests() {\n\t\treturn writeQueue.size() + requestsBeingSending.intValue();\n\t}",
"int getNumBufferedBytes() {\n ChannelBu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get whether the ChartView has drawn at least once | protected boolean isChartViewDrawn()
{
return mChartViewDrawn;
} | [
"boolean hasIsDraw();",
"public boolean isSetDrawResult() {\n return this.drawResult != null;\n }",
"public boolean isDrawn();",
"public boolean isSetDrawTime() {\n return this.drawTime != null;\n }",
"int getIsDraw();",
"public boolean isModelChartIsVisible();",
"public boolean getModelChartIsV... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Render function overridden from the Scene parent class. The render function should contain the draw. The function is where the user interface is drawn so it is processed by the engine. It also renders the 3D bearing model. | @Override
public void render()
{
// If the model exists, render it
if(model != null)
{
model.render(modelCamera, modelMatrix);
}
// Draw all of the user interface
nextButton.draw(uiCamera);
backButton.draw(uiCamera);
infoButton.draw(ui... | [
"private void gameRender() {\n currentScene.render(graphics);\n }",
"public void renderScene() {\n\t\tscene.ready=false;\n\t\tscene.num_points=0;\n\t\tscene.num_triangles=0;\n\t\tscene.num_tri_vertices=0;\n\t\tscene.list_of_triangles.clear(); // reset the List of Triangles (for z-sorting purposes)\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int32 number_of_leading_zeros = 8 [default = 1]; | public int getNumberOfLeadingZeros() {
return numberOfLeadingZeros_;
} | [
"public int getNumberOfLeadingZeros() {\n return instance.getNumberOfLeadingZeros();\n }",
"private static String leftPadZeroes(String s, int nZeroes){\r\n if (s.indexOf(\".\") == -1) {\r\n s = String.format(\"%\" + String.valueOf(nZeroes) +\"s\", s);\r\n } else {\r\n s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Previous Close Date' attribute. | String getPreviousCloseDate(); | [
"public java.lang.Float getPreviousClose() {\n return previousClose;\n }",
"public Date getPREV_EXP_DATE() {\r\n return PREV_EXP_DATE;\r\n }",
"public java.lang.String getPreviousValue() {\n return previousValue;\n }",
"public java.lang.String getPreviousValue() {\n return previousV... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field UserExist is set (has been assigned a value) and false otherwise | public boolean isSetUserExist() {
return this.UserExist != null;
} | [
"private boolean userExists() {\n Inventory_Users tempUser = new Inventory_Users(Username.getText().toString(), Password.getText().toString());\n return Inventory_DB.getUser(tempUser) != null;\n\n }",
"public boolean isExistingUser() {\r\n return isExistingUser;\r\n }",
"public void s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Undoes last move, will be called from a button it also reset cell states in case of undo from ended game Also resets essential game variables | public void undo() {
if (moveList.size() > 0) {
int column = moveList.get(moveList.size()-1);
int yCoordinate = getEmptyCount(column);
if (yCoordinate == size)
yCoordinate--;
//calculates exact cell position from given x Coordinate
boa... | [
"void undo() {\n if (_moveCount > 0) {\n _moveCount--;\n this.copy(positionstack.pop());\n }\n _turn = _turn.opponent();\n }",
"private void undoPosition() {\n\n if (_repeated || (positionstack.contains(this) && moveCount() != 0)) {\n _winner = _turn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the scrivanias before and after the current scrivania in the ordered set where userId = &63; and homeFlag = &63;. | public static Scrivania[] findByU_H_PrevAndNext(
autorizzazione.dir.mef.service.persistence.ScrivaniaPK scrivaniaPK,
long userId, boolean homeFlag,
OrderByComparator<Scrivania> orderByComparator)
throws autorizzazione.dir.mef.exception.NoSuchScrivaniaException {
return getPersistence()
.findByU_H_PrevA... | [
"public static List<Scrivania> findByU_H(long userId, boolean homeFlag) {\n\t\treturn getPersistence().findByU_H(userId, homeFlag);\n\t}",
"public static Scrivania[] findByU_H_P_PrevAndNext(\n\t\tautorizzazione.dir.mef.service.persistence.ScrivaniaPK scrivaniaPK,\n\t\tlong userId, boolean homeFlag, boolean profil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__EventStm__Group__1__Impl" $ANTLR start "rule__Stm__Group__0" InternalDsl.g:25949:1: rule__Stm__Group__0 : rule__Stm__Group__0__Impl rule__Stm__Group__1 ; | public final void rule__Stm__Group__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:25953:1: ( rule__Stm__Group__0__Impl rule__Stm__Group__1 )
// InternalDsl.g:25954:2: rule__Stm__Group__0__Impl rule__Stm__Group__1
... | [
"public final void rule__EventStm__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:25899:1: ( rule__EventStm__Group__0__Impl rule__EventStm__Group__1 )\n // InternalDsl.g:25900:2: rule__EventStm__Group__0__I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the requisitionNumber attribute. | public String getRequisitionNumber() {
return requisitionNumber;
} | [
"public long getRequisitionId() {\n return requisitionId;\n }",
"public String getreceiptnum() {\n return (String) getAttributeInternal(RECEIPTNUM);\n }",
"public int getM_RequisitionLine_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_RequisitionLine_ID\");\n\t\tif (ii == null)\n\t\t\tretu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets distance standard deviation fallback value to use when none can be determined from provided RSSI measurements. | public void setRssiFallbackDistanceStandardDeviation(
final double rssiFallbackDistanceStandardDeviation) throws LockedException {
if (isLocked()) {
throw new LockedException();
}
mRssiFallbackDistanceStandardDeviation = rssiFallbackDistanceStandardDeviation;
} | [
"public double getRssiFallbackDistanceStandardDeviation() {\n return mRssiFallbackDistanceStandardDeviation;\n }",
"public void setRSSI(String RSSI) {\n this.RSSI = RSSI;\n }",
"public void setRangingFallbackDistanceStandardDeviation(\n final double rangingFallbackDistanceStandard... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds new element to the description element inside the header | public Card appendDescriptionChild(Node node) {
headerDescription.appendChild(node);
if (nonNull(node)) {
header.show();
}
return this;
} | [
"com.sun.java.xml.ns.j2Ee.DescriptionType addNewDescription();",
"com.sun.java.xml.ns.j2Ee.DescriptionType insertNewDescription(int i);",
"public void addDescription(String Description) {\n this.Description[des_Count] = Description;\n ++des_Count;\n }",
"void setDescription(String newDesc) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compute the minimum spanning tree using a heap that stores the nodes of the graph. Running time: O(m log n) with better constants than Edge Heap | public static Vector<Edge> computeMinimumSpanningTreeNodeHeap(Graph g){
//minimum spanning tree
Vector<Edge> mst = new Vector<Edge>();
//defining X
int qntNodes = g.getNodes().length;
belongsToX = new boolean[qntNodes];
//initializing X
belongsToX[0] = true;
//initializing heap
HeapNo... | [
"public static Vector<Edge> computeMinimumSpanningTreeEdgeHeap(Graph g){\r\n\t\t//minimum spanning tree\r\n\t\tVector<Edge> mst = new Vector<Edge>();\r\n\r\n\t\t//defining X\r\n\t\tint qntNodes = g.getNodes().length;\r\n\t\tbelongsToX = new boolean[qntNodes];\r\n\r\n\t\t//initializing X\r\n\t\tbelongsToX[0] = true;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Resets all properties to their default values. | public static void reset()
{
Properties[] props = Properties.values();
for ( Properties prop : props )
prop.setProperty( prop.getDefaultValue() );
} | [
"public void resetAllProperties() {\n\t\tthis.getDate().set(\"\");\n\t\tthis.getDescription().set(\"\");\n\t\tthis.getAmount().set(\"\");\n\t}",
"public void reset() {\n\t\tlogger.fine(\"reset properties....\");\n\n\t\tproperties = null;\n\t\tloadProperties();\n\t}",
"public final void resetToDefaults() {\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Factory for Spring to configure the EntityManager. | @Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory() {
LocalContainerEntityManagerFactoryBean entityManagerFactory = new LocalContainerEntityManagerFactoryBean();
entityManagerFactory.setDataSource(dataSource);
entityManagerFactory.setJpaDialect(hibernateJpaDialect());
entityManagerFactor... | [
"public EntityManagerFactory createEntityManagerFactory() {\n \t\tconfigure( cfg.getProperties(), new HashMap() );\n \t\treturn buildEntityManagerFactory();\n \t}",
"public EntityManagerFactory createEntityManagerFactory() {\n\t\tconfigure( cfg.getProperties(), new HashMap() );\n\t\treturn buildEntityManagerFacto... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get caller by caller id | public CallerDTO getCallerByCallerId(Long id); | [
"public static StackTraceElement getCaller(final int offset) {\r\n final StackTraceElement[] stes = Thread.currentThread().getStackTrace();\r\n StackTraceElement callerSTE = null;\r\n for (int i = 0; i < stes.length - offset - 1; i++) {\r\n if (stes[i].getClassName().equals(NullCheck... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'field559' field | public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField559() {
field559 = null;
fieldSetFlags()[559] = false;
return this;
} | [
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField591() {\n field591 = null;\n fieldSetFlags()[591] = false;\n return this;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField564() {\n field564 = null;\n fieldSetFlags()[564] = false;\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column outstorage.id_recorder | public void setIdRecorder(String idRecorder) {
this.idRecorder = idRecorder == null ? null : idRecorder.trim();
} | [
"public String getIdRecorder() {\n return idRecorder;\n }",
"void setRecorder(org.hl7.fhir.ResourceReference recorder);",
"public void setIdOutstorage(String idOutstorage) {\n this.idOutstorage = idOutstorage == null ? null : idOutstorage.trim();\n }",
"public void setVadRecorder(){\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'readGroupId' field | public org.ga4gh.models.ReadAlignment.Builder setReadGroupId(java.lang.CharSequence value) {
validate(fields()[1], value);
this.readGroupId = value;
fieldSetFlags()[1] = true;
return this;
} | [
"public void setReadGroupId(java.lang.CharSequence value) {\n this.readGroupId = value;\n }",
"public java.lang.CharSequence getReadGroupId() {\n return readGroupId;\n }",
"public java.lang.CharSequence getReadGroupId() {\n return readGroupId;\n }",
"public org.ga4gh.models.ReadAlignment.Build... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks that 'element' is typecompatible with its parent | @objid ("f97cc4dd-4205-4c56-b202-a1c9c82af5ca")
private void doCheckParent(AnalystElement element, final IErrorReport report) {
AnalystItem parent = (AnalystItem) element.getCompositionOwner();
if (parent != null) {
checkType(parent, element, report);
}
// orphan treated ... | [
"private void checkType(Object element) {\n if (element != null) {\n if (!Beans.isInstanceOf(element, listObjectType)) {\n throw new RuntimeException(\"element is not of correct type.\");\n }\n }\n }",
"private boolean isInnerType(IModelElement element) {\n \n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Is the collector host external to the cluster? | public boolean isCollectorHostExternal(String clusterName); | [
"boolean isCollectorHostLive(String clusterName, MetricsService service) throws SystemException;",
"boolean isExposedWithClusterIP() {\n return ListenersUtils.hasClusterIPListener(listeners);\n }",
"public boolean isSetHost() {\r\n return this.host != null;\r\n }",
"private static boolean ch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleJvmTypeReference" $ANTLR start "entryRuleXFunctionTypeRef" ../org.xtext.lwc.instances.ui/srcgen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1591:1: entryRuleXFunctionTypeRef : ruleXFunctionTypeRef EOF ; | public final void entryRuleXFunctionTypeRef() throws RecognitionException {
try {
// ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1592:1: ( ruleXFunctionTypeRef EOF )
// ../org.xtext.lwc.instances.ui/src-gen/org/xtext/l... | [
"public final void entryRuleXFunctionTypeRef() throws RecognitionException {\n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1926:1: ( ruleXFunctionTypeRef EOF )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
When supplied a given item, it will return the index at which that item is located in the linked list. Returns 1 if that item can't be found in the list | public int indexOf(E item) {
int count = 0;
Node p = first;
for (count = 0; p.item != item; count++) {
p = p.next;
}
if (p.item == item) return count;
else return -1;
} | [
"public int getIndexOfItem(T item) {\n int index = -1;\n\n Iterator<T> iterator = this.iterator();\n for (int i = 0; iterator.hasNext(); i++) {\n if (item == iterator.next()) {\n index = i;\n break;\n }\n }\n\n return index;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Is the given data authority included in the filter? Note that if the filter does not include any authorities, false will always be returned. | public final boolean hasDataAuthority(Uri data) {
return matchDataAuthority(data) >= 0;
} | [
"public boolean hasAuthority(String authority) {\r\n for (GrantedAuthority role : authorities) {\r\n if (role.getAuthority().equals(authority)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public static boolean isCurrentUserInRole(String au... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allow to sort by score | public void sortByScore() {
scores.sort(Score.ComparatorScore);
} | [
"private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }",
"private void sortScores() {\r\n ScoreComparator comparator = new ScoreComparator();\r\n Collections.sort(savedHighScoresList, comparator);\r\n }",
"public void sor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert a Java object to a Saxon Item | public Item convertToItem(Object value) throws XQException {
try {
if (value instanceof Boolean) {
return BooleanValue.get(((Boolean)value).booleanValue());
} else if (value instanceof byte[]) {
return new HexBinaryValue((byte[])value);
} else ... | [
"Item convertToItem(Object value) throws XQException;",
"public Item convertToItem(Object value, XQItemType type) throws XQException;",
"public Item convertToItem(Object value, XQItemType type) throws XQException {\n if (((SaxonXQItemType)type).getSaxonItemType() instanceof ExternalObjectType) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a temporary location and mapset(s) for GRASS data processing. A minimal set of folders and files is created in the system's default temporary directory. The settings files are written with sane defaults, so GRASS can do its work. File structure and content will vary slightly depending on whether the user wants ... | public static void createTempMapset() throws IOException {
final boolean bIsLatLon = new Boolean(SextanteGUI.getSettingParameterValue(SextanteGrassSettings.GRASS_LAT_LON_MODE)).booleanValue();
final String tmpFolder = new String(getGrassMapsetFolder().substring(0, getGrassMapsetFolder().lastIndexOf(File... | [
"public static void createTempMapsetName() {\r\n UUID id;\r\n String tmpPrefix;\r\n String tmpSuffix;\r\n String tmpBase;\r\n String tmpFolder;\r\n\r\n id = UUID.randomUUID();\r\n tmpPrefix = new String(GrassUtils.TEMP_PREFIX);\r\n tmpSuffix = new String(\"_\" + id);\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns whether it is possible to read an ExpGolombcoded integer starting from the current offset. The offset is not modified. | public boolean canReadExpGolombCodedNum() {
int initialByteOffset = byteOffset;
int initialBitOffset = bitOffset;
int leadingZeros = 0;
while (byteOffset < byteLimit && !readBit()) {
leadingZeros++;
}
boolean hitLimit = byteOffset == byteLimit;
byteOffset = initialByteOffset;
bitOf... | [
"public int readSignedExpGolombCodedInt() {\n int codeNum = readExpGolombCodeNum();\n return ((codeNum % 2) == 0 ? -1 : 1) * ((codeNum + 1) / 2);\n }",
"public int readUnsignedExpGolombCodedInt() {\n return readExpGolombCodeNum();\n }",
"@SuppressWarnings(\"SimplifiableIfStatement\")\n public stat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inserts the specified double value at the specified position in this List. | public Tree insert(int index, double value) {
return insertObjectInternal(index, value);
} | [
"void appendDouble(double value);",
"public Buffer putDouble(int index, double value);",
"public StringBufferFast insert(int offset, double d) {\r\n\treturn insert(offset, String.valueOf(d));\r\n }",
"public Any insert(double data) throws DevFailed\n\t{\n\t\tAny out_any = alloc_any();\t\n\t\tout_any.insert... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column public.user.name | @Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-04-12T12:59:05.835+09:00", comments = "Source field: USER.name")
public String getName() {
return name;
} | [
"public String getUserName()\n throws SQLException\n {\n // The SimpleText driver does not support user names\n\n return \"\";\n }",
"public String getUser() {\r\n return this.jdbcSG.getSGFactory().getGenerator().getProperty(\"jdbc.user\", user);\r\n }",
"public String getuserName... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Duration Uom Id' attribute. If the meaning of the 'Duration Uom Id' attribute isn't clear, there really should be more of a description here... | String getDurationUomId(); | [
"public String getDurationUnit() {\n\t\treturn (String) get_Value(\"DurationUnit\");\n\t}",
"java.lang.String getDuration();",
"public String getDurationUnitCd()\n {\n return durationUnitCd;\n }",
"String getDuration();",
"long getDurationUsec();",
"public String getActivityDurationUnitCd()\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo para resetear el estado del zookeeper | private void reset(ZooKeeper zk) {
try {
System.out.println("Reseting Znodes...");
for (int j= 0; j<nodesreset.length; j++) {
Stat s = zk.exists(nodesreset[j],false);
if (s != null) {
zk.delete(nodesreset[j],s.getVersion());
System.out.println("----- node: " + nodesreset[j]);
Sy... | [
"public void resetState();",
"public void resetStartup();",
"public void resetHora();",
"public synchronized void reset() {\n\t\tthis.killed = true;\n\t\tthis.reset = true;\n\t\t\n\t\tlogger.debug(\"reset(): Reset the \" + this.nodeId);\n\t}",
"public void resetMachine()\n {\n // openSession().res... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To get Key Pattern. | public String getKeyPattern() {
return this.keyPattern.getValue();
} | [
"public KeyPattern getKeyPattern()\n {\n return keyPattern;\n }",
"public Label getKeyPatternLabel() {\n\t\treturn keyPatternLabel;\n\t}",
"public TextBox getKeyPatternTextBox() {\n\t\treturn keyPattern;\n\t}",
"private static String createPattern(String key) {\n// return \"\\\\s*?(\" + ke... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtiene el indicador de servicios FarmaSix | public static String getIndServicioFarmaSix() throws SQLException {
parametros = new ArrayList();
parametros.add(FarmaVariables.vCodGrupoCia);
parametros.add(FarmaVariables.vCodCia);
parametros.add(FarmaVariables.vCodLocal);
log.debug("PTOVENTA_GRAL.GET_IND_FARMASIX:" + parametro... | [
"public void recuperarFacturasCliente(){\n String NIF = datosFactura.recuperarFacturaClienteNIF();\n ArrayList<Factura> facturas = almacen.getFacturas(NIF);\n if(facturas != null){\n for(Factura factura : facturas) {\n System.out.println(\"\\n\");\n Syst... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Validate business logic specific to destination | @Override
protected List<Map<String, Object>> validateCommonBusinessConstraints(Destination destination){
List<Map<String, Object>> errors = Lists.newArrayList();
if(Objects.nonNull(destinationRepository.findByName(destination.getName()))) {
errors.add(createError("name", ErrorCode.DUPL... | [
"private void validateDestination(ATMSparrowMessage atmSparrowMessage, BankFusionEnvironment env) {\n\n ArrayList params = new ArrayList();\n params.add(atmSparrowMessage.getCardDestBranchCode());\n params.add(atmSparrowMessage.getCardDestCountryCode());\n params.add(atmSparrowMessage.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determine whether the axes are to be matched independently of each other | public abstract boolean areAxesIndependent(); | [
"protected abstract boolean isSingleAxes();",
"protected boolean isSingleAxes() {\r\n DatasetXtoY d0;\r\n DatasetXtoY d1;\r\n\r\n d0 = (DatasetXtoY) primaryDataset;\r\n // check the x axis of all the datasets and return false if any differ\r\n for (int i = 1; i < dataset.size(); i++) {\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
When section name string contains ']'. | @Test(
expectedExceptions = IllegalArgumentException.class,
expectedExceptionsMessageRegExp = "Section name must not contain square brackets"
)
public void testSectionNameSquareBracketClose() {
ConfigModel.expect(Object.class).section("some]name");
} | [
"@Test(\n expectedExceptions = IllegalArgumentException.class,\n expectedExceptionsMessageRegExp = \"Section name must not contain square brackets\"\n )\n public void testSectionNameSquareBracketOpen() {\n ConfigModel.expect(Object.class).section(\"some[name\");\n }",
"public ReaderContext<T> inSe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove the notification at a given index. | public void removeNotification(int index) {
// Mark the notifications as read if one is removed.
markNotificationsAsRead();
// Remove the notification at the given index.
notifications.remove(index);
} | [
"public void remove(int index);",
"private void delete(int index) {\r\n notes.remove(index);\r\n }",
"public void removeAtIndex(int i) {\r\n reminderList.remove(i);\r\n }",
"public void deleteMessage(int index)\n {\n m_inbox.remove(index);\n \n }",
"@Override\n public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the Jena model and adds standard prefixes. | private void initializeModel() {
try {
if (model != null) model.close(); // Just in case
} catch (Exception ignored) {}
model = ModelFactory.createDefaultModel();
model.setNsPrefix("rdfs", RDFS.getURI());
model.setNsPrefix("skos", SKOS.getURI());
model.setNsPrefix("xkos", XKOS.getURI());
logger.debu... | [
"private void init() {\n\t\tthis.model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\tthis.model.setNsPrefixes(INamespace.NAMSESPACE_MAP);\n\n\t\t// create classes and properties\n\t\tcreateClasses();\n\t\tcreateDatatypeProperties();\n\t\tcreateObjectProperties();\n\t\t// createFraktionResources();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column T_IM_MANUFACTURERECBILLENTRY.FSOURCEBILLNUMBER | public void setFsourcebillnumber(Object fsourcebillnumber) {
this.fsourcebillnumber = fsourcebillnumber;
} | [
"public void setFsourcebillid(Object fsourcebillid) {\n this.fsourcebillid = fsourcebillid;\n }",
"public Object getFsourcebillnumber() {\n return fsourcebillnumber;\n }",
"public void setFromNumber(java.lang.String fromNumber)\n {\n synchronized (monitor())\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the translation manager | public TranslatorManager getManager(); | [
"LocalizationManager getLocalizationManager();",
"public static I18nManager getManager() {\n \n if(instance == null)\n instance = new I18nManager();\n \n return instance;\n }",
"protected final LanguageManager getLanguageManager() {\r\n return this.languageManager;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Can support "undo" in the future, which would just involve deleting the alert config from the content database. | public DeployAlertConfigsCommand() {
setExecuteSortOrder(SortOrderConstants.DEPLOY_ALERT_CONFIGS);
setDeleteResourcesOnUndo(false);
} | [
"private void interruptAlertsAndContent() {\n if (isAlarming()) {\n alertState = AlertState.INTERRUPTED;\n }\n\n interruptContent();\n }",
"@Override\n\tpublic void undo(DeleteEntryAction action, DeleteEntryResult result, ExecutionContext context) throws ActionException {\n\t}",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the pcdEntry value for this PcdXmlRs_Type. | public void setPcdEntry(com.cft.hogan.platform.ppm.services.pcd.service.client.PcdEntry pcdEntry) {
this.pcdEntry = pcdEntry;
} | [
"public com.cft.hogan.platform.ppm.services.pcd.service.client.PcdEntry getPcdEntry() {\n return pcdEntry;\n }",
"public void setEntryTyp(String entryTyp) {\n this.entryTyp = entryTyp;\n }",
"public void setJposEntryProp( JposEntryProp entry ) \r\n { \r\n if( entry == null ) return;\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Message when you successfully take an object. | public static final String takeSuccessMessage(String objName) {
return "You take the " + objName + ".";
} | [
"public void executeTakeCommand(AdvObject obj) {\r\n\t\t\r\n\t\tif (obj != null) {\r\n\t\t\tif (currentRoom.containsObject(obj)) {\r\n\t\t\t\tcurrentRoom.removeObject(obj);\r\n\t\t\t\tplayerInventory.add(obj);\r\n\t\t\t\tSystem.out.println(\"Taken.\");\r\n\t\t\t} else { System.out.println(\"I don't see any \" + obj... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the student_how to know b m of this primary school student. | public void setStudent_howToKnowBM(java.lang.String student_howToKnowBM) {
_primarySchoolStudent.setStudent_howToKnowBM(student_howToKnowBM);
} | [
"public void setStudent_penalty(java.lang.String student_penalty) {\n\t\t_primarySchoolStudent.setStudent_penalty(student_penalty);\n\t}",
"public void setStudent(Student student) {\r\n\t\tthis.student = student;\r\n\t}",
"public void setStudent(Student student) {\n\t\tthis.student = student;\n\t}",
"public v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor of the naive absolute positioning filter. | public AbsolutePositioningNaiveFilter(int id, float T,
Buffer unifiedBuffer, BillBoard billboard) {
// Call constructor of super class
super(id, T, unifiedBuffer, billboard);
} | [
"public void absolute()\r\n\t{\r\n\t\tif (X < 0) X *= -1;\r\n\t\tif (Y < 0) Y *= -1;\r\n\t\tif (Z < 0) Z *= -1;\r\n\t}",
"public SunRelativePosition() {\n }",
"public GameFilter() {\r\n\t\tthis.category = 1;\r\n\t\tthis.mask = Long.MAX_VALUE;\r\n\t\tthis.v1 = null;\r\n\t\tthis.v2 = null;\r\n\t\tthis.noJoints... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ExtendedObject__Group__5" $ANTLR start "rule__ExtendedObject__Group__5__Impl" InternalJSchema.g:1525:1: rule__ExtendedObject__Group__5__Impl : ( '}' ) ; | public final void rule__ExtendedObject__Group__5__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalJSchema.g:1529:1: ( ( '}' ) )
// InternalJSchema.g:1530:1: ( '}' )
{
// InternalJSchema.g:1530:1: ( '}' )
... | [
"public final void rule__ExtendedObject__Group__5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalJSchema.g:1518:1: ( rule__ExtendedObject__Group__5__Impl )\n // InternalJSchema.g:1519:2: rule__ExtendedObject__Group__5__Im... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Returns ArrayList version2WithLineNumbers | public List<String> getAGBVersion2WithLineNumbers(); | [
"public List<String> getAGBVersion1WithLineNumbers();",
"java.util.List<x0101.oecdStandardAuditFileTaxPT1.SourceDocumentsDocument.SourceDocuments.SalesInvoices.Invoice.Line> getLineList();",
"public void showAGBVersion2WithLineNumbers();",
"public void readAGBVersionsWithLineNumbers();",
"public List<Intege... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/this method checks if the person has been processed before; if the student has, then nothing gets printed and "arraySpot" (current spot number in the studentList) gets decreased by 1. If the student hasn't, the else statement activates | public static int printResults(String name,long id,int arraySpot,Student [] studentList){
//check if the person has been
boolean samePerson = idCheck(name,id,arraySpot,studentList);
if(samePerson!=false){
/*this will set up the next student after the current
... | [
"@SuppressWarnings(\"Duplicates\")\n private static void removeStudents() {\n if (FinalStudent.size() == 0) {\n System.out.println(\"\\nYou don't have any students in your roster. Let's add some.\\n\");\n ManageStudents.addStudents();\n }\n\n StringPrompt stringPrompt =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stores a byte in text snapshot at position index | public void setTextSnapshot(int index, byte data)
{
this.videocard.textSnapshot[index] = data;
} | [
"public byte getTextSnapshot(int index)\n {\n return this.videocard.textSnapshot[index];\n }",
"public Buffer put(int index, byte b);",
"public int sqlite3_blob_write(Pointer pblob, ByteBuffer z, int n, int iOffset);",
"public void setVideoBufferByte(int index, byte data)\n {\n this.vid... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets (as xml) the "SignatureProviderId" element | com.microsoft.schemas.office.x2006.digsig.STUniqueIdentifierWithBraces xgetSignatureProviderId(); | [
"java.lang.String getSignatureProviderId();",
"org.apache.xmlbeans.XmlInt xgetSignatureProviderDetails();",
"String getProviderId( );",
"int getSignatureProviderDetails();",
"org.apache.xmlbeans.XmlString xgetClaimId();",
"com.microsoft.schemas.office.x2006.digsig.STSignatureProviderUrl xgetSignatureProvi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table PM_KEY | PmKeyDbObj selectByPrimaryKey(Integer pmKeyId); | [
"String getKeyColumn();",
"public String getKeycolumn();",
"protected String getKeyColumn()\n \t{\n \t\treturn p_keyColumn;\n \t}",
"Object generateKey(Connection conn, String tableName, String primKeyName)\r\n throws PersistenceException;",
"org.apache.calcite.avatica.proto.Common.DatabaseProperty getKe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
test the setHasHeard method when it is true and false | public void testSetHasHeard() {
assertEquals(true, response.getHasHeard());
response.setHasHeard(false);
assertEquals(false, response.getHasHeard());
} | [
"public void testGetHasHeard() {\n assertEquals(true, response.getHasHeard());\n }",
"boolean hasHandFlag();",
"public boolean isProvidesHearing() {\n\t\treturn providesHearing;\n\t}",
"boolean isSetStraight();",
"public boolean isHeaterOn() {\r\n return heaterOn;\r\n }",
"public boole... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the executed commands count. | public int commandCount(); | [
"public int countCommands() {\r\n return commands.size();\r\n }",
"public int getCommandCount() {\n return this.commands.size();\n }",
"public int countCommands(){\n if(this.commands==null){\n return 0;\n }\n \n return this.commands.length;\n }",
"public int getNumberOfCo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
map<string, string> appClientParas = 15; | java.util.Map<java.lang.String, java.lang.String>
getAppClientParas(); | [
"public java.util.Map<java.lang.String, java.lang.String> getAppClientParas() {\n return internalGetAppClientParas().getMap();\n }",
"public java.util.Map<java.lang.String, java.lang.String> getAppClientParas() {\n return internalGetAppClientParas().getMap();\n }",
"public Map retrieveApplic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the first grid record | GridRecord getFirstRecord() {
return records.get(0);
} | [
"public int getFirstRecordIndex();",
"@VisibleForTesting\n Cell first() {\n return this.getCellSet().first();\n }",
"public Row getFirstRow()\n\t{\n\t\treturn firstRow;\n\t}",
"public int getFirstRow() {\n return firstRow;\n }",
"public CellPanel getFirstCell() {\n\t\treturn cells.get(0);\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Asks the player which production powers to activate. | void activateProduction(List<ProductionPower> productionPowers); | [
"EDataType getActivePower();",
"public void activatePowerup(Powerup p)\r\n\t{\r\n\t\thasPowerup = true;\r\n\t\tcurrentPowerup = p;\r\n\t}",
"@Override\n public boolean canProvidePower()\n {\n return true;\n }",
"public boolean canProvidePower()\n {\n return true;\n }",
"public b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |