query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Returns true or false if the tree is empty or not. | public boolean isEmpty() {
return root == null;
} | [
"public boolean empty () {\r\n return (this.root == null);\r\n }",
"public boolean isEmpty() {\n return bTree.isEmpty();\n }",
"public boolean isEmpty()\r\n {\r\n // check if the root is null, if so then the tree is empty\r\n return BST_Root == null;\r\n }",
"public bool... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Contexts: ArrayType returns ArrayType Constraint: length=Cardinality? | protected void sequence_ArrayType(ISerializationContext context, ArrayType semanticObject) {
genericSequencer.createSequence(context, semanticObject);
} | [
"public abstract ArrayType arrayOf (final Integer length);",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/AST/ASTContext.cpp\", line = 2779,\n FQN=\"clang::ASTContext::getDependentSizedArrayType\", NM=\"_ZNK5clang10ASTContext26getDependentSizedArrayTypeENS_8QualTypeEPN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to handle events for the AdjustmentListener interface. | public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e) {
// user code begin {1}
// user code end
if ((e.getSource() == getSpeedScrollbar()) ) {
connEtoC2(e);
}
if ((e.getSource() == getCostScrollbar()) ) {
connEtoC3(e);
}
// user code begin {2}
// user code end
} | [
"public void adjustmentValueChanged(AdjustmentEvent arg0) {\n\t\t\t\r\n\t\t}",
"public void adjustmentValueChanged(AdjustmentEvent e) {\n\t\t\t\tcolor[0] = e.getValue();\r\n\t\t\t\tsetTextField();\r\n\t\t\t\tsetBackGroundPanel();\r\n\t\t\t}",
"public void adjustmentValueChanged(AdjustmentEvent event) {\n\t\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column F_TABLECOLUMN.ISDELETE | public void setIsdelete(BigDecimal isdelete) {
this.isdelete = isdelete;
} | [
"public void setIsdelete(String isdelete) {\n this.isdelete = isdelete;\n }",
"@Override\n\tpublic void setIsDelete(int isDelete) {\n\t\t_dmHistoryShipAgency.setIsDelete(isDelete);\n\t}",
"public void setIsDeleted(boolean is_deleted) {\n\t\tthis.is_deleted = is_deleted;\n\t}",
"@Column(name = \"Flag... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleMergeNode" $ANTLR start "entryRuleDecisionNode" InternalActivityDsl.g:453:1: entryRuleDecisionNode : ruleDecisionNode EOF ; | public final void entryRuleDecisionNode() throws RecognitionException {
try {
// InternalActivityDsl.g:454:1: ( ruleDecisionNode EOF )
// InternalActivityDsl.g:455:1: ruleDecisionNode EOF
{
before(grammarAccess.getDecisionNodeRule());
pushFollo... | [
"public final void entryRuleComparingRelOperator() throws RecognitionException {\r\n try {\r\n // InternalCrySL.g:929:1: ( ruleComparingRelOperator EOF )\r\n // InternalCrySL.g:930:1: ruleComparingRelOperator EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Opens and parses an SLK stream, making its contents accessible and changeable | public SLKFile(InputStream stream) throws IOException, InvalidRecordFieldException, InvalidRecordException {
slkReader=new BufferedReader(new InputStreamReader(stream));
slkReader.mark(stream.available()+1);
initialize();
} | [
"public void fromInputStream(SLPInputStream stream) throws ServiceLocationException {\n // read from stream\n try {\n stream.readByte(); // length part 1\n length = stream.readShort(); // find length of message\n flags = stream.readByte(); // flags\n stream.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GENLAST:event_OptionActionPerformed Build selected modules | private void jButtonBuildActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuildActionPerformed
// we want to build
String buildlist=getBuildList();
if(buildlist==null){
return;
}
// we have list of modules as a commaseparated string
Ha... | [
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n mainModule = new javax.swing.JTextField();\n browse = new javax.swing.JButton();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interpolating Curve Iterates to a changing setpoint in a certain amount of time. | public BezierCurveInterpolator(double deltaTime, BezierCurve curve) {
this.deltaTime = deltaTime;
this.curve = curve;
setSetpoint(0, true);
} | [
"public final static synchronized void update() {\n\t\tfor (int i=0;i<interpolate_time.length;++i) {\n\t\t\tinterpolate_time[i] += 0.05;\n\t\t\tif (interpolate_time[i]>1.0) {\n\t\t\t\tinterpolate_time[i] = 1.0;\n\t\t\t}\n\t\t}\n\t}",
"public void advancePoints() {\n\t\t\tfor (MovingPoint mp : points) {\n\t\t\t\tm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete the "id" situationCovid. | void delete(Long id); | [
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Competency : {}\", id);\n competencyRepository.deleteById(id);\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Citerne : {}\", id);\n citerneRepository.delete(id);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
OnAction botones del panel principal del administrador | @FXML
void onGestionarUsuario(ActionEvent event) {
panelListaProductos.setVisible(false);
panelGestionarUsuario.setVisible(true);
comboBoxProductos.setVisible(false);
} | [
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\r\n\t\t\t\tif(combo==\"Administrador\") {\r\n\t\t\t\t\tadmin();\r\n\t\r\n\t\t\t\t}\r\n\t\t\t}",
"public void abrirManualDeUsuario(ActionEvent actionEvent) {\n }",
"protected void onAction(User sender, Channel channel, String action... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The number of points at which we explore the value of the satisfaction function. These will be the test points in the GP. | public void setNumberOfTestPoints(int datapoints) {
this.numberOfTestPoints = datapoints;
testpoints = null;
} | [
"int getNPoints() {\n\t\treturn x_ == null ? 0 : x_.length;\n\t}",
"public int getNumPoints() {\n return 2;\n }",
"public double getNumberOfPoints() {\n return numberOfPoints;\n }",
"@Override\n\tpublic int nbPoints() {\n\t\t\n\t\treturn 2;\n\t}",
"public int numPoints() {\n ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called once to create the Focus | @Override
protected Focus<DataSession> createFocus
(Focus<?> parentFocus)
throws BindException
{
this.attributeName=this.getPath().format("/")+"!"+
(dataType!=null?dataType.getURI():"");
// XXX Replace with XML binding
dataSessionChannel
=new ThreadLocalChannel<DataSession... | [
"protected void focus() {\n\n\t}",
"@Override\n public void onFocus() {\n this.activate();\n }",
"@Override\r\n protected void requestFocus() {\n }",
"public void setFocus()\n \t{\n \t}",
"public void setFocus() {\n \t\tdoSetFocus();\n \t}",
"protected FocusListener crea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all children by children type of a feature. | public static Map<String, List<Feature>> getChildren(Feature parent) {
Map<String, List<Feature>> children = new HashMap<String, List<Feature>>();
children.put(ARFModelConstants.MANDATORY, new ArrayList<Feature>());
children.put(ARFModelConstants.OPTIONAL, new ArrayList<Feature>());
children.put(ARF... | [
"public ReactorResult<RDFData> getAllChildrenfeatures_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), CHILDRENFEATURES, RDFData.class);\r\n\t}",
"List<FilteredChildAgentRollup> children();",
"public List<DataObject> getChildren(int childType) {\r\n\t\treturn childTypes.get(childType).getChil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to get user input. | public void addMessage(View v) {
input = (EditText) findViewById(R.id.messageInput);
message = input.getText().toString();
sendMessage(v);
msg.setText(message);
} | [
"public String retrieveUserInput() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextLine();\n }",
"public String getUserInput() {\n\n\t\t// store return value\n\t\tString strUserChoice;\n\n\t\t// create new scanner\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\t// get the... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'String Representation' attribute. If the meaning of the 'String Representation' attribute isn't clear, there really should be more of a description here... | String getStringRepresentation(); | [
"@Override\n public String toString() {\n return stringRepresentation;\n }",
"@Override\n public String toString() {\n return stringRepresentation;\n }",
"public String represent();",
"public String GetRawString ()\n {\n return raw_string;\n }",
"public String getAsString(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the rotation angle in radians. | public void setTheta(double _theta) {
theta = _theta;
} | [
"protected void setAngle(double angle) {\n\t\tthis.angle = angle;\n\t}",
"public void setAngle(float _angle){\n compass.setAngle(_angle);\n }",
"public void setAngle(float angle) {\r\n\t\tthis.angle = angle;\r\n\t}",
"public void setAngle(double a) {\n dangle = a; // Angle in degree\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the last numOfDays Days of data of the friend with the specified ID, calling the passed in callback with the resulting List of Day, or null if the server request failed. | @Override
public void getFriendDays(String friendID, int numOfDays, Callback<List<Day>> dayCallback) {
List<Day> days = new ArrayList<Day>();
TimeStamper ts = new ConcreteTimeStamper();
for( int i = 0; i < numOfDays; i++ ) days.add(new Day(5000, 10, 5, ts.now()));
dayCallback.call(d... | [
"public java.util.List<? extends SteammessagesClientserver2.CMsgClientUGSGetGlobalStatsResponse.DayOrBuilder> \n getDaysOrBuilderList() {\n return days_;\n }",
"long getMaxDays();",
"public java.util.List<SteammessagesClientserver2.CMsgClientUGSGetGlobalStatsResponse.Day> getDaysList() {\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field success is set (has been assigned a value) and false otherwise | public boolean isSetSuccess() {
return this.success != null;
} | [
"public boolean hasSuccessValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasSuccessValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isSetSuccess() {\n return __isset_bit_vector.get(__SUCCESS_ISSET_ID);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tell the Inverter that we're no longer interested in recieving notification when new models are found. | public void removeModelObserver(ModelObserver listener); | [
"protected void addNotify() {\n //do nothing\n }",
"public void acceptModelChangeNotification(Notification nt) {\n\t\t\n\t}",
"public void notifyNoCheck() {\r\n inCheck = false;\r\n }",
"public void removeNotify () {\n super.removeNotify();\n for (int i = 0; i < systems.lengt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional uint32 days_cached = 5; | public Builder setDaysCached(int value) {
bitField0_ |= 0x00000010;
daysCached_ = value;
onChanged();
return this;
} | [
"int getOnlineStorageTtlDays();",
"long getDefaultExpire();",
"private static int getTimeToLiveOfCacheEntries() {\n int timeToLive=3600; // one hour by default\n \n String ttl = Faces.getInitParameter(TIME_TO_LIVE_CONTEXT_PARAM);\n if (null !=ttl) {\n try {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates a new array from an array received as an argument excluding the original array's [index]. | public static int[] removeIndex(int [] original, int index) {
int [] array = new int [original.length - 1];
int j = 0;
for (int i = 0; i < array.length; i++) {
if (i == index) {
j++;
}
array[i] = original[j];
j++;
}... | [
"private String[] arrRemove(String[] original, int ignoreIndex){\r\n return arrRemove(original, original[ignoreIndex]);\r\n }",
"@NotNull\n public static <T> T[] remove ( @NotNull final T[] array, final int index )\n {\n final T[] newArray = createArray ( array, array.length - 1 );\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the postPartitionSearchAsStream operation with null options model parameter | @Test(expectedExceptions = IllegalArgumentException.class)
public void testPostPartitionSearchAsStreamNoOptions() throws Throwable {
// construct the service
constructClientService();
server.enqueue(new MockResponse());
// Invoke operation with null options model (negative test)
cloudantService.... | [
"@Override\n public void testPartition() {\n\n }",
"@Test\n public void testPartitionableInputOperator() throws Exception\n {\n hasFailure = false;\n testInputOperator(false);\n }",
"@Test(dependsOnMethods = \"testPartitionRouting\")\n public void testNonPartitionedStream()\n throws Excepti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converts API response into object and returns the object array in case of get request. | protected base_resource[] get_nitro_response(nitro_service service, String response) throws Exception
{
br_restoreconfig_response result = (br_restoreconfig_response) service.get_payload_formatter().string_to_resource(br_restoreconfig_response.class, response);
if(result.errorcode != 0)
{
if (result.erro... | [
"protected Object parseResponseToObject(Class type) throws BISServiceException {\n\t\tObject obj = null;\n\t\ttry {\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\tmapper.configure(DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES, false);\n\t\t\tString apiResponse = getRawServiceResponse();\n\t\t\tobj = t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
constructeur sans arguments (surcharge dans la classe de base) | PBD( )
{
this(0.0,0.0);
} | [
"public Nurikabe(){\n\t}",
"public Copome() {\r\n\t}",
"private Abierto(){}",
"public Coeur(){\r\n\r\n }",
"private Casier(){}",
"public Bateau(){\n\t\t\n\t}",
"public Direccion() {\n\t\t\n\t}",
"private O()\r\n {\r\n super();\r\n }",
"public Jeroo() {super();}",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ methods to provide back word compatibility | private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.mcgraw.test.automation.api.blackboard.generated.userws.UserWSStub.GetServerVersion param, boolean optimizeContent)
throws org.apache.axis2.AxisFault{
... | [
"private BuildWordClasses () {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public abstract String mo3322u();",
"@Override\n public void extornar() {\n \n }",
"DealingWithGeneralization createDealingWithGeneralization();",
"public abstract void mo1823b(String str);",
"protected voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Option button onClick event | @Override
public void opciones(View view) {
TextView close;
Button contactarEmpresa;
final ToggleButton SFX;
final ToggleButton Musica;
timerStop();
// Getting items from the view
ajustes.setContentView(R.layout.ajustes);
close = (TextView) ajustes.... | [
"void viewOnOptionClicked(String optionText);",
"public void buttonClicked(OptionPage page, OptionButton button, Minecraft minecraft);",
"public void onClickOption(View view){\n Button button = (Button) view;\n int clickedValue = Integer.parseInt(button.getText().toString());\n checkAnswer(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Should cluster updates be propogated to the locals. | public void setAllowClusterGet( boolean r ); | [
"protected boolean isInCluster() {\r\n\t\tUnit scope = WasUtil.getWasScope(unit);\r\n\t\treturn (scope instanceof WasClusterUnit);\r\n\t}",
"public boolean onCluster() {\n\t\t\n\t\tif (this.clusterHost.equals(\"local\")) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tString hostName = null;\n\t\t\n\t\ttry {\n\t\t\tInetA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: kotlin.b1.u.r / compiled from: ClassBasedDeclarationContainer.kt | public interface C14481r extends C14543e {
@C6003d
/* renamed from: f */
Class<?> mo45626f();
} | [
"@Override\r\n public void visit(ClassDeclNode node){\r\n }",
"@Converted(kind = Converted.Kind.MANUAL_COMPILATION,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp\", line = 1760,\n FQN=\"clang::CodeGen::CodeGenModule::CompleteDIClassType\", NM=\"_ZN5clang7CodeGen13CodeGenModule19Com... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called by the caller trigger for refreshing memory information | public void initMemoryFields(String jobName, File file) throws XTriggerException {
this.jobName = jobName;
if (file == null) {
throw new NullPointerException("The given file input reference is not set.");
}
if (!file.exists()) {
throw new XTriggerException(String... | [
"@Override\n protected void updateMeminfo() {\n PERFORMANCE_INFORMATION perfInfo = new PERFORMANCE_INFORMATION();\n long now = System.currentTimeMillis();\n if (now - this.lastUpdate > 100) {\n if (!Psapi.INSTANCE.GetPerformanceInfo(perfInfo, perfInfo.size())) {\n L... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the _Fields constant that matches fieldId, throwing an exception if it is not found. | public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // INVALID_ARGS\n return INVALID_ARGS;\n default:\n return null;\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public String getModuleName() {
return "kereneducation";
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Visit the attributes of the code attribute. | public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute)
{
codeAttribute.attributesAccept(clazz, method, this);
} | [
"public void code(Attributes atts) throws SAXException {\n startSimpleElement(CODE,atts);\n }",
"@Override\n public void visitAttribute(final Attribute attribute) {\n if (attribute.isCodeAttribute()) {\n attribute.nextAttribute = firstCodeAttribute;\n firstCodeAttribute = attribute;\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A wrapper method to stream a picture | public void sendPicture(byte[] compressedImage) throws Exception {
connection.sendStreamData(compressedImage);
} | [
"public InputStream openImageInputStream();",
"@Output\n MessageChannel picture();",
"void addImage(InputStream inputStream);",
"private static MyImage streamVideo(int eIn) {\n ClientPack.MyService_Service service = new ClientPack.MyService_Service(serverSettings.serverAddress);\n ClientPack.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void keyTyped(KeyEvent e) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form Client | public Client() {
this.channel = new Channel();
initComponents();
} | [
"public String creerClient() {\r\n\t\tClient cl = new Client();\r\n\t\tcl.setNom(this.nom);\r\n\t\tcl.setPrenom(this.prenom);\r\n\t\tCoordonnees coord = new Coordonnees(adresse, cp, ville, telephone, email);\r\n\t\tcl.setCoordonneesClient(coord);\r\n\t\tcl.setCivilite(this.civilite);\r\n\t\tString login = FacesCont... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The minimum fleet size. int64 min_replicas = 3; | public long getMinReplicas() {
return minReplicas_;
} | [
"@Override\n public int getFleetSize(){\n return 1;\n }",
"public Dimension getMinimumSize() {\n\t\treturn new Dimension(125, 32);\n\t}",
"public abstract int minSize();",
"long getMinSize();",
"public Dimension getMinimumSize() {\r\n\t\treturn new Dimension(300, 200);\r\n\t}",
"@MXBeanDescri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use this factory method to create a new instance of this fragment using the provided parameters. | public static CharacterSelectFragment newInstance(String param1, String param2) {
CharacterSelectFragment fragment = new CharacterSelectFragment();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
... | [
"public static PostFragment newInstance() {\n PostFragment fragment = new PostFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }",
"public H... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required uint32 areano = 3; | public boolean hasAreano() {
return ((bitField0_ & 0x00000004) == 0x00000004);
} | [
"void mo12928a(zzasi zzasi, C1632ru ruVar);",
"int mo16284b();",
"C1023a mo1703c();",
"long getANFA();",
"public interface BitMaskEnum {\n\n\t/** The first 31 powerOf2 int values */\n\tpublic static final int[] POW2INT = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 13... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int32 int_param = 7; | int getIntParam(); | [
"public static int noParamsReturnsInteger()\n {\n return 5;\n }",
"public static Integer getInteger(String paramString, int paramInt) {\n/* 1057 */ Integer integer = getInteger(paramString, (Integer)null);\n/* 1058 */ return (integer == null) ? valueOf(paramInt) : integer;\n/* */ }",
"protec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ problem here: The formula uses a loop iterator, so we need to change it to the iterator value as the iterator value in the whole cycle. | @Override
public void run() {
long iteratorForArrayPartTwo = capacity / 2;
for (int i = 0; i <arrayPartTwo.length ; i++) {
arrayPartTwo[i] = (float)(arrayPartTwo[i] * Math.sin(0.2f + iteratorForArrayPartTwo / 5) *
Math.cos(0.2f ... | [
"public int cumulativeProduct() {\n // YOUR CODE HERE\n //return -1;\n EquationList traverser = history;\n int product = 1;\n while(traverser!=null){\n product*=traverser.result;\n traverser=traverser.next;\n }\n return product;\n }",
"priv... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Open connection to write data | public int insert(Contact person) {
SQLiteDatabase db = dbHelper.getWritableDatabase();
ContentValues values = new ContentValues();
values.put(Contact.KEY_tel,person.tel);
values.put(Contact.KEY_postcode,person.postcode);
values.put(Contact.KEY_county,person.county);
... | [
"public void writeData() {}",
"private void openToWrite() {\n\t\tdb = dbHelper.getWritableDatabase();\n\t}",
"private HttpURLConnection openConnectionToServer(String URL) throws IOException {\n java.net.URL url = new URL(URL);\n\n // Start constructing our HTTP request\n HttpURLConnection h... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the list of users according to the column name and value passed. | @Override
public List retrieve(final String className, final String colName, final Object colValue)
throws BizLogicException
{
List userList = null;
userList = super.retrieve(className, colName, colValue);
edu.wustl.catissuecore.domain.User appUser = null;
if (... | [
"public List<String> getUsers()throws SQLException{\n connect();\n var usenameList=new ArrayList<String>();\n String selectString = \"select * from getUsers()\";\n rs=statement.executeQuery(selectString);\n while(rs.next()){\n String username=rs.getString(\"uname\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Query the fault db by the fault name. | public void QueryFaultsByName(String input_str) {
String getFaultList = "SELECT F.FaultName FROM FAULT AS F, REFERENCE AS R WHERE R.InterpId=F.InterpId and F.FaultName like \'%"
+ input_str + "%\';";
String getSegmentList = "SELECT F.SegmentName FROM FAULT AS F, REFERENCE AS R WHERE R.InterpId=F.Interp... | [
"public QueryDescriptor getQueryDescriptor(String name) {\n checkMappingCache();\n\n QueryDescriptor result = mappingCache.getQueryDescriptor(name);\n if (result == null) {\n // reconstruct cache just in case some of the datamaps\n // have changed and now contain the requi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the name of the created database | public String getDbName() {
return DATABASE_NAME;
} | [
"public String getDbname();",
"public String getDatabaseName()\r\n\t{\r\n\r\n\t\treturn databaseName;\r\n\t}",
"public static final String getDatabaseName() {\n\t\t\n\t\tif (UOpts.getString(UAppCfg.DATABASE_ACCTRANS_COL) != null)\n\t\t\treturn UOpts.getString(UAppCfg.DATABASE_ACCTRANS_COL);\n\t\t\n\t\treturn UO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
for guardian type repeated .proto_def.ConsumeRanksResp.Relation relations = 9; | public java.util.List<? extends proto_def.RoomMessage.ConsumeRanksResp.RelationOrBuilder>
getRelationsOrBuilderList() {
return relations_;
} | [
"java.util.List<net.morbz.osmonaut.binary.pbf.proto.Osmformat.PrimitiveBlock.PrimitiveGroup.Relation> \n getRelationsList();",
"java.util.List<? extends minds.ta.Nlp.RelationOrBuilder> \n getRelationsOrBuilderList();",
"public net.morbz.osmonaut.binary.pbf.proto.Osmformat.PrimitiveBlock.Primitiv... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public Object getItem(int position) {
return infolist.get(position);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Nombre: xxxx, salario: yyyy | @Override
public String toString(){
return super.toString()+", Salario: "+salario;
} | [
"String Calculo (String texto);",
"void kiemTraNAMNHUAN() {\r\n //khia bao bien doi tuong sc de thuc hien chuc nang nhap dw lieu\r\n Scanner sc = new Scanner(System.in);\r\n System.out.print(\"Nhap nam muon kiem tra:\"); //(Nextline, nextint()) -} Scanner -> ham nhap du lieu tu ban phim\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reload the build path and discard any unsaved changes | public void reload()
{
parse();
} | [
"public void reloadWorkspace() {\n mModel.resetLoadedState(false, true);\n mModel.startLoaderFromBackground();\n }",
"@Override\n public void reloadWorkspace() {\n reinitialize();\n }",
"public void reload() {}",
"void reloadWorkspace() {\n\t\tif (currentWorkspace != null)\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an enemy to an (x,y) position | public Enemy createEnemy(int id, float x, float y, Player player) {
EnemyStats stats = enemies.get(id);
// create an enemy with stats
Enemy e = new Enemy(x, y, player, stats.ap, stats.hp);
return e;
} | [
"private void spawnEnemies(double x, double y)\n\t{\n\t\tEntity enemy = EntityCreator.newEnemy(x, y);\n\t\t//enemy.setSceneView();\n\t\t//enemy.setCollidable(true);\n\n\t\t//added the texture for the enemies, and set dimension -- XL\n\t\t//Texture txtr = getAssetLoader().loadTexture(Config.ENEMY_IMAGE);\n\t\t//txtr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if it is marked in this frame. Used for depth sorting. | public final boolean isMarkedDS(final int id) {
return ((marked >> id) & 1) == ((AbstractGameObject.currentMarkedFlag >> id) & 1);
} | [
"boolean isHit() {\r\n return hitTreeRoot.hasGotChildren();\r\n }",
"public boolean isMarked() {\n\t\treturn this.marked;\n\t}",
"boolean visited() {\n return this.mark;\n }",
"private boolean isMarked(Face face) {\n return face._mark==_faceMarkRed;\n }",
"public boolean isMa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this will take a screenshot and save it as the level image | public void takeScreenshot() {
} | [
"public void takeScreenShot()\n\t{\n\t\tDate d=new Date();\n\t\tString screenshotFile=d.toString().replace(\":\", \"_\").replace(\" \", \"_\")+\".png\";\n\t\t// store screenshot in that file\n\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\ttry \n\t\t{\n\t\t\tFileUtils.copyFile(sc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Next entrant number to be allocated Constructor for objects of class Entrant. | public Entrant()
{
super();
name = "";
category = "";
time = 0.0;
number = nextNumber++;
} | [
"private int genNode() throws NFABuildException {\n\t\treturn count++;\n\t}",
"@Nonnull\n Entity allocate() {\n long id = this.currentID++;\n\n return new Entity(id);\n }",
"public Spiller() {\r\n\t\tthis.id = nextId;\r\n\t\tnextId ++;\r\n\t\tthis.navn=\"NONAME\";\r\n\t\tthis.poeng = 0;\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets all material types related to music disc. | public static List<Material> getMusicDiscTypes(){
return Collections.unmodifiableList(MUSIC_DISC_TYPES);
} | [
"public String[] getMaterialTypeNames() {\n List list = MaterialType.findAll();\n if (list == null || list.isEmpty())\n return null;\n String materialTypes[] = new String[list.size()];\n Iterator it = list.iterator();\n int i = 0;\n while (it.hasNext()) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a quaternion representing no rotation. | @JsonSetter("Identity")
public Quaternion setIdentity(org.ipc.cfx.structures.geometry.Quaternion identity) {
this.identity = identity;
return this;
} | [
"public Quaternion() {\n this(0.0, 0.0, 0.0, 1.0);\n }",
"public Quaternion normalized() {\n\t\tdouble mag = Math.sqrt(x * x + y * y + z * z + w * w);\n\t\treturn new Quaternion(x / mag, y / mag, z / mag, w / mag);\n\t}",
"public ReducedQuaternion getFundamentalRepresentative() {\n int[] imPart = new... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
System.setProperty("webdriver.chrome.driver", "C:\\Users\\satya\\Desktop\\geckodriverv0.17.0win64\\geckodriver.exe"); create an object driver=new ChromeDriver();//firefox driver is a class that impliments web driver interface driver belongs to interface, so we can use driver everywhere driver.get(" System.setProperty("... | @Test
public void test() {
//driver.get("https://www.google.com");
//System.setProperty("webdriver.gecko.driver", "C:\\Users\\satya\\Desktop\\geckodriver-v0.17.0-win64\\geckodriver.exe");
//create an object
// driver=new FirefoxDriver();//firefox driver is a class that impliments web driver interface
//dr... | [
"@BeforeMethod\r\n\tpublic void setup() {\n\t System.setProperty(\"webdriver.gecko.driver\",\"C:\\\\Users\\\\shreya.ukrao\\\\Downloads\\\\Selenium Jars and Drivers\\\\drivers\\\\geckodriver.exe\"); \r\n\r\n\t //Open browser instance\r\n\t driver = new FirefoxDriver();\r\n\r\n\t driver.manage().window(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end T69 $ANTLR start T70 | public final void mT70() throws RecognitionException {
try {
int _type = T70;
// ../org.makumba.devel.eclipse.mdd.ui/src-gen/org/makumba/devel/eclipse/mdd/ui/contentassist/antlr/internal/InternalMDD.g:67:5: ( 'Left' )
// ../org.makumba.devel.eclipse.mdd.ui/src-gen/org/makumba... | [
"public interface StmtParserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int OPEN = 6;\r\n /** RegularExpression Id. */\r\n int CLOSE = 7;\r\n /** RegularExpression Id. */\r\n int NEW = 8;\r\n /** RegularExpression Id. */\r\n int FROMREGEX = 9;\r\n /** Reg... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void mouseExited(MouseEvent e) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Imprime la tabla de las partidas de los jugadores guardadas. | public void imprimirPartidas() {
System.out.println("****************************");
System.out.println("* NOMBRE ** PUNTAJE ** NIVEL *");
System.out.println("****************************");
int posicion = 0;
while (posicion < this.jugadores.size()) {
System.out.println("** " + this.jugadores.get(posicion)... | [
"public static void imprimeTabuleiro1(){ //Contruir Tabuleiros\r\n\t\tSystem.out.println();\r\n System.out.println(\" TABULEIRO 1\\n\");\r\n\t\tSystem.out.println(\" 0 1 2 3 4 5 6 7 8 9\"); //numero da coluna\r\n System.out.println(\" -------------------------------... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The Amazon Web Services source that emitted the events you want to filter for. | public String getEventSource() {
return this.eventSource;
} | [
"AuditEventSource getSource();",
"public OGCWebService getEventSource() {\r\n return (OGCWebService)super.getSource();\r\n }",
"public Source [] getSourceFilter(){\n\t\treturn filter;\n\t}",
"EventListI getEvents(String start, String stop, String source);",
"public String getSourceEventName()\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The stage of the CertificateContract update allowing to specify ifMatch. | interface WithIfMatch {
/**
* Specifies the ifMatch property: ETag of the Entity. Not required when creating an entity, but required
* when updating an entity..
*
* @param ifMatch ETag of the Entity. Not required when creating an entity, but required when ... | [
"interface Update extends Appliable<VpnGatewayNatRule>, UpdateStages.WithExternalMappings, UpdateStages.WithId, UpdateStages.WithInternalMappings, UpdateStages.WithIpConfigurationId, UpdateStages.WithMode, UpdateStages.WithName, UpdateStages.WithVpnGatewayNatRulePropertiesType {\n }",
"interface Update extends... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by john on 2017/2/12. | @Mapper
public interface House365Mapper {
List<LinkDO> listUrl();
List<LinkDO> findUrls(String urlId);
} | [
"@Override\n public void extornar() {\n \n }",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"protected void method_5557() {}",
"@Override\n public int utilite() {\n return 0;\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional uint32 collection_id = 2; | public int getCollectionId() {
return collectionId_;
} | [
"public int getIDCollection() {\n return idCollection;\n }",
"protected void transferCollectionId(Input input, Output output, int fieldNumber)\r\n/* 251: */ throws IOException\r\n/* 252: */ {\r\n/* 253:327 */ input.transferByteRangeTo(output, true, fieldNumber, false);\r\n/* 254: */ ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all rows from the SYS_GRP_MEMS table that match the criteria 'GROUPS_ID = :groupsId'. | public List<SystemGroupMembers> findByGroups(int groupsId) throws SystemGroupMembersDaoException; | [
"public Group getGroupInfos(String id_group) throws SQLException;",
"public static Group readGroup(int id) {\r\n //Conn();\r\n try {\r\n final PreparedStatement selectStatement = con.prepareStatement(\r\n \"select * from \" + groupsTable + \" where groupId = ?\");\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This GCD program will be made using 1 additional method The main method will prompt the user to enter two numbers It will then call the gcd method from the main method | public static void main(String[] args) {
System.out.println("Welcome to the Greatest Common Divisor program ");
System.out.println("Please enter your two numbers to find their gcd");
Scanner input = new Scanner(System.in);
int num1 = input.nextInt();
int num2 = input.nextInt();
int answer = gcd(num1, ... | [
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the first number\");\r\n\t\tint num1 = input.nextInt();\r\n\t\tSystem.out.println(\"Enter the second number\");\r\n\t\tint num2 = input.nextInt();\r\n\t\tint gcd = 0;\r\n\t\tfor(int i = 1 ; i <= ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Devuelva una nueva bomba clonada. | public Bomba clone()
{
Bomba B = new Bomba(nivelDeImpacto,posicion,tiempoTirada);
return B; //modificar
} | [
"private void inizia() {\n this.braccioVert = this.creaBraccio(true);\n this.braccioOrizz = this.creaBraccio(false);\n }",
"public void limpiarNuevoTiposBloques() {\n nuevoTipoBloque = new TiposBloques();\n index = -1;\n secRegistro = null;\n }",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the string path2 for the path to where this is for finding the sounds | public Player(final Level level, final int x, final int y, final InputHandler input, Screen screen, String name) {
super(level, name, x, y, 7); //The last value is for speed
path2 = getClass().getClassLoader().getResource(".").getPath();
xMax = 16;
xMin = 2;
yMax = 12;
... | [
"public void setImgPath2(String imgPath2) {\r\n\t\tthis.imgPath2 = imgPath2;\r\n\t}",
"public void setPath2(){\n\t\tXImagePath = \"/icons/icon2X.png\";\n\t\tOImagePath = \"/icons/icon2O.jpg\";\n\t}",
"public void setPath(String path) {\n /**\n * 1.music playing, reset the status of music\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
++ getter for static property _CLASS Getter for property _CLASS. Property with autogenerated accessor that returns the Class object for a given component. | public static Class get_CLASS()
{
Class clz;
try
{
clz = Class.forName("com.tangosol.coherence/component/net/Cluster$ClusterService$DaemonPool$Daemon$Guard$Abandon".replace... | [
"public String getComponentClass() {\n return _componentClass;\n }",
"public int getCls() {\n return cls_;\n }",
"public int getCls() {\n return cls_;\n }",
"public Integer getCls() {\n return cls;\n }",
"public Class get_class() {\n return _class;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string name = 1; | public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
} | [
"public void setName(String string) {\n name = string;\n }",
"private static void forName(String string) {\n\t\t\n\t}",
"public var(String name){\n\t\tthis.name = name;\n\t\tnumber = new BigNum(\"0\");\n\n\t}",
"public String getname(String name) {\n \treturn name;\n }",
"int getNameValue(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new Task RecordBuilder by copying an existing Builder | public static es.upm.oeg.librairy.api.facade.model.avro.Task.Builder newBuilder(es.upm.oeg.librairy.api.facade.model.avro.Task.Builder other) {
return new es.upm.oeg.librairy.api.facade.model.avro.Task.Builder(other);
} | [
"protected abstract Builder newBuilder();",
"private Builder(com.opentext.bn.converters.avro.entity.NewTransactionInfo.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.parentTransactionId)) {\n this.parentTransactionId = data().deepCopy(fields()[0].schema(), other.parentTran... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generate 2 numbers from 1100. | public void GenerateRandomNumber () {
Random randomNumber1 = new Random();
number1 = randomNumber1.nextInt((100-1+1)+1);
number2 = randomNumber1.nextInt((100-1+1)+1);
ArrayList<String> operationArray = new ArrayList<>(); //An array of operations.
operationArray.add("+");
... | [
"public int generateNumber();",
"private String generateNumberSeq2() {\n\t\tseq2 = random.nextInt(8999) + 100;\n\n\t\treturn Integer.toString(seq2);\n\t}",
"public int generateNumber(){\r\n int min=1;\r\n int max=10000;\r\n int range =(max-min)+1;\r\n this.numer = (int) (Math.random(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
interface GiftCertificateTagDao interface contains methods for work with table tag_gift_certificate | public interface GiftCertificateTagDao {
/**
* deleteCertificateTags
* remove all certificate tags
* @param certificateId - certificate id for delete tag
*/
void deleteCertificateTags(Long certificateId);
/**
* addCertificateTags
* add new tag for certificate
* @param cer... | [
"public interface GiftCertificateService {\n /**\n * Method for add gift certificate in DB\n *\n * @param giftCertificate the gift certificate entity\n */\n int addGiftCertificate(GiftCertificate giftCertificate);\n /**\n * Method for delete one gift certificate by id\n *\n * @p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string filename = 1; | public Builder clearFilename() {
bitField0_ = (bitField0_ & ~0x00000001);
filename_ = getDefaultInstance().getFilename();
onChanged();
return this;
} | [
"public void setFilename(String filename){\n this.filename = filename;\n }",
"public void setFilename(String filename) {\n this.filename = filename;\n }",
"public void setFilename(String file);",
"public void setFilename(String filename)\r\n {\r\n this.filename = filename;\r\n }",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find all the java 9 platform .jmod files | static URL[] java9Platform(String javaHome) {
Path jmods = Paths.get(javaHome).resolve("jmods");
try {
return Files.list(jmods)
.filter(path -> path.getFileName().toString().endsWith(".jmod"))
.map(path -> toUrl(path))
.toArray(URL... | [
"JRE getCapabilityJre();",
"public void discoverEmbeddedHybridModules() {\n getClass().getClassLoader()\n .resources(\"META-INF/mod/\")\n .forEach(url -> {\n if (Objects.equals(url.getProtocol(), \"file\")) {\n String path = re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Marker Interface to be implemented by application service interfaces. This Interface is used to get the corresponding bean in the spring context. | public interface ApplicationService {
} | [
"public interface Context {\r\n\r\n\tApplicationProperty getApplicationProperty();\r\n\r\n\t/**\r\n\t * This will return the bean defined with the beanQualifier using @Component\r\n\t * Annotation if no bean found then it will return null;\r\n\t * \r\n\t * @param beanQualifier\r\n\t * @return\r\n\t */\r\n\tObject g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Buscar Funcionario Por Data de Saida | public List<Funcionario> findByDataSainda(LocalDate saida) {
String jpql = new StringBuilder("select f from Funcionario f ")
.append("where f.dataDemissao = ?1 ")
.append("order by f.dataAdmissao asc")
.toString();
return createQuery(jpql, saida);
} | [
"public String getFuncao(){\r\n return funcao;\r\n }",
"public Calendar retornarNascimentoFuncionario(String dataCampo)\n {\n cal=Calendar.getInstance();\n String data=ftfDataNascimentoFuncionario.getText();\n cal.set(\n Integer.parseInt(data.substring(data.lastInd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a node with two outgoing edges, verify that the number of outgoing edges is computed correctly (done without using the edge data structure, but based on the node array) and that the set of outgoing edges contains the newly constructed edges. | @Test
void testGetOutgoingEdges() {
final ArrayBasedNode node = NodeBuilder.start()
.withNodeId(10)
.withOutgoingEdge(20, 3)
.withOutgoingEdge(30, 4)
.create();
assertThat(node.getNumberOfOutgoingEdges()).isEqualTo(2);
assertTh... | [
"public int createDirectedEdge(Node source, Node dest);",
"public int createUndirectedEdge(Node source, Node dest);",
"void testAddOutEdge(Tester t) {\r\n BridgIt temp = new BridgIt();\r\n t.checkExpect(temp.board.allCells.get(6).outEdges.size(), 0);\r\n t.checkExpect(temp.board.allCells.get(4).outEdge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
String middlePattern = ""; | public String Name() {
return "WordLiteral";
} | [
"@Test\n public void test132() throws Throwable {\n String string0 = StringUtils.abbreviateMiddle(\"`or**c?nn?j9/T\", \"`or**c?nn?j9/T\", 0);\n }",
"public String pattern();",
"int getPattern();",
"public String getPattern(int idx) {\n \t\n \treturn \"\"; // change this to return something reasonable... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Insert a node at the end of existing list. | public void append(int data) {
Node node = new Node();
node.data= data;
node.next= null;
if(head==null) {
head = node;
} else {
Node n = head;
while(n.next != null) {
n = n.next;
}
n.next = node;
}
++listLength;
} | [
"public void insertAtEnd(int value){\n Node newNode = new Node(value);\n\n //Old tail (tail.next) points to new tail (newNode)\n this.tail.next = newNode;\n\n //New node previous will be the old tail\n newNode.previous = tail;\n\n //Tail becomes new node\n this.tail ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public ArrayList<StuffVO> getInitStuff() {
return null;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
protected void onStart() {
super.onStart();
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ The students code to update data in the database will be written here Query to record a sale, indicated by the auction ID, should be implemented auctionID is the Auction's ID, given as method parameter The method should return a "success" string if the update is successful, else return "failure" | public String recordSale(String auctionID) {
try {
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/demo", "root", "Xzy351501");
Statement st = con.createStatement();
String query = "SELECT CurrentHigh From Auction WHERE AuctionID =... | [
"public String recordSale(String auctionID) {\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://138.197.50.244:3306/LittleBobbyTablesAuctionHouse\", \"littlebobbytables\", \"bestcse305group\");\r\n\t\t\tStatement st = con.createStatem... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleXSwitchExpression" $ANTLR start "ruleXSwitchExpression" InternalFormat.g:2094:1: ruleXSwitchExpression : ( ( rule__XSwitchExpression__Group__0 ) ) ; | public final void ruleXSwitchExpression() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalFormat.g:2098:2: ( ( ( rule__XSwitchExpression__Group__0 ) ) )
// InternalFormat.g:2099:1: ( ( rule__XSwitchExpression__Group__0 ) )
... | [
"public final void ruleXSwitchExpression() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/InternalJPAQLDsl.g:2994:2: ( ( ( rule__XSwitchExpression__Group__0 ) ) )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the increment and decrement step size of the spinner. | public float getStep()
{
return step;
} | [
"float getStepSize();",
"public int getStepSize() {\n return stepSize;\n }",
"public double getStepSize() {\n\t\tif(hasProperty(\"StepSize\"))\n\t\t\treturn getPropertyDouble(\"StepSize\");\n\t\telse\n\t\t\treturn 1.0;\n\t}",
"public double getStepSize() {\n\t\treturn mDeadReckoning.getStepSize();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Custom configured Gson instance. Feel free to change! | @Provides
@Singleton
static Gson provideGson() {
return new Gson();
} | [
"private static Gson newGson() {\n\t\treturn null;\r\n\t}",
"public GsonSerializer() {\n this(new GsonBuilder());\n }",
"public static Gson getGson() {\n\t\treturn GSON.get();\n\t}",
"protected Gson buildGson() {\n return GsonUtil.standardGson();\n }",
"private Gson createGson() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/Muestra el mensaje y avisa al gestor para finalizar | public void mostrarMensajeInformacion(String titulo,String mensaje) {
trazas.aceptaNuevaTraza(new InfoTraza("VisualizacionMedico",
"Mostrando mensaje de informacion",
InfoTraza.NivelTraza.debug));
MessageBox messageBox = new MessageBox (new Shell(), SWT.APPLICATION_MODAL | SWT.OK | SWT.ICON_... | [
"@Override\n\t\t\tpublic void onFinish(FusionMessage msg) {\n\t\t\t\tsuper.onFinish(msg);\n\t\t\t}",
"@Override\n\tpublic void finalizarPartidaComErro(String message) {\n\t\t\n\t}",
"@Override\r\n public void processFinalizing()\r\n {\r\n getProcessor().onComplete();\r\n }",
"@Override\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
1. Initialize driver and object of current class by using PageFactory.initElements(driver,this) | public LoginPage(){
PageFactory.initElements(Driver.getDriver(),this);
} | [
"public POMActimeLoginPage(WebDriver driver)//inside the constructor we initiallize the webElement\r\n {\r\n\t PageFactory.initElements(driver, this);\r\n }",
"public DriverHelper() {\n /**initialise the page factory in the constructor method and assign to driver level*/\n PageFactory.initEleme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by xieyanhao on 16/9/7. | public interface GatewayEntityDao extends IBaseDao<GatewayEntity, Integer > {
public List<GatewayEntity> getAllUserGateway();
public GatewayEntity getGatewayByMac(String macAddress);
} | [
"@Override\n public void extornar() {\n \n }",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"Eisdiele() {\r\n\r\n\t}",
"protected void mo4791... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert the given object to string with each line indented by 4 spaces (except the first line). | private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
} | [
"private String toIndentedString(Object o)\n/* */ {\n/* 607 */ if (o == null) {\n/* 608 */ return \"null\";\n/* */ }\n/* 610 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }",
"private String toIndentedString(Object o)\n/* */ {\n/* 164 */ if (o == null) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the name of the Employee | public String getName() {
return this.name;
} | [
"public String getEmployee_Name() {\n\t\treturn Employee_Name;\n\t}",
"public String getEmployeeName()\n\t{\n\t\treturn getEmployeeName( getSession().getSessionContext() );\n\t}",
"@Override\n\tpublic String getEmployee(Employee employee) {\n\t\treturn employee.getName();\n\t}",
"public static String getName(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Pub/Sub topic on which to publish new agent assistant events. .google.cloud.dialogflow.v2.NotificationConfig notification_config = 2; | public boolean hasNotificationConfig() {
return notificationConfigBuilder_ != null || notificationConfig_ != null;
} | [
"private void setupNotifications(){\n notificationManagerCompat = NotificationManagerCompat.from(this);\n\n setupChannel();\n\n Notification notification = setupNotificationsCombat(\"Learn Animal Words - au592332\", \"First Word appears after 60s here!\");\n\n notificationManagerCompat.n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
slidingMenu.toggle();
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
read input Stream to mem | protected static final byte[] readInputStream(InputStream input) throws Exception {
byte[] buffer ;
ByteArrayOutputStream out = null;
try {
// temp buffer
out = new ByteArrayOutputStream(DEFAULT_MEM_BUFFER);
// read byte[]
int read = -1;
... | [
"R read(StreamInput in) throws IOException;",
"public void read(InputStream input) throws IOException;",
"private void readInput() {\n if (buf.limit() == buf.capacity())\n makeSpace();\n // Prepare to receive data\n int p = buf.position();\n buf.position(buf.limit());\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will responsible for creating the Elastic Search client for given Elastic Search cluster. | protected Client createClient() {
if (client == null) {
try {
Settings settings = ImmutableSettings.settingsBuilder()
.put("cluster.name", configuration.getClusterName())
.put("client.transport.sniff", true).build();
TransportCl... | [
"public Client create() throws Exception {\n // Pull values from the Tomcat Context XML.\n String cluster = \"\";\n String server = \"localhost\";\n Integer port = 9300;\n String timeout = null;\n Boolean enableCompression = false;\n\n // default timeout to 5 seconds... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo que permite obter as ocorrencias | private List<Ocorrencia> obterOcorrencias(int idTarefa) {
List<Ocorrencia> registos = new ArrayList<>();
for (OcorrenciaResultado item : repositorio.obterOcorrencias(idTarefa)) {
Ocorrencia registo = UploadMapping.INSTANCE.map(item);
registos.add(registo);
}
r... | [
"public void porNiveles()\r\n // Hace un recorrido por niveles mostrando los nodos del arbol\r\n {\r\n Lista l = new Lista();\r\n Cola c = new Cola(l);\r\n \r\n if(raiz != null){\r\n c.agregarCola(this.raiz);\r\n recorridoPorNiveles (c);\r\n }\r\n else System.out... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a string representation of the BasePair edges that form part of this list of interaction edges | public String extractBasePairClasses() {
String returnMe = "";
for (NucleotideInteraction i : this.interactions) {
if (i.getClass().equals(BasePair.class)) {
BasePair bp = (BasePair) i;
if (bp.getFirstEdge() != null && bp.getFirstEdge() != null) {
if (bp.getFirstEdge().toString() != ""
&& bp.... | [
"public String toString() {\n String vertex = this.getVertexString();\n String edge = this.getEdgeString();\n return vertex + \" \" + edge;\n }",
"public String toString()\n {\n String s = V + \" vertices, \" + E + \" edges\\n\";\n for (int v = 0; v < V; v++)\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Implement its toString method to display its parts . | @Override
public String toString() {
return "Part:" + differentParts;
} | [
"@Override\r\n String toString();",
"@Override\r\n\tabstract public String toString();",
"@Override\n\tpublic String toString() {\n\t\tString output = \"\"; \n\t\t//fill it\n\n\n\t\treturn output; \n\t\n\t}",
"public String toString() {\r\n // Fill in.\r\n }",
"@Override\n public final String toSt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by robert on 1/15/2015. | public interface PrintableService {
public PrintableContract getContract(Integer contractId);
public PrintableStatistics getStatistics();
} | [
"@Override\n public void extornar() {\n \n }",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"protected void method_5557() {}",
"@Override\n }",
"@Override\n public int utilite() {\n return 0;\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Request cookie from the output base of the server. This serves as a rudimentary form of mutual authentication. string cookie = 1; | com.google.protobuf.ByteString
getCookieBytes(); | [
"public Reply authenticateCookiePassword() {\n \tReply reply = null;\n \treturn reply;\n }",
"HttpCookie getCookie(String name);",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n String un= request.getParameter(\"uname\");... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Dummy function so that classes that extend Mob can be used inside lists and we can still call update() on them. | public void update(int delta) throws SlickException {
} | [
"@Override\n\t\t\tpublic void update(ObservableList obs) {\n\n\t\t\t}",
"public void DBUpdatePlayerItems(MOB mob);",
"public abstract void update(ArrayList<?> list);",
"@Override\n public void update(ArrayList<Property> p)\n {\n }",
"protected void preUpdate(E item) {\n\t\t\n\t}",
"public void up... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: get selected data and update selectedClassNameLabel | private void updateSelectedElementValues() {
} | [
"public void setSelectionClass(String strClass){\n\t\tselectionClass = strClass;\n\t}",
"private static String addSelectedClass(MainMenuItem thisItem) {\n if (thisItem.getClassSelected() != null && !\"\".equals(\n thisItem.getClassSelected())) {\n return \"class=\\\"\" + thisItem.getClassSelected()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |