query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Navigate to the next page in history. | private void navigateNext() {
mUrlEditText.clearFocus();
mCurrentWebView.goForward();
} | [
"public void gotoNextPage() {\n\t\tsetPage(getPage() + 1);\n\t}",
"public void _jumpToNextPage(){\n oObj.jumpToFirstPage() ;\n log.println( \"test for jumpToNextPage()\" );\n tRes.tested(\"jumpToNextPage()\", oObj.jumpToNextPage());\n }",
"public void next() {\r\n\t\tnextPage.click();\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onStart() {
mDialog.show();
} | [
"@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 | public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
return super.validate(mapping, request);
} | [
"@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"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table demeter_config_parameter | int logicalDeleteByExample(@Param("example") ConfigParameterExample example); | [
"@Override\n\tpublic int getConfiguration(int parameter) {\n\t\treturn 0;\n\t}",
"@DSSink({DSSinkKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:55:04.711 -0500\", hash_original_method = \"69DF71CB140C2C1EC9DCD8B4F4E0A5EC\", has... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the users value for this Account. | public com.avalara.avatax.services.account.ArrayOfUser getUsers() {
return users;
} | [
"public String users() {\n return this.users;\n }",
"public List<User> getUsers() {\r\n\t\treturn this.users;\r\n\t}",
"static List<String> getUsers() {\n return users;\n }",
"public ArrayList<User> getUsers() {\r\n\t\treturn users;\r\n\t}",
"public List<UserSummary> getUsers() {\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Confirms that the given string conforms to the rules for an URF name token. | public static String checkArgumentValidToken(final String string) {
checkArgument(isValidToken(string), "Invalid URF name token \"%s\".", string);
return string;
} | [
"@Test\n public void testNamesStrict() throws ParseException\n {\n SchemaParserTestUtils.testNamesStrict( parser, \"1.1\", \"OC o MUST m\" );\n }",
"protected boolean checkName(String s) {\n/* 1687 */ if (this.xmlVersion.equals(\"1.1\")) {\n/* 1688 */ return DOMUtilities.isValidName11(s)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DECLARO TODOS LOS METODOS DE PRODUCTO | public List<Producto>listar(); | [
"public void obtenerProductos();",
"public void listarProduto() {\n System.out.println(\"Produto\" + nome + \"preco\" + preco + \"Unid Medida\" + unidMedida + \"Quantidade\" + qtdeCompra);\n\n }",
"public Producto () {\r\n\t\tthis.precioUnit = 0.0;\r\n\t\tthis.nomProducto = \"\";\r\n\t\tthis.refID = 0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The make, model, name or beamline of the source of radiation. | public StrColumn getSourceType() {
return delegate.getColumn("source_type", DelegatingStrColumn::new);
} | [
"@Override\r\n public String toString(){\r\n return String.format(\"Line model - \" + super.toString() \r\n + \"\\nstart coords: \" + polarStr(startPoint) + \r\n \", end coords: \" + polarStr(endPoint));\r\n }",
"public String getModel(){\r\n\t\treturn \"Y= \"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Encrypts a message with a shared secret using the AES algorithm. | public static String encryptAES(String message, SecretKey secret, String blockMode, String padding, String encoding) {
String algorithm = AES_ALGORITHM;
try {
String cipherMode = algorithm;
if (!blockMode.isEmpty() && !padding.isEmpty()) {
cipherMode += '... | [
"private byte[] encryptAES(byte[] message) throws GeneralSecurityException {\n Cipher encryptCipher = Cipher.getInstance(\"AES/ECB/PKCS5Padding\");\n encryptCipher.init(Cipher.ENCRYPT_MODE, aesKey);\n return encryptCipher.doFinal(message);\n }",
"private byte[] encryptMessage(String s) thr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Required. Capacity in GIB of the volume int64 capacity_gib = 10 [(.google.api.field_behavior) = REQUIRED]; | @java.lang.Override
public long getCapacityGib() {
return capacityGib_;
} | [
"@ApiModelProperty(value = \"Capacity of the sparse disk +optional\")\n public String getCapacity() {\n return capacity;\n }",
"public int getCapacity() { return this.capacity; }",
"public java.lang.Integer getCapacity() {\n return capacity;\n }",
"public int getCap(){\n return capacity;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allocate new id for the specific table. | long allocateID(final String table); | [
"public static int getNewId(String tableName) {\n Map<String, AttributeValue> request = new TreeMap<>();\n request.put(\"table_name\", new AttributeValue(tableName));\n\n // Try to get the last id and leave it at 0 if cannot find last id\n int id = 0;\n try {\n GetItemR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / | private OracleConnectionCacheManager()
/* */ {
/* 114 */ this.m_connCache = new Hashtable();
/* */
/* */
/* 117 */ UNNAMED_CACHE_COUNT = new AtomicInteger();
/* */ } | [
"private void calculatePaths() {\n\n\n }",
"public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the dislike of a post by id with post and author it associate with | @Override
public DisLikeablePost getDislikesPostById(int id) {
Criteria criteria = session.getCurrentSession().createCriteria(DisLikeablePost.class);
JoinColumn.addColumnByJoin("post", criteria);
JoinColumn.addColumnByJoin("author", criteria);
criteria.add(Restrictions.eq("id", id));
return (DisLikeablePost)... | [
"public List<Like> getLikesByPost(String id) {\n List<Like> likes = new ArrayList<Like>();\n Query query = new Query(\"Like\").setFilter(new Query.FilterPredicate(\"post\", FilterOperator.EQUAL, id))\n .addSort(\"timestamp\", SortDirection.DESCENDING);\n PreparedQuery results = datastore.prepare... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
((OpAnd | OpOr) conditions+=Condition) | public Group getGroup_1() { return cGroup_1; } | [
"public interface AND extends OpBool {\n}",
"public ConditionList addCondition(String aPropertyName, Operator anOperator, Object aValue)\n{\n return addCondition(Operator.And, aPropertyName, anOperator, aValue);\n}",
"public interface Condition_boolean {\n public static int AND=0;\n public static int O... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to get the GUIFrame object | public GUIFrame getFrame() {
return guiFrame;
} | [
"protected JFrame getFrame() {\n return frame;\n }",
"public JFrame getGUI(){\n\t\treturn this.gui;\n\t}",
"public InternalFrameUI getUI() {\n return (InternalFrameUI) ui;\n }",
"public JFrame getJframe()\r\n\t{\r\n\t\treturn frame;\r\n\t}",
"public static com.google.gwt.user.client.Elem... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void deleteById(Serializable id) {
} | [
"@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
public void adjust() {
System.out.println(this + ".adjust()");
} | [
"@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"
]
]
}
} |
check if qcStatements are present as per ETSI | private boolean hasQcStatements(TBSCertificateStructure _TbsC) {
//first check for CNIPA requirement
//then check for ETSI 102 280 requirements
//then check for ETSI 101 862
//qcstatements are defined in ETSI 101 862
X509Extensions xExt = _TbsC.getExtensions();
X509Extension qcStats = xExt.getExtension(X5... | [
"public void testGetAllStmtsForSubjectAndPredicate() \n {\n try {\n Statement[] stmtArr = DBIO.getStatementsForSubjAndPred(new URL(TESTPROCESS_NAME),new URL(Vocabulary.Identifier));\n assertEquals(\"1 statement should be found for given process and predicate\", 1, stmtArr.length);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Invoked when one of the menus is selected. | public void actionPerformed ( ActionEvent e ) {
if (thread != null && thread.isAlive())
return;
thread = new Thread(this);
thread.setPriority(Resource.getThreadPriority());
thread.start();
} | [
"public void menuSelected(MenuEvent e) {}",
"@Override\n\tpublic void menuSelected(MenuEvent e) {\n\t}",
"@Override\r\n public void actionPerformed(ActionEvent e) { //reload the main menu\r\n selected = Condition.MENU;\r\n exit();\r\n }",
"public void widget... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a response with status code 200 (OK). | public static HttpResponse new200Response(MimeType type, Charset charset, String content) {
HttpContentType contentType = new HttpContentType(type, charset);
HttpEntity entity = new HttpEntity(content, contentType);
return new200Response(entity);
} | [
"public static Response ok () {\n return Response.ok().build();\n }",
"public static <T> YZResponse<T> success() {\n return new YZResponse<T>(MessageEnum.SUCCESS.getCode());\n }",
"protected ResponseEntity ok() {\n return ResponseEntity.ok().build();\n }",
"public static HttpServ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .WeSketchBaseEvent_PB base_event = 1; | boolean hasBaseEvent(); | [
"public abstract void mo55933Pb();",
"ProcessingEvent getCurrentProcessingEvent();",
"@Override\t\r\n\t\t\tpublic void process(WatchedEvent arg0) {\n\t\t\t}",
"@Override\r\n public boolean isBasicEvent() {\r\n return true;\r\n }",
"void onBaseLayerReady();",
"void onEvent(BaseEvent event);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
change the format of the weekday for the xml request eg. "Monday" > "Mon" | public static String longWeekday2Short(String s) {
s = s.replaceAll("<weekday>Monday</weekday>", "<weekday>Mon</weekday>").replaceAll("<weekday>Tuesday</weekday>", "<weekday>Tue</weekday>").replaceAll("<weekday>Wednesday</weekday>", "<weekday>Wed</weekday>").replaceAll(
"<weekday>Thursday</weekday>", "<weekday>... | [
"public DateTimeFormatterBuilder appendDayOfWeekShortText()\r\n/* */ {\r\n/* 905 */ return appendShortText(DateTimeFieldType.dayOfWeek());\r\n/* */ }",
"private void setupdow() {\n\t\tCalendar cal = new GregorianCalendar();\n\t\tfor (int i = 0; i < 7; i++) {\n\t\t\tint dow = cal.get(Calendar.DA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get Dependency Tracking types. | public DependencyTypeEntityListing getArchitectDependencytrackingTypes(GetArchitectDependencytrackingTypesRequest request) throws IOException, ApiException {
try {
ApiResponse<DependencyTypeEntityListing> response = pcapiClient.invoke(request.withHttpInfo(), new TypeReference<DependencyTypeEntityListing>() {}... | [
"Type[] getTypes( DependencyDescriptor dependency, boolean search );",
"public TypeContext<Reference> types() { return types; }",
"public String getDeviceTrackingServiceType() {\n return deviceTrackingServiceType;\n }",
"public String[] getTypes() {\r\n\t\tif (types == null) {\r\n\t\t\ttypes = new HashSet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unregister from the bus. Therefore no more events will be received by the object. | public void unregister(Object object) {
swingBus.unregister(object);
} | [
"public void unregister() {\n mBus.unregister(this);\n }",
"public void unRegisterEvent() {\n if (EventBus.getDefault().isRegistered(this)) {\n EventBus.getDefault().unregister(this);\n }\n }",
"void unsubscribeOfEventBusEvents();",
"private void unregisterFromOttoBus() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
StringBuilder sb = new StringBuilder(mConverter.convertToString()); | private void sendText() {
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_TEXT, mConverter.convertToString());
mActivity.startActivity(intent);
} | [
"public String toStr();",
"public String intoString();",
"public abstract String toGenericString();",
"public String toString(){\n return str;\r\n }",
"public java.lang.CharSequence toXML() {\n /*\n r11 = this;\n org.jivesoftware.smack.util.XmlStringBuilder r0 = new org.jive... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XAssignment__FeatureAssignment_0_1" $ANTLR start "rule__XAssignment__ValueAssignment_0_3" ../org.yakindu.sct.generator.genmodel.ui/srcgen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12850:1: rule__XAssignment__ValueAssignment_0_3 : ( ruleXAssignment ) ; | public final void rule__XAssignment__ValueAssignment_0_3() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12854:1: ( ( r... | [
"public final void rule__XAssignment__Group_0__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/InternalJPAQLDsl.g:14719:1: ( ( ( rule__XAssignment__ValueAssignment_0_3... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the given ingredients to the user's personal list of most used ingredients. It also updates the recommenders list of ingredients. | public void updateIngredients(ArrayList <Ingredient> ingredients){
for(int i = 0; i<ingredients.size(); i++){
if(ingredients.get(i).getPriority() != NOT){
addNewIngredient(ingredients.get(i).getIngredientName());
}
}
sortList();
recommend();... | [
"public void setIngredients(List<Ingredient> ingredients) {\n this.ingredients = ingredients;\n }",
"public void setIngredients(@NonNull List<Ingredient> ingredients){\n step = null;\n this.ingredients = ingredients;\n }",
"public void updateIngredients() {\n ingredientsListModel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get number of basic operations | @Override
public int numOps() {
// TODO Auto-generated method stub
return numOps;
} | [
"public int getTotalOps();",
"int getUnaryOpCount();",
"public int getOpCount() { return _ops.size(); }",
"public int countTheirOperations() {\n\t\tif (theirOperationCount == null) {\n\t\t\tcountConflicts();\n\t\t}\n\t\treturn theirOperationCount;\n\t}",
"int getOpListCount();",
"protected int getNumOper... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional uint32 ClientId = 1; | public boolean hasClientId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
} | [
"public long getClientID ();",
"public int getClientid() {\n return clientid;\n }",
"private ClientIdServer() {\n idCounter = 1;\n }",
"public long getClientId() {\n if (clientId == 0) {\n clientId = Math.abs(new Random().nextInt()); //random??\n }\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table CPRelation | List<Cprelation> selectByExample(CprelationCriteria example); | [
"public LeaseSchetFaktAccessBeanTable () {\n super();\n }",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"dip_roleandfunction_c\";\n\t}",
"@Override\n\tpublic void CreateFromSQL() {\n\n\t}",
"@Select({\n \"select\",\n \"id, coupon_limit, member_id, member_name, car_id, car... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the activationCharges property. | public void setActivationCharges(double value) {
this.activationCharges = value;
} | [
"public void setActivated(Integer activated) {\r\n\t\tthis.activated = activated;\r\n\t}",
"public synchronized void setCharge(int charge)\n {\n iCharge = charge;\n }",
"public void setCharge(int charge) {\n this.charge = charge;\n }",
"public Builder setActivationBits(int value) {\n bit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the Actual Used memory used cache/buffers | public long getActualUsed() {
return actualUsed;
} | [
"public long getAvailableMemoryDeviceMemory() {\n long freeMemory = accessDeviceProcMemInfoFilterByKeyName(MemoryTracker.MEM_FREE);\n long buffers = accessDeviceProcMemInfoFilterByKeyName(MemoryTracker.BUFFERS);\n long cached = accessDeviceProcMemInfoFilterByKeyName(MemoryTracker.CACHED);\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Atomically sets the field of the given object managed by this updater to the given value and returns the old value. | public V getAndSet(T obj, V newValue) {
V prev;
do {
prev = get(obj);
} while (!compareAndSet(obj, prev, newValue));
return prev;
} | [
"void set(Object editedObject, Object value);",
"@Override\n public void setValue(Object obj) {\n this.value = obj;\n }",
"public static void setField(final Field field, final Object obj, final Object value) throws Exception {\r\n\t\t\r\n\t\tif (value == null) return;\r\n\t\t\r\n enableFiel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method creates a new instance of the client class in order for it to run. | public static void main(String[] args)
{
//default values
String host = "localhost";
String dir = "puppies\\";
boolean errorFound = false;
if (args.length==0)
errorFound = true;
int i=0;
while(!errorFound && i<args.length)
{
if(args[i].equals("-help"))
{
... | [
"public Client() {\r\n\t\t\r\n\t}",
"public Client createClient() {\n return new Client();\n }",
"public Client () {}",
"public Client() {\n this.chain = new ChainBuilder();\n }",
"public Client()\n{\n}",
"public Client() {\n this(\"localhost\", 7072);\n }",
"private ClientRunner() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .NodeEndpoint node_endpoints = 1; | public java.util.List<NodeEndpoint> getNodeEndpointsList() {
return nodeEndpoints_;
} | [
"public Node secondEndpoint(){\n\t\treturn v;\n\t}",
"GraphNode secondEndpoint(){\n return node2;\n }",
"public int getNumEndpoints() {\n\t\treturn 0;\r\n\t}",
"@Test\n public void multipleEndpoints() {\n RemoteEndpoint ep1 = new RemoteEndpoint().setServiceName(TEST_SERVICE1).setEndpoint(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method initializes txtSDevice | private javax.swing.JTextField getTxtSDevice() {
if (txtSDevice == null) {
txtSDevice = new javax.swing.JTextField();
}
return txtSDevice;
} | [
"public void teleopInit(){\n\t\n\t\tScheduler.getInstance().removeAll();\n\t\tdemochooser.addDefault(\"boring drive\", demoMode);\n\t\tdemochooser.addObject(\"OVERHYPER DRIVE BETA\", standardMode);\n\t\tSmartDashboard.putData(\"Drive Mode Chooser\", demochooser);\n\t\tdemoCommand = (Command)demochooser.getSelected... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Logger.d(TAG, "!>setVoiceLevel = "+level); | @Override
public void run() {
mVoiceLevel.setPercent(level);
// mMicSoundRender.startVoiceAnim();
// mImageViewMicRecognizeBg.setVisibility(View.VISIBLE);
// mImageViewMicRecognize.clearAnimation();
mImageViewMicRecognize.setVisibility(View.GONE);
} | [
"@Override\n public void onStatus(String status) {\n log(\"Voice Status = \" + status);\n }",
"public void _recVoice() {\n }",
"public void setLevel(Level level) {}",
"boolean hasEnableAudioLevel();",
"public void setLevel(Level level) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads the file's UTF8 BOM if any and stores it. XXX: This is a workaround for a corresponding bug in Java readers and writer, see: | protected void readUTF8BOM(IFile file, String encoding, Object element) throws CoreException {
} | [
"@Test\r\n\tpublic void testUtf16Bom() throws IOException\r\n\t{\r\n\t\tRandomAccessSourceReader ralr = new RandomAccessSourceReader( new FileResource( \"patch-utf-16-bom-1.sql\" ), EncodingDetector.INSTANCE );\r\n\t\tUpgradeFile upgradeFile = new UpgradeFile( ralr );\r\n\t\tupgradeFile.scan();\r\n//\t\tAssert.asse... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Validator for passenger carriage. | public boolean validatePassengerCarriage(final String[] inputInformation) {
if (!validateStr(inputInformation[0])) {
LOGGER.error("Incorrect parameter: type of the"
+ " passenger carriage. It must be string.");
return false;
}
if (!PassengerCarriageEnu... | [
"boolean agentWithdrawValidations(String lines[]) {\n \n if(!lines[0].equals(\"withdraw confirm\")){\n System.out.println(\"withdraw-confirm validation fail: first line not 'withdraw confirm'\");\n return false;\n }\n if(lines.length != 3){\n System.out.println(\"withdraw-confirm ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If you have a parent link available | public static TreeNode findLowestCommonAncestorWithParentLink(TreeNode node1, TreeNode node2) {
if (node1.data == node2.data) return null;
TreeNode ancestor = node1;
while (ancestor != null) {
if (ancestorIsInPathOf(ancestor, node2)) {
return ancestor;
}... | [
"boolean hasParent() {\n\t\t\treturn false;\n\t \t\n\t }",
"protected boolean hasParent(){\n return this.parent != this;\n }",
"public boolean hasParent(){\n if(parent != null){\n return true;\n }\n return false;\n }",
"public boolean has... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build the summaries for the methods that belong to the given class. | public void buildSerializableMethods(List elements) {
MemberDoc[] members = currentClass.serializationMethods();
if (members.length > 0) {
for (int i = 0; i < members.length; i++) {
currentMember = members[i];
build(elements);
}
}
... | [
"protected abstract void buildSummary();",
"protected void generateMethodSummaryReport(List<ISuite> suites) {\n\t\tmethodIndex = 0;\n\t\tstartResultSummaryTable(\"methodOverview\");\n\t\tint testIndex = 1;\n\t\t\n\t\tfor (ISuite suite : suites) {\n\t\t\tif (suites.size() >= 1) {\n\t\t\t\ttitleRow(suite.getName(),... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the internal state of the gun. Setting its position to the wielders position. Tweaking the height and position of the DynamicObject with setHeightOffset respectively setPosOffset to preserve a reasonable drawing order. | public void update()
{
model.setPos(wielder.get_x(), wielder.get_y());
model.setPosOffset(offset_x * model.getAnimation().getWidth()/3, offset_y * model.getAnimation().getHeight()/4);
switch(model.getState())
{
case 1:
case 3:
case 6:
model.setHeight(wielder.getHeight());
model.setHeightOf... | [
"public void update() {\r\n\t\tgeometry.moveTowards(body.getPosition(), body.getAngle());\r\n\t}",
"@Override\n\tpublic void update() {\n\t\tsetPos(posX + (int) (direction.x * VELOCITY), \n\t\t\tposY + (int) (direction.y * VELOCITY));\n\t}",
"public void update() {\r\n\t\t\t// use some perlin noise with the sin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Crea el archivo para guardar fotos o videos | private static File obtenerArchivoParaEscribir(int tipo ,String prefijoNombre, String nombre,String directorio){
File mediaStorageDir = new File(Environment.getExternalStorageDirectory()+File.separator+ConstantesDeEntorno.directorioAplicacion+File.separator+directorio);
if (! mediaStorageDir.exists()){
... | [
"private File createDestinationFile() throws IOException {\n String timestamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.US).format(new Date());\n String imageFileName = \"contact_\" + timestamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method for save data only in txt file | public static void saveFile(StringBuilder arr) {
JFileChooser chooser = new JFileChooser();
chooser.setCurrentDirectory(new File("D://"));
int retrival = chooser.showSaveDialog(null);
if (retrival == JFileChooser.APPROVE_OPTION) {
try {
FileWriter fw = new Fi... | [
"private void save(String text) {\n\t\tFileOutputStream out = null;\n\t\tBufferedWriter write = null;\n\t\ttry {\n\t\t\tout = openFileOutput(\"data\", MODE_PRIVATE);\n\t\t\twrite = new BufferedWriter(new OutputStreamWriter(out));\n\t\t\twrite.write(text);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / C O N S T R U C T O R / Construct a new work group. | public
WorkGroups()
{
pUserIDs = new TreeMap<String,Integer>();
pUserNames = new TreeMap<Integer,String>();
pNextUserID = 1;
pGroupIDs = new TreeMap<String,Integer>();
pGroupNames = new TreeMap<Integer,String>();
pNextGroupID = 1;
pUserGroups = new TreeMap<Integer,TreeSet<... | [
"Group createNewGroup (Group group);",
"public int Group_create();",
"@SuppressWarnings(\"AccessingNonPublicFieldOfAnotherObject\")\n \tpublic static GroupDataModel createNew(GroupDataInitialiser init)\n \t{\n \t\tGroupDataModel ret = new GroupDataModel();\n \t\tret.myId = UUID.randomUUID().toString();\n \t\tre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ public void deleteGeProductCuserRelByPK(java.lang.Integer id) throws MyException ; | @ApiOperation(value = "delete ge_product_cuser_rel")
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "PK ", required = true, paramType = "delete", dataType = "java.lang.Integer")
})
@SuppressWarnings({"rawtypes"})
@ResponseBody
@RequestMapping("/deleteGeProductCuserRel"... | [
"public void deleteRelTramiteDocumento(RelTramiteDocumento reltramitedocumento_1);",
"public void deleteProduct(Long id) {\n\r\n\t}",
"public void deletePrestamo(Long id) throws Exception;",
"int deleteByPrimaryKey(Integer idgeoreferencia);",
"public void delete(StrutturaShoppingDintorniPk pk) throws Strutt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
no output parameters repeated .dstore.engine.st_ModifyPeriodsToKeepStats_Ad.Response.Row row = 4; | public io.dstore.engine.procedures.StModifyPeriodsToKeepStatsAd.Response.RowOrBuilder getRowOrBuilder(
int index) {
if (rowBuilder_ == null) {
return row_.get(index); } else {
return rowBuilder_.getMessageOrBuilder(index);
}
} | [
"private void updateDataBalanceNotSummary() {\n\n String sql = \"\", action = \"\";\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try{\n // Cuentas de diferencia de cambio\n MAccount acctDifCambioGanada = MAccount.get(this.ctx, acctSchema.getAcctSchem... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the after5h precip intensity. | public void setAfter5hPrecipIntensity(double after5hPrecipIntensity) {
this.after5hPrecipIntensity = after5hPrecipIntensity;
} | [
"public void set_hands_on_count_threshold_data(int val) \n{ \n //println(\"HANDS_ON_COUNT_THRESHOLD:\"+val);\n\n cp5.getController(\"HANDS_ON_COUNT_THRESHOLD\").setValue(val);\n}",
"public void set_hands_off_count_threshold_data(int val) \n{ \n //println(\"HANDS_OFF_COUNT_THRESHOLD:\"+val);\n\n cp5.getControl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the collision status for a tile. | CollisionStatus collisionStatus(CosmodogGame cosmodogGame, Actor actor, CosmodogMap cosmodogMap, int tileX, int tileY); | [
"public int getCollision() {\r\n return this.collision;\r\n }",
"public CollisionRect getCollisionRect () {\n return rect;\n }",
"public Rectangle getCollisionRectangle() {\r\n return this.collisionRectangle;\r\n }",
"public TiledMapTileLayer getCollisionLayer() {\n\t\treturn (Ti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
map<int32, .map_for_proto2_test.TestMap.MessageWithRequiredFields> required_message_map = 11; | java.util.Map<java.lang.Integer, map_test.MapForProto2TestProto.TestMap.MessageWithRequiredFields>
getRequiredMessageMapMap(); | [
"java.util.Map<java.lang.Integer, rescuecore2.messages.protobuf.RCRSProto.MessageComponentProto>\n getComponentsMap();",
"com.google.protobuf.benchmarks.BenchmarkMessage1Proto2.GoogleMessage1SubMessageOrBuilder getField15OrBuilder();",
"com.google.protobuf.benchmarks.BenchmarkMessage1Proto2.GoogleMessage1Sub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is the only child class of Piece that differs by keeping track whether it's first move or not. As movement depends on it. | public Pawn(boolean team){
super(team);
firstMove = true;
} | [
"@Override\n protected boolean makeInternalMove( ChessMove move )\n {\n\n BoardPosition oldPos = getPosition(move.getFromRow(), move.getFromCol());\n BoardPosition newPos = getPosition(move.getToRow(), move.getToCol());\n\n // remove the captures before we place the moved piece since it m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method returns all the items needed to build the product. | String getItems() {
String itemString = this.description + " has ";
for(int i = 0; i < items.size(); i++) {
if(i != items.size() - 1) {
itemString += ((items.get(i)).getDescription() + ", ");
}
else {
itemString += "and " + (items.get(i)).getDescription();
}
}
return itemString;
} | [
"private ArrayList<Product> initializeProducts() {\n ArrayList<Product> res = new ArrayList<>();\n Random r = new Random();\n res.add(new Product(Utils.productNames.get(r.nextInt(Utils.productNames.size() - 1)), r.nextInt(Integer.SIZE - 1) * 1000, Math.round(r.nextFloat() * 1000) / 100f));\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Returns how much of the file has been processed in terms of bytes | @Override
public synchronized float getProgress() throws IOException {
if (start == end) {
return 0.0f;
} else {
return Math.min(1.0f, (getFilePosition() - start) / (float)(end - start));
}
} | [
"long getTotalSize() throws IOException;",
"public long getFileReadPasses(){\n\t\treturn tableFileSize/(Configuration.MEMORY_SIZE/Configuration.BLOCK_SIZE);\n\t}",
"public abstract int getTotalBytesRead();",
"public long getFileLenght(){\n\t\treturn file.length();\n\t}",
"protected long length() {\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
yes, we do handle "lock timeout" conditions in the exception conversion delegate, but that's a hardcoded lock timeout period across the whole entire MySQL database. MySQL does not support specifying lock timeouts as part of the SQL statement, which is really what this meta method is asking. | @Override
public boolean supportsLockTimeouts() {
return false;
} | [
"@Override\r\npublic void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {\n\t\r\n}",
"T lockTimeout(Long lockTimeout);",
"public static void testDeadlockException()\r\n\t{\r\n\t\tConnectionPool conPool = getConnectionPool();\r\n\t\tSQLExecutor sqlExec1 = new SQLExecutor(conPool);\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public synchronized void addStatusListener(StatusListener l) | protected void fireStatusChanged(String e) {
if(statusListeners != null) {
Vector<StatusListener> listeners = statusListeners;
int count = listeners.size();
for(int i = 0; i < count; i++) {
listeners.elementAt(i).statusChanged(e);
}
}
} | [
"public abstract void addStatusListener(IStatusListener listener);",
"public static void addStatusListener(StatusListener listener) {\n \t_statusListeners.add(listener);\n }",
"public void addResourceStatusEventListener(ResourceStatusListener listener)\n {\n addResourceStatusEventListener(listen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void save(Link obj) {
this.getHibernateTemplate().save(obj);
} | [
"@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"
]
]
}
} |
Buyer rents a slot from the seller. | void rentParkingSlot(Seller s, int spotID, int slotID); | [
"public void sell() {\n if (!World.getPlayer().hasMerchantList()) {\n return;\n }\n \n final MerchantList merchantList = World.getPlayer().getMerchantList();\n assert merchantList != null;\n \n final ItemCount count = parentSlot.getCount();\n if (!ItemCoun... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to fetch user's latest password. | UserPasswordModel getCurrent(long userId); | [
"public String getLatestPassword()\r\n {\r\n String password = null;\r\n final List<Password> pwdList = new ArrayList<Password>(getPasswordCollection());\r\n if (pwdList != null)\r\n {\r\n Collections.sort(pwdList);\r\n if (!pwdList.isEmpty())\r\n {\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional uint32 BridgeHandle = 4; | public Builder clearBridgeHandle() {
bitField0_ = (bitField0_ & ~0x00000008);
bridgeHandle_ = 0;
onChanged();
return this;
} | [
"public int getHandle(){\n return handle;\n }",
"private native int getNumPorts(int hubHandle);",
"public interface BridgeAPI {\n void bridge(int length, int height, int width);\n}",
"private native String getUniqueDeviceID(int hubHandle,int portIndex);",
"protected long getHandle()\n \t{\n \t\tret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Takes a compoundtag and makes a exact copy of it. | public CompoundTagWrapper newCompoundTag(CompoundTagWrapper wrapper) {
return new CompoundTagWrapper(wrapper);
} | [
"public static NbtCompound asCompound(NbtBase<?> tag) {\n\t\tif (tag instanceof NbtCompound)\n\t\t\treturn (NbtCompound) tag;\n\t\telse if (tag != null)\n\t\t\tthrow new UnsupportedOperationException(\n\t\t\t\t\t\"Cannot cast a \" + tag.getClass() + \"( \" + tag.getType() + \") to TAG_COMPUND.\");\n\t\telse\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Strateg naj neha igrati potezo; | public abstract void prekini(); | [
"public void strategieDeplacementCase();",
"public void AltaCategoria(String nombre) throws CategoriaExcepcion;",
"Categoria(String descricao) {\n\t\tthis.descricao = descricao;\n\t}",
"public interface Strategie {\r\n\r\n\t/**\r\n\t * Retourne la carte qui va etre jouer.\r\n\t * \r\n\t * @param joueurCourant... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__EClass__Group_8__3" $ANTLR start "rule__EClass__Group_8__3__Impl" ../pimar.editor.textual.xwcore.ui/srcgen/pimar/editor/textual/xwcore/ui/contentassist/antlr/internal/InternalXwcore.g:15375:1: rule__EClass__Group_8__3__Impl : ( ( rule__EClass__Group_8_3__0 ) ) ; | public final void rule__EClass__Group_8__3__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../pimar.editor.textual.xwcore.ui/src-gen/pimar/editor/textual/xwcore/ui/contentassist/antlr/internal/InternalXwcore.g:15379:1: ( ( ( rule__EClass__... | [
"public final void rule__EClassOpDef__Group_1__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../it.univaq.coevolution.emfmigrate.ui/src-gen/it/univaq/coevolution/emfmigrate/ui/contentassist/antlr/internal/InternalEmig.g:2847:1: ( rule_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Call method under test | @Test
public void onSortChanged_test() {
mPresenter_testSub.onSortChanged(menuItem);
//Verify that model updates sharedPref
verify(mModel).changeSortPreference(anyString());
} | [
"public void testManualTest()\n {\n\n }",
"abstract protected void doCall(TestMethod method) throws Exception;",
"@Override\n\t\tpublic void testMe() {\n\t\t\t\n\t\t}",
"@Override\n public void test() {\n }",
"public void testIt() {\n\t}",
"public void test(){\r\n\t}",
"protected void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
FIREBASE AUTH BELOW CODE HANDLE AUTHENTICATION METHOD | private void sendVerificationCode() {
PhoneAuthProvider.getInstance().verifyPhoneNumber(numberWithCode, 60, TimeUnit.SECONDS, this, mCallbacks);
} | [
"private void firebaseAuthenticationInit() {\n mAuth = FirebaseAuth.getInstance();\n\n mAuthListener = new FirebaseAuth.AuthStateListener() {\n @Override\n public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {\n\n\n }\n };\n\n }",
"void authe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test get model title library. | @Test
void test_getModelTitleLibrary() {
PersonalLibraryController controller = new PersonalLibraryController();
controller.addBook("cat in the hat", "", "", "", "");
controller.addBook("cat in the hat", "", "", "", "");
controller.addBook("cat in the hat", "", "", "", "");
controller.addBook("book1", "", "... | [
"public java.lang.String getTitle( ) ;",
"@org.junit.Test\n public void testGetTitle() {\n // arrange : set up the test\n final JSeriesbysearchResponse jSeriesbysearchResponse = mock(JSeriesbysearchResponse.class);\n assert jSeriesbysearchResponse != null;\n\n // act : run the test... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A Vega party identifier (pubkey) string party_id = 2 [json_name = "partyId"]; | @java.lang.Override
public java.lang.String getPartyId() {
java.lang.Object ref = partyId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String ... | [
"public String getPartyId (){\n \n return DWLFunctionUtils.getStringFromLong(eObjCreditInfo.getPartyId());\n }",
"public void setPartyid(BigDecimal partyid) {\n this.partyid = partyid;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getSenderPartyId();",
"byte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the user from the list and the main chat, when they logged of. Also closes the whisper chat with the user if one is open. | public void removeUserFromUserlist(ClientUser user) {
userListModel.removeElement(user);
mainChatPanel.removeChatUser(user);
tabbedPane.remove(getWhisperChatForUser(user));
} | [
"@Override\r\n\tpublic void leaveChat(String userName) throws RemoteException{\r\n\t\t\r\n\t\tfor(Chatter c : chatters){\r\n\t\t\tif(c.getName().equals(userName)){\r\n\t\t\t\tSystem.out.println(line + userName + \" saiu do chat... \");\r\n\t\t\t\tSystem.out.println(new Date(System.currentTimeMillis()));\r\n\t\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Transform__Group__1__Impl" $ANTLR start "rule__Transform__Group__2" InternalSparrow.g:8101:1: rule__Transform__Group__2 : rule__Transform__Group__2__Impl rule__Transform__Group__3 ; | public final void rule__Transform__Group__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalSparrow.g:8105:1: ( rule__Transform__Group__2__Impl rule__Transform__Group__3 )
// InternalSparrow.g:8106:2: rule__Transform__Group__2__Impl ... | [
"public final void rule__Filter__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalVideoGen.g:2015:1: ( rule__Filter__Group__2__Impl )\n // InternalVideoGen.g:2016:2: rule__Filter__Group__2__Impl\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required .se.liu.ed.USSensorData uSSensorData4 = 4; | public boolean hasUSSensorData4() {
return ((bitField0_ & 0x00000008) == 0x00000008);
} | [
"void newSensorData(ISensorData data);",
"public Sensors()\n {\n // initialise instance variables\n \n }",
"public String getName() {\n return \"Sensor data\";\n }",
"@Override\n public void onSensorChanged(SensorEvent sensorEvent){\n float lux = sensorEvent.values[0];\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 250 /Coverage entropy=0.6365141682948128 | @Test(timeout = 4000)
public void test250() throws Throwable {
Form form0 = new Form("END_TAG");
form0.afterAdd();
assertFalse(form0._isBuilt());
} | [
"@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ... | {
"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 java.lang.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"
]
]
}
} |
Sets the value of attribute 'version'. | public void setVersion(int version) {
this.version = version;
} | [
"protected void setVersion(int version) {\n\t\tthis.version = version;\n\t}",
"void setVersion(it.csi.airquality.aqa.x100.VersionDocument.Version version);",
"@Override\n public void setVersion( String version ) {\n this.version = version;\n }",
"public void setVersion(String value) {\n this.versi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates GraphNode object and adds it to the Graph. if the node already exists, it will not update anything, just return the matching ID. | public void addNode(String nodeName, String nodeLabel, String nodeType) throws Exception{
if (!nodes.containsKey(nodeName)) {
int id = getNextId();
nodes.put(nodeName, nodeFactory.newGraphNode(id, nodeName, nodeLabel, Constants.NODE_WEIGHT_INCREMENT, nodeType));
addNodeType(nodeType); //only if it's a new va... | [
"private static Node createNode(GraphDatabaseService graphDb, String memberName) throws Exception {\n\t\tNode newNode = null;\n\t\t// Create and start a new transaction\n\t\tTransaction tx = graphDb.beginTx();\n\t\ttry {\n\t\t\t// First search in the DB if the node do not already exists...\n\t\t\tIterable<Node> mem... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public List<CategoryEntity> parseHomeForCategoryLinks(String baseURL) {
List<CategoryEntity>categoryList = null;
try {
Document doc = Jsoup.connect(baseURL).timeout(Constants.MAX_DELAY_TIME * 1000).get();
if (doc != null) {
Elements categoryElements = doc.select("table[class=... | [
"@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"
]
]
}
} |
String time = getResources().getString(R.string.time_format); | @Override
public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
String formatTime = String.format("%02d:%02d", hourOfDay, minute);
String dateTime = date + " " + formatTime;
txtDateTime.setText(dateTime);
} | [
"public static String getStringTime(long time, Context context) {\n\t\t\n\t\tString str = \"\";\n\t\ttime = time / 1000;\n\t\tint h = (int) (time / 3600);\n\t\tint m = (int) (time % 3600 / 60);\n\t\tif (h == 0) {\n\t\t\tif (m != 0) {\n\t\t\t\tstr = \"0\" + context.getString(R.string.departuredetail_view_hours) + St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
factory method to create a shallow copy DeliveryItemsUpdatedMessagePayload | public static DeliveryItemsUpdatedMessagePayload of(final DeliveryItemsUpdatedMessagePayload template) {
DeliveryItemsUpdatedMessagePayloadImpl instance = new DeliveryItemsUpdatedMessagePayloadImpl();
instance.setDeliveryId(template.getDeliveryId());
instance.setItems(template.getItems());
... | [
"@Override\n\tpublic IMessage createCopy() {\n\t\treturn null;\n\t}",
"@Override\n public Object getChangePayload(int oldItemPosition, int newItemPosition) {\n return super.getChangePayload(oldItemPosition, newItemPosition);\n }",
"public Item makeCopy();",
"MessagePayload(){}",
"@G... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
onStop Called when the activity is no longer visible to the user because another activity has been resumed and is covering this one. This may happen either because a new activity is being started, an existing one is being brought in front of this one, or this one is being destroyed. Followed by either onRestart() if th... | @Override
protected void onStop() {
super.onStop();
} | [
"@Override\n protected void onStop() {\n super.onStop();\n Toast.makeText(this, \"Activity is Stopped\", Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n protected void onStop() {\n super.onStop();\r\n finish();\r\n }",
"@Override // androidx.fragment.app.FragmentActivity... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
mozemo odavde pozvati nas kontroler da se nesto smisleno odradi | @Override
public void actionPerformed(ActionEvent e) {
fireEditingStopped();
if (GlavniProzor.otvoreniTab==0) {
PrikazivanjeSpiskaPredmetaZaStudenta ps = new PrikazivanjeSpiskaPredmetaZaStudenta();
} else if (GlavniProzor.otvoreniTab==1) {
PrikazivanjeSpiskaPredmetaZaProfesora pp = ... | [
"@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}",
"@Override\n\tpublic void zavrsenaKupovina() {\n\t\t\n\t}",
"@Override\r\n\tpublic void carregaControle() {\n\t\t\r\n\t}",
"@RequestMapping(\"/zaposleni\")\n public String zaposleni(ModelMap model, HttpSession session) {\n List<Zaposleni> zaposlen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method of modifying health | public void modifyHealth(int health){
} | [
"public void setHealth(double health);",
"@Override\n public void addHealth(int health) {\n }",
"public void setHealth(String health);",
"public void decreaseHealth() {\r\n\r\n\t}",
"abstract public void reduceHealth();",
"public void setHealth(int health) {\n\t this.health = health;\n\t}",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .mesos.internal.StatusUpdate updates = 4; | public int getUpdatesCount() {
if (updatesBuilder_ == null) {
return updates_.size();
} else {
return updatesBuilder_.getCount();
}
} | [
"@Override\r\n\tpublic void updateStatus(StatusUpdate arg0) {\n\t\t\r\n\t}",
"public void startUpdates(){\n mStatusChecker.run();\n }",
"void onUpdateStatus(UpdateStatus updateStatus);",
"@Override\r\n\tpublic void updateStatus(String arg0) {\n\t\t\r\n\t}",
"private void incrementUpdateCount() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Height in pixels of the preview size image. optional int64 preview_pixel_height = 19; | boolean hasPreviewPixelHeight(); | [
"public int getPreviewSize()\n\t{\n\t\treturn previewSize;\n\t\t\n\t}",
"private Integer getImageMaxHeight() {\n if (imageMaxHeight == null) {\n // Calculate the max width in portrait mode. This is done lazily since we need to wait for\n // a UI layout pass to get the right values. So delay it to fir... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get details of all user deletion jobs | public ApiListResponseOfBulkUserDelete getDeleteUsersJobsUsingGET() throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/delete-users";
// query params
List<Pair> localVarQueryParams = new ArrayList<Pair>();
Map<String, String> loca... | [
"public List<User> getUserToDelete() {\n\treturn usersToDelete;\n }",
"public String getJobUsers() {\n return jobUsers;\n }",
"@GET(\"/api/specific/workerdetails/{user_id}\")\n Call<List<Worker>> getJobs(@Header(\"Authorization\") String aToken,\n @Path(\"user_id\")... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is a proxy to getDiagnosisCodeBase | @Override
public DiagnosisCodeIF getNRSDiagnosisCode(String value) {
return getDiagnosisCodeBase(nrsDiagnosisCodes, value);
} | [
"java.lang.String getDiagnosisSystem();",
"public ICDCode getDiagnosisForResult ( String result ) {\r\n return null;\r\n }",
"public ICodeConditionDAO getCodeConditionDAO();",
"public static void getDiffDiagnosis(String icdCode, XModel dataM)\r\n/* 25: */ {\r\n/* 26: 117 */ throw new E... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: f | public final void mo28060f() throws IOException {
mo28153l("start an object");
this.f25902X = this.f25902X.mo28145i();
C10911m mVar = this.f25860c;
if (mVar != null) {
mVar.mo28089a(this);
return;
}
if (this.f25956i0 >= this.f25957j0) {
... | [
"public abstract T mo8125a(F f);",
"public void mo92799a(float f) {\n }",
"public static void f() {\n\n\t}",
"@Override\n public void f() {\n }",
"void mo11404bf(float f);",
"private void f() {\n }",
"void mo22696a(float f);",
"private static void plus(float f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the orientation of the unit to the angel between 0 and 2Pi that equals the given angle. | public void setOrientation(double newOrientation) {
newOrientation = newOrientation % (2 * Math.PI);
while (newOrientation < 0)
newOrientation = newOrientation + 2 * Math.PI;
this.orientation = newOrientation;
} | [
"public void setOrientation(double angle) {\n\t\tassert 0<= angle && angle<=2*Math.PI;\n\t\tthis.orientation = angle;\n\t}",
"public void rotate(double angle) { orientation += angle; }",
"@Basic @Model\r\n\tpublic void setAngle(double angle) \r\n\t{\r\n\t\tif (angle > Math.PI)\r\n\t\t\tangle = Math.PI;\r\n\t\ti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get all valence torsions for molecule. | public List<CMLLength> create14Lengths(CMLAtomSet atomSet, boolean calculate, boolean add) {
List<CMLTorsion> torsionVector = createValenceTorsions(atomSet, calculate, add);
List<CMLLength> list = new ArrayList<CMLLength>();
for (CMLTorsion torsion: torsionVector) {
CMLLength length... | [
"public ArrayList<ValutazioniUtente> allEvaluation() {\n // STEP 1: dichiarazioni\n Statement stmt = null;\n Connection conn = null;\n ResultSet rs = null;\n ArrayList<ValutazioniUtente> vu = new ArrayList<>();\n try {\n // STEP 2: apertura connessione\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by EricLocal on 8/20/2014. | public interface SWAGerService {
@GET("/books")
void getBooks(Callback<List<Book>> callback);
@GET("/books/{id}")
Book getBook(@Path("id") String id);
@POST("/books/")
void createBook(@Body Book book, Callback<Book> callback);
@PUT("/books/{id}/")
void editBook(@Path("id") String id, ... | [
"@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}",
"@Override\n }",
"protected void method_5557() {}",
"protected void mo4791d() {\n }",
"public void mo28221a() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set the value of the card by rules | private void SetValue() {
// TODO Auto-generated method stub
if(number==1)
value=11;
if(number>1 && number<11)
value=number;
if(number==11 || number==12 || number==13)
value=10;
} | [
"public void setCardVal(int cardVal) {\n this.cardVal = cardVal;\n }",
"void setCard(String cardNum, String cardType);",
"void enableCard(String cardValue);",
"private void setRuleValue(int value) {\n rule_ = value;\n }",
"public void setCard(AuraCard card) {\n cardName.setText(ca... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string message = 1; | public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
... | [
"T message(String value);",
"void mo31256a(Message message);",
"String getMessageString();",
"void mensaje(String msg);",
"void setMessage(String m);",
"void sendMessage(String m);",
"void sendString(String stringMessage);",
"public String getMessage()\n \n \n {\n \t\n System.out.printl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true the object should be added to mem cache; otherwise returns false. | default boolean addToMemCache() {
return true;
} | [
"public boolean isStoredInCache();",
"protected abstract boolean cacheExists();",
"boolean isCaching();",
"boolean addObject(Object userKey, Object cacheObject);",
"public boolean put(V obj) {\n URL url = obj.getClass().getClassLoader().getResource(\"getKey\");\n\n return cache.put((K) url, ob... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all terms that have more than 1 URI | public Map<String, Set<String>> getLoggedURIsAndTerms()
{
return loggedURIsAndTerms;
} | [
"public Set<String> getTerms();",
"Collection<IRI> getPreferredRootTerms();",
"public java.util.Set getTerms () {\r\n\t\treturn this._terms;\r\n\t}",
"public int getNumTerms()\r\n\t\t\t{\r\n\t\t\t\treturn termList.size();\r\n\t\t\t}",
"public Collection<Query> getTerms() {\n return terms;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
the function got changed it isn't a function anymore this can't happen and it can't be tested; | @Override
public Abstraction visit(Function function) {
throw new RuntimeException();
} | [
"private void FUNCOUT() {\n\t}",
"public void updateFunction(){\n //delete old function\n listener.eventHappened(new MyEvent(this,\"Delete Function\",functionWorldObject));\n \n //get text in text field\n String textFieldText;\n textFieldText=textField.getText();//de.getD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
op name. optional string name = 1; | public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
} | [
"void setOp(java.lang.String op);",
"public UMLOperation getOperation(String name);",
"private CompareOperation(String name) {\n this.name = name;\n }",
"public Name operatorName(int tag) {\n\t\treturn opname[tag - Tree.POS];\n\t}",
"private Operator parseOperator(String name) {\n //Avoid c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.sodifrance.stage.esb.servicemix.conditional | public ObjectFactory() {
} | [
"public static Factory factory() {\n return ext_xsd::new;\n }",
"public static Factory factory() {\n return ext_cson::new;\n }",
"public interface SmtmetamodelFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return the common words in a string | public String getCommon(){
return commonwords;
} | [
"public int countOverlap (String a, String b) {\n int nWord = 0;\n int nCommon = 0;\n String longStr;\n String shortStr;\n if (a.length() > b.length()){\n longStr = a;\n shortStr =b;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Saves the elements for the Guide to the local database so that they can be accessed and edited at a later time. | private void saveGuide() {
// Remove previous entries from the database
ContentProviderUtils.deleteModel(this, mGuide);
ContentProviderUtils.deleteModel(this, mArea);
ContentProviderUtils.deleteModel(this, mTrail);
ContentProviderUtils.deleteSectionsForGuide(this, mGuide);
... | [
"public void saveElements() {\n\t\tif (changed_elements)\n\t\t\tforceSaveElements();\n\t}",
"public void save()\n\t{\n\t\ttry {\n\t\t\tcourses.writeFile(courseFile);\n\t\t\tindexes.writeFile(indexFile);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub array of 10 numbers | public static void main(String[] args) {
int numbers[]=new int[]{45,80,74,25,39,40,33,55,90,04};
//assign first element of an arry to largest and smallest
int smallest = numbers[0];
int largest = numbers[0];
for(int i=1; i< numbers.length; i++)
{
if(numbers[i]>largest){
largest = n... | [
"public List<Integer> createNumbers() {\n List<Integer> availableNumbers = new ArrayList<>();\n for (int i = 1; i <= 9; i++) {\n availableNumbers.add(i);\n }\n return availableNumbers;\n }",
"@Override\n\tpublic Lotto[] numbers() {\n\t\treturn null;\n\t}",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.add_photo, menu); | @Override
public boolean onCreateOptionsMenu(Menu menu) {
return true;
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_photo, menu);\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_vi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getting the dimension of this vector. Note, dimension is the number of values in this vector. | public int dim() {
return data.length;
} | [
"public int dimension() {\n return vectors.ncol();\n }",
"public int getDimension()\r\n \t{\r\n \t\treturn size.numDimensions();\r\n \t}",
"public int dimension() {\r\n return dimen;\r\n }",
"public int getDimensionSize() {\n return dimSize.length;\n }",
"final public int getDi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
StringBuilder result = new StringBuilder();
int line = scanner.nextInt();
for(int i = 0; i < line; i++) {
int M = scanner.nextInt();
int N = scanner.nextInt();
int x = scanner.nextInt();
int y = scanner.nextInt... | [
"@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"
]
]
}
} |