query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Returns true if this messaging user preferences is email activity daily digest. | public boolean isEmailActivityDailyDigest(); | [
"public boolean isSetNotificationEmailAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NOTIFICATIONEMAILADDRESS$26) != 0;\n }\n }",
"public boolean isOnDemandMailing ()\n {\n return status_field.equals (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update display with requested user data | @Override
public void onDatabaseResponse(JSONObject response) {
if(getActivity() == null) return; // Make sure we're still active
// Nothing to do if failed request
if(!response.optBoolean("success")) return;
// Handle responses
String action = response.optString("action");
if(action.equals("get_user")... | [
"public void display() {\n\n String userId = SessionUtils.getSession().getAttribute(\"userId\").toString();\n\n userRequest.setUserId(userId);\n GetUserResponse response = userService.getUser(UUID.fromString(userRequest.getUserId()));\n userResponse.setUserInfo(response.getUserInfo());\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / / | public ULocale getULocale()
/* */ {
/* 427 */ return this.ulocale;
/* */ } | [
"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"
]
]
}
} |
Setter method for property bizId. | public void setBizId(String bizId) {
this.bizId = bizId;
} | [
"void setBizModel(BiexObject bizModel);",
"public Byte getBillId() {\n return billId;\n }",
"public String getBidId() {\r\n return bidId;\r\n }",
"public void setBankcodeid(int param){\n \n this.localBankcodeid=param;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new redis client. | public RedisClient() {
this(new Connection());
} | [
"private ViRedis createRedisConnection(String host, int port) throws RedisException {\n try {\n return new ViRedis(host, port);\n } catch (IOException e) {\n throw new RedisException(\"unable to connect to the redis server\");\n }\n }",
"@Bean\n public RedissonClien... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column base_sequence.create_date | public Date getCreateDate() {
return createDate;
} | [
"@Column(name=\"create_date\")\r\n/* 147: */ public Date getCreateDate()\r\n/* 148: */ {\r\n/* 149:128 */ return this.createDate;\r\n/* 150: */ }",
"@Override\n\tpublic Date getCreateDate() {\n\t\treturn _ddlRecordVersion.getCreateDate();\n\t}",
"public java.sql.Date getDatecreate() {\n\tretu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
find index of the right parenthesis corresponding to the first char of string | int findMatchedRightIndex(String s) {
int n = -1;
int count = 0;
char firstChar = s.charAt(0);
for (int index = 0; index < s.length(); index++) {
char ch = s.charAt(index);
if (ch == firstChar) { //if meet same left bracket
... | [
"private int getClosingBracketIndex(String str) {\n char[] chars = str.toCharArray();\n int bracketsStartIndex = 0, length = chars.length;\n while (bracketsStartIndex < length) {\n char c = chars[bracketsStartIndex];\n if (c == '(')\n break;\n bra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains a grouped list of items by searching the contents of a specific folder. Calling this method results in a call to EWS. | public GroupedFindItemsResults<Item> findItems(
WellKnownFolderName parentFolderName, SearchFilter searchFilter,
ItemView view, Grouping groupBy) throws Exception {
return this.findItems(new FolderId(parentFolderName), searchFilter,
view, groupBy);
} | [
"static Vector<String> findItems(final ExchangeService exchangeService, final int offset, final int maxEntries)\n throws ServiceCallException, HttpErrorException\n {\n FindItemResponseType response =\n exchangeService.findItem(getFindItemsRequest(DistinguishedFolderIdNameType.INB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is going to help add preceeding digits | private String[] returnFormatedStr(String binaryA, String binaryB){
int lengthA = binaryA.length(); int lengthB = binaryB.length();
try{
if(lengthA < 8){
int diff = 8 - lengthA;
binaryA = add0sbeforeNums( diff, binaryA); ... | [
"private static int addFollowingZeroes(int digits) {\n int result = 1;\n if (digits == 1) {\n return result;\n }\n for (int i = 0; i < digits; i++) {\n result *= 10;\n }\n return result;\n }",
"public void appendDigit(String value){\r\n\t\tif(decimalPosition == 0){\r\n\t\t\tdigit = di... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XShortClosure__Group_0_0__1__Impl" $ANTLR start "rule__XShortClosure__Group_0_0__2" ../de.emueller.xtext.recordmapper.ui/srcgen/de/emueller/xtext/recordmapper/ui/contentassist/antlr/internal/InternalRecordMapper.g:9503:1: rule__XShortClosure__Group_0_0__2 : rule__XShortClosure__Group_0_0__2__Impl ; | public final void rule__XShortClosure__Group_0_0__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../de.emueller.xtext.recordmapper.ui/src-gen/de/emueller/xtext/recordmapper/ui/contentassist/antlr/internal/InternalRecordMapper.g:9507:1: ( rule__XSh... | [
"public final void rule__XShortClosure__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../fr.obeo.dsl.sprototyper.ui/src-gen/fr/obeo/dsl/ui/contentassist/antlr/internal/InternalSPrototyper.g:16014:1: ( rule__XShortClosure__Grou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Selects only a single column from a table. This is meant if you don't want to fetch an entire entity from the database. | public <R> Queryable<R> project(SqlFunction<E, R> projection) {
var lambda = LambdaExpression.parse(projection);
@SuppressWarnings("unchecked")
var returnType = (Class<R>) lambda.getBody().getResultType();
return new EntityProjectionQuery<>(returnType, projection, this);
} | [
"public TableColumnBase<S,?> getColumn() { return column; }",
"com.guidewire.datamodel.ColumnDocument.Column getColumn();",
"public int getFirstColumn();",
"Field getColname();",
"ColumnRealName getSpecifiedColumnRealNameAsOne();",
"T column(String columnId, ColumnType type);",
"public String getColumnN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Negate this vector and store the result in dest. | Vector3f negate(Vector3f dest); | [
"V negate();",
"public final Vector4f negate() {\n return copy().selfNegate();\n }",
"public Vec3 negate()\n {\n x = -x;\n y = -y;\n z = -z;\n return this;\n }",
"@Immutable\r\n\tpublic Vector getOpposite(){\r\n\t\tVector opposite = this.multiply(-1);\r\n\t\treturn opposite;\r\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
popula ArrayList com funcionarios | public ArrayList<FuncionarioModelo> getListaFuncionarios() {
ArrayList<FuncionarioModelo> listaFuncionarios = new ArrayList<FuncionarioModelo>();
conexao = AppControle.getInstancia().getConexao();
System.out.println("conectado e preparando listagem");
Statement stmt = null;
... | [
"public ArrayList<Voo> lista_do_banco();",
"public static ArrayList auxiliar(ArrayList Datos){\r\n for (int i = 0; i < Datos.size(); i++) {\r\n Arista aux = (Arista) Datos.get(i);\r\n if(aux.getIni().getEtapa() == aux.getFin().getEtapa()){\r\n Datos.remove(aux);\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve the key from JNDI. | public void testEncryptionObject() throws Exception {
String strKey=(String)JNDIRegistry.lookupEnv("testkey");
// Something to encrypt
byte[] original=generateTestString().getBytes();
// The Encryptor will internally rebuild a SecretKey from the given
// string.
Encryption encryptor=new Encryption(strK... | [
"RegistryKeyProperty getQueryKey();",
"String getDTIKey();",
"public String getKey(){\n \treturn key;\n }",
"public String getKey () {\n return key; \n }",
"String getApplicationKey();",
"String privateKeyName();",
"String getObjectKey();",
"public String getKey() {\n return key;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the price sheet for a subscription. Price sheet is available via this API only for May 1, 2014 or later. | @ServiceMethod(returns = ReturnType.SINGLE)
Response<PriceSheetResultInner> getWithResponse(String expand, String skiptoken, Integer top, Context context); | [
"public Think.XmlWebServices.Subscription_price[] getSubscription_price() {\n return subscription_price;\n }",
"@WebMethod\n \tList<Subscription> getSubscriptions();",
"public Subscription get(long subscriptionId);",
"@ServiceMethod(returns = ReturnType.SINGLE)\n SubscriptionContractInner get(Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Called whenever we call invalidateOptionsMenu() | @Override
public boolean onPrepareOptionsMenu(Menu menu) {
// If the nav drawer is open, hide action items related to the content view
//boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);
//menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);
return super.onPrepar... | [
"@Override\n\t\t\tpublic void onDrawerClosed(View drawerView) {\n\t\t\t\tsupportInvalidateOptionsMenu();\n\t\t\t}",
"@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu();\n }",
"public void onD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
////////// RETORNA TODOS LOS EQUIPOS ENXISTENTES, HAY UNA REDUNDANCIA /////////// | public List<Equipo> getAllE(HttpServletRequest request, HttpServletResponse response){
List<Equipo> listEq = null;
// Propietario pr = (Propietario) request.getSession().getAttribute("PropietarioIngresado");
try{
Jugador objJugador = (Jugador) request.getSession().getAttr... | [
"private void JugadoresEquipo() {\n\t\t\r\n\t}",
"private void armarEquipo() {\n int formacion[] = new Formacion().formacionEquipo();\n\n if (formacion != null) {\n armarEquipoPosicion(TipoPosicion.ARQUERO, 1);\n armarEquipoPosicion(TipoPosicion.DEFENSOR, formacion[0]);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ 127: / 128: | public String getOrderField()
/* 129: */ {
/* 130:145 */ return this.orderField;
/* 131: */ } | [
"public static int $noinline$Shr25And127(int arg) {\n return (arg >> 25) & 127;\n }",
"public int U()\r\n/* 2728: */ {\r\n/* 2729:2743 */ return 256;\r\n/* 2730: */ }",
"public static void main(String[] args){\n byte Var1; //[a-ZA-Z$_][a-zA-Z0-9$_]*\n byte $_$;\n byte 變... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The constructor of the CurveList Java have type erasure feature that requires us to input the class of Curve and CyclicWords in order to actually use these classes in reflections | public CurveList(SurfaceWord s){
sw = s;
list = new ArrayList<Word>();
index = 0;
} | [
"TypeSymboleCercle createTypeSymboleCercle();",
"SweptCurveType createSweptCurveType();",
"CollectionTypeCS createCollectionTypeCS();",
"private static Object getObject(Constructor c, List<String> input){\n\n input.remove(0); //keep arg strings only\n Class[] paramTypes = c.getParameterTypes();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
POST METHOD to create a new Customer | @CrossOrigin
@RequestMapping(value = "/createCustomer", method = RequestMethod.POST)
public String createCustomer(@RequestBody Customers customer) {
String result = customersServices.createCustomer(customer);
return result;
} | [
"@PostMapping(\"/customers\")\n\t//@RequestMapping(method=RequestMethod.POST)\n\tpublic Customer create(@RequestBody Customer customer) {\n\t\treturn customerService.addCustomer(customer);\n\t}",
"@PostMapping(\"/customer/create\")\n\tpublic Customer postCustomer(@Valid @RequestBody Customer customer) {\n\t\tretu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the directory for a skin image. | public static native String getSkinImgDir(String imgDir) /*-{
return $wnd.isc.Page.getSkinImgDir(imgDir);
}-*/; | [
"public static String getPictureDirectory() {\n return ROOT_DIR + File.separator + DATA_DIR + File.separator + PICTURE_DIR;\n }",
"String getImageBaseDirectory();",
"public static String imageMetPath(){\n \tString path =new File(\"\").getAbsolutePath();\n \tpath = path +\"/Metabolisme\";\n \t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by Abhilasha Yadav on 12/12/2017. | public interface FilterCabInterfaceContractor {
public interface FilterCabPresenter{
void setParameters(String userId, String off,String filter,int offset);
void afterSuccessResponceAllTrip(FilterTripBean allTripFeed );
void afterFailureResponceAllTrip();
}
interface Filt... | [
"@Override\n public void extornar() {\n \n }",
"@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}",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will handle the insert (given from | public List<Element> handleInsertTransaction( Manager transactionManager, int[] resultValues )
throws OGCWebServiceException {
if ( transactionManager == null ) {
throw new InvalidParameterException( "The transactionManager may not be null" );
}
if ( resul... | [
"private static void insert() {\n\t\t\n\t}",
"@Override\r\n\tpublic void insert(Inquiry inq) {\n\t\t\r\n\t}",
"protected abstract boolean onPreInsert(T t);",
"@Override\n public void insertObject() {\n\n }",
"@Override\n public void preInsert() {\n\n }",
"@Override\n\tprotected void insert(Post ob... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .de.tubs.androidlab.instameet.server.protobuf.VisitAppointment visitAppointment = 6; | public boolean hasVisitAppointment() {
return ((bitField0_ & 0x00000020) == 0x00000020);
} | [
"void AppointmentClicked(Attendance appointment);",
"com.ubbcluj.amcds.myDalgs.communication.Protocol.AppDecideOrBuilder getAppDecideOrBuilder();",
"private Appointment createAppointmentForUpdate() {\n //creo un oggetto appuntamento tale da modificare solo data e/o ora\n LocalTime timeStartVisit =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | public static boolean m42764a(C42411l c42411l, cqs cqs, cqm cqm, C38177u c38177u, C42417p c42417p) {
AppMethodBeat.m2504i(101912);
if (cqs == null) {
C4990ab.m7420w("MicroMsg.RemoteDebugUtil", "handleError dataFormat is null");
AppMethodBeat.m2505o(101912);
return fal... | [
"public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }",
"interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }",
"public interface ans {\n /* renamed from: a */\n void mo1174a();\n}",
"public interface C24712af {\n /* renamed from... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onFail() {
callBack.onFail();
} | [
"@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"
]
]
}
} |
to create a Direct Exchange instance which will send the message based on the router key | @Bean
DirectExchange exchange() {
return new DirectExchange(exchange);
} | [
"@Test\n public void createExchange(){\n DirectExchange directExchange = new DirectExchange(\"hello-java-exchange\",true,false);\n //声明一个接口\n amqpAdmin.declareExchange(directExchange);\n log.info(\"Exchange[{}] 创建成功\",\"hello-java-exchange\");\n }",
"private void initKeyExchange(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
f0 ::= NowaitClause() | DataClause() | OmpCopyPrivateClause() | @Override
public SimplificationString visit(ASingleClause n) {
return n.getF0().accept(this);
} | [
"public void edtnow(final F0 f0) {\n try {\n SwingUtilities.invokeAndWait(new Runnable() {\n @Override\n public void run() {\n f0.f();\n }\n });\n } catch (InterruptedException e) {\n e.printStackTrace();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table user_roles | int deleteByPrimaryKey(Integer userRoleId); | [
"@Select(\"SELECT\\n\" +\n \"\\tuser_id userId,\\n\" +\n \" role_id roleId,\\n\" +\n \" role_name roleName,\\n\" +\n \"\\trole_type roleType\\n\" +\n \"FROM\\n\" +\n \"\\trole,\\n\" +\n \"\\t`user`\\n\" +\n \"WHERE\\n\" +\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by Samuel K. on 5/8/2018. | public interface CashFlowHelper {
String JANUARY = "Jan";
String API_JANUARY = "jan";
String FEBRUARY = "Feb";
String API_FEBRUARY = "feb";
String MARCH = "Mar";
String API_MARCH = "mar";
String APRIL = "Apr";
String API_APRIL = "apr";
String MAY = "May";
String API_MAY = "may";... | [
"@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"
]
]
}
} |
Get the path names of all the summary files residing within output subdirectories located under the main output directory | ArrayList<File> getPathOfSummaryfilesFromEachSubDir(String mainDirectory) throws Exception{
File dir = new File(mainDirectory);
// This filter only returns directories
FileFilter fileFilter = new FileFilter() {
public boolean accept(File file) {
return file.isDirectory();
}
};
File... | [
"public String[] getOutputFilesMapreduce() {\n File dir = new File(getMapreduceDirectory());\n return dir.list(new FilenameFilter() {\n @Override\n public boolean accept(File dir, String name) {\n return name.startsWith(\"part-\");\n }\n });\n }",
"public String[] reportIntermediat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets correctly scaled Insets | public static Insets getScaledInsets(int top, int left, int bottom, int right) {
if (getScale() == 1) {
// don't need to scale
return new Insets(top, left, bottom, right);
}
return new Insets(
(int) (top * getScale()), (int) (left * getScale()),
... | [
"public static Insets getEtchedInsets() {\r\n\t\treturn ETCHED_INSETS;\r\n\t}",
"public Insets getInsets() {\r\n\t\treturn m_ins;\r\n\t}",
"public Insets getInsets()\r\n \t{\r\n \treturn new Insets(top, left, bottom, right);\t\r\n \t\r\n \t}",
"@NonNull\n Insets getOpticalInsets();",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an XPath to the Ext component, which contains the ID provided by getId() | public String getXPath()
{
return "//*[@id='" + getId() + "']";
} | [
"@DISPID(1610809361) //= 0x60030011. The runtime will prefer the VTID if present\n @VTID(26)\n java.lang.String getXPath();",
"String getMainElementId();",
"public String getFullXPath()\n\t{\n LinkedHashMap<String, Vector<String>> map = sel.getSearchableXNATElements();\n return map.get(searchRootEle... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the keyboard view. | public final KeyboardView getKeyboardView() {
return keyboardView;
} | [
"Keyboard getKeyboard();",
"public KeyboardView getCalculatorKeyboardView() {\n return mCalculatorKeyboardView;\n }",
"public Keyboard getKeyboard() {\n\t\treturn keyboard;\n\t}",
"public FocusableView getFocusedView() {\n\t\treturn _focusedPanel;\n\t}",
"@java.lang.Override public int getKeyboard... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ID of the extension to delete. string extension_id = 2 [(.yandex.cloud.required) = true]; | com.google.protobuf.ByteString
getExtensionIdBytes(); | [
"public final void extension() throws RecognitionException {\n try {\n // /Users/nunooliveira/Dropbox/NunoOliveira_Thesis/Thesis/Tools/doctools/ReoLang/ReoLangSpecs/ReoLangCP2.g:162:2: ( ^( EXTENSION ID ) )\n // /Users/nunooliveira/Dropbox/NunoOliveira_Thesis/Thesis/Tools/doctools/ReoLa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
when the view opens start job | private void userInit() {
addWindowListener(new WindowAdapter() {
public void windowActivated(WindowEvent e) {
if (!isWorking()) {
_isWorking = true;
_worker.start();
}
}
});
} | [
"public void onJobStart() {\n }",
"@Override\n public void onRefreshStarted(View view) {\n// jobManager.addJobInBackground(new FetchModulesJob());\n }",
"public static void fireJobStartEvent(){\n pcs.firePropertyChange (BayesManager.JRUN_JOB_START, null,false);\n }",
"@Override\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required .mesos.internal.StatusUpdate update = 1; | boolean hasUpdate(); | [
"@Override\r\n\tpublic void updateStatus(StatusUpdate arg0) {\n\t\t\r\n\t}",
"com.yunhui.job.common.proto.RequestProto.Status getStatus();",
"@Override\r\n\tpublic void updateStatus(String arg0) {\n\t\t\r\n\t}",
"void onUpdateStatus(UpdateStatus updateStatus);",
"testdata.v1.util.All.Status getStatus();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
REQUIRED The size of the bet. | public void setSize(Double size){
this.size = size;
} | [
"@Override\n protected int estimateSize() {\n return variable.estimateSize();\n }",
"public double getSize()\n{\n\treturn size;\n}",
"public int getSize() { return 5; }",
"public int getSize(){ return bSize; }",
"private int expectedSize(final int size) {\n return (int) (size * _passPerc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string disp_str = 3; | public java.lang.String getDispStr() {
java.lang.Object ref = dispStr_;
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();
... | [
"private String createDisplayString(int displVal) {\n return String.format(formatStr, displVal);\n }",
"public void setDispNo(String dispNo)\n\t{\n\t\twDispNo = dispNo;\n\t}",
"@Override\n\tpublic void display(String str) {\n\t\tSystem.out.println(str);\n\t}",
"@Override\r\n\tpublic void displaymess... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns if dst is accesible from origin | public static boolean accesible (Shape or, Shape dst,HashSet<Shape>discarded){
HashSet<Shape> neighbours = new HashSet<Shape>();
boolean retVal = false;
if (discarded==null) {
discarded = new HashSet<Shape>();
}
discarded.add(or);
// System.out.println(or.asVisClass().label);
for (VisConnectorEqui... | [
"public boolean canSend(Node scr,Node dst){\n\t\treturn (scr.isOnline())&&(dst.isOnline())&&\n\t\t\t\tthis.getSources().contains(scr)&&\n\t\t\t\tthis.getDestinations().contains(dst);\n\t}",
"public boolean canReach(final RSTile dest, final boolean isObject) {\r\n \t\treturn pathLengthTo(dest, isObject) != -1;\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check whether the environment variables were populated by the executor correctly | @BeforeClass
public void checkSetup() {
if (!"45".equals(System.getenv("config_ordinal"))) {
Assert.fail(
"Before running this test, the environment variable \"config_ordinal\" must be set with the value of 45");
}
if (!"Bob".equals(System.getenv("customer_na... | [
"@DisplayName(\"Test if environment variables USERNAME and PROCESSOR_ARCHITECTURE are set to the variables Samson and amd64 respectively\")\n @Test\n void testAssumptionTrueIsTrue() {\n assumeTrue(\"Samson\".equalsIgnoreCase(System.getenv(\"USERNAME\")));\n assumeTrue(\"amd64\".equalsIgnoreCase(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Resource XML element (child of Link XML tag) containing the annotation's title (i.e. pathway name) and URL (i.e. pathway URL) as child tags | private Element getResourceElement(Document document, String pathwayDisplayName, String pathwayURL) {
Element resource = document.createElement("resource");
Element title = getElement(document, "title", pathwayDisplayName);
Element url = getElement(document, "url", pathwayURL);
resource.appendChild(title)... | [
"@ApiModelProperty(value = \"Unique reference of the place\")\n\n\n public String getHref() {\n return href;\n }",
"public ResourceLink() {}",
"@Override\n\tpublic void createHyperlinksByOffset(XtextResource resource, int offset, IHyperlinkAcceptor acceptor) {\n\t\tEObjectAtOffsetHelper oHelper = n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Dar uma chamada Ao clicar ele ativa o Start Activity | @Override
public void onClick(View v) {
abreFormulario();
} | [
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tLog.v(LOG_TAG, DoveSono + \"Startata la nuova Activity\");\n\t\t\t}",
"private void goStartIntent() {\n\t\tIntent intent = new Intent();\n\t\tintent.setClass(this, ClientActivity.class);\n\t\tstartActivity(intent);\n\t\t// finish();\n\t}",
"private voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Elimina primero, el nodo apuntador header siempre se debe de reasignar, header sera igual al nodo siguiente del nodo header | void deleteFirst () {
if (isValid()){
header = header.next;
size--;
}
} | [
"@Override\n public Header getHeader() {\n return null;\n }",
"@Override\n protected ServiceValue treatHeader() {\n return null;\n }",
"private void clearHeader() { header_ = null;\n \n }",
"private static String header() {\n\t\treturn \"\\neBookApp\\n\";\n\t}",
"public vo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: your code here | public static boolean isPalindrome(Node n) {
Node lf = n;
Node ls = n;
Node midpoint = null;
Node reverse_pointer = null;
Node even_pointer = null;
Node odd_pointer = null;
if(n == null || n.next == null) {
return true;
}
while(l... | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"@Override\r\n\tpublic void hablar() {\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\r\n public void publicando() {\n }",
"@Ov... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generated Property Setter for attribute ATTRIBUTEINITIALIZATIONS | @Override
public void setAttributeInitializationsForClass(com.gensym.util.Sequence attributeInitializations) throws G2AccessException {
setStaticAttributeValue (SystemAttributeSymbols.ATTRIBUTE_INITIALIZATIONS_, attributeInitializations);
} | [
"private void initializeAttributes() {\n this.attributeNameToValueMap = new HashMap<>();\n this.createAttributeHandleValueMap();\n\n for(AttributeDef attributeDef : this.definition.getAttributeDefinitions()) {\n this.attributeNameToValueMap.put(attributeDef.getName(), null);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Erase the element on screen. | protected void erase() {
Canvas canvas = Canvas.getCanvas();
canvas.erase(this);
} | [
"public void erase(){\n\t\tm.setZ();\n\t\ttextField.setText(\"\");\n\t}",
"public void clear() {\n // we used local references instead of looking up the attributes\n // on the DOM element\n this.clearRect(0, 0, coordWidth, coordHeight);\n }",
"public void clear() {\n offscreen.setColor(backgrou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .easemob.pb.JID to = 3; if appkey is absent, it assumes to be as same as the `from` | public Builder clearTo() {
if (toBuilder_ == null) {
to_ = null;
onChanged();
} else {
toBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
} | [
"public void setFrom (String from) {\n\t\tthis.from = from;\n\t}",
"public void from(IXApp from);",
"@javax.annotation.Nonnull\n @ApiModelProperty(example = \"+18005550100 or sip:username@sip.telnyx.com\", required = true, value = \"The DID or SIP URI to dial out and bridge to the given call.\")\n @JsonProper... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column dt_pt_game.username | public String getUsername() {
return username;
} | [
"private String player_name()\n\t\t{\n\t\tCursor statement = get_dbh().rawQuery(\"SELECT name FROM player\", null);\n\t\tif(! statement.moveToFirst())\n\t\t\t{\n\t\t\tLog.i(\"Donjon\", \"player_name found no first tuple to visit\");\n\t\t\treturn null;\n\t\t\t}\n\t\tif((statement.getColumnCount() == 0) || statement... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column patient.study_enrollments___5 | public Integer getStudyEnrollments5() {
return studyEnrollments5;
} | [
"String getEnrollmentsName(){\n\t\tString s = enrollments.stream().map(enrollment -> Long.toString(enrollment.getId())).collect(Collectors.joining(\",\"));\n\t\treturn String.format(\"[%s]\", s);\n\t}",
"public String getSelectiveEnrollmentCode();",
"public long getStudyId();",
"public final String getStudyId... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string MeetingHandle = 2; optional string MeetingHandle = 2; | boolean hasMeetingHandle(); | [
"public void setSenderSocialNo(java.lang.String param){\r\n localSenderSocialNoTracker = true;\r\n \r\n this.localSenderSocialNo=param;\r\n \r\n\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void mouseExited(MouseEvent arg0)
{
} | [
"@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"
]
]
}
} |
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.pifss.pifsssoapapp.pojoscustomer | public ObjectFactory() {
} | [
"public static Factory factory() {\n return ext_xsd::new;\n }",
"public ObjectFactory() {\n super(new com.perpetual.rp.util.jaxb.ObjectFactory.GrammarInfoImpl());\n }",
"public static GeneratedFactory init() {\r\n\t\ttry {\r\n\t\t\tGeneratedFactory theGeneratedFactory = (GeneratedFactory)EPa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when the activity is first created. | @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
this.reportProblemButton = (ImageView) this.findViewById(R.id.report_problem_button);
this.viewProblemsButton = (ImageView) this.findViewById(R.id.view_problems_button);
... | [
"protected void onCreate() {}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tinitData();\n\t\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tULog.i(this, \"onCreate() \");\n\t\tinitData();\n\t}",
"@Override\n public void onCreate () {\n super.onC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Mutates the Span with whatever new info we have. If we see an "end" annotation we remove the span and send it off. | @Override public void record(Record record) {
recorder.record(record);
} | [
"public void finishSpan() {\n long endTick = System.nanoTime();\n\n Span span = spanAndEndpoint().span();\n if (span == null) return;\n\n Long startTick = span.startTick;\n final long duration;\n if (startTick != null) {\n duration = (endTick - startTick) / 1000;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .FileInfo fileInfo = 1; | com.torrent.gen.Torr.FileInfoOrBuilder getFileInfoOrBuilder(); | [
"public FileInfo() {\n\t}",
"public LogFileInfo getInfo();",
"pipe.common.Common.FileOrBuilder getFileOrBuilder();",
"private FileInformation createFileInformation(FileEntry entry) { \n FileInformation info;\n \n if(entry.isViewPrivate()) {\n if(isIgnored(entry.getFile())) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the manhattan distance of the current board | public int manhattan() {
return manhattan;
} | [
"public int getManhattanDistance(){\n int mDist = 0;\n int index = 0; //actual index of board\n\n //Double for-loop to simulate the indices for a 2-D array\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 3; j++){\n int val = Character.getNumericValue(board[index]);\n if(val != 0){... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup. | public static PagesDomain get(String name, Output<String> id, @Nullable PagesDomainState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new PagesDomain(name, id, state, options);
} | [
"public static HttpHealthCheck get(String name, Output<String> id, @Nullable HttpHealthCheckState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {\n return new HttpHealthCheck(name, id, state, options);\n }",
"ResourceHost getResourceHostByName( String hostname ) throws HostNotFoun... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column dbo.COMMUNITY.COMM_COORDINATE | public String getCommCoordinate() {
return commCoordinate;
} | [
"public com.blitzhere.BlitzMessage.Types.Coordinate getCoordinate() {\n if (coordinateBuilder_ == null) {\n return coordinate_;\n } else {\n return coordinateBuilder_.getMessage();\n }\n }",
"com.blitzhere.BlitzMessage.Types.Coordinate getCoordinate();",
"public com.b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the type of the filter. | public Type getType(); | [
"public final int getFilterType() {\r\n return filterType;\r\n }",
"@java.lang.Override\n public int getFilterType() {\n return filterType_;\n }",
"@java.lang.Override public int getFilterTypeValue() {\n return filterType_;\n }",
"public ProjectFilterEnum getFilterType()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for property filePattern. | public String getFilePattern() {
return this.filePattern;
} | [
"public FileMatchPattern getPattern()\r\n {\r\n return mPattern;\r\n }",
"public String getPattern()\n {\n return this.pattern;\n }",
"public String getPattern()\n {\n return pattern.getValue();\n }",
"protected String getFileNamePattern() throws EMFModelGenerationException {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
constructor to initialise client | public ESClientImpl(Client client) {
this.client = client;
} | [
"public void initClient()\n\t{\n\t}",
"public Client () {}",
"public Client() {\r\n\t\t\r\n\t}",
"public Client() {\n this(\"localhost\", 7072);\n }",
"@Override\n public void clientInit() {\n }",
"private void initClient()\n {\n \tinitClient(null);\n }",
"public Clien... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Get the time stamp of a category. | public long getCategoryTimeStamp(int categId) {
Cursor c = mDb.query(TABLE_CATEGORIES, new String[]{KEY_TIMESTAMP},
KEY_ID + "=?", new String[]{String.valueOf(categId)},
null, null, null);
long ret = TIME_STAMP_INVALID;
if (c.moveToFirst()) {
ret = c.... | [
"public Date getCategoryLastUpdateTime() {\n return categoryLastUpdateTime;\n }",
"public long getTimestamp( );",
"abstract long getTimeStamp();",
"long getTimingTimestamp();",
"public static String getStamp( )\n {\n //ds get a string format element\n final SimpleDateFormat cCurre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a vertex with the specified index and name. | public SimpleVertex(int index, String name) {
super(index,name);
} | [
"public Vertex(String id, String name) {\n this.id = id;\n this.name = name;\n }",
"public V createVertex() throws DataAccessException;",
"public void addVertex(String name) {\n\t\tif (name == null) {\n\t\t\tthrow new IllegalArgumentException(\"Violation of precondition. \" + \"Vertex name may ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new Blok. | public Blok(int x, int y) {
setBounds(x,y, 22,22);
} | [
"public Bolest() {\n\t}",
"public TebakanJamak() {\n }",
"public BoaClient() {\n\t\tthis(BOA_DOMAIN, BOA_PATH);\n\t}",
"public RemplazoHBM() {\r\n }",
"public BTLoader()\n {\n this(0);\n }",
"Bay createBay();",
"public static BoffoDbObject create() {\n return new BoffoDbObject(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return list in case we want to send message to multiple clients | synchronized List<MessageToClient> getPresenterRequest(
final Socket requestingSocket, final GetPresentTokenReqMsg request) {
final ClientSession validClient = getLoggedInUser(
request.getCookieId(), requestingSocket);
if (validClient == null) {
return Collections.singletonList(new MessageToClient(
r... | [
"Queue<IClientInfo> getClientsSentRequest();",
"public List<ClientThread> getClients(){\n return this.clientList;\n }",
"String getChatClients()\n { String allClients = \"\";\n synchronized(chatClients)\n { /* traverse list of threads & add value of \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Auto generated getter method | public java.lang.String getConfirmTransportationFault(){
return localConfirmTransportationFault;
} | [
"public MethodDoc getGetter()\r\n {\r\n return m_jvdGetter;\r\n }",
"public long getGetter() {\n return getter_;\n }",
"public T get() {\n return value;\n }",
"public abstract M get();",
"@Override\n \tpublic String get() {\n \t\treturn null;\n \t}",
"public Object get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: com.tencent.mm.plugin.wallet_core.ui.s$a | public interface C7187a {
void bNo();
void bNp();
void cancel();
} | [
"private void showWallet() {\n }",
"static /* synthetic */ void a(WalletLqtSaveFetchUI walletLqtSaveFetchUI) {\n String str;\n int i;\n int i2;\n View inflate;\n AppMethodBeat.i(45698);\n walletLqtSaveFetchUI.pas.clear();\n final com.tencent.mm.ui.widget.a.d dVa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ContentValues a wrapper of keyvalue(columurow) | public boolean add(ContentValues cv) {
boolean flag = false;
SQLiteDatabase db = null;
long id = -1;
try {
db = dbhelper.getWritableDatabase();
id = db.insert("course", null, cv);
flag = (id != -1 ? true : false);
} catch (Exception e) {
} finally {
if (db != null)
db.close();
... | [
"private ContentValues toContentValues(String tname, Map<String,Object> values) {\n ContentValues cvalues = new ContentValues();\n Set<String> columnNames = tableColumnNames.get( tname );\n if( columnNames != null ) {\n for( String cname : values.keySet() ) {\n if( col... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Strings quotes from a string | String stripParameterValue(String input) {
return input.replaceAll("^'|'$", "");
} | [
"public String helperFilterQuotes(String s) {\n\t\tif (s.contains(\"\\\"\")) {\n\t\t\ts = s.substring(s.indexOf(\"\\\"\") + 1, s.lastIndexOf(\"\\\"\"));\n\t\t}\n\t\treturn s;\n\t}",
"public static String toQuotedStringEscape(String s)\n {\n char[] achSrc = s.toCharArray();\n int cchSrc = achS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
first check self permission. if not granted then ask for permission otherwise make phone call | private void callNow() {
if (ActivityCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.CALL_PHONE}, REQUEST_PHONE_CALL);
return;... | [
"private void check (){\n if (ContextCompat.checkSelfPermission(Detalles.this,\n Manifest.permission.CALL_PHONE)\n != PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(Detalles.this,\n Manifest.permission... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A test for getStandardVersion | @Test
public void getStandardVersionTest() {
ECIntegrationTestHelper.getStandardVersion();
} | [
"@Override\n\tpublic String getStandardVersion() {\n\t\tLOG.debug(\"getStandardVersion\");\n\t\treturn \"1.0\";// aleSettings.getAleStandardVersion();\n\n\t}",
"@Override\n\tpublic String getStandardVersion() throws ImplementationExceptionResponse {\n\t\treturn aleSettings.getLrStandardVersion();\n\n\t}",
"int ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string name = 1; | public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
na... | [
"public void setName(java.lang.String name){this.name = name;}",
"public String setName(final String name);",
"public void set_name(String name){\n this.name = name;\n }",
"@Override\n\tpublic void setname(String name) {\n\n\t}",
"public void setName(String aName) { _name = aName; }",
"public v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the scale value corresponding the vertical display point | @Override
@Deprecated // todo harmonize with getVerticalDisplayPointValue --- replaced by gde.data.TrailRecord.getVerticalDisplayPointAsFormattedScaleValue(int)
public double getVerticalDisplayPointScaleValue(int yPos, Rectangle drawAreaBounds) {
double value;
if (this.parent.isZoomMode || this.parent.isSco... | [
"public double getScaleY() {\n return this.scaleY;\n }",
"public final double getYScale()\n{\n\treturn _scaleY;\n}",
"public double getScale()\r\n {\r\n return myPosition.getScale();\r\n }",
"public float getScaleY() {\n return mScaleY;\n }",
"public double getScale() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a particular Configuration on a connection (excludes deleted configs) | protected static Configuration getConfiguration(Connection con, int configId) {
final String methodName = "getConfiguration";
CallableStatement procedure = null;
ResultSet results = null;
try {
procedure = con.prepareCall("{CALL GetConfiguration(?)}");
procedure.setInt(1, configId);
results = procedur... | [
"private ConfigurationItem getDBConnectionConfig(Release release) {\n List<Configuration> items = sharedConfigurationService.searchByTypeAndTitle(valueOf(DB_CONN_PREFIX + \".\" + DB_CONN_NAME), null, null, false);\n ConfigurationItem dbConnectionConfiguration = items.get(0);\n if (dbConnectionConfiguration... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .llsf_msgs.Machine machines = 1; List of machines states | public java.util.List<org.robocup_logistics.llsf_msgs.MachineInfoProtos.Machine.Builder>
getMachinesBuilderList() {
return getMachinesFieldBuilder().getBuilderList();
} | [
"java.util.List<core.messages.DispatcherCentricMessages.Machine> \n getExpMachineList();",
"java.util.List<org.apache.mesos.v1.Protos.MachineID> \n getMachinesList();",
"org.apache.mesos.v1.Protos.MachineID getMachines(int index);",
"public static StateMachine getStandardTestMachineWithId() th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo que devuelve un reporte exportado a PDF | public byte[] reporte(String nombreReporte, Map<String, Object> parametros) throws Exception{
return doJasper2ByteAll(nombreReporte, parametros, tomarConexion());
} | [
"@Test\n public void test_exportReportPDF() throws Exception {\n PaymentHistoryReportRequest request = new PaymentHistoryReportRequest();\n request.setCsd(\"1111111\");\n PaymentHistoryReportResponse response = instance.getReport(request);\n byte[] exportReport = instance.exportReport... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ SPRITE Extension: .sprite | public static void Save(Sprite sprite, String location, String filename)
{
String savedFile = "";
if(hasExtension(filename))
{
String ext = getExtension(filename);
if(ext.equalsIgnoreCase(SPRITE_EXT))
savedFile = filename;
else
savedFile = filename + "." + SPRITE_EXT;
}
else
... | [
"@Override\n public void createSprite() {\n \n }",
"abstract Texture spriteSheet();",
"public void loadSprite() { \n try {\n this.sprite = ImageIO.read(new File(\"Sprites/GrassTile.png\"));\n this.sprite2 = ImageIO.read(new File(\"Sprites/CloudTile.png\"));\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void union(int p, int q) {
int pID=find(p);
int qID=find(q);
if(pID==qID){
return;
}
for(int i=0;i<id.length;i++){
if(id[i]==pID){
id[i]=qID;
}
}
} | [
"@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 String getBrand() {
return "brand";
} | [
"@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"
]
]
}
} |
By default the Session is always printed whenever available, this can be turned off. | void setShouldPrintSession(boolean flag); | [
"@Override\n\tpublic void print() {\n\t\t//System.out.println(\"It's too dark in here to see anything...\");\n\t\tNetwork.netPrintln(\"It's too dark in here to see anything...\");\n\t}",
"public void print() {\r\n\t\tprint(System.out);\r\n\t}",
"@Override\n\tpublic void print() {\n\t\tSystem.out.println(\"msg\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void moveDown(int x, int y) {
} | [
"@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"
]
]
}
} |
Updates the path when the starting or ending node changes, or when the AStarPathFinder parameters are changed. | protected void updatePath()
{
AstarPathFinder<GridNode, SimpleWeightedUndirectedEdge<GridNode>> pathFinder = new AstarPathFinder<GridNode, SimpleWeightedUndirectedEdge<GridNode>>(grid, new DistanceHeuristic());
path = pathFinder.getBestPath(startNode, endNode);
if (gridCanvas != null)
... | [
"@Override\n\tpublic void updatePath() {\n\t\t\n\t}",
"public void Update() {\n if(pathfinding != null)\n {\n //If it doesn't have a path and it can move\n if(path == null || path.isEmpty() && canMove){\n canGetNewPath = true;\n }\n Behaviou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
These two need to be declared outside the try/catch so that they can be closed in the finally block. | @Override
protected String[] doInBackground(String... params){
String movieReviewStr;
HttpURLConnection urlConnection = null;
BufferedReader reader = null;
try {
final String SCHEME="http";
final String FORECAST_BASE_URL="//api.themoviedb.org/3/movie/";
... | [
"Try<T,X> close();",
"public FinallyEnd()\n {\n }",
"private void safeClose() {try{__CLR4_2_1bdbdjpaexqb6.R.inc(987);\n __CLR4_2_1bdbdjpaexqb6.R.inc(988);if ((((conn != null)&&(__CLR4_2_1bdbdjpaexqb6.R.iget(989)!=0|true))||(__CLR4_2_1bdbdjpaexqb6.R.iget(990)==0&false))) {{\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the map property with the specified name. | public final <T> Map<String,T> getMapProperty(String key, Class<T> eType) {
return propertyStore.getMapProperty(key, eType);
} | [
"public Object getProperty(String name) {\r\n return properties.getProperty( name ) ; }",
"public Object getProperty(String name) {\r\n return _properties.get(name);\r\n }",
"public String get(String name) {\r\n return getProperty(name);\r\n }",
"public I get(String name) {\n\t\treturn th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ List teams; List rooms; Team ppc, ss, tein, tots; Team tester; Room conference, office, broom; Room testRoom; | @Before
public void setUp() throws Exception {
admin = new AdminAccount();
/* Not used due to all of this being functionality of the FakeDatabase.java
teams = new ArrayList<Team>();
rooms = new ArrayList<Room>();
ppc = new Team("Party Planning Committee");
ss = new Team("Scranton Stanglers");
... | [
"void onGetRooms(Bot bot,String gameName,String location,RoomType roomtype,List<RoomInfo> rooms);",
"ListRoomsResult listRooms(ListRoomsRequest listRoomsRequest);",
"private void getTeams() {\n volleyService.makeRequest(Values.TEAMS + Values.SPORT_IDENTIFIER + selectedSport + Values.COUNTRY_IDENTIFIER + ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
We can safely assume an element has only one type associated with it | public void serialize(final javax.xml.namespace.QName parentQName,
final org.apache.axiom.om.OMFactory factory,
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
boolean serializeType)
... | [
"public default boolean isTypeElement() {\n return asTypeElement() != null;\n }",
"public abstract HTMLElementType getType();",
"@Override\n public InputTypeElement asTypeElement() {\n return (element instanceof TypeElement) ? environment.element(((TypeElement) element)) : null;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
id of the instance of the dapp. One dapp could have multiple instances (e.g. multiple websites) string instance_id = 2; | java.lang.String getInstanceId(); | [
"public String getInstanceID(){\n\t\treturn instanceID;\n\t}",
"public Long getInstanceid() {\n return instanceid;\n }",
"public void setInstanceid(Long instanceid) {\n this.instanceid = instanceid;\n }",
"public int getInstanceId() {\n return this.instanceId;\n }",
"@NotNull\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the estimated type | public abstract ClosedFormDistribution<ObservationType> createConditionalDistribution(); | [
"TypeTriage createTypeTriage();",
"TypeObservation createTypeObservation();",
"TypeTransfertDotation createTypeTransfertDotation();",
"TypeEffet createTypeEffet();",
"protected abstract TypeDescription createTypeDescription();",
"private Type createAstType(DataClassifier dc) {\n\t\t\n\t\tString qualifiedN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the study site. | @ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "study_site_id")
@Cascade({CascadeType.LOCK})
public StudySite getStudySite() {
return studySite;
} | [
"public String getSite() {\r\n\t\treturn site;\r\n\t}",
"public String getSite()\n\t\t{\n\t\t\treturn m_site;\n\t\t\t\n\t\t}",
"public String getSite()\n\t\t{\n\t\t\treturn m_site;\n\t\t}",
"public String getSchoolSite()\n\t{\n\t\treturn m_schoolSite;\n\t}",
"public int getSite() {\r\n return site;\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
"setVisible( boolean )" shows or hides the component depending on the boolean flag b. | public void setVisible(boolean b) {
if (b) {
Rectangle parent = getParent().getBounds();
Rectangle child = getBounds();
setLocation(parent.x + (parent.width - child.width) / 2, parent.y
+ (parent.height - child.height) / 2);
Toolkit.getDefaultToolkit().beep();
}
super.setVisible(b);
} | [
"private void setVisible(boolean b) {\n\t\t\t}",
"protected void setVisible(boolean b) {\n\t\t\t\r\n\t\t}",
"private void setVisible(boolean b) {\n\t\t\t\t\n\t\t\t}",
"public void setVisible(boolean b) {\r\n if(isVisible == b){\r\n return;\r\n }\r\n isVisible = b;\r\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by shakilsmash on 2/22/2018. | public interface UserService {
/**
* Saves a user.
*
* @param user is the id of the object that is to be saved
* @return null
*/
User save(User user);
/**
* @param id is the id of the object that is to be returned
* @return the user object
*/
User retrieve(long ... | [
"@Override\n public void extornar() {\n \n }",
"@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}",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n public int utilite() {\n ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
An example of a method replace this comment with your own | public String returnName()
{
// put your code here
return this.name;
} | [
"protected void method_5557() {}",
"public static void Q22()\r\n\t{\r\n\t}",
"private static void EX5() {\n\t\t\r\n\t}",
"protected void method_2117() {\n }",
"public void mo5201a() {\n }",
"public void mo28221a() {\n }",
"public void mo26342c() {\n }",
"@Ove... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Routes of the virtual host. A route contains a set of conditions (predicates) that are used by the load balancer to select the route for the request and an action on the request. For details about the concept, see [documentation](/docs/applicationloadbalancer/concepts/httprouterroutes). The order of routes matters: the... | public int getRoutesCount() {
if (routesBuilder_ == null) {
return routes_.size();
} else {
return routesBuilder_.getCount();
}
} | [
"Collection<Route> getRoutes();",
"public interface Route {\n\n\t Bot getBot();\n\n\t double getTotalDistance();\n\n\t double getTotalTime();\n\t\n\t boolean exists( long time );\n\t\n\t void update( long time );\n\t\n\t Pos getPos( long time, boolean nullWhenAfterRoute );\n\t\n\t long getStartTime();\n\t\n\t lon... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Searches for the char value to get back its index | public int search(char value) {
String tmpVal = String.valueOf(value);
if (array != null) {
for (int i = 0; i < arraySize; ++i) {
if (array[i].equalsIgnoreCase(tmpVal)) {
return i;
}
}
}
return -1;
} | [
"private int getIndex(char[] A, char c) {\nfor(int i=0;A[i]!='\\0';i++)\nif(A[i]==c)\nreturn i;\n \nreturn -1;\n}",
"static int toIndex(char c) {\n return (int) (c - 'A');\n // FIXME\n }",
"@Override\r\n public char getChar(final int index) {\n return 0;\r\n }",
"Pointer index(String cha... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Global static variables public static final String packageName = "com.dvsoft.nexus.service.jrc.ppc.genesysMultimedia.jmx.mbeans"; | private static ObjectName createObjectName(String packageName, String className)
throws MalformedObjectNameException {
try {
return new ObjectName(packageName + ":type=" + className);
} catch (MalformedObjectNameException e) {
throw e;
}
} | [
"protected String getMXPackage() {\r\n\t\treturn environment.getElementUtils().getPackageOf(typeElement).getQualifiedName().toString();\r\n\t}",
"public static String getPackageName() {\n\t\treturn packageName;\n\t}",
"private static void setPackageName() throws Exception {\n\t\tpackageName = readConfigSetting(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
test run, invalid number of arguments. | @Test
public void runTest3() {
String[] args = {"", ""};
String expected = "Invalid number of arguments";
assertEquals(expected, curl.run(args)[0]);
} | [
"@Test\n \tpublic void testValidArgumentCount() {\n \t\tboolean exitExceptionThrown = false;\n \t try {\n \t \tString[] args = new String[2];\n \t \targs[0] = \"src/\";\n \t \targs[1] = \"src/\";\n \t \t\n \t \tMain.main(args);\n \t }\n \t catch (ExitException e) {\n \t \texitExceptionThr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Store migration in a sorted map key by the major of the lower version of the migration. The goal is to be able to retrieve the list of migrations to apply to get to/from a given version. We are only keying on the lower version because the right side (most recent version of the migration range) is always current version... | private void registerMigration(final T migration) {
final String key = migration.getPreviousVersion().getMajorVersion();
if (!migrations.containsKey(key)) {
migrations.put(key, migration);
if (migration.getCurrentVersion().getMajorVersion().compareTo(mostRecentMajorVersion) > 0) {
mostRecent... | [
"static List<String> getMigrations(int startVersion)\n {\n return MIGRATIONS.subList(startVersion, MIGRATIONS.size());\n }",
"public void onMigrate(int fromVersion, int toVersion) {\n }",
"public synchronized Map<Object, Object> migrate(int[] range) {\n\t\tMap<Object, Object> ret = new HashMap<O... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 231 /Coverage entropy=1.791759469228055 | @Test(timeout = 4000)
public void test231() throws Throwable {
NumberInput numberInput0 = new NumberInput((Component) null, "", "form");
// Undeclared exception!
try {
numberInput0.button();
fail("Expecting exception: NullPointerException");
} catch(NullPointerExcepti... | [
"@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"
]
]
}
} |
Returns the representation of the given DFA as a string in the DOT language later used to draw the DFA | public String toDot() {
assert repOk();
//Initial State is added
String dot = "digraph {\n";
dot += "inic[shape=point];\n";
dot += "inic->" + this.initialState().getName() + ";\n";
//Transitions are added
for (Entry<State, HashMap<Character, StateSet>> entry : delta.entrySet()) {
State from = ent... | [
"@Override\n\tpublic String to_dot() {\n\t\tassert rep_ok();\n\t\t// TODO\n\t\tString dot_graph = \"digraph{\\n\"+\n \"inic[shape=point];\\n\"+\n \"inic->\"+initial_state().name()+\";\\n\";\n\t\tassert !(transiciones.isEmpty());\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |